Class: Aws::RedshiftServerless::Types::PutResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::RedshiftServerless::Types::PutResourcePolicyRequest
- Defined in:
- gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#policy ⇒ String
The policy to create or update.
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
Instance Attribute Details
#policy ⇒ String
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" \}]\}"
2101 2102 2103 2104 2105 2106 |
# File 'gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb', line 2101 class PutResourcePolicyRequest < Struct.new( :policy, :resource_arn) SENSITIVE = [] include Aws::Structure end |
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
2101 2102 2103 2104 2105 2106 |
# File 'gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb', line 2101 class PutResourcePolicyRequest < Struct.new( :policy, :resource_arn) SENSITIVE = [] include Aws::Structure end |