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

com.pulumi.googlenative.gkehub.v1alpha.Binding 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.gkehub.v1alpha;

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.gkehub.v1alpha.BindingArgs;
import com.pulumi.googlenative.gkehub.v1alpha.outputs.MembershipBindingLifecycleStateResponse;
import java.lang.Boolean;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Creates a MembershipBinding.
 * Auto-naming is currently not supported for this resource.
 * 
 */
@ResourceType(type="google-native:gkehub/v1alpha:Binding")
public class Binding extends com.pulumi.resources.CustomResource {
    /**
     * When the membership binding was created.
     * 
     */
    @Export(name="createTime", type=String.class, parameters={})
    private Output createTime;

    /**
     * @return When the membership binding was created.
     * 
     */
    public Output createTime() {
        return this.createTime;
    }
    /**
     * When the membership binding was deleted.
     * 
     */
    @Export(name="deleteTime", type=String.class, parameters={})
    private Output deleteTime;

    /**
     * @return When the membership binding was deleted.
     * 
     */
    public Output deleteTime() {
        return this.deleteTime;
    }
    /**
     * Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
     * 
     */
    @Export(name="fleet", type=Boolean.class, parameters={})
    private Output fleet;

    /**
     * @return Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
     * 
     */
    public Output fleet() {
        return this.fleet;
    }
    @Export(name="location", type=String.class, parameters={})
    private Output location;

    public Output location() {
        return this.location;
    }
    /**
     * Required. The ID to use for the MembershipBinding.
     * 
     */
    @Export(name="membershipBindingId", type=String.class, parameters={})
    private Output membershipBindingId;

    /**
     * @return Required. The ID to use for the MembershipBinding.
     * 
     */
    public Output membershipBindingId() {
        return this.membershipBindingId;
    }
    @Export(name="membershipId", type=String.class, parameters={})
    private Output membershipId;

    public Output membershipId() {
        return this.membershipId;
    }
    /**
     * The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
     * 
     */
    @Export(name="name", type=String.class, parameters={})
    private Output name;

    /**
     * @return The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
     * 
     */
    public Output name() {
        return this.name;
    }
    @Export(name="project", type=String.class, parameters={})
    private Output project;

    public Output project() {
        return this.project;
    }
    /**
     * A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
     * 
     */
    @Export(name="scope", type=String.class, parameters={})
    private Output scope;

    /**
     * @return A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
     * 
     */
    public Output scope() {
        return this.scope;
    }
    /**
     * State of the membership binding resource.
     * 
     */
    @Export(name="state", type=MembershipBindingLifecycleStateResponse.class, parameters={})
    private Output state;

    /**
     * @return State of the membership binding resource.
     * 
     */
    public Output state() {
        return this.state;
    }
    /**
     * Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
     * 
     */
    @Export(name="uid", type=String.class, parameters={})
    private Output uid;

    /**
     * @return Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.
     * 
     */
    public Output uid() {
        return this.uid;
    }
    /**
     * When the membership binding was last updated.
     * 
     */
    @Export(name="updateTime", type=String.class, parameters={})
    private Output updateTime;

    /**
     * @return When the membership binding was last updated.
     * 
     */
    public Output updateTime() {
        return this.updateTime;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Binding(String name) {
        this(name, BindingArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Binding(String name, BindingArgs 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 Binding(String name, BindingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:gkehub/v1alpha:Binding", name, args == null ? BindingArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private Binding(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("google-native:gkehub/v1alpha:Binding", 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 Binding get(String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Binding(name, id, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy