v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

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

delete/policy/{resourceArn}/

Path parameters

resourceArnstring required

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

Query parameters

expectedRevisionIdstring
<p>The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception</p> <p>If you don't specify a revision ID, Amazon Lex will delete the current policy.</p>

Response

Success

resourceArnstring

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

revisionIdstring

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.