aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty

interface LaunchTemplateProperty

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.LaunchTemplateProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_LaunchTemplateProperty
Javasoftware.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty
Pythonaws_cdk.aws_autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty
TypeScript aws-cdk-lib » aws_autoscaling » CfnAutoScalingGroup » LaunchTemplateProperty

Use this structure to specify the launch templates and instance types (overrides) for a mixed instances policy.

LaunchTemplate is a property of the AWS::AutoScaling::AutoScalingGroup MixedInstancesPolicy property type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const launchTemplateProperty: autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty = {
  launchTemplateSpecification: {
    version: 'version',

    // the properties below are optional
    launchTemplateId: 'launchTemplateId',
    launchTemplateName: 'launchTemplateName',
  },

  // the properties below are optional
  overrides: [{
    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',
    launchTemplateSpecification: {
      version: 'version',

      // the properties below are optional
      launchTemplateId: 'launchTemplateId',
      launchTemplateName: 'launchTemplateName',
    },
    weightedCapacity: 'weightedCapacity',
  }],
};

Properties

NameTypeDescription
launchTemplateSpecificationIResolvable | LaunchTemplateSpecificationPropertyThe launch template.
overrides?IResolvable | IResolvable | LaunchTemplateOverridesProperty[]Any properties that you specify override the same properties in the launch template.

launchTemplateSpecification

Type: IResolvable | LaunchTemplateSpecificationProperty

The launch template.


overrides?

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

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