CfnDatasetPropsMixin
- class aws_cdk.cfn_property_mixins.aws_scn.CfnDatasetPropsMixin(props, *, strategy=None)
Bases:
MixinRepresents an AWS Supply Chain data lake dataset.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
- CloudformationResource:
AWS::SCN::Dataset
- 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.cfn_property_mixins import aws_scn as scn import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_dataset_props_mixin = scn.CfnDatasetPropsMixin(scn.CfnDatasetMixinProps( description="description", instance_id="instanceId", name="name", namespace="namespace", partition_spec=scn.CfnDatasetPropsMixin.PartitionSpecProperty( fields=[scn.CfnDatasetPropsMixin.DataLakeDatasetPartitionFieldProperty( name="name", transform=scn.CfnDatasetPropsMixin.TransformProperty( type="type" ) )] ), schema=scn.CfnDatasetPropsMixin.SchemaProperty( fields=[scn.CfnDatasetPropsMixin.DataLakeDatasetSchemaFieldProperty( is_required=False, name="name", type="type" )], name="name", primary_keys=[scn.CfnDatasetPropsMixin.DataLakeDatasetPrimaryKeyFieldProperty( name="name" )] ), tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::SCN::Dataset.- Parameters:
props (
Union[CfnDatasetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'instanceId', 'name', 'namespace', 'partitionSpec', 'schema', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
DataLakeDatasetPartitionFieldProperty
- class CfnDatasetPropsMixin.DataLakeDatasetPartitionFieldProperty(*, name=None, transform=None)
Bases:
objectThe partition field details.
- Parameters:
name (
Optional[str]) – The name of the partition field.transform (
Union[IResolvable,TransformProperty,Dict[str,Any],None]) – The transformation of the partition field.
- See:
- 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.cfn_property_mixins import aws_scn as scn data_lake_dataset_partition_field_property = scn.CfnDatasetPropsMixin.DataLakeDatasetPartitionFieldProperty( name="name", transform=scn.CfnDatasetPropsMixin.TransformProperty( type="type" ) )
Attributes
- name
The name of the partition field.
- transform
The transformation of the partition field.
DataLakeDatasetPrimaryKeyFieldProperty
- class CfnDatasetPropsMixin.DataLakeDatasetPrimaryKeyFieldProperty(*, name=None)
Bases:
objectThe primary key field details.
- Parameters:
name (
Optional[str]) – The name of the primary key field.- See:
- 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.cfn_property_mixins import aws_scn as scn data_lake_dataset_primary_key_field_property = scn.CfnDatasetPropsMixin.DataLakeDatasetPrimaryKeyFieldProperty( name="name" )
Attributes
- name
The name of the primary key field.
DataLakeDatasetSchemaFieldProperty
- class CfnDatasetPropsMixin.DataLakeDatasetSchemaFieldProperty(*, is_required=None, name=None, type=None)
Bases:
objectThe dataset field details.
- Parameters:
is_required (
Union[bool,IResolvable,None]) – Indicate if the field is required or not.name (
Optional[str]) – The dataset field name.type (
Optional[str]) – The dataset field type.
- See:
- 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.cfn_property_mixins import aws_scn as scn data_lake_dataset_schema_field_property = scn.CfnDatasetPropsMixin.DataLakeDatasetSchemaFieldProperty( is_required=False, name="name", type="type" )
Attributes
- is_required
Indicate if the field is required or not.
- name
The dataset field name.
PartitionSpecProperty
- class CfnDatasetPropsMixin.PartitionSpecProperty(*, fields=None)
Bases:
objectThe partition specification of the dataset.
- Parameters:
fields (
Union[IResolvable,Sequence[Union[IResolvable,DataLakeDatasetPartitionFieldProperty,Dict[str,Any]]],None]) – The partition fields.- See:
- 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.cfn_property_mixins import aws_scn as scn partition_spec_property = scn.CfnDatasetPropsMixin.PartitionSpecProperty( fields=[scn.CfnDatasetPropsMixin.DataLakeDatasetPartitionFieldProperty( name="name", transform=scn.CfnDatasetPropsMixin.TransformProperty( type="type" ) )] )
Attributes
SchemaProperty
- class CfnDatasetPropsMixin.SchemaProperty(*, fields=None, name=None, primary_keys=None)
Bases:
objectThe schema of the dataset.
- Parameters:
fields (
Union[IResolvable,Sequence[Union[IResolvable,DataLakeDatasetSchemaFieldProperty,Dict[str,Any]]],None]) – The list of field details of the dataset schema.name (
Optional[str]) – The name of the dataset schema.primary_keys (
Union[IResolvable,Sequence[Union[IResolvable,DataLakeDatasetPrimaryKeyFieldProperty,Dict[str,Any]]],None]) – The list of primary key fields for the dataset.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-scn-dataset-schema.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.cfn_property_mixins import aws_scn as scn schema_property = scn.CfnDatasetPropsMixin.SchemaProperty( fields=[scn.CfnDatasetPropsMixin.DataLakeDatasetSchemaFieldProperty( is_required=False, name="name", type="type" )], name="name", primary_keys=[scn.CfnDatasetPropsMixin.DataLakeDatasetPrimaryKeyFieldProperty( name="name" )] )
Attributes
- fields
The list of field details of the dataset schema.
- name
The name of the dataset schema.
- primary_keys
The list of primary key fields for the dataset.
TransformProperty
- class CfnDatasetPropsMixin.TransformProperty(*, type=None)
Bases:
objectThe transformation of the partition field.
- Parameters:
type (
Optional[str]) – The type of partitioning transformation.- See:
- 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.cfn_property_mixins import aws_scn as scn transform_property = scn.CfnDatasetPropsMixin.TransformProperty( type="type" )
Attributes
- type
The type of partitioning transformation.