Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networkservices/v1beta1.Mesh
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new Mesh in a given project and location.
Create Mesh Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Mesh(name: string, args: MeshArgs, opts?: CustomResourceOptions);
@overload
def Mesh(resource_name: str,
args: MeshArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Mesh(resource_name: str,
opts: Optional[ResourceOptions] = None,
mesh_id: Optional[str] = None,
description: Optional[str] = None,
interception_port: Optional[int] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewMesh(ctx *Context, name string, args MeshArgs, opts ...ResourceOption) (*Mesh, error)
public Mesh(string name, MeshArgs args, CustomResourceOptions? opts = null)
type: google-native:networkservices/v1beta1:Mesh
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 MeshArgs
- 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 MeshArgs
- 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 MeshArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MeshArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MeshArgs
- 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_nativeMeshResource = new GoogleNative.NetworkServices.V1Beta1.Mesh("google-nativeMeshResource", new()
{
MeshId = "string",
Description = "string",
InterceptionPort = 0,
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := networkservicesv1beta1.NewMesh(ctx, "google-nativeMeshResource", &networkservicesv1beta1.MeshArgs{
MeshId: pulumi.String("string"),
Description: pulumi.String("string"),
InterceptionPort: pulumi.Int(0),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var google_nativeMeshResource = new Mesh("google-nativeMeshResource", MeshArgs.builder()
.meshId("string")
.description("string")
.interceptionPort(0)
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.build());
google_native_mesh_resource = google_native.networkservices.v1beta1.Mesh("google-nativeMeshResource",
mesh_id="string",
description="string",
interception_port=0,
labels={
"string": "string",
},
location="string",
name="string",
project="string")
const google_nativeMeshResource = new google_native.networkservices.v1beta1.Mesh("google-nativeMeshResource", {
meshId: "string",
description: "string",
interceptionPort: 0,
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
});
type: google-native:networkservices/v1beta1:Mesh
properties:
description: string
interceptionPort: 0
labels:
string: string
location: string
meshId: string
name: string
project: string
Mesh 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 Mesh resource accepts the following input properties:
- Mesh
Id string - Required. Short name of the Mesh resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Interception
Port int - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- Labels Dictionary<string, string>
- Optional. Set of label tags associated with the Mesh resource.
- Location string
- Name string
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - Project string
- Mesh
Id string - Required. Short name of the Mesh resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Interception
Port int - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- Labels map[string]string
- Optional. Set of label tags associated with the Mesh resource.
- Location string
- Name string
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - Project string
- mesh
Id String - Required. Short name of the Mesh resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- interception
Port Integer - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- labels Map<String,String>
- Optional. Set of label tags associated with the Mesh resource.
- location String
- name String
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - project String
- mesh
Id string - Required. Short name of the Mesh resource to be created.
- description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- interception
Port number - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- labels {[key: string]: string}
- Optional. Set of label tags associated with the Mesh resource.
- location string
- name string
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - project string
- mesh_
id str - Required. Short name of the Mesh resource to be created.
- description str
- Optional. A free-text description of the resource. Max length 1024 characters.
- interception_
port int - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- labels Mapping[str, str]
- Optional. Set of label tags associated with the Mesh resource.
- location str
- name str
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - project str
- mesh
Id String - Required. Short name of the Mesh resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- interception
Port Number - Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
- labels Map<String>
- Optional. Set of label tags associated with the Mesh resource.
- location String
- name String
- Name of the Mesh resource. It matches pattern
projects/*/locations/global/meshes/
. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Mesh 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.