Class: AWSCDK::IAM::InstanceProfileAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::InstanceProfileAttributes
- Defined in:
- iam/instance_profile_attributes.rb
Overview
Attributes of an Instance Profile.
Instance Attribute Summary collapse
-
#instance_profile_arn ⇒ String
readonly
The ARN of the InstanceProfile.
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
The role associated with the InstanceProfile.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_profile_arn:, role: nil) ⇒ InstanceProfileAttributes
constructor
A new instance of InstanceProfileAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_profile_arn:, role: nil) ⇒ InstanceProfileAttributes
Returns a new instance of InstanceProfileAttributes.
9 10 11 12 13 14 |
# File 'iam/instance_profile_attributes.rb', line 9 def initialize(instance_profile_arn:, role: nil) @instance_profile_arn = instance_profile_arn Jsii::Type.check_type(@instance_profile_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceProfileArn") @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? end |
Instance Attribute Details
#instance_profile_arn ⇒ String (readonly)
The ARN of the InstanceProfile.
Format: arn:
21 22 23 |
# File 'iam/instance_profile_attributes.rb', line 21 def instance_profile_arn @instance_profile_arn end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - no role
The role associated with the InstanceProfile.
26 27 28 |
# File 'iam/instance_profile_attributes.rb', line 26 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'iam/instance_profile_attributes.rb', line 28 def self.jsii_properties { :instance_profile_arn => "instanceProfileArn", :role => "role", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'iam/instance_profile_attributes.rb', line 35 def to_jsii result = {} result.merge!({ "instanceProfileArn" => @instance_profile_arn, "role" => @role, }) result.compact end |