Class: AWSCDK::EC2::CfnSpotFleet::IAMInstanceProfileSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_spot_fleet.rb

Overview

Describes an IAM instance profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil) ⇒ IAMInstanceProfileSpecificationProperty

Returns a new instance of IAMInstanceProfileSpecificationProperty.

Parameters:

  • arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the instance profile.



1110
1111
1112
1113
# File 'ec2/cfn_spot_fleet.rb', line 1110

def initialize(arn: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
end

Instance Attribute Details

#arnString? (readonly)

The Amazon Resource Name (ARN) of the instance profile.



1119
1120
1121
# File 'ec2/cfn_spot_fleet.rb', line 1119

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



1121
1122
1123
1124
1125
# File 'ec2/cfn_spot_fleet.rb', line 1121

def self.jsii_properties
  {
    :arn => "arn",
  }
end

Instance Method Details

#to_jsiiObject



1127
1128
1129
1130
1131
1132
1133
# File 'ec2/cfn_spot_fleet.rb', line 1127

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
  })
  result.compact
end