Class CfnBot.ResponseSpecificationProperty
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Inheritance
System.Object
CfnBot.ResponseSpecificationProperty
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResponseSpecificationProperty : Object, CfnBot.IResponseSpecificationProperty
Syntax (vb)
Public Class ResponseSpecificationProperty
Inherits Object
Implements CfnBot.IResponseSpecificationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var responseSpecificationProperty = new ResponseSpecificationProperty {
MessageGroupsList = new [] { new MessageGroupProperty {
Message = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Title = "title",
// the properties below are optional
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
},
// the properties below are optional
Variations = new [] { new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Title = "title",
// the properties below are optional
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
} }
} },
// the properties below are optional
AllowInterrupt = false
};
Synopsis
Constructors
ResponseSpecificationProperty() |
Properties
AllowInterrupt | Indicates whether the user can interrupt a speech response from Amazon Lex. |
MessageGroupsList | A collection of responses that Amazon Lex can send to the user. |
Constructors
ResponseSpecificationProperty()
public ResponseSpecificationProperty()
Properties
AllowInterrupt
Indicates whether the user can interrupt a speech response from Amazon Lex.
public object AllowInterrupt { get; set; }
Property Value
System.Object
Remarks
MessageGroupsList
A collection of responses that Amazon Lex can send to the user.
public object MessageGroupsList { get; set; }
Property Value
System.Object
Remarks
Amazon Lex chooses the actual response to send at runtime.