Class: AWSCDK::EC2::CfnEC2Fleet::IAMInstanceProfileSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::IAMInstanceProfileSpecificationProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
Instance Attribute Summary collapse
- #arn ⇒ String? readonly
- #name ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, name: nil) ⇒ IAMInstanceProfileSpecificationProperty
constructor
A new instance of IAMInstanceProfileSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, name: nil) ⇒ IAMInstanceProfileSpecificationProperty
Returns a new instance of IAMInstanceProfileSpecificationProperty.
1526 1527 1528 1529 1530 1531 |
# File 'ec2/cfn_ec2_fleet.rb', line 1526 def initialize(arn: nil, name: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#arn ⇒ String? (readonly)
1535 1536 1537 |
# File 'ec2/cfn_ec2_fleet.rb', line 1535 def arn @arn end |
#name ⇒ String? (readonly)
1538 1539 1540 |
# File 'ec2/cfn_ec2_fleet.rb', line 1538 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1540 1541 1542 1543 1544 1545 |
# File 'ec2/cfn_ec2_fleet.rb', line 1540 def self.jsii_properties { :arn => "arn", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1547 1548 1549 1550 1551 1552 1553 1554 |
# File 'ec2/cfn_ec2_fleet.rb', line 1547 def to_jsii result = {} result.merge!({ "arn" => @arn, "name" => @name, }) result.compact end |