Skip to content
v2.275.0

LaunchTemplateSourceProperty Struct ​

How the launch template is specified.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const launchTemplateSourceProperty: bedrockagentcore.CfnCapacityProvider.LaunchTemplateSourceProperty = {
  launchParameters: {
    instanceRequirements: {
      allowedInstanceTypes: ['allowedInstanceTypes'],
    },
    operatingSystem: 'operatingSystem',

    // the properties below are optional
    capacityReservationSpecification: {
      capacityReservationPreference: 'capacityReservationPreference',
      capacityReservationTarget: {
        capacityReservationId: 'capacityReservationId',
        capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
      },
    },
    ephemeralVolumes: [{
      deviceName: 'deviceName',
      ebs: {
        ebsCardIndex: 123,
        encrypted: false,
        iops: 123,
        kmsKeyId: 'kmsKeyId',
        snapshotId: 'snapshotId',
        throughput: 123,
        volumeInitializationRate: 123,
        volumeSize: 123,
        volumeType: 'volumeType',
      },
      virtualName: 'virtualName',
    }],
    instanceProfileArn: 'instanceProfileArn',
    licenseSpecifications: [{
      licenseConfigurationArn: 'licenseConfigurationArn',
    }],
    monitoring: 'monitoring',
    propagatedTags: {
      propagatedTagsKey: 'propagatedTags',
    },
    sshKeyName: 'sshKeyName',
  },
};

Properties ​

launchParametersIResolvable | CfnCapacityProvider.LaunchParametersPropertylaunch_parameterstyping.Union[IResolvable, LaunchParametersProperty]launchParametersIResolvableLaunchParametersIResolvableLaunchParametersinterface{}required#
Parameters for launching EC2 instances.