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

com.pulumi.vault.consul.SecretBackendRoleArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing HashiCorp Vault cloud resources.

There is a newer version: 6.6.0
Show newest version
// *** 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.vault.consul;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SecretBackendRoleArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecretBackendRoleArgs Empty = new SecretBackendRoleArgs();

    /**
     * The unique name of an existing Consul secrets backend mount. Must not begin or end with a `/`. One of `path` or `backend` is required.
     * 
     */
    @Import(name="backend")
    private @Nullable Output backend;

    /**
     * @return The unique name of an existing Consul secrets backend mount. Must not begin or end with a `/`. One of `path` or `backend` is required.
     * 
     */
    public Optional> backend() {
        return Optional.ofNullable(this.backend);
    }

    /**
     * The Consul namespace that the token will be created in.
     * Applicable for Vault 1.10+ and Consul 1.7+".
     * 
     */
    @Import(name="consulNamespace")
    private @Nullable Output consulNamespace;

    /**
     * @return The Consul namespace that the token will be created in.
     * Applicable for Vault 1.10+ and Consul 1.7+".
     * 
     */
    public Optional> consulNamespace() {
        return Optional.ofNullable(this.consulNamespace);
    }

    /**
     * <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> The list of Consul ACL policies to associate with these roles.
     * 
     */
    @Import(name="consulPolicies")
    private @Nullable Output> consulPolicies;

    /**
     * @return <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> The list of Consul ACL policies to associate with these roles.
     * 
     */
    public Optional>> consulPolicies() {
        return Optional.ofNullable(this.consulPolicies);
    }

    /**
     * <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul roles to attach to the token.
     * Applicable for Vault 1.10+ with Consul 1.5+.
     * 
     */
    @Import(name="consulRoles")
    private @Nullable Output> consulRoles;

    /**
     * @return <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul roles to attach to the token.
     * Applicable for Vault 1.10+ with Consul 1.5+.
     * 
     */
    public Optional>> consulRoles() {
        return Optional.ofNullable(this.consulRoles);
    }

    /**
     * Indicates that the token should not be replicated globally and instead be local to the current datacenter.
     * 
     */
    @Import(name="local")
    private @Nullable Output local;

    /**
     * @return Indicates that the token should not be replicated globally and instead be local to the current datacenter.
     * 
     */
    public Optional> local() {
        return Optional.ofNullable(this.local);
    }

    /**
     * Maximum TTL for leases associated with this role, in seconds.
     * 
     */
    @Import(name="maxTtl")
    private @Nullable Output maxTtl;

    /**
     * @return Maximum TTL for leases associated with this role, in seconds.
     * 
     */
    public Optional> maxTtl() {
        return Optional.ofNullable(this.maxTtl);
    }

    /**
     * The name of the Consul secrets engine role to create.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Consul secrets engine role to create.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul node
     * identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.8+.
     * 
     */
    @Import(name="nodeIdentities")
    private @Nullable Output> nodeIdentities;

    /**
     * @return <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul node
     * identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.8+.
     * 
     */
    public Optional>> nodeIdentities() {
        return Optional.ofNullable(this.nodeIdentities);
    }

    /**
     * The admin partition that the token will be created in.
     * Applicable for Vault 1.10+ and Consul 1.11+".
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return The admin partition that the token will be created in.
     * Applicable for Vault 1.10+ and Consul 1.11+".
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    /**
     * The list of Consul ACL policies to associate with these roles.
     * **NOTE:** The new parameter `consul_policies` should be used in favor of this. This parameter,
     * `policies`, remains supported for legacy users, but Vault has deprecated this field.
     * 
     */
    @Import(name="policies")
    private @Nullable Output> policies;

    /**
     * @return The list of Consul ACL policies to associate with these roles.
     * **NOTE:** The new parameter `consul_policies` should be used in favor of this. This parameter,
     * `policies`, remains supported for legacy users, but Vault has deprecated this field.
     * 
     */
    public Optional>> policies() {
        return Optional.ofNullable(this.policies);
    }

    /**
     * <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul
     * service identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.5+.
     * 
     */
    @Import(name="serviceIdentities")
    private @Nullable Output> serviceIdentities;

    /**
     * @return <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul
     * service identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.5+.
     * 
     */
    public Optional>> serviceIdentities() {
        return Optional.ofNullable(this.serviceIdentities);
    }

    /**
     * Specifies the TTL for this role.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return Specifies the TTL for this role.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    private SecretBackendRoleArgs() {}

    private SecretBackendRoleArgs(SecretBackendRoleArgs $) {
        this.backend = $.backend;
        this.consulNamespace = $.consulNamespace;
        this.consulPolicies = $.consulPolicies;
        this.consulRoles = $.consulRoles;
        this.local = $.local;
        this.maxTtl = $.maxTtl;
        this.name = $.name;
        this.namespace = $.namespace;
        this.nodeIdentities = $.nodeIdentities;
        this.partition = $.partition;
        this.policies = $.policies;
        this.serviceIdentities = $.serviceIdentities;
        this.ttl = $.ttl;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SecretBackendRoleArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SecretBackendRoleArgs $;

        public Builder() {
            $ = new SecretBackendRoleArgs();
        }

        public Builder(SecretBackendRoleArgs defaults) {
            $ = new SecretBackendRoleArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param backend The unique name of an existing Consul secrets backend mount. Must not begin or end with a `/`. One of `path` or `backend` is required.
         * 
         * @return builder
         * 
         */
        public Builder backend(@Nullable Output backend) {
            $.backend = backend;
            return this;
        }

        /**
         * @param backend The unique name of an existing Consul secrets backend mount. Must not begin or end with a `/`. One of `path` or `backend` is required.
         * 
         * @return builder
         * 
         */
        public Builder backend(String backend) {
            return backend(Output.of(backend));
        }

        /**
         * @param consulNamespace The Consul namespace that the token will be created in.
         * Applicable for Vault 1.10+ and Consul 1.7+".
         * 
         * @return builder
         * 
         */
        public Builder consulNamespace(@Nullable Output consulNamespace) {
            $.consulNamespace = consulNamespace;
            return this;
        }

        /**
         * @param consulNamespace The Consul namespace that the token will be created in.
         * Applicable for Vault 1.10+ and Consul 1.7+".
         * 
         * @return builder
         * 
         */
        public Builder consulNamespace(String consulNamespace) {
            return consulNamespace(Output.of(consulNamespace));
        }

        /**
         * @param consulPolicies <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> The list of Consul ACL policies to associate with these roles.
         * 
         * @return builder
         * 
         */
        public Builder consulPolicies(@Nullable Output> consulPolicies) {
            $.consulPolicies = consulPolicies;
            return this;
        }

        /**
         * @param consulPolicies <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> The list of Consul ACL policies to associate with these roles.
         * 
         * @return builder
         * 
         */
        public Builder consulPolicies(List consulPolicies) {
            return consulPolicies(Output.of(consulPolicies));
        }

        /**
         * @param consulPolicies <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> The list of Consul ACL policies to associate with these roles.
         * 
         * @return builder
         * 
         */
        public Builder consulPolicies(String... consulPolicies) {
            return consulPolicies(List.of(consulPolicies));
        }

        /**
         * @param consulRoles <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul roles to attach to the token.
         * Applicable for Vault 1.10+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder consulRoles(@Nullable Output> consulRoles) {
            $.consulRoles = consulRoles;
            return this;
        }

        /**
         * @param consulRoles <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul roles to attach to the token.
         * Applicable for Vault 1.10+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder consulRoles(List consulRoles) {
            return consulRoles(Output.of(consulRoles));
        }

        /**
         * @param consulRoles <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul roles to attach to the token.
         * Applicable for Vault 1.10+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder consulRoles(String... consulRoles) {
            return consulRoles(List.of(consulRoles));
        }

        /**
         * @param local Indicates that the token should not be replicated globally and instead be local to the current datacenter.
         * 
         * @return builder
         * 
         */
        public Builder local(@Nullable Output local) {
            $.local = local;
            return this;
        }

        /**
         * @param local Indicates that the token should not be replicated globally and instead be local to the current datacenter.
         * 
         * @return builder
         * 
         */
        public Builder local(Boolean local) {
            return local(Output.of(local));
        }

        /**
         * @param maxTtl Maximum TTL for leases associated with this role, in seconds.
         * 
         * @return builder
         * 
         */
        public Builder maxTtl(@Nullable Output maxTtl) {
            $.maxTtl = maxTtl;
            return this;
        }

        /**
         * @param maxTtl Maximum TTL for leases associated with this role, in seconds.
         * 
         * @return builder
         * 
         */
        public Builder maxTtl(Integer maxTtl) {
            return maxTtl(Output.of(maxTtl));
        }

        /**
         * @param name The name of the Consul secrets engine role to create.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Consul secrets engine role to create.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespace The namespace to provision the resource in.
         * The value should not contain leading or trailing forward slashes.
         * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
         * *Available only for Vault Enterprise*.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The namespace to provision the resource in.
         * The value should not contain leading or trailing forward slashes.
         * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
         * *Available only for Vault Enterprise*.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param nodeIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul node
         * identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.8+.
         * 
         * @return builder
         * 
         */
        public Builder nodeIdentities(@Nullable Output> nodeIdentities) {
            $.nodeIdentities = nodeIdentities;
            return this;
        }

        /**
         * @param nodeIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul node
         * identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.8+.
         * 
         * @return builder
         * 
         */
        public Builder nodeIdentities(List nodeIdentities) {
            return nodeIdentities(Output.of(nodeIdentities));
        }

        /**
         * @param nodeIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul node
         * identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.8+.
         * 
         * @return builder
         * 
         */
        public Builder nodeIdentities(String... nodeIdentities) {
            return nodeIdentities(List.of(nodeIdentities));
        }

        /**
         * @param partition The admin partition that the token will be created in.
         * Applicable for Vault 1.10+ and Consul 1.11+".
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition The admin partition that the token will be created in.
         * Applicable for Vault 1.10+ and Consul 1.11+".
         * 
         * @return builder
         * 
         */
        public Builder partition(String partition) {
            return partition(Output.of(partition));
        }

        /**
         * @param policies The list of Consul ACL policies to associate with these roles.
         * **NOTE:** The new parameter `consul_policies` should be used in favor of this. This parameter,
         * `policies`, remains supported for legacy users, but Vault has deprecated this field.
         * 
         * @return builder
         * 
         */
        public Builder policies(@Nullable Output> policies) {
            $.policies = policies;
            return this;
        }

        /**
         * @param policies The list of Consul ACL policies to associate with these roles.
         * **NOTE:** The new parameter `consul_policies` should be used in favor of this. This parameter,
         * `policies`, remains supported for legacy users, but Vault has deprecated this field.
         * 
         * @return builder
         * 
         */
        public Builder policies(List policies) {
            return policies(Output.of(policies));
        }

        /**
         * @param policies The list of Consul ACL policies to associate with these roles.
         * **NOTE:** The new parameter `consul_policies` should be used in favor of this. This parameter,
         * `policies`, remains supported for legacy users, but Vault has deprecated this field.
         * 
         * @return builder
         * 
         */
        public Builder policies(String... policies) {
            return policies(List.of(policies));
        }

        /**
         * @param serviceIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul
         * service identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder serviceIdentities(@Nullable Output> serviceIdentities) {
            $.serviceIdentities = serviceIdentities;
            return this;
        }

        /**
         * @param serviceIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul
         * service identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder serviceIdentities(List serviceIdentities) {
            return serviceIdentities(Output.of(serviceIdentities));
        }

        /**
         * @param serviceIdentities <sup><a href="#note-about-required-arguments">SEE NOTE</a></sup> Set of Consul
         * service identities to attach to the token. Applicable for Vault 1.11+ with Consul 1.5+.
         * 
         * @return builder
         * 
         */
        public Builder serviceIdentities(String... serviceIdentities) {
            return serviceIdentities(List.of(serviceIdentities));
        }

        /**
         * @param ttl Specifies the TTL for this role.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl Specifies the TTL for this role.
         * 
         * @return builder
         * 
         */
        public Builder ttl(Integer ttl) {
            return ttl(Output.of(ttl));
        }

        public SecretBackendRoleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy