MachineLearning / Client / update_data_source

update_data_source#

MachineLearning.Client.update_data_source(**kwargs)#

Updates the DataSourceName of a DataSource.

You can use the GetDataSource operation to view the contents of the updated data element.

See also: AWS API Documentation

Request Syntax

response = client.update_data_source(
    DataSourceId='string',
    DataSourceName='string'
)
Parameters:
  • DataSourceId (string) –

    [REQUIRED]

    The ID assigned to the DataSource during creation.

  • DataSourceName (string) –

    [REQUIRED]

    A new user-supplied name or description of the DataSource that will replace the current description.

Return type:

dict

Returns:

Response Syntax

{
    'DataSourceId': 'string'
}

Response Structure

  • (dict) –

    Represents the output of an UpdateDataSource operation.

    You can see the updated content by using the GetBatchPrediction operation.

    • DataSourceId (string) –

      The ID assigned to the DataSource during creation. This value should be identical to the value of the DataSourceID in the request.

Exceptions

  • MachineLearning.Client.exceptions.InvalidInputException

  • MachineLearning.Client.exceptions.ResourceNotFoundException

  • MachineLearning.Client.exceptions.InternalServerException