1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. RegionTargetTcpProxy
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.compute.RegionTargetTcpProxy

Explore with Pulumi AI

Represents a RegionTargetTcpProxy resource, which is used by one or more forwarding rules to route incoming TCP requests to a regional TCP proxy load balancer.

To get more information about RegionTargetTcpProxy, see:

Example Usage

Region Target Tcp Proxy Basic

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

const defaultRegionHealthCheck = new gcp.compute.RegionHealthCheck("default", {
    name: "health-check",
    region: "europe-west4",
    timeoutSec: 1,
    checkIntervalSec: 1,
    tcpHealthCheck: {
        port: 80,
    },
});
const defaultRegionBackendService = new gcp.compute.RegionBackendService("default", {
    name: "backend-service",
    protocol: "TCP",
    timeoutSec: 10,
    region: "europe-west4",
    healthChecks: defaultRegionHealthCheck.id,
    loadBalancingScheme: "INTERNAL_MANAGED",
});
const _default = new gcp.compute.RegionTargetTcpProxy("default", {
    name: "test-proxy",
    region: "europe-west4",
    backendService: defaultRegionBackendService.id,
});
Copy
import pulumi
import pulumi_gcp as gcp

default_region_health_check = gcp.compute.RegionHealthCheck("default",
    name="health-check",
    region="europe-west4",
    timeout_sec=1,
    check_interval_sec=1,
    tcp_health_check={
        "port": 80,
    })
default_region_backend_service = gcp.compute.RegionBackendService("default",
    name="backend-service",
    protocol="TCP",
    timeout_sec=10,
    region="europe-west4",
    health_checks=default_region_health_check.id,
    load_balancing_scheme="INTERNAL_MANAGED")
default = gcp.compute.RegionTargetTcpProxy("default",
    name="test-proxy",
    region="europe-west4",
    backend_service=default_region_backend_service.id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultRegionHealthCheck, err := compute.NewRegionHealthCheck(ctx, "default", &compute.RegionHealthCheckArgs{
			Name:             pulumi.String("health-check"),
			Region:           pulumi.String("europe-west4"),
			TimeoutSec:       pulumi.Int(1),
			CheckIntervalSec: pulumi.Int(1),
			TcpHealthCheck: &compute.RegionHealthCheckTcpHealthCheckArgs{
				Port: pulumi.Int(80),
			},
		})
		if err != nil {
			return err
		}
		defaultRegionBackendService, err := compute.NewRegionBackendService(ctx, "default", &compute.RegionBackendServiceArgs{
			Name:                pulumi.String("backend-service"),
			Protocol:            pulumi.String("TCP"),
			TimeoutSec:          pulumi.Int(10),
			Region:              pulumi.String("europe-west4"),
			HealthChecks:        defaultRegionHealthCheck.ID(),
			LoadBalancingScheme: pulumi.String("INTERNAL_MANAGED"),
		})
		if err != nil {
			return err
		}
		_, err = compute.NewRegionTargetTcpProxy(ctx, "default", &compute.RegionTargetTcpProxyArgs{
			Name:           pulumi.String("test-proxy"),
			Region:         pulumi.String("europe-west4"),
			BackendService: defaultRegionBackendService.ID(),
		})
		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 defaultRegionHealthCheck = new Gcp.Compute.RegionHealthCheck("default", new()
    {
        Name = "health-check",
        Region = "europe-west4",
        TimeoutSec = 1,
        CheckIntervalSec = 1,
        TcpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckTcpHealthCheckArgs
        {
            Port = 80,
        },
    });

    var defaultRegionBackendService = new Gcp.Compute.RegionBackendService("default", new()
    {
        Name = "backend-service",
        Protocol = "TCP",
        TimeoutSec = 10,
        Region = "europe-west4",
        HealthChecks = defaultRegionHealthCheck.Id,
        LoadBalancingScheme = "INTERNAL_MANAGED",
    });

    var @default = new Gcp.Compute.RegionTargetTcpProxy("default", new()
    {
        Name = "test-proxy",
        Region = "europe-west4",
        BackendService = defaultRegionBackendService.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.RegionHealthCheck;
import com.pulumi.gcp.compute.RegionHealthCheckArgs;
import com.pulumi.gcp.compute.inputs.RegionHealthCheckTcpHealthCheckArgs;
import com.pulumi.gcp.compute.RegionBackendService;
import com.pulumi.gcp.compute.RegionBackendServiceArgs;
import com.pulumi.gcp.compute.RegionTargetTcpProxy;
import com.pulumi.gcp.compute.RegionTargetTcpProxyArgs;
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 defaultRegionHealthCheck = new RegionHealthCheck("defaultRegionHealthCheck", RegionHealthCheckArgs.builder()
            .name("health-check")
            .region("europe-west4")
            .timeoutSec(1)
            .checkIntervalSec(1)
            .tcpHealthCheck(RegionHealthCheckTcpHealthCheckArgs.builder()
                .port("80")
                .build())
            .build());

        var defaultRegionBackendService = new RegionBackendService("defaultRegionBackendService", RegionBackendServiceArgs.builder()
            .name("backend-service")
            .protocol("TCP")
            .timeoutSec(10)
            .region("europe-west4")
            .healthChecks(defaultRegionHealthCheck.id())
            .loadBalancingScheme("INTERNAL_MANAGED")
            .build());

        var default_ = new RegionTargetTcpProxy("default", RegionTargetTcpProxyArgs.builder()
            .name("test-proxy")
            .region("europe-west4")
            .backendService(defaultRegionBackendService.id())
            .build());

    }
}
Copy
resources:
  default:
    type: gcp:compute:RegionTargetTcpProxy
    properties:
      name: test-proxy
      region: europe-west4
      backendService: ${defaultRegionBackendService.id}
  defaultRegionBackendService:
    type: gcp:compute:RegionBackendService
    name: default
    properties:
      name: backend-service
      protocol: TCP
      timeoutSec: 10
      region: europe-west4
      healthChecks: ${defaultRegionHealthCheck.id}
      loadBalancingScheme: INTERNAL_MANAGED
  defaultRegionHealthCheck:
    type: gcp:compute:RegionHealthCheck
    name: default
    properties:
      name: health-check
      region: europe-west4
      timeoutSec: 1
      checkIntervalSec: 1
      tcpHealthCheck:
        port: '80'
Copy

Create RegionTargetTcpProxy Resource

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

Constructor syntax

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

@overload
def RegionTargetTcpProxy(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         backend_service: Optional[str] = None,
                         description: Optional[str] = None,
                         name: Optional[str] = None,
                         project: Optional[str] = None,
                         proxy_bind: Optional[bool] = None,
                         proxy_header: Optional[str] = None,
                         region: Optional[str] = None)
func NewRegionTargetTcpProxy(ctx *Context, name string, args RegionTargetTcpProxyArgs, opts ...ResourceOption) (*RegionTargetTcpProxy, error)
public RegionTargetTcpProxy(string name, RegionTargetTcpProxyArgs args, CustomResourceOptions? opts = null)
public RegionTargetTcpProxy(String name, RegionTargetTcpProxyArgs args)
public RegionTargetTcpProxy(String name, RegionTargetTcpProxyArgs args, CustomResourceOptions options)
type: gcp:compute:RegionTargetTcpProxy
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. RegionTargetTcpProxyArgs
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. RegionTargetTcpProxyArgs
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. RegionTargetTcpProxyArgs
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. RegionTargetTcpProxyArgs
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. RegionTargetTcpProxyArgs
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 regionTargetTcpProxyResource = new Gcp.Compute.RegionTargetTcpProxy("regionTargetTcpProxyResource", new()
{
    BackendService = "string",
    Description = "string",
    Name = "string",
    Project = "string",
    ProxyBind = false,
    ProxyHeader = "string",
    Region = "string",
});
Copy
example, err := compute.NewRegionTargetTcpProxy(ctx, "regionTargetTcpProxyResource", &compute.RegionTargetTcpProxyArgs{
	BackendService: pulumi.String("string"),
	Description:    pulumi.String("string"),
	Name:           pulumi.String("string"),
	Project:        pulumi.String("string"),
	ProxyBind:      pulumi.Bool(false),
	ProxyHeader:    pulumi.String("string"),
	Region:         pulumi.String("string"),
})
Copy
var regionTargetTcpProxyResource = new RegionTargetTcpProxy("regionTargetTcpProxyResource", RegionTargetTcpProxyArgs.builder()
    .backendService("string")
    .description("string")
    .name("string")
    .project("string")
    .proxyBind(false)
    .proxyHeader("string")
    .region("string")
    .build());
Copy
region_target_tcp_proxy_resource = gcp.compute.RegionTargetTcpProxy("regionTargetTcpProxyResource",
    backend_service="string",
    description="string",
    name="string",
    project="string",
    proxy_bind=False,
    proxy_header="string",
    region="string")
Copy
const regionTargetTcpProxyResource = new gcp.compute.RegionTargetTcpProxy("regionTargetTcpProxyResource", {
    backendService: "string",
    description: "string",
    name: "string",
    project: "string",
    proxyBind: false,
    proxyHeader: "string",
    region: "string",
});
Copy
type: gcp:compute:RegionTargetTcpProxy
properties:
    backendService: string
    description: string
    name: string
    project: string
    proxyBind: false
    proxyHeader: string
    region: string
Copy

RegionTargetTcpProxy 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 RegionTargetTcpProxy resource accepts the following input properties:

BackendService
This property is required.
Changes to this property will trigger replacement.
string
A reference to the BackendService resource.


Description Changes to this property will trigger replacement. string
An optional description of this resource.
Name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
ProxyBind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
ProxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
Region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
BackendService
This property is required.
Changes to this property will trigger replacement.
string
A reference to the BackendService resource.


Description Changes to this property will trigger replacement. string
An optional description of this resource.
Name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
ProxyBind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
ProxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
Region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
backendService
This property is required.
Changes to this property will trigger replacement.
String
A reference to the BackendService resource.


description Changes to this property will trigger replacement. String
An optional description of this resource.
name Changes to this property will trigger replacement. String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. Boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. String
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
region Changes to this property will trigger replacement. String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
backendService
This property is required.
Changes to this property will trigger replacement.
string
A reference to the BackendService resource.


description Changes to this property will trigger replacement. string
An optional description of this resource.
name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
backend_service
This property is required.
Changes to this property will trigger replacement.
str
A reference to the BackendService resource.


description Changes to this property will trigger replacement. str
An optional description of this resource.
name Changes to this property will trigger replacement. str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxy_bind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxy_header Changes to this property will trigger replacement. str
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
region Changes to this property will trigger replacement. str
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
backendService
This property is required.
Changes to this property will trigger replacement.
String
A reference to the BackendService resource.


description Changes to this property will trigger replacement. String
An optional description of this resource.
name Changes to this property will trigger replacement. String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. Boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. String
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
region Changes to this property will trigger replacement. String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.

Outputs

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

CreationTimestamp string
Creation timestamp in RFC3339 text format.
Id string
The provider-assigned unique ID for this managed resource.
ProxyId int
The unique identifier for the resource.
SelfLink string
The URI of the created resource.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
Id string
The provider-assigned unique ID for this managed resource.
ProxyId int
The unique identifier for the resource.
SelfLink string
The URI of the created resource.
creationTimestamp String
Creation timestamp in RFC3339 text format.
id String
The provider-assigned unique ID for this managed resource.
proxyId Integer
The unique identifier for the resource.
selfLink String
The URI of the created resource.
creationTimestamp string
Creation timestamp in RFC3339 text format.
id string
The provider-assigned unique ID for this managed resource.
proxyId number
The unique identifier for the resource.
selfLink string
The URI of the created resource.
creation_timestamp str
Creation timestamp in RFC3339 text format.
id str
The provider-assigned unique ID for this managed resource.
proxy_id int
The unique identifier for the resource.
self_link str
The URI of the created resource.
creationTimestamp String
Creation timestamp in RFC3339 text format.
id String
The provider-assigned unique ID for this managed resource.
proxyId Number
The unique identifier for the resource.
selfLink String
The URI of the created resource.

Look up Existing RegionTargetTcpProxy Resource

Get an existing RegionTargetTcpProxy 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?: RegionTargetTcpProxyState, opts?: CustomResourceOptions): RegionTargetTcpProxy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend_service: Optional[str] = None,
        creation_timestamp: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        proxy_bind: Optional[bool] = None,
        proxy_header: Optional[str] = None,
        proxy_id: Optional[int] = None,
        region: Optional[str] = None,
        self_link: Optional[str] = None) -> RegionTargetTcpProxy
func GetRegionTargetTcpProxy(ctx *Context, name string, id IDInput, state *RegionTargetTcpProxyState, opts ...ResourceOption) (*RegionTargetTcpProxy, error)
public static RegionTargetTcpProxy Get(string name, Input<string> id, RegionTargetTcpProxyState? state, CustomResourceOptions? opts = null)
public static RegionTargetTcpProxy get(String name, Output<String> id, RegionTargetTcpProxyState state, CustomResourceOptions options)
resources:  _:    type: gcp:compute:RegionTargetTcpProxy    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:
BackendService Changes to this property will trigger replacement. string
A reference to the BackendService resource.


CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description Changes to this property will trigger replacement. string
An optional description of this resource.
Name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
ProxyBind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
ProxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
ProxyId int
The unique identifier for the resource.
Region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
SelfLink string
The URI of the created resource.
BackendService Changes to this property will trigger replacement. string
A reference to the BackendService resource.


CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description Changes to this property will trigger replacement. string
An optional description of this resource.
Name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
ProxyBind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
ProxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
ProxyId int
The unique identifier for the resource.
Region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
SelfLink string
The URI of the created resource.
backendService Changes to this property will trigger replacement. String
A reference to the BackendService resource.


creationTimestamp String
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. String
An optional description of this resource.
name Changes to this property will trigger replacement. String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. Boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. String
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
proxyId Integer
The unique identifier for the resource.
region Changes to this property will trigger replacement. String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
selfLink String
The URI of the created resource.
backendService Changes to this property will trigger replacement. string
A reference to the BackendService resource.


creationTimestamp string
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. string
An optional description of this resource.
name Changes to this property will trigger replacement. string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. string
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
proxyId number
The unique identifier for the resource.
region Changes to this property will trigger replacement. string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
selfLink string
The URI of the created resource.
backend_service Changes to this property will trigger replacement. str
A reference to the BackendService resource.


creation_timestamp str
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. str
An optional description of this resource.
name Changes to this property will trigger replacement. str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxy_bind Changes to this property will trigger replacement. bool
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxy_header Changes to this property will trigger replacement. str
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
proxy_id int
The unique identifier for the resource.
region Changes to this property will trigger replacement. str
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
self_link str
The URI of the created resource.
backendService Changes to this property will trigger replacement. String
A reference to the BackendService resource.


creationTimestamp String
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. String
An optional description of this resource.
name Changes to this property will trigger replacement. String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
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.
proxyBind Changes to this property will trigger replacement. Boolean
This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
proxyHeader Changes to this property will trigger replacement. String
Specifies the type of proxy header to append before sending data to the backend. Default value is NONE. Possible values are: NONE, PROXY_V1.
proxyId Number
The unique identifier for the resource.
region Changes to this property will trigger replacement. String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
selfLink String
The URI of the created resource.

Import

RegionTargetTcpProxy can be imported using any of these accepted formats:

  • projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}

  • {{project}}/{{region}}/{{name}}

  • {{region}}/{{name}}

  • {{name}}

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

$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}
Copy
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{project}}/{{region}}/{{name}}
Copy
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{region}}/{{name}}
Copy
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{name}}
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.