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.UpdateBot

Description

Updates the configuration of an existing bot.

Synopsis

Creating a Request

data UpdateBot Source #

See: newUpdateBot smart constructor.

Constructors

UpdateBot' 

Fields

  • description :: Maybe Text

    A description of the bot.

  • botId :: Text

    The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.

  • botName :: Text

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

  • roleArn :: Text

    The Amazon Resource Name (ARN) of an IAM role that has permissions 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 UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

ToHeaders UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Methods

toHeaders :: UpdateBot -> [Header] #

ToPath UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

ToQuery UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

AWSRequest UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Associated Types

type AWSResponse UpdateBot #

Generic UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Associated Types

type Rep UpdateBot :: Type -> Type #

Read UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Show UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

NFData UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Methods

rnf :: UpdateBot -> () #

Eq UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Hashable UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

type AWSResponse UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

type Rep UpdateBot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

type Rep UpdateBot = D1 ('MetaData "UpdateBot" "Amazonka.LexV2Models.UpdateBot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "UpdateBot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "botName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dataPrivacy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataPrivacy) :*: S1 ('MetaSel ('Just "idleSessionTTLInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))

newUpdateBot Source #

Create a value of UpdateBot 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:

UpdateBot, updateBot_description - A description of the bot.

UpdateBot, updateBot_botId - The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.

UpdateBot, updateBot_botName - The new name of the bot. The name must be unique in the account that creates the bot.

UpdateBot, updateBot_roleArn - The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot.

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

UpdateBot, updateBot_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

updateBot_description :: Lens' UpdateBot (Maybe Text) Source #

A description of the bot.

updateBot_botId :: Lens' UpdateBot Text Source #

The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.

updateBot_botName :: Lens' UpdateBot Text Source #

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

updateBot_roleArn :: Lens' UpdateBot Text Source #

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

updateBot_dataPrivacy :: Lens' UpdateBot DataPrivacy Source #

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

updateBot_idleSessionTTLInSeconds :: Lens' UpdateBot 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 UpdateBotResponse Source #

See: newUpdateBotResponse smart constructor.

Constructors

UpdateBotResponse' 

Fields

Instances

Instances details
Generic UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Associated Types

type Rep UpdateBotResponse :: Type -> Type #

Read UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Show UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

NFData UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

Methods

rnf :: UpdateBotResponse -> () #

Eq UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

type Rep UpdateBotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateBot

newUpdateBotResponse Source #

Create a value of UpdateBotResponse 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:

UpdateBot, updateBotResponse_botId - The unique identifier of the bot that was updated.

UpdateBot, updateBotResponse_botName - The name of the bot after the update.

UpdateBotResponse, updateBotResponse_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.

UpdateBotResponse, updateBotResponse_creationDateTime - A timestamp of the date and time that the bot was created.

UpdateBot, updateBotResponse_dataPrivacy - The data privacy settings for the bot after the update.

UpdateBot, updateBotResponse_description - The description of the bot after the update.

UpdateBot, updateBotResponse_idleSessionTTLInSeconds - The session timeout, in seconds, for the bot after the update.

UpdateBotResponse, updateBotResponse_lastUpdatedDateTime - A timestamp of the date and time that the bot was last updated.

UpdateBot, updateBotResponse_roleArn - The Amazon Resource Name (ARN) of the IAM role used by the bot after the update.

$sel:httpStatus:UpdateBotResponse', updateBotResponse_httpStatus - The response's http status code.

Response Lenses

updateBotResponse_botId :: Lens' UpdateBotResponse (Maybe Text) Source #

The unique identifier of the bot that was updated.

updateBotResponse_botName :: Lens' UpdateBotResponse (Maybe Text) Source #

The name of the bot after the update.

updateBotResponse_botStatus :: Lens' UpdateBotResponse (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.

updateBotResponse_creationDateTime :: Lens' UpdateBotResponse (Maybe UTCTime) Source #

A timestamp of the date and time that the bot was created.

updateBotResponse_dataPrivacy :: Lens' UpdateBotResponse (Maybe DataPrivacy) Source #

The data privacy settings for the bot after the update.

updateBotResponse_description :: Lens' UpdateBotResponse (Maybe Text) Source #

The description of the bot after the update.

updateBotResponse_idleSessionTTLInSeconds :: Lens' UpdateBotResponse (Maybe Natural) Source #

The session timeout, in seconds, for the bot after the update.

updateBotResponse_lastUpdatedDateTime :: Lens' UpdateBotResponse (Maybe UTCTime) Source #

A timestamp of the date and time that the bot was last updated.

updateBotResponse_roleArn :: Lens' UpdateBotResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM role used by the bot after the update.

updateBotResponse_httpStatus :: Lens' UpdateBotResponse Int Source #

The response's http status code.