Class: AWSCDK::Interfaces::AWSIAM::PolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIAM::PolicyReference
- Defined in:
- interfaces/awsiam/policy_reference.rb
Overview
A reference to a Policy resource.
Instance Attribute Summary collapse
-
#policy_id ⇒ String
readonly
The Id of the Policy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_id:) ⇒ PolicyReference
constructor
A new instance of PolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_id:) ⇒ PolicyReference
Returns a new instance of PolicyReference.
8 9 10 11 |
# File 'interfaces/awsiam/policy_reference.rb', line 8 def initialize(policy_id:) @policy_id = policy_id Jsii::Type.check_type(@policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyId") end |
Instance Attribute Details
#policy_id ⇒ String (readonly)
The Id of the Policy resource.
16 17 18 |
# File 'interfaces/awsiam/policy_reference.rb', line 16 def policy_id @policy_id end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/awsiam/policy_reference.rb', line 18 def self.jsii_properties { :policy_id => "policyId", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/awsiam/policy_reference.rb', line 24 def to_jsii result = {} result.merge!({ "policyId" => @policy_id, }) result.compact end |