Show / Hide Table of Contents

Class CfnSpotFleet.LaunchTemplateConfigProperty

Specifies a launch template and overrides.

Inheritance
object
CfnSpotFleet.LaunchTemplateConfigProperty
Implements
CfnSpotFleet.ILaunchTemplateConfigProperty
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.LaunchTemplateConfigProperty : CfnSpotFleet.ILaunchTemplateConfigProperty
Syntax (vb)
Public Class CfnSpotFleet.LaunchTemplateConfigProperty Implements CfnSpotFleet.ILaunchTemplateConfigProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.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 launchTemplateConfigProperty = new LaunchTemplateConfigProperty {
                 LaunchTemplateSpecification = new FleetLaunchTemplateSpecificationProperty {
                     Version = "version",

                     // the properties below are optional
                     LaunchTemplateId = "launchTemplateId",
                     LaunchTemplateName = "launchTemplateName"
                 },
                 Overrides = new [] { new LaunchTemplateOverridesProperty {
                     AvailabilityZone = "availabilityZone",
                     InstanceRequirements = new InstanceRequirementsRequestProperty {
                         AcceleratorCount = new AcceleratorCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorManufacturers = new [] { "acceleratorManufacturers" },
                         AcceleratorNames = new [] { "acceleratorNames" },
                         AcceleratorTotalMemoryMiB = new AcceleratorTotalMemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorTypes = new [] { "acceleratorTypes" },
                         AllowedInstanceTypes = new [] { "allowedInstanceTypes" },
                         BareMetal = "bareMetal",
                         BaselineEbsBandwidthMbps = new BaselineEbsBandwidthMbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         BaselinePerformanceFactors = new BaselinePerformanceFactorsRequestProperty {
                             Cpu = new CpuPerformanceFactorRequestProperty {
                                 References = new [] { new PerformanceFactorReferenceRequestProperty {
                                     InstanceFamily = "instanceFamily"
                                 } }
                             }
                         },
                         BurstablePerformance = "burstablePerformance",
                         CpuManufacturers = new [] { "cpuManufacturers" },
                         ExcludedInstanceTypes = new [] { "excludedInstanceTypes" },
                         InstanceGenerations = new [] { "instanceGenerations" },
                         LocalStorage = "localStorage",
                         LocalStorageTypes = new [] { "localStorageTypes" },
                         MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123,
                         MemoryGiBPerVCpu = new MemoryGiBPerVCpuRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         MemoryMiB = new MemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkBandwidthGbps = new NetworkBandwidthGbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkInterfaceCount = new NetworkInterfaceCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         OnDemandMaxPricePercentageOverLowestPrice = 123,
                         RequireHibernateSupport = false,
                         SpotMaxPricePercentageOverLowestPrice = 123,
                         TotalLocalStorageGb = new TotalLocalStorageGBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         VCpuCount = new VCpuCountRangeRequestProperty {
                             Max = 123,
                             Min = 123
                         }
                     },
                     InstanceType = "instanceType",
                     Priority = 123,
                     SpotPrice = "spotPrice",
                     SubnetId = "subnetId",
                     WeightedCapacity = 123
                 } }
             };

Synopsis

Constructors

LaunchTemplateConfigProperty()

Specifies a launch template and overrides.

Properties

LaunchTemplateSpecification

The launch template to use.

Overrides

Any parameters that you specify override the same parameters in the launch template.

Constructors

LaunchTemplateConfigProperty()

Specifies a launch template and overrides.

public LaunchTemplateConfigProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.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 launchTemplateConfigProperty = new LaunchTemplateConfigProperty {
                 LaunchTemplateSpecification = new FleetLaunchTemplateSpecificationProperty {
                     Version = "version",

                     // the properties below are optional
                     LaunchTemplateId = "launchTemplateId",
                     LaunchTemplateName = "launchTemplateName"
                 },
                 Overrides = new [] { new LaunchTemplateOverridesProperty {
                     AvailabilityZone = "availabilityZone",
                     InstanceRequirements = new InstanceRequirementsRequestProperty {
                         AcceleratorCount = new AcceleratorCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorManufacturers = new [] { "acceleratorManufacturers" },
                         AcceleratorNames = new [] { "acceleratorNames" },
                         AcceleratorTotalMemoryMiB = new AcceleratorTotalMemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorTypes = new [] { "acceleratorTypes" },
                         AllowedInstanceTypes = new [] { "allowedInstanceTypes" },
                         BareMetal = "bareMetal",
                         BaselineEbsBandwidthMbps = new BaselineEbsBandwidthMbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         BaselinePerformanceFactors = new BaselinePerformanceFactorsRequestProperty {
                             Cpu = new CpuPerformanceFactorRequestProperty {
                                 References = new [] { new PerformanceFactorReferenceRequestProperty {
                                     InstanceFamily = "instanceFamily"
                                 } }
                             }
                         },
                         BurstablePerformance = "burstablePerformance",
                         CpuManufacturers = new [] { "cpuManufacturers" },
                         ExcludedInstanceTypes = new [] { "excludedInstanceTypes" },
                         InstanceGenerations = new [] { "instanceGenerations" },
                         LocalStorage = "localStorage",
                         LocalStorageTypes = new [] { "localStorageTypes" },
                         MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123,
                         MemoryGiBPerVCpu = new MemoryGiBPerVCpuRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         MemoryMiB = new MemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkBandwidthGbps = new NetworkBandwidthGbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkInterfaceCount = new NetworkInterfaceCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         OnDemandMaxPricePercentageOverLowestPrice = 123,
                         RequireHibernateSupport = false,
                         SpotMaxPricePercentageOverLowestPrice = 123,
                         TotalLocalStorageGb = new TotalLocalStorageGBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         VCpuCount = new VCpuCountRangeRequestProperty {
                             Max = 123,
                             Min = 123
                         }
                     },
                     InstanceType = "instanceType",
                     Priority = 123,
                     SpotPrice = "spotPrice",
                     SubnetId = "subnetId",
                     WeightedCapacity = 123
                 } }
             };

Properties

LaunchTemplateSpecification

The launch template to use.

public object? LaunchTemplateSpecification { get; set; }
Property Value

object

Remarks

Make sure that the launch template does not contain the NetworkInterfaceId parameter because you can't specify a network interface ID in a Spot Fleet.

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

Overrides

Any parameters that you specify override the same parameters in the launch template.

public object? Overrides { get; set; }
Property Value

object

Remarks

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

Implements

CfnSpotFleet.ILaunchTemplateConfigProperty
Back to top Generated by DocFX