Show / Hide Table of Contents

Interface CfnEC2Fleet.IFleetLaunchTemplateConfigRequestProperty

Specifies a launch template and overrides for an EC2 Fleet.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnEC2Fleet.IFleetLaunchTemplateConfigRequestProperty
Syntax (vb)
Public Interface CfnEC2Fleet.IFleetLaunchTemplateConfigRequestProperty
Remarks

FleetLaunchTemplateConfigRequest is a property of the AWS::EC2::EC2Fleet resource.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.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 fleetLaunchTemplateConfigRequestProperty = new FleetLaunchTemplateConfigRequestProperty {
                 LaunchTemplateSpecification = new FleetLaunchTemplateSpecificationRequestProperty {
                     Version = "version",

                     // the properties below are optional
                     LaunchTemplateId = "launchTemplateId",
                     LaunchTemplateName = "launchTemplateName"
                 },
                 Overrides = new [] { new FleetLaunchTemplateOverridesRequestProperty {
                     AvailabilityZone = "availabilityZone",
                     AvailabilityZoneId = "availabilityZoneId",
                     BlockDeviceMappings = new [] { new BlockDeviceMappingProperty {
                         DeviceName = "deviceName",
                         Ebs = new EbsBlockDeviceProperty {
                             DeleteOnTermination = false,
                             Encrypted = false,
                             Iops = 123,
                             KmsKeyId = "kmsKeyId",
                             SnapshotId = "snapshotId",
                             VolumeSize = 123,
                             VolumeType = "volumeType"
                         },
                         NoDevice = "noDevice",
                         VirtualName = "virtualName"
                     } },
                     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,
                         RequireEncryptionInTransit = false,
                         RequireHibernateSupport = false,
                         SpotMaxPricePercentageOverLowestPrice = 123,
                         TotalLocalStorageGb = new TotalLocalStorageGBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         VCpuCount = new VCpuCountRangeRequestProperty {
                             Max = 123,
                             Min = 123
                         }
                     },
                     InstanceType = "instanceType",
                     MaxPrice = "maxPrice",
                     Placement = new PlacementProperty {
                         Affinity = "affinity",
                         AvailabilityZone = "availabilityZone",
                         GroupName = "groupName",
                         HostId = "hostId",
                         HostResourceGroupArn = "hostResourceGroupArn",
                         PartitionNumber = 123,
                         SpreadDomain = "spreadDomain",
                         Tenancy = "tenancy"
                     },
                     Priority = 123,
                     SubnetId = "subnetId",
                     WeightedCapacity = 123
                 } }
             };

Synopsis

Properties

LaunchTemplateSpecification

The launch template to use.

Overrides

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

Properties

LaunchTemplateSpecification

The launch template to use.

object? LaunchTemplateSpecification { get; }
Property Value

object

Remarks

You must specify either the launch template ID or launch template name in the request.

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

Type union: either IResolvable or CfnEC2Fleet.IFleetLaunchTemplateSpecificationRequestProperty

Overrides

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

object? Overrides { get; }
Property Value

object

Remarks

For fleets of type request and maintain , a maximum of 300 items is allowed across all launch templates.

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

Type union: either IResolvable or (either IResolvable or CfnEC2Fleet.IFleetLaunchTemplateOverridesRequestProperty)[]

Back to top Generated by DocFX