CfnParallelDataPropsMixin

class aws_cdk.cfn_property_mixins.aws_translate.CfnParallelDataPropsMixin(props, *, strategy=None)

Bases: Mixin

A parallel data resource in Amazon Translate used to customize machine translation output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html

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 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.

EncryptionKeyProperty

class CfnParallelDataPropsMixin.EncryptionKeyProperty(*, id=None, type=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.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_translate as translate

encryption_key_property = translate.CfnParallelDataPropsMixin.EncryptionKeyProperty(
    id="id",
    type="type"
)

Attributes

id

The Amazon Resource Name (ARN) of the encryption key.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.html#cfn-translate-paralleldata-encryptionkey-id

type

The type of encryption key.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.html#cfn-translate-paralleldata-encryptionkey-type

ParallelDataConfigProperty

class CfnParallelDataPropsMixin.ParallelDataConfigProperty(*, format=None, s3_uri=None)

Bases: object

Specifies 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.html#cfn-translate-paralleldata-paralleldataconfig-format

s3_uri

The URI of the Amazon S3 folder that contains the parallel data input file.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.html#cfn-translate-paralleldata-paralleldataconfig-s3uri

TagsItemsProperty

class CfnParallelDataPropsMixin.TagsItemsProperty(*, key=None, value=None)

Bases: object

Parameters:
  • key (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.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_translate as translate

tags_items_property = translate.CfnParallelDataPropsMixin.TagsItemsProperty(
    key="key",
    value="value"
)

Attributes

key

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.html#cfn-translate-paralleldata-tagsitems-key

Type:

see

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.html#cfn-translate-paralleldata-tagsitems-value

Type:

see