SecurityGateway

class SecurityGateway : KotlinCustomResource

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}}

Properties

Link copied to clipboard
val createTime: Output<String>

Output only. Timestamp when the resource was created.

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

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

Link copied to clipboard
val externalIps: Output<List<String>>

Output only. IP addresses that will be used for establishing connection to the endpoints.

Link copied to clipboard

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 id: Output<String>
Link copied to clipboard
val location: Output<String>?

(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 name: Output<String>

Identifier. Name of the resource.

Link copied to clipboard
val project: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Optional. User-settable SecurityGateway resource ID.

Link copied to clipboard
val state: Output<String>

Output only. The operational state of the SecurityGateway. Possible values: STATE_UNSPECIFIED CREATING UPDATING DELETING RUNNING DOWN ERROR

Link copied to clipboard
val updateTime: Output<String>

Output only. Timestamp when the resource was last modified.

Link copied to clipboard
val urn: Output<String>