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