Class CfnTrainingDataset
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.cleanroomsml.CfnTrainingDataset
- All Implemented Interfaces:
IInspectable,ITrainingDatasetRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:06.320Z")
@Stability(Stable)
public class CfnTrainingDataset
extends CfnResource
implements IInspectable, ITrainingDatasetRef, ITaggableV2
Defines the information necessary to create a training dataset.
In Clean Rooms ML, the TrainingDataset is metadata that points to a Glue table, which is read only during AudienceModel creation.
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.cleanroomsml.*;
CfnTrainingDataset cfnTrainingDataset = CfnTrainingDataset.Builder.create(this, "MyCfnTrainingDataset")
.name("name")
.roleArn("roleArn")
.trainingData(List.of(DatasetProperty.builder()
.inputConfig(DatasetInputConfigProperty.builder()
.dataSource(DataSourceProperty.builder()
.glueDataSource(GlueDataSourceProperty.builder()
.databaseName("databaseName")
.tableName("tableName")
// the properties below are optional
.catalogId("catalogId")
.build())
.build())
.schema(List.of(ColumnSchemaProperty.builder()
.columnName("columnName")
.columnTypes(List.of("columnTypes"))
.build()))
.build())
.type("type")
.build()))
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTrainingDataset.static interfaceMetadata for a column.static interfaceDefines the Glue data source and schema mapping information.static interfaceDefines where the training dataset is located, what type of data it contains, and how to access the data.static interfaceDefines information about the Glue data source that contains the training data.static interfaceDefines the Glue data source that contains the training data.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cleanroomsml.ITrainingDatasetRef
ITrainingDatasetRef.Jsii$Default, ITrainingDatasetRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTrainingDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrainingDataset(software.amazon.jsii.JsiiObjectRef objRef) CfnTrainingDataset(software.constructs.Construct scope, String id, CfnTrainingDatasetProps props) Create a newAWS::CleanRoomsML::TrainingDataset. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTrainingDataset(ITrainingDatasetRef resource) The status of the training dataset.The Amazon Resource Name (ARN) of the training dataset.Tag Manager which manages the tags for this resource.The description of the training dataset.getName()The name of the training dataset.The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in thedataSourcefield of each dataset.getTags()The optional metadata that you apply to the resource to help you categorize and organize them.An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema.A reference to a TrainingDataset resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTrainingDataset.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the training dataset.voidThe name of the training dataset.voidsetRoleArn(String value) The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in thedataSourcefield of each dataset.voidThe optional metadata that you apply to the resource to help you categorize and organize them.voidsetTrainingData(List<Object> value) An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema.voidsetTrainingData(IResolvable value) An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, 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, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnTrainingDataset
protected CfnTrainingDataset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTrainingDataset
protected CfnTrainingDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTrainingDataset
@Stability(Stable) public CfnTrainingDataset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTrainingDatasetProps props) Create a newAWS::CleanRoomsML::TrainingDataset.- 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
-
arnForTrainingDataset
@Stability(Stable) @NotNull public static String arnForTrainingDataset(@NotNull ITrainingDatasetRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTrainingDataset
Checks whether the given object is a CfnTrainingDataset.- 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.
-
getAttrStatus
The status of the training dataset. -
getAttrTrainingDatasetArn
The Amazon Resource Name (ARN) of the training dataset. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTrainingDatasetRef
A reference to a TrainingDataset resource.- Specified by:
getTrainingDatasetRefin interfaceITrainingDatasetRef
-
getName
The name of the training dataset. -
setName
The name of the training dataset. -
getRoleArn
The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in thedataSourcefield of each dataset. -
setRoleArn
The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in thedataSourcefield of each dataset. -
getTrainingData
An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTrainingDataset.DatasetProperty> -
setTrainingData
An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. -
setTrainingData
An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. -
getDescription
The description of the training dataset. -
setDescription
The description of the training dataset. -
getTags
The optional metadata that you apply to the resource to help you categorize and organize them. -
setTags
The optional metadata that you apply to the resource to help you categorize and organize them.
-