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 |
Creates a custom slot type
To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.
Synopsis
- data CreateSlotType = CreateSlotType' {
- compositeSlotTypeSetting :: Maybe CompositeSlotTypeSetting
- description :: Maybe Text
- externalSourceSetting :: Maybe ExternalSourceSetting
- parentSlotTypeSignature :: Maybe Text
- slotTypeValues :: Maybe (NonEmpty SlotTypeValue)
- valueSelectionSetting :: Maybe SlotValueSelectionSetting
- slotTypeName :: Text
- botId :: Text
- botVersion :: Text
- localeId :: Text
- newCreateSlotType :: Text -> Text -> Text -> Text -> CreateSlotType
- createSlotType_compositeSlotTypeSetting :: Lens' CreateSlotType (Maybe CompositeSlotTypeSetting)
- createSlotType_description :: Lens' CreateSlotType (Maybe Text)
- createSlotType_externalSourceSetting :: Lens' CreateSlotType (Maybe ExternalSourceSetting)
- createSlotType_parentSlotTypeSignature :: Lens' CreateSlotType (Maybe Text)
- createSlotType_slotTypeValues :: Lens' CreateSlotType (Maybe (NonEmpty SlotTypeValue))
- createSlotType_valueSelectionSetting :: Lens' CreateSlotType (Maybe SlotValueSelectionSetting)
- createSlotType_slotTypeName :: Lens' CreateSlotType Text
- createSlotType_botId :: Lens' CreateSlotType Text
- createSlotType_botVersion :: Lens' CreateSlotType Text
- createSlotType_localeId :: Lens' CreateSlotType Text
- data CreateSlotTypeResponse = CreateSlotTypeResponse' {
- botId :: Maybe Text
- botVersion :: Maybe Text
- compositeSlotTypeSetting :: Maybe CompositeSlotTypeSetting
- creationDateTime :: Maybe POSIX
- description :: Maybe Text
- externalSourceSetting :: Maybe ExternalSourceSetting
- localeId :: Maybe Text
- parentSlotTypeSignature :: Maybe Text
- slotTypeId :: Maybe Text
- slotTypeName :: Maybe Text
- slotTypeValues :: Maybe (NonEmpty SlotTypeValue)
- valueSelectionSetting :: Maybe SlotValueSelectionSetting
- httpStatus :: Int
- newCreateSlotTypeResponse :: Int -> CreateSlotTypeResponse
- createSlotTypeResponse_botId :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_botVersion :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_compositeSlotTypeSetting :: Lens' CreateSlotTypeResponse (Maybe CompositeSlotTypeSetting)
- createSlotTypeResponse_creationDateTime :: Lens' CreateSlotTypeResponse (Maybe UTCTime)
- createSlotTypeResponse_description :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_externalSourceSetting :: Lens' CreateSlotTypeResponse (Maybe ExternalSourceSetting)
- createSlotTypeResponse_localeId :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_slotTypeId :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_slotTypeName :: Lens' CreateSlotTypeResponse (Maybe Text)
- createSlotTypeResponse_slotTypeValues :: Lens' CreateSlotTypeResponse (Maybe (NonEmpty SlotTypeValue))
- createSlotTypeResponse_valueSelectionSetting :: Lens' CreateSlotTypeResponse (Maybe SlotValueSelectionSetting)
- createSlotTypeResponse_httpStatus :: Lens' CreateSlotTypeResponse Int
Creating a Request
data CreateSlotType Source #
See: newCreateSlotType
smart constructor.
CreateSlotType' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateSlotType |
Create a value of CreateSlotType
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:
CreateSlotType
, createSlotType_compositeSlotTypeSetting
- Specifications for a composite slot type.
CreateSlotType
, createSlotType_description
- A description of the slot type. Use the description to help identify the
slot type in lists.
CreateSlotType
, createSlotType_externalSourceSetting
- Sets the type of external information used to create the slot type.
CreateSlotType
, createSlotType_parentSlotTypeSignature
- The built-in slot type used as a parent of this slot type. When you
define a parent slot type, the new slot type has the configuration of
the parent slot type.
Only AMAZON.AlphaNumeric
is supported.
CreateSlotType
, createSlotType_slotTypeValues
- A list of SlotTypeValue
objects that defines the values that the slot
type can take. Each value can have a list of synonyms, additional values
that help train the machine learning model about the values that it
resolves for a slot.
CreateSlotType
, createSlotType_valueSelectionSetting
- Determines the strategy that Amazon Lex uses to select a value from the
list of possible values. The field can be set to one of the following
values:
OriginalValue
- Returns the value entered by the user, if the user value is similar to the slot value.TopResolution
- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the valueSelectionSetting
parameter, the default
is OriginalValue
.
CreateSlotType
, createSlotType_slotTypeName
- The name for the slot. A slot type name must be unique within the
account.
CreateSlotType
, createSlotType_botId
- The identifier of the bot associated with this slot type.
CreateSlotType
, createSlotType_botVersion
- The identifier of the bot version associated with this slot type.
CreateSlotType
, createSlotType_localeId
- The identifier of the language and locale that the slot type will be
used in. The string must match one of the supported locales. All of the
bots, intents, and slots used by the slot type must have the same
locale. For more information, see
Supported languages.
Request Lenses
createSlotType_compositeSlotTypeSetting :: Lens' CreateSlotType (Maybe CompositeSlotTypeSetting) Source #
Specifications for a composite slot type.
createSlotType_description :: Lens' CreateSlotType (Maybe Text) Source #
A description of the slot type. Use the description to help identify the slot type in lists.
createSlotType_externalSourceSetting :: Lens' CreateSlotType (Maybe ExternalSourceSetting) Source #
Sets the type of external information used to create the slot type.
createSlotType_parentSlotTypeSignature :: Lens' CreateSlotType (Maybe Text) Source #
The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.
Only AMAZON.AlphaNumeric
is supported.
createSlotType_slotTypeValues :: Lens' CreateSlotType (Maybe (NonEmpty SlotTypeValue)) Source #
A list of SlotTypeValue
objects that defines the values that the slot
type can take. Each value can have a list of synonyms, additional values
that help train the machine learning model about the values that it
resolves for a slot.
createSlotType_valueSelectionSetting :: Lens' CreateSlotType (Maybe SlotValueSelectionSetting) Source #
Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
OriginalValue
- Returns the value entered by the user, if the user value is similar to the slot value.TopResolution
- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the valueSelectionSetting
parameter, the default
is OriginalValue
.
createSlotType_slotTypeName :: Lens' CreateSlotType Text Source #
The name for the slot. A slot type name must be unique within the account.
createSlotType_botId :: Lens' CreateSlotType Text Source #
The identifier of the bot associated with this slot type.
createSlotType_botVersion :: Lens' CreateSlotType Text Source #
The identifier of the bot version associated with this slot type.
createSlotType_localeId :: Lens' CreateSlotType Text Source #
The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.
Destructuring the Response
data CreateSlotTypeResponse Source #
See: newCreateSlotTypeResponse
smart constructor.
CreateSlotTypeResponse' | |
|
Instances
newCreateSlotTypeResponse Source #
Create a value of CreateSlotTypeResponse
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:
CreateSlotType
, createSlotTypeResponse_botId
- The identifier for the bot associated with the slot type.
CreateSlotType
, createSlotTypeResponse_botVersion
- The version of the bot associated with the slot type.
CreateSlotType
, createSlotTypeResponse_compositeSlotTypeSetting
- Specifications for a composite slot type.
CreateSlotTypeResponse
, createSlotTypeResponse_creationDateTime
- A timestamp of the date and time that the slot type was created.
CreateSlotType
, createSlotTypeResponse_description
- The description specified for the slot type.
CreateSlotType
, createSlotTypeResponse_externalSourceSetting
- The type of external information used to create the slot type.
CreateSlotType
, createSlotTypeResponse_localeId
- The specified language and local specified for the slot type.
CreateSlotType
, createSlotTypeResponse_parentSlotTypeSignature
- The signature of the base slot type specified for the slot type.
CreateSlotTypeResponse
, createSlotTypeResponse_slotTypeId
- The unique identifier assigned to the slot type. Use this to identify
the slot type in the UpdateSlotType
and DeleteSlotType
operations.
CreateSlotType
, createSlotTypeResponse_slotTypeName
- The name specified for the slot type.
CreateSlotType
, createSlotTypeResponse_slotTypeValues
- The list of values that the slot type can assume.
CreateSlotType
, createSlotTypeResponse_valueSelectionSetting
- The strategy that Amazon Lex uses to select a value from the list of
possible values.
$sel:httpStatus:CreateSlotTypeResponse'
, createSlotTypeResponse_httpStatus
- The response's http status code.
Response Lenses
createSlotTypeResponse_botId :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The identifier for the bot associated with the slot type.
createSlotTypeResponse_botVersion :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The version of the bot associated with the slot type.
createSlotTypeResponse_compositeSlotTypeSetting :: Lens' CreateSlotTypeResponse (Maybe CompositeSlotTypeSetting) Source #
Specifications for a composite slot type.
createSlotTypeResponse_creationDateTime :: Lens' CreateSlotTypeResponse (Maybe UTCTime) Source #
A timestamp of the date and time that the slot type was created.
createSlotTypeResponse_description :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The description specified for the slot type.
createSlotTypeResponse_externalSourceSetting :: Lens' CreateSlotTypeResponse (Maybe ExternalSourceSetting) Source #
The type of external information used to create the slot type.
createSlotTypeResponse_localeId :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The specified language and local specified for the slot type.
createSlotTypeResponse_parentSlotTypeSignature :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The signature of the base slot type specified for the slot type.
createSlotTypeResponse_slotTypeId :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The unique identifier assigned to the slot type. Use this to identify
the slot type in the UpdateSlotType
and DeleteSlotType
operations.
createSlotTypeResponse_slotTypeName :: Lens' CreateSlotTypeResponse (Maybe Text) Source #
The name specified for the slot type.
createSlotTypeResponse_slotTypeValues :: Lens' CreateSlotTypeResponse (Maybe (NonEmpty SlotTypeValue)) Source #
The list of values that the slot type can assume.
createSlotTypeResponse_valueSelectionSetting :: Lens' CreateSlotTypeResponse (Maybe SlotValueSelectionSetting) Source #
The strategy that Amazon Lex uses to select a value from the list of possible values.
createSlotTypeResponse_httpStatus :: Lens' CreateSlotTypeResponse Int Source #
The response's http status code.