Class: AWSCDK::S3Tables::CfnTablePolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Tables::CfnTablePolicyProps
- Defined in:
- s3_tables/cfn_table_policy_props.rb
Overview
Properties for defining a CfnTablePolicy.
Instance Attribute Summary collapse
-
#resource_policy ⇒ Object
readonly
The
JSONthat defines the policy. -
#table_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_policy:, table_arn:) ⇒ CfnTablePolicyProps
constructor
A new instance of CfnTablePolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_policy:, table_arn:) ⇒ CfnTablePolicyProps
Returns a new instance of CfnTablePolicyProps.
11 12 13 14 15 16 |
# File 's3_tables/cfn_table_policy_props.rb', line 11 def initialize(resource_policy:, table_arn:) @resource_policy = resource_policy Jsii::Type.check_type(@resource_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "resourcePolicy") @table_arn = table_arn Jsii::Type.check_type(@table_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableArn") end |
Instance Attribute Details
#resource_policy ⇒ Object (readonly)
The JSON that defines the policy.
22 23 24 |
# File 's3_tables/cfn_table_policy_props.rb', line 22 def resource_policy @resource_policy end |
#table_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the table.
27 28 29 |
# File 's3_tables/cfn_table_policy_props.rb', line 27 def table_arn @table_arn end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 's3_tables/cfn_table_policy_props.rb', line 29 def self.jsii_properties { :resource_policy => "resourcePolicy", :table_arn => "tableArn", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 's3_tables/cfn_table_policy_props.rb', line 36 def to_jsii result = {} result.merge!({ "resourcePolicy" => @resource_policy, "tableArn" => @table_arn, }) result.compact end |