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 |
Creates an Amazon Lex conversational bot.
Synopsis
- data CreateBot = CreateBot' {}
- newCreateBot :: Text -> Text -> DataPrivacy -> Natural -> CreateBot
- createBot_botTags :: Lens' CreateBot (Maybe (HashMap Text Text))
- createBot_description :: Lens' CreateBot (Maybe Text)
- createBot_testBotAliasTags :: Lens' CreateBot (Maybe (HashMap Text Text))
- createBot_botName :: Lens' CreateBot Text
- createBot_roleArn :: Lens' CreateBot Text
- createBot_dataPrivacy :: Lens' CreateBot DataPrivacy
- createBot_idleSessionTTLInSeconds :: Lens' CreateBot Natural
- data CreateBotResponse = CreateBotResponse' {
- botId :: Maybe Text
- botName :: Maybe Text
- botStatus :: Maybe BotStatus
- botTags :: Maybe (HashMap Text Text)
- creationDateTime :: Maybe POSIX
- dataPrivacy :: Maybe DataPrivacy
- description :: Maybe Text
- idleSessionTTLInSeconds :: Maybe Natural
- roleArn :: Maybe Text
- testBotAliasTags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newCreateBotResponse :: Int -> CreateBotResponse
- createBotResponse_botId :: Lens' CreateBotResponse (Maybe Text)
- createBotResponse_botName :: Lens' CreateBotResponse (Maybe Text)
- createBotResponse_botStatus :: Lens' CreateBotResponse (Maybe BotStatus)
- createBotResponse_botTags :: Lens' CreateBotResponse (Maybe (HashMap Text Text))
- createBotResponse_creationDateTime :: Lens' CreateBotResponse (Maybe UTCTime)
- createBotResponse_dataPrivacy :: Lens' CreateBotResponse (Maybe DataPrivacy)
- createBotResponse_description :: Lens' CreateBotResponse (Maybe Text)
- createBotResponse_idleSessionTTLInSeconds :: Lens' CreateBotResponse (Maybe Natural)
- createBotResponse_roleArn :: Lens' CreateBotResponse (Maybe Text)
- createBotResponse_testBotAliasTags :: Lens' CreateBotResponse (Maybe (HashMap Text Text))
- createBotResponse_httpStatus :: Lens' CreateBotResponse Int
Creating a Request
See: newCreateBot
smart constructor.
CreateBot' | |
|
Instances
Create a value of CreateBot
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:
CreateBot
, createBot_botTags
- A list of tags to add to the bot. You can only add tags when you create
a bot. You can't use the UpdateBot
operation to update tags. To
update tags, use the TagResource
operation.
CreateBot
, createBot_description
- A description of the bot. It appears in lists to help you identify a
particular bot.
CreateBot
, createBot_testBotAliasTags
- A list of tags to add to the test alias for a bot. You can only add tags
when you create a bot. You can't use the UpdateAlias
operation to
update tags. To update tags on the test alias, use the TagResource
operation.
CreateBot
, createBot_botName
- The name of the bot. The bot name must be unique in the account that
creates the bot.
CreateBot
, createBot_roleArn
- The Amazon Resource Name (ARN) of an IAM role that has permission to
access the bot.
CreateBot
, createBot_dataPrivacy
- Provides information on additional privacy protections Amazon Lex should
use with the bot's data.
CreateBot
, createBot_idleSessionTTLInSeconds
- The time, in seconds, that Amazon Lex should keep information about a
user's conversation with the bot.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
Request Lenses
createBot_botTags :: Lens' CreateBot (Maybe (HashMap Text Text)) Source #
A list of tags to add to the bot. You can only add tags when you create
a bot. You can't use the UpdateBot
operation to update tags. To
update tags, use the TagResource
operation.
createBot_description :: Lens' CreateBot (Maybe Text) Source #
A description of the bot. It appears in lists to help you identify a particular bot.
createBot_testBotAliasTags :: Lens' CreateBot (Maybe (HashMap Text Text)) Source #
A list of tags to add to the test alias for a bot. You can only add tags
when you create a bot. You can't use the UpdateAlias
operation to
update tags. To update tags on the test alias, use the TagResource
operation.
createBot_botName :: Lens' CreateBot Text Source #
The name of the bot. The bot name must be unique in the account that creates the bot.
createBot_roleArn :: Lens' CreateBot Text Source #
The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.
createBot_dataPrivacy :: Lens' CreateBot DataPrivacy Source #
Provides information on additional privacy protections Amazon Lex should use with the bot's data.
createBot_idleSessionTTLInSeconds :: Lens' CreateBot Natural Source #
The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
Destructuring the Response
data CreateBotResponse Source #
See: newCreateBotResponse
smart constructor.
CreateBotResponse' | |
|
Instances
Create a value of CreateBotResponse
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:
CreateBotResponse
, createBotResponse_botId
- A unique identifier for a particular bot. You use this to identify the
bot when you call other Amazon Lex API operations.
CreateBot
, createBotResponse_botName
- The name specified for the bot.
CreateBotResponse
, createBotResponse_botStatus
- Shows the current status of the bot. The bot is first in the Creating
status. Once the bot is read for use, it changes to the Available
status. After the bot is created, you can use the Draft
version of the
bot.
CreateBot
, createBotResponse_botTags
- A list of tags associated with the bot.
CreateBotResponse
, createBotResponse_creationDateTime
- A timestamp indicating the date and time that the bot was created.
CreateBot
, createBotResponse_dataPrivacy
- The data privacy settings specified for the bot.
CreateBot
, createBotResponse_description
- The description specified for the bot.
CreateBot
, createBotResponse_idleSessionTTLInSeconds
- The session idle time specified for the bot.
CreateBot
, createBotResponse_roleArn
- The IAM role specified for the bot.
CreateBot
, createBotResponse_testBotAliasTags
- A list of tags associated with the test alias for the bot.
$sel:httpStatus:CreateBotResponse'
, createBotResponse_httpStatus
- The response's http status code.
Response Lenses
createBotResponse_botId :: Lens' CreateBotResponse (Maybe Text) Source #
A unique identifier for a particular bot. You use this to identify the bot when you call other Amazon Lex API operations.
createBotResponse_botName :: Lens' CreateBotResponse (Maybe Text) Source #
The name specified for the bot.
createBotResponse_botStatus :: Lens' CreateBotResponse (Maybe BotStatus) Source #
Shows the current status of the bot. The bot is first in the Creating
status. Once the bot is read for use, it changes to the Available
status. After the bot is created, you can use the Draft
version of the
bot.
createBotResponse_botTags :: Lens' CreateBotResponse (Maybe (HashMap Text Text)) Source #
A list of tags associated with the bot.
createBotResponse_creationDateTime :: Lens' CreateBotResponse (Maybe UTCTime) Source #
A timestamp indicating the date and time that the bot was created.
createBotResponse_dataPrivacy :: Lens' CreateBotResponse (Maybe DataPrivacy) Source #
The data privacy settings specified for the bot.
createBotResponse_description :: Lens' CreateBotResponse (Maybe Text) Source #
The description specified for the bot.
createBotResponse_idleSessionTTLInSeconds :: Lens' CreateBotResponse (Maybe Natural) Source #
The session idle time specified for the bot.
createBotResponse_roleArn :: Lens' CreateBotResponse (Maybe Text) Source #
The IAM role specified for the bot.
createBotResponse_testBotAliasTags :: Lens' CreateBotResponse (Maybe (HashMap Text Text)) Source #
A list of tags associated with the test alias for the bot.
createBotResponse_httpStatus :: Lens' CreateBotResponse Int Source #
The response's http status code.