class Aws::LexRuntimeV2::Types::PutSessionRequest
@note When making an API call, you may pass PutSessionRequest
data as a hash: { bot_id: "BotIdentifier", # required bot_alias_id: "BotAliasIdentifier", # required locale_id: "LocaleId", # required session_id: "SessionId", # required messages: [ { content: "Text", content_type: "CustomPayload", # required, accepts CustomPayload, ImageResponseCard, PlainText, SSML image_response_card: { title: "AttachmentTitle", # required subtitle: "AttachmentTitle", image_url: "AttachmentUrl", buttons: [ { text: "ButtonText", # required value: "ButtonValue", # required }, ], }, }, ], session_state: { # required dialog_action: { type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot slot_to_elicit: "NonEmptyString", }, intent: { name: "NonEmptyString", # required slots: { "NonEmptyString" => { value: { original_value: "NonEmptyString", interpreted_value: "NonEmptyString", # required resolved_values: ["NonEmptyString"], }, shape: "Scalar", # accepts Scalar, List values: [ { # recursive Slot }, ], }, }, state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting confirmation_state: "Confirmed", # accepts Confirmed, Denied, None }, active_contexts: [ { name: "ActiveContextName", # required time_to_live: { # required time_to_live_in_seconds: 1, # required turns_to_live: 1, # required }, context_attributes: { # required "ParameterName" => "Text", }, }, ], session_attributes: { "NonEmptyString" => "String", }, originating_request_id: "NonEmptyString", }, request_attributes: { "NonEmptyString" => "String", }, response_content_type: "NonEmptyString", }
@!attribute [rw] bot_id
The identifier of the bot that receives the session data. @return [String]
@!attribute [rw] bot_alias_id
The alias identifier of the bot that receives the session data. @return [String]
@!attribute [rw] locale_id
The locale where the session is in use. @return [String]
@!attribute [rw] session_id
The identifier of the session that receives the session data. @return [String]
@!attribute [rw] messages
A list of messages to send to the user. Messages are sent in the order that they are defined in the list. @return [Array<Types::Message>]
@!attribute [rw] session_state
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user. @return [Types::SessionState]
@!attribute [rw] request_attributes
Request-specific information passed between Amazon Lex V2 and the client application. The namespace `x-amz-lex:` is reserved for special attributes. Don't create any request attributes with the prefix `x-amz-lex:`. @return [Hash<String,String>]
@!attribute [rw] response_content_type
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter. * If the value is `text/plain; charset=utf-8`, Amazon Lex V2 returns text in the response. ^ @return [String]
@see docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/PutSessionRequest AWS API Documentation
Constants
- SENSITIVE