UNPKG

@pulumi/docker

Version:

A Pulumi package for interacting with Docker in Pulumi programs

50 lines 1.52 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.getNetworkOutput = exports.getNetwork = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `docker.Network` provides details about a specific Docker Network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as docker from "@pulumi/docker"; * * const main = docker.getNetwork({ * name: "main", * }); * ``` */ function getNetwork(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("docker:index/getNetwork:getNetwork", { "name": args.name, }, opts); } exports.getNetwork = getNetwork; /** * `docker.Network` provides details about a specific Docker Network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as docker from "@pulumi/docker"; * * const main = docker.getNetwork({ * name: "main", * }); * ``` */ function getNetworkOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("docker:index/getNetwork:getNetwork", { "name": args.name, }, opts); } exports.getNetworkOutput = getNetworkOutput; //# sourceMappingURL=getNetwork.js.map