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:
- API documentation
- How-to Guides
Example Usage
Region Target Tcp Proxy Basic
Coming soon!
Coming soon!
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()
.region("europe-west4")
.timeoutSec(1)
.checkIntervalSec(1)
.tcpHealthCheck(RegionHealthCheckTcpHealthCheckArgs.builder()
.port("80")
.build())
.build());
var defaultRegionBackendService = new RegionBackendService("defaultRegionBackendService", RegionBackendServiceArgs.builder()
.protocol("TCP")
.timeoutSec(10)
.region("europe-west4")
.healthChecks(defaultRegionHealthCheck.id())
.loadBalancingScheme("INTERNAL_MANAGED")
.build());
var defaultRegionTargetTcpProxy = new RegionTargetTcpProxy("defaultRegionTargetTcpProxy", RegionTargetTcpProxyArgs.builder()
.region("europe-west4")
.backendService(defaultRegionBackendService.id())
.build());
}
}
Coming soon!
Coming soon!
resources:
defaultRegionTargetTcpProxy:
type: gcp:compute:RegionTargetTcpProxy
properties:
region: europe-west4
backendService: ${defaultRegionBackendService.id}
defaultRegionBackendService:
type: gcp:compute:RegionBackendService
properties:
protocol: TCP
timeoutSec: 10
region: europe-west4
healthChecks:
- ${defaultRegionHealthCheck.id}
loadBalancingScheme: INTERNAL_MANAGED
defaultRegionHealthCheck:
type: gcp:compute:RegionHealthCheck
properties:
region: europe-west4
timeoutSec: 1
checkIntervalSec: 1
tcpHealthCheck:
port: '80'
Create RegionTargetTcpProxy Resource
new RegionTargetTcpProxy(name: string, args: RegionTargetTcpProxyArgs, opts?: CustomResourceOptions);
@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)
@overload
def RegionTargetTcpProxy(resource_name: str,
args: RegionTargetTcpProxyArgs,
opts: Optional[ResourceOptions] = 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.
- name string
- The unique name of the resource.
- args RegionTargetTcpProxyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args RegionTargetTcpProxyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegionTargetTcpProxyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegionTargetTcpProxyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The RegionTargetTcpProxy resource accepts the following input properties:
- Backend
Service string A reference to the BackendService resource.
- Description string
An optional description of this resource.
- Name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Proxy
Bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- Proxy
Header 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 string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- Backend
Service string A reference to the BackendService resource.
- Description string
An optional description of this resource.
- Name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Proxy
Bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- Proxy
Header 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 string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- backend
Service String A reference to the BackendService resource.
- description String
An optional description of this resource.
- name 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 String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind Boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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 String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- backend
Service string A reference to the BackendService resource.
- description string
An optional description of this resource.
- name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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 string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- backend_
service str A reference to the BackendService resource.
- description str
An optional description of this resource.
- name 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 str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy_
bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy_
header 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 str
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- backend
Service String A reference to the BackendService resource.
- description String
An optional description of this resource.
- name 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 String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind Boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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 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:
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Id string
The provider-assigned unique ID for this managed resource.
- Proxy
Id int The unique identifier for the resource.
- Self
Link string The URI of the created resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Id string
The provider-assigned unique ID for this managed resource.
- Proxy
Id int The unique identifier for the resource.
- Self
Link string The URI of the created resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- id String
The provider-assigned unique ID for this managed resource.
- proxy
Id Integer The unique identifier for the resource.
- self
Link String The URI of the created resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- id string
The provider-assigned unique ID for this managed resource.
- proxy
Id number The unique identifier for the resource.
- self
Link 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.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- id String
The provider-assigned unique ID for this managed resource.
- proxy
Id Number The unique identifier for the resource.
- self
Link 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Backend
Service string A reference to the BackendService resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource.
- Name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Proxy
Bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- Proxy
Header 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
.- Proxy
Id int The unique identifier for the resource.
- Region string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- Backend
Service string A reference to the BackendService resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource.
- Name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Proxy
Bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- Proxy
Header 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
.- Proxy
Id int The unique identifier for the resource.
- Region string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- backend
Service String A reference to the BackendService resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- description String
An optional description of this resource.
- name 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 String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind Boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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
.- proxy
Id Integer The unique identifier for the resource.
- region String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- self
Link String The URI of the created resource.
- backend
Service string A reference to the BackendService resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
An optional description of this resource.
- name 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 string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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
.- proxy
Id number The unique identifier for the resource.
- region string
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- self
Link string The URI of the created resource.
- backend_
service str A reference to the BackendService resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
An optional description of this resource.
- name 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 str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy_
bind bool This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy_
header 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 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.
- backend
Service String A reference to the BackendService resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- description String
An optional description of this resource.
- name 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 String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- proxy
Bind Boolean This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
- proxy
Header 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
.- proxy
Id Number The unique identifier for the resource.
- region String
The Region in which the created target TCP proxy should reside. If it is not provided, the provider region is used.
- self
Link 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}}
In Terraform v1.5.0 and later, use an import
block to import RegionTargetTcpProxy using one of the formats above. For exampletf import {
id = “projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}”
to = google_compute_region_target_tcp_proxy.default }
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), 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}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{region}}/{{name}}
$ pulumi import gcp:compute/regionTargetTcpProxy:RegionTargetTcpProxy default {{name}}
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.