Skip to content
v2.278.0

FleetLaunchTemplateConfigRequestProperty Struct ​

Specifies a launch template and overrides for an EC2 Fleet.

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const fleetLaunchTemplateConfigRequestProperty: ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty = {
  launchTemplateSpecification: {
    version: 'version',

    // the properties below are optional
    launchTemplateId: 'launchTemplateId',
    launchTemplateName: 'launchTemplateName',
    launchTemplateSpecificationUserData: 'launchTemplateSpecificationUserData',
  },
  overrides: [{
    availabilityZone: 'availabilityZone',
    availabilityZoneId: 'availabilityZoneId',
    blockDeviceMappings: [{
      deviceName: 'deviceName',
      ebs: {
        deleteOnTermination: false,
        encrypted: false,
        iops: 123,
        kmsKeyId: 'kmsKeyId',
        multiAvailabilityZoneConfiguration: {
          configurationType: 'configurationType',
          standbyAvailabilityZones: [{
            availabilityZone: 'availabilityZone',
            availabilityZoneId: 'availabilityZoneId',
          }],
        },
        snapshotId: 'snapshotId',
        volumeSize: 123,
        volumeType: 'volumeType',
      },
      noDevice: 'noDevice',
      virtualName: 'virtualName',
    }],
    iamInstanceProfile: {
      arn: 'arn',
      name: 'name',
    },
    instanceRequirements: {
      acceleratorCount: {
        max: 123,
        min: 123,
      },
      acceleratorManufacturers: ['acceleratorManufacturers'],
      acceleratorNames: ['acceleratorNames'],
      acceleratorTotalMemoryMiB: {
        max: 123,
        min: 123,
      },
      acceleratorTypes: ['acceleratorTypes'],
      allowedInstanceTypes: ['allowedInstanceTypes'],
      bareMetal: 'bareMetal',
      baselineEbsBandwidthMbps: {
        max: 123,
        min: 123,
      },
      baselinePerformanceFactors: {
        cpu: {
          references: [{
            instanceFamily: 'instanceFamily',
          }],
        },
      },
      burstablePerformance: 'burstablePerformance',
      cpuManufacturers: ['cpuManufacturers'],
      excludedInstanceTypes: ['excludedInstanceTypes'],
      instanceGenerations: ['instanceGenerations'],
      localStorage: 'localStorage',
      localStorageTypes: ['localStorageTypes'],
      maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 123,
      memoryGiBPerVCpu: {
        max: 123,
        min: 123,
      },
      memoryMiB: {
        max: 123,
        min: 123,
      },
      networkBandwidthGbps: {
        max: 123,
        min: 123,
      },
      networkInterfaceCount: {
        max: 123,
        min: 123,
      },
      onDemandMaxPricePercentageOverLowestPrice: 123,
      requireEncryptionInTransit: false,
      requireHibernateSupport: false,
      spotMaxPricePercentageOverLowestPrice: 123,
      totalLocalStorageGb: {
        max: 123,
        min: 123,
      },
      vCpuCount: {
        max: 123,
        min: 123,
      },
    },
    instanceType: 'instanceType',
    keyName: 'keyName',
    maxPrice: 'maxPrice',
    metadataOptions: {
      httpEndpoint: 'httpEndpoint',
      httpPutResponseHopLimit: 123,
      httpTokens: 'httpTokens',
    },
    networkInterfaces: [{
      associatePublicIpAddress: false,
      deleteOnTermination: false,
      description: 'description',
      deviceIndex: 123,
      groups: ['groups'],
      interfaceType: 'interfaceType',
      ipv6AddressCount: 123,
      ipv6Addresses: [{
        ipv6Address: 'ipv6Address',
      }],
      networkCardIndex: 123,
      networkInterfaceId: 'networkInterfaceId',
      privateIpAddress: 'privateIpAddress',
      privateIpAddresses: [{
        primary: false,
        privateIpAddress: 'privateIpAddress',
      }],
      secondaryPrivateIpAddressCount: 123,
      subnetId: 'subnetId',
    }],
    placement: {
      affinity: 'affinity',
      availabilityZone: 'availabilityZone',
      groupName: 'groupName',
      hostId: 'hostId',
      hostResourceGroupArn: 'hostResourceGroupArn',
      partitionNumber: 123,
      spreadDomain: 'spreadDomain',
      tenancy: 'tenancy',
    },
    priority: 123,
    subnetId: 'subnetId',
    weightedCapacity: 123,
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

fleet_launch_template_config_request_property = ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty(
    launch_template_specification=ec2.CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty(
        version="version",

        # the properties below are optional
        launch_template_id="launchTemplateId",
        launch_template_name="launchTemplateName",
        launch_template_specification_user_data="launchTemplateSpecificationUserData"
    ),
    overrides=[ec2.CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty(
        availability_zone="availabilityZone",
        availability_zone_id="availabilityZoneId",
        block_device_mappings=[ec2.CfnEC2Fleet.BlockDeviceMappingProperty(
            device_name="deviceName",
            ebs=ec2.CfnEC2Fleet.EbsBlockDeviceProperty(
                delete_on_termination=False,
                encrypted=False,
                iops=123,
                kms_key_id="kmsKeyId",
                multi_availability_zone_configuration=ec2.CfnEC2Fleet.MultiAvailabilityZoneConfigurationProperty(
                    configuration_type="configurationType",
                    standby_availability_zones=[ec2.CfnEC2Fleet.StandbyAvailabilityZoneProperty(
                        availability_zone="availabilityZone",
                        availability_zone_id="availabilityZoneId"
                    )]
                ),
                snapshot_id="snapshotId",
                volume_size=123,
                volume_type="volumeType"
            ),
            no_device="noDevice",
            virtual_name="virtualName"
        )],
        iam_instance_profile=ec2.CfnEC2Fleet.IamInstanceProfileSpecificationProperty(
            arn="arn",
            name="name"
        ),
        instance_requirements=ec2.CfnEC2Fleet.InstanceRequirementsRequestProperty(
            accelerator_count=ec2.CfnEC2Fleet.AcceleratorCountRequestProperty(
                max=123,
                min=123
            ),
            accelerator_manufacturers=["acceleratorManufacturers"],
            accelerator_names=["acceleratorNames"],
            accelerator_total_memory_mi_b=ec2.CfnEC2Fleet.AcceleratorTotalMemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            accelerator_types=["acceleratorTypes"],
            allowed_instance_types=["allowedInstanceTypes"],
            bare_metal="bareMetal",
            baseline_ebs_bandwidth_mbps=ec2.CfnEC2Fleet.BaselineEbsBandwidthMbpsRequestProperty(
                max=123,
                min=123
            ),
            baseline_performance_factors=ec2.CfnEC2Fleet.BaselinePerformanceFactorsRequestProperty(
                cpu=ec2.CfnEC2Fleet.CpuPerformanceFactorRequestProperty(
                    references=[ec2.CfnEC2Fleet.PerformanceFactorReferenceRequestProperty(
                        instance_family="instanceFamily"
                    )]
                )
            ),
            burstable_performance="burstablePerformance",
            cpu_manufacturers=["cpuManufacturers"],
            excluded_instance_types=["excludedInstanceTypes"],
            instance_generations=["instanceGenerations"],
            local_storage="localStorage",
            local_storage_types=["localStorageTypes"],
            max_spot_price_as_percentage_of_optimal_on_demand_price=123,
            memory_gi_b_per_v_cpu=ec2.CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty(
                max=123,
                min=123
            ),
            memory_mi_b=ec2.CfnEC2Fleet.MemoryMiBRequestProperty(
                max=123,
                min=123
            ),
            network_bandwidth_gbps=ec2.CfnEC2Fleet.NetworkBandwidthGbpsRequestProperty(
                max=123,
                min=123
            ),
            network_interface_count=ec2.CfnEC2Fleet.NetworkInterfaceCountRequestProperty(
                max=123,
                min=123
            ),
            on_demand_max_price_percentage_over_lowest_price=123,
            require_encryption_in_transit=False,
            require_hibernate_support=False,
            spot_max_price_percentage_over_lowest_price=123,
            total_local_storage_gb=ec2.CfnEC2Fleet.TotalLocalStorageGBRequestProperty(
                max=123,
                min=123
            ),
            v_cpu_count=ec2.CfnEC2Fleet.VCpuCountRangeRequestProperty(
                max=123,
                min=123
            )
        ),
        instance_type="instanceType",
        key_name="keyName",
        max_price="maxPrice",
        metadata_options=ec2.CfnEC2Fleet.InstanceMetadataOptionsRequestProperty(
            http_endpoint="httpEndpoint",
            http_put_response_hop_limit=123,
            http_tokens="httpTokens"
        ),
        network_interfaces=[ec2.CfnEC2Fleet.NetworkInterfaceSpecificationRequestProperty(
            associate_public_ip_address=False,
            delete_on_termination=False,
            description="description",
            device_index=123,
            groups=["groups"],
            interface_type="interfaceType",
            ipv6_address_count=123,
            ipv6_addresses=[ec2.CfnEC2Fleet.Ipv6AddressRequestProperty(
                ipv6_address="ipv6Address"
            )],
            network_card_index=123,
            network_interface_id="networkInterfaceId",
            private_ip_address="privateIpAddress",
            private_ip_addresses=[ec2.CfnEC2Fleet.PrivateIpAddressSpecificationRequestProperty(
                primary=False,
                private_ip_address="privateIpAddress"
            )],
            secondary_private_ip_address_count=123,
            subnet_id="subnetId"
        )],
        placement=ec2.CfnEC2Fleet.PlacementProperty(
            affinity="affinity",
            availability_zone="availabilityZone",
            group_name="groupName",
            host_id="hostId",
            host_resource_group_arn="hostResourceGroupArn",
            partition_number=123,
            spread_domain="spreadDomain",
            tenancy="tenancy"
        ),
        priority=123,
        subnet_id="subnetId",
        weighted_capacity=123
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

FleetLaunchTemplateConfigRequestProperty fleetLaunchTemplateConfigRequestProperty = FleetLaunchTemplateConfigRequestProperty.builder()
        .launchTemplateSpecification(FleetLaunchTemplateSpecificationRequestProperty.builder()
                .version("version")

                // the properties below are optional
                .launchTemplateId("launchTemplateId")
                .launchTemplateName("launchTemplateName")
                .launchTemplateSpecificationUserData("launchTemplateSpecificationUserData")
                .build())
        .overrides(List.of(FleetLaunchTemplateOverridesRequestProperty.builder()
                .availabilityZone("availabilityZone")
                .availabilityZoneId("availabilityZoneId")
                .blockDeviceMappings(List.of(BlockDeviceMappingProperty.builder()
                        .deviceName("deviceName")
                        .ebs(EbsBlockDeviceProperty.builder()
                                .deleteOnTermination(false)
                                .encrypted(false)
                                .iops(123)
                                .kmsKeyId("kmsKeyId")
                                .multiAvailabilityZoneConfiguration(MultiAvailabilityZoneConfigurationProperty.builder()
                                        .configurationType("configurationType")
                                        .standbyAvailabilityZones(List.of(StandbyAvailabilityZoneProperty.builder()
                                                .availabilityZone("availabilityZone")
                                                .availabilityZoneId("availabilityZoneId")
                                                .build()))
                                        .build())
                                .snapshotId("snapshotId")
                                .volumeSize(123)
                                .volumeType("volumeType")
                                .build())
                        .noDevice("noDevice")
                        .virtualName("virtualName")
                        .build()))
                .iamInstanceProfile(IamInstanceProfileSpecificationProperty.builder()
                        .arn("arn")
                        .name("name")
                        .build())
                .instanceRequirements(InstanceRequirementsRequestProperty.builder()
                        .acceleratorCount(AcceleratorCountRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .acceleratorManufacturers(List.of("acceleratorManufacturers"))
                        .acceleratorNames(List.of("acceleratorNames"))
                        .acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .acceleratorTypes(List.of("acceleratorTypes"))
                        .allowedInstanceTypes(List.of("allowedInstanceTypes"))
                        .bareMetal("bareMetal")
                        .baselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .baselinePerformanceFactors(BaselinePerformanceFactorsRequestProperty.builder()
                                .cpu(CpuPerformanceFactorRequestProperty.builder()
                                        .references(List.of(PerformanceFactorReferenceRequestProperty.builder()
                                                .instanceFamily("instanceFamily")
                                                .build()))
                                        .build())
                                .build())
                        .burstablePerformance("burstablePerformance")
                        .cpuManufacturers(List.of("cpuManufacturers"))
                        .excludedInstanceTypes(List.of("excludedInstanceTypes"))
                        .instanceGenerations(List.of("instanceGenerations"))
                        .localStorage("localStorage")
                        .localStorageTypes(List.of("localStorageTypes"))
                        .maxSpotPriceAsPercentageOfOptimalOnDemandPrice(123)
                        .memoryGiBPerVCpu(MemoryGiBPerVCpuRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .memoryMiB(MemoryMiBRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .networkBandwidthGbps(NetworkBandwidthGbpsRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .networkInterfaceCount(NetworkInterfaceCountRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .onDemandMaxPricePercentageOverLowestPrice(123)
                        .requireEncryptionInTransit(false)
                        .requireHibernateSupport(false)
                        .spotMaxPricePercentageOverLowestPrice(123)
                        .totalLocalStorageGb(TotalLocalStorageGBRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .vCpuCount(VCpuCountRangeRequestProperty.builder()
                                .max(123)
                                .min(123)
                                .build())
                        .build())
                .instanceType("instanceType")
                .keyName("keyName")
                .maxPrice("maxPrice")
                .metadataOptions(InstanceMetadataOptionsRequestProperty.builder()
                        .httpEndpoint("httpEndpoint")
                        .httpPutResponseHopLimit(123)
                        .httpTokens("httpTokens")
                        .build())
                .networkInterfaces(List.of(NetworkInterfaceSpecificationRequestProperty.builder()
                        .associatePublicIpAddress(false)
                        .deleteOnTermination(false)
                        .description("description")
                        .deviceIndex(123)
                        .groups(List.of("groups"))
                        .interfaceType("interfaceType")
                        .ipv6AddressCount(123)
                        .ipv6Addresses(List.of(Ipv6AddressRequestProperty.builder()
                                .ipv6Address("ipv6Address")
                                .build()))
                        .networkCardIndex(123)
                        .networkInterfaceId("networkInterfaceId")
                        .privateIpAddress("privateIpAddress")
                        .privateIpAddresses(List.of(PrivateIpAddressSpecificationRequestProperty.builder()
                                .primary(false)
                                .privateIpAddress("privateIpAddress")
                                .build()))
                        .secondaryPrivateIpAddressCount(123)
                        .subnetId("subnetId")
                        .build()))
                .placement(PlacementProperty.builder()
                        .affinity("affinity")
                        .availabilityZone("availabilityZone")
                        .groupName("groupName")
                        .hostId("hostId")
                        .hostResourceGroupArn("hostResourceGroupArn")
                        .partitionNumber(123)
                        .spreadDomain("spreadDomain")
                        .tenancy("tenancy")
                        .build())
                .priority(123)
                .subnetId("subnetId")
                .weightedCapacity(123)
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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",
        LaunchTemplateSpecificationUserData = "launchTemplateSpecificationUserData"
    },
    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",
                MultiAvailabilityZoneConfiguration = new MultiAvailabilityZoneConfigurationProperty {
                    ConfigurationType = "configurationType",
                    StandbyAvailabilityZones = new [] { new StandbyAvailabilityZoneProperty {
                        AvailabilityZone = "availabilityZone",
                        AvailabilityZoneId = "availabilityZoneId"
                    } }
                },
                SnapshotId = "snapshotId",
                VolumeSize = 123,
                VolumeType = "volumeType"
            },
            NoDevice = "noDevice",
            VirtualName = "virtualName"
        } },
        IamInstanceProfile = new IamInstanceProfileSpecificationProperty {
            Arn = "arn",
            Name = "name"
        },
        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",
        KeyName = "keyName",
        MaxPrice = "maxPrice",
        MetadataOptions = new InstanceMetadataOptionsRequestProperty {
            HttpEndpoint = "httpEndpoint",
            HttpPutResponseHopLimit = 123,
            HttpTokens = "httpTokens"
        },
        NetworkInterfaces = new [] { new NetworkInterfaceSpecificationRequestProperty {
            AssociatePublicIpAddress = false,
            DeleteOnTermination = false,
            Description = "description",
            DeviceIndex = 123,
            Groups = new [] { "groups" },
            InterfaceType = "interfaceType",
            Ipv6AddressCount = 123,
            Ipv6Addresses = new [] { new Ipv6AddressRequestProperty {
                Ipv6Address = "ipv6Address"
            } },
            NetworkCardIndex = 123,
            NetworkInterfaceId = "networkInterfaceId",
            PrivateIpAddress = "privateIpAddress",
            PrivateIpAddresses = new [] { new PrivateIpAddressSpecificationRequestProperty {
                Primary = false,
                PrivateIpAddress = "privateIpAddress"
            } },
            SecondaryPrivateIpAddressCount = 123,
            SubnetId = "subnetId"
        } },
        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
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fleetLaunchTemplateConfigRequestProperty := &FleetLaunchTemplateConfigRequestProperty{
	LaunchTemplateSpecification: &FleetLaunchTemplateSpecificationRequestProperty{
		Version: jsii.String("version"),

		// the properties below are optional
		LaunchTemplateId: jsii.String("launchTemplateId"),
		LaunchTemplateName: jsii.String("launchTemplateName"),
		LaunchTemplateSpecificationUserData: jsii.String("launchTemplateSpecificationUserData"),
	},
	Overrides: []interface{}{
		&FleetLaunchTemplateOverridesRequestProperty{
			AvailabilityZone: jsii.String("availabilityZone"),
			AvailabilityZoneId: jsii.String("availabilityZoneId"),
			BlockDeviceMappings: []interface{}{
				&BlockDeviceMappingProperty{
					DeviceName: jsii.String("deviceName"),
					Ebs: &EbsBlockDeviceProperty{
						DeleteOnTermination: jsii.Boolean(false),
						Encrypted: jsii.Boolean(false),
						Iops: jsii.Number(123),
						KmsKeyId: jsii.String("kmsKeyId"),
						MultiAvailabilityZoneConfiguration: &MultiAvailabilityZoneConfigurationProperty{
							ConfigurationType: jsii.String("configurationType"),
							StandbyAvailabilityZones: []interface{}{
								&StandbyAvailabilityZoneProperty{
									AvailabilityZone: jsii.String("availabilityZone"),
									AvailabilityZoneId: jsii.String("availabilityZoneId"),
								},
							},
						},
						SnapshotId: jsii.String("snapshotId"),
						VolumeSize: jsii.Number(123),
						VolumeType: jsii.String("volumeType"),
					},
					NoDevice: jsii.String("noDevice"),
					VirtualName: jsii.String("virtualName"),
				},
			},
			IamInstanceProfile: &IamInstanceProfileSpecificationProperty{
				Arn: jsii.String("arn"),
				Name: jsii.String("name"),
			},
			InstanceRequirements: &InstanceRequirementsRequestProperty{
				AcceleratorCount: &AcceleratorCountRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				AcceleratorManufacturers: []*string{
					jsii.String("acceleratorManufacturers"),
				},
				AcceleratorNames: []*string{
					jsii.String("acceleratorNames"),
				},
				AcceleratorTotalMemoryMiB: &AcceleratorTotalMemoryMiBRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				AcceleratorTypes: []*string{
					jsii.String("acceleratorTypes"),
				},
				AllowedInstanceTypes: []*string{
					jsii.String("allowedInstanceTypes"),
				},
				BareMetal: jsii.String("bareMetal"),
				BaselineEbsBandwidthMbps: &BaselineEbsBandwidthMbpsRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				BaselinePerformanceFactors: &BaselinePerformanceFactorsRequestProperty{
					Cpu: &CpuPerformanceFactorRequestProperty{
						References: []interface{}{
							&PerformanceFactorReferenceRequestProperty{
								InstanceFamily: jsii.String("instanceFamily"),
							},
						},
					},
				},
				BurstablePerformance: jsii.String("burstablePerformance"),
				CpuManufacturers: []*string{
					jsii.String("cpuManufacturers"),
				},
				ExcludedInstanceTypes: []*string{
					jsii.String("excludedInstanceTypes"),
				},
				InstanceGenerations: []*string{
					jsii.String("instanceGenerations"),
				},
				LocalStorage: jsii.String("localStorage"),
				LocalStorageTypes: []*string{
					jsii.String("localStorageTypes"),
				},
				MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: jsii.Number(123),
				MemoryGiBPerVCpu: &MemoryGiBPerVCpuRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				MemoryMiB: &MemoryMiBRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				NetworkBandwidthGbps: &NetworkBandwidthGbpsRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				NetworkInterfaceCount: &NetworkInterfaceCountRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				OnDemandMaxPricePercentageOverLowestPrice: jsii.Number(123),
				RequireEncryptionInTransit: jsii.Boolean(false),
				RequireHibernateSupport: jsii.Boolean(false),
				SpotMaxPricePercentageOverLowestPrice: jsii.Number(123),
				TotalLocalStorageGb: &TotalLocalStorageGBRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
				VCpuCount: &VCpuCountRangeRequestProperty{
					Max: jsii.Number(123),
					Min: jsii.Number(123),
				},
			},
			InstanceType: jsii.String("instanceType"),
			KeyName: jsii.String("keyName"),
			MaxPrice: jsii.String("maxPrice"),
			MetadataOptions: &InstanceMetadataOptionsRequestProperty{
				HttpEndpoint: jsii.String("httpEndpoint"),
				HttpPutResponseHopLimit: jsii.Number(123),
				HttpTokens: jsii.String("httpTokens"),
			},
			NetworkInterfaces: []interface{}{
				&NetworkInterfaceSpecificationRequestProperty{
					AssociatePublicIpAddress: jsii.Boolean(false),
					DeleteOnTermination: jsii.Boolean(false),
					Description: jsii.String("description"),
					DeviceIndex: jsii.Number(123),
					Groups: []*string{
						jsii.String("groups"),
					},
					InterfaceType: jsii.String("interfaceType"),
					Ipv6AddressCount: jsii.Number(123),
					Ipv6Addresses: []interface{}{
						&Ipv6AddressRequestProperty{
							Ipv6Address: jsii.String("ipv6Address"),
						},
					},
					NetworkCardIndex: jsii.Number(123),
					NetworkInterfaceId: jsii.String("networkInterfaceId"),
					PrivateIpAddress: jsii.String("privateIpAddress"),
					PrivateIpAddresses: []interface{}{
						&PrivateIpAddressSpecificationRequestProperty{
							Primary: jsii.Boolean(false),
							PrivateIpAddress: jsii.String("privateIpAddress"),
						},
					},
					SecondaryPrivateIpAddressCount: jsii.Number(123),
					SubnetId: jsii.String("subnetId"),
				},
			},
			Placement: &PlacementProperty{
				Affinity: jsii.String("affinity"),
				AvailabilityZone: jsii.String("availabilityZone"),
				GroupName: jsii.String("groupName"),
				HostId: jsii.String("hostId"),
				HostResourceGroupArn: jsii.String("hostResourceGroupArn"),
				PartitionNumber: jsii.Number(123),
				SpreadDomain: jsii.String("spreadDomain"),
				Tenancy: jsii.String("tenancy"),
			},
			Priority: jsii.Number(123),
			SubnetId: jsii.String("subnetId"),
			WeightedCapacity: jsii.Number(123),
		},
	},
}

Properties ​

launchTemplateSpecificationoptionalIResolvable | CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestPropertylaunch_template_specificationoptionaltyping.Union[IResolvable, FleetLaunchTemplateSpecificationRequestProperty]launchTemplateSpecificationoptionalIResolvableLaunchTemplateSpecificationoptionalIResolvableLaunchTemplateSpecificationoptionalinterface{} #
The launch template to use.

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

overridesoptionalIResolvable | IResolvable | CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty[]overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FleetLaunchTemplateOverridesRequestProperty]]]overridesoptionalIResolvableOverridesoptionalIResolvableOverridesoptionalinterface{} #
Any parameters that you specify override the same parameters in the launch template.

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