Skip to content

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

opensearchservice_detach_data_source(id, dataSourceArn)

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:

list(
  id = "string",
  arn = "string",
  dataSourceArn = "string"
)

Request syntax

svc$detach_data_source(
  id = "string",
  dataSourceArn = "string"
)