MachineLearning / Client / update_data_source
update_data_source#
- MachineLearning.Client.update_data_source(**kwargs)#
Updates the
DataSourceNameof aDataSource.You can use the
GetDataSourceoperation 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
DataSourceduring creation.DataSourceName (string) –
[REQUIRED]
A new user-supplied name or description of the
DataSourcethat will replace the current description.
- Return type:
dict
- Returns:
Response Syntax
{ 'DataSourceId': 'string' }
Response Structure
(dict) –
Represents the output of an
UpdateDataSourceoperation.You can see the updated content by using the
GetBatchPredictionoperation.DataSourceId (string) –
The ID assigned to the
DataSourceduring creation. This value should be identical to the value of theDataSourceIDin the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputExceptionMachineLearning.Client.exceptions.ResourceNotFoundExceptionMachineLearning.Client.exceptions.InternalServerException