SecurityGatewayArgs

data class SecurityGatewayArgs(val displayName: Output<String>? = null, val hubs: Output<List<SecurityGatewayHubArgs>>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val securityGatewayId: Output<String>? = null) : ConvertibleToJava<SecurityGatewayArgs>

Deployment of Security Gateway.

Example Usage

Beyondcorp Security Gateway Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.beyondcorp.SecurityGateway("example", {
securityGatewayId: "default",
displayName: "My Security Gateway resource",
hubs: [{
region: "us-central1",
}],
});
import pulumi
import pulumi_gcp as gcp
example = gcp.beyondcorp.SecurityGateway("example",
security_gateway_id="default",
display_name="My Security Gateway resource",
hubs=[{
"region": "us-central1",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var example = new Gcp.Beyondcorp.SecurityGateway("example", new()
{
SecurityGatewayId = "default",
DisplayName = "My Security Gateway resource",
Hubs = new[]
{
new Gcp.Beyondcorp.Inputs.SecurityGatewayHubArgs
{
Region = "us-central1",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/beyondcorp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := beyondcorp.NewSecurityGateway(ctx, "example", &beyondcorp.SecurityGatewayArgs{
SecurityGatewayId: pulumi.String("default"),
DisplayName: pulumi.String("My Security Gateway resource"),
Hubs: beyondcorp.SecurityGatewayHubArray{
&beyondcorp.SecurityGatewayHubArgs{
Region: pulumi.String("us-central1"),
},
},
})
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.SecurityGateway;
import com.pulumi.gcp.beyondcorp.SecurityGatewayArgs;
import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayHubArgs;
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 example = new SecurityGateway("example", SecurityGatewayArgs.builder()
.securityGatewayId("default")
.displayName("My Security Gateway resource")
.hubs(SecurityGatewayHubArgs.builder()
.region("us-central1")
.build())
.build());
}
}
resources:
example:
type: gcp:beyondcorp:SecurityGateway
properties:
securityGatewayId: default
displayName: My Security Gateway resource
hubs:
- region: us-central1

Import

SecurityGateway can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/securityGateways/{{security_gateway_id}}

  • {{project}}/{{location}}/{{security_gateway_id}}

  • {{location}}/{{security_gateway_id}} When using the pulumi import command, SecurityGateway can be imported using one of the formats above. For example:

$ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default projects/{{project}}/locations/{{location}}/securityGateways/{{security_gateway_id}}
$ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default {{project}}/{{location}}/{{security_gateway_id}}
$ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default {{location}}/{{security_gateway_id}}

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, hubs: Output<List<SecurityGatewayHubArgs>>? = null, location: Output<String>? = null, project: Output<String>? = null, securityGatewayId: Output<String>? = null)

Properties

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

Optional. An arbitrary user-provided name for the SecurityGateway. Cannot exceed 64 characters.

Link copied to clipboard
val hubs: Output<List<SecurityGatewayHubArgs>>? = null

Optional. Map of Hubs that represents regional data path deployment with GCP region as a key. Structure is documented below.

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

(Optional, Deprecated) Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. Must be omitted or set to global.

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 securityGatewayId: Output<String>? = null

Optional. User-settable SecurityGateway resource ID.

Functions

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