Skip to content

FastLaunchOptions Struct ​

Options for fast launch.

Initializer ​

ts
import { FastLaunchOptions } from '@cloudsnorkel/cdk-github-runners'

const fastLaunchOptions: FastLaunchOptions = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.FastLaunchOptions(
  enabled: bool = None,
  max_parallel_launches: typing.Union[int, float] = None,
  target_resource_count: typing.Union[int, float] = None
)
java
import com.cloudsnorkel.cdk.github.runners.FastLaunchOptions;

FastLaunchOptions.builder()
//  .enabled(java.lang.Boolean)
//  .maxParallelLaunches(java.lang.Number)
//  .targetResourceCount(java.lang.Number)
    .build();
csharp
using CloudSnorkel;

new FastLaunchOptions {
    bool Enabled = null,
    double MaxParallelLaunches = null,
    double TargetResourceCount = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.FastLaunchOptions {
	Enabled: *bool,
	MaxParallelLaunches: *f64,
	TargetResourceCount: *f64,
}

Properties ​

enabledenabledenabledEnabledEnabled ​

enabled?: boolean

enabled?: bool

enabled?: java.lang.Boolean

Enabled?: bool

Enabled?: *bool

Enable fast launch for AMIs generated by this builder.

It creates a snapshot of the root volume and uses it to launch new instances faster.

This is only supported for Windows AMIs.

Default: false

maxParallelLaunchesmax_parallel_launchesmaxParallelLaunchesMaxParallelLaunchesMaxParallelLaunches ​

maxParallelLaunches?: number

max_parallel_launches?: typing.Union[int, float]

maxParallelLaunches?: java.lang.Number

MaxParallelLaunches?: double

MaxParallelLaunches?: *f64

The maximum number of parallel instances that are launched for creating resources.

Must be at least 6.

Default: 6

targetResourceCounttarget_resource_counttargetResourceCountTargetResourceCountTargetResourceCount ​

targetResourceCount?: number

target_resource_count?: typing.Union[int, float]

targetResourceCount?: java.lang.Number

TargetResourceCount?: double

TargetResourceCount?: *f64

The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.

Default: 1

Released under the Apache-2.0 License.