Experimental
@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FastLaunchConfiguration Struct
The EC2 Fast Launch configuration to use for the Windows AMI.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const launchTemplate: ec2.LaunchTemplate;
const fastLaunchConfiguration: imagebuilder_alpha.FastLaunchConfiguration = {
enabled: false,
launchTemplate: launchTemplate,
maxParallelLaunches: 123,
targetSnapshotCount: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha
from aws_cdk import aws_ec2 as ec2
# launch_template: ec2.LaunchTemplate
fast_launch_configuration = imagebuilder_alpha.FastLaunchConfiguration(
enabled=False,
launch_template=launch_template,
max_parallel_launches=123,
target_snapshot_count=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.imagebuilder.alpha.*;
import software.amazon.awscdk.services.ec2.*;
LaunchTemplate launchTemplate;
FastLaunchConfiguration fastLaunchConfiguration = FastLaunchConfiguration.builder()
.enabled(false)
.launchTemplate(launchTemplate)
.maxParallelLaunches(123)
.targetSnapshotCount(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder.Alpha;
using Amazon.CDK.AWS.EC2;
LaunchTemplate launchTemplate;
var fastLaunchConfiguration = new FastLaunchConfiguration {
Enabled = false,
LaunchTemplate = launchTemplate,
MaxParallelLaunches = 123,
TargetSnapshotCount = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import imagebuilder_alpha "github.com/aws/aws-cdk-go/awsimagebuilderalpha"
import "github.com/aws/aws-cdk-go/awscdk"
var launchTemplate LaunchTemplate
fastLaunchConfiguration := &FastLaunchConfiguration{
Enabled: jsii.Boolean(false),
LaunchTemplate: launchTemplate,
MaxParallelLaunches: jsii.Number(123),
TargetSnapshotCount: jsii.Number(123),
}
Properties
enabledoptionalbooleanenabledoptionalboolenabledoptionalBooleanEnabledoptionalboolEnabledoptional*bool= false#Whether to enable fast launch for the AMI.
launchTemplateoptionalILaunchTemplatelaunch_templateoptionalILaunchTemplatelaunchTemplateoptionalILaunchTemplateLaunchTemplateoptionalILaunchTemplateLaunchTemplateoptionalILaunchTemplate= None#The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots.
maxParallelLaunchesoptionalnumbermax_parallel_launchesoptionalint | floatmaxParallelLaunchesoptionalNumberMaxParallelLaunchesoptionaldoubleMaxParallelLaunchesoptional*float64#The maximum number of parallel instances that are launched for creating resources.
Default: A maximum of 6 instances are launched in parallel
targetSnapshotCountoptionalnumbertarget_snapshot_countoptionalint | floattargetSnapshotCountoptionalNumberTargetSnapshotCountoptionaldoubleTargetSnapshotCountoptional*float64#The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
Default: 10 snapshots are kept pre-provisioned