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