put_resource_policy
Attach an IAM resource policy to a key to grant cross-account access or restrict principals. Provide the key ARN and JSON policy document.
Instructions
Call this when granting cross-account access to a key or restricting which principals may use it.
Attach an IAM resource policy to a key.
Args: resource_arn: Key ARN policy: JSON policy document string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | ||
| resource_arn | Yes |