google-native.networkservices/v1beta1.Gateway
Creates a new Gateway in a given project and location.
Create Gateway Resource
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
gateway_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
ports: Optional[Sequence[int]] = None,
project: Optional[str] = None,
scope: Optional[str] = None,
server_tls_policy: Optional[str] = None,
type: Optional[GatewayType] = None)
@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: google-native:networkservices/v1beta1:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- 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 GatewayArgs
- 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 GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Gateway 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 Gateway resource accepts the following input properties:
- Gateway
Id string Required. Short name of the Gateway resource to be created.
- Ports List<int>
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- Scope string
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- Description string
Optional. A free-text description of the resource. Max length 1024 characters.
- Labels Dictionary<string, string>
Optional. Set of label tags associated with the Gateway resource.
- Location string
- Name string
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- Project string
- Server
Tls stringPolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- Type
Pulumi.
Google Native. Network Services. V1Beta1. Gateway Type Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- Gateway
Id string Required. Short name of the Gateway resource to be created.
- Ports []int
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- Scope string
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- Description string
Optional. A free-text description of the resource. Max length 1024 characters.
- Labels map[string]string
Optional. Set of label tags associated with the Gateway resource.
- Location string
- Name string
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- Project string
- Server
Tls stringPolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- Type
Gateway
Type Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- gateway
Id String Required. Short name of the Gateway resource to be created.
- ports List<Integer>
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- scope String
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- description String
Optional. A free-text description of the resource. Max length 1024 characters.
- labels Map<String,String>
Optional. Set of label tags associated with the Gateway resource.
- location String
- name String
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- project String
- server
Tls StringPolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- type
Gateway
Type Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- gateway
Id string Required. Short name of the Gateway resource to be created.
- ports number[]
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- scope string
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- description string
Optional. A free-text description of the resource. Max length 1024 characters.
- labels {[key: string]: string}
Optional. Set of label tags associated with the Gateway resource.
- location string
- name string
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- project string
- server
Tls stringPolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- type
Gateway
Type Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- gateway_
id str Required. Short name of the Gateway resource to be created.
- ports Sequence[int]
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- scope str
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- description str
Optional. A free-text description of the resource. Max length 1024 characters.
- labels Mapping[str, str]
Optional. Set of label tags associated with the Gateway resource.
- location str
- name str
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- project str
- server_
tls_ strpolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- type
Gateway
Type Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- gateway
Id String Required. Short name of the Gateway resource to be created.
- ports List<Number>
One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.
- scope String
Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
- description String
Optional. A free-text description of the resource. Max length 1024 characters.
- labels Map<String>
Optional. Set of label tags associated with the Gateway resource.
- location String
- name String
Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/
.- project String
- server
Tls StringPolicy Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- type "TYPE_UNSPECIFIED" | "OPEN_MESH" | "SECURE_WEB_GATEWAY"
Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Create
Time string The timestamp when the resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string Server-defined URL of this resource
- Update
Time string The timestamp when the resource was updated.
- Create
Time string The timestamp when the resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string Server-defined URL of this resource
- Update
Time string The timestamp when the resource was updated.
- create
Time String The timestamp when the resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String Server-defined URL of this resource
- update
Time String The timestamp when the resource was updated.
- create
Time string The timestamp when the resource was created.
- id string
The provider-assigned unique ID for this managed resource.
- self
Link string Server-defined URL of this resource
- update
Time string The timestamp when the resource was updated.
- create_
time str The timestamp when the resource was created.
- id str
The provider-assigned unique ID for this managed resource.
- self_
link str Server-defined URL of this resource
- update_
time str The timestamp when the resource was updated.
- create
Time String The timestamp when the resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String Server-defined URL of this resource
- update
Time String The timestamp when the resource was updated.
Supporting Types
GatewayType
- Type
Unspecified - TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- Open
Mesh - OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- Secure
Web Gateway - SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
- Gateway
Type Type Unspecified - TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- Gateway
Type Open Mesh - OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- Gateway
Type Secure Web Gateway - SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
- Type
Unspecified - TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- Open
Mesh - OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- Secure
Web Gateway - SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
- Type
Unspecified - TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- Open
Mesh - OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- Secure
Web Gateway - SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- OPEN_MESH
- OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- SECURE_WEB_GATEWAY
- SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIED
The type of the customer managed gateway is unspecified.
- "OPEN_MESH"
- OPEN_MESH
The type of the customer managed gateway is TrafficDirector Open Mesh.
- "SECURE_WEB_GATEWAY"
- SECURE_WEB_GATEWAY
The type of the customer managed gateway is SecureWebGateway (SWG).
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0