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

Description

Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception.

Synopsis

Creating a Request

data DeleteResourcePolicyStatement Source #

See: newDeleteResourcePolicyStatement smart constructor.

Constructors

DeleteResourcePolicyStatement' 

Fields

  • expectedRevisionId :: Maybe Text

    The identifier of the revision of the policy to delete the statement from. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.

    If you don't specify a revision, Amazon Lex removes the current contents of the statement.

  • resourceArn :: Text

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

  • statementId :: Text

    The name of the statement (SID) to delete from the policy.

Instances

Instances details
ToHeaders DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

ToPath DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

ToQuery DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

AWSRequest DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Generic DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Associated Types

type Rep DeleteResourcePolicyStatement :: Type -> Type #

Read DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Show DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

NFData DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Eq DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Hashable DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

type AWSResponse DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

type Rep DeleteResourcePolicyStatement Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

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

newDeleteResourcePolicyStatement Source #

Create a value of DeleteResourcePolicyStatement 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:DeleteResourcePolicyStatement', deleteResourcePolicyStatement_expectedRevisionId - The identifier of the revision of the policy to delete the statement from. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.

If you don't specify a revision, Amazon Lex removes the current contents of the statement.

DeleteResourcePolicyStatement, deleteResourcePolicyStatement_resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

$sel:statementId:DeleteResourcePolicyStatement', deleteResourcePolicyStatement_statementId - The name of the statement (SID) to delete from the policy.

Request Lenses

deleteResourcePolicyStatement_expectedRevisionId :: Lens' DeleteResourcePolicyStatement (Maybe Text) Source #

The identifier of the revision of the policy to delete the statement from. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.

If you don't specify a revision, Amazon Lex removes the current contents of the statement.

deleteResourcePolicyStatement_resourceArn :: Lens' DeleteResourcePolicyStatement Text Source #

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

deleteResourcePolicyStatement_statementId :: Lens' DeleteResourcePolicyStatement Text Source #

The name of the statement (SID) to delete from the policy.

Destructuring the Response

data DeleteResourcePolicyStatementResponse Source #

Constructors

DeleteResourcePolicyStatementResponse' 

Fields

  • resourceArn :: Maybe Text

    The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy statement was removed 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 DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Read DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Show DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

NFData DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

Eq DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

type Rep DeleteResourcePolicyStatementResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DeleteResourcePolicyStatement

type Rep DeleteResourcePolicyStatementResponse = D1 ('MetaData "DeleteResourcePolicyStatementResponse" "Amazonka.LexV2Models.DeleteResourcePolicyStatement" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DeleteResourcePolicyStatementResponse'" '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))))

newDeleteResourcePolicyStatementResponse Source #

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

DeleteResourcePolicyStatement, deleteResourcePolicyStatementResponse_resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy statement was removed from.

$sel:revisionId:DeleteResourcePolicyStatementResponse', deleteResourcePolicyStatementResponse_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:DeleteResourcePolicyStatementResponse', deleteResourcePolicyStatementResponse_httpStatus - The response's http status code.

Response Lenses

deleteResourcePolicyStatementResponse_resourceArn :: Lens' DeleteResourcePolicyStatementResponse (Maybe Text) Source #

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

deleteResourcePolicyStatementResponse_revisionId :: Lens' DeleteResourcePolicyStatementResponse (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.