Interface CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
Specifies the launch template to be used by the Spot Fleet request for configuring Amazon EC2 instances.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
Syntax (vb)
Public Interface CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
Remarks
You must specify the following:
FleetLaunchTemplateSpecification is a property of the AWS::EC2::SpotFleet resource.
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 fleetLaunchTemplateSpecificationProperty = new FleetLaunchTemplateSpecificationProperty {
Version = "version",
// the properties below are optional
LaunchTemplateId = "launchTemplateId",
LaunchTemplateName = "launchTemplateName"
};
Synopsis
Properties
| LaunchTemplateId | The ID of the launch template. |
| LaunchTemplateName | The name of the launch template. |
| Version | The version number of the launch template. |
Properties
LaunchTemplateId
The ID of the launch template.
string? LaunchTemplateId { get; }
Property Value
Remarks
You must specify the LaunchTemplateId or the LaunchTemplateName , but not both.
LaunchTemplateName
The name of the launch template.
string? LaunchTemplateName { get; }
Property Value
Remarks
You must specify the LaunchTemplateName or the LaunchTemplateId , but not both.
Version
The version number of the launch template.
string Version { get; }
Property Value
Remarks
Specifying $Latest or $Default for the template version number is not supported. However, you can specify LatestVersionNumber or DefaultVersionNumber using the Fn::GetAtt intrinsic function. For more information, see Fn::GetAtt .