v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

Gets the resource policy and policy revision for a bot or bot alias.

get/policy/{resourceArn}/

Path parameters

resourceArnstring required

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

Response

Success

resourceArnstring

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

policystring

The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html"> IAM JSON policy reference </a>.

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.