Copyright | (c) 2013-2021 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 |
Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the lex:GetIntent
action.
Synopsis
- data GetIntent = GetIntent' {}
- newGetIntent :: Text -> Text -> GetIntent
- getIntent_name :: Lens' GetIntent Text
- getIntent_version :: Lens' GetIntent Text
- data GetIntentResponse = GetIntentResponse' {
- fulfillmentActivity :: Maybe FulfillmentActivity
- slots :: Maybe [Slot]
- rejectionStatement :: Maybe Statement
- checksum :: Maybe Text
- conclusionStatement :: Maybe Statement
- sampleUtterances :: Maybe [Text]
- parentIntentSignature :: Maybe Text
- createdDate :: Maybe POSIX
- kendraConfiguration :: Maybe KendraConfiguration
- name :: Maybe Text
- version :: Maybe Text
- inputContexts :: Maybe [InputContext]
- followUpPrompt :: Maybe FollowUpPrompt
- lastUpdatedDate :: Maybe POSIX
- outputContexts :: Maybe [OutputContext]
- confirmationPrompt :: Maybe Prompt
- dialogCodeHook :: Maybe CodeHook
- description :: Maybe Text
- httpStatus :: Int
- newGetIntentResponse :: Int -> GetIntentResponse
- getIntentResponse_fulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity)
- getIntentResponse_slots :: Lens' GetIntentResponse (Maybe [Slot])
- getIntentResponse_rejectionStatement :: Lens' GetIntentResponse (Maybe Statement)
- getIntentResponse_checksum :: Lens' GetIntentResponse (Maybe Text)
- getIntentResponse_conclusionStatement :: Lens' GetIntentResponse (Maybe Statement)
- getIntentResponse_sampleUtterances :: Lens' GetIntentResponse (Maybe [Text])
- getIntentResponse_parentIntentSignature :: Lens' GetIntentResponse (Maybe Text)
- getIntentResponse_createdDate :: Lens' GetIntentResponse (Maybe UTCTime)
- getIntentResponse_kendraConfiguration :: Lens' GetIntentResponse (Maybe KendraConfiguration)
- getIntentResponse_name :: Lens' GetIntentResponse (Maybe Text)
- getIntentResponse_version :: Lens' GetIntentResponse (Maybe Text)
- getIntentResponse_inputContexts :: Lens' GetIntentResponse (Maybe [InputContext])
- getIntentResponse_followUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt)
- getIntentResponse_lastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime)
- getIntentResponse_outputContexts :: Lens' GetIntentResponse (Maybe [OutputContext])
- getIntentResponse_confirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt)
- getIntentResponse_dialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook)
- getIntentResponse_description :: Lens' GetIntentResponse (Maybe Text)
- getIntentResponse_httpStatus :: Lens' GetIntentResponse Int
Creating a Request
See: newGetIntent
smart constructor.
Instances
Create a value of GetIntent
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:GetIntent'
, getIntent_name
- The name of the intent. The name is case sensitive.
$sel:version:GetIntent'
, getIntent_version
- The version of the intent.
Request Lenses
Destructuring the Response
data GetIntentResponse Source #
See: newGetIntentResponse
smart constructor.
GetIntentResponse' | |
|
Instances
Create a value of GetIntentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fulfillmentActivity:GetIntentResponse'
, getIntentResponse_fulfillmentActivity
- Describes how the intent is fulfilled. For more information, see
PutIntent.
$sel:slots:GetIntentResponse'
, getIntentResponse_slots
- An array of intent slots configured for the intent.
$sel:rejectionStatement:GetIntentResponse'
, getIntentResponse_rejectionStatement
- If the user answers "no" to the question defined in
confirmationPrompt
, Amazon Lex responds with this statement to
acknowledge that the intent was canceled.
$sel:checksum:GetIntentResponse'
, getIntentResponse_checksum
- Checksum of the intent.
$sel:conclusionStatement:GetIntentResponse'
, getIntentResponse_conclusionStatement
- After the Lambda function specified in the fulfillmentActivity
element
fulfills the intent, Amazon Lex conveys this statement to the user.
$sel:sampleUtterances:GetIntentResponse'
, getIntentResponse_sampleUtterances
- An array of sample utterances configured for the intent.
$sel:parentIntentSignature:GetIntentResponse'
, getIntentResponse_parentIntentSignature
- A unique identifier for a built-in intent.
$sel:createdDate:GetIntentResponse'
, getIntentResponse_createdDate
- The date that the intent was created.
$sel:kendraConfiguration:GetIntentResponse'
, getIntentResponse_kendraConfiguration
- Configuration information, if any, to connect to an Amazon Kendra index
with the AMAZON.KendraSearchIntent
intent.
$sel:name:GetIntent'
, getIntentResponse_name
- The name of the intent.
$sel:version:GetIntent'
, getIntentResponse_version
- The version of the intent.
$sel:inputContexts:GetIntentResponse'
, getIntentResponse_inputContexts
- An array of InputContext
objects that lists the contexts that must be
active for Amazon Lex to choose the intent in a conversation with the
user.
$sel:followUpPrompt:GetIntentResponse'
, getIntentResponse_followUpPrompt
- If defined in the bot, Amazon Lex uses this prompt to solicit additional
user activity after the intent is fulfilled. For more information, see
PutIntent.
$sel:lastUpdatedDate:GetIntentResponse'
, getIntentResponse_lastUpdatedDate
- The date that the intent was updated. When you create a resource, the
creation date and the last updated date are the same.
$sel:outputContexts:GetIntentResponse'
, getIntentResponse_outputContexts
- An array of OutputContext
objects that lists the contexts that the
intent activates when the intent is fulfilled.
$sel:confirmationPrompt:GetIntentResponse'
, getIntentResponse_confirmationPrompt
- If defined in the bot, Amazon Lex uses prompt to confirm the intent
before fulfilling the user's request. For more information, see
PutIntent.
$sel:dialogCodeHook:GetIntentResponse'
, getIntentResponse_dialogCodeHook
- If defined in the bot, Amazon Amazon Lex invokes this Lambda function
for each user input. For more information, see PutIntent.
$sel:description:GetIntentResponse'
, getIntentResponse_description
- A description of the intent.
$sel:httpStatus:GetIntentResponse'
, getIntentResponse_httpStatus
- The response's http status code.
Response Lenses
getIntentResponse_fulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #
Describes how the intent is fulfilled. For more information, see PutIntent.
getIntentResponse_slots :: Lens' GetIntentResponse (Maybe [Slot]) Source #
An array of intent slots configured for the intent.
getIntentResponse_rejectionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #
If the user answers "no" to the question defined in
confirmationPrompt
, Amazon Lex responds with this statement to
acknowledge that the intent was canceled.
getIntentResponse_checksum :: Lens' GetIntentResponse (Maybe Text) Source #
Checksum of the intent.
getIntentResponse_conclusionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #
After the Lambda function specified in the fulfillmentActivity
element
fulfills the intent, Amazon Lex conveys this statement to the user.
getIntentResponse_sampleUtterances :: Lens' GetIntentResponse (Maybe [Text]) Source #
An array of sample utterances configured for the intent.
getIntentResponse_parentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #
A unique identifier for a built-in intent.
getIntentResponse_createdDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #
The date that the intent was created.
getIntentResponse_kendraConfiguration :: Lens' GetIntentResponse (Maybe KendraConfiguration) Source #
Configuration information, if any, to connect to an Amazon Kendra index
with the AMAZON.KendraSearchIntent
intent.
getIntentResponse_name :: Lens' GetIntentResponse (Maybe Text) Source #
The name of the intent.
getIntentResponse_version :: Lens' GetIntentResponse (Maybe Text) Source #
The version of the intent.
getIntentResponse_inputContexts :: Lens' GetIntentResponse (Maybe [InputContext]) Source #
An array of InputContext
objects that lists the contexts that must be
active for Amazon Lex to choose the intent in a conversation with the
user.
getIntentResponse_followUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt) Source #
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
getIntentResponse_lastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #
The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
getIntentResponse_outputContexts :: Lens' GetIntentResponse (Maybe [OutputContext]) Source #
An array of OutputContext
objects that lists the contexts that the
intent activates when the intent is fulfilled.
getIntentResponse_confirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt) Source #
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
getIntentResponse_dialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook) Source #
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
getIntentResponse_description :: Lens' GetIntentResponse (Maybe Text) Source #
A description of the intent.
getIntentResponse_httpStatus :: Lens' GetIntentResponse Int Source #
The response's http status code.