BedrockAgentCoreControl / Client / update_dataset
update_dataset¶
- BedrockAgentCoreControl.Client.update_dataset(**kwargs)¶
Updates a dataset’s metadata. Synchronous operation. Only provided fields are updated; omitted fields remain unchanged.
To modify dataset content, use AddDatasetExamples, UpdateDatasetExamples, or DeleteDatasetExamples.
Cannot update: name, schemaType, kmsKeyArn (immutable after creation).
See also: AWS API Documentation
Request Syntax
response = client.update_dataset( datasetId='string', clientToken='string', description='string' )
- Parameters:
datasetId (string) –
[REQUIRED]
The unique identifier of the dataset to update.
clientToken (string) –
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don’t specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn’t return an error. For more information, see Ensuring idempotency.
This field is autopopulated if not provided.
description (string) – The updated description for the dataset.
- Return type:
dict
- Returns:
Response Syntax
{ 'datasetArn': 'string', 'datasetId': 'string', 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
datasetArn (string) –
The Amazon Resource Name (ARN) of the updated dataset.
datasetId (string) –
The unique identifier of the updated dataset.
updatedAt (datetime) –
The timestamp when the dataset was updated.
Exceptions
BedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.ConflictExceptionBedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException