UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

68 lines 2.19 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.getSnapshotOutput = exports.getSnapshot = 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", * }); * ``` */ function getSnapshot(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:instance/getSnapshot:getSnapshot", { "name": args.name, "projectId": args.projectId, "snapshotId": args.snapshotId, "zone": args.zone, }, opts); } exports.getSnapshot = getSnapshot; /** * 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", * }); * ``` */ function getSnapshotOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:instance/getSnapshot:getSnapshot", { "name": args.name, "projectId": args.projectId, "snapshotId": args.snapshotId, "zone": args.zone, }, opts); } exports.getSnapshotOutput = getSnapshotOutput; //# sourceMappingURL=getSnapshot.js.map