Skip to content

Bedrock Agentcore Control  >  Operations  >  create_dataset_version

create_dataset_version

Operation

create_dataset_version async

create_dataset_version(input: CreateDatasetVersionInput, plugins: list[Plugin] | None = None) -> CreateDatasetVersionOutput

Publishes the current DRAFT as a new numbered version. The DRAFT is preserved and remains editable after publishing. Returns immediately with status UPDATING. Poll GetDataset until status transitions to ACTIVE or UPDATE_FAILED.

Parameters:

Name Type Description Default
input CreateDatasetVersionInput

An instance of CreateDatasetVersionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateDatasetVersionOutput

An instance of CreateDatasetVersionOutput.

Input

CreateDatasetVersionInput dataclass

Dataclass for CreateDatasetVersionInput structure.

Attributes

client_token class-attribute instance-attribute
client_token: str | None = None

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.

dataset_id class-attribute instance-attribute
dataset_id: str | None = None

The unique identifier of the dataset to publish a version for.

Output

CreateDatasetVersionOutput dataclass

Dataclass for CreateDatasetVersionOutput structure.

Attributes

created_at instance-attribute
created_at: datetime

The timestamp when the version creation was initiated.

dataset_arn instance-attribute
dataset_arn: str

The Amazon Resource Name (ARN) of the dataset.

dataset_id instance-attribute
dataset_id: str

The unique identifier of the dataset.

dataset_version instance-attribute
dataset_version: str

The version number being created.

status instance-attribute
status: DatasetStatus

Always UPDATING immediately after this call. Poll GetDataset until status transitions to ACTIVE or UPDATE_FAILED.