AppGatewayArgs

data class AppGatewayArgs(val displayName: Output<String>? = null, val hostType: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val region: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<AppGatewayArgs>

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:

Example Usage

Beyondcorp App Gateway Basic

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",
});
import pulumi
import pulumi_gcp as gcp
app_gateway = gcp.beyondcorp.AppGateway("app_gateway",
name="my-app-gateway",
type="TCP_PROXY",
region="us-central1",
host_type="GCP_REGIONAL_MIG")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var appGateway = new Gcp.Beyondcorp.AppGateway("app_gateway", new()
{
Name = "my-app-gateway",
Type = "TCP_PROXY",
Region = "us-central1",
HostType = "GCP_REGIONAL_MIG",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/beyondcorp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := beyondcorp.NewAppGateway(ctx, "app_gateway", &beyondcorp.AppGatewayArgs{
Name: pulumi.String("my-app-gateway"),
Type: pulumi.String("TCP_PROXY"),
Region: pulumi.String("us-central1"),
HostType: pulumi.String("GCP_REGIONAL_MIG"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.beyondcorp.AppGateway;
import com.pulumi.gcp.beyondcorp.AppGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var appGateway = new AppGateway("appGateway", AppGatewayArgs.builder()
.name("my-app-gateway")
.type("TCP_PROXY")
.region("us-central1")
.hostType("GCP_REGIONAL_MIG")
.build());
}
}
resources:
appGateway:
type: gcp:beyondcorp:AppGateway
name: app_gateway
properties:
name: my-app-gateway
type: TCP_PROXY
region: us-central1
hostType: GCP_REGIONAL_MIG

Beyondcorp App Gateway Full

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 pulumi
import pulumi_gcp as gcp
app_gateway = gcp.beyondcorp.AppGateway("app_gateway",
name="my-app-gateway",
type="TCP_PROXY",
region="us-central1",
display_name="some display name",
labels={
"foo": "bar",
"bar": "baz",
},
host_type="GCP_REGIONAL_MIG")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var appGateway = new Gcp.Beyondcorp.AppGateway("app_gateway", new()
{
Name = "my-app-gateway",
Type = "TCP_PROXY",
Region = "us-central1",
DisplayName = "some display name",
Labels =
{
{ "foo", "bar" },
{ "bar", "baz" },
},
HostType = "GCP_REGIONAL_MIG",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/beyondcorp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := beyondcorp.NewAppGateway(ctx, "app_gateway", &beyondcorp.AppGatewayArgs{
Name: pulumi.String("my-app-gateway"),
Type: pulumi.String("TCP_PROXY"),
Region: pulumi.String("us-central1"),
DisplayName: pulumi.String("some display name"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
"bar": pulumi.String("baz"),
},
HostType: pulumi.String("GCP_REGIONAL_MIG"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.beyondcorp.AppGateway;
import com.pulumi.gcp.beyondcorp.AppGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var appGateway = new AppGateway("appGateway", AppGatewayArgs.builder()
.name("my-app-gateway")
.type("TCP_PROXY")
.region("us-central1")
.displayName("some display name")
.labels(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("bar", "baz")
))
.hostType("GCP_REGIONAL_MIG")
.build());
}
}
resources:
appGateway:
type: gcp:beyondcorp:AppGateway
name: app_gateway
properties:
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:

$ pulumi import gcp:beyondcorp/appGateway:AppGateway default projects/{{project}}/locations/{{region}}/appGateways/{{name}}
$ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{region}}/{{name}}
$ pulumi import gcp:beyondcorp/appGateway:AppGateway default {{name}}

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, hostType: Output<String>? = null, labels: Output<Map<String, String>>? = null, name: Output<String>? = null, project: Output<String>? = null, region: Output<String>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val displayName: Output<String>? = null

An arbitrary user-provided name for the AppGateway.

Link copied to clipboard
val hostType: Output<String>? = null

The type of hosting used by the AppGateway. Default value is HOST_TYPE_UNSPECIFIED. Possible values are: HOST_TYPE_UNSPECIFIED, GCP_REGIONAL_MIG.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

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 effective_labels for all of the labels present on the resource.

Link copied to clipboard
val name: Output<String>? = null

ID of the AppGateway.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val region: Output<String>? = null

The region of the AppGateway.

Link copied to clipboard
val type: Output<String>? = null

The type of network connectivity used by the AppGateway. Default value is TYPE_UNSPECIFIED. Possible values are: TYPE_UNSPECIFIED, TCP_PROXY.

Functions

Link copied to clipboard
open override fun toJava(): AppGatewayArgs