1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networksecurity
  5. InterceptDeployment
Google Cloud v8.25.1 published on Wednesday, Apr 9, 2025 by Pulumi

gcp.networksecurity.InterceptDeployment

Explore with Pulumi AI

Example Usage

Network Security Intercept Deployment Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const network = new gcp.compute.Network("network", {
    name: "example-network",
    autoCreateSubnetworks: false,
});
const subnetwork = new gcp.compute.Subnetwork("subnetwork", {
    name: "example-subnet",
    region: "us-central1",
    ipCidrRange: "10.1.0.0/16",
    network: network.name,
});
const healthCheck = new gcp.compute.RegionHealthCheck("health_check", {
    name: "example-hc",
    region: "us-central1",
    httpHealthCheck: {
        port: 80,
    },
});
const backendService = new gcp.compute.RegionBackendService("backend_service", {
    name: "example-bs",
    region: "us-central1",
    healthChecks: healthCheck.id,
    protocol: "UDP",
    loadBalancingScheme: "INTERNAL",
});
const forwardingRule = new gcp.compute.ForwardingRule("forwarding_rule", {
    name: "example-fwr",
    region: "us-central1",
    network: network.name,
    subnetwork: subnetwork.name,
    backendService: backendService.id,
    loadBalancingScheme: "INTERNAL",
    ports: ["6081"],
    ipProtocol: "UDP",
});
const deploymentGroup = new gcp.networksecurity.InterceptDeploymentGroup("deployment_group", {
    interceptDeploymentGroupId: "example-dg",
    location: "global",
    network: network.id,
});
const _default = new gcp.networksecurity.InterceptDeployment("default", {
    interceptDeploymentId: "example-deployment",
    location: "us-central1-a",
    forwardingRule: forwardingRule.id,
    interceptDeploymentGroup: deploymentGroup.id,
    description: "some description",
    labels: {
        foo: "bar",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

network = gcp.compute.Network("network",
    name="example-network",
    auto_create_subnetworks=False)
subnetwork = gcp.compute.Subnetwork("subnetwork",
    name="example-subnet",
    region="us-central1",
    ip_cidr_range="10.1.0.0/16",
    network=network.name)
health_check = gcp.compute.RegionHealthCheck("health_check",
    name="example-hc",
    region="us-central1",
    http_health_check={
        "port": 80,
    })
backend_service = gcp.compute.RegionBackendService("backend_service",
    name="example-bs",
    region="us-central1",
    health_checks=health_check.id,
    protocol="UDP",
    load_balancing_scheme="INTERNAL")
forwarding_rule = gcp.compute.ForwardingRule("forwarding_rule",
    name="example-fwr",
    region="us-central1",
    network=network.name,
    subnetwork=subnetwork.name,
    backend_service=backend_service.id,
    load_balancing_scheme="INTERNAL",
    ports=["6081"],
    ip_protocol="UDP")
deployment_group = gcp.networksecurity.InterceptDeploymentGroup("deployment_group",
    intercept_deployment_group_id="example-dg",
    location="global",
    network=network.id)
default = gcp.networksecurity.InterceptDeployment("default",
    intercept_deployment_id="example-deployment",
    location="us-central1-a",
    forwarding_rule=forwarding_rule.id,
    intercept_deployment_group=deployment_group.id,
    description="some description",
    labels={
        "foo": "bar",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		network, err := compute.NewNetwork(ctx, "network", &compute.NetworkArgs{
			Name:                  pulumi.String("example-network"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		subnetwork, err := compute.NewSubnetwork(ctx, "subnetwork", &compute.SubnetworkArgs{
			Name:        pulumi.String("example-subnet"),
			Region:      pulumi.String("us-central1"),
			IpCidrRange: pulumi.String("10.1.0.0/16"),
			Network:     network.Name,
		})
		if err != nil {
			return err
		}
		healthCheck, err := compute.NewRegionHealthCheck(ctx, "health_check", &compute.RegionHealthCheckArgs{
			Name:   pulumi.String("example-hc"),
			Region: pulumi.String("us-central1"),
			HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
				Port: pulumi.Int(80),
			},
		})
		if err != nil {
			return err
		}
		backendService, err := compute.NewRegionBackendService(ctx, "backend_service", &compute.RegionBackendServiceArgs{
			Name:                pulumi.String("example-bs"),
			Region:              pulumi.String("us-central1"),
			HealthChecks:        healthCheck.ID(),
			Protocol:            pulumi.String("UDP"),
			LoadBalancingScheme: pulumi.String("INTERNAL"),
		})
		if err != nil {
			return err
		}
		forwardingRule, err := compute.NewForwardingRule(ctx, "forwarding_rule", &compute.ForwardingRuleArgs{
			Name:                pulumi.String("example-fwr"),
			Region:              pulumi.String("us-central1"),
			Network:             network.Name,
			Subnetwork:          subnetwork.Name,
			BackendService:      backendService.ID(),
			LoadBalancingScheme: pulumi.String("INTERNAL"),
			Ports: pulumi.StringArray{
				pulumi.String("6081"),
			},
			IpProtocol: pulumi.String("UDP"),
		})
		if err != nil {
			return err
		}
		deploymentGroup, err := networksecurity.NewInterceptDeploymentGroup(ctx, "deployment_group", &networksecurity.InterceptDeploymentGroupArgs{
			InterceptDeploymentGroupId: pulumi.String("example-dg"),
			Location:                   pulumi.String("global"),
			Network:                    network.ID(),
		})
		if err != nil {
			return err
		}
		_, err = networksecurity.NewInterceptDeployment(ctx, "default", &networksecurity.InterceptDeploymentArgs{
			InterceptDeploymentId:    pulumi.String("example-deployment"),
			Location:                 pulumi.String("us-central1-a"),
			ForwardingRule:           forwardingRule.ID(),
			InterceptDeploymentGroup: deploymentGroup.ID(),
			Description:              pulumi.String("some description"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var network = new Gcp.Compute.Network("network", new()
    {
        Name = "example-network",
        AutoCreateSubnetworks = false,
    });

    var subnetwork = new Gcp.Compute.Subnetwork("subnetwork", new()
    {
        Name = "example-subnet",
        Region = "us-central1",
        IpCidrRange = "10.1.0.0/16",
        Network = network.Name,
    });

    var healthCheck = new Gcp.Compute.RegionHealthCheck("health_check", new()
    {
        Name = "example-hc",
        Region = "us-central1",
        HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
        {
            Port = 80,
        },
    });

    var backendService = new Gcp.Compute.RegionBackendService("backend_service", new()
    {
        Name = "example-bs",
        Region = "us-central1",
        HealthChecks = healthCheck.Id,
        Protocol = "UDP",
        LoadBalancingScheme = "INTERNAL",
    });

    var forwardingRule = new Gcp.Compute.ForwardingRule("forwarding_rule", new()
    {
        Name = "example-fwr",
        Region = "us-central1",
        Network = network.Name,
        Subnetwork = subnetwork.Name,
        BackendService = backendService.Id,
        LoadBalancingScheme = "INTERNAL",
        Ports = new[]
        {
            "6081",
        },
        IpProtocol = "UDP",
    });

    var deploymentGroup = new Gcp.NetworkSecurity.InterceptDeploymentGroup("deployment_group", new()
    {
        InterceptDeploymentGroupId = "example-dg",
        Location = "global",
        Network = network.Id,
    });

    var @default = new Gcp.NetworkSecurity.InterceptDeployment("default", new()
    {
        InterceptDeploymentId = "example-deployment",
        Location = "us-central1-a",
        ForwardingRule = forwardingRule.Id,
        InterceptDeploymentGroup = deploymentGroup.Id,
        Description = "some description",
        Labels = 
        {
            { "foo", "bar" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.compute.RegionHealthCheck;
import com.pulumi.gcp.compute.RegionHealthCheckArgs;
import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
import com.pulumi.gcp.compute.RegionBackendService;
import com.pulumi.gcp.compute.RegionBackendServiceArgs;
import com.pulumi.gcp.compute.ForwardingRule;
import com.pulumi.gcp.compute.ForwardingRuleArgs;
import com.pulumi.gcp.networksecurity.InterceptDeploymentGroup;
import com.pulumi.gcp.networksecurity.InterceptDeploymentGroupArgs;
import com.pulumi.gcp.networksecurity.InterceptDeployment;
import com.pulumi.gcp.networksecurity.InterceptDeploymentArgs;
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 network = new Network("network", NetworkArgs.builder()
            .name("example-network")
            .autoCreateSubnetworks(false)
            .build());

        var subnetwork = new Subnetwork("subnetwork", SubnetworkArgs.builder()
            .name("example-subnet")
            .region("us-central1")
            .ipCidrRange("10.1.0.0/16")
            .network(network.name())
            .build());

        var healthCheck = new RegionHealthCheck("healthCheck", RegionHealthCheckArgs.builder()
            .name("example-hc")
            .region("us-central1")
            .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
                .port(80)
                .build())
            .build());

        var backendService = new RegionBackendService("backendService", RegionBackendServiceArgs.builder()
            .name("example-bs")
            .region("us-central1")
            .healthChecks(healthCheck.id())
            .protocol("UDP")
            .loadBalancingScheme("INTERNAL")
            .build());

        var forwardingRule = new ForwardingRule("forwardingRule", ForwardingRuleArgs.builder()
            .name("example-fwr")
            .region("us-central1")
            .network(network.name())
            .subnetwork(subnetwork.name())
            .backendService(backendService.id())
            .loadBalancingScheme("INTERNAL")
            .ports("6081")
            .ipProtocol("UDP")
            .build());

        var deploymentGroup = new InterceptDeploymentGroup("deploymentGroup", InterceptDeploymentGroupArgs.builder()
            .interceptDeploymentGroupId("example-dg")
            .location("global")
            .network(network.id())
            .build());

        var default_ = new InterceptDeployment("default", InterceptDeploymentArgs.builder()
            .interceptDeploymentId("example-deployment")
            .location("us-central1-a")
            .forwardingRule(forwardingRule.id())
            .interceptDeploymentGroup(deploymentGroup.id())
            .description("some description")
            .labels(Map.of("foo", "bar"))
            .build());

    }
}
Copy
resources:
  network:
    type: gcp:compute:Network
    properties:
      name: example-network
      autoCreateSubnetworks: false
  subnetwork:
    type: gcp:compute:Subnetwork
    properties:
      name: example-subnet
      region: us-central1
      ipCidrRange: 10.1.0.0/16
      network: ${network.name}
  healthCheck:
    type: gcp:compute:RegionHealthCheck
    name: health_check
    properties:
      name: example-hc
      region: us-central1
      httpHealthCheck:
        port: 80
  backendService:
    type: gcp:compute:RegionBackendService
    name: backend_service
    properties:
      name: example-bs
      region: us-central1
      healthChecks: ${healthCheck.id}
      protocol: UDP
      loadBalancingScheme: INTERNAL
  forwardingRule:
    type: gcp:compute:ForwardingRule
    name: forwarding_rule
    properties:
      name: example-fwr
      region: us-central1
      network: ${network.name}
      subnetwork: ${subnetwork.name}
      backendService: ${backendService.id}
      loadBalancingScheme: INTERNAL
      ports:
        - 6081
      ipProtocol: UDP
  deploymentGroup:
    type: gcp:networksecurity:InterceptDeploymentGroup
    name: deployment_group
    properties:
      interceptDeploymentGroupId: example-dg
      location: global
      network: ${network.id}
  default:
    type: gcp:networksecurity:InterceptDeployment
    properties:
      interceptDeploymentId: example-deployment
      location: us-central1-a
      forwardingRule: ${forwardingRule.id}
      interceptDeploymentGroup: ${deploymentGroup.id}
      description: some description
      labels:
        foo: bar
Copy

Create InterceptDeployment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InterceptDeployment(name: string, args: InterceptDeploymentArgs, opts?: CustomResourceOptions);
@overload
def InterceptDeployment(resource_name: str,
                        args: InterceptDeploymentArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def InterceptDeployment(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        forwarding_rule: Optional[str] = None,
                        intercept_deployment_group: Optional[str] = None,
                        intercept_deployment_id: Optional[str] = None,
                        location: Optional[str] = None,
                        description: Optional[str] = None,
                        labels: Optional[Mapping[str, str]] = None,
                        project: Optional[str] = None)
func NewInterceptDeployment(ctx *Context, name string, args InterceptDeploymentArgs, opts ...ResourceOption) (*InterceptDeployment, error)
public InterceptDeployment(string name, InterceptDeploymentArgs args, CustomResourceOptions? opts = null)
public InterceptDeployment(String name, InterceptDeploymentArgs args)
public InterceptDeployment(String name, InterceptDeploymentArgs args, CustomResourceOptions options)
type: gcp:networksecurity:InterceptDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InterceptDeploymentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InterceptDeploymentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InterceptDeploymentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InterceptDeploymentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InterceptDeploymentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var interceptDeploymentResource = new Gcp.NetworkSecurity.InterceptDeployment("interceptDeploymentResource", new()
{
    ForwardingRule = "string",
    InterceptDeploymentGroup = "string",
    InterceptDeploymentId = "string",
    Location = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Project = "string",
});
Copy
example, err := networksecurity.NewInterceptDeployment(ctx, "interceptDeploymentResource", &networksecurity.InterceptDeploymentArgs{
	ForwardingRule:           pulumi.String("string"),
	InterceptDeploymentGroup: pulumi.String("string"),
	InterceptDeploymentId:    pulumi.String("string"),
	Location:                 pulumi.String("string"),
	Description:              pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
})
Copy
var interceptDeploymentResource = new InterceptDeployment("interceptDeploymentResource", InterceptDeploymentArgs.builder()
    .forwardingRule("string")
    .interceptDeploymentGroup("string")
    .interceptDeploymentId("string")
    .location("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .project("string")
    .build());
Copy
intercept_deployment_resource = gcp.networksecurity.InterceptDeployment("interceptDeploymentResource",
    forwarding_rule="string",
    intercept_deployment_group="string",
    intercept_deployment_id="string",
    location="string",
    description="string",
    labels={
        "string": "string",
    },
    project="string")
Copy
const interceptDeploymentResource = new gcp.networksecurity.InterceptDeployment("interceptDeploymentResource", {
    forwardingRule: "string",
    interceptDeploymentGroup: "string",
    interceptDeploymentId: "string",
    location: "string",
    description: "string",
    labels: {
        string: "string",
    },
    project: "string",
});
Copy
type: gcp:networksecurity:InterceptDeployment
properties:
    description: string
    forwardingRule: string
    interceptDeploymentGroup: string
    interceptDeploymentId: string
    labels:
        string: string
    location: string
    project: string
Copy

InterceptDeployment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The InterceptDeployment resource accepts the following input properties:

ForwardingRule
This property is required.
Changes to this property will trigger replacement.
string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
InterceptDeploymentGroup
This property is required.
Changes to this property will trigger replacement.
string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
InterceptDeploymentId
This property is required.
Changes to this property will trigger replacement.
string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


Location
This property is required.
Changes to this property will trigger replacement.
string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
Description string
User-provided description of the deployment. Used as additional context for the deployment.
Labels Dictionary<string, string>
Labels are key/value pairs that help to organize and filter resources. 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.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
ForwardingRule
This property is required.
Changes to this property will trigger replacement.
string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
InterceptDeploymentGroup
This property is required.
Changes to this property will trigger replacement.
string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
InterceptDeploymentId
This property is required.
Changes to this property will trigger replacement.
string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


Location
This property is required.
Changes to this property will trigger replacement.
string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
Description string
User-provided description of the deployment. Used as additional context for the deployment.
Labels map[string]string
Labels are key/value pairs that help to organize and filter resources. 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.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
forwardingRule
This property is required.
Changes to this property will trigger replacement.
String
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup
This property is required.
Changes to this property will trigger replacement.
String
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId
This property is required.
Changes to this property will trigger replacement.
String
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


location
This property is required.
Changes to this property will trigger replacement.
String
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
description String
User-provided description of the deployment. Used as additional context for the deployment.
labels Map<String,String>
Labels are key/value pairs that help to organize and filter resources. 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.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
forwardingRule
This property is required.
Changes to this property will trigger replacement.
string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup
This property is required.
Changes to this property will trigger replacement.
string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId
This property is required.
Changes to this property will trigger replacement.
string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


location
This property is required.
Changes to this property will trigger replacement.
string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
description string
User-provided description of the deployment. Used as additional context for the deployment.
labels {[key: string]: string}
Labels are key/value pairs that help to organize and filter resources. 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.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
forwarding_rule
This property is required.
Changes to this property will trigger replacement.
str
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
intercept_deployment_group
This property is required.
Changes to this property will trigger replacement.
str
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
intercept_deployment_id
This property is required.
Changes to this property will trigger replacement.
str
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


location
This property is required.
Changes to this property will trigger replacement.
str
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
description str
User-provided description of the deployment. Used as additional context for the deployment.
labels Mapping[str, str]
Labels are key/value pairs that help to organize and filter resources. 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.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
forwardingRule
This property is required.
Changes to this property will trigger replacement.
String
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup
This property is required.
Changes to this property will trigger replacement.
String
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId
This property is required.
Changes to this property will trigger replacement.
String
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


location
This property is required.
Changes to this property will trigger replacement.
String
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
description String
User-provided description of the deployment. Used as additional context for the deployment.
labels Map<String>
Labels are key/value pairs that help to organize and filter resources. 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.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the InterceptDeployment resource produces the following output properties:

CreateTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
State string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
UpdateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
CreateTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
State string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
UpdateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime String
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling Boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state String
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime String
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
create_time str
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
name str
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state str
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
update_time str
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime String
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling Boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state String
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime String
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.

Look up Existing InterceptDeployment Resource

Get an existing InterceptDeployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: InterceptDeploymentState, opts?: CustomResourceOptions): InterceptDeployment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        forwarding_rule: Optional[str] = None,
        intercept_deployment_group: Optional[str] = None,
        intercept_deployment_id: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        reconciling: Optional[bool] = None,
        state: Optional[str] = None,
        update_time: Optional[str] = None) -> InterceptDeployment
func GetInterceptDeployment(ctx *Context, name string, id IDInput, state *InterceptDeploymentState, opts ...ResourceOption) (*InterceptDeployment, error)
public static InterceptDeployment Get(string name, Input<string> id, InterceptDeploymentState? state, CustomResourceOptions? opts = null)
public static InterceptDeployment get(String name, Output<String> id, InterceptDeploymentState state, CustomResourceOptions options)
resources:  _:    type: gcp:networksecurity:InterceptDeployment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
Description string
User-provided description of the deployment. Used as additional context for the deployment.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
ForwardingRule Changes to this property will trigger replacement. string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
InterceptDeploymentGroup Changes to this property will trigger replacement. string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
InterceptDeploymentId Changes to this property will trigger replacement. string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


Labels Dictionary<string, string>
Labels are key/value pairs that help to organize and filter resources. 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.
Location Changes to this property will trigger replacement. string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
Name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
State string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
UpdateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
CreateTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
Description string
User-provided description of the deployment. Used as additional context for the deployment.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
ForwardingRule Changes to this property will trigger replacement. string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
InterceptDeploymentGroup Changes to this property will trigger replacement. string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
InterceptDeploymentId Changes to this property will trigger replacement. string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


Labels map[string]string
Labels are key/value pairs that help to organize and filter resources. 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.
Location Changes to this property will trigger replacement. string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
Name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
State string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
UpdateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime String
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
description String
User-provided description of the deployment. Used as additional context for the deployment.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
forwardingRule Changes to this property will trigger replacement. String
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup Changes to this property will trigger replacement. String
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId Changes to this property will trigger replacement. String
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


labels Map<String,String>
Labels are key/value pairs that help to organize and filter resources. 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.
location Changes to this property will trigger replacement. String
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
name String
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling Boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state String
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime String
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime string
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
description string
User-provided description of the deployment. Used as additional context for the deployment.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
forwardingRule Changes to this property will trigger replacement. string
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup Changes to this property will trigger replacement. string
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId Changes to this property will trigger replacement. string
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


labels {[key: string]: string}
Labels are key/value pairs that help to organize and filter resources. 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.
location Changes to this property will trigger replacement. string
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
name string
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state string
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime string
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
create_time str
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
description str
User-provided description of the deployment. Used as additional context for the deployment.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
forwarding_rule Changes to this property will trigger replacement. str
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
intercept_deployment_group Changes to this property will trigger replacement. str
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
intercept_deployment_id Changes to this property will trigger replacement. str
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


labels Mapping[str, str]
Labels are key/value pairs that help to organize and filter resources. 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.
location Changes to this property will trigger replacement. str
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
name str
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling bool
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state str
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
update_time str
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.
createTime String
The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
description String
User-provided description of the deployment. Used as additional context for the deployment.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
forwardingRule Changes to this property will trigger replacement. String
The regional forwarding rule that fronts the interceptors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
interceptDeploymentGroup Changes to this property will trigger replacement. String
The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/interceptDeploymentGroups/my-dg. See https://google.aip.dev/124.
interceptDeploymentId Changes to this property will trigger replacement. String
The ID to use for the new deployment, which will become the final component of the deployment's resource name.


labels Map<String>
Labels are key/value pairs that help to organize and filter resources. 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.
location Changes to this property will trigger replacement. String
The cloud location of the deployment, e.g. us-central1-a or asia-south1-b.
name String
The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/interceptDeployments/my-dep. See https://google.aip.dev/122 for more details.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reconciling Boolean
The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
state String
The current state of the deployment. See https://google.aip.dev/216. Possible values: STATE_UNSPECIFIED ACTIVE CREATING DELETING OUT_OF_SYNC DELETE_FAILED
updateTime String
The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.

Import

InterceptDeployment can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}

  • {{project}}/{{location}}/{{intercept_deployment_id}}

  • {{location}}/{{intercept_deployment_id}}

When using the pulumi import command, InterceptDeployment can be imported using one of the formats above. For example:

$ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}
Copy
$ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{project}}/{{location}}/{{intercept_deployment_id}}
Copy
$ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{location}}/{{intercept_deployment_id}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.