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

Description

Removes an existing policy from a bot or bot alias. If the resource doesn't have a policy attached, Amazon Lex returns an exception.

Synopsis

Creating a Request

data DeleteResourcePolicy Source #

See: newDeleteResourcePolicy smart constructor.

Constructors

DeleteResourcePolicy' 

Fields

  • expectedRevisionId :: Maybe Text

    The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception

    If you don't specify a revision ID, Amazon Lex will delete the current policy.

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.

Instances

Instances details
ToHeaders DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

ToPath DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

ToQuery DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

AWSRequest DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Associated Types

type AWSResponse DeleteResourcePolicy #

Generic DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Associated Types

type Rep DeleteResourcePolicy :: Type -> Type #

Read DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Show DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

NFData DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Methods

rnf :: DeleteResourcePolicy -> () #

Eq DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Hashable DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

type AWSResponse DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

type Rep DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

type Rep DeleteResourcePolicy = D1 ('MetaData "DeleteResourcePolicy" "Amazonka.LexV2Models.DeleteResourcePolicy" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedRevisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteResourcePolicy Source #

Create a value of DeleteResourcePolicy 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:expectedRevisionId:DeleteResourcePolicy', deleteResourcePolicy_expectedRevisionId - The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception

If you don't specify a revision ID, Amazon Lex will delete the current policy.

DeleteResourcePolicy, deleteResourcePolicy_resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.

Request Lenses

deleteResourcePolicy_expectedRevisionId :: Lens' DeleteResourcePolicy (Maybe Text) Source #

The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception

If you don't specify a revision ID, Amazon Lex will delete the current policy.

deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #

The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.

Destructuring the Response

data DeleteResourcePolicyResponse Source #

See: newDeleteResourcePolicyResponse smart constructor.

Constructors

DeleteResourcePolicyResponse' 

Fields

  • resourceArn :: Maybe Text

    The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy was deleted from.

  • revisionId :: Maybe Text

    The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Associated Types

type Rep DeleteResourcePolicyResponse :: Type -> Type #

Read DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Show DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

NFData DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

Eq DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

type Rep DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicy

type Rep DeleteResourcePolicyResponse = D1 ('MetaData "DeleteResourcePolicyResponse" "Amazonka.LexV2Models.DeleteResourcePolicy" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteResourcePolicyResponse Source #

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

DeleteResourcePolicy, deleteResourcePolicyResponse_resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy was deleted from.

$sel:revisionId:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_revisionId - The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

$sel:httpStatus:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_httpStatus - The response's http status code.

Response Lenses

deleteResourcePolicyResponse_resourceArn :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy was deleted from.

deleteResourcePolicyResponse_revisionId :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #

The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.