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

Description

Deletes all versions of the intent, including the $LATEST version. To delete a specific version of the intent, use the DeleteIntentVersion operation.

You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.

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

This operation requires permission for the lex:DeleteIntent action.

Synopsis

Creating a Request

data DeleteIntent Source #

See: newDeleteIntent smart constructor.

Constructors

DeleteIntent' 

Fields

  • name :: Text

    The name of the intent. The name is case sensitive.

Instances

Instances details
Eq DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Read DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Show DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Generic DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Associated Types

type Rep DeleteIntent :: Type -> Type #

NFData DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Methods

rnf :: DeleteIntent -> () #

Hashable DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

AWSRequest DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Associated Types

type AWSResponse DeleteIntent #

ToHeaders DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

ToPath DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

ToQuery DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

type Rep DeleteIntent Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

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

Defined in Amazonka.LexModels.DeleteIntent

newDeleteIntent Source #

Create a value of DeleteIntent 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:DeleteIntent', deleteIntent_name - The name of the intent. The name is case sensitive.

Request Lenses

deleteIntent_name :: Lens' DeleteIntent Text Source #

The name of the intent. The name is case sensitive.

Destructuring the Response

data DeleteIntentResponse Source #

See: newDeleteIntentResponse smart constructor.

Constructors

DeleteIntentResponse' 

Instances

Instances details
Eq DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Read DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Show DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Generic DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Associated Types

type Rep DeleteIntentResponse :: Type -> Type #

NFData DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

Methods

rnf :: DeleteIntentResponse -> () #

type Rep DeleteIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.DeleteIntent

type Rep DeleteIntentResponse = D1 ('MetaData "DeleteIntentResponse" "Amazonka.LexModels.DeleteIntent" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "DeleteIntentResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteIntentResponse :: DeleteIntentResponse Source #

Create a value of DeleteIntentResponse with all optional fields omitted.

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