UNPKG

@pulumi/gcp

Version:

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

62 lines 2.35 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.getNetworkAttachmentOutput = exports.getNetworkAttachment = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get a specific network attachment within a region. For more information see * the [official documentation](https://cloud.google.com/vpc/docs/about-network-attachments) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/networkAttachments/get). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetworkAttachment({ * project: "my-project", * name: "my-network-attachment", * region: "europe-west1", * }); * ``` */ function getNetworkAttachment(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getNetworkAttachment:getNetworkAttachment", { "name": args.name, "project": args.project, "region": args.region, }, opts); } exports.getNetworkAttachment = getNetworkAttachment; /** * Get a specific network attachment within a region. For more information see * the [official documentation](https://cloud.google.com/vpc/docs/about-network-attachments) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/networkAttachments/get). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetworkAttachment({ * project: "my-project", * name: "my-network-attachment", * region: "europe-west1", * }); * ``` */ function getNetworkAttachmentOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getNetworkAttachment:getNetworkAttachment", { "name": args.name, "project": args.project, "region": args.region, }, opts); } exports.getNetworkAttachmentOutput = getNetworkAttachmentOutput; //# sourceMappingURL=getNetworkAttachment.js.map