Class: AWSCDK::Interfaces::AWSSSM::ResourcePolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSSSM::ResourcePolicyReference
- Defined in:
- interfaces/awsssm/resource_policy_reference.rb
Overview
A reference to a ResourcePolicy resource.
Instance Attribute Summary collapse
-
#policy_id ⇒ String
readonly
The PolicyId of the ResourcePolicy resource.
-
#resource_arn ⇒ String
readonly
The ResourceArn of the ResourcePolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_id:, resource_arn:) ⇒ ResourcePolicyReference
constructor
A new instance of ResourcePolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_id:, resource_arn:) ⇒ ResourcePolicyReference
Returns a new instance of ResourcePolicyReference.
9 10 11 12 13 14 |
# File 'interfaces/awsssm/resource_policy_reference.rb', line 9 def initialize(policy_id:, resource_arn:) @policy_id = policy_id Jsii::Type.check_type(@policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyId") @resource_arn = resource_arn Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn") end |
Instance Attribute Details
#policy_id ⇒ String (readonly)
The PolicyId of the ResourcePolicy resource.
19 20 21 |
# File 'interfaces/awsssm/resource_policy_reference.rb', line 19 def policy_id @policy_id end |
#resource_arn ⇒ String (readonly)
The ResourceArn of the ResourcePolicy resource.
23 24 25 |
# File 'interfaces/awsssm/resource_policy_reference.rb', line 23 def resource_arn @resource_arn end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsssm/resource_policy_reference.rb', line 25 def self.jsii_properties { :policy_id => "policyId", :resource_arn => "resourceArn", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsssm/resource_policy_reference.rb', line 32 def to_jsii result = {} result.merge!({ "policyId" => @policy_id, "resourceArn" => @resource_arn, }) result.compact end |