Class CfnDataset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrockagentcore.CfnDataset
- All Implemented Interfaces:
IInspectable,IDatasetRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-06-11T16:21:36.787Z")
@Stability(Stable)
public class CfnDataset
extends CfnResource
implements IInspectable, IDatasetRef, ITaggableV2
Definition of AWS::BedrockAgentCore::Dataset Resource Type.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
Object examples;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.datasetName("datasetName")
.schemaType("schemaType")
// the properties below are optional
.description("description")
.kmsKeyArn("kmsKeyArn")
.source(DataSourceTypeProperty.builder()
.inlineExamples(InlineExamplesSourceProperty.builder()
.examples(List.of(examples))
.build())
.s3Source(S3SourceProperty.builder()
.s3Uri("s3Uri")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataset.static interfaceSource of initial examples.static interfaceInline examples provided directly in the request body.static interfaceS3 location of a JSONL file containing dataset examples.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IDatasetRef
IDatasetRef.Jsii$Default, IDatasetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataset(software.amazon.jsii.JsiiObjectRef objRef) CfnDataset(software.constructs.Construct scope, String id, CfnDatasetProps props) Create a newAWS::BedrockAgentCore::Dataset. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDataset(IDatasetRef resource) The timestamp when the dataset was created.The Amazon Resource Name (ARN) of the dataset.The unique identifier of the dataset.The number of examples in the dataset DRAFT.The current status of the dataset.The timestamp when the dataset was last updated.Tag Manager which manages the tags for this resource.Human-readable name for the dataset.A reference to a Dataset resource.A description of the dataset.Optional AWS KMS key ARN for SSE-KMS on service S3 writes.Versioned schema type governing the structure of examples.Source of initial examples.getTags()A list of tags to assign to the dataset.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDataset.renderProperties(Map<String, Object> props) voidsetDatasetName(String value) Human-readable name for the dataset.voidsetDescription(String value) A description of the dataset.voidsetKmsKeyArn(String value) Optional AWS KMS key ARN for SSE-KMS on service S3 writes.voidsetSchemaType(String value) Versioned schema type governing the structure of examples.voidsetSource(IResolvable value) Source of initial examples.voidSource of initial examples.voidA list of tags to assign to the dataset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataset
@Stability(Stable) public CfnDataset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDatasetProps props) Create a newAWS::BedrockAgentCore::Dataset.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForDataset
- Parameters:
resource- This parameter is required.
-
isCfnDataset
Checks whether the given object is a CfnDataset.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The timestamp when the dataset was created. -
getAttrDatasetArn
The Amazon Resource Name (ARN) of the dataset. -
getAttrDatasetId
The unique identifier of the dataset. -
getAttrExampleCount
The number of examples in the dataset DRAFT. -
getAttrStatus
The current status of the dataset. -
getAttrUpdatedAt
The timestamp when the dataset was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getDatasetRef
A reference to a Dataset resource.- Specified by:
getDatasetRefin interfaceIDatasetRef
-
getDatasetName
Human-readable name for the dataset. -
setDatasetName
Human-readable name for the dataset. -
getSchemaType
Versioned schema type governing the structure of examples. -
setSchemaType
Versioned schema type governing the structure of examples. -
getDescription
A description of the dataset. -
setDescription
A description of the dataset. -
getKmsKeyArn
Optional AWS KMS key ARN for SSE-KMS on service S3 writes. -
setKmsKeyArn
Optional AWS KMS key ARN for SSE-KMS on service S3 writes. -
getSource
Source of initial examples.Returns union: either
IResolvableorCfnDataset.DataSourceTypeProperty -
setSource
Source of initial examples. -
setSource
Source of initial examples. -
getTags
A list of tags to assign to the dataset. -
setTags
A list of tags to assign to the dataset.
-