Skip to main content

data_source_attachments

Creates, updates, deletes, gets or lists a data_source_attachments resource.

Overview

Namedata_source_attachments
TypeResource
Idaws.opensearch.data_source_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the OpenSearch application. (pattern: <code>[a-z0-9]{3,30}</code>)
arnstringThe Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information. (pattern: <code>.*</code>)
attachment_idstringThe unique identifier assigned to the data source attachment.
data_source_arnstringThe Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information. (pattern: <code>.*</code>)
statusstringThe status of the data source attachment. Valid values are PENDING, ATTACHED, and FAILED. (PENDING, ATTACHED, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_data_source_attachmentselectid, regionReturns the current status and details of a specific data source attachment for an OpenSearch application. Throws a ResourceNotFoundException if no attachment record exists for the specified application and data source combination.
list_data_source_attachmentsselectid, regionReturns a paginated list of all data source attachments for an OpenSearch application, including attachments in all states (PENDING, ATTACHED, and FAILED).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier or name of the OpenSearch application to list attachments for.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the current status and details of a specific data source attachment for an OpenSearch application. Throws a ResourceNotFoundException if no attachment record exists for the specified application and data source combination.

SELECT
id,
arn,
attachment_id,
data_source_arn,
status
FROM aws.opensearch.data_source_attachments
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;