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

Description

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

Creating a Request

data CreateSlotType Source #

See: newCreateSlotType smart constructor.

Constructors

CreateSlotType' 

Fields

  • compositeSlotTypeSetting :: Maybe CompositeSlotTypeSetting

    Specifications for a composite slot type.

  • description :: Maybe Text

    A description of the slot type. Use the description to help identify the slot type in lists.

  • externalSourceSetting :: Maybe ExternalSourceSetting

    Sets the type of external information used to create the slot type.

  • parentSlotTypeSignature :: Maybe Text

    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.

  • slotTypeValues :: Maybe (NonEmpty SlotTypeValue)

    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.

  • valueSelectionSetting :: Maybe SlotValueSelectionSetting

    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.

  • slotTypeName :: Text

    The name for the slot. A slot type name must be unique within the account.

  • botId :: Text

    The identifier of the bot associated with this slot type.

  • botVersion :: Text

    The identifier of the bot version associated with this slot type.

  • localeId :: Text

    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.

Instances

Instances details
ToJSON CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

ToHeaders CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

ToPath CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

ToQuery CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

AWSRequest CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Associated Types

type AWSResponse CreateSlotType #

Generic CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Associated Types

type Rep CreateSlotType :: Type -> Type #

Read CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Show CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

NFData CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Methods

rnf :: CreateSlotType -> () #

Eq CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Hashable CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

type AWSResponse CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

type Rep CreateSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

newCreateSlotType Source #

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

Constructors

CreateSlotTypeResponse' 

Fields

Instances

Instances details
Generic CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Associated Types

type Rep CreateSlotTypeResponse :: Type -> Type #

Read CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Show CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

NFData CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

Methods

rnf :: CreateSlotTypeResponse -> () #

Eq CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

type Rep CreateSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.CreateSlotType

type Rep CreateSlotTypeResponse = D1 ('MetaData "CreateSlotTypeResponse" "Amazonka.LexV2Models.CreateSlotType" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "CreateSlotTypeResponse'" '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 "compositeSlotTypeSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CompositeSlotTypeSetting)))) :*: (S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "externalSourceSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExternalSourceSetting))))) :*: ((S1 ('MetaSel ('Just "localeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "parentSlotTypeSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "slotTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "slotTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "slotTypeValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty SlotTypeValue)))) :*: (S1 ('MetaSel ('Just "valueSelectionSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlotValueSelectionSetting)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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_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_valueSelectionSetting :: Lens' CreateSlotTypeResponse (Maybe SlotValueSelectionSetting) Source #

The strategy that Amazon Lex uses to select a value from the list of possible values.