StartConversationResponseEventStream¶
Union Type¶
StartConversationResponseEventStream
module-attribute
¶
StartConversationResponseEventStream = Union[StartConversationResponseEventStreamPlaybackInterruptionEvent | StartConversationResponseEventStreamTranscriptEvent | StartConversationResponseEventStreamIntentResultEvent | StartConversationResponseEventStreamTextResponseEvent | StartConversationResponseEventStreamAudioResponseEvent | StartConversationResponseEventStreamHeartbeatEvent | StartConversationResponseEventStreamAccessDeniedException | StartConversationResponseEventStreamResourceNotFoundException | StartConversationResponseEventStreamValidationException | StartConversationResponseEventStreamThrottlingException | StartConversationResponseEventStreamInternalServerException | StartConversationResponseEventStreamConflictException | StartConversationResponseEventStreamDependencyFailedException | StartConversationResponseEventStreamBadGatewayException | StartConversationResponseEventStreamUnknown]
Represents a stream of events between Amazon Lex V2 and your application.
Union Member Types¶
StartConversationResponseEventStreamPlaybackInterruptionEvent
dataclass
¶
Bases: _SerdeShape
Event sent from Amazon Lex V2 to indicate to the client application should stop playback of audio. For example, if the client is playing a prompt that asks for the user's telephone number, the user might start to say the phone number before the prompt is complete. Amazon Lex V2 sends this event to the client application to indicate that the user is responding and that Amazon Lex V2 is processing their input.
Attributes¶
StartConversationResponseEventStreamTranscriptEvent
dataclass
¶
Bases: _SerdeShape
Event sent from Amazon Lex V2 to your client application that contains a transcript of voice audio.
Attributes¶
StartConversationResponseEventStreamIntentResultEvent
dataclass
¶
Bases: _SerdeShape
Event sent from Amazon Lex V2 to the client application containing the current state of the conversation between the user and Amazon Lex V2.
Attributes¶
StartConversationResponseEventStreamTextResponseEvent
dataclass
¶
Bases: _SerdeShape
The event sent from Amazon Lex V2 to your application with text to present to the user.
Attributes¶
StartConversationResponseEventStreamAudioResponseEvent
dataclass
¶
Bases: _SerdeShape
An event sent from Amazon Lex V2 to your client application containing audio to play to the user.
Attributes¶
StartConversationResponseEventStreamHeartbeatEvent
dataclass
¶
Bases: _SerdeShape
Event that Amazon Lex V2 sends to indicate that the stream is still open between the client application and Amazon Lex V2
Attributes¶
StartConversationResponseEventStreamAccessDeniedException
dataclass
¶
Bases: _SerdeShape
Exception thrown when the credentials passed with the request are
invalid or expired. Also thrown when the credentials in the request do
not have permission to access the StartConversation operation.
Attributes¶
StartConversationResponseEventStreamResourceNotFoundException
dataclass
¶
Bases: _SerdeShape
Exception thrown if one of the input parameters points to a resource that does not exist. For example, if the bot ID specified does not exist.
Attributes¶
StartConversationResponseEventStreamValidationException
dataclass
¶
Bases: _SerdeShape
Exception thrown when one or more parameters could not be validated. The
message contains the name of the field that isn't valid.
Attributes¶
StartConversationResponseEventStreamThrottlingException
dataclass
¶
Bases: _SerdeShape
Exception thrown when your application exceeds the maximum number of concurrent requests.
Attributes¶
StartConversationResponseEventStreamInternalServerException
dataclass
¶
StartConversationResponseEventStreamConflictException
dataclass
¶
Bases: _SerdeShape
Exception thrown when two clients are using the same AWS account, Amazon Lex V2 bot, and session ID.
Attributes¶
StartConversationResponseEventStreamDependencyFailedException
dataclass
¶
Bases: _SerdeShape