CfnBotVersionPropsMixin

class aws_cdk.mixins_preview.aws_lex.mixins.CfnBotVersionPropsMixin(props, *, strategy=None)

Bases: Mixin

Amazon Lex V2 is the only supported version in CloudFormation .

Specifies a new version of the bot based on the DRAFT version. If the DRAFT version of this resource hasn’t changed since you created the last version, Amazon Lex doesn’t create a new version, it returns the last created version.

When you specify the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

see:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lex-botversion.html

cloudformationResource:

AWS::Lex::BotVersion

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_lex import mixins as lex_mixins

cfn_bot_version_props_mixin = lex_mixins.CfnBotVersionPropsMixin(lex_mixins.CfnBotVersionMixinProps(
    bot_id="botId",
    bot_version_locale_specification=[lex_mixins.CfnBotVersionPropsMixin.BotVersionLocaleSpecificationProperty(
        bot_version_locale_details=lex_mixins.CfnBotVersionPropsMixin.BotVersionLocaleDetailsProperty(
            source_bot_version="sourceBotVersion"
        ),
        locale_id="localeId"
    )],
    description="description"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Lex::BotVersion.

Parameters:
  • props (Union[CfnBotVersionMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

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 = ['botId', 'botVersionLocaleSpecification', 'description']

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

BotVersionLocaleDetailsProperty

class CfnBotVersionPropsMixin.BotVersionLocaleDetailsProperty(*, source_bot_version=None)

Bases: object

The version of a bot used for a bot locale.

Parameters:

source_bot_version (Optional[str]) – The version of a bot used for a bot locale.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botversion-botversionlocaledetails.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_lex import mixins as lex_mixins

bot_version_locale_details_property = lex_mixins.CfnBotVersionPropsMixin.BotVersionLocaleDetailsProperty(
    source_bot_version="sourceBotVersion"
)

Attributes

source_bot_version

The version of a bot used for a bot locale.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botversion-botversionlocaledetails.html#cfn-lex-botversion-botversionlocaledetails-sourcebotversion

BotVersionLocaleSpecificationProperty

class CfnBotVersionPropsMixin.BotVersionLocaleSpecificationProperty(*, bot_version_locale_details=None, locale_id=None)

Bases: object

Specifies the locale that Amazon Lex adds to this version.

You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.

Parameters:
  • bot_version_locale_details (Union[IResolvable, BotVersionLocaleDetailsProperty, Dict[str, Any], None]) – The version of a bot used for a bot locale.

  • locale_id (Optional[str]) – The identifier of the locale to add to the version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botversion-botversionlocalespecification.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_lex import mixins as lex_mixins

bot_version_locale_specification_property = lex_mixins.CfnBotVersionPropsMixin.BotVersionLocaleSpecificationProperty(
    bot_version_locale_details=lex_mixins.CfnBotVersionPropsMixin.BotVersionLocaleDetailsProperty(
        source_bot_version="sourceBotVersion"
    ),
    locale_id="localeId"
)

Attributes

bot_version_locale_details

The version of a bot used for a bot locale.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botversion-botversionlocalespecification.html#cfn-lex-botversion-botversionlocalespecification-botversionlocaledetails

locale_id

The identifier of the locale to add to the version.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botversion-botversionlocalespecification.html#cfn-lex-botversion-botversionlocalespecification-localeid