1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkservices
  5. networkservices/v1beta1
  6. Mesh

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.networkservices/v1beta1.Mesh

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 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)
    public Mesh(String name, MeshArgs args)
    public Mesh(String name, MeshArgs args, CustomResourceOptions options)
    
    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:

    MeshId 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.
    InterceptionPort 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
    MeshId 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.
    InterceptionPort 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
    meshId 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.
    interceptionPort 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
    meshId 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.
    interceptionPort 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
    meshId 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.
    interceptionPort 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:

    CreateTime string
    The timestamp when the resource was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Server-defined URL of this resource
    UpdateTime string
    The timestamp when the resource was updated.
    CreateTime string
    The timestamp when the resource was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    Server-defined URL of this resource
    UpdateTime string
    The timestamp when the resource was updated.
    createTime String
    The timestamp when the resource was created.
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Server-defined URL of this resource
    updateTime String
    The timestamp when the resource was updated.
    createTime string
    The timestamp when the resource was created.
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    Server-defined URL of this resource
    updateTime 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.
    createTime String
    The timestamp when the resource was created.
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    Server-defined URL of this resource
    updateTime String
    The timestamp when the resource was updated.

    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