Show / Hide Table of Contents

Class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty

Specifies the launch template to be used by the Spot Fleet request for configuring Amazon EC2 instances.

Inheritance
object
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty
Implements
CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty : CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
Syntax (vb)
Public Class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty Implements 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 .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html

    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

    Constructors

    FleetLaunchTemplateSpecificationProperty()

    Specifies the launch template to be used by the Spot Fleet request for configuring Amazon EC2 instances.

    Properties

    LaunchTemplateId

    The ID of the launch template.

    LaunchTemplateName

    The name of the launch template.

    Version

    The version number of the launch template.

    Constructors

    FleetLaunchTemplateSpecificationProperty()

    Specifies the launch template to be used by the Spot Fleet request for configuring Amazon EC2 instances.

    public FleetLaunchTemplateSpecificationProperty()
    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 .

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html

      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"
                   };

      Properties

      LaunchTemplateId

      The ID of the launch template.

      public string? LaunchTemplateId { get; set; }
      Property Value

      string

      Remarks

      You must specify the LaunchTemplateId or the LaunchTemplateName , but not both.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplateid

      LaunchTemplateName

      The name of the launch template.

      public string? LaunchTemplateName { get; set; }
      Property Value

      string

      Remarks

      You must specify the LaunchTemplateName or the LaunchTemplateId , but not both.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplatename

      Version

      The version number of the launch template.

      public string Version { get; set; }
      Property Value

      string

      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 .

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-version

      Implements

      CfnSpotFleet.IFleetLaunchTemplateSpecificationProperty
      Back to top Generated by DocFX