Copyright | (c) 2013-2018 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 |
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.
- getIntent :: Text -> Text -> GetIntent
- data GetIntent
- giName :: Lens' GetIntent Text
- giVersion :: Lens' GetIntent Text
- getIntentResponse :: Int -> GetIntentResponse
- data GetIntentResponse
- getrsFulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity)
- getrsSlots :: Lens' GetIntentResponse [Slot]
- getrsRejectionStatement :: Lens' GetIntentResponse (Maybe Statement)
- getrsChecksum :: Lens' GetIntentResponse (Maybe Text)
- getrsConclusionStatement :: Lens' GetIntentResponse (Maybe Statement)
- getrsSampleUtterances :: Lens' GetIntentResponse [Text]
- getrsParentIntentSignature :: Lens' GetIntentResponse (Maybe Text)
- getrsCreatedDate :: Lens' GetIntentResponse (Maybe UTCTime)
- getrsName :: Lens' GetIntentResponse (Maybe Text)
- getrsVersion :: Lens' GetIntentResponse (Maybe Text)
- getrsFollowUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt)
- getrsLastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime)
- getrsConfirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt)
- getrsDialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook)
- getrsDescription :: Lens' GetIntentResponse (Maybe Text)
- getrsResponseStatus :: Lens' GetIntentResponse Int
Creating a Request
See: getIntent
smart constructor.
Request Lenses
Destructuring the Response
Creates a value of GetIntentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
getrsFulfillmentActivity
- Describes how the intent is fulfilled. For more information, seePutIntent
.getrsSlots
- An array of intent slots configured for the intent.getrsRejectionStatement
- If the user answers "no" to the question defined inconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.getrsChecksum
- Checksum of the intent.getrsConclusionStatement
- After the Lambda function specified in thefulfillmentActivity
element fulfills the intent, Amazon Lex conveys this statement to the user.getrsSampleUtterances
- An array of sample utterances configured for the intent.getrsParentIntentSignature
- A unique identifier for a built-in intent.getrsCreatedDate
- The date that the intent was created.getrsName
- The name of the intent.getrsVersion
- The version of the intent.getrsFollowUpPrompt
- If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, seePutIntent
.getrsLastUpdatedDate
- The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.getrsConfirmationPrompt
- If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, seePutIntent
.getrsDialogCodeHook
- If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, seePutIntent
.getrsDescription
- A description of the intent.getrsResponseStatus
- -- | The response status code.
data GetIntentResponse Source #
See: getIntentResponse
smart constructor.
Response Lenses
getrsFulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #
Describes how the intent is fulfilled. For more information, see PutIntent
.
getrsSlots :: Lens' GetIntentResponse [Slot] Source #
An array of intent slots configured for the intent.
getrsRejectionStatement :: 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.
getrsChecksum :: Lens' GetIntentResponse (Maybe Text) Source #
Checksum of the intent.
getrsConclusionStatement :: 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.
getrsSampleUtterances :: Lens' GetIntentResponse [Text] Source #
An array of sample utterances configured for the intent.
getrsParentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #
A unique identifier for a built-in intent.
getrsCreatedDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #
The date that the intent was created.
getrsVersion :: Lens' GetIntentResponse (Maybe Text) Source #
The version of the intent.
getrsFollowUpPrompt :: 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
.
getrsLastUpdatedDate :: 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.
getrsConfirmationPrompt :: 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
.
getrsDialogCodeHook :: 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
.
getrsDescription :: Lens' GetIntentResponse (Maybe Text) Source #
A description of the intent.
getrsResponseStatus :: Lens' GetIntentResponse Int Source #
- - | The response status code.