CfnTrainingDatasetPropsMixin

class aws_cdk.mixins_preview.aws_cleanroomsml.mixins.CfnTrainingDatasetPropsMixin(props, *, strategy=None)

Bases: Mixin

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanroomsml-trainingdataset.html

CloudformationResource:

AWS::CleanRoomsML::TrainingDataset

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

cfn_training_dataset_props_mixin = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin(cleanroomsml_mixins.CfnTrainingDatasetMixinProps(
    description="description",
    name="name",
    role_arn="roleArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    training_data=[cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DatasetProperty(
        input_config=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DatasetInputConfigProperty(
            data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DataSourceProperty(
                glue_data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(
                    catalog_id="catalogId",
                    database_name="databaseName",
                    table_name="tableName"
                )
            ),
            schema=[cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.ColumnSchemaProperty(
                column_name="columnName",
                column_types=["columnTypes"]
            )]
        ),
        type="type"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::CleanRoomsML::TrainingDataset.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'name', 'roleArn', 'tags', 'trainingData']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

ColumnSchemaProperty

class CfnTrainingDatasetPropsMixin.ColumnSchemaProperty(*, column_name=None, column_types=None)

Bases: object

Metadata for a column.

Parameters:
  • column_name (Optional[str]) – The name of a column.

  • column_types (Optional[Sequence[str]]) – The data type of column.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-columnschema.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

column_schema_property = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.ColumnSchemaProperty(
    column_name="columnName",
    column_types=["columnTypes"]
)

Attributes

column_name

The name of a column.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-columnschema.html#cfn-cleanroomsml-trainingdataset-columnschema-columnname

column_types

The data type of column.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-columnschema.html#cfn-cleanroomsml-trainingdataset-columnschema-columntypes

DataSourceProperty

class CfnTrainingDatasetPropsMixin.DataSourceProperty(*, glue_data_source=None)

Bases: object

Defines information about the Glue data source that contains the training data.

Parameters:

glue_data_source (Union[IResolvable, GlueDataSourceProperty, Dict[str, Any], None]) – A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-datasource.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

data_source_property = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DataSourceProperty(
    glue_data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(
        catalog_id="catalogId",
        database_name="databaseName",
        table_name="tableName"
    )
)

Attributes

glue_data_source

A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-datasource.html#cfn-cleanroomsml-trainingdataset-datasource-gluedatasource

DatasetInputConfigProperty

class CfnTrainingDatasetPropsMixin.DatasetInputConfigProperty(*, data_source=None, schema=None)

Bases: object

Defines the Glue data source and schema mapping information.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-datasetinputconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

dataset_input_config_property = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DatasetInputConfigProperty(
    data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DataSourceProperty(
        glue_data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(
            catalog_id="catalogId",
            database_name="databaseName",
            table_name="tableName"
        )
    ),
    schema=[cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.ColumnSchemaProperty(
        column_name="columnName",
        column_types=["columnTypes"]
    )]
)

Attributes

data_source

A DataSource object that specifies the Glue data source for the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-datasetinputconfig.html#cfn-cleanroomsml-trainingdataset-datasetinputconfig-datasource

schema

The schema information for the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-datasetinputconfig.html#cfn-cleanroomsml-trainingdataset-datasetinputconfig-schema

DatasetProperty

class CfnTrainingDatasetPropsMixin.DatasetProperty(*, input_config=None, type=None)

Bases: object

Defines where the training dataset is located, what type of data it contains, and how to access the data.

Parameters:
  • input_config (Union[IResolvable, DatasetInputConfigProperty, Dict[str, Any], None]) – A DatasetInputConfig object that defines the data source and schema mapping.

  • type (Optional[str]) – What type of information is found in the dataset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-dataset.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

dataset_property = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DatasetProperty(
    input_config=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DatasetInputConfigProperty(
        data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.DataSourceProperty(
            glue_data_source=cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(
                catalog_id="catalogId",
                database_name="databaseName",
                table_name="tableName"
            )
        ),
        schema=[cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.ColumnSchemaProperty(
            column_name="columnName",
            column_types=["columnTypes"]
        )]
    ),
    type="type"
)

Attributes

input_config

A DatasetInputConfig object that defines the data source and schema mapping.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-dataset.html#cfn-cleanroomsml-trainingdataset-dataset-inputconfig

type

What type of information is found in the dataset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-dataset.html#cfn-cleanroomsml-trainingdataset-dataset-type

GlueDataSourceProperty

class CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(*, catalog_id=None, database_name=None, table_name=None)

Bases: object

Defines the Glue data source that contains the training data.

Parameters:
  • catalog_id (Optional[str]) – The Glue catalog that contains the training data.

  • database_name (Optional[str]) – The Glue database that contains the training data.

  • table_name (Optional[str]) – The Glue table that contains the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-gluedatasource.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_cleanroomsml import mixins as cleanroomsml_mixins

glue_data_source_property = cleanroomsml_mixins.CfnTrainingDatasetPropsMixin.GlueDataSourceProperty(
    catalog_id="catalogId",
    database_name="databaseName",
    table_name="tableName"
)

Attributes

catalog_id

The Glue catalog that contains the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-gluedatasource.html#cfn-cleanroomsml-trainingdataset-gluedatasource-catalogid

database_name

The Glue database that contains the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-gluedatasource.html#cfn-cleanroomsml-trainingdataset-gluedatasource-databasename

table_name

The Glue table that contains the training data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanroomsml-trainingdataset-gluedatasource.html#cfn-cleanroomsml-trainingdataset-gluedatasource-tablename