@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
158 lines • 4.85 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates and manages Scaleway Apple silicon runners.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.applesilicon.Runner("main", {
* name: "my-github-runner",
* ciProvider: "github",
* url: "https://github.com/my-org/my-repo",
* token: "my-token",
* });
* ```
*
* ## Import
*
* Runner can be imported using the `{zone}/{id}`, e.g.
*
* ```sh
* $ pulumi import scaleway:applesilicon/runner:Runner main fr-par-1/11111111-1111-1111-1111-111111111111
* ```
*/
export declare class Runner extends pulumi.CustomResource {
/**
* Get an existing Runner resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RunnerState, opts?: pulumi.CustomResourceOptions): Runner;
/**
* Returns true if the given object is an instance of Runner. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Runner;
/**
* The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
*/
readonly ciProvider: pulumi.Output<string>;
/**
* The error message if the runner is in error state
*/
readonly errorMessage: pulumi.Output<string>;
/**
* A list of labels applied to the runner. Only for github provider
*/
readonly labels: pulumi.Output<string[]>;
/**
* The name of the runner
*/
readonly name: pulumi.Output<string>;
/**
* The projectId you want to attach the resource to
*/
readonly projectId: pulumi.Output<string>;
/**
* The status of the runner
*/
readonly status: pulumi.Output<string>;
/**
* The token used to authenticate the runner to run
*/
readonly token: pulumi.Output<string>;
/**
* The URL of the runner to run
*/
readonly url: pulumi.Output<string>;
/**
* The zone of the runner
*/
readonly zone: pulumi.Output<string | undefined>;
/**
* Create a Runner resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: RunnerArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Runner resources.
*/
export interface RunnerState {
/**
* The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
*/
ciProvider?: pulumi.Input<string | undefined>;
/**
* The error message if the runner is in error state
*/
errorMessage?: pulumi.Input<string | undefined>;
/**
* A list of labels applied to the runner. Only for github provider
*/
labels?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* The name of the runner
*/
name?: pulumi.Input<string | undefined>;
/**
* The projectId you want to attach the resource to
*/
projectId?: pulumi.Input<string | undefined>;
/**
* The status of the runner
*/
status?: pulumi.Input<string | undefined>;
/**
* The token used to authenticate the runner to run
*/
token?: pulumi.Input<string | undefined>;
/**
* The URL of the runner to run
*/
url?: pulumi.Input<string | undefined>;
/**
* The zone of the runner
*/
zone?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a Runner resource.
*/
export interface RunnerArgs {
/**
* The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
*/
ciProvider: pulumi.Input<string>;
/**
* The name of the runner
*/
name?: pulumi.Input<string | undefined>;
/**
* The projectId you want to attach the resource to
*/
projectId?: pulumi.Input<string | undefined>;
/**
* The token used to authenticate the runner to run
*/
token: pulumi.Input<string>;
/**
* The URL of the runner to run
*/
url: pulumi.Input<string>;
/**
* The zone of the runner
*/
zone?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=runner.d.ts.map