Class CfnBot.FulfillmentStartResponseSpecificationProperty
Provides settings for a message that is sent to the user when a fulfillment Lambda function starts running.
Inheritance
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class FulfillmentStartResponseSpecificationProperty : Object, CfnBot.IFulfillmentStartResponseSpecificationProperty
Syntax (vb)
Public Class FulfillmentStartResponseSpecificationProperty
Inherits Object
Implements CfnBot.IFulfillmentStartResponseSpecificationProperty
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 fulfillmentStartResponseSpecificationProperty = new FulfillmentStartResponseSpecificationProperty {
DelayInSeconds = 123,
MessageGroups = 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
FulfillmentStartResponseSpecificationProperty() |
Properties
AllowInterrupt | Determines whether the user can interrupt the start message while it is playing. |
DelayInSeconds | The delay between when the Lambda fulfillment function starts running and the start message is played. |
MessageGroups | 1 - 5 message groups that contain start messages. |
Constructors
FulfillmentStartResponseSpecificationProperty()
public FulfillmentStartResponseSpecificationProperty()
Properties
AllowInterrupt
Determines whether the user can interrupt the start message while it is playing.
public object AllowInterrupt { get; set; }
Property Value
System.Object
Remarks
DelayInSeconds
The delay between when the Lambda fulfillment function starts running and the start message is played.
public double DelayInSeconds { get; set; }
Property Value
System.Double
Remarks
If the Lambda function returns before the delay is over, the start message isn't played.
MessageGroups
1 - 5 message groups that contain start messages.
public object MessageGroups { get; set; }
Property Value
System.Object
Remarks
Amazon Lex chooses one of the messages to play to the user.