Class: AWSCDK::S3Tables::CfnTableBucketPolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_tables/cfn_table_bucket_policy_props.rb

Overview

Properties for defining a CfnTableBucketPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_policy:, table_bucket_arn:) ⇒ CfnTableBucketPolicyProps

Returns a new instance of CfnTableBucketPolicyProps.

Parameters:

  • resource_policy (Object)

    The bucket policy JSON for the table bucket.

  • table_bucket_arn (String)

    The Amazon Resource Name (ARN) of the table bucket.



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_policyObject (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_arnString (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_propertiesObject



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_jsiiObject



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