Create Dataset
| bedrockagentcorecontrol_create_dataset | R Documentation |
Creates a new Dataset resource asynchronously¶
Description¶
Creates a new Dataset resource asynchronously.
Returns immediately with status CREATING. Poll GetDataset until status transitions to ACTIVE or CREATE_FAILED (with failureReason).
Usage¶
bedrockagentcorecontrol_create_dataset(clientToken, datasetName,
description, source, schemaType, kmsKeyArn, tags)
Arguments¶
clientToken |
Optional idempotency token. |
datasetName |
[required] Human-readable name for the dataset. Unique within the account (case-insensitive). Immutable after creation. |
description |
A description of the dataset. |
source |
[required] Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file. |
schemaType |
[required] Versioned schema type governing the structure of examples. Immutable after creation. |
kmsKeyArn |
Optional AWS KMS key ARN for SSE-KMS on service S3 writes. |
tags |
A map of tag keys and values to assign to the dataset. |
Value¶
A list with the following syntax:
list(
datasetArn = "string",
datasetId = "string",
status = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
createdAt = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$create_dataset(
clientToken = "string",
datasetName = "string",
description = "string",
source = list(
inlineExamples = list(
examples = list(
list()
)
),
s3Source = list(
s3Uri = "string"
)
),
schemaType = "AGENTCORE_EVALUATION_PREDEFINED_V1"|"AGENTCORE_EVALUATION_SIMULATED_V1",
kmsKeyArn = "string",
tags = list(
"string"
)
)