Replaces the existing resource policy for a bot or bot alias with a new one. If the policy doesn't exist, Amazon Lex returns an exception.
put/policy/{resourceArn}/
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 update. 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