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

Description

Creates an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.

For example, you can create an alias called "PROD" that your applications use to call the Amazon Lex bot.

Synopsis

Creating a Request

data CreateBotAlias Source #

See: newCreateBotAlias smart constructor.

Constructors

CreateBotAlias' 

Fields

Instances

Instances details
ToJSON CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

ToHeaders CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

ToPath CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

ToQuery CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

AWSRequest CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Associated Types

type AWSResponse CreateBotAlias #

Generic CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Associated Types

type Rep CreateBotAlias :: Type -> Type #

Read CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Show CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

NFData CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Methods

rnf :: CreateBotAlias -> () #

Eq CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Hashable CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

type AWSResponse CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

type Rep CreateBotAlias Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

newCreateBotAlias Source #

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

CreateBotAlias, createBotAlias_botAliasLocaleSettings - Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda function to run different functions in different locales.

CreateBotAlias, createBotAlias_botVersion - The version of the bot that this alias points to. You can use the UpdateBotAlias operation to change the bot version associated with the alias.

CreateBotAlias, createBotAlias_conversationLogSettings - Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. Audio logs store audio input in Amazon S3.

CreateBotAlias, createBotAlias_description - A description of the alias. Use this description to help identify the alias.

CreateBotAlias, createBotAlias_sentimentAnalysisSettings - Undocumented member.

CreateBotAlias, createBotAlias_tags - A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the UpdateBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation.

CreateBotAlias, createBotAlias_botAliasName - The alias to create. The name must be unique for the bot.

CreateBotAlias, createBotAlias_botId - The unique identifier of the bot that the alias applies to.

Request Lenses

createBotAlias_botAliasLocaleSettings :: Lens' CreateBotAlias (Maybe (HashMap Text BotAliasLocaleSettings)) Source #

Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda function to run different functions in different locales.

createBotAlias_botVersion :: Lens' CreateBotAlias (Maybe Text) Source #

The version of the bot that this alias points to. You can use the UpdateBotAlias operation to change the bot version associated with the alias.

createBotAlias_conversationLogSettings :: Lens' CreateBotAlias (Maybe ConversationLogSettings) Source #

Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. Audio logs store audio input in Amazon S3.

createBotAlias_description :: Lens' CreateBotAlias (Maybe Text) Source #

A description of the alias. Use this description to help identify the alias.

createBotAlias_tags :: Lens' CreateBotAlias (Maybe (HashMap Text Text)) Source #

A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the UpdateBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation.

createBotAlias_botAliasName :: Lens' CreateBotAlias Text Source #

The alias to create. The name must be unique for the bot.

createBotAlias_botId :: Lens' CreateBotAlias Text Source #

The unique identifier of the bot that the alias applies to.

Destructuring the Response

data CreateBotAliasResponse Source #

See: newCreateBotAliasResponse smart constructor.

Constructors

CreateBotAliasResponse' 

Fields

Instances

Instances details
Generic CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Associated Types

type Rep CreateBotAliasResponse :: Type -> Type #

Read CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Show CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

NFData CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

Methods

rnf :: CreateBotAliasResponse -> () #

Eq CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

type Rep CreateBotAliasResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateBotAlias

type Rep CreateBotAliasResponse = D1 ('MetaData "CreateBotAliasResponse" "Amazonka.LexV2Models.CreateBotAlias" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateBotAliasResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "botAliasId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botAliasLocaleSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text BotAliasLocaleSettings))) :*: S1 ('MetaSel ('Just "botAliasName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "botAliasStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BotAliasStatus)) :*: (S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "conversationLogSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConversationLogSettings)) :*: (S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "sentimentAnalysisSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SentimentAnalysisSettings)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newCreateBotAliasResponse Source #

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

CreateBotAliasResponse, createBotAliasResponse_botAliasId - The unique identifier of the bot alias.

CreateBotAlias, createBotAliasResponse_botAliasLocaleSettings - Configuration information for a specific locale.

CreateBotAlias, createBotAliasResponse_botAliasName - The name specified for the bot alias.

CreateBotAliasResponse, createBotAliasResponse_botAliasStatus - The current status of the alias. The alias is first put into the Creating state. When the alias is ready to be used, it is put into the Available state. You can use the DescribeBotAlias operation to get the current state of an alias.

CreateBotAlias, createBotAliasResponse_botId - The unique identifier of the bot that this alias applies to.

CreateBotAlias, createBotAliasResponse_botVersion - The version of the bot associated with this alias.

CreateBotAlias, createBotAliasResponse_conversationLogSettings - The conversation log settings specified for the alias.

CreateBotAliasResponse, createBotAliasResponse_creationDateTime - A Unix timestamp indicating the date and time that the bot alias was created.

CreateBotAlias, createBotAliasResponse_description - The description specified for the bot alias.

CreateBotAlias, createBotAliasResponse_sentimentAnalysisSettings - Undocumented member.

CreateBotAlias, createBotAliasResponse_tags - A list of tags associated with the bot alias.

$sel:httpStatus:CreateBotAliasResponse', createBotAliasResponse_httpStatus - The response's http status code.

Response Lenses

createBotAliasResponse_botAliasStatus :: Lens' CreateBotAliasResponse (Maybe BotAliasStatus) Source #

The current status of the alias. The alias is first put into the Creating state. When the alias is ready to be used, it is put into the Available state. You can use the DescribeBotAlias operation to get the current state of an alias.

createBotAliasResponse_botId :: Lens' CreateBotAliasResponse (Maybe Text) Source #

The unique identifier of the bot that this alias applies to.

createBotAliasResponse_botVersion :: Lens' CreateBotAliasResponse (Maybe Text) Source #

The version of the bot associated with this alias.

createBotAliasResponse_creationDateTime :: Lens' CreateBotAliasResponse (Maybe UTCTime) Source #

A Unix timestamp indicating the date and time that the bot alias was created.

createBotAliasResponse_description :: Lens' CreateBotAliasResponse (Maybe Text) Source #

The description specified for the bot alias.

createBotAliasResponse_tags :: Lens' CreateBotAliasResponse (Maybe (HashMap Text Text)) Source #

A list of tags associated with the bot alias.