interface ResponseSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.ResponseSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_ResponseSpecificationProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.ResponseSpecificationProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.ResponseSpecificationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » ResponseSpecificationProperty |
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
const responseSpecificationProperty: lex_mixins.CfnBotPropsMixin.ResponseSpecificationProperty = {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| allow | boolean | IResolvable | Indicates whether the user can interrupt a speech response from Amazon Lex. |
| message | IResolvable | (IResolvable | Message)[] | A collection of responses that Amazon Lex can send to the user. |
allowInterrupt?
Type:
boolean | IResolvable
(optional)
Indicates whether the user can interrupt a speech response from Amazon Lex.
messageGroupsList?
Type:
IResolvable | (IResolvable | Message)[]
(optional)
A collection of responses that Amazon Lex can send to the user.
Amazon Lex chooses the actual response to send at runtime.

.NET
Go
Java
Python
TypeScript