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

Description

Updates the settings for a slot.

Synopsis

Creating a Request

data UpdateSlot Source #

See: newUpdateSlot smart constructor.

Constructors

UpdateSlot' 

Fields

Instances

Instances details
ToJSON UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

ToHeaders UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Methods

toHeaders :: UpdateSlot -> [Header] #

ToPath UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

ToQuery UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

AWSRequest UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Associated Types

type AWSResponse UpdateSlot #

Generic UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Associated Types

type Rep UpdateSlot :: Type -> Type #

Read UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Show UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

NFData UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Methods

rnf :: UpdateSlot -> () #

Eq UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Hashable UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

type AWSResponse UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

type Rep UpdateSlot Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

type Rep UpdateSlot = D1 ('MetaData "UpdateSlot" "Amazonka.LexV2Models.UpdateSlot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "UpdateSlot'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "multipleValuesSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MultipleValuesSetting)) :*: S1 ('MetaSel ('Just "obfuscationSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObfuscationSetting)))) :*: (S1 ('MetaSel ('Just "slotTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subSlotSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SubSlotSetting)) :*: S1 ('MetaSel ('Just "slotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "slotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "valueElicitationSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SlotValueElicitationSetting) :*: S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "localeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "intentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newUpdateSlot Source #

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

UpdateSlot, updateSlot_description - The new description for the slot.

UpdateSlot, updateSlot_multipleValuesSetting - Determines whether the slot accepts multiple values in one response. Multiple value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.

If the multipleValuesSetting is not set, the default value is false.

UpdateSlot, updateSlot_obfuscationSetting - New settings that determine how slot values are formatted in Amazon CloudWatch logs.

UpdateSlot, updateSlot_slotTypeId - The unique identifier of the new slot type to associate with this slot.

UpdateSlot, updateSlot_subSlotSetting - Specifications for the constituent sub slots and the expression for the composite slot.

UpdateSlot, updateSlot_slotId - The unique identifier for the slot to update.

UpdateSlot, updateSlot_slotName - The new name for the slot.

UpdateSlot, updateSlot_valueElicitationSetting - A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.

UpdateSlot, updateSlot_botId - The unique identifier of the bot that contains the slot.

UpdateSlot, updateSlot_botVersion - The version of the bot that contains the slot. Must always be DRAFT.

UpdateSlot, updateSlot_localeId - The identifier of the language and locale that contains the slot. The string must match one of the supported locales. For more information, see Supported languages.

UpdateSlot, updateSlot_intentId - The identifier of the intent that contains the slot.

Request Lenses

updateSlot_description :: Lens' UpdateSlot (Maybe Text) Source #

The new description for the slot.

updateSlot_multipleValuesSetting :: Lens' UpdateSlot (Maybe MultipleValuesSetting) Source #

Determines whether the slot accepts multiple values in one response. Multiple value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.

If the multipleValuesSetting is not set, the default value is false.

updateSlot_obfuscationSetting :: Lens' UpdateSlot (Maybe ObfuscationSetting) Source #

New settings that determine how slot values are formatted in Amazon CloudWatch logs.

updateSlot_slotTypeId :: Lens' UpdateSlot (Maybe Text) Source #

The unique identifier of the new slot type to associate with this slot.

updateSlot_subSlotSetting :: Lens' UpdateSlot (Maybe SubSlotSetting) Source #

Specifications for the constituent sub slots and the expression for the composite slot.

updateSlot_slotId :: Lens' UpdateSlot Text Source #

The unique identifier for the slot to update.

updateSlot_slotName :: Lens' UpdateSlot Text Source #

The new name for the slot.

updateSlot_valueElicitationSetting :: Lens' UpdateSlot SlotValueElicitationSetting Source #

A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.

updateSlot_botId :: Lens' UpdateSlot Text Source #

The unique identifier of the bot that contains the slot.

updateSlot_botVersion :: Lens' UpdateSlot Text Source #

The version of the bot that contains the slot. Must always be DRAFT.

updateSlot_localeId :: Lens' UpdateSlot Text Source #

The identifier of the language and locale that contains the slot. The string must match one of the supported locales. For more information, see Supported languages.

updateSlot_intentId :: Lens' UpdateSlot Text Source #

The identifier of the intent that contains the slot.

Destructuring the Response

data UpdateSlotResponse Source #

See: newUpdateSlotResponse smart constructor.

Constructors

UpdateSlotResponse' 

Fields

Instances

Instances details
Generic UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Associated Types

type Rep UpdateSlotResponse :: Type -> Type #

Read UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Show UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

NFData UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

Methods

rnf :: UpdateSlotResponse -> () #

Eq UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

type Rep UpdateSlotResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.UpdateSlot

type Rep UpdateSlotResponse = D1 ('MetaData "UpdateSlotResponse" "Amazonka.LexV2Models.UpdateSlot" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "UpdateSlotResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "botId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "intentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastUpdatedDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "localeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "multipleValuesSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MultipleValuesSetting)) :*: S1 ('MetaSel ('Just "obfuscationSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObfuscationSetting))) :*: (S1 ('MetaSel ('Just "slotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "slotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "slotTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subSlotSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SubSlotSetting))) :*: (S1 ('MetaSel ('Just "valueElicitationSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlotValueElicitationSetting)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newUpdateSlotResponse Source #

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

UpdateSlot, updateSlotResponse_botId - The identifier of the bot that contains the slot.

UpdateSlot, updateSlotResponse_botVersion - The identifier of the slot version that contains the slot. Will always be DRAFT.

UpdateSlotResponse, updateSlotResponse_creationDateTime - The timestamp of the date and time that the slot was created.

UpdateSlot, updateSlotResponse_description - The updated description of the bot.

UpdateSlot, updateSlotResponse_intentId - The intent that contains the slot.

UpdateSlotResponse, updateSlotResponse_lastUpdatedDateTime - The timestamp of the date and time that the slot was last updated.

UpdateSlot, updateSlotResponse_localeId - The locale that contains the slot.

UpdateSlot, updateSlotResponse_multipleValuesSetting - Indicates whether the slot accepts multiple values in one response.

UpdateSlot, updateSlotResponse_obfuscationSetting - The updated setting that determines whether the slot value is obfuscated in the Amazon CloudWatch logs.

UpdateSlot, updateSlotResponse_slotId - The unique identifier of the slot that was updated.

UpdateSlot, updateSlotResponse_slotName - The updated name of the slot.

UpdateSlot, updateSlotResponse_slotTypeId - The updated identifier of the slot type that provides values for the slot.

UpdateSlot, updateSlotResponse_subSlotSetting - Specifications for the constituent sub slots and the expression for the composite slot.

UpdateSlot, updateSlotResponse_valueElicitationSetting - The updated prompts that Amazon Lex sends to the user to elicit a response that provides a value for the slot.

$sel:httpStatus:UpdateSlotResponse', updateSlotResponse_httpStatus - The response's http status code.

Response Lenses

updateSlotResponse_botId :: Lens' UpdateSlotResponse (Maybe Text) Source #

The identifier of the bot that contains the slot.

updateSlotResponse_botVersion :: Lens' UpdateSlotResponse (Maybe Text) Source #

The identifier of the slot version that contains the slot. Will always be DRAFT.

updateSlotResponse_creationDateTime :: Lens' UpdateSlotResponse (Maybe UTCTime) Source #

The timestamp of the date and time that the slot was created.

updateSlotResponse_description :: Lens' UpdateSlotResponse (Maybe Text) Source #

The updated description of the bot.

updateSlotResponse_intentId :: Lens' UpdateSlotResponse (Maybe Text) Source #

The intent that contains the slot.

updateSlotResponse_lastUpdatedDateTime :: Lens' UpdateSlotResponse (Maybe UTCTime) Source #

The timestamp of the date and time that the slot was last updated.

updateSlotResponse_localeId :: Lens' UpdateSlotResponse (Maybe Text) Source #

The locale that contains the slot.

updateSlotResponse_multipleValuesSetting :: Lens' UpdateSlotResponse (Maybe MultipleValuesSetting) Source #

Indicates whether the slot accepts multiple values in one response.

updateSlotResponse_obfuscationSetting :: Lens' UpdateSlotResponse (Maybe ObfuscationSetting) Source #

The updated setting that determines whether the slot value is obfuscated in the Amazon CloudWatch logs.

updateSlotResponse_slotId :: Lens' UpdateSlotResponse (Maybe Text) Source #

The unique identifier of the slot that was updated.

updateSlotResponse_slotTypeId :: Lens' UpdateSlotResponse (Maybe Text) Source #

The updated identifier of the slot type that provides values for the slot.

updateSlotResponse_subSlotSetting :: Lens' UpdateSlotResponse (Maybe SubSlotSetting) Source #

Specifications for the constituent sub slots and the expression for the composite slot.

updateSlotResponse_valueElicitationSetting :: Lens' UpdateSlotResponse (Maybe SlotValueElicitationSetting) Source #

The updated prompts that Amazon Lex sends to the user to elicit a response that provides a value for the slot.