All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.networkservices.v1beta1.Mesh Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.googlenative.networkservices.v1beta1;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.googlenative.Utilities;
import com.pulumi.googlenative.networkservices.v1beta1.MeshArgs;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import javax.annotation.Nullable;

/**
 * Creates a new Mesh in a given project and location.
 * 
 */
@ResourceType(type="google-native:networkservices/v1beta1:Mesh")
public class Mesh extends com.pulumi.resources.CustomResource {
    /**
     * The timestamp when the resource was created.
     * 
     */
    @Export(name="createTime", type=String.class, parameters={})
    private Output createTime;

    /**
     * @return The timestamp when the resource was created.
     * 
     */
    public Output createTime() {
        return this.createTime;
    }
    /**
     * Optional. A free-text description of the resource. Max length 1024 characters.
     * 
     */
    @Export(name="description", type=String.class, parameters={})
    private Output description;

    /**
     * @return Optional. A free-text description of the resource. Max length 1024 characters.
     * 
     */
    public Output description() {
        return this.description;
    }
    /**
     * 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.
     * 
     */
    @Export(name="interceptionPort", type=Integer.class, parameters={})
    private Output interceptionPort;

    /**
     * @return 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.
     * 
     */
    public Output interceptionPort() {
        return this.interceptionPort;
    }
    /**
     * Optional. Set of label tags associated with the Mesh resource.
     * 
     */
    @Export(name="labels", type=Map.class, parameters={String.class, String.class})
    private Output> labels;

    /**
     * @return Optional. Set of label tags associated with the Mesh resource.
     * 
     */
    public Output> labels() {
        return this.labels;
    }
    @Export(name="location", type=String.class, parameters={})
    private Output location;

    public Output location() {
        return this.location;
    }
    /**
     * Required. Short name of the Mesh resource to be created.
     * 
     */
    @Export(name="meshId", type=String.class, parameters={})
    private Output meshId;

    /**
     * @return Required. Short name of the Mesh resource to be created.
     * 
     */
    public Output meshId() {
        return this.meshId;
    }
    /**
     * Name of the Mesh resource. It matches pattern `projects/*{@literal /}locations/global/meshes/`.
     * 
     */
    @Export(name="name", type=String.class, parameters={})
    private Output name;

    /**
     * @return Name of the Mesh resource. It matches pattern `projects/*{@literal /}locations/global/meshes/`.
     * 
     */
    public Output name() {
        return this.name;
    }
    @Export(name="project", type=String.class, parameters={})
    private Output project;

    public Output project() {
        return this.project;
    }
    /**
     * Server-defined URL of this resource
     * 
     */
    @Export(name="selfLink", type=String.class, parameters={})
    private Output selfLink;

    /**
     * @return Server-defined URL of this resource
     * 
     */
    public Output selfLink() {
        return this.selfLink;
    }
    /**
     * The timestamp when the resource was updated.
     * 
     */
    @Export(name="updateTime", type=String.class, parameters={})
    private Output updateTime;

    /**
     * @return The timestamp when the resource was updated.
     * 
     */
    public Output updateTime() {
        return this.updateTime;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Mesh(String name) {
        this(name, MeshArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Mesh(String name, MeshArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public Mesh(String name, MeshArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:networkservices/v1beta1:Mesh", name, args == null ? MeshArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private Mesh(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:networkservices/v1beta1:Mesh", name, null, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host 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 options Optional settings to control the behavior of the CustomResource.
     */
    public static Mesh get(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Mesh(name, id, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy