lexmodelsv2_delete_resource_policy_statement: Deletes a policy statement from a resource policy

View source: R/lexmodelsv2_operations.R

lexmodelsv2_delete_resource_policy_statementR Documentation

Deletes a policy statement from a resource policy

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.

See https://www.paws-r-sdk.com/docs/lexmodelsv2_delete_resource_policy_statement/ for full documentation.

Usage

lexmodelsv2_delete_resource_policy_statement(
  resourceArn,
  statementId,
  expectedRevisionId = NULL
)

Arguments

resourceArn

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

statementId

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

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.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.