Mesh

class Mesh : KotlinCustomResource

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* projects/{{project}}/locations/global/meshes/{{name}} * {{project}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import Mesh using one of the formats above. For exampletf import { id = "projects/{{project}}/locations/global/meshes/{{name}}" to = google_network_services_mesh.default }

$ pulumi import gcp:networkservices/mesh:Mesh When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Mesh can be imported using one of the formats above. For example
$ 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}}

Properties

Link copied to clipboard
val createTime: Output<String>

Time the Mesh was created in UTC.

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

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

Link copied to clipboard

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val interceptionPort: Output<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 will is applicable only for sidecar proxy deployments.

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

Set of label tags associated with the Mesh resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Link copied to clipboard
val name: Output<String>

Short name of the Mesh resource to be created.

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
val pulumiLabels: Output<Map<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selfLink: Output<String>

Server-defined URL of this resource.

Link copied to clipboard
val updateTime: Output<String>

Time the Mesh was updated in UTC.

Link copied to clipboard
val urn: Output<String>