Class: AWSCDK::EC2::CfnEC2Fleet::FleetLaunchTemplateConfigRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnEC2Fleet::FleetLaunchTemplateConfigRequestProperty
- Defined in:
- ec2/cfn_ec2_fleet.rb
Overview
Specifies a launch template and overrides for an EC2 Fleet.
FleetLaunchTemplateConfigRequest is a property of the AWS::EC2::EC2Fleet resource.
Instance Attribute Summary collapse
-
#launch_template_specification ⇒ AWSCDK::IResolvable, ...
readonly
The launch template to use.
-
#overrides ⇒ AWSCDK::IResolvable, ...
readonly
Any parameters that you specify override the same parameters in the launch template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(launch_template_specification: nil, overrides: nil) ⇒ FleetLaunchTemplateConfigRequestProperty
constructor
A new instance of FleetLaunchTemplateConfigRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(launch_template_specification: nil, overrides: nil) ⇒ FleetLaunchTemplateConfigRequestProperty
Returns a new instance of FleetLaunchTemplateConfigRequestProperty.
1208 1209 1210 1211 1212 1213 |
# File 'ec2/cfn_ec2_fleet.rb', line 1208 def initialize(launch_template_specification: nil, overrides: nil) @launch_template_specification = launch_template_specification.is_a?(Hash) ? ::AWSCDK::EC2::CfnEC2Fleet::FleetLaunchTemplateSpecificationRequestProperty.new(**launch_template_specification.transform_keys(&:to_sym)) : launch_template_specification Jsii::Type.check_type(@launch_template_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuRUMyRmxlZXQuRmxlZXRMYXVuY2hUZW1wbGF0ZVNwZWNpZmljYXRpb25SZXF1ZXN0UHJvcGVydHkifV19fQ==")), "launchTemplateSpecification") unless @launch_template_specification.nil? @overrides = overrides Jsii::Type.check_type(@overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbkVDMkZsZWV0LkZsZWV0TGF1bmNoVGVtcGxhdGVPdmVycmlkZXNSZXF1ZXN0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "overrides") unless @overrides.nil? end |
Instance Attribute Details
#launch_template_specification ⇒ AWSCDK::IResolvable, ... (readonly)
The launch template to use.
You must specify either the launch template ID or launch template name in the request.
1221 1222 1223 |
# File 'ec2/cfn_ec2_fleet.rb', line 1221 def launch_template_specification @launch_template_specification end |
#overrides ⇒ AWSCDK::IResolvable, ... (readonly)
Any parameters that you specify override the same parameters in the launch template.
For fleets of type request and maintain , a maximum of 300 items is allowed across all launch templates.
1228 1229 1230 |
# File 'ec2/cfn_ec2_fleet.rb', line 1228 def overrides @overrides end |
Class Method Details
.jsii_properties ⇒ Object
1230 1231 1232 1233 1234 1235 |
# File 'ec2/cfn_ec2_fleet.rb', line 1230 def self.jsii_properties { :launch_template_specification => "launchTemplateSpecification", :overrides => "overrides", } end |
Instance Method Details
#to_jsii ⇒ Object
1237 1238 1239 1240 1241 1242 1243 1244 |
# File 'ec2/cfn_ec2_fleet.rb', line 1237 def to_jsii result = {} result.merge!({ "launchTemplateSpecification" => @launch_template_specification, "overrides" => @overrides, }) result.compact end |