@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
105 lines (104 loc) • 2.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a HA VPN Gateway within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const gateway = gcp.compute.getHcVpnGateway({
* name: "foobar",
* });
* ```
*/
export declare function getHcVpnGateway(args: GetHcVpnGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetHcVpnGatewayResult>;
/**
* A collection of arguments for invoking getHcVpnGateway.
*/
export interface GetHcVpnGatewayArgs {
/**
* The name of the forwarding rule.
*
*
* - - -
*/
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 getHcVpnGateway.
*/
export interface GetHcVpnGatewayResult {
readonly description: string;
readonly effectiveLabels: {
[key: string]: string;
};
readonly gatewayIpVersion: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labelFingerprint: string;
readonly labels: {
[key: string]: string;
};
readonly name: string;
readonly network: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly region?: string;
readonly selfLink: string;
readonly stackType: string;
readonly vpnInterfaces: outputs.compute.GetHcVpnGatewayVpnInterface[];
}
/**
* Get a HA VPN Gateway within GCE from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const gateway = gcp.compute.getHcVpnGateway({
* name: "foobar",
* });
* ```
*/
export declare function getHcVpnGatewayOutput(args: GetHcVpnGatewayOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHcVpnGatewayResult>;
/**
* A collection of arguments for invoking getHcVpnGateway.
*/
export interface GetHcVpnGatewayOutputArgs {
/**
* The name of the forwarding rule.
*
*
* - - -
*/
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>;
}