aws-cdk-lib.aws_ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty

interface FleetLaunchTemplateConfigRequestProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnEC2Fleet_FleetLaunchTemplateConfigRequestProperty
Javasoftware.amazon.awscdk.services.ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty
Pythonaws_cdk.aws_ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnEC2Fleet » FleetLaunchTemplateConfigRequestProperty

Specifies a launch template and overrides for an EC2 Fleet.

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

Example

// 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',
  },
  overrides: [{
    availabilityZone: 'availabilityZone',
    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,
      },
      burstablePerformance: 'burstablePerformance',
      cpuManufacturers: ['cpuManufacturers'],
      excludedInstanceTypes: ['excludedInstanceTypes'],
      instanceGenerations: ['instanceGenerations'],
      localStorage: 'localStorage',
      localStorageTypes: ['localStorageTypes'],
      memoryGiBPerVCpu: {
        max: 123,
        min: 123,
      },
      memoryMiB: {
        max: 123,
        min: 123,
      },
      networkBandwidthGbps: {
        max: 123,
        min: 123,
      },
      networkInterfaceCount: {
        max: 123,
        min: 123,
      },
      onDemandMaxPricePercentageOverLowestPrice: 123,
      requireHibernateSupport: false,
      spotMaxPricePercentageOverLowestPrice: 123,
      totalLocalStorageGb: {
        max: 123,
        min: 123,
      },
      vCpuCount: {
        max: 123,
        min: 123,
      },
    },
    instanceType: 'instanceType',
    maxPrice: 'maxPrice',
    placement: {
      affinity: 'affinity',
      availabilityZone: 'availabilityZone',
      groupName: 'groupName',
      hostId: 'hostId',
      hostResourceGroupArn: 'hostResourceGroupArn',
      partitionNumber: 123,
      spreadDomain: 'spreadDomain',
      tenancy: 'tenancy',
    },
    priority: 123,
    subnetId: 'subnetId',
    weightedCapacity: 123,
  }],
};

Properties

NameTypeDescription
launchTemplateSpecification?IResolvable | FleetLaunchTemplateSpecificationRequestPropertyThe launch template to use.
overrides?IResolvable | IResolvable | FleetLaunchTemplateOverridesRequestProperty[]Any parameters that you specify override the same parameters in the launch template.

launchTemplateSpecification?

Type: IResolvable | FleetLaunchTemplateSpecificationRequestProperty (optional)

The launch template to use.

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


overrides?

Type: IResolvable | IResolvable | FleetLaunchTemplateOverridesRequestProperty[] (optional)

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.