v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465272236.5 KB

Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

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

Headers

X-Amz-Target'RedshiftServerless.PutResourcePolicy' required

Request body

policystring required
<p>The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.</p> <p> <code>"{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"</code> </p>
resourceArnstring required

The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

Response

Success