Class: AWSCDK::EC2::CfnSpotFleet::TargetGroupsConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::TargetGroupsConfigProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
Describes the target groups to attach to a Spot Fleet.
Spot Fleet registers the running Spot Instances with these target groups.
Instance Attribute Summary collapse
-
#target_groups ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EC2::CfnSpotFleet::TargetGroupProperty>
readonly
One or more target groups.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_groups:) ⇒ TargetGroupsConfigProperty
constructor
A new instance of TargetGroupsConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_groups:) ⇒ TargetGroupsConfigProperty
Returns a new instance of TargetGroupsConfigProperty.
3125 3126 3127 3128 |
# File 'ec2/cfn_spot_fleet.rb', line 3125 def initialize(target_groups:) @target_groups = target_groups Jsii::Type.check_type(@target_groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmblNwb3RGbGVldC5UYXJnZXRHcm91cFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "targetGroups") end |
Instance Attribute Details
#target_groups ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EC2::CfnSpotFleet::TargetGroupProperty> (readonly)
One or more target groups.
3134 3135 3136 |
# File 'ec2/cfn_spot_fleet.rb', line 3134 def target_groups @target_groups end |
Class Method Details
.jsii_properties ⇒ Object
3136 3137 3138 3139 3140 |
# File 'ec2/cfn_spot_fleet.rb', line 3136 def self.jsii_properties { :target_groups => "targetGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
3142 3143 3144 3145 3146 3147 3148 |
# File 'ec2/cfn_spot_fleet.rb', line 3142 def to_jsii result = {} result.merge!({ "targetGroups" => @target_groups, }) result.compact end |