libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.DeleteSlotType

Description

Deletes all versions of the slot type, including the $LATEST version. To delete a specific version of the slot type, use the DeleteSlotTypeVersion operation.

You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.

If you get the ResourceInUseException exception, the exception provides an example reference that shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until the slot type has no references and the DeleteSlotType call is successful.

This operation requires permission for the lex:DeleteSlotType action.

Synopsis

Creating a Request

data DeleteSlotType Source #

See: newDeleteSlotType smart constructor.

Constructors

DeleteSlotType' 

Fields

  • name :: Text

    The name of the slot type. The name is case sensitive.

Instances

Instances details
Eq DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Read DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Show DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Generic DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Associated Types

type Rep DeleteSlotType :: Type -> Type #

NFData DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Methods

rnf :: DeleteSlotType -> () #

Hashable DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

AWSRequest DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Associated Types

type AWSResponse DeleteSlotType #

ToHeaders DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

ToPath DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

ToQuery DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

type Rep DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

type Rep DeleteSlotType = D1 ('MetaData "DeleteSlotType" "Amazonka.LexModels.DeleteSlotType" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "DeleteSlotType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteSlotType Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

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:name:DeleteSlotType', deleteSlotType_name - The name of the slot type. The name is case sensitive.

Request Lenses

deleteSlotType_name :: Lens' DeleteSlotType Text Source #

The name of the slot type. The name is case sensitive.

Destructuring the Response

data DeleteSlotTypeResponse Source #

See: newDeleteSlotTypeResponse smart constructor.

Instances

Instances details
Eq DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Read DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Show DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Generic DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Associated Types

type Rep DeleteSlotTypeResponse :: Type -> Type #

NFData DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

Methods

rnf :: DeleteSlotTypeResponse -> () #

type Rep DeleteSlotTypeResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteSlotType

type Rep DeleteSlotTypeResponse = D1 ('MetaData "DeleteSlotTypeResponse" "Amazonka.LexModels.DeleteSlotType" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" '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.