redshiftserverless_put_resource_policy: Creates or updates a resource policy

View source: R/redshiftserverless_operations.R

redshiftserverless_put_resource_policyR Documentation

Creates or updates a resource policy

Description

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

See https://www.paws-r-sdk.com/docs/redshiftserverless_put_resource_policy/ for full documentation.

Usage

redshiftserverless_put_resource_policy(policy, resourceArn)

Arguments

policy

[required] The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

⁠"{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"⁠

resourceArn

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


paws.database documentation built on Sept. 12, 2024, 6:37 a.m.