Skip to content

Publishes the current DRAFT as a new numbered version

Description

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

Usage

bedrockagentcorecontrol_create_dataset_version(datasetId, clientToken)

Arguments

  • datasetId

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

  • clientToken

    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.

Value

A list with the following syntax:

list(
  datasetArn = "string",
  datasetId = "string",
  status = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
  datasetVersion = "string",
  createdAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$create_dataset_version(
  datasetId = "string",
  clientToken = "string"
)