Adds a new resource policy statement to a bot or bot alias. If a resource policy exists, the statement is added to the current resource policy. If a policy doesn't exist, a new policy is created.
You can't create a resource policy statement that allows cross-account access.
You need to add the CreateResourcePolicy or UpdateResourcePolicy action to the bot role in order to call the API.
post/policy/{resourceArn}/statements/
Path parameters
resourceArnstring required
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
Query parameters
expectedRevisionIdstring
<p>The identifier of the revision of the policy to edit. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.</p> <p>If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.</p>
Request body
Response
Success