Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- lexRuntime :: Service
- _NotAcceptableException :: AsError a => Getting (First ServiceError) a ServiceError
- _DependencyFailedException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError
- _ConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _RequestTimeoutException :: AsError a => Getting (First ServiceError) a ServiceError
- _LoopDetectedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalFailureException :: AsError a => Getting (First ServiceError) a ServiceError
- _BadGatewayException :: AsError a => Getting (First ServiceError) a ServiceError
- _BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- data ContentType = ApplicationVnd_Amazonaws_Card_Generic
- data DialogState
- data Button
- button :: Text -> Text -> Button
- bText :: Lens' Button Text
- bValue :: Lens' Button Text
- data GenericAttachment
- genericAttachment :: GenericAttachment
- gaButtons :: Lens' GenericAttachment [Button]
- gaSubTitle :: Lens' GenericAttachment (Maybe Text)
- gaImageURL :: Lens' GenericAttachment (Maybe Text)
- gaAttachmentLinkURL :: Lens' GenericAttachment (Maybe Text)
- gaTitle :: Lens' GenericAttachment (Maybe Text)
- data ResponseCard
- responseCard :: ResponseCard
- rcGenericAttachments :: Lens' ResponseCard [GenericAttachment]
- rcVersion :: Lens' ResponseCard (Maybe Text)
- rcContentType :: Lens' ResponseCard (Maybe ContentType)
Service Configuration
lexRuntime :: Service Source #
API version 2016-11-28
of the Amazon Lex Runtime Service SDK configuration.
Errors
_NotAcceptableException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The accept header in the request does not have a valid value.
_DependencyFailedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,
- If Amazon Lex does not have sufficient permissions to call a Lambda function.
- If a Lambda function takes longer than 30 seconds to execute.
- If a fulfillment Lambda function returns a
Delegate
dialog action without removing any slot values.
_UnsupportedMediaTypeException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The Content-Type header (PostContent
API) has an invalid value.
_ConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Two clients are using the same AWS account, Amazon Lex bot, and user ID.
_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.
_RequestTimeoutException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The input speech is too long.
_LoopDetectedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is not used.
_InternalFailureException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Internal service error. Retry the call.
_BadGatewayException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.
_BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Exceeded a limit.
ContentType
data ContentType Source #
DialogState
data DialogState Source #
Button
Represents an option to be shown on the client platform (Facebook, Slack, etc.)
See: button
smart constructor.
Creates a value of Button
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bValue :: Lens' Button Text Source #
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."
GenericAttachment
data GenericAttachment Source #
Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.
See: genericAttachment
smart constructor.
genericAttachment :: GenericAttachment Source #
Creates a value of GenericAttachment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gaButtons
- The list of options to show to the user.gaSubTitle
- The subtitle shown below the title.gaImageURL
- The URL of an image that is displayed to the user.gaAttachmentLinkURL
- The URL of an attachment to the response card.gaTitle
- The title of the option.
gaSubTitle :: Lens' GenericAttachment (Maybe Text) Source #
The subtitle shown below the title.
gaImageURL :: Lens' GenericAttachment (Maybe Text) Source #
The URL of an image that is displayed to the user.
gaAttachmentLinkURL :: Lens' GenericAttachment (Maybe Text) Source #
The URL of an attachment to the response card.
ResponseCard
data ResponseCard Source #
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).
See: responseCard
smart constructor.
responseCard :: ResponseCard Source #
Creates a value of ResponseCard
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rcGenericAttachments
- An array of attachment objects representing options.rcVersion
- The version of the response card format.rcContentType
- The content type of the response.
rcGenericAttachments :: Lens' ResponseCard [GenericAttachment] Source #
An array of attachment objects representing options.
rcContentType :: Lens' ResponseCard (Maybe ContentType) Source #
The content type of the response.