interface ResponseSpecificationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.ResponseSpecificationProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.ResponseSpecificationProperty |
Python | aws_cdk.aws_lex.CfnBot.ResponseSpecificationProperty |
TypeScript | @aws-cdk/aws-lex » CfnBot » 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 * as lex from '@aws-cdk/aws-lex';
const responseSpecificationProperty: lex.CfnBot.ResponseSpecificationProperty = {
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
// the properties below are optional
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
// the properties below are optional
allowInterrupt: false,
};
Properties
Name | Type | Description |
---|---|---|
message | IResolvable | IResolvable | Message [] | A collection of responses that Amazon Lex can send to the user. |
allow | boolean | IResolvable | Indicates whether the user can interrupt a speech response from Amazon Lex. |
messageGroupsList
Type:
IResolvable
|
IResolvable
|
Message
[]
A collection of responses that Amazon Lex can send to the user.
Amazon Lex chooses the actual response to send at runtime.
allowInterrupt?
Type:
boolean |
IResolvable
(optional)
Indicates whether the user can interrupt a speech response from Amazon Lex.