UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

72 lines 2.96 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.getInstanceSnapshotOutput = exports.getInstanceSnapshot = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about an instance snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by snapshot name * const byName = scaleway.instance.getSnapshot({ * name: "my-snapshot-name", * }); * // Get info by snapshot ID * const byId = scaleway.instance.getSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot */ function getInstanceSnapshot(args, opts) { pulumi.log.warn("getInstanceSnapshot is deprecated: scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getInstanceSnapshot:getInstanceSnapshot", { "name": args.name, "projectId": args.projectId, "snapshotId": args.snapshotId, "zone": args.zone, }, opts); } exports.getInstanceSnapshot = getInstanceSnapshot; /** * Gets information about an instance snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by snapshot name * const byName = scaleway.instance.getSnapshot({ * name: "my-snapshot-name", * }); * // Get info by snapshot ID * const byId = scaleway.instance.getSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot */ function getInstanceSnapshotOutput(args, opts) { pulumi.log.warn("getInstanceSnapshot is deprecated: scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getInstanceSnapshot:getInstanceSnapshot", { "name": args.name, "projectId": args.projectId, "snapshotId": args.snapshotId, "zone": args.zone, }, opts); } exports.getInstanceSnapshotOutput = getInstanceSnapshotOutput; //# sourceMappingURL=getInstanceSnapshot.js.map