Skip to content

AlwaysOnWarmRunnerProps Struct ​

Properties for always on warm runners.

Initializer ​

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

const alwaysOnWarmRunnerProps: AlwaysOnWarmRunnerProps = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.AlwaysOnWarmRunnerProps(
  count: typing.Union[int, float],
  owner: str,
  provider: IRunnerProvider | ICompositeProvider,
  runners: GitHubRunners,
  registration_level: str = None,
  repo: str = None
)
java
import com.cloudsnorkel.cdk.github.runners.AlwaysOnWarmRunnerProps;

AlwaysOnWarmRunnerProps.builder()
    .count(java.lang.Number)
    .owner(java.lang.String)
    .provider(IRunnerProvider|ICompositeProvider)
    .runners(GitHubRunners)
//  .registrationLevel(java.lang.String)
//  .repo(java.lang.String)
    .build();
csharp
using CloudSnorkel;

new AlwaysOnWarmRunnerProps {
    double Count,
    string Owner,
    IRunnerProvider|ICompositeProvider Provider,
    GitHubRunners Runners,
    string RegistrationLevel = null,
    string Repo = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.AlwaysOnWarmRunnerProps {
	Count: *f64,
	Owner: *string,
	Provider: interface{},
	Runners: github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners.GitHubRunners,
	RegistrationLevel: *string,
	Repo: *string,
}

Properties ​

countcountcountCountCount ​

count: number

count: typing.Union[int, float]

count: java.lang.Number

Count: double

Count: *f64

Number of warm runners to maintain.

ownerownerownerOwnerOwner ​

owner: string

owner: str

owner: java.lang.String

Owner: string

Owner: *string

GitHub owner where runners will be registered (org or user login).

providerproviderproviderProviderProvider ​

Provider: interface{}

Provider to use.

Warm runners bypass the provider selector — they always use this provider, regardless of job characteristics. Labels cannot be modified.

runnersrunnersrunnersRunnersRunners ​

runners: GitHubRunners

runners: GitHubRunners

runners: GitHubRunners

Runners: GitHubRunners

Runners: GitHubRunners

The GitHubRunners construct that owns the shared warm runner infrastructure.

registrationLevelregistration_levelregistrationLevelRegistrationLevelRegistrationLevel ​

registrationLevel?: string

registration_level?: str

registrationLevel?: java.lang.String

RegistrationLevel?: string

RegistrationLevel?: *string

Registration level — must match how your runners are set up in GitHub.

Choose 'org' for org-wide runners, 'repo' for repo-level. See the setup wizard for choosing repo vs org.

See: Setup GitHub

Default: 'repo'

reporeporepoRepoRepo ​

repo?: string

repo?: str

repo?: java.lang.String

Repo?: string

Repo?: *string

Repository name (without owner) where runners will be registered.

Required when registrationLevel is 'repo'.

Released under the Apache-2.0 License.