add_data_source
¶
add_data_source(
domain_name: DomainName,
name: DataSourceName,
data_source_type: DataSourceType,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
description: Optional[DataSourceDescription] = None,
) -> AddDataSourceResponse
Creates a new direct-query data source to the specified domain. For more information, see Creating Amazon OpenSearch Service data source integrations with Amazon S3.
Parameters:
-
domain_name(DomainName) –The name of the domain to add the data source to.
-
name(DataSourceName) –A name for the data source.
-
data_source_type(DataSourceType) –The type of data source.
-
description(Optional[DataSourceDescription], default:None) –A description of the data source.
Raises:
-
BaseException–An error occurred while processing the request.
-
DependencyFailureException–An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.