Class: AWSCDK::Interfaces::AWSOrganizations::ResourcePolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_organizations/resource_policy_reference.rb

Overview

A reference to a ResourcePolicy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_policy_arn:, resource_policy_id:) ⇒ ResourcePolicyReference

Returns a new instance of ResourcePolicyReference.

Parameters:

  • resource_policy_arn (String)

    The ARN of the ResourcePolicy resource.

  • resource_policy_id (String)

    The Id of the ResourcePolicy resource.



9
10
11
12
13
14
# File 'interfaces/aws_organizations/resource_policy_reference.rb', line 9

def initialize(resource_policy_arn:, resource_policy_id:)
  @resource_policy_arn = resource_policy_arn
  Jsii::Type.check_type(@resource_policy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourcePolicyArn")
  @resource_policy_id = resource_policy_id
  Jsii::Type.check_type(@resource_policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourcePolicyId")
end

Instance Attribute Details

#resource_policy_arnString (readonly)

The ARN of the ResourcePolicy resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_organizations/resource_policy_reference.rb', line 19

def resource_policy_arn
  @resource_policy_arn
end

#resource_policy_idString (readonly)

The Id of the ResourcePolicy resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_organizations/resource_policy_reference.rb', line 23

def resource_policy_id
  @resource_policy_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_organizations/resource_policy_reference.rb', line 25

def self.jsii_properties
  {
    :resource_policy_arn => "resourcePolicyArn",
    :resource_policy_id => "resourcePolicyId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "resourcePolicyArn" => @resource_policy_arn,
    "resourcePolicyId" => @resource_policy_id,
  })
  result.compact
end