MeshArgs

data class MeshArgs(val description: Output<String>? = null, val interceptionPort: Output<Int>? = null, val labels: Output<Map<String, String>>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<MeshArgs>

Example Usage

Network Services Mesh Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networkservices.Mesh;
import com.pulumi.gcp.networkservices.MeshArgs;
import com.pulumi.resources.CustomResourceOptions;
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 default_ = new Mesh("default", MeshArgs.builder()
.labels(Map.of("foo", "bar"))
.description("my description")
.interceptionPort(443)
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Network Services Mesh No Port

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networkservices.Mesh;
import com.pulumi.gcp.networkservices.MeshArgs;
import com.pulumi.resources.CustomResourceOptions;
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 default_ = new Mesh("default", MeshArgs.builder()
.labels(Map.of("foo", "bar"))
.description("my description")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Import

Mesh can be imported using any of these accepted formats

$ pulumi import gcp:networkservices/mesh:Mesh default projects/{{project}}/locations/global/meshes/{{name}}
$ pulumi import gcp:networkservices/mesh:Mesh default {{project}}/{{name}}
$ pulumi import gcp:networkservices/mesh:Mesh default {{name}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, interceptionPort: Output<Int>? = null, labels: Output<Map<String, String>>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A free-text description of the resource. Max length 1024 characters.

Link copied to clipboard
val interceptionPort: Output<Int>? = null

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 will is applicable only for sidecar proxy deployments.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Set of label tags associated with the Mesh resource.

Link copied to clipboard
val name: Output<String>? = null

Short name of the Mesh resource to be created.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): MeshArgs