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.scn.CfnDataset
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDatasetRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:11.765Z")
@Stability(Stable)
public class CfnDataset
extends CfnResource
implements IInspectable, IDatasetRef, ITaggableV2
Represents an AWS Supply Chain data lake dataset.
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.scn.*;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.instanceId("instanceId")
.name("name")
.namespace("namespace")
// the properties below are optional
.description("description")
.partitionSpec(PartitionSpecProperty.builder()
.fields(List.of(DataLakeDatasetPartitionFieldProperty.builder()
.name("name")
.transform(TransformProperty.builder()
.type("type")
.build())
.build()))
.build())
.schema(SchemaProperty.builder()
.fields(List.of(DataLakeDatasetSchemaFieldProperty.builder()
.isRequired(false)
.name("name")
.type("type")
.build()))
.name("name")
// the properties below are optional
.primaryKeys(List.of(DataLakeDatasetPrimaryKeyFieldProperty.builder()
.name("name")
.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 interfaceThe partition field details.static interfaceThe primary key field details.static interfaceThe dataset field details.static interfaceThe partition specification of the dataset.static interfaceThe schema of the dataset.static interfaceThe transformation of the partition field.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.scn.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::SCN::Dataset. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDataset(IDatasetRef resource) The Amazon Resource Name (ARN) of the dataset.The creation time of the dataset.The last modified time of the dataset.Tag Manager which manages the tags for this resource.A reference to a Dataset resource.The description of the dataset.The Amazon Web Services Supply Chain instance identifier.getName()The name of the dataset.The namespace of the dataset.The partition specification of the dataset.The schema of the dataset.getTags()The tags for 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) voidsetDescription(String value) The description of the dataset.voidsetInstanceId(String value) The Amazon Web Services Supply Chain instance identifier.voidThe name of the dataset.voidsetNamespace(String value) The namespace of the dataset.voidsetPartitionSpec(IResolvable value) The partition specification of the dataset.voidThe partition specification of the dataset.voidsetSchema(IResolvable value) The schema of the dataset.voidThe schema of the dataset.voidThe tags for the dataset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, 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::SCN::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.
-
getAttrArn
The Amazon Resource Name (ARN) of the dataset. -
getAttrCreatedTime
The creation time of the dataset. -
getAttrLastModifiedTime
The last modified time of the dataset. -
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
-
getInstanceId
The Amazon Web Services Supply Chain instance identifier. -
setInstanceId
The Amazon Web Services Supply Chain instance identifier. -
getName
The name of the dataset. -
setName
The name of the dataset. -
getNamespace
The namespace of the dataset. -
setNamespace
The namespace of the dataset. -
getDescription
The description of the dataset. -
setDescription
The description of the dataset. -
getPartitionSpec
The partition specification of the dataset.Returns union: either
IResolvableorCfnDataset.PartitionSpecProperty -
setPartitionSpec
The partition specification of the dataset. -
setPartitionSpec
The partition specification of the dataset. -
getSchema
The schema of the dataset.Returns union: either
IResolvableorCfnDataset.SchemaProperty -
setSchema
The schema of the dataset. -
setSchema
The schema of the dataset. -
getTags
The tags for the dataset. -
setTags
The tags for the dataset.
-