Class: Aws::RedshiftServerless::Types::PutResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-redshiftserverless/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policyString

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

‘“”2012-10-17“, ”Statement“ : [{ ”Sid“: ”AllowUserRestoreFromSnapshot“, ”Principal“:{”AWS“: [”739247239426“], ”Action“:

“redshift-serverless:RestoreFromSnapshot”

, “Effect”:

“Allow” }]}“‘

Returns:

  • (String)


2239
2240
2241
2242
2243
2244
# File 'lib/aws-sdk-redshiftserverless/types.rb', line 2239

class PutResourcePolicyRequest < Struct.new(
  :policy,
  :resource_arn)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnString

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

Returns:

  • (String)


2239
2240
2241
2242
2243
2244
# File 'lib/aws-sdk-redshiftserverless/types.rb', line 2239

class PutResourcePolicyRequest < Struct.new(
  :policy,
  :resource_arn)
  SENSITIVE = []
  include Aws::Structure
end