Removes a data source from an OpenSearch application¶
Description¶
Removes a data source from an OpenSearch application. The application must be in the ACTIVE state. This operation removes the data source saved object from the application and deletes the attachment record. Throws a ConflictException if the specified data source has a PENDING attachment, and a ResourceNotFoundException if the data source is not currently attached to the application.
Usage¶
Arguments¶
id
[required] The unique identifier or name of the OpenSearch application to detach the data source from.
dataSourceArn
[required] The Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information.
Value¶
A list with the following syntax: