import * as pulumi from "@pulumi/pulumi"; /** * Mesh represents a logical configuration grouping for workload to workload communication within a * service mesh. Routes that point to mesh dictate how requests are routed within this logical * mesh boundary. * * To get more information about Mesh, see: * * * [API documentation](https://cloud.google.com/traffic-director/docs/reference/network-services/rest/v1beta1/projects.locations.meshes) * * ## Example Usage * * ### Network Services Mesh Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.Mesh("default", { * name: "my-mesh", * labels: { * foo: "bar", * }, * description: "my description", * interceptionPort: 443, * }); * ``` * ### Network Services Mesh No Port * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.Mesh("default", { * name: "my-mesh-noport", * labels: { * foo: "bar", * }, * description: "my description", * }); * ``` * ### Network Services Mesh Location * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.Mesh("default", { * name: "my-mesh", * location: "global", * }); * ``` * * ## Import * * Mesh can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/meshes/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, Mesh can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networkservices/mesh:Mesh default projects/{{project}}/locations/{{location}}/meshes/{{name}} * $ pulumi import gcp:networkservices/mesh:Mesh default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:networkservices/mesh:Mesh default {{location}}/{{name}} * ``` */ export declare class Mesh extends pulumi.CustomResource { /** * Get an existing Mesh resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MeshState, opts?: pulumi.CustomResourceOptions): Mesh; /** * Returns true if the given object is an instance of Mesh. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Mesh; /** * Time the Mesh was created in UTC. */ readonly createTime: pulumi.Output; /** * A free-text description of the resource. Max length 1024 characters. */ readonly description: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * 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. */ readonly interceptionPort: pulumi.Output; /** * 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 `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Location (region) of the Mesh resource to be created. Only the value 'global' is currently allowed; defaults to 'global' if omitted. */ readonly location: pulumi.Output; /** * Short name of the Mesh resource to be created. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Server-defined URL of this resource. */ readonly selfLink: pulumi.Output; /** * Time the Mesh was updated in UTC. */ readonly updateTime: pulumi.Output; /** * Create a Mesh resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: MeshArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Mesh resources. */ export interface MeshState { /** * Time the Mesh was created in UTC. */ createTime?: pulumi.Input; /** * A free-text description of the resource. Max length 1024 characters. */ description?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * 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. */ interceptionPort?: pulumi.Input; /** * 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 `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Location (region) of the Mesh resource to be created. Only the value 'global' is currently allowed; defaults to 'global' if omitted. */ location?: pulumi.Input; /** * Short name of the Mesh resource to be created. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Server-defined URL of this resource. */ selfLink?: pulumi.Input; /** * Time the Mesh was updated in UTC. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a Mesh resource. */ export interface MeshArgs { /** * A free-text description of the resource. Max length 1024 characters. */ description?: pulumi.Input; /** * 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. */ interceptionPort?: pulumi.Input; /** * 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 `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Location (region) of the Mesh resource to be created. Only the value 'global' is currently allowed; defaults to 'global' if omitted. */ location?: pulumi.Input; /** * Short name of the Mesh resource to be created. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; }