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 |
Updates the configuration of an existing slot type.
Synopsis
- data UpdateSlotType = UpdateSlotType' {
- compositeSlotTypeSetting :: Maybe CompositeSlotTypeSetting
- description :: Maybe Text
- externalSourceSetting :: Maybe ExternalSourceSetting
- parentSlotTypeSignature :: Maybe Text
- slotTypeValues :: Maybe (NonEmpty SlotTypeValue)
- valueSelectionSetting :: Maybe SlotValueSelectionSetting
- slotTypeId :: Text
- slotTypeName :: Text
- botId :: Text
- botVersion :: Text
- localeId :: Text
- newUpdateSlotType :: Text -> Text -> Text -> Text -> Text -> UpdateSlotType
- updateSlotType_compositeSlotTypeSetting :: Lens' UpdateSlotType (Maybe CompositeSlotTypeSetting)
- updateSlotType_description :: Lens' UpdateSlotType (Maybe Text)
- updateSlotType_externalSourceSetting :: Lens' UpdateSlotType (Maybe ExternalSourceSetting)
- updateSlotType_parentSlotTypeSignature :: Lens' UpdateSlotType (Maybe Text)
- updateSlotType_slotTypeValues :: Lens' UpdateSlotType (Maybe (NonEmpty SlotTypeValue))
- updateSlotType_valueSelectionSetting :: Lens' UpdateSlotType (Maybe SlotValueSelectionSetting)
- updateSlotType_slotTypeId :: Lens' UpdateSlotType Text
- updateSlotType_slotTypeName :: Lens' UpdateSlotType Text
- updateSlotType_botId :: Lens' UpdateSlotType Text
- updateSlotType_botVersion :: Lens' UpdateSlotType Text
- updateSlotType_localeId :: Lens' UpdateSlotType Text
- data UpdateSlotTypeResponse = UpdateSlotTypeResponse' {
- botId :: Maybe Text
- botVersion :: Maybe Text
- compositeSlotTypeSetting :: Maybe CompositeSlotTypeSetting
- creationDateTime :: Maybe POSIX
- description :: Maybe Text
- externalSourceSetting :: Maybe ExternalSourceSetting
- lastUpdatedDateTime :: Maybe POSIX
- localeId :: Maybe Text
- parentSlotTypeSignature :: Maybe Text
- slotTypeId :: Maybe Text
- slotTypeName :: Maybe Text
- slotTypeValues :: Maybe (NonEmpty SlotTypeValue)
- valueSelectionSetting :: Maybe SlotValueSelectionSetting
- httpStatus :: Int
- newUpdateSlotTypeResponse :: Int -> UpdateSlotTypeResponse
- updateSlotTypeResponse_botId :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_botVersion :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_compositeSlotTypeSetting :: Lens' UpdateSlotTypeResponse (Maybe CompositeSlotTypeSetting)
- updateSlotTypeResponse_creationDateTime :: Lens' UpdateSlotTypeResponse (Maybe UTCTime)
- updateSlotTypeResponse_description :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_externalSourceSetting :: Lens' UpdateSlotTypeResponse (Maybe ExternalSourceSetting)
- updateSlotTypeResponse_lastUpdatedDateTime :: Lens' UpdateSlotTypeResponse (Maybe UTCTime)
- updateSlotTypeResponse_localeId :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_parentSlotTypeSignature :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_slotTypeId :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_slotTypeName :: Lens' UpdateSlotTypeResponse (Maybe Text)
- updateSlotTypeResponse_slotTypeValues :: Lens' UpdateSlotTypeResponse (Maybe (NonEmpty SlotTypeValue))
- updateSlotTypeResponse_valueSelectionSetting :: Lens' UpdateSlotTypeResponse (Maybe SlotValueSelectionSetting)
- updateSlotTypeResponse_httpStatus :: Lens' UpdateSlotTypeResponse Int
Creating a Request
data UpdateSlotType Source #
See: newUpdateSlotType
smart constructor.
UpdateSlotType' | |
|
Instances
Create a value of UpdateSlotType
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:
UpdateSlotType
, updateSlotType_compositeSlotTypeSetting
- Specifications for a composite slot type.
UpdateSlotType
, updateSlotType_description
- The new description of the slot type.
UpdateSlotType
, updateSlotType_externalSourceSetting
- Undocumented member.
UpdateSlotType
, updateSlotType_parentSlotTypeSignature
- The new built-in slot type that should be used as the parent of this
slot type.
UpdateSlotType
, updateSlotType_slotTypeValues
- A new list of values and their optional synonyms that define the values
that the slot type can take.
UpdateSlotType
, updateSlotType_valueSelectionSetting
- The strategy that Amazon Lex should use when deciding on a value from
the list of slot type values.
UpdateSlotType
, updateSlotType_slotTypeId
- The unique identifier of the slot type to update.
UpdateSlotType
, updateSlotType_slotTypeName
- The new name of the slot type.
UpdateSlotType
, updateSlotType_botId
- The identifier of the bot that contains the slot type.
UpdateSlotType
, updateSlotType_botVersion
- The version of the bot that contains the slot type. Must be DRAFT
.
UpdateSlotType
, updateSlotType_localeId
- The identifier of the language and locale that contains the slot type.
The string must match one of the supported locales. For more
information, see
Supported languages.
Request Lenses
updateSlotType_compositeSlotTypeSetting :: Lens' UpdateSlotType (Maybe CompositeSlotTypeSetting) Source #
Specifications for a composite slot type.
updateSlotType_description :: Lens' UpdateSlotType (Maybe Text) Source #
The new description of the slot type.
updateSlotType_externalSourceSetting :: Lens' UpdateSlotType (Maybe ExternalSourceSetting) Source #
Undocumented member.
updateSlotType_parentSlotTypeSignature :: Lens' UpdateSlotType (Maybe Text) Source #
The new built-in slot type that should be used as the parent of this slot type.
updateSlotType_slotTypeValues :: Lens' UpdateSlotType (Maybe (NonEmpty SlotTypeValue)) Source #
A new list of values and their optional synonyms that define the values that the slot type can take.
updateSlotType_valueSelectionSetting :: Lens' UpdateSlotType (Maybe SlotValueSelectionSetting) Source #
The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.
updateSlotType_slotTypeId :: Lens' UpdateSlotType Text Source #
The unique identifier of the slot type to update.
updateSlotType_slotTypeName :: Lens' UpdateSlotType Text Source #
The new name of the slot type.
updateSlotType_botId :: Lens' UpdateSlotType Text Source #
The identifier of the bot that contains the slot type.
updateSlotType_botVersion :: Lens' UpdateSlotType Text Source #
The version of the bot that contains the slot type. Must be DRAFT
.
updateSlotType_localeId :: Lens' UpdateSlotType Text Source #
The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.
Destructuring the Response
data UpdateSlotTypeResponse Source #
See: newUpdateSlotTypeResponse
smart constructor.
UpdateSlotTypeResponse' | |
|
Instances
newUpdateSlotTypeResponse Source #
Create a value of UpdateSlotTypeResponse
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:
UpdateSlotType
, updateSlotTypeResponse_botId
- The identifier of the bot that contains the slot type.
UpdateSlotType
, updateSlotTypeResponse_botVersion
- The version of the bot that contains the slot type. This is always
DRAFT
.
UpdateSlotType
, updateSlotTypeResponse_compositeSlotTypeSetting
- Specifications for a composite slot type.
UpdateSlotTypeResponse
, updateSlotTypeResponse_creationDateTime
- The timestamp of the date and time that the slot type was created.
UpdateSlotType
, updateSlotTypeResponse_description
- The updated description of the slot type.
UpdateSlotType
, updateSlotTypeResponse_externalSourceSetting
- Undocumented member.
UpdateSlotTypeResponse
, updateSlotTypeResponse_lastUpdatedDateTime
- A timestamp of the date and time that the slot type was last updated.
UpdateSlotType
, updateSlotTypeResponse_localeId
- The language and locale of the updated slot type.
UpdateSlotType
, updateSlotTypeResponse_parentSlotTypeSignature
- The updated signature of the built-in slot type that is the parent of
this slot type.
UpdateSlotType
, updateSlotTypeResponse_slotTypeId
- The unique identifier of the updated slot type.
UpdateSlotType
, updateSlotTypeResponse_slotTypeName
- The updated name of the slot type.
UpdateSlotType
, updateSlotTypeResponse_slotTypeValues
- The updated values that the slot type provides.
UpdateSlotType
, updateSlotTypeResponse_valueSelectionSetting
- The updated strategy that Amazon Lex uses to determine which value to
select from the slot type.
$sel:httpStatus:UpdateSlotTypeResponse'
, updateSlotTypeResponse_httpStatus
- The response's http status code.
Response Lenses
updateSlotTypeResponse_botId :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The identifier of the bot that contains the slot type.
updateSlotTypeResponse_botVersion :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The version of the bot that contains the slot type. This is always
DRAFT
.
updateSlotTypeResponse_compositeSlotTypeSetting :: Lens' UpdateSlotTypeResponse (Maybe CompositeSlotTypeSetting) Source #
Specifications for a composite slot type.
updateSlotTypeResponse_creationDateTime :: Lens' UpdateSlotTypeResponse (Maybe UTCTime) Source #
The timestamp of the date and time that the slot type was created.
updateSlotTypeResponse_description :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The updated description of the slot type.
updateSlotTypeResponse_externalSourceSetting :: Lens' UpdateSlotTypeResponse (Maybe ExternalSourceSetting) Source #
Undocumented member.
updateSlotTypeResponse_lastUpdatedDateTime :: Lens' UpdateSlotTypeResponse (Maybe UTCTime) Source #
A timestamp of the date and time that the slot type was last updated.
updateSlotTypeResponse_localeId :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The language and locale of the updated slot type.
updateSlotTypeResponse_parentSlotTypeSignature :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The updated signature of the built-in slot type that is the parent of this slot type.
updateSlotTypeResponse_slotTypeId :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The unique identifier of the updated slot type.
updateSlotTypeResponse_slotTypeName :: Lens' UpdateSlotTypeResponse (Maybe Text) Source #
The updated name of the slot type.
updateSlotTypeResponse_slotTypeValues :: Lens' UpdateSlotTypeResponse (Maybe (NonEmpty SlotTypeValue)) Source #
The updated values that the slot type provides.
updateSlotTypeResponse_valueSelectionSetting :: Lens' UpdateSlotTypeResponse (Maybe SlotValueSelectionSetting) Source #
The updated strategy that Amazon Lex uses to determine which value to select from the slot type.
updateSlotTypeResponse_httpStatus :: Lens' UpdateSlotTypeResponse Int Source #
The response's http status code.