Class: AWSCDK::Interfaces::AWSOrganizations::ResourcePolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSOrganizations::ResourcePolicyReference
- Defined in:
- interfaces/aws_organizations/resource_policy_reference.rb
Overview
A reference to a ResourcePolicy resource.
Instance Attribute Summary collapse
-
#resource_policy_arn ⇒ String
readonly
The ARN of the ResourcePolicy resource.
-
#resource_policy_id ⇒ String
readonly
The Id of the ResourcePolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_policy_arn:, resource_policy_id:) ⇒ ResourcePolicyReference
constructor
A new instance of ResourcePolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_policy_arn:, resource_policy_id:) ⇒ ResourcePolicyReference
Returns a new instance of ResourcePolicyReference.
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_arn ⇒ String (readonly)
The ARN of the ResourcePolicy resource.
19 20 21 |
# File 'interfaces/aws_organizations/resource_policy_reference.rb', line 19 def resource_policy_arn @resource_policy_arn end |
#resource_policy_id ⇒ String (readonly)
The Id of the ResourcePolicy resource.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |