CfnParallelDataPropsMixin
- class aws_cdk.cfn_property_mixins.aws_translate.CfnParallelDataPropsMixin(props, *, strategy=None)
Bases:
MixinA parallel data resource in Amazon Translate used to customize machine translation output.
- See:
- CloudformationResource:
AWS::Translate::ParallelData
- 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_translate as translate import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_parallel_data_props_mixin = translate.CfnParallelDataPropsMixin(translate.CfnParallelDataMixinProps( description="description", encryption_key=translate.CfnParallelDataPropsMixin.EncryptionKeyProperty( id="id", type="type" ), name="name", parallel_data_config=translate.CfnParallelDataPropsMixin.ParallelDataConfigProperty( format="format", s3_uri="s3Uri" ), tags=[translate.CfnParallelDataPropsMixin.TagsItemsProperty( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Translate::ParallelData.- Parameters:
props (
Union[CfnParallelDataMixinProps,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', 'encryptionKey', 'name', 'parallelDataConfig', '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.
EncryptionKeyProperty
- class CfnParallelDataPropsMixin.EncryptionKeyProperty(*, id=None, type=None)
Bases:
objectThe encryption key used to encrypt this object.
- Parameters:
id (
Optional[str]) – The Amazon Resource Name (ARN) of the encryption key.type (
Optional[str]) – The type of encryption key.
- 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_translate as translate encryption_key_property = translate.CfnParallelDataPropsMixin.EncryptionKeyProperty( id="id", type="type" )
Attributes
- id
The Amazon Resource Name (ARN) of the encryption key.
ParallelDataConfigProperty
- class CfnParallelDataPropsMixin.ParallelDataConfigProperty(*, format=None, s3_uri=None)
Bases:
objectSpecifies the format and S3 location of the parallel data input file.
- Parameters:
format (
Optional[str]) – The format of the parallel data input file.s3_uri (
Optional[str]) – The URI of the Amazon S3 folder that contains the parallel data input file.
- 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_translate as translate parallel_data_config_property = translate.CfnParallelDataPropsMixin.ParallelDataConfigProperty( format="format", s3_uri="s3Uri" )
Attributes
- format
The format of the parallel data input file.
- s3_uri
The URI of the Amazon S3 folder that contains the parallel data input file.