1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/beta
  6. TargetTcpProxy

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/beta.TargetTcpProxy

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a TargetTcpProxy resource in the specified project using the data included in the request.

    Create TargetTcpProxy Resource

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

    Constructor syntax

    new TargetTcpProxy(name: string, args?: TargetTcpProxyArgs, opts?: CustomResourceOptions);
    @overload
    def TargetTcpProxy(resource_name: str,
                       args: Optional[TargetTcpProxyArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TargetTcpProxy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None,
                       project: Optional[str] = None,
                       proxy_bind: Optional[bool] = None,
                       proxy_header: Optional[TargetTcpProxyProxyHeader] = None,
                       request_id: Optional[str] = None,
                       service: Optional[str] = None)
    func NewTargetTcpProxy(ctx *Context, name string, args *TargetTcpProxyArgs, opts ...ResourceOption) (*TargetTcpProxy, error)
    public TargetTcpProxy(string name, TargetTcpProxyArgs? args = null, CustomResourceOptions? opts = null)
    public TargetTcpProxy(String name, TargetTcpProxyArgs args)
    public TargetTcpProxy(String name, TargetTcpProxyArgs args, CustomResourceOptions options)
    
    type: google-native:compute/beta:TargetTcpProxy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TargetTcpProxyArgs
    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 TargetTcpProxyArgs
    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 TargetTcpProxyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TargetTcpProxyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TargetTcpProxyArgs
    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 google_nativeTargetTcpProxyResource = new GoogleNative.Compute.Beta.TargetTcpProxy("google-nativeTargetTcpProxyResource", new()
    {
        Description = "string",
        Name = "string",
        Project = "string",
        ProxyBind = false,
        ProxyHeader = GoogleNative.Compute.Beta.TargetTcpProxyProxyHeader.None,
        RequestId = "string",
        Service = "string",
    });
    
    example, err := computebeta.NewTargetTcpProxy(ctx, "google-nativeTargetTcpProxyResource", &computebeta.TargetTcpProxyArgs{
    Description: pulumi.String("string"),
    Name: pulumi.String("string"),
    Project: pulumi.String("string"),
    ProxyBind: pulumi.Bool(false),
    ProxyHeader: computebeta.TargetTcpProxyProxyHeaderNone,
    RequestId: pulumi.String("string"),
    Service: pulumi.String("string"),
    })
    
    var google_nativeTargetTcpProxyResource = new TargetTcpProxy("google-nativeTargetTcpProxyResource", TargetTcpProxyArgs.builder()
        .description("string")
        .name("string")
        .project("string")
        .proxyBind(false)
        .proxyHeader("NONE")
        .requestId("string")
        .service("string")
        .build());
    
    google_native_target_tcp_proxy_resource = google_native.compute.beta.TargetTcpProxy("google-nativeTargetTcpProxyResource",
        description="string",
        name="string",
        project="string",
        proxy_bind=False,
        proxy_header=google_native.compute.beta.TargetTcpProxyProxyHeader.NONE,
        request_id="string",
        service="string")
    
    const google_nativeTargetTcpProxyResource = new google_native.compute.beta.TargetTcpProxy("google-nativeTargetTcpProxyResource", {
        description: "string",
        name: "string",
        project: "string",
        proxyBind: false,
        proxyHeader: google_native.compute.beta.TargetTcpProxyProxyHeader.None,
        requestId: "string",
        service: "string",
    });
    
    type: google-native:compute/beta:TargetTcpProxy
    properties:
        description: string
        name: string
        project: string
        proxyBind: false
        proxyHeader: NONE
        requestId: string
        service: string
    

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

    Description string
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    ProxyBind bool
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    ProxyHeader Pulumi.GoogleNative.Compute.Beta.TargetTcpProxyProxyHeader
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    Service string
    URL to the BackendService resource.
    Description string
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    ProxyBind bool
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    ProxyHeader TargetTcpProxyProxyHeader
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    Service string
    URL to the BackendService resource.
    description String
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    proxyBind Boolean
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    proxyHeader TargetTcpProxyProxyHeader
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    service String
    URL to the BackendService resource.
    description string
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    proxyBind boolean
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    proxyHeader TargetTcpProxyProxyHeader
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    requestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    service string
    URL to the BackendService resource.
    description str
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    proxy_bind bool
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    proxy_header TargetTcpProxyProxyHeader
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    request_id str
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    service str
    URL to the BackendService resource.
    description String
    An optional description of this resource. Provide this property when you create the 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]([-a-z0-9]*[a-z0-9])? 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
    proxyBind Boolean
    This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
    proxyHeader "NONE" | "PROXY_V1"
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    service String
    URL to the BackendService resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TargetTcpProxy 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.
    Kind string
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    Region string
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    SelfLink string
    Server-defined URL for the resource.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    Region string
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    SelfLink string
    Server-defined URL for the resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    region String
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    selfLink String
    Server-defined URL for the resource.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    region string
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    selfLink string
    Server-defined URL for the resource.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    region str
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    self_link str
    Server-defined URL for the resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
    region String
    URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
    selfLink String
    Server-defined URL for the resource.

    Supporting Types

    TargetTcpProxyProxyHeader, TargetTcpProxyProxyHeaderArgs

    None
    NONE
    ProxyV1
    PROXY_V1
    TargetTcpProxyProxyHeaderNone
    NONE
    TargetTcpProxyProxyHeaderProxyV1
    PROXY_V1
    None
    NONE
    ProxyV1
    PROXY_V1
    None
    NONE
    ProxyV1
    PROXY_V1
    NONE
    NONE
    PROXY_V1
    PROXY_V1
    "NONE"
    NONE
    "PROXY_V1"
    PROXY_V1

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi