Skip to content

/AWS1/CL_LM2=>DELETERESOURCEPOLICYSTMT()

About DeleteResourcePolicyStatement

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.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/LM2AMAZONRESOURCENAME /AWS1/LM2AMAZONRESOURCENAME

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

IV_STATEMENTID TYPE /AWS1/LM2NAME /AWS1/LM2NAME

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

Optional arguments:

IV_EXPECTEDREVISIONID TYPE /AWS1/LM2REVISIONID /AWS1/LM2REVISIONID

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LM2DELRESRCPLYSTMTRSP /AWS1/CL_LM2DELRESRCPLYSTMTRSP