| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.LexModels.GetBot
Description
Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
This operation requires permissions for the lex:GetBot action.
Synopsis
- data GetBot = GetBot' {
- name :: Text
 - versionOrAlias :: Text
 
 - newGetBot :: Text -> Text -> GetBot
 - getBot_name :: Lens' GetBot Text
 - getBot_versionOrAlias :: Lens' GetBot Text
 - data GetBotResponse = GetBotResponse' {
- abortStatement :: Maybe Statement
 - checksum :: Maybe Text
 - childDirected :: Maybe Bool
 - clarificationPrompt :: Maybe Prompt
 - createdDate :: Maybe POSIX
 - description :: Maybe Text
 - detectSentiment :: Maybe Bool
 - enableModelImprovements :: Maybe Bool
 - failureReason :: Maybe Text
 - idleSessionTTLInSeconds :: Maybe Natural
 - intents :: Maybe [Intent]
 - lastUpdatedDate :: Maybe POSIX
 - locale :: Maybe Locale
 - name :: Maybe Text
 - nluIntentConfidenceThreshold :: Maybe Double
 - status :: Maybe LexStatus
 - version :: Maybe Text
 - voiceId :: Maybe Text
 - httpStatus :: Int
 
 - newGetBotResponse :: Int -> GetBotResponse
 - getBotResponse_abortStatement :: Lens' GetBotResponse (Maybe Statement)
 - getBotResponse_checksum :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_childDirected :: Lens' GetBotResponse (Maybe Bool)
 - getBotResponse_clarificationPrompt :: Lens' GetBotResponse (Maybe Prompt)
 - getBotResponse_createdDate :: Lens' GetBotResponse (Maybe UTCTime)
 - getBotResponse_description :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_detectSentiment :: Lens' GetBotResponse (Maybe Bool)
 - getBotResponse_enableModelImprovements :: Lens' GetBotResponse (Maybe Bool)
 - getBotResponse_failureReason :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_idleSessionTTLInSeconds :: Lens' GetBotResponse (Maybe Natural)
 - getBotResponse_intents :: Lens' GetBotResponse (Maybe [Intent])
 - getBotResponse_lastUpdatedDate :: Lens' GetBotResponse (Maybe UTCTime)
 - getBotResponse_locale :: Lens' GetBotResponse (Maybe Locale)
 - getBotResponse_name :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_nluIntentConfidenceThreshold :: Lens' GetBotResponse (Maybe Double)
 - getBotResponse_status :: Lens' GetBotResponse (Maybe LexStatus)
 - getBotResponse_version :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_voiceId :: Lens' GetBotResponse (Maybe Text)
 - getBotResponse_httpStatus :: Lens' GetBotResponse Int
 
Creating a Request
See: newGetBot smart constructor.
Constructors
| GetBot' | |
Fields 
  | |
Instances
Create a value of GetBot 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:
GetBot, getBot_name - The name of the bot. The name is case sensitive.
$sel:versionOrAlias:GetBot', getBot_versionOrAlias - The version or alias of the bot.
Request Lenses
Destructuring the Response
data GetBotResponse Source #
See: newGetBotResponse smart constructor.
Constructors
| GetBotResponse' | |
Fields 
  | |
Instances
Arguments
| :: Int | |
| -> GetBotResponse | 
Create a value of GetBotResponse 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:abortStatement:GetBotResponse', getBotResponse_abortStatement - The message that Amazon Lex returns when the user elects to end the
 conversation without completing it. For more information, see PutBot.
GetBotResponse, getBotResponse_checksum - Checksum of the bot used to identify a specific revision of the bot's
 $LATEST version.
$sel:childDirected:GetBotResponse', getBotResponse_childDirected - For each Amazon Lex bot created with the Amazon Lex Model Building
 Service, you must specify whether your use of Amazon Lex is related to a
 website, program, or other application that is directed or targeted, in
 whole or in part, to children under age 13 and subject to the
 Children's Online Privacy Protection Act (COPPA) by specifying true
 or false in the childDirected field. By specifying true in the
 childDirected field, you confirm that your use of Amazon Lex is
 related to a website, program, or other application that is directed or
 targeted, in whole or in part, to children under age 13 and subject to
 COPPA. By specifying false in the childDirected field, you confirm
 that your use of Amazon Lex is not related to a website, program, or
 other application that is directed or targeted, in whole or in part, to
 children under age 13 and subject to COPPA. You may not specify a
 default value for the childDirected field that does not accurately
 reflect whether your use of Amazon Lex is related to a website, program,
 or other application that is directed or targeted, in whole or in part,
 to children under age 13 and subject to COPPA.
If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.
$sel:clarificationPrompt:GetBotResponse', getBotResponse_clarificationPrompt - The message Amazon Lex uses when it doesn't understand the user's
 request. For more information, see PutBot.
GetBotResponse, getBotResponse_createdDate - The date that the bot was created.
GetBotResponse, getBotResponse_description - A description of the bot.
$sel:detectSentiment:GetBotResponse', getBotResponse_detectSentiment - Indicates whether user utterances should be sent to Amazon Comprehend
 for sentiment analysis.
$sel:enableModelImprovements:GetBotResponse', getBotResponse_enableModelImprovements - Indicates whether the bot uses accuracy improvements. true indicates
 that the bot is using the improvements, otherwise, false.
GetBotResponse, getBotResponse_failureReason - If status is FAILED, Amazon Lex explains why it failed to build the
 bot.
$sel:idleSessionTTLInSeconds:GetBotResponse', getBotResponse_idleSessionTTLInSeconds - The maximum time in seconds that Amazon Lex retains the data gathered in
 a conversation. For more information, see PutBot.
$sel:intents:GetBotResponse', getBotResponse_intents - An array of intent objects. For more information, see PutBot.
GetBotResponse, getBotResponse_lastUpdatedDate - The date that the bot was updated. When you create a resource, the
 creation date and last updated date are the same.
$sel:locale:GetBotResponse', getBotResponse_locale - The target locale for the bot.
GetBot, getBotResponse_name - The name of the bot.
$sel:nluIntentConfidenceThreshold:GetBotResponse', getBotResponse_nluIntentConfidenceThreshold - The score that determines where Amazon Lex inserts the
 AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when
 returning alternative intents in a
 PostContent
 or
 PostText
 response. AMAZON.FallbackIntent is inserted if the confidence score
 for all intents is below this value. AMAZON.KendraSearchIntent is only
 inserted if it is configured for the bot.
GetBotResponse, getBotResponse_status - The status of the bot.
When the status is BUILDING Amazon Lex is building the bot for testing
 and use.
If the status of the bot is READY_BASIC_TESTING, you can test the bot
 using the exact utterances specified in the bot's intents. When the bot
 is ready for full testing or to run, the status is READY.
If there was a problem with building the bot, the status is FAILED and
 the failureReason field explains why the bot did not build.
If the bot was saved but not built, the status is NOT_BUILT.
GetBotResponse, getBotResponse_version - The version of the bot. For a new bot, the version is always $LATEST.
$sel:voiceId:GetBotResponse', getBotResponse_voiceId - The Amazon Polly voice ID that Amazon Lex uses for voice interaction
 with the user. For more information, see PutBot.
$sel:httpStatus:GetBotResponse', getBotResponse_httpStatus - The response's http status code.
Response Lenses
getBotResponse_abortStatement :: Lens' GetBotResponse (Maybe Statement) Source #
The message that Amazon Lex returns when the user elects to end the conversation without completing it. For more information, see PutBot.
getBotResponse_checksum :: Lens' GetBotResponse (Maybe Text) Source #
Checksum of the bot used to identify a specific revision of the bot's
 $LATEST version.
getBotResponse_childDirected :: Lens' GetBotResponse (Maybe Bool) Source #
For each Amazon Lex bot created with the Amazon Lex Model Building
 Service, you must specify whether your use of Amazon Lex is related to a
 website, program, or other application that is directed or targeted, in
 whole or in part, to children under age 13 and subject to the
 Children's Online Privacy Protection Act (COPPA) by specifying true
 or false in the childDirected field. By specifying true in the
 childDirected field, you confirm that your use of Amazon Lex is
 related to a website, program, or other application that is directed or
 targeted, in whole or in part, to children under age 13 and subject to
 COPPA. By specifying false in the childDirected field, you confirm
 that your use of Amazon Lex is not related to a website, program, or
 other application that is directed or targeted, in whole or in part, to
 children under age 13 and subject to COPPA. You may not specify a
 default value for the childDirected field that does not accurately
 reflect whether your use of Amazon Lex is related to a website, program,
 or other application that is directed or targeted, in whole or in part,
 to children under age 13 and subject to COPPA.
If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ.
getBotResponse_clarificationPrompt :: Lens' GetBotResponse (Maybe Prompt) Source #
The message Amazon Lex uses when it doesn't understand the user's request. For more information, see PutBot.
getBotResponse_createdDate :: Lens' GetBotResponse (Maybe UTCTime) Source #
The date that the bot was created.
getBotResponse_description :: Lens' GetBotResponse (Maybe Text) Source #
A description of the bot.
getBotResponse_detectSentiment :: Lens' GetBotResponse (Maybe Bool) Source #
Indicates whether user utterances should be sent to Amazon Comprehend for sentiment analysis.
getBotResponse_enableModelImprovements :: Lens' GetBotResponse (Maybe Bool) Source #
Indicates whether the bot uses accuracy improvements. true indicates
 that the bot is using the improvements, otherwise, false.
getBotResponse_failureReason :: Lens' GetBotResponse (Maybe Text) Source #
If status is FAILED, Amazon Lex explains why it failed to build the
 bot.
getBotResponse_idleSessionTTLInSeconds :: Lens' GetBotResponse (Maybe Natural) Source #
The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot.
getBotResponse_intents :: Lens' GetBotResponse (Maybe [Intent]) Source #
An array of intent objects. For more information, see PutBot.
getBotResponse_lastUpdatedDate :: Lens' GetBotResponse (Maybe UTCTime) Source #
The date that the bot was updated. When you create a resource, the creation date and last updated date are the same.
getBotResponse_locale :: Lens' GetBotResponse (Maybe Locale) Source #
The target locale for the bot.
getBotResponse_name :: Lens' GetBotResponse (Maybe Text) Source #
The name of the bot.
getBotResponse_nluIntentConfidenceThreshold :: Lens' GetBotResponse (Maybe Double) Source #
The score that determines where Amazon Lex inserts the
 AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when
 returning alternative intents in a
 PostContent
 or
 PostText
 response. AMAZON.FallbackIntent is inserted if the confidence score
 for all intents is below this value. AMAZON.KendraSearchIntent is only
 inserted if it is configured for the bot.
getBotResponse_status :: Lens' GetBotResponse (Maybe LexStatus) Source #
The status of the bot.
When the status is BUILDING Amazon Lex is building the bot for testing
 and use.
If the status of the bot is READY_BASIC_TESTING, you can test the bot
 using the exact utterances specified in the bot's intents. When the bot
 is ready for full testing or to run, the status is READY.
If there was a problem with building the bot, the status is FAILED and
 the failureReason field explains why the bot did not build.
If the bot was saved but not built, the status is NOT_BUILT.
getBotResponse_version :: Lens' GetBotResponse (Maybe Text) Source #
The version of the bot. For a new bot, the version is always $LATEST.
getBotResponse_voiceId :: Lens' GetBotResponse (Maybe Text) Source #
The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. For more information, see PutBot.
getBotResponse_httpStatus :: Lens' GetBotResponse Int Source #
The response's http status code.