@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
79 lines • 2.58 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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);
* ```
*/
export declare function getStaticIps(args: GetStaticIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetStaticIpsResult>;
/**
* A collection of arguments for invoking getStaticIps.
*/
export interface GetStaticIpsArgs {
/**
* The location to list Datastream IPs for. For example: `us-east1`.
*/
location: string;
/**
* Project from which to list static IP addresses. Defaults to project declared in the provider.
*/
project?: string;
}
/**
* A collection of values returned by getStaticIps.
*/
export interface GetStaticIpsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly project?: string;
/**
* A list of static IP addresses that Datastream will connect from.
*/
readonly staticIps: string[];
}
/**
* 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);
* ```
*/
export declare function getStaticIpsOutput(args: GetStaticIpsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStaticIpsResult>;
/**
* A collection of arguments for invoking getStaticIps.
*/
export interface GetStaticIpsOutputArgs {
/**
* The location to list Datastream IPs for. For example: `us-east1`.
*/
location: pulumi.Input<string>;
/**
* Project from which to list static IP addresses. Defaults to project declared in the provider.
*/
project?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getStaticIps.d.ts.map