PutSessionResponse
public struct PutSessionResponse : AWSShape
Undocumented
-
The key for the payload
Declaration
Swift
public static let payloadPath: String?
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The audio version of the message to convey to the user.
Declaration
Swift
public let audioStream: Data?
-
Content type as specified in the Accept HTTP header in the request.
Declaration
Swift
public let contentType: String?
-
ConfirmIntent - Amazon Lex is expecting a “yes” or “no” response to confirm the intent before fulfilling an intent. ElicitIntent - Amazon Lex wants to elicit the user’s intent. ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent. Failed - Conveys that the conversation with the user has failed. This can happen for various reasons, including the user does not provide an appropriate response to prompts from the service, or if the Lambda function fails to fulfill the intent. Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent. ReadyForFulfillment - Conveys that the client has to fulfill the intent.
Declaration
Swift
public let dialogState: DialogState?
-
The name of the current intent.
Declaration
Swift
public let intentName: String?
-
The next message that should be presented to the user.
Declaration
Swift
public let message: String?
-
The format of the response message. One of the following values: PlainText - The message contains plain UTF-8 text. CustomPayload - The message is a custom format for the client. SSML - The message contains text formatted for voice output. Composite - The message contains an escaped JSON object containing one or more messages from the groups that messages were assigned to when the intent was created.
Declaration
Swift
public let messageFormat: MessageFormatType?
-
Map of key/value pairs representing session-specific context information.
Declaration
Swift
public let sessionAttributes: String?
-
A unique identifier for the session.
Declaration
Swift
public let sessionId: String?
-
Map of zero or more intent slots Amazon Lex detected from the user input during the conversation. Amazon Lex creates a resolution list containing likely values for a slot. The value that it returns is determined by the valueSelectionStrategy selected when the slot type was created or updated. If valueSelectionStrategy is set to ORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. If valueSelectionStrategy is set to TOP_RESOLUTION Amazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don’t specify a valueSelectionStrategy the default is ORIGINAL_VALUE.
Declaration
Swift
public let slots: String?
-
If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.
Declaration
Swift
public let slotToElicit: String?
-
init(audioStream:contentType:dialogState:intentName:message:messageFormat:sessionAttributes:sessionId:slots:slotToElicit:)
Undocumented
Declaration
Swift
public init(audioStream: Data? = nil, contentType: String? = nil, dialogState: DialogState? = nil, intentName: String? = nil, message: String? = nil, messageFormat: MessageFormatType? = nil, sessionAttributes: String? = nil, sessionId: String? = nil, slots: String? = nil, slotToElicit: String? = nil)