amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.CreateBot

Description

Creates an Amazon Lex conversational bot.

Synopsis

Creating a Request

data CreateBot Source #

See: newCreateBot smart constructor.

Constructors

CreateBot' 

Fields

  • botTags :: Maybe (HashMap Text Text)

    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.

  • description :: Maybe Text

    A description of the bot. It appears in lists to help you identify a particular bot.

  • testBotAliasTags :: Maybe (HashMap Text Text)

    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.

  • botName :: Text

    The name of the bot. The bot name must be unique in the account that creates the bot.

  • roleArn :: Text

    The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.

  • dataPrivacy :: DataPrivacy

    Provides information on additional privacy protections Amazon Lex should use with the bot's data.

  • idleSessionTTLInSeconds :: Natural

    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.

Instances

Instances details
ToJSON CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

ToHeaders CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Methods

toHeaders :: CreateBot -> [Header] #

ToPath CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

ToQuery CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

AWSRequest CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Associated Types

type AWSResponse CreateBot #

Generic CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Associated Types

type Rep CreateBot :: Type -> Type #

Read CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Show CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

NFData CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Methods

rnf :: CreateBot -> () #

Eq CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Hashable CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

type AWSResponse CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

type Rep CreateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

newCreateBot Source #

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.

Constructors

CreateBotResponse' 

Fields

Instances

Instances details
Generic CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Associated Types

type Rep CreateBotResponse :: Type -> Type #

Read CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Show CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

NFData CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

Methods

rnf :: CreateBotResponse -> () #

Eq CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

type Rep CreateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBot

type Rep CreateBotResponse = D1 ('MetaData "CreateBotResponse" "Amazonka.LexV2Models.CreateBot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateBotResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "botName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "botStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotStatus)) :*: (S1 ('MetaSel ('Just "botTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "dataPrivacy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataPrivacy)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "idleSessionTTLInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "testBotAliasTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newCreateBotResponse Source #

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.