package types

import "github.com/aws/aws-sdk-go-v2/service/lexruntimeservice/types"

Index

Types

type BadGatewayException

type BadGatewayException struct {
	Message *string
}

Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.

func (*BadGatewayException) Error

func (e *BadGatewayException) Error() string

func (*BadGatewayException) ErrorCode

func (e *BadGatewayException) ErrorCode() string

func (*BadGatewayException) ErrorFault

func (e *BadGatewayException) ErrorFault() smithy.ErrorFault

func (*BadGatewayException) ErrorMessage

func (e *BadGatewayException) ErrorMessage() string

func (*BadGatewayException) GetMessage

func (e *BadGatewayException) GetMessage() string

func (*BadGatewayException) HasMessage

func (e *BadGatewayException) HasMessage() bool

type BadRequestException

type BadRequestException struct {
	Message *string
}

Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.

func (*BadRequestException) Error

func (e *BadRequestException) Error() string

func (*BadRequestException) ErrorCode

func (e *BadRequestException) ErrorCode() string

func (*BadRequestException) ErrorFault

func (e *BadRequestException) ErrorFault() smithy.ErrorFault

func (*BadRequestException) ErrorMessage

func (e *BadRequestException) ErrorMessage() string

func (*BadRequestException) GetMessage

func (e *BadRequestException) GetMessage() string

func (*BadRequestException) HasMessage

func (e *BadRequestException) HasMessage() bool

type Button

type Button struct {
	// The value sent to Amazon Lex when a user chooses the button. For example,
	// consider button text "NYC." When the user chooses the button, the value sent can
	// be "New York City."
	Value *string
	// Text that is visible to the user on the button.
	Text *string
}

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

type ConfirmationStatus

type ConfirmationStatus string
const (
	ConfirmationStatusNone      ConfirmationStatus = "None"
	ConfirmationStatusConfirmed ConfirmationStatus = "Confirmed"
	ConfirmationStatusDenied    ConfirmationStatus = "Denied"
)

Enum values for ConfirmationStatus

type ConflictException

type ConflictException struct {
	Message *string
}

Two clients are using the same AWS account, Amazon Lex bot, and user ID.

func (*ConflictException) Error

func (e *ConflictException) Error() string

func (*ConflictException) ErrorCode

func (e *ConflictException) ErrorCode() string

func (*ConflictException) ErrorFault

func (e *ConflictException) ErrorFault() smithy.ErrorFault

func (*ConflictException) ErrorMessage

func (e *ConflictException) ErrorMessage() string

func (*ConflictException) GetMessage

func (e *ConflictException) GetMessage() string

func (*ConflictException) HasMessage

func (e *ConflictException) HasMessage() bool

type ContentType

type ContentType string
const (
	ContentTypeGeneric ContentType = "application/vnd.amazonaws.card.generic"
)

Enum values for ContentType

type DependencyFailedException

type DependencyFailedException struct {
	Message *string
}

One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,

Lambda function.

execute.

action without removing any slot values.

func (*DependencyFailedException) Error

func (e *DependencyFailedException) Error() string

func (*DependencyFailedException) ErrorCode

func (e *DependencyFailedException) ErrorCode() string

func (*DependencyFailedException) ErrorFault

func (*DependencyFailedException) ErrorMessage

func (e *DependencyFailedException) ErrorMessage() string

func (*DependencyFailedException) GetMessage

func (e *DependencyFailedException) GetMessage() string

func (*DependencyFailedException) HasMessage

func (e *DependencyFailedException) HasMessage() bool

type DialogAction

type DialogAction struct {
	// The name of the slot that should be elicited from the user.
	SlotToElicit *string
	// The message that should be shown to the user. If you don't specify a message,
	// Amazon Lex will use the message configured for the intent.
	Message *string
	// The next action that the bot should take in its interaction with the user. The
	// possible values are:
	//
	//     * ConfirmIntent - The next action is asking the user
	// if the intent is complete and ready to be fulfilled. This is a yes/no question
	// such as "Place the order?"
	//
	//     * Close - Indicates that the there will not be a
	// response from the user. For example, the statement "Your order has been placed"
	// does not require a response.
	//
	//     * Delegate - The next action is determined by
	// Amazon Lex.
	//
	//     * ElicitIntent - The next action is to determine the intent
	// that the user wants to fulfill.
	//
	//     * ElicitSlot - The next action is to elicit
	// a slot value from the user.
	Type DialogActionType
	// The fulfillment state of the intent. The possible values are:
	//
	//     * Failed -
	// The Lambda function associated with the intent failed to fulfill the intent.
	//
	//
	// * Fulfilled - The intent has fulfilled by the Lambda function associated with
	// the intent.
	//
	//     * ReadyForFulfillment - All of the information necessary for
	// the intent is present and the intent ready to be fulfilled by the client
	// application.
	FulfillmentState FulfillmentState
	// Map of the slots that have been gathered and their values.
	Slots map[string]*string
	// The name of the intent.
	IntentName *string
	// * 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. For more information, see
	// Message Groups
	// (https://docs.aws.amazon.com/lex/latest/dg/howitworks-manage-prompts.html).
	MessageFormat MessageFormatType
}

Describes the next action that the bot should take in its interaction with the user and provides information about the context in which the action takes place. Use the DialogAction data type to set the interaction to a specific state, or to return the interaction to a previous state.

type DialogActionType

type DialogActionType string
const (
	DialogActionTypeElicit_intent  DialogActionType = "ElicitIntent"
	DialogActionTypeConfirm_intent DialogActionType = "ConfirmIntent"
	DialogActionTypeElicit_slot    DialogActionType = "ElicitSlot"
	DialogActionTypeClose          DialogActionType = "Close"
	DialogActionTypeDelegate       DialogActionType = "Delegate"
)

Enum values for DialogActionType

type DialogState

type DialogState string
const (
	DialogStateElicit_intent         DialogState = "ElicitIntent"
	DialogStateConfirm_intent        DialogState = "ConfirmIntent"
	DialogStateElicit_slot           DialogState = "ElicitSlot"
	DialogStateFulfilled             DialogState = "Fulfilled"
	DialogStateReady_for_fulfillment DialogState = "ReadyForFulfillment"
	DialogStateFailed                DialogState = "Failed"
)

Enum values for DialogState

type FulfillmentState

type FulfillmentState string
const (
	FulfillmentStateFulfilled             FulfillmentState = "Fulfilled"
	FulfillmentStateFailed                FulfillmentState = "Failed"
	FulfillmentStateReady_for_fulfillment FulfillmentState = "ReadyForFulfillment"
)

Enum values for FulfillmentState

type GenericAttachment

type GenericAttachment struct {
	// The title of the option.
	Title *string
	// The URL of an attachment to the response card.
	AttachmentLinkUrl *string
	// The URL of an image that is displayed to the user.
	ImageUrl *string
	// The list of options to show to the user.
	Buttons []*Button
	// The subtitle shown below the title.
	SubTitle *string
}

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

type IntentSummary

type IntentSummary struct {
	// The fulfillment state of the intent. The possible values are:
	//
	//     * Failed -
	// The Lambda function associated with the intent failed to fulfill the intent.
	//
	//
	// * Fulfilled - The intent has fulfilled by the Lambda function associated with
	// the intent.
	//
	//     * ReadyForFulfillment - All of the information necessary for
	// the intent is present and the intent ready to be fulfilled by the client
	// application.
	FulfillmentState FulfillmentState
	// The next action that the bot should take in its interaction with the user. The
	// possible values are:
	//
	//     * ConfirmIntent - The next action is asking the user
	// if the intent is complete and ready to be fulfilled. This is a yes/no question
	// such as "Place the order?"
	//
	//     * Close - Indicates that the there will not be a
	// response from the user. For example, the statement "Your order has been placed"
	// does not require a response.
	//
	//     * ElicitIntent - The next action is to
	// determine the intent that the user wants to fulfill.
	//
	//     * ElicitSlot - The
	// next action is to elicit a slot value from the user.
	DialogActionType DialogActionType
	// A user-defined label that identifies a particular intent. You can use this label
	// to return to a previous intent. Use the checkpointLabelFilter parameter of the
	// GetSessionRequest operation to filter the intents returned by the operation to
	// those with only the specified label.
	CheckpointLabel *string
	// The next slot to elicit from the user. If there is not slot to elicit, the field
	// is blank.
	SlotToElicit *string
	// Map of the slots that have been gathered and their values.
	Slots map[string]*string
	// The status of the intent after the user responds to the confirmation prompt. If
	// the user confirms the intent, Amazon Lex sets this field to Confirmed. If the
	// user denies the intent, Amazon Lex sets this value to Denied. The possible
	// values are:
	//
	//     * Confirmed - The user has responded "Yes" to the confirmation
	// prompt, confirming that the intent is complete and that it is ready to be
	// fulfilled.
	//
	//     * Denied - The user has responded "No" to the confirmation
	// prompt.
	//
	//     * None - The user has never been prompted for confirmation; or, the
	// user was prompted but did not confirm or deny the prompt.
	ConfirmationStatus ConfirmationStatus
	// The name of the intent.
	IntentName *string
}

Provides information about the state of an intent. You can use this information to get the current state of an intent so that you can process the intent, or so that you can return the intent to its previous state.

type InternalFailureException

type InternalFailureException struct {
	Message *string
}

Internal service error. Retry the call.

func (*InternalFailureException) Error

func (e *InternalFailureException) Error() string

func (*InternalFailureException) ErrorCode

func (e *InternalFailureException) ErrorCode() string

func (*InternalFailureException) ErrorFault

func (e *InternalFailureException) ErrorFault() smithy.ErrorFault

func (*InternalFailureException) ErrorMessage

func (e *InternalFailureException) ErrorMessage() string

func (*InternalFailureException) GetMessage

func (e *InternalFailureException) GetMessage() string

func (*InternalFailureException) HasMessage

func (e *InternalFailureException) HasMessage() bool

type LimitExceededException

type LimitExceededException struct {
	Message *string

	RetryAfterSeconds *string
}

Exceeded a limit.

func (*LimitExceededException) Error

func (e *LimitExceededException) Error() string

func (*LimitExceededException) ErrorCode

func (e *LimitExceededException) ErrorCode() string

func (*LimitExceededException) ErrorFault

func (e *LimitExceededException) ErrorFault() smithy.ErrorFault

func (*LimitExceededException) ErrorMessage

func (e *LimitExceededException) ErrorMessage() string

func (*LimitExceededException) GetMessage

func (e *LimitExceededException) GetMessage() string

func (*LimitExceededException) GetRetryAfterSeconds

func (e *LimitExceededException) GetRetryAfterSeconds() string

func (*LimitExceededException) HasMessage

func (e *LimitExceededException) HasMessage() bool

func (*LimitExceededException) HasRetryAfterSeconds

func (e *LimitExceededException) HasRetryAfterSeconds() bool

type LoopDetectedException

type LoopDetectedException struct {
	Message *string
}

This exception is not used.

func (*LoopDetectedException) Error

func (e *LoopDetectedException) Error() string

func (*LoopDetectedException) ErrorCode

func (e *LoopDetectedException) ErrorCode() string

func (*LoopDetectedException) ErrorFault

func (e *LoopDetectedException) ErrorFault() smithy.ErrorFault

func (*LoopDetectedException) ErrorMessage

func (e *LoopDetectedException) ErrorMessage() string

func (*LoopDetectedException) GetMessage

func (e *LoopDetectedException) GetMessage() string

func (*LoopDetectedException) HasMessage

func (e *LoopDetectedException) HasMessage() bool

type MessageFormatType

type MessageFormatType string
const (
	MessageFormatTypePlain_text     MessageFormatType = "PlainText"
	MessageFormatTypeCustom_payload MessageFormatType = "CustomPayload"
	MessageFormatTypeSsml           MessageFormatType = "SSML"
	MessageFormatTypeComposite      MessageFormatType = "Composite"
)

Enum values for MessageFormatType

type NotAcceptableException

type NotAcceptableException struct {
	Message *string
}

The accept header in the request does not have a valid value.

func (*NotAcceptableException) Error

func (e *NotAcceptableException) Error() string

func (*NotAcceptableException) ErrorCode

func (e *NotAcceptableException) ErrorCode() string

func (*NotAcceptableException) ErrorFault

func (e *NotAcceptableException) ErrorFault() smithy.ErrorFault

func (*NotAcceptableException) ErrorMessage

func (e *NotAcceptableException) ErrorMessage() string

func (*NotAcceptableException) GetMessage

func (e *NotAcceptableException) GetMessage() string

func (*NotAcceptableException) HasMessage

func (e *NotAcceptableException) HasMessage() bool

type NotFoundException

type NotFoundException struct {
	Message *string
}

The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.

func (*NotFoundException) Error

func (e *NotFoundException) Error() string

func (*NotFoundException) ErrorCode

func (e *NotFoundException) ErrorCode() string

func (*NotFoundException) ErrorFault

func (e *NotFoundException) ErrorFault() smithy.ErrorFault

func (*NotFoundException) ErrorMessage

func (e *NotFoundException) ErrorMessage() string

func (*NotFoundException) GetMessage

func (e *NotFoundException) GetMessage() string

func (*NotFoundException) HasMessage

func (e *NotFoundException) HasMessage() bool

type RequestTimeoutException

type RequestTimeoutException struct {
	Message *string
}

The input speech is too long.

func (*RequestTimeoutException) Error

func (e *RequestTimeoutException) Error() string

func (*RequestTimeoutException) ErrorCode

func (e *RequestTimeoutException) ErrorCode() string

func (*RequestTimeoutException) ErrorFault

func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault

func (*RequestTimeoutException) ErrorMessage

func (e *RequestTimeoutException) ErrorMessage() string

func (*RequestTimeoutException) GetMessage

func (e *RequestTimeoutException) GetMessage() string

func (*RequestTimeoutException) HasMessage

func (e *RequestTimeoutException) HasMessage() bool

type ResponseCard

type ResponseCard struct {
	// The version of the response card format.
	Version *string
	// An array of attachment objects representing options.
	GenericAttachments []*GenericAttachment
	// The content type of the response.
	ContentType ContentType
}

If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

type SentimentResponse

type SentimentResponse struct {
	// The likelihood that the sentiment was correctly inferred.
	SentimentScore *string
	// The inferred sentiment that Amazon Comprehend has the highest confidence in.
	SentimentLabel *string
}

The sentiment expressed in an utterance. When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

type UnsupportedMediaTypeException

type UnsupportedMediaTypeException struct {
	Message *string
}

The Content-Type header (PostContent API) has an invalid value.

func (*UnsupportedMediaTypeException) Error

func (*UnsupportedMediaTypeException) ErrorCode

func (e *UnsupportedMediaTypeException) ErrorCode() string

func (*UnsupportedMediaTypeException) ErrorFault

func (*UnsupportedMediaTypeException) ErrorMessage

func (e *UnsupportedMediaTypeException) ErrorMessage() string

func (*UnsupportedMediaTypeException) GetMessage

func (e *UnsupportedMediaTypeException) GetMessage() string

func (*UnsupportedMediaTypeException) HasMessage

func (e *UnsupportedMediaTypeException) HasMessage() bool

Source Files

enums.go errors.go types.go

Version
v0.1.0
Published
Sep 29, 2020
Platform
darwin/amd64
Imports
3 packages
Last checked
2 weeks ago

Tools for package owners.