# CfnDatasetProps

Properties for defining a `CfnDataset`.

Extends: CfnDatasetProps
Used as props by: CfnDataset

- Source: Generated code
- Type last changed: v2.258.0 · 4 Jun 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';

declare const examples: any;
const cfnDatasetProps: bedrockagentcore.CfnDatasetProps = {
  datasetName: 'datasetName',
  schemaType: 'schemaType',

  // the properties below are optional
  description: 'description',
  kmsKeyArn: 'kmsKeyArn',
  source: {
    inlineExamples: {
      examples: [examples],
    },
    s3Source: {
      s3Uri: 's3Uri',
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `datasetName`: string (required) — Human-readable name for the dataset.

  Unique within the account (case-insensitive). Immutable after creation.

- `description`: string — A description of the dataset.

- `kmsKeyArn`: string — Optional AWS KMS key ARN for SSE-KMS on service S3 writes.

- `schemaType`: string (required) — Versioned schema type governing the structure of examples.

  Immutable after creation.

- `source`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.DataSourceTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnDataset.DataSourceTypeProperty.html) — Source of initial examples.

  Provide either inline examples or an S3 URI pointing to a JSONL file.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to assign to the dataset.
