| 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 |
Amazonka.LexV2Models.UpdateSlot
Description
Updates the settings for a slot.
Synopsis
- data UpdateSlot = UpdateSlot' {
- description :: Maybe Text
- multipleValuesSetting :: Maybe MultipleValuesSetting
- obfuscationSetting :: Maybe ObfuscationSetting
- slotTypeId :: Maybe Text
- subSlotSetting :: Maybe SubSlotSetting
- slotId :: Text
- slotName :: Text
- valueElicitationSetting :: SlotValueElicitationSetting
- botId :: Text
- botVersion :: Text
- localeId :: Text
- intentId :: Text
- newUpdateSlot :: Text -> Text -> SlotValueElicitationSetting -> Text -> Text -> Text -> Text -> UpdateSlot
- updateSlot_description :: Lens' UpdateSlot (Maybe Text)
- updateSlot_multipleValuesSetting :: Lens' UpdateSlot (Maybe MultipleValuesSetting)
- updateSlot_obfuscationSetting :: Lens' UpdateSlot (Maybe ObfuscationSetting)
- updateSlot_slotTypeId :: Lens' UpdateSlot (Maybe Text)
- updateSlot_subSlotSetting :: Lens' UpdateSlot (Maybe SubSlotSetting)
- updateSlot_slotId :: Lens' UpdateSlot Text
- updateSlot_slotName :: Lens' UpdateSlot Text
- updateSlot_valueElicitationSetting :: Lens' UpdateSlot SlotValueElicitationSetting
- updateSlot_botId :: Lens' UpdateSlot Text
- updateSlot_botVersion :: Lens' UpdateSlot Text
- updateSlot_localeId :: Lens' UpdateSlot Text
- updateSlot_intentId :: Lens' UpdateSlot Text
- data UpdateSlotResponse = UpdateSlotResponse' {
- botId :: Maybe Text
- botVersion :: Maybe Text
- creationDateTime :: Maybe POSIX
- description :: Maybe Text
- intentId :: Maybe Text
- lastUpdatedDateTime :: Maybe POSIX
- localeId :: Maybe Text
- multipleValuesSetting :: Maybe MultipleValuesSetting
- obfuscationSetting :: Maybe ObfuscationSetting
- slotId :: Maybe Text
- slotName :: Maybe Text
- slotTypeId :: Maybe Text
- subSlotSetting :: Maybe SubSlotSetting
- valueElicitationSetting :: Maybe SlotValueElicitationSetting
- httpStatus :: Int
- newUpdateSlotResponse :: Int -> UpdateSlotResponse
- updateSlotResponse_botId :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_botVersion :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_creationDateTime :: Lens' UpdateSlotResponse (Maybe UTCTime)
- updateSlotResponse_description :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_intentId :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_lastUpdatedDateTime :: Lens' UpdateSlotResponse (Maybe UTCTime)
- updateSlotResponse_localeId :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_multipleValuesSetting :: Lens' UpdateSlotResponse (Maybe MultipleValuesSetting)
- updateSlotResponse_obfuscationSetting :: Lens' UpdateSlotResponse (Maybe ObfuscationSetting)
- updateSlotResponse_slotId :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_slotName :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_slotTypeId :: Lens' UpdateSlotResponse (Maybe Text)
- updateSlotResponse_subSlotSetting :: Lens' UpdateSlotResponse (Maybe SubSlotSetting)
- updateSlotResponse_valueElicitationSetting :: Lens' UpdateSlotResponse (Maybe SlotValueElicitationSetting)
- updateSlotResponse_httpStatus :: Lens' UpdateSlotResponse Int
Creating a Request
data UpdateSlot Source #
See: newUpdateSlot smart constructor.
Constructors
| UpdateSlot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> SlotValueElicitationSetting | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> UpdateSlot |
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
newUpdateSlotResponse Source #
Arguments
| :: Int | |
| -> UpdateSlotResponse |
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_slotName :: Lens' UpdateSlotResponse (Maybe Text) Source #
The updated name of the slot.
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.
updateSlotResponse_httpStatus :: Lens' UpdateSlotResponse Int Source #
The response's http status code.