CfnBotPropsMixin
- class aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin(props, *, strategy=None)
Bases:
MixinAmazon Lex V2 is the only supported version in CloudFormation .
Specifies an Amazon Lex conversational bot.
You must configure an intent based on the
AMAZON.FallbackIntentbuilt-in intent. If you don’t add one, creating the bot will fail.- see:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lex-bot.html
- cloudformationResource:
AWS::Lex::Bot
- mixin:
true
- exampleMetadata:
fixture=_generated
Example:
Create a mixin to apply properties to
AWS::Lex::Bot.- Parameters:
props (
Union[CfnBotMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['autoBuildBotLocales', 'botFileS3Location', 'botLocales', 'botTags', 'dataPrivacy', 'description', 'errorLogSettings', 'idleSessionTtlInSeconds', 'name', 'replication', 'roleArn', 'testBotAliasSettings', 'testBotAliasTags']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental
AdvancedRecognitionSettingProperty
- class CfnBotPropsMixin.AdvancedRecognitionSettingProperty(*, audio_recognition_strategy=None)
Bases:
objectProvides settings that enable advanced recognition settings for slot values.
- Parameters:
audio_recognition_strategy (
Optional[str]) – Enables using the slot values as a custom vocabulary for recognizing user utterances.- 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.mixins_preview.aws_lex import mixins as lex_mixins advanced_recognition_setting_property = lex_mixins.CfnBotPropsMixin.AdvancedRecognitionSettingProperty( audio_recognition_strategy="audioRecognitionStrategy" )
Attributes
- audio_recognition_strategy
Enables using the slot values as a custom vocabulary for recognizing user utterances.
AllowedInputTypesProperty
- class CfnBotPropsMixin.AllowedInputTypesProperty(*, allow_audio_input=None, allow_dtmf_input=None)
Bases:
objectSpecifies the allowed input types.
- Parameters:
allow_audio_input (
Union[bool,IResolvable,None]) – Indicates whether audio input is allowed.allow_dtmf_input (
Union[bool,IResolvable,None]) – Indicates whether DTMF input is allowed.
- 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.mixins_preview.aws_lex import mixins as lex_mixins allowed_input_types_property = lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False )
Attributes
- allow_audio_input
Indicates whether audio input is allowed.
- allow_dtmf_input
Indicates whether DTMF input is allowed.
AudioAndDTMFInputSpecificationProperty
- class CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty(*, audio_specification=None, dtmf_specification=None, start_timeout_ms=None)
Bases:
objectSpecifies the audio and DTMF input specification.
- Parameters:
audio_specification (
Union[IResolvable,AudioSpecificationProperty,Dict[str,Any],None]) – Specifies the settings on audio input.dtmf_specification (
Union[IResolvable,DTMFSpecificationProperty,Dict[str,Any],None]) – Specifies the settings on DTMF input.start_timeout_ms (
Union[int,float,None]) – Time for which a bot waits before assuming that the customer isn’t going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
- 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.mixins_preview.aws_lex import mixins as lex_mixins audio_and_dTMFInput_specification_property = lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 )
Attributes
- audio_specification
Specifies the settings on audio input.
- dtmf_specification
Specifies the settings on DTMF input.
- start_timeout_ms
Time for which a bot waits before assuming that the customer isn’t going to speak or press a key.
This timeout is shared between Audio and DTMF inputs.
AudioLogDestinationProperty
- class CfnBotPropsMixin.AudioLogDestinationProperty(*, s3_bucket=None)
Bases:
objectThe location of audio log files collected when conversation logging is enabled for a bot.
- Parameters:
s3_bucket (
Union[IResolvable,S3BucketLogDestinationProperty,Dict[str,Any],None]) – Specifies the Amazon S3 bucket where the audio files are stored.- 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.mixins_preview.aws_lex import mixins as lex_mixins audio_log_destination_property = lex_mixins.CfnBotPropsMixin.AudioLogDestinationProperty( s3_bucket=lex_mixins.CfnBotPropsMixin.S3BucketLogDestinationProperty( kms_key_arn="kmsKeyArn", log_prefix="logPrefix", s3_bucket_arn="s3BucketArn" ) )
Attributes
- s3_bucket
Specifies the Amazon S3 bucket where the audio files are stored.
AudioLogSettingProperty
- class CfnBotPropsMixin.AudioLogSettingProperty(*, destination=None, enabled=None)
Bases:
objectSettings for logging audio of conversations between Amazon Lex and a user.
You specify whether to log audio and the Amazon S3 bucket where the audio file is stored.
- Parameters:
destination (
Union[IResolvable,AudioLogDestinationProperty,Dict[str,Any],None]) – Specifies the location of the audio log files collected when conversation logging is enabled for a bot.enabled (
Union[bool,IResolvable,None]) – Determines whether audio logging in enabled for the bot.
- 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.mixins_preview.aws_lex import mixins as lex_mixins audio_log_setting_property = lex_mixins.CfnBotPropsMixin.AudioLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.AudioLogDestinationProperty( s3_bucket=lex_mixins.CfnBotPropsMixin.S3BucketLogDestinationProperty( kms_key_arn="kmsKeyArn", log_prefix="logPrefix", s3_bucket_arn="s3BucketArn" ) ), enabled=False )
Attributes
- destination
Specifies the location of the audio log files collected when conversation logging is enabled for a bot.
- enabled
Determines whether audio logging in enabled for the bot.
AudioSpecificationProperty
- class CfnBotPropsMixin.AudioSpecificationProperty(*, end_timeout_ms=None, max_length_ms=None)
Bases:
objectSpecifies the audio input specifications.
- Parameters:
end_timeout_ms (
Union[int,float,None]) – Time for which a bot waits after the customer stops speaking to assume the utterance is finished.max_length_ms (
Union[int,float,None]) – Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
- 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.mixins_preview.aws_lex import mixins as lex_mixins audio_specification_property = lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 )
Attributes
- end_timeout_ms
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
- max_length_ms
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
BKBExactResponseFieldsProperty
- class CfnBotPropsMixin.BKBExactResponseFieldsProperty(*, answer_field=None)
Bases:
object- Parameters:
answer_field (
Optional[str])- 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.mixins_preview.aws_lex import mixins as lex_mixins b_kBExact_response_fields_property = lex_mixins.CfnBotPropsMixin.BKBExactResponseFieldsProperty( answer_field="answerField" )
Attributes
BedrockAgentConfigurationProperty
- class CfnBotPropsMixin.BedrockAgentConfigurationProperty(*, bedrock_agent_alias_id=None, bedrock_agent_id=None)
Bases:
object- Parameters:
bedrock_agent_alias_id (
Optional[str])bedrock_agent_id (
Optional[str])
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_agent_configuration_property = lex_mixins.CfnBotPropsMixin.BedrockAgentConfigurationProperty( bedrock_agent_alias_id="bedrockAgentAliasId", bedrock_agent_id="bedrockAgentId" )
Attributes
- bedrock_agent_alias_id
-
- Type:
see
BedrockAgentIntentConfigurationProperty
- class CfnBotPropsMixin.BedrockAgentIntentConfigurationProperty(*, bedrock_agent_configuration=None, bedrock_agent_intent_knowledge_base_configuration=None)
Bases:
object- Parameters:
bedrock_agent_configuration (
Union[IResolvable,BedrockAgentConfigurationProperty,Dict[str,Any],None])bedrock_agent_intent_knowledge_base_configuration (
Union[IResolvable,BedrockAgentIntentKnowledgeBaseConfigurationProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_agent_intent_configuration_property = lex_mixins.CfnBotPropsMixin.BedrockAgentIntentConfigurationProperty( bedrock_agent_configuration=lex_mixins.CfnBotPropsMixin.BedrockAgentConfigurationProperty( bedrock_agent_alias_id="bedrockAgentAliasId", bedrock_agent_id="bedrockAgentId" ), bedrock_agent_intent_knowledge_base_configuration=lex_mixins.CfnBotPropsMixin.BedrockAgentIntentKnowledgeBaseConfigurationProperty( bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn", bedrock_model_configuration=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ) ) )
Attributes
- bedrock_agent_configuration
-
- Type:
see
- bedrock_agent_intent_knowledge_base_configuration
-
- Type:
see
BedrockAgentIntentKnowledgeBaseConfigurationProperty
- class CfnBotPropsMixin.BedrockAgentIntentKnowledgeBaseConfigurationProperty(*, bedrock_knowledge_base_arn=None, bedrock_model_configuration=None)
Bases:
object- Parameters:
bedrock_knowledge_base_arn (
Optional[str])bedrock_model_configuration (
Union[IResolvable,BedrockModelSpecificationProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_agent_intent_knowledge_base_configuration_property = lex_mixins.CfnBotPropsMixin.BedrockAgentIntentKnowledgeBaseConfigurationProperty( bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn", bedrock_model_configuration=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ) )
Attributes
- bedrock_knowledge_base_arn
-
- Type:
see
BedrockGuardrailConfigurationProperty
- class CfnBotPropsMixin.BedrockGuardrailConfigurationProperty(*, bedrock_guardrail_identifier=None, bedrock_guardrail_version=None)
Bases:
objectThe details on the Bedrock guardrail configuration.
- Parameters:
bedrock_guardrail_identifier (
Optional[str])bedrock_guardrail_version (
Optional[str])
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_guardrail_configuration_property = lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" )
Attributes
- bedrock_guardrail_identifier
-
- Type:
see
BedrockKnowledgeStoreConfigurationProperty
- class CfnBotPropsMixin.BedrockKnowledgeStoreConfigurationProperty(*, bedrock_knowledge_base_arn=None, bkb_exact_response_fields=None, exact_response=None)
Bases:
objectContains details about the configuration of a Amazon Bedrock knowledge base.
- Parameters:
bedrock_knowledge_base_arn (
Optional[str]) – The base ARN of the knowledge base used.bkb_exact_response_fields (
Union[IResolvable,BKBExactResponseFieldsProperty,Dict[str,Any],None])exact_response (
Union[bool,IResolvable,None]) – Specifies whether to return an exact response, or to return an answer generated by the model, using the fields you specify from the database.
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_knowledge_store_configuration_property = lex_mixins.CfnBotPropsMixin.BedrockKnowledgeStoreConfigurationProperty( bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn", bkb_exact_response_fields=lex_mixins.CfnBotPropsMixin.BKBExactResponseFieldsProperty( answer_field="answerField" ), exact_response=False )
Attributes
- bedrock_knowledge_base_arn
The base ARN of the knowledge base used.
- bkb_exact_response_fields
-
- Type:
see
- exact_response
Specifies whether to return an exact response, or to return an answer generated by the model, using the fields you specify from the database.
BedrockModelSpecificationProperty
- class CfnBotPropsMixin.BedrockModelSpecificationProperty(*, bedrock_guardrail_configuration=None, bedrock_model_custom_prompt=None, bedrock_trace_status=None, model_arn=None)
Bases:
objectContains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
- Parameters:
bedrock_guardrail_configuration (
Union[IResolvable,BedrockGuardrailConfigurationProperty,Dict[str,Any],None])bedrock_model_custom_prompt (
Optional[str])bedrock_trace_status (
Optional[str])model_arn (
Optional[str]) – The ARN of the foundation model used in descriptive bot building.
- 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.mixins_preview.aws_lex import mixins as lex_mixins bedrock_model_specification_property = lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" )
Attributes
- bedrock_guardrail_configuration
-
- Type:
see
- bedrock_model_custom_prompt
-
- Type:
see
- bedrock_trace_status
-
- Type:
see
- model_arn
The ARN of the foundation model used in descriptive bot building.
BotAliasLocaleSettingsItemProperty
- class CfnBotPropsMixin.BotAliasLocaleSettingsItemProperty(*, bot_alias_locale_setting=None, locale_id=None)
Bases:
objectSpecifies locale settings for a single locale.
- Parameters:
bot_alias_locale_setting (
Union[IResolvable,BotAliasLocaleSettingsProperty,Dict[str,Any],None]) – Specifies locale settings for a locale.locale_id (
Optional[str]) – Specifies the locale that the settings apply to.
- 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.mixins_preview.aws_lex import mixins as lex_mixins bot_alias_locale_settings_item_property = lex_mixins.CfnBotPropsMixin.BotAliasLocaleSettingsItemProperty( bot_alias_locale_setting=lex_mixins.CfnBotPropsMixin.BotAliasLocaleSettingsProperty( code_hook_specification=lex_mixins.CfnBotPropsMixin.CodeHookSpecificationProperty( lambda_code_hook=lex_mixins.CfnBotPropsMixin.LambdaCodeHookProperty( code_hook_interface_version="codeHookInterfaceVersion", lambda_arn="lambdaArn" ) ), enabled=False ), locale_id="localeId" )
Attributes
- bot_alias_locale_setting
Specifies locale settings for a locale.
- locale_id
Specifies the locale that the settings apply to.
BotAliasLocaleSettingsProperty
- class CfnBotPropsMixin.BotAliasLocaleSettingsProperty(*, code_hook_specification=None, enabled=None)
Bases:
objectSpecifies settings that are unique to a locale.
For example, you can use different Lambda function depending on the bot’s locale.
- Parameters:
code_hook_specification (
Union[IResolvable,CodeHookSpecificationProperty,Dict[str,Any],None]) – Specifies the Lambda function that should be used in the locale.enabled (
Union[bool,IResolvable,None]) – Determines whether the locale is enabled for the bot. If the value isfalse, the locale isn’t available for use.
- 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.mixins_preview.aws_lex import mixins as lex_mixins bot_alias_locale_settings_property = lex_mixins.CfnBotPropsMixin.BotAliasLocaleSettingsProperty( code_hook_specification=lex_mixins.CfnBotPropsMixin.CodeHookSpecificationProperty( lambda_code_hook=lex_mixins.CfnBotPropsMixin.LambdaCodeHookProperty( code_hook_interface_version="codeHookInterfaceVersion", lambda_arn="lambdaArn" ) ), enabled=False )
Attributes
- code_hook_specification
Specifies the Lambda function that should be used in the locale.
- enabled
Determines whether the locale is enabled for the bot.
If the value is
false, the locale isn’t available for use.
BotLocaleProperty
- class CfnBotPropsMixin.BotLocaleProperty(*, custom_vocabulary=None, description=None, generative_ai_settings=None, intents=None, locale_id=None, nlu_confidence_threshold=None, slot_types=None, voice_settings=None)
Bases:
objectProvides configuration information for a locale.
- Parameters:
custom_vocabulary (
Union[IResolvable,CustomVocabularyProperty,Dict[str,Any],None]) – Specifies a custom vocabulary to use with a specific locale.description (
Optional[str]) – A description of the bot locale. Use this to help identify the bot locale in lists.generative_ai_settings (
Union[IResolvable,GenerativeAISettingsProperty,Dict[str,Any],None])intents (
Union[IResolvable,Sequence[Union[IResolvable,IntentProperty,Dict[str,Any]]],None]) – One or more intents defined for the locale.locale_id (
Optional[str]) – The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales.nlu_confidence_threshold (
Union[int,float,None]) – Determines the threshold where Amazon Lex will insert theAMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents. You must configure anAMAZON.FallbackIntent.AMAZON.KendraSearchIntentis only inserted if it is configured for the bot.slot_types (
Union[IResolvable,Sequence[Union[IResolvable,SlotTypeProperty,Dict[str,Any]]],None]) – One or more slot types defined for the locale.voice_settings (
Union[IResolvable,VoiceSettingsProperty,Dict[str,Any],None]) – Defines settings for using an Amazon Polly voice to communicate with a user. Valid values include: -standard-neural-long-form-generative
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-botlocale.html
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- custom_vocabulary
Specifies a custom vocabulary to use with a specific locale.
- description
A description of the bot locale.
Use this to help identify the bot locale in lists.
- generative_ai_settings
-
- Type:
see
- intents
One or more intents defined for the locale.
- locale_id
The identifier of the language and locale that the bot will be used in.
The string must match one of the supported locales.
- nlu_confidence_threshold
Determines the threshold where Amazon Lex will insert the
AMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents. You must configure anAMAZON.FallbackIntent.AMAZON.KendraSearchIntentis only inserted if it is configured for the bot.
- slot_types
One or more slot types defined for the locale.
- voice_settings
Defines settings for using an Amazon Polly voice to communicate with a user.
Valid values include:
standardneurallong-formgenerative
BuildtimeSettingsProperty
- class CfnBotPropsMixin.BuildtimeSettingsProperty(*, descriptive_bot_builder_specification=None, sample_utterance_generation_specification=None)
Bases:
objectContains specifications about the Amazon Lex build time generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
- Parameters:
descriptive_bot_builder_specification (
Union[IResolvable,DescriptiveBotBuilderSpecificationProperty,Dict[str,Any],None])sample_utterance_generation_specification (
Union[IResolvable,SampleUtteranceGenerationSpecificationProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins buildtime_settings_property = lex_mixins.CfnBotPropsMixin.BuildtimeSettingsProperty( descriptive_bot_builder_specification=lex_mixins.CfnBotPropsMixin.DescriptiveBotBuilderSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ), sample_utterance_generation_specification=lex_mixins.CfnBotPropsMixin.SampleUtteranceGenerationSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ) )
Attributes
- descriptive_bot_builder_specification
-
- Type:
see
- sample_utterance_generation_specification
-
- Type:
see
CloudWatchLogGroupLogDestinationProperty
- class CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty(*, cloud_watch_log_group_arn=None, log_prefix=None)
Bases:
objectThe Amazon CloudWatch Logs log group where the text and metadata logs are delivered.
The log group must exist before you enable logging.
- Parameters:
cloud_watch_log_group_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.log_prefix (
Optional[str]) – The prefix of the log stream name within the log group that you specified.
- 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.mixins_preview.aws_lex import mixins as lex_mixins cloud_watch_log_group_log_destination_property = lex_mixins.CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty( cloud_watch_log_group_arn="cloudWatchLogGroupArn", log_prefix="logPrefix" )
Attributes
- cloud_watch_log_group_arn
The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.
- log_prefix
The prefix of the log stream name within the log group that you specified.
CodeHookSpecificationProperty
- class CfnBotPropsMixin.CodeHookSpecificationProperty(*, lambda_code_hook=None)
Bases:
objectContains information about code hooks that Amazon Lex calls during a conversation.
- Parameters:
lambda_code_hook (
Union[IResolvable,LambdaCodeHookProperty,Dict[str,Any],None]) – Specifies a Lambda function that verifies requests to a bot or fulfills the user’s request to a bot.- 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.mixins_preview.aws_lex import mixins as lex_mixins code_hook_specification_property = lex_mixins.CfnBotPropsMixin.CodeHookSpecificationProperty( lambda_code_hook=lex_mixins.CfnBotPropsMixin.LambdaCodeHookProperty( code_hook_interface_version="codeHookInterfaceVersion", lambda_arn="lambdaArn" ) )
Attributes
- lambda_code_hook
Specifies a Lambda function that verifies requests to a bot or fulfills the user’s request to a bot.
CompositeSlotTypeSettingProperty
- class CfnBotPropsMixin.CompositeSlotTypeSettingProperty(*, sub_slots=None)
Bases:
objectA composite slot is a combination of two or more slots that capture multiple pieces of information in a single user input.
- Parameters:
sub_slots (
Union[IResolvable,Sequence[Union[IResolvable,SubSlotTypeCompositionProperty,Dict[str,Any]]],None]) – Subslots in the composite slot.- 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.mixins_preview.aws_lex import mixins as lex_mixins composite_slot_type_setting_property = lex_mixins.CfnBotPropsMixin.CompositeSlotTypeSettingProperty( sub_slots=[lex_mixins.CfnBotPropsMixin.SubSlotTypeCompositionProperty( name="name", slot_type_id="slotTypeId" )] )
Attributes
- sub_slots
Subslots in the composite slot.
ConditionProperty
- class CfnBotPropsMixin.ConditionProperty(*, expression_string=None)
Bases:
objectProvides an expression that evaluates to true or false.
- Parameters:
expression_string (
Optional[str]) – The expression string that is evaluated.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-condition.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 condition_property = lex_mixins.CfnBotPropsMixin.ConditionProperty( expression_string="expressionString" )
Attributes
- expression_string
The expression string that is evaluated.
ConditionalBranchProperty
- class CfnBotPropsMixin.ConditionalBranchProperty(*, condition=None, name=None, next_step=None, response=None)
Bases:
objectA set of actions that Amazon Lex should run if the condition is matched.
- Parameters:
condition (
Union[IResolvable,ConditionProperty,Dict[str,Any],None]) – Contains the expression to evaluate. If the condition is true, the branch’s actions are taken.name (
Optional[str]) – The name of the branch.next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – The next step in the conversation.response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty conditional_branch_property = lex_mixins.CfnBotPropsMixin.ConditionalBranchProperty( condition=lex_mixins.CfnBotPropsMixin.ConditionProperty( expression_string="expressionString" ), name="name", next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )
Attributes
- condition
Contains the expression to evaluate.
If the condition is true, the branch’s actions are taken.
- name
The name of the branch.
- next_step
The next step in the conversation.
- response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
ConditionalSpecificationProperty
- class CfnBotPropsMixin.ConditionalSpecificationProperty(*, conditional_branches=None, default_branch=None, is_active=None)
Bases:
objectProvides a list of conditional branches.
Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
- Parameters:
conditional_branches (
Union[IResolvable,Sequence[Union[IResolvable,ConditionalBranchProperty,Dict[str,Any]]],None]) – A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.default_branch (
Union[IResolvable,DefaultConditionalBranchProperty,Dict[str,Any],None]) – The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.is_active (
Union[bool,IResolvable,None]) – Determines whether a conditional branch is active. WhenIsActiveis false, the conditions are not evaluated.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty conditional_specification_property = lex_mixins.CfnBotPropsMixin.ConditionalSpecificationProperty( conditional_branches=[lex_mixins.CfnBotPropsMixin.ConditionalBranchProperty( condition=lex_mixins.CfnBotPropsMixin.ConditionProperty( expression_string="expressionString" ), name="name", next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )], default_branch=lex_mixins.CfnBotPropsMixin.DefaultConditionalBranchProperty( next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) ), is_active=False )
Attributes
- conditional_branches
A list of conditional branches.
A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
- default_branch
The conditional branch that should be followed when the conditions for other branches are not satisfied.
A conditional branch is made up of a condition, a response and a next step.
- is_active
Determines whether a conditional branch is active.
When
IsActiveis false, the conditions are not evaluated.
ConversationLogSettingsProperty
- class CfnBotPropsMixin.ConversationLogSettingsProperty(*, audio_log_settings=None, text_log_settings=None)
Bases:
objectConfigures conversation logging that saves audio, text, and metadata for the conversations with your users.
- Parameters:
audio_log_settings (
Union[IResolvable,Sequence[Union[IResolvable,AudioLogSettingProperty,Dict[str,Any]]],None]) – The Amazon S3 settings for logging audio to an S3 bucket.text_log_settings (
Union[IResolvable,Sequence[Union[IResolvable,TextLogSettingProperty,Dict[str,Any]]],None]) – The Amazon CloudWatch Logs settings for logging text and metadata.
- 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.mixins_preview.aws_lex import mixins as lex_mixins conversation_log_settings_property = lex_mixins.CfnBotPropsMixin.ConversationLogSettingsProperty( audio_log_settings=[lex_mixins.CfnBotPropsMixin.AudioLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.AudioLogDestinationProperty( s3_bucket=lex_mixins.CfnBotPropsMixin.S3BucketLogDestinationProperty( kms_key_arn="kmsKeyArn", log_prefix="logPrefix", s3_bucket_arn="s3BucketArn" ) ), enabled=False )], text_log_settings=[lex_mixins.CfnBotPropsMixin.TextLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.TextLogDestinationProperty( cloud_watch=lex_mixins.CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty( cloud_watch_log_group_arn="cloudWatchLogGroupArn", log_prefix="logPrefix" ) ), enabled=False )] )
Attributes
- audio_log_settings
The Amazon S3 settings for logging audio to an S3 bucket.
- text_log_settings
The Amazon CloudWatch Logs settings for logging text and metadata.
CustomPayloadProperty
- class CfnBotPropsMixin.CustomPayloadProperty(*, value=None)
Bases:
objectA custom response string that Amazon Lex sends to your application.
You define the content and structure the string.
- Parameters:
value (
Optional[str]) – The string that is sent to your application.- 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.mixins_preview.aws_lex import mixins as lex_mixins custom_payload_property = lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" )
Attributes
- value
The string that is sent to your application.
CustomVocabularyItemProperty
- class CfnBotPropsMixin.CustomVocabularyItemProperty(*, display_as=None, phrase=None, weight=None)
Bases:
objectSpecifies an entry in a custom vocabulary.
- Parameters:
display_as (
Optional[str]) – The DisplayAs value for the custom vocabulary item from the custom vocabulary list.phrase (
Optional[str]) – Specifies 1 - 4 words that should be recognized.weight (
Union[int,float,None]) – Specifies the degree to which the phrase recognition is boosted. The default value is 1.
- 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.mixins_preview.aws_lex import mixins as lex_mixins custom_vocabulary_item_property = lex_mixins.CfnBotPropsMixin.CustomVocabularyItemProperty( display_as="displayAs", phrase="phrase", weight=123 )
Attributes
- display_as
The DisplayAs value for the custom vocabulary item from the custom vocabulary list.
- phrase
Specifies 1 - 4 words that should be recognized.
- weight
Specifies the degree to which the phrase recognition is boosted.
The default value is 1.
CustomVocabularyProperty
- class CfnBotPropsMixin.CustomVocabularyProperty(*, custom_vocabulary_items=None)
Bases:
objectSpecifies a custom vocabulary.
A custom vocabulary is a list of words that you expect to be used during a conversation with your bot.
- Parameters:
custom_vocabulary_items (
Union[IResolvable,Sequence[Union[IResolvable,CustomVocabularyItemProperty,Dict[str,Any]]],None]) – Specifies a list of words that you expect to be used during a conversation with your bot.- 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.mixins_preview.aws_lex import mixins as lex_mixins custom_vocabulary_property = lex_mixins.CfnBotPropsMixin.CustomVocabularyProperty( custom_vocabulary_items=[lex_mixins.CfnBotPropsMixin.CustomVocabularyItemProperty( display_as="displayAs", phrase="phrase", weight=123 )] )
Attributes
- custom_vocabulary_items
Specifies a list of words that you expect to be used during a conversation with your bot.
DTMFSpecificationProperty
- class CfnBotPropsMixin.DTMFSpecificationProperty(*, deletion_character=None, end_character=None, end_timeout_ms=None, max_length=None)
Bases:
objectSpecifies the DTMF input specifications.
- Parameters:
deletion_character (
Optional[str]) – The DTMF character that clears the accumulated DTMF digits and immediately ends the input.end_character (
Optional[str]) – The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.end_timeout_ms (
Union[int,float,None]) – How long the bot should wait after the last DTMF character input before assuming that the input has concluded.max_length (
Union[int,float,None]) – The maximum number of DTMF digits allowed in an utterance.
- 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.mixins_preview.aws_lex import mixins as lex_mixins d_tMFSpecification_property = lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 )
Attributes
- deletion_character
The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
- end_character
The DTMF character that immediately ends input.
If the user does not press this character, the input ends after the end timeout.
- end_timeout_ms
How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
- max_length
The maximum number of DTMF digits allowed in an utterance.
DataPrivacyProperty
- class CfnBotPropsMixin.DataPrivacyProperty(*, child_directed=None)
Bases:
objectBy default, data stored by Amazon Lex is encrypted.
The
DataPrivacystructure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.- Parameters:
child_directed (
Union[bool,IResolvable,None]) – For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children’s Online Privacy Protection Act (COPPA) by specifyingtrueorfalsein thechildDirectedfield. By specifyingtruein thechildDirectedfield, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifyingfalsein thechildDirectedfield, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for thechildDirectedfield that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ .- 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.mixins_preview.aws_lex import mixins as lex_mixins data_privacy_property = lex_mixins.CfnBotPropsMixin.DataPrivacyProperty( child_directed=False )
Attributes
- child_directed
For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children’s Online Privacy Protection Act (COPPA) by specifying
trueorfalsein thechildDirectedfield.By specifying
truein thechildDirectedfield, you confirm that your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifyingfalsein thechildDirectedfield, you confirm that your use of Amazon Lex is not related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for thechildDirectedfield that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ .
DataSourceConfigurationProperty
- class CfnBotPropsMixin.DataSourceConfigurationProperty(*, bedrock_knowledge_store_configuration=None, kendra_configuration=None, opensearch_configuration=None)
Bases:
objectContains details about the configuration of the knowledge store used for the
AMAZON.QnAIntent. You must have already created the knowledge store and indexed the documents within it.- Parameters:
bedrock_knowledge_store_configuration (
Union[IResolvable,BedrockKnowledgeStoreConfigurationProperty,Dict[str,Any],None]) – Contains details about the configuration of the Amazon Bedrock knowledge base used for theAMAZON.QnAIntent. To set up a knowledge base, follow the steps at Building a knowledge base .kendra_configuration (
Union[IResolvable,QnAKendraConfigurationProperty,Dict[str,Any],None]) – Contains details about the configuration of the Amazon Kendra index used for theAMAZON.QnAIntent. To create a Amazon Kendra index, follow the steps at Creating an index .opensearch_configuration (
Union[IResolvable,OpensearchConfigurationProperty,Dict[str,Any],None]) – Contains details about the configuration of the Amazon OpenSearch Service database used for theAMAZON.QnAIntent. To create a domain, follow the steps at Creating and managing Amazon OpenSearch Service domains .
- 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.mixins_preview.aws_lex import mixins as lex_mixins data_source_configuration_property = lex_mixins.CfnBotPropsMixin.DataSourceConfigurationProperty( bedrock_knowledge_store_configuration=lex_mixins.CfnBotPropsMixin.BedrockKnowledgeStoreConfigurationProperty( bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn", bkb_exact_response_fields=lex_mixins.CfnBotPropsMixin.BKBExactResponseFieldsProperty( answer_field="answerField" ), exact_response=False ), kendra_configuration=lex_mixins.CfnBotPropsMixin.QnAKendraConfigurationProperty( exact_response=False, kendra_index="kendraIndex", query_filter_string="queryFilterString", query_filter_string_enabled=False ), opensearch_configuration=lex_mixins.CfnBotPropsMixin.OpensearchConfigurationProperty( domain_endpoint="domainEndpoint", exact_response=False, exact_response_fields=lex_mixins.CfnBotPropsMixin.ExactResponseFieldsProperty( answer_field="answerField", question_field="questionField" ), include_fields=["includeFields"], index_name="indexName" ) )
Attributes
- bedrock_knowledge_store_configuration
Contains details about the configuration of the Amazon Bedrock knowledge base used for the
AMAZON.QnAIntent. To set up a knowledge base, follow the steps at Building a knowledge base .
- kendra_configuration
Contains details about the configuration of the Amazon Kendra index used for the
AMAZON.QnAIntent. To create a Amazon Kendra index, follow the steps at Creating an index .
- opensearch_configuration
Contains details about the configuration of the Amazon OpenSearch Service database used for the
AMAZON.QnAIntent. To create a domain, follow the steps at Creating and managing Amazon OpenSearch Service domains .
DefaultConditionalBranchProperty
- class CfnBotPropsMixin.DefaultConditionalBranchProperty(*, next_step=None, response=None)
Bases:
objectA set of actions that Amazon Lex should run if none of the other conditions are met.
- Parameters:
next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – The next step in the conversation.response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty default_conditional_branch_property = lex_mixins.CfnBotPropsMixin.DefaultConditionalBranchProperty( next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )
Attributes
- next_step
The next step in the conversation.
- response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
DescriptiveBotBuilderSpecificationProperty
- class CfnBotPropsMixin.DescriptiveBotBuilderSpecificationProperty(*, bedrock_model_specification=None, enabled=None)
Bases:
objectContains specifications for the descriptive bot building feature.
- Parameters:
bedrock_model_specification (
Union[IResolvable,BedrockModelSpecificationProperty,Dict[str,Any],None]) – An object containing information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.enabled (
Union[bool,IResolvable,None]) – Specifies whether the descriptive bot building feature is activated or not.
- 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.mixins_preview.aws_lex import mixins as lex_mixins descriptive_bot_builder_specification_property = lex_mixins.CfnBotPropsMixin.DescriptiveBotBuilderSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False )
Attributes
- bedrock_model_specification
An object containing information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.
- enabled
Specifies whether the descriptive bot building feature is activated or not.
DialogActionProperty
- class CfnBotPropsMixin.DialogActionProperty(*, slot_to_elicit=None, suppress_next_message=None, type=None)
Bases:
objectDefines the action that the bot executes at runtime when the conversation reaches this step.
- Parameters:
slot_to_elicit (
Optional[str]) – If the dialog action isElicitSlot, defines the slot to elicit from the user.suppress_next_message (
Union[bool,IResolvable,None]) – When true the next message for the intent is not used.type (
Optional[str]) – The action that the bot should execute.
- 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.mixins_preview.aws_lex import mixins as lex_mixins dialog_action_property = lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" )
Attributes
- slot_to_elicit
If the dialog action is
ElicitSlot, defines the slot to elicit from the user.
- suppress_next_message
When true the next message for the intent is not used.
- type
The action that the bot should execute.
DialogCodeHookInvocationSettingProperty
- class CfnBotPropsMixin.DialogCodeHookInvocationSettingProperty(*, enable_code_hook_invocation=None, invocation_label=None, is_active=None, post_code_hook_specification=None)
Bases:
objectSettings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
- Parameters:
enable_code_hook_invocation (
Union[bool,IResolvable,None]) – Indicates whether a Lambda function should be invoked for the dialog.invocation_label (
Optional[str]) – A label that indicates the dialog step from which the dialog code hook is happening.is_active (
Union[bool,IResolvable,None]) – Determines whether a dialog code hook is used when the intent is activated.post_code_hook_specification (
Union[IResolvable,PostDialogCodeHookInvocationSpecificationProperty,Dict[str,Any],None]) – Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- enable_code_hook_invocation
Indicates whether a Lambda function should be invoked for the dialog.
- invocation_label
A label that indicates the dialog step from which the dialog code hook is happening.
- is_active
Determines whether a dialog code hook is used when the intent is activated.
- post_code_hook_specification
Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
DialogCodeHookSettingProperty
- class CfnBotPropsMixin.DialogCodeHookSettingProperty(*, enabled=None)
Bases:
objectSettings that determine the Lambda function that Amazon Lex uses for processing user responses.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Enables the dialog code hook so that it processes user requests.- 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.mixins_preview.aws_lex import mixins as lex_mixins dialog_code_hook_setting_property = lex_mixins.CfnBotPropsMixin.DialogCodeHookSettingProperty( enabled=False )
Attributes
- enabled
Enables the dialog code hook so that it processes user requests.
DialogStateProperty
- class CfnBotPropsMixin.DialogStateProperty(*, dialog_action=None, intent=None, session_attributes=None)
Bases:
objectThe current state of the conversation with the user.
- Parameters:
dialog_action (
Union[IResolvable,DialogActionProperty,Dict[str,Any],None]) – Defines the action that the bot executes at runtime when the conversation reaches this step.intent (
Union[IResolvable,IntentOverrideProperty,Dict[str,Any],None]) – Override settings to configure the intent state.session_attributes (
Union[IResolvable,Sequence[Union[IResolvable,SessionAttributeProperty,Dict[str,Any]]],None]) – Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty dialog_state_property = lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] )
Attributes
- dialog_action
Defines the action that the bot executes at runtime when the conversation reaches this step.
- intent
Override settings to configure the intent state.
- session_attributes
Map of key/value pairs representing session-specific context information.
It contains application information passed between Amazon Lex and a client application.
ElicitationCodeHookInvocationSettingProperty
- class CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty(*, enable_code_hook_invocation=None, invocation_label=None)
Bases:
objectSettings that specify the dialog code hook that is called by Amazon Lex between eliciting slot values.
- Parameters:
enable_code_hook_invocation (
Union[bool,IResolvable,None]) – Indicates whether a Lambda function should be invoked for the dialog.invocation_label (
Optional[str]) – A label that indicates the dialog step from which the dialog code hook is happening.
- 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.mixins_preview.aws_lex import mixins as lex_mixins elicitation_code_hook_invocation_setting_property = lex_mixins.CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty( enable_code_hook_invocation=False, invocation_label="invocationLabel" )
Attributes
- enable_code_hook_invocation
Indicates whether a Lambda function should be invoked for the dialog.
- invocation_label
A label that indicates the dialog step from which the dialog code hook is happening.
ErrorLogSettingsProperty
- class CfnBotPropsMixin.ErrorLogSettingsProperty(*, enabled=None)
Bases:
object- Parameters:
enabled (
Union[bool,IResolvable,None])- 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.mixins_preview.aws_lex import mixins as lex_mixins error_log_settings_property = lex_mixins.CfnBotPropsMixin.ErrorLogSettingsProperty( enabled=False )
Attributes
ExactResponseFieldsProperty
- class CfnBotPropsMixin.ExactResponseFieldsProperty(*, answer_field=None, question_field=None)
Bases:
objectContains the names of the fields used for an exact response to the user.
- Parameters:
answer_field (
Optional[str]) – The name of the field that contains the answer to the query made to the OpenSearch Service database.question_field (
Optional[str]) – The name of the field that contains the query made to the OpenSearch Service database.
- 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.mixins_preview.aws_lex import mixins as lex_mixins exact_response_fields_property = lex_mixins.CfnBotPropsMixin.ExactResponseFieldsProperty( answer_field="answerField", question_field="questionField" )
Attributes
- answer_field
The name of the field that contains the answer to the query made to the OpenSearch Service database.
- question_field
The name of the field that contains the query made to the OpenSearch Service database.
ExternalSourceSettingProperty
- class CfnBotPropsMixin.ExternalSourceSettingProperty(*, grammar_slot_type_setting=None)
Bases:
objectProvides information about the external source of the slot type’s definition.
- Parameters:
grammar_slot_type_setting (
Union[IResolvable,GrammarSlotTypeSettingProperty,Dict[str,Any],None]) – Settings required for a slot type based on a grammar that you provide.- 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.mixins_preview.aws_lex import mixins as lex_mixins external_source_setting_property = lex_mixins.CfnBotPropsMixin.ExternalSourceSettingProperty( grammar_slot_type_setting=lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSettingProperty( source=lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSourceProperty( kms_key_arn="kmsKeyArn", s3_bucket_name="s3BucketName", s3_object_key="s3ObjectKey" ) ) )
Attributes
- grammar_slot_type_setting
Settings required for a slot type based on a grammar that you provide.
FulfillmentCodeHookSettingProperty
- class CfnBotPropsMixin.FulfillmentCodeHookSettingProperty(*, enabled=None, fulfillment_updates_specification=None, is_active=None, post_fulfillment_status_specification=None)
Bases:
objectDetermines if a Lambda function should be invoked for a specific intent.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Indicates whether a Lambda function should be invoked to fulfill a specific intent.fulfillment_updates_specification (
Union[IResolvable,FulfillmentUpdatesSpecificationProperty,Dict[str,Any],None]) – Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.is_active (
Union[bool,IResolvable,None]) – Determines whether the fulfillment code hook is used. Whenactiveis false, the code hook doesn’t run.post_fulfillment_status_specification (
Union[IResolvable,PostFulfillmentStatusSpecificationProperty,Dict[str,Any],None]) – Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- enabled
Indicates whether a Lambda function should be invoked to fulfill a specific intent.
- fulfillment_updates_specification
Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.
Fulfillment updates can be used only with streaming conversations.
- is_active
Determines whether the fulfillment code hook is used.
When
activeis false, the code hook doesn’t run.
- post_fulfillment_status_specification
Provides settings for messages sent to the user for after the Lambda fulfillment function completes.
Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
FulfillmentStartResponseSpecificationProperty
- class CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty(*, allow_interrupt=None, delay_in_seconds=None, message_groups=None)
Bases:
objectProvides settings for a message that is sent to the user when a fulfillment Lambda function starts running.
- Parameters:
allow_interrupt (
Union[bool,IResolvable,None]) – Determines whether the user can interrupt the start message while it is playing.delay_in_seconds (
Union[int,float,None]) – The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn’t played.message_groups (
Union[IResolvable,Sequence[Union[IResolvable,MessageGroupProperty,Dict[str,Any]]],None]) – 1 - 5 message groups that contain start messages. Amazon Lex chooses one of the messages to play to the user.
- 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.mixins_preview.aws_lex import mixins as lex_mixins fulfillment_start_response_specification_property = lex_mixins.CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty( allow_interrupt=False, delay_in_seconds=123, message_groups=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] )
Attributes
- allow_interrupt
Determines whether the user can interrupt the start message while it is playing.
- delay_in_seconds
The delay between when the Lambda fulfillment function starts running and the start message is played.
If the Lambda function returns before the delay is over, the start message isn’t played.
- message_groups
1 - 5 message groups that contain start messages.
Amazon Lex chooses one of the messages to play to the user.
FulfillmentUpdateResponseSpecificationProperty
- class CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty(*, allow_interrupt=None, frequency_in_seconds=None, message_groups=None)
Bases:
objectProvides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.
- Parameters:
allow_interrupt (
Union[bool,IResolvable,None]) – Determines whether the user can interrupt an update message while it is playing.frequency_in_seconds (
Union[int,float,None]) – The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.message_groups (
Union[IResolvable,Sequence[Union[IResolvable,MessageGroupProperty,Dict[str,Any]]],None]) – 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
- 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.mixins_preview.aws_lex import mixins as lex_mixins fulfillment_update_response_specification_property = lex_mixins.CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] )
Attributes
- allow_interrupt
Determines whether the user can interrupt an update message while it is playing.
- frequency_in_seconds
The frequency that a message is sent to the user.
When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
- message_groups
1 - 5 message groups that contain update messages.
Amazon Lex chooses one of the messages to play to the user.
FulfillmentUpdatesSpecificationProperty
- class CfnBotPropsMixin.FulfillmentUpdatesSpecificationProperty(*, active=None, start_response=None, timeout_in_seconds=None, update_response=None)
Bases:
objectProvides information for updating the user on the progress of fulfilling an intent.
- Parameters:
active (
Union[bool,IResolvable,None]) – Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent. If theactivefield is set to true, thestartResponse,updateResponse, andtimeoutInSecondsfields are required.start_response (
Union[IResolvable,FulfillmentStartResponseSpecificationProperty,Dict[str,Any],None]) – Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.timeout_in_seconds (
Union[int,float,None]) – The length of time that the fulfillment Lambda function should run before it times out.update_response (
Union[IResolvable,FulfillmentUpdateResponseSpecificationProperty,Dict[str,Any],None]) – Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
- 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.mixins_preview.aws_lex import mixins as lex_mixins fulfillment_updates_specification_property = lex_mixins.CfnBotPropsMixin.FulfillmentUpdatesSpecificationProperty( active=False, start_response=lex_mixins.CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty( allow_interrupt=False, delay_in_seconds=123, message_groups=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), timeout_in_seconds=123, update_response=lex_mixins.CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )
Attributes
- active
Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.
If the
activefield is set to true, thestartResponse,updateResponse, andtimeoutInSecondsfields are required.
- start_response
Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.
- timeout_in_seconds
The length of time that the fulfillment Lambda function should run before it times out.
- update_response
Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
GenerativeAISettingsProperty
- class CfnBotPropsMixin.GenerativeAISettingsProperty(*, buildtime_settings=None, runtime_settings=None)
Bases:
objectContains specifications about the generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
- Parameters:
buildtime_settings (
Union[IResolvable,BuildtimeSettingsProperty,Dict[str,Any],None])runtime_settings (
Union[IResolvable,RuntimeSettingsProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins generative_aISettings_property = lex_mixins.CfnBotPropsMixin.GenerativeAISettingsProperty( buildtime_settings=lex_mixins.CfnBotPropsMixin.BuildtimeSettingsProperty( descriptive_bot_builder_specification=lex_mixins.CfnBotPropsMixin.DescriptiveBotBuilderSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ), sample_utterance_generation_specification=lex_mixins.CfnBotPropsMixin.SampleUtteranceGenerationSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ) ), runtime_settings=lex_mixins.CfnBotPropsMixin.RuntimeSettingsProperty( nlu_improvement_specification=lex_mixins.CfnBotPropsMixin.NluImprovementSpecificationProperty( enabled=False ), slot_resolution_improvement_specification=lex_mixins.CfnBotPropsMixin.SlotResolutionImprovementSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ) ) )
Attributes
- buildtime_settings
-
- Type:
see
GrammarSlotTypeSettingProperty
- class CfnBotPropsMixin.GrammarSlotTypeSettingProperty(*, source=None)
Bases:
objectSettings requried for a slot type based on a grammar that you provide.
- Parameters:
source (
Union[IResolvable,GrammarSlotTypeSourceProperty,Dict[str,Any],None]) – The source of the grammar used to create the slot 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.mixins_preview.aws_lex import mixins as lex_mixins grammar_slot_type_setting_property = lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSettingProperty( source=lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSourceProperty( kms_key_arn="kmsKeyArn", s3_bucket_name="s3BucketName", s3_object_key="s3ObjectKey" ) )
Attributes
- source
The source of the grammar used to create the slot type.
GrammarSlotTypeSourceProperty
- class CfnBotPropsMixin.GrammarSlotTypeSourceProperty(*, kms_key_arn=None, s3_bucket_name=None, s3_object_key=None)
Bases:
objectDescribes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.
- Parameters:
kms_key_arn (
Optional[str]) – The AWS key required to decrypt the contents of the grammar, if any.s3_bucket_name (
Optional[str]) – The name of the Amazon S3 bucket that contains the grammar source.s3_object_key (
Optional[str]) – The path to the grammar in the Amazon S3 bucket.
- 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.mixins_preview.aws_lex import mixins as lex_mixins grammar_slot_type_source_property = lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSourceProperty( kms_key_arn="kmsKeyArn", s3_bucket_name="s3BucketName", s3_object_key="s3ObjectKey" )
Attributes
- kms_key_arn
The AWS key required to decrypt the contents of the grammar, if any.
- s3_bucket_name
The name of the Amazon S3 bucket that contains the grammar source.
- s3_object_key
The path to the grammar in the Amazon S3 bucket.
ImageResponseCardProperty
- class CfnBotPropsMixin.ImageResponseCardProperty(*, buttons=None, image_url=None, subtitle=None, title=None)
Bases:
objectA card that is shown to the user by a messaging platform.
You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.
- Parameters:
buttons (
Union[IResolvable,Sequence[Union[IResolvable,ButtonProperty,Dict[str,Any]]],None]) – A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.image_url (
Optional[str]) – The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.subtitle (
Optional[str]) – The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.title (
Optional[str]) – The title to display on the response card. The format of the title is determined by the platform displaying the response card.
- 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.mixins_preview.aws_lex import mixins as lex_mixins image_response_card_property = lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" )
Attributes
- buttons
A list of buttons that should be displayed on the response card.
The arrangement of the buttons is determined by the platform that displays the button.
- image_url
The URL of an image to display on the response card.
The image URL must be publicly available so that the platform displaying the response card has access to the image.
- subtitle
The subtitle to display on the response card.
The format of the subtitle is determined by the platform displaying the response card.
- title
The title to display on the response card.
The format of the title is determined by the platform displaying the response card.
InitialResponseSettingProperty
- class CfnBotPropsMixin.InitialResponseSettingProperty(*, code_hook=None, conditional=None, initial_response=None, next_step=None)
Bases:
objectConfiguration setting for a response sent to the user before Amazon Lex starts eliciting slots.
- Parameters:
code_hook (
Union[IResolvable,DialogCodeHookInvocationSettingProperty,Dict[str,Any],None]) – Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.initial_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input.next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – The next step in the conversation.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- code_hook
Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
- conditional
Provides a list of conditional branches.
Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
- initial_response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
- next_step
The next step in the conversation.
InputContextProperty
- class CfnBotPropsMixin.InputContextProperty(*, name=None)
Bases:
objectA context that must be active for an intent to be selected by Amazon Lex.
- Parameters:
name (
Optional[str]) – The name of the context.- 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.mixins_preview.aws_lex import mixins as lex_mixins input_context_property = lex_mixins.CfnBotPropsMixin.InputContextProperty( name="name" )
Attributes
- name
The name of the context.
IntentClosingSettingProperty
- class CfnBotPropsMixin.IntentClosingSettingProperty(*, closing_response=None, conditional=None, is_active=None, next_step=None)
Bases:
objectProvides a statement the Amazon Lex conveys to the user when the intent is successfully fulfilled.
- Parameters:
closing_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – The response that Amazon Lex sends to the user when the intent is complete.conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches associated with the intent’s closing response. These branches are executed when thenextStepattribute is set toEvalutateConditional.is_active (
Union[bool,IResolvable,None]) – Specifies whether an intent’s closing response is used. When this field is false, the closing response isn’t sent to the user. If theIsActivefield isn’t specified, the default is true.next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot executes after playing the intent’s closing response.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty intent_closing_setting_property = lex_mixins.CfnBotPropsMixin.IntentClosingSettingProperty( closing_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), conditional=lex_mixins.CfnBotPropsMixin.ConditionalSpecificationProperty( conditional_branches=[lex_mixins.CfnBotPropsMixin.ConditionalBranchProperty( condition=lex_mixins.CfnBotPropsMixin.ConditionProperty( expression_string="expressionString" ), name="name", next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )], default_branch=lex_mixins.CfnBotPropsMixin.DefaultConditionalBranchProperty( next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ), response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) ), is_active=False ), is_active=False, next_step=lex_mixins.CfnBotPropsMixin.DialogStateProperty( dialog_action=lex_mixins.CfnBotPropsMixin.DialogActionProperty( slot_to_elicit="slotToElicit", suppress_next_message=False, type="type" ), intent=lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] ), session_attributes=[lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )] ) )
Attributes
- closing_response
The response that Amazon Lex sends to the user when the intent is complete.
- conditional
A list of conditional branches associated with the intent’s closing response.
These branches are executed when the
nextStepattribute is set toEvalutateConditional.
- is_active
Specifies whether an intent’s closing response is used.
When this field is false, the closing response isn’t sent to the user. If the
IsActivefield isn’t specified, the default is true.
- next_step
Specifies the next step that the bot executes after playing the intent’s closing response.
IntentConfirmationSettingProperty
- class CfnBotPropsMixin.IntentConfirmationSettingProperty(*, code_hook=None, confirmation_conditional=None, confirmation_next_step=None, confirmation_response=None, declination_conditional=None, declination_next_step=None, declination_response=None, elicitation_code_hook=None, failure_conditional=None, failure_next_step=None, failure_response=None, is_active=None, prompt_specification=None)
Bases:
objectProvides a prompt for making sure that the user is ready for the intent to be fulfilled.
- Parameters:
code_hook (
Union[IResolvable,DialogCodeHookInvocationSettingProperty,Dict[str,Any],None]) – TheDialogCodeHookInvocationSettingobject associated with intent’s confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step isInvokeDialogCodeHook.confirmation_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the intent is closed.confirmation_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot executes when the customer confirms the intent.confirmation_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input.declination_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the intent is declined.declination_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot executes when the customer declines the intent.declination_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – When the user answers “no” to the question defined inpromptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.elicitation_code_hook (
Union[IResolvable,ElicitationCodeHookInvocationSettingProperty,Dict[str,Any],None]) – TheDialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.failure_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.failure_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – The next step to take in the conversation if the confirmation step fails.failure_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input when the intent confirmation fails.is_active (
Union[bool,IResolvable,None]) – Specifies whether the intent’s confirmation is sent to the user. When this field is false, confirmation and declination responses aren’t sent. If theIsActivefield isn’t specified, the default is true.prompt_specification (
Union[IResolvable,PromptSpecificationProperty,Dict[str,Any],None]) – Prompts the user to confirm the intent. This question should have a yes or no answer. Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with theOrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- code_hook
The
DialogCodeHookInvocationSettingobject associated with intent’s confirmation step.The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step is
InvokeDialogCodeHook.
- confirmation_conditional
A list of conditional branches to evaluate after the intent is closed.
- confirmation_next_step
Specifies the next step that the bot executes when the customer confirms the intent.
- confirmation_response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
- declination_conditional
A list of conditional branches to evaluate after the intent is declined.
- declination_next_step
Specifies the next step that the bot executes when the customer declines the intent.
- declination_response
When the user answers “no” to the question defined in
promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
- elicitation_code_hook
The
DialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.
- failure_conditional
Provides a list of conditional branches.
Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
- failure_next_step
The next step to take in the conversation if the confirmation step fails.
- failure_response
Specifies a list of message groups that Amazon Lex uses to respond the user input when the intent confirmation fails.
- is_active
Specifies whether the intent’s confirmation is sent to the user.
When this field is false, confirmation and declination responses aren’t sent. If the
IsActivefield isn’t specified, the default is true.
- prompt_specification
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the
OrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.
IntentOverrideProperty
- class CfnBotPropsMixin.IntentOverrideProperty(*, name=None, slots=None)
Bases:
objectOverride settings to configure the intent state.
- Parameters:
name (
Optional[str]) – The name of the intent. Only required when you’re switching intents.slots (
Union[IResolvable,Sequence[Union[IResolvable,SlotValueOverrideMapProperty,Dict[str,Any]]],None]) – A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren’t overridden.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty intent_override_property = lex_mixins.CfnBotPropsMixin.IntentOverrideProperty( name="name", slots=[lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )] )
Attributes
- name
The name of the intent.
Only required when you’re switching intents.
- slots
A map of all of the slot value overrides for the intent.
The name of the slot maps to the value of the slot. Slots that are not included in the map aren’t overridden.
IntentProperty
- class CfnBotPropsMixin.IntentProperty(*, bedrock_agent_intent_configuration=None, description=None, dialog_code_hook=None, fulfillment_code_hook=None, initial_response_setting=None, input_contexts=None, intent_closing_setting=None, intent_confirmation_setting=None, kendra_configuration=None, name=None, output_contexts=None, parent_intent_signature=None, q_in_connect_intent_configuration=None, qn_a_intent_configuration=None, sample_utterances=None, slot_priorities=None, slots=None)
Bases:
objectRepresents an action that the user wants to perform.
- Parameters:
bedrock_agent_intent_configuration (
Union[IResolvable,BedrockAgentIntentConfigurationProperty,Dict[str,Any],None])description (
Optional[str]) – A description of the intent. Use the description to help identify the intent in lists.dialog_code_hook (
Union[IResolvable,DialogCodeHookSettingProperty,Dict[str,Any],None]) – Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction.fulfillment_code_hook (
Union[IResolvable,FulfillmentCodeHookSettingProperty,Dict[str,Any],None]) – Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment. You can invoke this function to complete the bot’s transaction with the user.initial_response_setting (
Union[IResolvable,InitialResponseSettingProperty,Dict[str,Any],None]) – Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.input_contexts (
Union[IResolvable,Sequence[Union[IResolvable,InputContextProperty,Dict[str,Any]]],None]) – A list of contexts that must be active for this intent to be considered by Amazon Lex .intent_closing_setting (
Union[IResolvable,IntentClosingSettingProperty,Dict[str,Any],None]) – Sets the response that Amazon Lex sends to the user when the intent is closed.intent_confirmation_setting (
Union[IResolvable,IntentConfirmationSettingProperty,Dict[str,Any],None]) – Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent. If the user answers “no,” the settings contain a statement that is sent to the user to end the intent.kendra_configuration (
Union[IResolvable,KendraConfigurationProperty,Dict[str,Any],None]) – Provides configuration information for theAMAZON.KendraSearchIntentintent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user’s utterance.name (
Optional[str]) – The name of the intent. Intent names must be unique within the locale that contains the intent and can’t match the name of any built-in intent.output_contexts (
Union[IResolvable,Sequence[Union[IResolvable,OutputContextProperty,Dict[str,Any]]],None]) – A list of contexts that the intent activates when it is fulfilled.parent_intent_signature (
Optional[str]) – A unique identifier for the built-in intent to base this intent on.q_in_connect_intent_configuration (
Union[IResolvable,QInConnectIntentConfigurationProperty,Dict[str,Any],None])qn_a_intent_configuration (
Union[IResolvable,QnAIntentConfigurationProperty,Dict[str,Any],None])sample_utterances (
Union[IResolvable,Sequence[Union[IResolvable,SampleUtteranceProperty,Dict[str,Any]]],None]) – A list of utterances that a user might say to signal the intent.slot_priorities (
Union[IResolvable,Sequence[Union[IResolvable,SlotPriorityProperty,Dict[str,Any]]],None]) – Indicates the priority for slots. Amazon Lex prompts the user for slot values in priority order.slots (
Union[IResolvable,Sequence[Union[IResolvable,SlotProperty,Dict[str,Any]]],None]) – A list of slots that the intent requires for fulfillment.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-intent.html
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- bedrock_agent_intent_configuration
-
- Type:
see
- description
A description of the intent.
Use the description to help identify the intent in lists.
- dialog_code_hook
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
You can invoke this Lambda function to personalize user interaction.
- fulfillment_code_hook
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
You can invoke this function to complete the bot’s transaction with the user.
- initial_response_setting
Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.
- input_contexts
A list of contexts that must be active for this intent to be considered by Amazon Lex .
- intent_closing_setting
Sets the response that Amazon Lex sends to the user when the intent is closed.
- intent_confirmation_setting
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
If the user answers “no,” the settings contain a statement that is sent to the user to end the intent.
- kendra_configuration
Provides configuration information for the
AMAZON.KendraSearchIntentintent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user’s utterance.
- name
The name of the intent.
Intent names must be unique within the locale that contains the intent and can’t match the name of any built-in intent.
- output_contexts
A list of contexts that the intent activates when it is fulfilled.
- parent_intent_signature
A unique identifier for the built-in intent to base this intent on.
- q_in_connect_intent_configuration
-
- Type:
see
- qn_a_intent_configuration
-
- Type:
see
- sample_utterances
A list of utterances that a user might say to signal the intent.
- slot_priorities
Indicates the priority for slots.
Amazon Lex prompts the user for slot values in priority order.
- slots
A list of slots that the intent requires for fulfillment.
KendraConfigurationProperty
- class CfnBotPropsMixin.KendraConfigurationProperty(*, kendra_index=None, query_filter_string=None, query_filter_string_enabled=None)
Bases:
objectProvides configuration information for the
AMAZON.KendraSearchIntentintent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user’s utterance.- Parameters:
kendra_index (
Optional[str]) – The Amazon Resource Name (ARN) of the Amazon Kendra index that you want theAMAZON.KendraSearchIntentintent to search. The index must be in the same account and Region as the Amazon Lex bot.query_filter_string (
Optional[str]) – A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. The filter is in the format defined by Amazon Kendra. For more information, see Filtering queries .query_filter_string_enabled (
Union[bool,IResolvable,None]) – Determines whether theAMAZON.KendraSearchIntentintent uses a custom query string to query the Amazon Kendra index.
- 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.mixins_preview.aws_lex import mixins as lex_mixins kendra_configuration_property = lex_mixins.CfnBotPropsMixin.KendraConfigurationProperty( kendra_index="kendraIndex", query_filter_string="queryFilterString", query_filter_string_enabled=False )
Attributes
- kendra_index
The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
AMAZON.KendraSearchIntentintent to search. The index must be in the same account and Region as the Amazon Lex bot.
- query_filter_string
A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query.
The filter is in the format defined by Amazon Kendra. For more information, see Filtering queries .
- query_filter_string_enabled
Determines whether the
AMAZON.KendraSearchIntentintent uses a custom query string to query the Amazon Kendra index.
LambdaCodeHookProperty
- class CfnBotPropsMixin.LambdaCodeHookProperty(*, code_hook_interface_version=None, lambda_arn=None)
Bases:
objectSpecifies a Lambda function that verifies requests to a bot or fulfills the user’s request to a bot.
- Parameters:
code_hook_interface_version (
Optional[str]) – The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.lambda_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Lambda function.
- 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.mixins_preview.aws_lex import mixins as lex_mixins lambda_code_hook_property = lex_mixins.CfnBotPropsMixin.LambdaCodeHookProperty( code_hook_interface_version="codeHookInterfaceVersion", lambda_arn="lambdaArn" )
Attributes
- code_hook_interface_version
The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.
- lambda_arn
The Amazon Resource Name (ARN) of the Lambda function.
MessageGroupProperty
- class CfnBotPropsMixin.MessageGroupProperty(*, message=None, variations=None)
Bases:
objectProvides one or more messages that Amazon Lex should send to the user.
- Parameters:
message (
Union[IResolvable,MessageProperty,Dict[str,Any],None]) – The primary message that Amazon Lex should send to the user.variations (
Union[IResolvable,Sequence[Union[IResolvable,MessageProperty,Dict[str,Any]]],None]) – Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
- 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.mixins_preview.aws_lex import mixins as lex_mixins message_group_property = lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )
Attributes
- message
The primary message that Amazon Lex should send to the user.
- variations
Message variations to send to the user.
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
MessageProperty
- class CfnBotPropsMixin.MessageProperty(*, custom_payload=None, image_response_card=None, plain_text_message=None, ssml_message=None)
Bases:
objectThe object that provides message text and its type.
- Parameters:
custom_payload (
Union[IResolvable,CustomPayloadProperty,Dict[str,Any],None]) – A message in a custom format defined by the client application.image_response_card (
Union[IResolvable,ImageResponseCardProperty,Dict[str,Any],None]) – A message that defines a response card that the client application can show to the user.plain_text_message (
Union[IResolvable,PlainTextMessageProperty,Dict[str,Any],None]) – A message in plain text format.ssml_message (
Union[IResolvable,SSMLMessageProperty,Dict[str,Any],None]) – A message in Speech Synthesis Markup Language (SSML).
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-message.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 message_property = lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )
Attributes
- custom_payload
A message in a custom format defined by the client application.
- image_response_card
A message that defines a response card that the client application can show to the user.
- plain_text_message
A message in plain text format.
- ssml_message
A message in Speech Synthesis Markup Language (SSML).
MultipleValuesSettingProperty
- class CfnBotPropsMixin.MultipleValuesSettingProperty(*, allow_multiple_values=None)
Bases:
objectIndicates whether a slot can return multiple values.
- Parameters:
allow_multiple_values (
Union[bool,IResolvable,None]) – Indicates whether a slot can return multiple values. Whentrue, the slot may return more than one value in a response. Whenfalse, the slot returns only a single value. Multi-value slots are only available in the en-US locale. If you set this value totruein any other locale, Amazon Lex throws aValidationException. If theallowMutlipleValuesis not set, the default value isfalse.- 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.mixins_preview.aws_lex import mixins as lex_mixins multiple_values_setting_property = lex_mixins.CfnBotPropsMixin.MultipleValuesSettingProperty( allow_multiple_values=False )
Attributes
- allow_multiple_values
Indicates whether a slot can return multiple values.
When
true, the slot may return more than one value in a response. Whenfalse, the slot returns only a single value.Multi-value slots are only available in the en-US locale. If you set this value to
truein any other locale, Amazon Lex throws aValidationException.If the
allowMutlipleValuesis not set, the default value isfalse.
NluImprovementSpecificationProperty
- class CfnBotPropsMixin.NluImprovementSpecificationProperty(*, enabled=None)
Bases:
objectConfigures the Assisted Natural Language Understanding (NLU) feature for your bot.
This specification determines whether enhanced intent recognition and utterance understanding capabilities are active.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Determines whether the Assisted NLU feature is enabled for the bot. When set totrue, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default beingfalse.- 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.mixins_preview.aws_lex import mixins as lex_mixins nlu_improvement_specification_property = lex_mixins.CfnBotPropsMixin.NluImprovementSpecificationProperty( enabled=False )
Attributes
- enabled
Determines whether the Assisted NLU feature is enabled for the bot.
When set to
true, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default beingfalse.
ObfuscationSettingProperty
- class CfnBotPropsMixin.ObfuscationSettingProperty(*, obfuscation_setting_type=None)
Bases:
objectDetermines whether Amazon Lex obscures slot values in conversation logs.
- Parameters:
obfuscation_setting_type (
Optional[str]) – Value that determines whether Amazon Lex obscures slot values in conversation logs. The default is to obscure the values.- 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.mixins_preview.aws_lex import mixins as lex_mixins obfuscation_setting_property = lex_mixins.CfnBotPropsMixin.ObfuscationSettingProperty( obfuscation_setting_type="obfuscationSettingType" )
Attributes
- obfuscation_setting_type
Value that determines whether Amazon Lex obscures slot values in conversation logs.
The default is to obscure the values.
OpensearchConfigurationProperty
- class CfnBotPropsMixin.OpensearchConfigurationProperty(*, domain_endpoint=None, exact_response=None, exact_response_fields=None, include_fields=None, index_name=None)
Bases:
objectContains details about the configuration of the Amazon OpenSearch Service database used for the
AMAZON.QnAIntent.- Parameters:
domain_endpoint (
Optional[str]) – The endpoint of the Amazon OpenSearch Service domain.exact_response (
Union[bool,IResolvable,None]) – Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.exact_response_fields (
Union[IResolvable,ExactResponseFieldsProperty,Dict[str,Any],None]) – Contains the names of the fields used for an exact response to the user.include_fields (
Optional[Sequence[str]]) – Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.index_name (
Optional[str]) – The name of the Amazon OpenSearch Service index.
- 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.mixins_preview.aws_lex import mixins as lex_mixins opensearch_configuration_property = lex_mixins.CfnBotPropsMixin.OpensearchConfigurationProperty( domain_endpoint="domainEndpoint", exact_response=False, exact_response_fields=lex_mixins.CfnBotPropsMixin.ExactResponseFieldsProperty( answer_field="answerField", question_field="questionField" ), include_fields=["includeFields"], index_name="indexName" )
Attributes
- domain_endpoint
The endpoint of the Amazon OpenSearch Service domain.
- exact_response
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
- exact_response_fields
Contains the names of the fields used for an exact response to the user.
- include_fields
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
- index_name
The name of the Amazon OpenSearch Service index.
OutputContextProperty
- class CfnBotPropsMixin.OutputContextProperty(*, name=None, time_to_live_in_seconds=None, turns_to_live=None)
Bases:
objectDescribes a session context that is activated when an intent is fulfilled.
- Parameters:
name (
Optional[str]) – The name of the output context.time_to_live_in_seconds (
Union[int,float,None]) – The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.turns_to_live (
Union[int,float,None]) – The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
- 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.mixins_preview.aws_lex import mixins as lex_mixins output_context_property = lex_mixins.CfnBotPropsMixin.OutputContextProperty( name="name", time_to_live_in_seconds=123, turns_to_live=123 )
Attributes
- name
The name of the output context.
- time_to_live_in_seconds
The amount of time, in seconds, that the output context should remain active.
The time is figured from the first time the context is sent to the user.
- turns_to_live
The number of conversation turns that the output context should remain active.
The number of turns is counted from the first time that the context is sent to the user.
PlainTextMessageProperty
- class CfnBotPropsMixin.PlainTextMessageProperty(*, value=None)
Bases:
objectDefines an ASCII text message to send to the user.
- Parameters:
value (
Optional[str]) – The message to send to the user.- 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.mixins_preview.aws_lex import mixins as lex_mixins plain_text_message_property = lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" )
Attributes
- value
The message to send to the user.
PostDialogCodeHookInvocationSpecificationProperty
- class CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty(*, failure_conditional=None, failure_next_step=None, failure_response=None, success_conditional=None, success_next_step=None, success_response=None, timeout_conditional=None, timeout_next_step=None, timeout_response=None)
Bases:
objectSpecifies next steps to run after the dialog code hook finishes.
- Parameters:
failure_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.failure_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.failure_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input when the code hook fails.success_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the dialog code hook finishes successfully.success_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifics the next step the bot runs after the dialog code hook finishes successfully.success_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond when the code hook succeeds.timeout_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate if the code hook times out.timeout_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot runs when the code hook times out.timeout_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond to the user input when the code hook times out.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- failure_conditional
A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed.
- failure_next_step
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed.
- failure_response
Specifies a list of message groups that Amazon Lex uses to respond the user input when the code hook fails.
- success_conditional
A list of conditional branches to evaluate after the dialog code hook finishes successfully.
- success_next_step
Specifics the next step the bot runs after the dialog code hook finishes successfully.
- success_response
Specifies a list of message groups that Amazon Lex uses to respond when the code hook succeeds.
- timeout_conditional
A list of conditional branches to evaluate if the code hook times out.
- timeout_next_step
Specifies the next step that the bot runs when the code hook times out.
- timeout_response
Specifies a list of message groups that Amazon Lex uses to respond to the user input when the code hook times out.
PostFulfillmentStatusSpecificationProperty
- class CfnBotPropsMixin.PostFulfillmentStatusSpecificationProperty(*, failure_conditional=None, failure_next_step=None, failure_response=None, success_conditional=None, success_next_step=None, success_response=None, timeout_conditional=None, timeout_next_step=None, timeout_response=None)
Bases:
objectProvides a setting that determines whether the post-fulfillment response is sent to the user.
For more information, see ` <https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete>`_
- Parameters:
failure_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.failure_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.failure_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn’t successful.success_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.success_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.success_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.timeout_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate if the fulfillment code hook times out.timeout_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot runs when the fulfillment code hook times out.timeout_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn’t completed within the timeout period.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- failure_conditional
A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed.
- failure_next_step
Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed.
- failure_response
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn’t successful.
- success_conditional
A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.
- success_next_step
Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.
- success_response
Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.
- timeout_conditional
A list of conditional branches to evaluate if the fulfillment code hook times out.
- timeout_next_step
Specifies the next step that the bot runs when the fulfillment code hook times out.
- timeout_response
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn’t completed within the timeout period.
PromptAttemptSpecificationProperty
- class CfnBotPropsMixin.PromptAttemptSpecificationProperty(*, allowed_input_types=None, allow_interrupt=None, audio_and_dtmf_input_specification=None, text_input_specification=None)
Bases:
objectSpecifies the settings on a prompt attempt.
- Parameters:
allowed_input_types (
Union[IResolvable,AllowedInputTypesProperty,Dict[str,Any],None]) – Indicates the allowed input types of the prompt attempt.allow_interrupt (
Union[bool,IResolvable,None]) – Indicates whether the user can interrupt a speech prompt attempt from the bot.audio_and_dtmf_input_specification (
Union[IResolvable,AudioAndDTMFInputSpecificationProperty,Dict[str,Any],None]) – Specifies the settings on audio and DTMF input.text_input_specification (
Union[IResolvable,TextInputSpecificationProperty,Dict[str,Any],None]) – Specifies the settings on text input.
- 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.mixins_preview.aws_lex import mixins as lex_mixins prompt_attempt_specification_property = lex_mixins.CfnBotPropsMixin.PromptAttemptSpecificationProperty( allowed_input_types=lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False ), allow_interrupt=False, audio_and_dtmf_input_specification=lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 ), text_input_specification=lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 ) )
Attributes
- allow_interrupt
Indicates whether the user can interrupt a speech prompt attempt from the bot.
- allowed_input_types
Indicates the allowed input types of the prompt attempt.
- audio_and_dtmf_input_specification
Specifies the settings on audio and DTMF input.
- text_input_specification
Specifies the settings on text input.
PromptSpecificationProperty
- class CfnBotPropsMixin.PromptSpecificationProperty(*, allow_interrupt=None, max_retries=None, message_groups_list=None, message_selection_strategy=None, prompt_attempts_specification=None)
Bases:
objectSpecifies a list of message groups that Amazon Lex sends to a user to elicit a response.
- Parameters:
allow_interrupt (
Union[bool,IResolvable,None]) – Indicates whether the user can interrupt a speech prompt from the bot.max_retries (
Union[int,float,None]) – The maximum number of times the bot tries to elicit a response from the user using this prompt.message_groups_list (
Union[IResolvable,Sequence[Union[IResolvable,MessageGroupProperty,Dict[str,Any]]],None]) – A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.message_selection_strategy (
Optional[str]) – Indicates how a message is selected from a message group among retries.prompt_attempts_specification (
Union[IResolvable,Mapping[str,Union[IResolvable,PromptAttemptSpecificationProperty,Dict[str,Any]]],None]) – Specifies the advanced settings on each attempt of the prompt.
- 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.mixins_preview.aws_lex import mixins as lex_mixins prompt_specification_property = lex_mixins.CfnBotPropsMixin.PromptSpecificationProperty( allow_interrupt=False, max_retries=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], message_selection_strategy="messageSelectionStrategy", prompt_attempts_specification={ "prompt_attempts_specification_key": lex_mixins.CfnBotPropsMixin.PromptAttemptSpecificationProperty( allowed_input_types=lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False ), allow_interrupt=False, audio_and_dtmf_input_specification=lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 ), text_input_specification=lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 ) ) } )
Attributes
- allow_interrupt
Indicates whether the user can interrupt a speech prompt from the bot.
- max_retries
The maximum number of times the bot tries to elicit a response from the user using this prompt.
- message_groups_list
A collection of messages that Amazon Lex can send to the user.
Amazon Lex chooses the actual message to send at runtime.
- message_selection_strategy
Indicates how a message is selected from a message group among retries.
- prompt_attempts_specification
Specifies the advanced settings on each attempt of the prompt.
QInConnectAssistantConfigurationProperty
- class CfnBotPropsMixin.QInConnectAssistantConfigurationProperty(*, assistant_arn=None)
Bases:
object- Parameters:
assistant_arn (
Optional[str])- 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.mixins_preview.aws_lex import mixins as lex_mixins q_in_connect_assistant_configuration_property = lex_mixins.CfnBotPropsMixin.QInConnectAssistantConfigurationProperty( assistant_arn="assistantArn" )
Attributes
QInConnectIntentConfigurationProperty
- class CfnBotPropsMixin.QInConnectIntentConfigurationProperty(*, q_in_connect_assistant_configuration=None)
Bases:
object- Parameters:
q_in_connect_assistant_configuration (
Union[IResolvable,QInConnectAssistantConfigurationProperty,Dict[str,Any],None])- 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.mixins_preview.aws_lex import mixins as lex_mixins q_in_connect_intent_configuration_property = lex_mixins.CfnBotPropsMixin.QInConnectIntentConfigurationProperty( q_in_connect_assistant_configuration=lex_mixins.CfnBotPropsMixin.QInConnectAssistantConfigurationProperty( assistant_arn="assistantArn" ) )
Attributes
QnAIntentConfigurationProperty
- class CfnBotPropsMixin.QnAIntentConfigurationProperty(*, bedrock_model_configuration=None, data_source_configuration=None)
Bases:
objectDetails about the the configuration of the built-in
Amazon.QnAIntent.- Parameters:
bedrock_model_configuration (
Union[IResolvable,BedrockModelSpecificationProperty,Dict[str,Any],None])data_source_configuration (
Union[IResolvable,DataSourceConfigurationProperty,Dict[str,Any],None]) – Contains details about the configuration of the data source used for theAMAZON.QnAIntent.
- 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.mixins_preview.aws_lex import mixins as lex_mixins qn_aIntent_configuration_property = lex_mixins.CfnBotPropsMixin.QnAIntentConfigurationProperty( bedrock_model_configuration=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), data_source_configuration=lex_mixins.CfnBotPropsMixin.DataSourceConfigurationProperty( bedrock_knowledge_store_configuration=lex_mixins.CfnBotPropsMixin.BedrockKnowledgeStoreConfigurationProperty( bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn", bkb_exact_response_fields=lex_mixins.CfnBotPropsMixin.BKBExactResponseFieldsProperty( answer_field="answerField" ), exact_response=False ), kendra_configuration=lex_mixins.CfnBotPropsMixin.QnAKendraConfigurationProperty( exact_response=False, kendra_index="kendraIndex", query_filter_string="queryFilterString", query_filter_string_enabled=False ), opensearch_configuration=lex_mixins.CfnBotPropsMixin.OpensearchConfigurationProperty( domain_endpoint="domainEndpoint", exact_response=False, exact_response_fields=lex_mixins.CfnBotPropsMixin.ExactResponseFieldsProperty( answer_field="answerField", question_field="questionField" ), include_fields=["includeFields"], index_name="indexName" ) ) )
Attributes
- bedrock_model_configuration
-
- Type:
see
- data_source_configuration
Contains details about the configuration of the data source used for the
AMAZON.QnAIntent.
QnAKendraConfigurationProperty
- class CfnBotPropsMixin.QnAKendraConfigurationProperty(*, exact_response=None, kendra_index=None, query_filter_string=None, query_filter_string_enabled=None)
Bases:
objectContains details about the configuration of the Amazon Kendra index used for the
AMAZON.QnAIntent.- Parameters:
exact_response (
Union[bool,IResolvable,None]) – Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index .kendra_index (
Optional[str]) – The ARN of the Amazon Kendra index to use.query_filter_string (
Optional[str]) – Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results .query_filter_string_enabled (
Union[bool,IResolvable,None]) – Specifies whether to enable an Amazon Kendra filter string or not.
- 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.mixins_preview.aws_lex import mixins as lex_mixins qn_aKendra_configuration_property = lex_mixins.CfnBotPropsMixin.QnAKendraConfigurationProperty( exact_response=False, kendra_index="kendraIndex", query_filter_string="queryFilterString", query_filter_string_enabled=False )
Attributes
- exact_response
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results.
To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index .
- kendra_index
The ARN of the Amazon Kendra index to use.
- query_filter_string
Contains the Amazon Kendra filter string to use if enabled.
For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results .
- query_filter_string_enabled
Specifies whether to enable an Amazon Kendra filter string or not.
ReplicationProperty
- class CfnBotPropsMixin.ReplicationProperty(*, replica_regions=None)
Bases:
object- Parameters:
replica_regions (
Optional[Sequence[str]])- 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.mixins_preview.aws_lex import mixins as lex_mixins replication_property = lex_mixins.CfnBotPropsMixin.ReplicationProperty( replica_regions=["replicaRegions"] )
Attributes
ResponseSpecificationProperty
- class CfnBotPropsMixin.ResponseSpecificationProperty(*, allow_interrupt=None, message_groups_list=None)
Bases:
objectSpecifies a list of message groups that Amazon Lex uses to respond the user input.
- Parameters:
allow_interrupt (
Union[bool,IResolvable,None]) – Indicates whether the user can interrupt a speech response from Amazon Lex.message_groups_list (
Union[IResolvable,Sequence[Union[IResolvable,MessageGroupProperty,Dict[str,Any]]],None]) – A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
- 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.mixins_preview.aws_lex import mixins as lex_mixins response_specification_property = lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] )
Attributes
- allow_interrupt
Indicates whether the user can interrupt a speech response from Amazon Lex.
- message_groups_list
A collection of responses that Amazon Lex can send to the user.
Amazon Lex chooses the actual response to send at runtime.
RuntimeSettingsProperty
- class CfnBotPropsMixin.RuntimeSettingsProperty(*, nlu_improvement_specification=None, slot_resolution_improvement_specification=None)
Bases:
objectContains specifications about the Amazon Lex runtime generative AI capabilities from Amazon Bedrock that you can turn on for your bot.
- Parameters:
nlu_improvement_specification (
Union[IResolvable,NluImprovementSpecificationProperty,Dict[str,Any],None])slot_resolution_improvement_specification (
Union[IResolvable,SlotResolutionImprovementSpecificationProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins runtime_settings_property = lex_mixins.CfnBotPropsMixin.RuntimeSettingsProperty( nlu_improvement_specification=lex_mixins.CfnBotPropsMixin.NluImprovementSpecificationProperty( enabled=False ), slot_resolution_improvement_specification=lex_mixins.CfnBotPropsMixin.SlotResolutionImprovementSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False ) )
Attributes
- nlu_improvement_specification
-
- Type:
see
- slot_resolution_improvement_specification
-
- Type:
see
S3BucketLogDestinationProperty
- class CfnBotPropsMixin.S3BucketLogDestinationProperty(*, kms_key_arn=None, log_prefix=None, s3_bucket_arn=None)
Bases:
objectSpecifies an Amazon S3 bucket for logging audio conversations.
- Parameters:
kms_key_arn (
Optional[str]) – The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an Amazon S3 bucket.log_prefix (
Optional[str]) – The S3 prefix to assign to audio log files.s3_bucket_arn (
Optional[str]) – The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.
- 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.mixins_preview.aws_lex import mixins as lex_mixins s3_bucket_log_destination_property = lex_mixins.CfnBotPropsMixin.S3BucketLogDestinationProperty( kms_key_arn="kmsKeyArn", log_prefix="logPrefix", s3_bucket_arn="s3BucketArn" )
Attributes
- kms_key_arn
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an Amazon S3 bucket.
- log_prefix
The S3 prefix to assign to audio log files.
- s3_bucket_arn
The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.
S3LocationProperty
- class CfnBotPropsMixin.S3LocationProperty(*, s3_bucket=None, s3_object_key=None, s3_object_version=None)
Bases:
objectDefines an Amazon S3 bucket location.
- Parameters:
s3_bucket (
Optional[str]) – The S3 bucket name.s3_object_key (
Optional[str]) – The path and file name to the object in the S3 bucket.s3_object_version (
Optional[str]) – The version of the object in the S3 bucket.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-s3location.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 s3_location_property = lex_mixins.CfnBotPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_object_key="s3ObjectKey", s3_object_version="s3ObjectVersion" )
Attributes
- s3_bucket
The S3 bucket name.
- s3_object_key
The path and file name to the object in the S3 bucket.
- s3_object_version
The version of the object in the S3 bucket.
SSMLMessageProperty
- class CfnBotPropsMixin.SSMLMessageProperty(*, value=None)
Bases:
objectDefines a Speech Synthesis Markup Language (SSML) prompt.
- Parameters:
value (
Optional[str]) – The SSML text that defines the prompt.- 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.mixins_preview.aws_lex import mixins as lex_mixins s_sMLMessage_property = lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" )
Attributes
- value
The SSML text that defines the prompt.
SampleUtteranceGenerationSpecificationProperty
- class CfnBotPropsMixin.SampleUtteranceGenerationSpecificationProperty(*, bedrock_model_specification=None, enabled=None)
Bases:
objectContains specifications for the sample utterance generation feature.
- Parameters:
bedrock_model_specification (
Union[IResolvable,BedrockModelSpecificationProperty,Dict[str,Any],None])enabled (
Union[bool,IResolvable,None]) – Specifies whether to enable sample utterance generation or not.
- 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.mixins_preview.aws_lex import mixins as lex_mixins sample_utterance_generation_specification_property = lex_mixins.CfnBotPropsMixin.SampleUtteranceGenerationSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False )
Attributes
- bedrock_model_specification
-
- Type:
see
- enabled
Specifies whether to enable sample utterance generation or not.
SampleUtteranceProperty
- class CfnBotPropsMixin.SampleUtteranceProperty(*, utterance=None)
Bases:
objectA sample utterance that invokes an intent or respond to a slot elicitation prompt.
- Parameters:
utterance (
Optional[str]) – A sample utterance that invokes an intent or respond to a slot elicitation prompt.- 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.mixins_preview.aws_lex import mixins as lex_mixins sample_utterance_property = lex_mixins.CfnBotPropsMixin.SampleUtteranceProperty( utterance="utterance" )
Attributes
- utterance
A sample utterance that invokes an intent or respond to a slot elicitation prompt.
SampleValueProperty
- class CfnBotPropsMixin.SampleValueProperty(*, value=None)
Bases:
objectDefines one of the values for a slot type.
- Parameters:
value (
Optional[str]) – The value that can be used for a slot 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.mixins_preview.aws_lex import mixins as lex_mixins sample_value_property = lex_mixins.CfnBotPropsMixin.SampleValueProperty( value="value" )
Attributes
- value
The value that can be used for a slot type.
SessionAttributeProperty
- class CfnBotPropsMixin.SessionAttributeProperty(*, key=None, value=None)
Bases:
objectA key/value pair representing session-specific context information.
It contains application information passed between Amazon Lex V2 and a client application.
- Parameters:
key (
Optional[str]) – The name of the session attribute.value (
Optional[str]) – The session-specific context information for the session attribute.
- 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.mixins_preview.aws_lex import mixins as lex_mixins session_attribute_property = lex_mixins.CfnBotPropsMixin.SessionAttributeProperty( key="key", value="value" )
Attributes
- key
The name of the session attribute.
- value
The session-specific context information for the session attribute.
SlotCaptureSettingProperty
- class CfnBotPropsMixin.SlotCaptureSettingProperty(*, capture_conditional=None, capture_next_step=None, capture_response=None, code_hook=None, elicitation_code_hook=None, failure_conditional=None, failure_next_step=None, failure_response=None)
Bases:
objectSettings used when Amazon Lex successfully captures a slot value from a user.
- Parameters:
capture_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate after the slot value is captured.capture_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot runs when the slot value is captured before the code hook times out.capture_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input.code_hook (
Union[IResolvable,DialogCodeHookInvocationSettingProperty,Dict[str,Any],None]) – Code hook called after Amazon Lex successfully captures a slot value.elicitation_code_hook (
Union[IResolvable,ElicitationCodeHookInvocationSettingProperty,Dict[str,Any],None]) – Code hook called when Amazon Lex doesn’t capture a slot value.failure_conditional (
Union[IResolvable,ConditionalSpecificationProperty,Dict[str,Any],None]) – A list of conditional branches to evaluate when the slot value isn’t captured.failure_next_step (
Union[IResolvable,DialogStateProperty,Dict[str,Any],None]) – Specifies the next step that the bot runs when the slot value code is not recognized.failure_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – Specifies a list of message groups that Amazon Lex uses to respond the user input when the slot fails to be captured.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- capture_conditional
A list of conditional branches to evaluate after the slot value is captured.
- capture_next_step
Specifies the next step that the bot runs when the slot value is captured before the code hook times out.
- capture_response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
- code_hook
Code hook called after Amazon Lex successfully captures a slot value.
- elicitation_code_hook
Code hook called when Amazon Lex doesn’t capture a slot value.
- failure_conditional
A list of conditional branches to evaluate when the slot value isn’t captured.
- failure_next_step
Specifies the next step that the bot runs when the slot value code is not recognized.
- failure_response
Specifies a list of message groups that Amazon Lex uses to respond the user input when the slot fails to be captured.
SlotDefaultValueProperty
- class CfnBotPropsMixin.SlotDefaultValueProperty(*, default_value=None)
Bases:
objectSpecifies the default value to use when a user doesn’t provide a value for a slot.
- Parameters:
default_value (
Optional[str]) – The default value to use when a user doesn’t provide a value for a slot.- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_default_value_property = lex_mixins.CfnBotPropsMixin.SlotDefaultValueProperty( default_value="defaultValue" )
Attributes
- default_value
The default value to use when a user doesn’t provide a value for a slot.
SlotDefaultValueSpecificationProperty
- class CfnBotPropsMixin.SlotDefaultValueSpecificationProperty(*, default_value_list=None)
Bases:
objectThe default value to use when a user doesn’t provide a value for a slot.
- Parameters:
default_value_list (
Union[IResolvable,Sequence[Union[IResolvable,SlotDefaultValueProperty,Dict[str,Any]]],None]) – A list of default values. Amazon Lex chooses the default value to use in the order that they are presented in the list.- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_default_value_specification_property = lex_mixins.CfnBotPropsMixin.SlotDefaultValueSpecificationProperty( default_value_list=[lex_mixins.CfnBotPropsMixin.SlotDefaultValueProperty( default_value="defaultValue" )] )
Attributes
- default_value_list
A list of default values.
Amazon Lex chooses the default value to use in the order that they are presented in the list.
SlotPriorityProperty
- class CfnBotPropsMixin.SlotPriorityProperty(*, priority=None, slot_name=None)
Bases:
objectSets the priority that Amazon Lex should use when eliciting slot values from a user.
- Parameters:
priority (
Union[int,float,None]) – The priority that Amazon Lex should apply to the slot.slot_name (
Optional[str]) – The name of the slot.
- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_priority_property = lex_mixins.CfnBotPropsMixin.SlotPriorityProperty( priority=123, slot_name="slotName" )
Attributes
- priority
The priority that Amazon Lex should apply to the slot.
- slot_name
The name of the slot.
SlotProperty
- class CfnBotPropsMixin.SlotProperty(*, description=None, multiple_values_setting=None, name=None, obfuscation_setting=None, slot_type_name=None, sub_slot_setting=None, value_elicitation_setting=None)
Bases:
objectSpecifies the definition of a slot.
Amazon Lex elicits slot values from uses to fulfill the user’s intent.
- Parameters:
description (
Optional[str]) – The description of the slot.multiple_values_setting (
Union[IResolvable,MultipleValuesSettingProperty,Dict[str,Any],None]) – Indicates whether a slot can return multiple values.name (
Optional[str]) – The name given to the slot.obfuscation_setting (
Union[IResolvable,ObfuscationSettingProperty,Dict[str,Any],None]) – Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.slot_type_name (
Optional[str]) – The name of the slot type that this slot is based on. The slot type defines the acceptable values for the slot.sub_slot_setting (
Union[IResolvable,SubSlotSettingProperty,Dict[str,Any],None])value_elicitation_setting (
Union[IResolvable,SlotValueElicitationSettingProperty,Dict[str,Any],None]) – Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: - ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value. - TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don’t specify thevalueSelectionStrategy, the default isORIGINAL_VALUE.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slot.html
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- description
The description of the slot.
- multiple_values_setting
Indicates whether a slot can return multiple values.
- name
The name given to the slot.
- obfuscation_setting
Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs.
Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
- slot_type_name
The name of the slot type that this slot is based on.
The slot type defines the acceptable values for the slot.
- sub_slot_setting
-
- Type:
see
- value_elicitation_setting
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
The field can be set to one of the following values:
ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don’t specify the
valueSelectionStrategy, the default isORIGINAL_VALUE.
SlotResolutionImprovementSpecificationProperty
- class CfnBotPropsMixin.SlotResolutionImprovementSpecificationProperty(*, bedrock_model_specification=None, enabled=None)
Bases:
objectContains specifications for the assisted slot resolution feature.
- Parameters:
bedrock_model_specification (
Union[IResolvable,BedrockModelSpecificationProperty,Dict[str,Any],None]) – An object containing information about the Amazon Bedrock model used to assist slot resolution.enabled (
Union[bool,IResolvable,None]) – Specifies whether assisted slot resolution is turned on or off.
- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_resolution_improvement_specification_property = lex_mixins.CfnBotPropsMixin.SlotResolutionImprovementSpecificationProperty( bedrock_model_specification=lex_mixins.CfnBotPropsMixin.BedrockModelSpecificationProperty( bedrock_guardrail_configuration=lex_mixins.CfnBotPropsMixin.BedrockGuardrailConfigurationProperty( bedrock_guardrail_identifier="bedrockGuardrailIdentifier", bedrock_guardrail_version="bedrockGuardrailVersion" ), bedrock_model_custom_prompt="bedrockModelCustomPrompt", bedrock_trace_status="bedrockTraceStatus", model_arn="modelArn" ), enabled=False )
Attributes
- bedrock_model_specification
An object containing information about the Amazon Bedrock model used to assist slot resolution.
- enabled
Specifies whether assisted slot resolution is turned on or off.
SlotTypeProperty
- class CfnBotPropsMixin.SlotTypeProperty(*, composite_slot_type_setting=None, description=None, external_source_setting=None, name=None, parent_slot_type_signature=None, slot_type_values=None, value_selection_setting=None)
Bases:
objectDescribes a slot type.
- Parameters:
composite_slot_type_setting (
Union[IResolvable,CompositeSlotTypeSettingProperty,Dict[str,Any],None])description (
Optional[str]) – A description of the slot type. Use the description to help identify the slot type in lists.external_source_setting (
Union[IResolvable,ExternalSourceSettingProperty,Dict[str,Any],None]) – Sets the type of external information used to create the slot type.name (
Optional[str]) – The name of the slot type. A slot type name must be unique withing the account.parent_slot_type_signature (
Optional[str]) – The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent lot type. OnlyAMAZON.AlphaNumericis supported.slot_type_values (
Union[IResolvable,Sequence[Union[IResolvable,SlotTypeValueProperty,Dict[str,Any]]],None]) – A list of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for the slot.value_selection_setting (
Union[IResolvable,SlotValueSelectionSettingProperty,Dict[str,Any],None]) – Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: -ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value. -TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don’t specify thevalueSelectionStrategy, the default isORIGINAL_VALUE.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.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 slot_type_property = lex_mixins.CfnBotPropsMixin.SlotTypeProperty( composite_slot_type_setting=lex_mixins.CfnBotPropsMixin.CompositeSlotTypeSettingProperty( sub_slots=[lex_mixins.CfnBotPropsMixin.SubSlotTypeCompositionProperty( name="name", slot_type_id="slotTypeId" )] ), description="description", external_source_setting=lex_mixins.CfnBotPropsMixin.ExternalSourceSettingProperty( grammar_slot_type_setting=lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSettingProperty( source=lex_mixins.CfnBotPropsMixin.GrammarSlotTypeSourceProperty( kms_key_arn="kmsKeyArn", s3_bucket_name="s3BucketName", s3_object_key="s3ObjectKey" ) ) ), name="name", parent_slot_type_signature="parentSlotTypeSignature", slot_type_values=[lex_mixins.CfnBotPropsMixin.SlotTypeValueProperty( sample_value=lex_mixins.CfnBotPropsMixin.SampleValueProperty( value="value" ), synonyms=[lex_mixins.CfnBotPropsMixin.SampleValueProperty( value="value" )] )], value_selection_setting=lex_mixins.CfnBotPropsMixin.SlotValueSelectionSettingProperty( advanced_recognition_setting=lex_mixins.CfnBotPropsMixin.AdvancedRecognitionSettingProperty( audio_recognition_strategy="audioRecognitionStrategy" ), regex_filter=lex_mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty( pattern="pattern" ), resolution_strategy="resolutionStrategy" ) )
Attributes
- composite_slot_type_setting
-
- Type:
see
- description
A description of the slot type.
Use the description to help identify the slot type in lists.
- external_source_setting
Sets the type of external information used to create the slot type.
- name
The name of the slot type.
A slot type name must be unique withing the account.
- parent_slot_type_signature
The built-in slot type used as a parent of this slot type.
When you define a parent slot type, the new slot type has the configuration of the parent lot type.
Only
AMAZON.AlphaNumericis supported.
- slot_type_values
A list of SlotTypeValue objects that defines the values that the slot type can take.
Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for the slot.
- value_selection_setting
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
The field can be set to one of the following values:
ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don’t specify the
valueSelectionStrategy, the default isORIGINAL_VALUE.
SlotTypeValueProperty
- class CfnBotPropsMixin.SlotTypeValueProperty(*, sample_value=None, synonyms=None)
Bases:
objectEach slot type can have a set of values.
Each
SlotTypeValuerepresents a value that the slot type can take.- Parameters:
sample_value (
Union[IResolvable,SampleValueProperty,Dict[str,Any],None]) – The value of the slot type entry.synonyms (
Union[IResolvable,Sequence[Union[IResolvable,SampleValueProperty,Dict[str,Any]]],None]) – Additional values related to the slot type entry.
- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_type_value_property = lex_mixins.CfnBotPropsMixin.SlotTypeValueProperty( sample_value=lex_mixins.CfnBotPropsMixin.SampleValueProperty( value="value" ), synonyms=[lex_mixins.CfnBotPropsMixin.SampleValueProperty( value="value" )] )
Attributes
- sample_value
The value of the slot type entry.
- synonyms
Additional values related to the slot type entry.
SlotValueElicitationSettingProperty
- class CfnBotPropsMixin.SlotValueElicitationSettingProperty(*, default_value_specification=None, prompt_specification=None, sample_utterances=None, slot_capture_setting=None, slot_constraint=None, wait_and_continue_specification=None)
Bases:
objectSpecifies the elicitation setting details eliciting a slot.
- Parameters:
default_value_specification (
Union[IResolvable,SlotDefaultValueSpecificationProperty,Dict[str,Any],None]) – A list of default values for a slot. Default values are used when Amazon Lex hasn’t determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.prompt_specification (
Union[IResolvable,PromptSpecificationProperty,Dict[str,Any],None]) – The prompt that Amazon Lex uses to elicit the slot value from the user.sample_utterances (
Union[IResolvable,Sequence[Union[IResolvable,SampleUtteranceProperty,Dict[str,Any]]],None]) – If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.slot_capture_setting (
Union[IResolvable,SlotCaptureSettingProperty,Dict[str,Any],None]) – Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.slot_constraint (
Optional[str]) – Specifies whether the slot is required or optional.wait_and_continue_specification (
Union[IResolvable,WaitAndContinueSpecificationProperty,Dict[str,Any],None]) – Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
- See:
- ExampleMetadata:
fixture=_generated
Example:
.. rubric:: Attributes
- default_value_specification
A list of default values for a slot.
Default values are used when Amazon Lex hasn’t determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
- prompt_specification
The prompt that Amazon Lex uses to elicit the slot value from the user.
- sample_utterances
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
- slot_capture_setting
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
- slot_constraint
Specifies whether the slot is required or optional.
- wait_and_continue_specification
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
SlotValueOverrideMapProperty
- class CfnBotPropsMixin.SlotValueOverrideMapProperty(*, slot_name=None, slot_value_override=None)
Bases:
objectMaps a slot name to the SlotValueOverride object.
- Parameters:
slot_name (
Optional[str]) – The name of the slot.slot_value_override (
Union[IResolvable,SlotValueOverrideProperty,Dict[str,Any],None]) – The SlotValueOverride object to which the slot name will be mapped.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty slot_value_override_map_property = lex_mixins.CfnBotPropsMixin.SlotValueOverrideMapProperty( slot_name="slotName", slot_value_override=lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] ) )
Attributes
- slot_name
The name of the slot.
- slot_value_override
The SlotValueOverride object to which the slot name will be mapped.
SlotValueOverrideProperty
- class CfnBotPropsMixin.SlotValueOverrideProperty(*, shape=None, value=None, values=None)
Bases:
objectThe slot values that Amazon Lex uses when it sets slot values in a dialog step.
- Parameters:
shape (
Optional[str]) – When the shape value isList, it indicates that thevaluesfield contains a list of slot values. When the value isScalar, it indicates that thevaluefield contains a single value.value (
Union[IResolvable,SlotValueProperty,Dict[str,Any],None]) – The current value of the slot.values (
Union[IResolvable,Sequence[Union[IResolvable,SlotValueOverrideProperty,Dict[str,Any]]],None]) – A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be “pepperoni” and “pineapple.”
- 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.mixins_preview.aws_lex import mixins as lex_mixins # slot_value_override_property_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty slot_value_override_property = lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty( shape="shape", value=lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" ), values=[slot_value_override_property_] )
Attributes
- shape
When the shape value is
List, it indicates that thevaluesfield contains a list of slot values.When the value is
Scalar, it indicates that thevaluefield contains a single value.
- value
The current value of the slot.
- values
A list of one or more values that the user provided for the slot.
For example, for a slot that elicits pizza toppings, the values might be “pepperoni” and “pineapple.”
SlotValueProperty
- class CfnBotPropsMixin.SlotValueProperty(*, interpreted_value=None)
Bases:
objectThe value to set in a slot.
- Parameters:
interpreted_value (
Optional[str]) – The value that Amazon Lex determines for the slot. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex choose the first value in theresolvedValueslist.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slotvalue.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 slot_value_property = lex_mixins.CfnBotPropsMixin.SlotValueProperty( interpreted_value="interpretedValue" )
Attributes
- interpreted_value
The value that Amazon Lex determines for the slot.
The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex choose the first value in the
resolvedValueslist.
SlotValueRegexFilterProperty
- class CfnBotPropsMixin.SlotValueRegexFilterProperty(*, pattern=None)
Bases:
objectProvides a regular expression used to validate the value of a slot.
- Parameters:
pattern (
Optional[str]) – A regular expression used to validate the value of a slot. Use a standard regular expression. Amazon Lex supports the following characters in the regular expression: - A-Z, a-z - 0-9 - Unicode characters (”u”) Represent Unicode characters with four digits, for example “u0041” or “u005A”. The following regular expression operators are not supported: - Infinite repeaters: *, +, or {x,} with no upper bound. - Wild card (.)- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_value_regex_filter_property = lex_mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty( pattern="pattern" )
Attributes
- pattern
A regular expression used to validate the value of a slot.
Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:
A-Z, a-z
0-9
Unicode characters (”u”)
Represent Unicode characters with four digits, for example “u0041” or “u005A”.
The following regular expression operators are not supported:
Infinite repeaters: *, +, or {x,} with no upper bound.
Wild card (.)
SlotValueSelectionSettingProperty
- class CfnBotPropsMixin.SlotValueSelectionSettingProperty(*, advanced_recognition_setting=None, regex_filter=None, resolution_strategy=None)
Bases:
objectContains settings used by Amazon Lex to select a slot value.
- Parameters:
advanced_recognition_setting (
Union[IResolvable,AdvancedRecognitionSettingProperty,Dict[str,Any],None]) – Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.regex_filter (
Union[IResolvable,SlotValueRegexFilterProperty,Dict[str,Any],None]) – A regular expression used to validate the value of a slot.resolution_strategy (
Optional[str]) – Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values: -ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value. -TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don’t specify thevalueSelectionStrategy, the default isORIGINAL_VALUE.
- 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.mixins_preview.aws_lex import mixins as lex_mixins slot_value_selection_setting_property = lex_mixins.CfnBotPropsMixin.SlotValueSelectionSettingProperty( advanced_recognition_setting=lex_mixins.CfnBotPropsMixin.AdvancedRecognitionSettingProperty( audio_recognition_strategy="audioRecognitionStrategy" ), regex_filter=lex_mixins.CfnBotPropsMixin.SlotValueRegexFilterProperty( pattern="pattern" ), resolution_strategy="resolutionStrategy" )
Attributes
- advanced_recognition_setting
Provides settings that enable advanced recognition settings for slot values.
You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.
- regex_filter
A regular expression used to validate the value of a slot.
- resolution_strategy
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
The field can be set to one of the following values:
ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don’t specify the
valueSelectionStrategy, the default isORIGINAL_VALUE.
SpecificationsProperty
- class CfnBotPropsMixin.SpecificationsProperty(*, slot_type_id=None, value_elicitation_setting=None)
Bases:
objectSubslot specifications.
- Parameters:
slot_type_id (
Optional[str]) – The unique identifier assigned to the slot type.value_elicitation_setting (
Union[IResolvable,SubSlotValueElicitationSettingProperty,Dict[str,Any],None]) – Specifies the elicitation setting details for constituent sub slots of a composite slot.
- 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.mixins_preview.aws_lex import mixins as lex_mixins specifications_property = lex_mixins.CfnBotPropsMixin.SpecificationsProperty( slot_type_id="slotTypeId", value_elicitation_setting=lex_mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty( default_value_specification=lex_mixins.CfnBotPropsMixin.SlotDefaultValueSpecificationProperty( default_value_list=[lex_mixins.CfnBotPropsMixin.SlotDefaultValueProperty( default_value="defaultValue" )] ), prompt_specification=lex_mixins.CfnBotPropsMixin.PromptSpecificationProperty( allow_interrupt=False, max_retries=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], message_selection_strategy="messageSelectionStrategy", prompt_attempts_specification={ "prompt_attempts_specification_key": lex_mixins.CfnBotPropsMixin.PromptAttemptSpecificationProperty( allowed_input_types=lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False ), allow_interrupt=False, audio_and_dtmf_input_specification=lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 ), text_input_specification=lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 ) ) } ), sample_utterances=[lex_mixins.CfnBotPropsMixin.SampleUtteranceProperty( utterance="utterance" )], wait_and_continue_specification=lex_mixins.CfnBotPropsMixin.WaitAndContinueSpecificationProperty( continue_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), is_active=False, still_waiting_response=lex_mixins.CfnBotPropsMixin.StillWaitingResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], timeout_in_seconds=123 ), waiting_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) ) ) )
Attributes
- slot_type_id
The unique identifier assigned to the slot type.
- value_elicitation_setting
Specifies the elicitation setting details for constituent sub slots of a composite slot.
StillWaitingResponseSpecificationProperty
- class CfnBotPropsMixin.StillWaitingResponseSpecificationProperty(*, allow_interrupt=None, frequency_in_seconds=None, message_groups_list=None, timeout_in_seconds=None)
Bases:
objectDefines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.
- Parameters:
allow_interrupt (
Union[bool,IResolvable,None]) – Indicates that the user can interrupt the response by speaking while the message is being played.frequency_in_seconds (
Union[int,float,None]) – How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.message_groups_list (
Union[IResolvable,Sequence[Union[IResolvable,MessageGroupProperty,Dict[str,Any]]],None]) – One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.timeout_in_seconds (
Union[int,float,None]) – If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
- 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.mixins_preview.aws_lex import mixins as lex_mixins still_waiting_response_specification_property = lex_mixins.CfnBotPropsMixin.StillWaitingResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], timeout_in_seconds=123 )
Attributes
- allow_interrupt
Indicates that the user can interrupt the response by speaking while the message is being played.
- frequency_in_seconds
How often a message should be sent to the user.
Minimum of 1 second, maximum of 5 minutes.
- message_groups_list
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
- timeout_in_seconds
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
SubSlotSettingProperty
- class CfnBotPropsMixin.SubSlotSettingProperty(*, expression=None, slot_specifications=None)
Bases:
objectSpecifications for the constituent sub slots and the expression for the composite slot.
- Parameters:
expression (
Optional[str]) – The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.slot_specifications (
Union[IResolvable,Mapping[str,Union[IResolvable,SpecificationsProperty,Dict[str,Any]]],None]) – Specifications for the constituent sub slots of a composite slot.
- 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.mixins_preview.aws_lex import mixins as lex_mixins sub_slot_setting_property = lex_mixins.CfnBotPropsMixin.SubSlotSettingProperty( expression="expression", slot_specifications={ "slot_specifications_key": lex_mixins.CfnBotPropsMixin.SpecificationsProperty( slot_type_id="slotTypeId", value_elicitation_setting=lex_mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty( default_value_specification=lex_mixins.CfnBotPropsMixin.SlotDefaultValueSpecificationProperty( default_value_list=[lex_mixins.CfnBotPropsMixin.SlotDefaultValueProperty( default_value="defaultValue" )] ), prompt_specification=lex_mixins.CfnBotPropsMixin.PromptSpecificationProperty( allow_interrupt=False, max_retries=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], message_selection_strategy="messageSelectionStrategy", prompt_attempts_specification={ "prompt_attempts_specification_key": lex_mixins.CfnBotPropsMixin.PromptAttemptSpecificationProperty( allowed_input_types=lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False ), allow_interrupt=False, audio_and_dtmf_input_specification=lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 ), text_input_specification=lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 ) ) } ), sample_utterances=[lex_mixins.CfnBotPropsMixin.SampleUtteranceProperty( utterance="utterance" )], wait_and_continue_specification=lex_mixins.CfnBotPropsMixin.WaitAndContinueSpecificationProperty( continue_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), is_active=False, still_waiting_response=lex_mixins.CfnBotPropsMixin.StillWaitingResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], timeout_in_seconds=123 ), waiting_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) ) ) ) } )
Attributes
- expression
The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.
- slot_specifications
Specifications for the constituent sub slots of a composite slot.
SubSlotTypeCompositionProperty
- class CfnBotPropsMixin.SubSlotTypeCompositionProperty(*, name=None, slot_type_id=None)
Bases:
objectSubslot type composition.
- Parameters:
name (
Optional[str]) – Name of a constituent sub slot inside a composite slot.slot_type_id (
Optional[str]) – The unique identifier assigned to a slot type. This refers to either a built-in slot type or the unique slotTypeId of a custom slot 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.mixins_preview.aws_lex import mixins as lex_mixins sub_slot_type_composition_property = lex_mixins.CfnBotPropsMixin.SubSlotTypeCompositionProperty( name="name", slot_type_id="slotTypeId" )
Attributes
- name
Name of a constituent sub slot inside a composite slot.
- slot_type_id
The unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.
SubSlotValueElicitationSettingProperty
- class CfnBotPropsMixin.SubSlotValueElicitationSettingProperty(*, default_value_specification=None, prompt_specification=None, sample_utterances=None, wait_and_continue_specification=None)
Bases:
objectSubslot elicitation settings.
DefaultValueSpecificationis a list of default values for a constituent sub slot in a composite slot. Default values are used when Amazon Lex hasn’t determined a value for a slot. You can specify default values from context variables, session attributes, and defined values. This is similar toDefaultValueSpecificationfor slots.PromptSpecificationis the prompt that Amazon Lex uses to elicit the sub slot value from the user. This is similar toPromptSpecificationfor slots.- Parameters:
default_value_specification (
Union[IResolvable,SlotDefaultValueSpecificationProperty,Dict[str,Any],None])prompt_specification (
Union[IResolvable,PromptSpecificationProperty,Dict[str,Any],None])sample_utterances (
Union[IResolvable,Sequence[Union[IResolvable,SampleUtteranceProperty,Dict[str,Any]]],None]) – If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy. This is optional. In most cases Amazon Lex is capable of understanding user utterances. This is similar toSampleUtterancesfor slots.wait_and_continue_specification (
Union[IResolvable,WaitAndContinueSpecificationProperty,Dict[str,Any],None])
- 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.mixins_preview.aws_lex import mixins as lex_mixins sub_slot_value_elicitation_setting_property = lex_mixins.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty( default_value_specification=lex_mixins.CfnBotPropsMixin.SlotDefaultValueSpecificationProperty( default_value_list=[lex_mixins.CfnBotPropsMixin.SlotDefaultValueProperty( default_value="defaultValue" )] ), prompt_specification=lex_mixins.CfnBotPropsMixin.PromptSpecificationProperty( allow_interrupt=False, max_retries=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], message_selection_strategy="messageSelectionStrategy", prompt_attempts_specification={ "prompt_attempts_specification_key": lex_mixins.CfnBotPropsMixin.PromptAttemptSpecificationProperty( allowed_input_types=lex_mixins.CfnBotPropsMixin.AllowedInputTypesProperty( allow_audio_input=False, allow_dtmf_input=False ), allow_interrupt=False, audio_and_dtmf_input_specification=lex_mixins.CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty( audio_specification=lex_mixins.CfnBotPropsMixin.AudioSpecificationProperty( end_timeout_ms=123, max_length_ms=123 ), dtmf_specification=lex_mixins.CfnBotPropsMixin.DTMFSpecificationProperty( deletion_character="deletionCharacter", end_character="endCharacter", end_timeout_ms=123, max_length=123 ), start_timeout_ms=123 ), text_input_specification=lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 ) ) } ), sample_utterances=[lex_mixins.CfnBotPropsMixin.SampleUtteranceProperty( utterance="utterance" )], wait_and_continue_specification=lex_mixins.CfnBotPropsMixin.WaitAndContinueSpecificationProperty( continue_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), is_active=False, still_waiting_response=lex_mixins.CfnBotPropsMixin.StillWaitingResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], timeout_in_seconds=123 ), waiting_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) ) )
Attributes
- default_value_specification
-
- Type:
see
- prompt_specification
-
- Type:
see
- sample_utterances
If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy.
This is optional. In most cases Amazon Lex is capable of understanding user utterances. This is similar to
SampleUtterancesfor slots.
TestBotAliasSettingsProperty
- class CfnBotPropsMixin.TestBotAliasSettingsProperty(*, bot_alias_locale_settings=None, conversation_log_settings=None, description=None, sentiment_analysis_settings=None)
Bases:
objectSpecifies configuration settings for the alias used to test the bot.
If the
TestBotAliasSettingsproperty is not specified, the settings are configured with default values.- Parameters:
bot_alias_locale_settings (
Union[IResolvable,Sequence[Union[IResolvable,BotAliasLocaleSettingsItemProperty,Dict[str,Any]]],None]) – Specifies settings that are unique to a locale. For example, you can use a different Lambda function depending on the bot’s locale.conversation_log_settings (
Union[IResolvable,ConversationLogSettingsProperty,Dict[str,Any],None]) – Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.description (
Optional[str]) – Specifies a description for the test bot alias.sentiment_analysis_settings (
Any) – Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
- 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.mixins_preview.aws_lex import mixins as lex_mixins # sentiment_analysis_settings: Any test_bot_alias_settings_property = lex_mixins.CfnBotPropsMixin.TestBotAliasSettingsProperty( bot_alias_locale_settings=[lex_mixins.CfnBotPropsMixin.BotAliasLocaleSettingsItemProperty( bot_alias_locale_setting=lex_mixins.CfnBotPropsMixin.BotAliasLocaleSettingsProperty( code_hook_specification=lex_mixins.CfnBotPropsMixin.CodeHookSpecificationProperty( lambda_code_hook=lex_mixins.CfnBotPropsMixin.LambdaCodeHookProperty( code_hook_interface_version="codeHookInterfaceVersion", lambda_arn="lambdaArn" ) ), enabled=False ), locale_id="localeId" )], conversation_log_settings=lex_mixins.CfnBotPropsMixin.ConversationLogSettingsProperty( audio_log_settings=[lex_mixins.CfnBotPropsMixin.AudioLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.AudioLogDestinationProperty( s3_bucket=lex_mixins.CfnBotPropsMixin.S3BucketLogDestinationProperty( kms_key_arn="kmsKeyArn", log_prefix="logPrefix", s3_bucket_arn="s3BucketArn" ) ), enabled=False )], text_log_settings=[lex_mixins.CfnBotPropsMixin.TextLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.TextLogDestinationProperty( cloud_watch=lex_mixins.CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty( cloud_watch_log_group_arn="cloudWatchLogGroupArn", log_prefix="logPrefix" ) ), enabled=False )] ), description="description", sentiment_analysis_settings=sentiment_analysis_settings )
Attributes
- bot_alias_locale_settings
Specifies settings that are unique to a locale.
For example, you can use a different Lambda function depending on the bot’s locale.
- conversation_log_settings
Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.
- description
Specifies a description for the test bot alias.
- sentiment_analysis_settings
Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
TextInputSpecificationProperty
- class CfnBotPropsMixin.TextInputSpecificationProperty(*, start_timeout_ms=None)
Bases:
objectSpecifies the text input specifications.
- Parameters:
start_timeout_ms (
Union[int,float,None]) – Time for which a bot waits before re-prompting a customer for text input.- 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.mixins_preview.aws_lex import mixins as lex_mixins text_input_specification_property = lex_mixins.CfnBotPropsMixin.TextInputSpecificationProperty( start_timeout_ms=123 )
Attributes
- start_timeout_ms
Time for which a bot waits before re-prompting a customer for text input.
TextLogDestinationProperty
- class CfnBotPropsMixin.TextLogDestinationProperty(*, cloud_watch=None)
Bases:
objectDefines the Amazon CloudWatch Logs destination log group for conversation text logs.
- Parameters:
cloud_watch (
Union[IResolvable,CloudWatchLogGroupLogDestinationProperty,Dict[str,Any],None]) – Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.- 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.mixins_preview.aws_lex import mixins as lex_mixins text_log_destination_property = lex_mixins.CfnBotPropsMixin.TextLogDestinationProperty( cloud_watch=lex_mixins.CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty( cloud_watch_log_group_arn="cloudWatchLogGroupArn", log_prefix="logPrefix" ) )
Attributes
- cloud_watch
Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.
TextLogSettingProperty
- class CfnBotPropsMixin.TextLogSettingProperty(*, destination=None, enabled=None)
Bases:
objectDefines settings to enable text conversation logs.
- Parameters:
destination (
Union[IResolvable,TextLogDestinationProperty,Dict[str,Any],None]) – Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.enabled (
Union[bool,IResolvable,None]) – Determines whether conversation logs should be stored for an alias.
- 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.mixins_preview.aws_lex import mixins as lex_mixins text_log_setting_property = lex_mixins.CfnBotPropsMixin.TextLogSettingProperty( destination=lex_mixins.CfnBotPropsMixin.TextLogDestinationProperty( cloud_watch=lex_mixins.CfnBotPropsMixin.CloudWatchLogGroupLogDestinationProperty( cloud_watch_log_group_arn="cloudWatchLogGroupArn", log_prefix="logPrefix" ) ), enabled=False )
Attributes
- destination
Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.
- enabled
Determines whether conversation logs should be stored for an alias.
VoiceSettingsProperty
- class CfnBotPropsMixin.VoiceSettingsProperty(*, engine=None, voice_id=None)
Bases:
objectDefines settings for using an Amazon Polly voice to communicate with a user.
Valid values include:
standardneurallong-formgenerative
- Parameters:
engine (
Optional[str]) – Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the`engineparameter of theSynthesizeSpeechoperation <https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine>`_ in the Amazon Polly developer guide . If you do not specify a value, the default isstandard.voice_id (
Optional[str]) – The identifier of the Amazon Polly voice to use.
- 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.mixins_preview.aws_lex import mixins as lex_mixins voice_settings_property = lex_mixins.CfnBotPropsMixin.VoiceSettingsProperty( engine="engine", voice_id="voiceId" )
Attributes
- engine
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.
For more information, see the
`engineparameter of theSynthesizeSpeechoperation <https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine>`_ in the Amazon Polly developer guide .If you do not specify a value, the default is
standard.
- voice_id
The identifier of the Amazon Polly voice to use.
WaitAndContinueSpecificationProperty
- class CfnBotPropsMixin.WaitAndContinueSpecificationProperty(*, continue_response=None, is_active=None, still_waiting_response=None, waiting_response=None)
Bases:
objectSpecifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
- Parameters:
continue_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.is_active (
Union[bool,IResolvable,None]) – Specifies whether the bot will wait for a user to respond. When this field is false, wait and continue responses for a slot aren’t used. If theIsActivefield isn’t specified, the default is true.still_waiting_response (
Union[IResolvable,StillWaitingResponseSpecificationProperty,Dict[str,Any],None]) – A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.waiting_response (
Union[IResolvable,ResponseSpecificationProperty,Dict[str,Any],None]) – The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
- 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.mixins_preview.aws_lex import mixins as lex_mixins wait_and_continue_specification_property = lex_mixins.CfnBotPropsMixin.WaitAndContinueSpecificationProperty( continue_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ), is_active=False, still_waiting_response=lex_mixins.CfnBotPropsMixin.StillWaitingResponseSpecificationProperty( allow_interrupt=False, frequency_in_seconds=123, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )], timeout_in_seconds=123 ), waiting_response=lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty( allow_interrupt=False, message_groups_list=[lex_mixins.CfnBotPropsMixin.MessageGroupProperty( message=lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) ), variations=[lex_mixins.CfnBotPropsMixin.MessageProperty( custom_payload=lex_mixins.CfnBotPropsMixin.CustomPayloadProperty( value="value" ), image_response_card=lex_mixins.CfnBotPropsMixin.ImageResponseCardProperty( buttons=[lex_mixins.CfnBotPropsMixin.ButtonProperty( text="text", value="value" )], image_url="imageUrl", subtitle="subtitle", title="title" ), plain_text_message=lex_mixins.CfnBotPropsMixin.PlainTextMessageProperty( value="value" ), ssml_message=lex_mixins.CfnBotPropsMixin.SSMLMessageProperty( value="value" ) )] )] ) )
Attributes
- continue_response
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
- is_active
Specifies whether the bot will wait for a user to respond.
When this field is false, wait and continue responses for a slot aren’t used. If the
IsActivefield isn’t specified, the default is true.
- still_waiting_response
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
- waiting_response
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.