BedrockAgentCoreControl / Client / update_dataset_examples
update_dataset_examples¶
- BedrockAgentCoreControl.Client.update_dataset_examples(**kwargs)¶
Updates multiple existing examples in-place on DRAFT. All examples are validated against the dataset’s schema type before any writes occur. If any example fails validation, the entire batch is rejected (all-or-nothing semantics).
See also: AWS API Documentation
Request Syntax
response = client.update_dataset_examples( datasetId='string', clientToken='string', examples=[ {...}|[...]|123|123.4|'string'|True|None, ] )
- Parameters:
datasetId (string) –
[REQUIRED]
The unique identifier of the dataset.
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.
examples (list) –
[REQUIRED]
Examples to update. Each element is a JSON object containing a required
exampleIdfield identifying the existing example, plus the replacement fields. Maximum 1000 examples per call.(document) –
- Return type:
dict
- Returns:
Response Syntax
{ 'datasetArn': 'string', 'datasetId': 'string', 'status': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED', 'updatedCount': 123, 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
datasetArn (string) –
The Amazon Resource Name (ARN) of the dataset.
datasetId (string) –
The unique identifier of the dataset.
status (string) –
The current status of the dataset.
updatedCount (integer) –
The number of examples updated.
updatedAt (datetime) –
The timestamp when the examples were updated.
Exceptions
BedrockAgentCoreControl.Client.exceptions.ServiceQuotaExceededExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.ConflictExceptionBedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException