UNPKG

@pulumi/gcp

Version:

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

58 lines 2.18 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.getStaticIpsOutput = exports.getStaticIps = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Returns the list of IP addresses that Datastream connects from. For more information see * the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const datastreamIps = gcp.datastream.getStaticIps({ * location: "us-west1", * project: "my-project", * }); * export const ipList = datastreamIps.then(datastreamIps => datastreamIps.staticIps); * ``` */ function getStaticIps(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:datastream/getStaticIps:getStaticIps", { "location": args.location, "project": args.project, }, opts); } exports.getStaticIps = getStaticIps; /** * Returns the list of IP addresses that Datastream connects from. For more information see * the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const datastreamIps = gcp.datastream.getStaticIps({ * location: "us-west1", * project: "my-project", * }); * export const ipList = datastreamIps.then(datastreamIps => datastreamIps.staticIps); * ``` */ function getStaticIpsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:datastream/getStaticIps:getStaticIps", { "location": args.location, "project": args.project, }, opts); } exports.getStaticIpsOutput = getStaticIpsOutput; //# sourceMappingURL=getStaticIps.js.map