Class CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty
Specifies the launch template to be used by the EC2 Fleet for configuring Amazon EC2 instances.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FleetLaunchTemplateSpecificationRequestProperty : Object, CfnEC2Fleet.IFleetLaunchTemplateSpecificationRequestProperty
Syntax (vb)
Public Class FleetLaunchTemplateSpecificationRequestProperty
Inherits Object
Implements CfnEC2Fleet.IFleetLaunchTemplateSpecificationRequestProperty
Remarks
You must specify the following:
FleetLaunchTemplateSpecificationRequest
is a property of the FleetLaunchTemplateConfigRequest property type.
For information about creating a launch template, see AWS::EC2::LaunchTemplate and Create a launch template in the Amazon EC2 User Guide .
For examples of launch templates, see Examples .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var fleetLaunchTemplateSpecificationRequestProperty = new FleetLaunchTemplateSpecificationRequestProperty {
Version = "version",
// the properties below are optional
LaunchTemplateId = "launchTemplateId",
LaunchTemplateName = "launchTemplateName"
};
Synopsis
Constructors
FleetLaunchTemplateSpecificationRequestProperty() |
Properties
LaunchTemplateId | The ID of the launch template. |
LaunchTemplateName | The name of the launch template. |
Version | The launch template version number, |
Constructors
FleetLaunchTemplateSpecificationRequestProperty()
public FleetLaunchTemplateSpecificationRequestProperty()
Properties
LaunchTemplateId
The ID of the launch template.
public string LaunchTemplateId { get; set; }
Property Value
System.String
Remarks
You must specify the LaunchTemplateId
or the LaunchTemplateName
, but not both.
LaunchTemplateName
The name of the launch template.
public string LaunchTemplateName { get; set; }
Property Value
System.String
Remarks
You must specify the LaunchTemplateName
or the LaunchTemplateId
, but not both.
Version
The launch template version number, $Latest
, or $Default
. You must specify a value, otherwise the request fails.
public string Version { get; set; }
Property Value
System.String
Remarks
If the value is $Latest
, Amazon EC2 uses the latest version of the launch template.
If the value is $Default
, Amazon EC2 uses the default version of the launch template.