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 |
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
- girsFulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity)
- girsSlots :: Lens' GetIntentResponse [Slot]
- girsRejectionStatement :: Lens' GetIntentResponse (Maybe Statement)
- girsChecksum :: Lens' GetIntentResponse (Maybe Text)
- girsConclusionStatement :: Lens' GetIntentResponse (Maybe Statement)
- girsSampleUtterances :: Lens' GetIntentResponse [Text]
- girsParentIntentSignature :: Lens' GetIntentResponse (Maybe Text)
- girsCreatedDate :: Lens' GetIntentResponse (Maybe UTCTime)
- girsName :: Lens' GetIntentResponse (Maybe Text)
- girsVersion :: Lens' GetIntentResponse (Maybe Text)
- girsFollowUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt)
- girsLastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime)
- girsConfirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt)
- girsDialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook)
- girsDescription :: Lens' GetIntentResponse (Maybe Text)
- girsResponseStatus :: 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:
girsFulfillmentActivity
- Describes how the intent is fulfilled. For more information, seePutIntent
.girsSlots
- An array of intent slots configured for the intent.girsRejectionStatement
- If the user answers "no" to the question defined inconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.girsChecksum
- Checksum of the intent.girsConclusionStatement
- After the Lambda function specified in thefulfillmentActivity
element fulfills the intent, Amazon Lex conveys this statement to the user.girsSampleUtterances
- An array of sample utterances configured for the intent.girsParentIntentSignature
- A unique identifier for a built-in intent.girsCreatedDate
- The date that the intent was created.girsName
- The name of the intent.girsVersion
- The version of the intent.girsFollowUpPrompt
- If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, seePutIntent
.girsLastUpdatedDate
- The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.girsConfirmationPrompt
- If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, seePutIntent
.girsDialogCodeHook
- If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, seePutIntent
.girsDescription
- A description of the intent.girsResponseStatus
- -- | The response status code.
data GetIntentResponse Source #
See: getIntentResponse
smart constructor.
Response Lenses
girsFulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #
Describes how the intent is fulfilled. For more information, see PutIntent
.
girsSlots :: Lens' GetIntentResponse [Slot] Source #
An array of intent slots configured for the intent.
girsRejectionStatement :: 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.
girsChecksum :: Lens' GetIntentResponse (Maybe Text) Source #
Checksum of the intent.
girsConclusionStatement :: 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.
girsSampleUtterances :: Lens' GetIntentResponse [Text] Source #
An array of sample utterances configured for the intent.
girsParentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #
A unique identifier for a built-in intent.
girsCreatedDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #
The date that the intent was created.
girsVersion :: Lens' GetIntentResponse (Maybe Text) Source #
The version of the intent.
girsFollowUpPrompt :: 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
.
girsLastUpdatedDate :: 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.
girsConfirmationPrompt :: 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
.
girsDialogCodeHook :: 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
.
girsDescription :: Lens' GetIntentResponse (Maybe Text) Source #
A description of the intent.
girsResponseStatus :: Lens' GetIntentResponse Int Source #
- - | The response status code.