Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PutResourcePolicyRequest

import type { PutResourcePolicyRequest } from "https://aws-api.deno.dev/v0.4/services/redshiftserverless.ts?docs=full";
interface PutResourcePolicyRequest {
policy: string;
resourceArn: string;
}

§Properties

§
policy: string
[src]

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: string
[src]

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