We are excited to announce our new API Documentation.
Protected
Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.
Use a bare-bones client and the command you need to make an API call.
import { RedshiftServerlessClient, PutResourcePolicyCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import// const { RedshiftServerlessClient, PutResourcePolicyCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS importconst client = new RedshiftServerlessClient(config);const input = { // PutResourcePolicyRequest resourceArn: "STRING_VALUE", // required policy: "STRING_VALUE", // required};const command = new PutResourcePolicyCommand(input);const response = await client.send(command);// { // PutResourcePolicyResponse// resourcePolicy: { // ResourcePolicy// resourceArn: "STRING_VALUE",// policy: "STRING_VALUE",// },// };
PutResourcePolicyCommandInput
PutResourcePolicyCommandOutput
input
response
config
ConflictException (client fault)
The submitted action has conflicts.
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
ResourceNotFoundException (client fault)
The resource could not be found.
ServiceQuotaExceededException (client fault)
The service limit was exceeded.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.
Readonly
Static
Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.
Example
Use a bare-bones client and the command you need to make an API call.
Param
PutResourcePolicyCommandInput
Returns
PutResourcePolicyCommandOutput
See
input
shape.response
shape.config
shape.Throws
ConflictException (client fault)
The submitted action has conflicts.
Throws
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
Throws
ResourceNotFoundException (client fault)
The resource could not be found.
Throws
ServiceQuotaExceededException (client fault)
The service limit was exceeded.
Throws
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
Throws
RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.