Class CfnBot.FulfillmentUpdateResponseSpecificationProperty
Provides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.
Inheritance
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FulfillmentUpdateResponseSpecificationProperty : Object, CfnBot.IFulfillmentUpdateResponseSpecificationProperty
Syntax (vb)
Public Class FulfillmentUpdateResponseSpecificationProperty
Inherits Object
Implements CfnBot.IFulfillmentUpdateResponseSpecificationProperty
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 fulfillmentUpdateResponseSpecificationProperty = new FulfillmentUpdateResponseSpecificationProperty {
FrequencyInSeconds = 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
FulfillmentUpdateResponseSpecificationProperty() |
Properties
AllowInterrupt | Determines whether the user can interrupt an update message while it is playing. |
FrequencyInSeconds | The frequency that a message is sent to the user. |
MessageGroups | 1 - 5 message groups that contain update messages. |
Constructors
FulfillmentUpdateResponseSpecificationProperty()
public FulfillmentUpdateResponseSpecificationProperty()
Properties
AllowInterrupt
Determines whether the user can interrupt an update message while it is playing.
public object AllowInterrupt { get; set; }
Property Value
System.Object
Remarks
FrequencyInSeconds
The frequency that a message is sent to the user.
public double FrequencyInSeconds { get; set; }
Property Value
System.Double
Remarks
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.
MessageGroups
1 - 5 message groups that contain update messages.
public object MessageGroups { get; set; }
Property Value
System.Object
Remarks
Amazon Lex chooses one of the messages to play to the user.