OpenSearchService / Client / update_data_source

update_data_source#

OpenSearchService.Client.update_data_source(**kwargs)#

Updates the data source on the domain.

See also: AWS API Documentation

Request Syntax

response = client.update_data_source(
    DomainName='string',
    Name='string',
    DataSourceType={
        'S3GlueDataCatalog': {
            'RoleArn': 'string'
        }
    },
    Description='string'
)
Parameters:
  • DomainName (string) –

    [REQUIRED]

    The name of the domain.

  • Name (string) –

    [REQUIRED]

    The name of the data source.

  • DataSourceType (dict) –

    [REQUIRED]

    The type of data source.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: S3GlueDataCatalog.

    • S3GlueDataCatalog (dict) –

      The data source for the AWS S3 Glue Data Catalog.

      • RoleArn (string) –

        The role ARN for the AWS S3 Glue Data Catalog.

  • Description (string) – A description of the data source.

Return type:

dict

Returns:

Response Syntax

{
    'Message': 'string'
}

Response Structure

  • (dict) –

    The result of an UpdateDataSource operation.

    • Message (string) –

      A message associated with the data source.

Exceptions

  • OpenSearchService.Client.exceptions.BaseException

  • OpenSearchService.Client.exceptions.InternalException

  • OpenSearchService.Client.exceptions.ResourceNotFoundException

  • OpenSearchService.Client.exceptions.ValidationException

  • OpenSearchService.Client.exceptions.DisabledOperationException

  • OpenSearchService.Client.exceptions.DependencyFailureException