Class: AWSCDK::S3Tables::CfnTablePolicyProps

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

Overview

Properties for defining a CfnTablePolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_policy:, table_arn:) ⇒ CfnTablePolicyProps

Returns a new instance of CfnTablePolicyProps.

Parameters:

  • resource_policy (Object)

    The JSON that defines the policy.

  • table_arn (String)

    The Amazon Resource Name (ARN) of the table.



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



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_jsiiObject



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