deleteDataSource method
Deletes a direct-query data source. For more information, see Deleting an Amazon OpenSearch Service data source with Amazon S3.
May throw BaseException.
May throw DependencyFailureException.
May throw DisabledOperationException.
May throw InternalException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter domainName :
The name of the domain.
Parameter name :
The name of the data source to delete.
Implementation
Future<DeleteDataSourceResponse> deleteDataSource({
required String domainName,
required String name,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2021-01-01/opensearch/domain/${Uri.encodeComponent(domainName)}/dataSource/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return DeleteDataSourceResponse.fromJson(response);
}