@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
289 lines (288 loc) • 9.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* A BeyondCorp AppGateway resource represents a BeyondCorp protected AppGateway to a remote application. It creates
* all the necessary GCP components needed for creating a BeyondCorp protected AppGateway. Multiple connectors can be
* authorised for a single AppGateway.
*
* To get more information about AppGateway, see:
*
* * [API documentation](https://cloud.google.com/beyondcorp/docs/reference/rest#rest-resource:-v1.projects.locations.appgateways)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/beyondcorp-enterprise/docs/enable-app-connector)
*
* ## Example Usage
*
* ### Beyondcorp App Gateway Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const appGateway = new gcp.beyondcorp.AppGateway("app_gateway", {
* name: "my-app-gateway",
* type: "TCP_PROXY",
* region: "us-central1",
* hostType: "GCP_REGIONAL_MIG",
* });
* ```
* ### Beyondcorp App Gateway Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const appGateway = new gcp.beyondcorp.AppGateway("app_gateway", {
* name: "my-app-gateway",
* type: "TCP_PROXY",
* region: "us-central1",
* displayName: "some display name",
* labels: {
* foo: "bar",
* bar: "baz",
* },
* hostType: "GCP_REGIONAL_MIG",
* });
* ```
*
* ## Import
*
* AppGateway can be imported using any of these accepted formats:
*
* * `projects/{{project}}/locations/{{region}}/appGateways/{{name}}`
*
* * `{{project}}/{{region}}/{{name}}`
*
* * `{{region}}/{{name}}`
*
* * `{{name}}`
*
* When using the `pulumi import` command, AppGateway can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:beyondcorp/appGateway:AppGateway default projects/{{project}}/locations/{{region}}/appGateways/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{project}}/{{region}}/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{region}}/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{name}}
* ```
*/
export declare class AppGateway extends pulumi.CustomResource {
/**
* Get an existing AppGateway resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AppGatewayState, opts?: pulumi.CustomResourceOptions): AppGateway;
/**
* Returns true if the given object is an instance of AppGateway. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AppGateway;
/**
* A list of connections allocated for the Gateway.
* Structure is documented below.
*/
readonly allocatedConnections: pulumi.Output<outputs.beyondcorp.AppGatewayAllocatedConnection[]>;
/**
* An arbitrary user-provided name for the AppGateway.
*/
readonly displayName: pulumi.Output<string | undefined>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
readonly effectiveLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* The type of hosting used by the AppGateway.
* Default value is `HOST_TYPE_UNSPECIFIED`.
* Possible values are: `HOST_TYPE_UNSPECIFIED`, `GCP_REGIONAL_MIG`.
*/
readonly hostType: pulumi.Output<string | undefined>;
/**
* Resource labels to represent user provided metadata.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* ID of the AppGateway.
*
*
* - - -
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
readonly pulumiLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* The region of the AppGateway.
*/
readonly region: pulumi.Output<string | undefined>;
/**
* Represents the different states of a AppGateway.
*/
readonly state: pulumi.Output<string>;
/**
* The type of network connectivity used by the AppGateway.
* Default value is `TYPE_UNSPECIFIED`.
* Possible values are: `TYPE_UNSPECIFIED`, `TCP_PROXY`.
*/
readonly type: pulumi.Output<string | undefined>;
/**
* Server-defined URI for this resource.
*/
readonly uri: pulumi.Output<string>;
/**
* Create a AppGateway resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: AppGatewayArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AppGateway resources.
*/
export interface AppGatewayState {
/**
* A list of connections allocated for the Gateway.
* Structure is documented below.
*/
allocatedConnections?: pulumi.Input<pulumi.Input<inputs.beyondcorp.AppGatewayAllocatedConnection>[]>;
/**
* An arbitrary user-provided name for the AppGateway.
*/
displayName?: pulumi.Input<string>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
effectiveLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The type of hosting used by the AppGateway.
* Default value is `HOST_TYPE_UNSPECIFIED`.
* Possible values are: `HOST_TYPE_UNSPECIFIED`, `GCP_REGIONAL_MIG`.
*/
hostType?: pulumi.Input<string>;
/**
* Resource labels to represent user provided metadata.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* ID of the AppGateway.
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
pulumiLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The region of the AppGateway.
*/
region?: pulumi.Input<string>;
/**
* Represents the different states of a AppGateway.
*/
state?: pulumi.Input<string>;
/**
* The type of network connectivity used by the AppGateway.
* Default value is `TYPE_UNSPECIFIED`.
* Possible values are: `TYPE_UNSPECIFIED`, `TCP_PROXY`.
*/
type?: pulumi.Input<string>;
/**
* Server-defined URI for this resource.
*/
uri?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AppGateway resource.
*/
export interface AppGatewayArgs {
/**
* An arbitrary user-provided name for the AppGateway.
*/
displayName?: pulumi.Input<string>;
/**
* The type of hosting used by the AppGateway.
* Default value is `HOST_TYPE_UNSPECIFIED`.
* Possible values are: `HOST_TYPE_UNSPECIFIED`, `GCP_REGIONAL_MIG`.
*/
hostType?: pulumi.Input<string>;
/**
* Resource labels to represent user provided metadata.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* ID of the AppGateway.
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The region of the AppGateway.
*/
region?: pulumi.Input<string>;
/**
* The type of network connectivity used by the AppGateway.
* Default value is `TYPE_UNSPECIFIED`.
* Possible values are: `TYPE_UNSPECIFIED`, `TCP_PROXY`.
*/
type?: pulumi.Input<string>;
}