@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
103 lines (102 loc) • 2.53 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get a VPN gateway within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_vpn_gateway = gcp.compute.getVPNGateway({
* name: "vpn-gateway-us-east1",
* });
* ```
*/
export declare function getVPNGateway(args: GetVPNGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetVPNGatewayResult>;
/**
* A collection of arguments for invoking getVPNGateway.
*/
export interface GetVPNGatewayArgs {
/**
* The name of the VPN gateway.
*
*
* - - -
*/
name: string;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
/**
* The region in which the resource belongs. If it
* is not provided, the project region is used.
*/
region?: string;
}
/**
* A collection of values returned by getVPNGateway.
*/
export interface GetVPNGatewayResult {
/**
* Description of this VPN gateway.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
/**
* The network of this VPN gateway.
*/
readonly network: string;
readonly project: string;
/**
* Region of this VPN gateway.
*/
readonly region: string;
/**
* The URI of the resource.
*/
readonly selfLink: string;
}
/**
* Get a VPN gateway within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_vpn_gateway = gcp.compute.getVPNGateway({
* name: "vpn-gateway-us-east1",
* });
* ```
*/
export declare function getVPNGatewayOutput(args: GetVPNGatewayOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVPNGatewayResult>;
/**
* A collection of arguments for invoking getVPNGateway.
*/
export interface GetVPNGatewayOutputArgs {
/**
* The name of the VPN gateway.
*
*
* - - -
*/
name: pulumi.Input<string>;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The region in which the resource belongs. If it
* is not provided, the project region is used.
*/
region?: pulumi.Input<string>;
}