Versions in this module Expand all Collapse all v1 v1.0.1 Jul 4, 2024 v1.0.0 Jul 4, 2024 Changes in this version + const ConfirmationStatusConfirmed + const ConfirmationStatusDenied + const ConfirmationStatusNone + const ContentTypeApplicationVndAmazonawsCardGeneric + const DialogActionTypeClose + const DialogActionTypeConfirmIntent + const DialogActionTypeDelegate + const DialogActionTypeElicitIntent + const DialogActionTypeElicitSlot + const DialogStateConfirmIntent + const DialogStateElicitIntent + const DialogStateElicitSlot + const DialogStateFailed + const DialogStateFulfilled + const DialogStateReadyForFulfillment + const EndpointsID + const ErrCodeBadGatewayException + const ErrCodeBadRequestException + const ErrCodeConflictException + const ErrCodeDependencyFailedException + const ErrCodeInternalFailureException + const ErrCodeLimitExceededException + const ErrCodeLoopDetectedException + const ErrCodeNotAcceptableException + const ErrCodeNotFoundException + const ErrCodeRequestTimeoutException + const ErrCodeUnsupportedMediaTypeException + const FulfillmentStateFailed + const FulfillmentStateFulfilled + const FulfillmentStateReadyForFulfillment + const MessageFormatTypeComposite + const MessageFormatTypeCustomPayload + const MessageFormatTypePlainText + const MessageFormatTypeSsml + const ServiceID + const ServiceName + func ConfirmationStatus_Values() []string + func ContentType_Values() []string + func DialogActionType_Values() []string + func DialogState_Values() []string + func FulfillmentState_Values() []string + func MessageFormatType_Values() []string + type ActiveContext struct + Name *string + Parameters map[string]*string + TimeToLive *ActiveContextTimeToLive + func (s *ActiveContext) SetName(v string) *ActiveContext + func (s *ActiveContext) SetParameters(v map[string]*string) *ActiveContext + func (s *ActiveContext) SetTimeToLive(v *ActiveContextTimeToLive) *ActiveContext + func (s *ActiveContext) Validate() error + func (s ActiveContext) GoString() string + func (s ActiveContext) String() string + type ActiveContextTimeToLive struct + TimeToLiveInSeconds *int64 + TurnsToLive *int64 + func (s *ActiveContextTimeToLive) SetTimeToLiveInSeconds(v int64) *ActiveContextTimeToLive + func (s *ActiveContextTimeToLive) SetTurnsToLive(v int64) *ActiveContextTimeToLive + func (s *ActiveContextTimeToLive) Validate() error + func (s ActiveContextTimeToLive) GoString() string + func (s ActiveContextTimeToLive) String() string + type BadGatewayException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *BadGatewayException) Code() string + func (s *BadGatewayException) Error() string + func (s *BadGatewayException) Message() string + func (s *BadGatewayException) OrigErr() error + func (s *BadGatewayException) RequestID() string + func (s *BadGatewayException) StatusCode() int + func (s BadGatewayException) GoString() string + func (s BadGatewayException) String() string + type BadRequestException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *BadRequestException) Code() string + func (s *BadRequestException) Error() string + func (s *BadRequestException) Message() string + func (s *BadRequestException) OrigErr() error + func (s *BadRequestException) RequestID() string + func (s *BadRequestException) StatusCode() int + func (s BadRequestException) GoString() string + func (s BadRequestException) String() string + type Button struct + Text *string + Value *string + func (s *Button) SetText(v string) *Button + func (s *Button) SetValue(v string) *Button + func (s Button) GoString() string + func (s Button) String() string + type ConflictException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *ConflictException) Code() string + func (s *ConflictException) Error() string + func (s *ConflictException) Message() string + func (s *ConflictException) OrigErr() error + func (s *ConflictException) RequestID() string + func (s *ConflictException) StatusCode() int + func (s ConflictException) GoString() string + func (s ConflictException) String() string + type DeleteSessionInput struct + BotAlias *string + BotName *string + UserId *string + func (s *DeleteSessionInput) SetBotAlias(v string) *DeleteSessionInput + func (s *DeleteSessionInput) SetBotName(v string) *DeleteSessionInput + func (s *DeleteSessionInput) SetUserId(v string) *DeleteSessionInput + func (s *DeleteSessionInput) Validate() error + func (s DeleteSessionInput) GoString() string + func (s DeleteSessionInput) String() string + type DeleteSessionOutput struct + BotAlias *string + BotName *string + SessionId *string + UserId *string + func (s *DeleteSessionOutput) SetBotAlias(v string) *DeleteSessionOutput + func (s *DeleteSessionOutput) SetBotName(v string) *DeleteSessionOutput + func (s *DeleteSessionOutput) SetSessionId(v string) *DeleteSessionOutput + func (s *DeleteSessionOutput) SetUserId(v string) *DeleteSessionOutput + func (s DeleteSessionOutput) GoString() string + func (s DeleteSessionOutput) String() string + type DependencyFailedException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *DependencyFailedException) Code() string + func (s *DependencyFailedException) Error() string + func (s *DependencyFailedException) Message() string + func (s *DependencyFailedException) OrigErr() error + func (s *DependencyFailedException) RequestID() string + func (s *DependencyFailedException) StatusCode() int + func (s DependencyFailedException) GoString() string + func (s DependencyFailedException) String() string + type DialogAction struct + FulfillmentState *string + IntentName *string + Message *string + MessageFormat *string + SlotToElicit *string + Slots map[string]*string + Type *string + func (s *DialogAction) SetFulfillmentState(v string) *DialogAction + func (s *DialogAction) SetIntentName(v string) *DialogAction + func (s *DialogAction) SetMessage(v string) *DialogAction + func (s *DialogAction) SetMessageFormat(v string) *DialogAction + func (s *DialogAction) SetSlotToElicit(v string) *DialogAction + func (s *DialogAction) SetSlots(v map[string]*string) *DialogAction + func (s *DialogAction) SetType(v string) *DialogAction + func (s *DialogAction) Validate() error + func (s DialogAction) GoString() string + func (s DialogAction) String() string + type GenericAttachment struct + AttachmentLinkUrl *string + Buttons []*Button + ImageUrl *string + SubTitle *string + Title *string + func (s *GenericAttachment) SetAttachmentLinkUrl(v string) *GenericAttachment + func (s *GenericAttachment) SetButtons(v []*Button) *GenericAttachment + func (s *GenericAttachment) SetImageUrl(v string) *GenericAttachment + func (s *GenericAttachment) SetSubTitle(v string) *GenericAttachment + func (s *GenericAttachment) SetTitle(v string) *GenericAttachment + func (s GenericAttachment) GoString() string + func (s GenericAttachment) String() string + type GetSessionInput struct + BotAlias *string + BotName *string + CheckpointLabelFilter *string + UserId *string + func (s *GetSessionInput) SetBotAlias(v string) *GetSessionInput + func (s *GetSessionInput) SetBotName(v string) *GetSessionInput + func (s *GetSessionInput) SetCheckpointLabelFilter(v string) *GetSessionInput + func (s *GetSessionInput) SetUserId(v string) *GetSessionInput + func (s *GetSessionInput) Validate() error + func (s GetSessionInput) GoString() string + func (s GetSessionInput) String() string + type GetSessionOutput struct + ActiveContexts []*ActiveContext + DialogAction *DialogAction + RecentIntentSummaryView []*IntentSummary + SessionAttributes map[string]*string + SessionId *string + func (s *GetSessionOutput) SetActiveContexts(v []*ActiveContext) *GetSessionOutput + func (s *GetSessionOutput) SetDialogAction(v *DialogAction) *GetSessionOutput + func (s *GetSessionOutput) SetRecentIntentSummaryView(v []*IntentSummary) *GetSessionOutput + func (s *GetSessionOutput) SetSessionAttributes(v map[string]*string) *GetSessionOutput + func (s *GetSessionOutput) SetSessionId(v string) *GetSessionOutput + func (s GetSessionOutput) GoString() string + func (s GetSessionOutput) String() string + type IntentConfidence struct + Score *float64 + func (s *IntentConfidence) SetScore(v float64) *IntentConfidence + func (s IntentConfidence) GoString() string + func (s IntentConfidence) String() string + type IntentSummary struct + CheckpointLabel *string + ConfirmationStatus *string + DialogActionType *string + FulfillmentState *string + IntentName *string + SlotToElicit *string + Slots map[string]*string + func (s *IntentSummary) SetCheckpointLabel(v string) *IntentSummary + func (s *IntentSummary) SetConfirmationStatus(v string) *IntentSummary + func (s *IntentSummary) SetDialogActionType(v string) *IntentSummary + func (s *IntentSummary) SetFulfillmentState(v string) *IntentSummary + func (s *IntentSummary) SetIntentName(v string) *IntentSummary + func (s *IntentSummary) SetSlotToElicit(v string) *IntentSummary + func (s *IntentSummary) SetSlots(v map[string]*string) *IntentSummary + func (s *IntentSummary) Validate() error + func (s IntentSummary) GoString() string + func (s IntentSummary) String() string + type InternalFailureException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *InternalFailureException) Code() string + func (s *InternalFailureException) Error() string + func (s *InternalFailureException) Message() string + func (s *InternalFailureException) OrigErr() error + func (s *InternalFailureException) RequestID() string + func (s *InternalFailureException) StatusCode() int + func (s InternalFailureException) GoString() string + func (s InternalFailureException) String() string + type LexRuntimeService struct + func New(p client.ConfigProvider, cfgs ...*aws.Config) *LexRuntimeService + func (c *LexRuntimeService) DeleteSession(input *DeleteSessionInput) (*DeleteSessionOutput, error) + func (c *LexRuntimeService) DeleteSessionRequest(input *DeleteSessionInput) (req *request.Request, output *DeleteSessionOutput) + func (c *LexRuntimeService) DeleteSessionWithContext(ctx aws.Context, input *DeleteSessionInput, opts ...request.Option) (*DeleteSessionOutput, error) + func (c *LexRuntimeService) GetSession(input *GetSessionInput) (*GetSessionOutput, error) + func (c *LexRuntimeService) GetSessionRequest(input *GetSessionInput) (req *request.Request, output *GetSessionOutput) + func (c *LexRuntimeService) GetSessionWithContext(ctx aws.Context, input *GetSessionInput, opts ...request.Option) (*GetSessionOutput, error) + func (c *LexRuntimeService) PostContent(input *PostContentInput) (*PostContentOutput, error) + func (c *LexRuntimeService) PostContentRequest(input *PostContentInput) (req *request.Request, output *PostContentOutput) + func (c *LexRuntimeService) PostContentWithContext(ctx aws.Context, input *PostContentInput, opts ...request.Option) (*PostContentOutput, error) + func (c *LexRuntimeService) PostText(input *PostTextInput) (*PostTextOutput, error) + func (c *LexRuntimeService) PostTextRequest(input *PostTextInput) (req *request.Request, output *PostTextOutput) + func (c *LexRuntimeService) PostTextWithContext(ctx aws.Context, input *PostTextInput, opts ...request.Option) (*PostTextOutput, error) + func (c *LexRuntimeService) PutSession(input *PutSessionInput) (*PutSessionOutput, error) + func (c *LexRuntimeService) PutSessionRequest(input *PutSessionInput) (req *request.Request, output *PutSessionOutput) + func (c *LexRuntimeService) PutSessionWithContext(ctx aws.Context, input *PutSessionInput, opts ...request.Option) (*PutSessionOutput, error) + type LimitExceededException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + RetryAfterSeconds *string + func (s *LimitExceededException) Code() string + func (s *LimitExceededException) Error() string + func (s *LimitExceededException) Message() string + func (s *LimitExceededException) OrigErr() error + func (s *LimitExceededException) RequestID() string + func (s *LimitExceededException) StatusCode() int + func (s LimitExceededException) GoString() string + func (s LimitExceededException) String() string + type LoopDetectedException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *LoopDetectedException) Code() string + func (s *LoopDetectedException) Error() string + func (s *LoopDetectedException) Message() string + func (s *LoopDetectedException) OrigErr() error + func (s *LoopDetectedException) RequestID() string + func (s *LoopDetectedException) StatusCode() int + func (s LoopDetectedException) GoString() string + func (s LoopDetectedException) String() string + type NotAcceptableException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *NotAcceptableException) Code() string + func (s *NotAcceptableException) Error() string + func (s *NotAcceptableException) Message() string + func (s *NotAcceptableException) OrigErr() error + func (s *NotAcceptableException) RequestID() string + func (s *NotAcceptableException) StatusCode() int + func (s NotAcceptableException) GoString() string + func (s NotAcceptableException) String() string + type NotFoundException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *NotFoundException) Code() string + func (s *NotFoundException) Error() string + func (s *NotFoundException) Message() string + func (s *NotFoundException) OrigErr() error + func (s *NotFoundException) RequestID() string + func (s *NotFoundException) StatusCode() int + func (s NotFoundException) GoString() string + func (s NotFoundException) String() string + type PostContentInput struct + Accept *string + ActiveContexts *string + BotAlias *string + BotName *string + ContentType *string + InputStream io.ReadSeeker + RequestAttributes aws.JSONValue + SessionAttributes aws.JSONValue + UserId *string + func (s *PostContentInput) SetAccept(v string) *PostContentInput + func (s *PostContentInput) SetActiveContexts(v string) *PostContentInput + func (s *PostContentInput) SetBotAlias(v string) *PostContentInput + func (s *PostContentInput) SetBotName(v string) *PostContentInput + func (s *PostContentInput) SetContentType(v string) *PostContentInput + func (s *PostContentInput) SetInputStream(v io.ReadSeeker) *PostContentInput + func (s *PostContentInput) SetRequestAttributes(v aws.JSONValue) *PostContentInput + func (s *PostContentInput) SetSessionAttributes(v aws.JSONValue) *PostContentInput + func (s *PostContentInput) SetUserId(v string) *PostContentInput + func (s *PostContentInput) Validate() error + func (s PostContentInput) GoString() string + func (s PostContentInput) String() string + type PostContentOutput struct + ActiveContexts *string + AlternativeIntents *string + AudioStream io.ReadCloser + BotVersion *string + ContentType *string + DialogState *string + EncodedInputTranscript *string + EncodedMessage *string + InputTranscript *string + IntentName *string + Message *string + MessageFormat *string + NluIntentConfidence aws.JSONValue + SentimentResponse *string + SessionAttributes aws.JSONValue + SessionId *string + SlotToElicit *string + Slots aws.JSONValue + func (s *PostContentOutput) SetActiveContexts(v string) *PostContentOutput + func (s *PostContentOutput) SetAlternativeIntents(v string) *PostContentOutput + func (s *PostContentOutput) SetAudioStream(v io.ReadCloser) *PostContentOutput + func (s *PostContentOutput) SetBotVersion(v string) *PostContentOutput + func (s *PostContentOutput) SetContentType(v string) *PostContentOutput + func (s *PostContentOutput) SetDialogState(v string) *PostContentOutput + func (s *PostContentOutput) SetEncodedInputTranscript(v string) *PostContentOutput + func (s *PostContentOutput) SetEncodedMessage(v string) *PostContentOutput + func (s *PostContentOutput) SetInputTranscript(v string) *PostContentOutput + func (s *PostContentOutput) SetIntentName(v string) *PostContentOutput + func (s *PostContentOutput) SetMessage(v string) *PostContentOutput + func (s *PostContentOutput) SetMessageFormat(v string) *PostContentOutput + func (s *PostContentOutput) SetNluIntentConfidence(v aws.JSONValue) *PostContentOutput + func (s *PostContentOutput) SetSentimentResponse(v string) *PostContentOutput + func (s *PostContentOutput) SetSessionAttributes(v aws.JSONValue) *PostContentOutput + func (s *PostContentOutput) SetSessionId(v string) *PostContentOutput + func (s *PostContentOutput) SetSlotToElicit(v string) *PostContentOutput + func (s *PostContentOutput) SetSlots(v aws.JSONValue) *PostContentOutput + func (s PostContentOutput) GoString() string + func (s PostContentOutput) String() string + type PostTextInput struct + ActiveContexts []*ActiveContext + BotAlias *string + BotName *string + InputText *string + RequestAttributes map[string]*string + SessionAttributes map[string]*string + UserId *string + func (s *PostTextInput) SetActiveContexts(v []*ActiveContext) *PostTextInput + func (s *PostTextInput) SetBotAlias(v string) *PostTextInput + func (s *PostTextInput) SetBotName(v string) *PostTextInput + func (s *PostTextInput) SetInputText(v string) *PostTextInput + func (s *PostTextInput) SetRequestAttributes(v map[string]*string) *PostTextInput + func (s *PostTextInput) SetSessionAttributes(v map[string]*string) *PostTextInput + func (s *PostTextInput) SetUserId(v string) *PostTextInput + func (s *PostTextInput) Validate() error + func (s PostTextInput) GoString() string + func (s PostTextInput) String() string + type PostTextOutput struct + ActiveContexts []*ActiveContext + AlternativeIntents []*PredictedIntent + BotVersion *string + DialogState *string + IntentName *string + Message *string + MessageFormat *string + NluIntentConfidence *IntentConfidence + ResponseCard *ResponseCard + SentimentResponse *SentimentResponse + SessionAttributes map[string]*string + SessionId *string + SlotToElicit *string + Slots map[string]*string + func (s *PostTextOutput) SetActiveContexts(v []*ActiveContext) *PostTextOutput + func (s *PostTextOutput) SetAlternativeIntents(v []*PredictedIntent) *PostTextOutput + func (s *PostTextOutput) SetBotVersion(v string) *PostTextOutput + func (s *PostTextOutput) SetDialogState(v string) *PostTextOutput + func (s *PostTextOutput) SetIntentName(v string) *PostTextOutput + func (s *PostTextOutput) SetMessage(v string) *PostTextOutput + func (s *PostTextOutput) SetMessageFormat(v string) *PostTextOutput + func (s *PostTextOutput) SetNluIntentConfidence(v *IntentConfidence) *PostTextOutput + func (s *PostTextOutput) SetResponseCard(v *ResponseCard) *PostTextOutput + func (s *PostTextOutput) SetSentimentResponse(v *SentimentResponse) *PostTextOutput + func (s *PostTextOutput) SetSessionAttributes(v map[string]*string) *PostTextOutput + func (s *PostTextOutput) SetSessionId(v string) *PostTextOutput + func (s *PostTextOutput) SetSlotToElicit(v string) *PostTextOutput + func (s *PostTextOutput) SetSlots(v map[string]*string) *PostTextOutput + func (s PostTextOutput) GoString() string + func (s PostTextOutput) String() string + type PredictedIntent struct + IntentName *string + NluIntentConfidence *IntentConfidence + Slots map[string]*string + func (s *PredictedIntent) SetIntentName(v string) *PredictedIntent + func (s *PredictedIntent) SetNluIntentConfidence(v *IntentConfidence) *PredictedIntent + func (s *PredictedIntent) SetSlots(v map[string]*string) *PredictedIntent + func (s PredictedIntent) GoString() string + func (s PredictedIntent) String() string + type PutSessionInput struct + Accept *string + ActiveContexts []*ActiveContext + BotAlias *string + BotName *string + DialogAction *DialogAction + RecentIntentSummaryView []*IntentSummary + SessionAttributes map[string]*string + UserId *string + func (s *PutSessionInput) SetAccept(v string) *PutSessionInput + func (s *PutSessionInput) SetActiveContexts(v []*ActiveContext) *PutSessionInput + func (s *PutSessionInput) SetBotAlias(v string) *PutSessionInput + func (s *PutSessionInput) SetBotName(v string) *PutSessionInput + func (s *PutSessionInput) SetDialogAction(v *DialogAction) *PutSessionInput + func (s *PutSessionInput) SetRecentIntentSummaryView(v []*IntentSummary) *PutSessionInput + func (s *PutSessionInput) SetSessionAttributes(v map[string]*string) *PutSessionInput + func (s *PutSessionInput) SetUserId(v string) *PutSessionInput + func (s *PutSessionInput) Validate() error + func (s PutSessionInput) GoString() string + func (s PutSessionInput) String() string + type PutSessionOutput struct + ActiveContexts *string + AudioStream io.ReadCloser + ContentType *string + DialogState *string + EncodedMessage *string + IntentName *string + Message *string + MessageFormat *string + SessionAttributes aws.JSONValue + SessionId *string + SlotToElicit *string + Slots aws.JSONValue + func (s *PutSessionOutput) SetActiveContexts(v string) *PutSessionOutput + func (s *PutSessionOutput) SetAudioStream(v io.ReadCloser) *PutSessionOutput + func (s *PutSessionOutput) SetContentType(v string) *PutSessionOutput + func (s *PutSessionOutput) SetDialogState(v string) *PutSessionOutput + func (s *PutSessionOutput) SetEncodedMessage(v string) *PutSessionOutput + func (s *PutSessionOutput) SetIntentName(v string) *PutSessionOutput + func (s *PutSessionOutput) SetMessage(v string) *PutSessionOutput + func (s *PutSessionOutput) SetMessageFormat(v string) *PutSessionOutput + func (s *PutSessionOutput) SetSessionAttributes(v aws.JSONValue) *PutSessionOutput + func (s *PutSessionOutput) SetSessionId(v string) *PutSessionOutput + func (s *PutSessionOutput) SetSlotToElicit(v string) *PutSessionOutput + func (s *PutSessionOutput) SetSlots(v aws.JSONValue) *PutSessionOutput + func (s PutSessionOutput) GoString() string + func (s PutSessionOutput) String() string + type RequestTimeoutException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *RequestTimeoutException) Code() string + func (s *RequestTimeoutException) Error() string + func (s *RequestTimeoutException) Message() string + func (s *RequestTimeoutException) OrigErr() error + func (s *RequestTimeoutException) RequestID() string + func (s *RequestTimeoutException) StatusCode() int + func (s RequestTimeoutException) GoString() string + func (s RequestTimeoutException) String() string + type ResponseCard struct + ContentType *string + GenericAttachments []*GenericAttachment + Version *string + func (s *ResponseCard) SetContentType(v string) *ResponseCard + func (s *ResponseCard) SetGenericAttachments(v []*GenericAttachment) *ResponseCard + func (s *ResponseCard) SetVersion(v string) *ResponseCard + func (s ResponseCard) GoString() string + func (s ResponseCard) String() string + type SentimentResponse struct + SentimentLabel *string + SentimentScore *string + func (s *SentimentResponse) SetSentimentLabel(v string) *SentimentResponse + func (s *SentimentResponse) SetSentimentScore(v string) *SentimentResponse + func (s SentimentResponse) GoString() string + func (s SentimentResponse) String() string + type UnsupportedMediaTypeException struct + Message_ *string + RespMetadata protocol.ResponseMetadata + func (s *UnsupportedMediaTypeException) Code() string + func (s *UnsupportedMediaTypeException) Error() string + func (s *UnsupportedMediaTypeException) Message() string + func (s *UnsupportedMediaTypeException) OrigErr() error + func (s *UnsupportedMediaTypeException) RequestID() string + func (s *UnsupportedMediaTypeException) StatusCode() int + func (s UnsupportedMediaTypeException) GoString() string + func (s UnsupportedMediaTypeException) String() string