v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

Creates or updates a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources. Currently, <code>OpsItemGroup</code> is the only resource that supports Systems Manager resource policies. The resource policy for <code>OpsItemGroup</code> enables Amazon Web Services accounts to view and interact with OpsCenter operational work items (OpsItems).

post/#X-Amz-Target=AmazonSSM.PutResourcePolicy

Headers

X-Amz-Target'AmazonSSM.PutResourcePolicy' required

Request body

ResourceArnstring required

Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

Policystring required

A policy you want to associate with a resource.

PolicyIdstring

The policy ID.

PolicyHashstring

ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.

Response

Success

PolicyIdstring

The policy ID. To update a policy, you must specify <code>PolicyId</code> and <code>PolicyHash</code>.

PolicyHashstring

ID of the current policy version.