Class: AWSCDK::Interfaces::AWSEntityresolution::PolicyStatementReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_entityresolution/policy_statement_reference.rb

Overview

A reference to a PolicyStatement resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_statement_arn:, statement_id:) ⇒ PolicyStatementReference

Returns a new instance of PolicyStatementReference.

Parameters:

  • policy_statement_arn (String)

    The Arn of the PolicyStatement resource.

  • statement_id (String)

    The StatementId of the PolicyStatement resource.



9
10
11
12
13
14
# File 'interfaces/aws_entityresolution/policy_statement_reference.rb', line 9

def initialize(policy_statement_arn:, statement_id:)
  @policy_statement_arn = policy_statement_arn
  Jsii::Type.check_type(@policy_statement_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyStatementArn")
  @statement_id = statement_id
  Jsii::Type.check_type(@statement_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statementId")
end

Instance Attribute Details

#policy_statement_arnString (readonly)

The Arn of the PolicyStatement resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_entityresolution/policy_statement_reference.rb', line 19

def policy_statement_arn
  @policy_statement_arn
end

#statement_idString (readonly)

The StatementId of the PolicyStatement resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_entityresolution/policy_statement_reference.rb', line 23

def statement_id
  @statement_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_entityresolution/policy_statement_reference.rb', line 25

def self.jsii_properties
  {
    :policy_statement_arn => "policyStatementArn",
    :statement_id => "statementId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_entityresolution/policy_statement_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "policyStatementArn" => @policy_statement_arn,
    "statementId" => @statement_id,
  })
  result.compact
end