Skip to content
v2.278.0

LexConfigurationProperty Struct ​

The configuration for an Amazon Lex V2 bot.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_chime as chime } from 'aws-cdk-lib';
const lexConfigurationProperty: chime.CfnAppInstanceBot.LexConfigurationProperty = {
  lexBotAliasArn: 'lexBotAliasArn',
  localeId: 'localeId',

  // the properties below are optional
  invokedBy: {
    standardMessages: 'standardMessages',
    targetedMessages: 'targetedMessages',
  },
  respondsTo: 'respondsTo',
  welcomeIntent: 'welcomeIntent',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_chime as chime

lex_configuration_property = chime.CfnAppInstanceBot.LexConfigurationProperty(
    lex_bot_alias_arn="lexBotAliasArn",
    locale_id="localeId",

    # the properties below are optional
    invoked_by=chime.CfnAppInstanceBot.InvokedByProperty(
        standard_messages="standardMessages",
        targeted_messages="targetedMessages"
    ),
    responds_to="respondsTo",
    welcome_intent="welcomeIntent"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.chime.*;

LexConfigurationProperty lexConfigurationProperty = LexConfigurationProperty.builder()
        .lexBotAliasArn("lexBotAliasArn")
        .localeId("localeId")

        // the properties below are optional
        .invokedBy(InvokedByProperty.builder()
                .standardMessages("standardMessages")
                .targetedMessages("targetedMessages")
                .build())
        .respondsTo("respondsTo")
        .welcomeIntent("welcomeIntent")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Chime;

var lexConfigurationProperty = new LexConfigurationProperty {
    LexBotAliasArn = "lexBotAliasArn",
    LocaleId = "localeId",

    // the properties below are optional
    InvokedBy = new InvokedByProperty {
        StandardMessages = "standardMessages",
        TargetedMessages = "targetedMessages"
    },
    RespondsTo = "respondsTo",
    WelcomeIntent = "welcomeIntent"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lexConfigurationProperty := &LexConfigurationProperty{
	LexBotAliasArn: jsii.String("lexBotAliasArn"),
	LocaleId: jsii.String("localeId"),

	// the properties below are optional
	InvokedBy: &InvokedByProperty{
		StandardMessages: jsii.String("standardMessages"),
		TargetedMessages: jsii.String("targetedMessages"),
	},
	RespondsTo: jsii.String("respondsTo"),
	WelcomeIntent: jsii.String("welcomeIntent"),
}

Properties ​

invokedByoptionalIResolvable | CfnAppInstanceBot.InvokedByPropertyinvoked_byoptionaltyping.Union[IResolvable, InvokedByProperty]invokedByoptionalIResolvableInvokedByoptionalIResolvableInvokedByoptionalinterface{} #
Specifies the type of message that triggers a bot.
lexBotAliasArnstringlex_bot_alias_arnstrlexBotAliasArnStringLexBotAliasArnstringLexBotAliasArn*string required #
The ARN of the Amazon Lex V2 bot's alias.
localeIdstringlocale_idstrlocaleIdStringLocaleIdstringLocaleId*string required #
Identifies the Amazon Lex V2 bot's language and locale.
respondsTooptionalstringresponds_tooptionalstrrespondsTooptionalStringRespondsTooptionalstringRespondsTooptional*string #
Determines whether the Amazon Lex V2 bot responds to all standard messages.

Control messages are not supported.

welcomeIntentoptionalstringwelcome_intentoptionalstrwelcomeIntentoptionalStringWelcomeIntentoptionalstringWelcomeIntentoptional*string #
The name of the welcome intent configured in the Amazon Lex V2 bot.