UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

56 lines 1.85 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"; * * const byName = scaleway.getInstanceSnapshot({ * name: "my-snapshot-name", * }); * const byId = scaleway.getInstanceSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getInstanceSnapshot(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getInstanceSnapshot:getInstanceSnapshot", { "name": args.name, "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"; * * const byName = scaleway.getInstanceSnapshot({ * name: "my-snapshot-name", * }); * const byId = scaleway.getInstanceSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getInstanceSnapshotOutput(args, opts) { return pulumi.output(args).apply((a) => getInstanceSnapshot(a, opts)); } exports.getInstanceSnapshotOutput = getInstanceSnapshotOutput; //# sourceMappingURL=getInstanceSnapshot.js.map