Class CfnBot.WaitAndContinueSpecificationProperty
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class WaitAndContinueSpecificationProperty : Object, CfnBot.IWaitAndContinueSpecificationProperty
Syntax (vb)
Public Class WaitAndContinueSpecificationProperty
Inherits Object
Implements CfnBot.IWaitAndContinueSpecificationProperty
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 waitAndContinueSpecificationProperty = new WaitAndContinueSpecificationProperty {
ContinueResponse = 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
},
WaitingResponse = 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
},
// the properties below are optional
IsActive = false,
StillWaitingResponse = new StillWaitingResponseSpecificationProperty {
FrequencyInSeconds = 123,
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"
}
} }
} },
TimeoutInSeconds = 123,
// the properties below are optional
AllowInterrupt = false
}
};
Synopsis
Constructors
WaitAndContinueSpecificationProperty() |
Properties
ContinueResponse | The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation. |
IsActive | Specifies whether the bot will wait for a user to respond. |
StillWaitingResponse | A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user. |
WaitingResponse | The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue. |
Constructors
WaitAndContinueSpecificationProperty()
public WaitAndContinueSpecificationProperty()
Properties
ContinueResponse
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
public object ContinueResponse { get; set; }
Property Value
System.Object
Remarks
IsActive
Specifies whether the bot will wait for a user to respond.
public object IsActive { get; set; }
Property Value
System.Object
Remarks
When this field is false, wait and continue responses for a slot aren't used. If the IsActive
field isn't specified, the default is true.
StillWaitingResponse
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
public object StillWaitingResponse { get; set; }
Property Value
System.Object
Remarks
WaitingResponse
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
public object WaitingResponse { get; set; }
Property Value
System.Object