Class: AWSCDK::EC2::CfnSpotFleet::TargetGroupsConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_groups:) ⇒ TargetGroupsConfigProperty

Returns a new instance of TargetGroupsConfigProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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