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

Description

Deletes a slot type from a bot locale.

If a slot is using the slot type, Amazon Lex throws a ResourceInUseException exception. To avoid the exception, set the skipResourceInUseCheck parameter to true.

Synopsis

Creating a Request

data DeleteSlotType Source #

See: newDeleteSlotType smart constructor.

Constructors

DeleteSlotType' 

Fields

  • skipResourceInUseCheck :: Maybe Bool

    By default, the DeleteSlotType operations throws a ResourceInUseException exception if you try to delete a slot type used by a slot. Set the skipResourceInUseCheck parameter to true to skip this check and remove the slot type even if a slot uses it.

  • slotTypeId :: Text

    The identifier of the slot type to delete.

  • botId :: Text

    The identifier of the bot associated with the slot type.

  • botVersion :: Text

    The version of the bot associated with the slot type.

  • localeId :: Text

    The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.

Instances

Instances details
ToHeaders DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

ToPath DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

ToQuery DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

AWSRequest DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Associated Types

type AWSResponse DeleteSlotType #

Generic DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Associated Types

type Rep DeleteSlotType :: Type -> Type #

Read DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Show DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

NFData DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Methods

rnf :: DeleteSlotType -> () #

Eq DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Hashable DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

type AWSResponse DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

type Rep DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

type Rep DeleteSlotType = D1 ('MetaData "DeleteSlotType" "Amazonka.LexV2Models.DeleteSlotType" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteSlotType'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "skipResourceInUseCheck") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "slotTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (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)))))

newDeleteSlotType Source #

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

$sel:skipResourceInUseCheck:DeleteSlotType', deleteSlotType_skipResourceInUseCheck - By default, the DeleteSlotType operations throws a ResourceInUseException exception if you try to delete a slot type used by a slot. Set the skipResourceInUseCheck parameter to true to skip this check and remove the slot type even if a slot uses it.

DeleteSlotType, deleteSlotType_slotTypeId - The identifier of the slot type to delete.

DeleteSlotType, deleteSlotType_botId - The identifier of the bot associated with the slot type.

DeleteSlotType, deleteSlotType_botVersion - The version of the bot associated with the slot type.

DeleteSlotType, deleteSlotType_localeId - The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.

Request Lenses

deleteSlotType_skipResourceInUseCheck :: Lens' DeleteSlotType (Maybe Bool) Source #

By default, the DeleteSlotType operations throws a ResourceInUseException exception if you try to delete a slot type used by a slot. Set the skipResourceInUseCheck parameter to true to skip this check and remove the slot type even if a slot uses it.

deleteSlotType_slotTypeId :: Lens' DeleteSlotType Text Source #

The identifier of the slot type to delete.

deleteSlotType_botId :: Lens' DeleteSlotType Text Source #

The identifier of the bot associated with the slot type.

deleteSlotType_botVersion :: Lens' DeleteSlotType Text Source #

The version of the bot associated with the slot type.

deleteSlotType_localeId :: Lens' DeleteSlotType Text Source #

The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.

Destructuring the Response

data DeleteSlotTypeResponse Source #

See: newDeleteSlotTypeResponse smart constructor.

Instances

Instances details
Generic DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Associated Types

type Rep DeleteSlotTypeResponse :: Type -> Type #

Read DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Show DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

NFData DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

Methods

rnf :: DeleteSlotTypeResponse -> () #

Eq DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

type Rep DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteSlotType

type Rep DeleteSlotTypeResponse = D1 ('MetaData "DeleteSlotTypeResponse" "Amazonka.LexV2Models.DeleteSlotType" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteSlotTypeResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteSlotTypeResponse :: DeleteSlotTypeResponse Source #

Create a value of DeleteSlotTypeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.