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

com.pulumi.vault.TokenArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.5.0-alpha.1732775348
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;

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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TokenArgs Empty = new TokenArgs();

    /**
     * String containing the token display name
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return String containing the token display name
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The explicit max TTL of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    @Import(name="explicitMaxTtl")
    private @Nullable Output explicitMaxTtl;

    /**
     * @return The explicit max TTL of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    public Optional> explicitMaxTtl() {
        return Optional.ofNullable(this.explicitMaxTtl);
    }

    /**
     * Metadata to be set on this token
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Metadata to be set on this token
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * 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);
    }

    /**
     * Flag to not attach the default policy to this token
     * 
     */
    @Import(name="noDefaultPolicy")
    private @Nullable Output noDefaultPolicy;

    /**
     * @return Flag to not attach the default policy to this token
     * 
     */
    public Optional> noDefaultPolicy() {
        return Optional.ofNullable(this.noDefaultPolicy);
    }

    /**
     * Flag to create a token without parent
     * 
     */
    @Import(name="noParent")
    private @Nullable Output noParent;

    /**
     * @return Flag to create a token without parent
     * 
     */
    public Optional> noParent() {
        return Optional.ofNullable(this.noParent);
    }

    /**
     * The number of allowed uses of this token
     * 
     */
    @Import(name="numUses")
    private @Nullable Output numUses;

    /**
     * @return The number of allowed uses of this token
     * 
     */
    public Optional> numUses() {
        return Optional.ofNullable(this.numUses);
    }

    /**
     * The period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    @Import(name="period")
    private @Nullable Output period;

    /**
     * @return The period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    public Optional> period() {
        return Optional.ofNullable(this.period);
    }

    /**
     * List of policies to attach to this token
     * 
     */
    @Import(name="policies")
    private @Nullable Output> policies;

    /**
     * @return List of policies to attach to this token
     * 
     */
    public Optional>> policies() {
        return Optional.ofNullable(this.policies);
    }

    /**
     * The renew increment. This is specified in seconds
     * 
     */
    @Import(name="renewIncrement")
    private @Nullable Output renewIncrement;

    /**
     * @return The renew increment. This is specified in seconds
     * 
     */
    public Optional> renewIncrement() {
        return Optional.ofNullable(this.renewIncrement);
    }

    /**
     * The minimal lease to renew this token
     * 
     */
    @Import(name="renewMinLease")
    private @Nullable Output renewMinLease;

    /**
     * @return The minimal lease to renew this token
     * 
     */
    public Optional> renewMinLease() {
        return Optional.ofNullable(this.renewMinLease);
    }

    /**
     * Flag to allow to renew this token
     * 
     */
    @Import(name="renewable")
    private @Nullable Output renewable;

    /**
     * @return Flag to allow to renew this token
     * 
     */
    public Optional> renewable() {
        return Optional.ofNullable(this.renewable);
    }

    /**
     * The token role name
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return The token role name
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    /**
     * The TTL period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return The TTL period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    /**
     * The TTL period of the wrapped token.
     * 
     */
    @Import(name="wrappingTtl")
    private @Nullable Output wrappingTtl;

    /**
     * @return The TTL period of the wrapped token.
     * 
     */
    public Optional> wrappingTtl() {
        return Optional.ofNullable(this.wrappingTtl);
    }

    private TokenArgs() {}

    private TokenArgs(TokenArgs $) {
        this.displayName = $.displayName;
        this.explicitMaxTtl = $.explicitMaxTtl;
        this.metadata = $.metadata;
        this.namespace = $.namespace;
        this.noDefaultPolicy = $.noDefaultPolicy;
        this.noParent = $.noParent;
        this.numUses = $.numUses;
        this.period = $.period;
        this.policies = $.policies;
        this.renewIncrement = $.renewIncrement;
        this.renewMinLease = $.renewMinLease;
        this.renewable = $.renewable;
        this.roleName = $.roleName;
        this.ttl = $.ttl;
        this.wrappingTtl = $.wrappingTtl;
    }

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

    public static final class Builder {
        private TokenArgs $;

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

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

        /**
         * @param displayName String containing the token display name
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName String containing the token display name
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param explicitMaxTtl The explicit max TTL of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder explicitMaxTtl(@Nullable Output explicitMaxTtl) {
            $.explicitMaxTtl = explicitMaxTtl;
            return this;
        }

        /**
         * @param explicitMaxTtl The explicit max TTL of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder explicitMaxTtl(String explicitMaxTtl) {
            return explicitMaxTtl(Output.of(explicitMaxTtl));
        }

        /**
         * @param metadata Metadata to be set on this token
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Metadata to be set on this token
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @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 noDefaultPolicy Flag to not attach the default policy to this token
         * 
         * @return builder
         * 
         */
        public Builder noDefaultPolicy(@Nullable Output noDefaultPolicy) {
            $.noDefaultPolicy = noDefaultPolicy;
            return this;
        }

        /**
         * @param noDefaultPolicy Flag to not attach the default policy to this token
         * 
         * @return builder
         * 
         */
        public Builder noDefaultPolicy(Boolean noDefaultPolicy) {
            return noDefaultPolicy(Output.of(noDefaultPolicy));
        }

        /**
         * @param noParent Flag to create a token without parent
         * 
         * @return builder
         * 
         */
        public Builder noParent(@Nullable Output noParent) {
            $.noParent = noParent;
            return this;
        }

        /**
         * @param noParent Flag to create a token without parent
         * 
         * @return builder
         * 
         */
        public Builder noParent(Boolean noParent) {
            return noParent(Output.of(noParent));
        }

        /**
         * @param numUses The number of allowed uses of this token
         * 
         * @return builder
         * 
         */
        public Builder numUses(@Nullable Output numUses) {
            $.numUses = numUses;
            return this;
        }

        /**
         * @param numUses The number of allowed uses of this token
         * 
         * @return builder
         * 
         */
        public Builder numUses(Integer numUses) {
            return numUses(Output.of(numUses));
        }

        /**
         * @param period The period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder period(@Nullable Output period) {
            $.period = period;
            return this;
        }

        /**
         * @param period The period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder period(String period) {
            return period(Output.of(period));
        }

        /**
         * @param policies List of policies to attach to this token
         * 
         * @return builder
         * 
         */
        public Builder policies(@Nullable Output> policies) {
            $.policies = policies;
            return this;
        }

        /**
         * @param policies List of policies to attach to this token
         * 
         * @return builder
         * 
         */
        public Builder policies(List policies) {
            return policies(Output.of(policies));
        }

        /**
         * @param policies List of policies to attach to this token
         * 
         * @return builder
         * 
         */
        public Builder policies(String... policies) {
            return policies(List.of(policies));
        }

        /**
         * @param renewIncrement The renew increment. This is specified in seconds
         * 
         * @return builder
         * 
         */
        public Builder renewIncrement(@Nullable Output renewIncrement) {
            $.renewIncrement = renewIncrement;
            return this;
        }

        /**
         * @param renewIncrement The renew increment. This is specified in seconds
         * 
         * @return builder
         * 
         */
        public Builder renewIncrement(Integer renewIncrement) {
            return renewIncrement(Output.of(renewIncrement));
        }

        /**
         * @param renewMinLease The minimal lease to renew this token
         * 
         * @return builder
         * 
         */
        public Builder renewMinLease(@Nullable Output renewMinLease) {
            $.renewMinLease = renewMinLease;
            return this;
        }

        /**
         * @param renewMinLease The minimal lease to renew this token
         * 
         * @return builder
         * 
         */
        public Builder renewMinLease(Integer renewMinLease) {
            return renewMinLease(Output.of(renewMinLease));
        }

        /**
         * @param renewable Flag to allow to renew this token
         * 
         * @return builder
         * 
         */
        public Builder renewable(@Nullable Output renewable) {
            $.renewable = renewable;
            return this;
        }

        /**
         * @param renewable Flag to allow to renew this token
         * 
         * @return builder
         * 
         */
        public Builder renewable(Boolean renewable) {
            return renewable(Output.of(renewable));
        }

        /**
         * @param roleName The token role name
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName The token role name
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        /**
         * @param ttl The TTL period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl The TTL period of this token. This is specified as a numeric string with suffix like "30s" ro "5m"
         * 
         * @return builder
         * 
         */
        public Builder ttl(String ttl) {
            return ttl(Output.of(ttl));
        }

        /**
         * @param wrappingTtl The TTL period of the wrapped token.
         * 
         * @return builder
         * 
         */
        public Builder wrappingTtl(@Nullable Output wrappingTtl) {
            $.wrappingTtl = wrappingTtl;
            return this;
        }

        /**
         * @param wrappingTtl The TTL period of the wrapped token.
         * 
         * @return builder
         * 
         */
        public Builder wrappingTtl(String wrappingTtl) {
            return wrappingTtl(Output.of(wrappingTtl));
        }

        public TokenArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy