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