UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

60 lines 2.3 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstanceOutput = exports.getInstance = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get info about a Google Cloud Filestore instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myInstance = gcp.filestore.getInstance({ * name: "my-filestore-instance", * }); * export const instanceIpAddresses = myInstance.then(myInstance => myInstance.networks?.ipAddresses); * export const instanceConnectMode = myInstance.then(myInstance => myInstance.networks?.connectMode); * export const instanceFileShareName = myInstance.then(myInstance => myInstance.fileShares?.name); * ``` */ function getInstance(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:filestore/getInstance:getInstance", { "location": args.location, "name": args.name, "project": args.project, }, opts); } exports.getInstance = getInstance; /** * Get info about a Google Cloud Filestore instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myInstance = gcp.filestore.getInstance({ * name: "my-filestore-instance", * }); * export const instanceIpAddresses = myInstance.then(myInstance => myInstance.networks?.ipAddresses); * export const instanceConnectMode = myInstance.then(myInstance => myInstance.networks?.connectMode); * export const instanceFileShareName = myInstance.then(myInstance => myInstance.fileShares?.name); * ``` */ function getInstanceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:filestore/getInstance:getInstance", { "location": args.location, "name": args.name, "project": args.project, }, opts); } exports.getInstanceOutput = getInstanceOutput; //# sourceMappingURL=getInstance.js.map