UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

119 lines 6.08 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AppleSiliconServer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Creates and manages Scaleway Apple silicon. 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", * }); * ``` * * ## Import * * Instance servers can be imported using the `{zone}/{id}`, e.g. * * bash * * ```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 */ 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, id, state, opts) { pulumi.log.warn("AppleSiliconServer is deprecated: scaleway.index/applesiliconserver.AppleSiliconServer has been deprecated in favor of scaleway.applesilicon/server.Server"); return new AppleSiliconServer(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === AppleSiliconServer.__pulumiType; } /** @deprecated scaleway.index/applesiliconserver.AppleSiliconServer has been deprecated in favor of scaleway.applesilicon/server.Server */ constructor(name, argsOrState, opts) { pulumi.log.warn("AppleSiliconServer is deprecated: scaleway.index/applesiliconserver.AppleSiliconServer has been deprecated in favor of scaleway.applesilicon/server.Server"); let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["commitment"] = state ? state.commitment : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["deletableAt"] = state ? state.deletableAt : undefined; resourceInputs["enableVpc"] = state ? state.enableVpc : undefined; resourceInputs["ip"] = state ? state.ip : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["organizationId"] = state ? state.organizationId : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["privateNetworks"] = state ? state.privateNetworks : undefined; resourceInputs["projectId"] = state ? state.projectId : undefined; resourceInputs["state"] = state ? state.state : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["vncUrl"] = state ? state.vncUrl : undefined; resourceInputs["vpcStatus"] = state ? state.vpcStatus : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { const args = argsOrState; if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["commitment"] = args ? args.commitment : undefined; resourceInputs["enableVpc"] = args ? args.enableVpc : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["privateNetworks"] = args ? args.privateNetworks : undefined; resourceInputs["projectId"] = args ? args.projectId : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["zone"] = args ? args.zone : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["deletableAt"] = undefined /*out*/; resourceInputs["ip"] = undefined /*out*/; resourceInputs["organizationId"] = undefined /*out*/; resourceInputs["password"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; resourceInputs["username"] = undefined /*out*/; resourceInputs["vncUrl"] = undefined /*out*/; resourceInputs["vpcStatus"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(AppleSiliconServer.__pulumiType, name, resourceInputs, opts); } } exports.AppleSiliconServer = AppleSiliconServer; /** @internal */ AppleSiliconServer.__pulumiType = 'scaleway:index/appleSiliconServer:AppleSiliconServer'; //# sourceMappingURL=appleSiliconServer.js.map