UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

338 lines 12 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The `scaleway.applesilicon.Server` resource creates and manages Scaleway Apple silicon servers. * * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/apple-silicon/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const server = new scaleway.applesilicon.Server("server", { * name: "test-m1", * type: "M1-M", * }); * ``` * * ### Enable VPC and attach private network * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const vpc_apple_silicon = new scaleway.network.Vpc("vpc-apple-silicon", {name: "vpc-apple-silicon"}); * const pn_apple_silicon = new scaleway.network.PrivateNetwork("pn-apple-silicon", { * name: "pn-apple-silicon", * vpcId: vpc_apple_silicon.id, * }); * const my_server = new scaleway.applesilicon.Server("my-server", { * name: "TestAccServerEnableVPC", * type: "M2-M", * enableVpc: true, * privateNetworks: [{ * id: pn_apple_silicon.id, * }], * }); * ``` * * ### With `github` runner * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byName = scaleway.applesilicon.getOs({ * name: "devos-sequoia-15.6", * }); * const main = new scaleway.applesilicon.Runner("main", { * name: "TestAccRunnerGithub", * ciProvider: "github", * url: "https://github.com/my-repo-url", * token: "MY_GITHUB_RUNNER_TOKEN", * }); * const mainServer = new scaleway.applesilicon.Server("main", { * name: "TestAccServerRunner", * type: "M2-L", * publicBandwidth: 1000000000, * osId: byName.then(byName => byName.id), * runnerIds: [main.id], * }); * ``` * * ## Import * * Instance servers can be imported using the `{zone}/{id}`, e.g. * * ```sh * $ pulumi import scaleway:index/appleSiliconServer:AppleSiliconServer main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` * * @deprecated scaleway.index/applesiliconserver.AppleSiliconServer has been deprecated in favor of scaleway.applesilicon/server.Server */ export declare class AppleSiliconServer extends pulumi.CustomResource { /** * Get an existing AppleSiliconServer 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?: AppleSiliconServerState, opts?: pulumi.CustomResourceOptions): AppleSiliconServer; /** * Returns true if the given object is an instance of AppleSiliconServer. 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 AppleSiliconServer; /** * The commitment period of the server */ readonly commitment: pulumi.Output<string | undefined>; /** * The date and time the private network was created. */ readonly createdAt: pulumi.Output<string>; /** * The minimal date and time on which you can delete this server due to Apple licence */ readonly deletableAt: pulumi.Output<string>; /** * : Enables the VPC option when set to true. */ readonly enableVpc: pulumi.Output<boolean | undefined>; /** * IPv4 address of the server (IPv4 address). */ readonly ip: pulumi.Output<string>; /** * The name of the server. */ readonly name: pulumi.Output<string>; /** * The organization ID the server is associated with. */ readonly organizationId: pulumi.Output<string>; /** * The ID of the OS to use for the server. */ readonly osId: pulumi.Output<string | undefined>; /** * The password of the server */ readonly password: pulumi.Output<string>; /** * The list of private IPv4 and IPv6 addresses associated with the server. */ readonly privateIps: pulumi.Output<outputs.AppleSiliconServerPrivateIp[]>; /** * The private networks to attach to the server */ readonly privateNetworks: pulumi.Output<outputs.AppleSiliconServerPrivateNetwork[] | undefined>; /** * `projectId`) The ID of the project the server is * associated with. */ readonly projectId: pulumi.Output<string>; /** * Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers. */ readonly publicBandwidth: pulumi.Output<number>; /** * List of runner IDs to assign to the server. At the moment, only a single runner can be attached to a server. Compatible only with runners of type `github` and `gitlab`, with the `devos-sequoia-15.6` offer and `M2-L` server type */ readonly runnerIds: pulumi.Output<string[]>; /** * The state of the server. */ readonly state: pulumi.Output<string>; /** * The commercial type of the server. You find all the available types on * the [pricing page](https://www.scaleway.com/en/pricing/apple-silicon/). Updates to this field will recreate a new * resource. */ readonly type: pulumi.Output<string>; /** * The date and time the private network was last updated. */ readonly updatedAt: pulumi.Output<string>; /** * The username of the server */ readonly username: pulumi.Output<string>; /** * URL of the VNC. */ readonly vncUrl: pulumi.Output<string>; /** * The current status of the VPC option. */ readonly vpcStatus: pulumi.Output<string>; /** * `zone`) The zone in which * the server should be created. */ readonly zone: pulumi.Output<string | undefined>; /** * Create a AppleSiliconServer 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. */ /** @deprecated scaleway.index/applesiliconserver.AppleSiliconServer has been deprecated in favor of scaleway.applesilicon/server.Server */ constructor(name: string, args: AppleSiliconServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AppleSiliconServer resources. */ export interface AppleSiliconServerState { /** * The commitment period of the server */ commitment?: pulumi.Input<string | undefined>; /** * The date and time the private network was created. */ createdAt?: pulumi.Input<string | undefined>; /** * The minimal date and time on which you can delete this server due to Apple licence */ deletableAt?: pulumi.Input<string | undefined>; /** * : Enables the VPC option when set to true. */ enableVpc?: pulumi.Input<boolean | undefined>; /** * IPv4 address of the server (IPv4 address). */ ip?: pulumi.Input<string | undefined>; /** * The name of the server. */ name?: pulumi.Input<string | undefined>; /** * The organization ID the server is associated with. */ organizationId?: pulumi.Input<string | undefined>; /** * The ID of the OS to use for the server. */ osId?: pulumi.Input<string | undefined>; /** * The password of the server */ password?: pulumi.Input<string | undefined>; /** * The list of private IPv4 and IPv6 addresses associated with the server. */ privateIps?: pulumi.Input<pulumi.Input<inputs.AppleSiliconServerPrivateIp>[] | undefined>; /** * The private networks to attach to the server */ privateNetworks?: pulumi.Input<pulumi.Input<inputs.AppleSiliconServerPrivateNetwork>[] | undefined>; /** * `projectId`) The ID of the project the server is * associated with. */ projectId?: pulumi.Input<string | undefined>; /** * Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers. */ publicBandwidth?: pulumi.Input<number | undefined>; /** * List of runner IDs to assign to the server. At the moment, only a single runner can be attached to a server. Compatible only with runners of type `github` and `gitlab`, with the `devos-sequoia-15.6` offer and `M2-L` server type */ runnerIds?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The state of the server. */ state?: pulumi.Input<string | undefined>; /** * The commercial type of the server. You find all the available types on * the [pricing page](https://www.scaleway.com/en/pricing/apple-silicon/). Updates to this field will recreate a new * resource. */ type?: pulumi.Input<string | undefined>; /** * The date and time the private network was last updated. */ updatedAt?: pulumi.Input<string | undefined>; /** * The username of the server */ username?: pulumi.Input<string | undefined>; /** * URL of the VNC. */ vncUrl?: pulumi.Input<string | undefined>; /** * The current status of the VPC option. */ vpcStatus?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which * the server should be created. */ zone?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a AppleSiliconServer resource. */ export interface AppleSiliconServerArgs { /** * The commitment period of the server */ commitment?: pulumi.Input<string | undefined>; /** * : Enables the VPC option when set to true. */ enableVpc?: pulumi.Input<boolean | undefined>; /** * The name of the server. */ name?: pulumi.Input<string | undefined>; /** * The ID of the OS to use for the server. */ osId?: pulumi.Input<string | undefined>; /** * The list of private IPv4 and IPv6 addresses associated with the server. */ privateIps?: pulumi.Input<pulumi.Input<inputs.AppleSiliconServerPrivateIp>[] | undefined>; /** * The private networks to attach to the server */ privateNetworks?: pulumi.Input<pulumi.Input<inputs.AppleSiliconServerPrivateNetwork>[] | undefined>; /** * `projectId`) The ID of the project the server is * associated with. */ projectId?: pulumi.Input<string | undefined>; /** * Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers. */ publicBandwidth?: pulumi.Input<number | undefined>; /** * List of runner IDs to assign to the server. At the moment, only a single runner can be attached to a server. Compatible only with runners of type `github` and `gitlab`, with the `devos-sequoia-15.6` offer and `M2-L` server type */ runnerIds?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The commercial type of the server. You find all the available types on * the [pricing page](https://www.scaleway.com/en/pricing/apple-silicon/). Updates to this field will recreate a new * resource. */ type: pulumi.Input<string>; /** * `zone`) The zone in which * the server should be created. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=appleSiliconServer.d.ts.map