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