describeDataSourceAttachment method
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.
May throw AccessDeniedException.
May throw DisabledOperationException.
May throw InternalException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter id :
The unique identifier or name of the OpenSearch application.
Implementation
Future<DescribeDataSourceAttachmentResponse> describeDataSourceAttachment({
required String dataSourceArn,
required String id,
}) async {
final $payload = <String, dynamic>{
'dataSourceArn': dataSourceArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/2021-01-01/opensearch/application/${Uri.encodeComponent(id)}/describeDataSourceAttachment',
exceptionFnMap: _exceptionFns,
);
return DescribeDataSourceAttachmentResponse.fromJson(response);
}