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

com.pulumi.vault.ldap.inputs.SecretBackendStaticRoleState 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.ldap.inputs;

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


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

    public static final SecretBackendStaticRoleState Empty = new SecretBackendStaticRoleState();

    /**
     * Distinguished name (DN) of the existing LDAP entry to manage
     * password rotation for. If given, it will take precedence over `username` for the LDAP
     * search performed during password rotation. Cannot be modified after creation.
     * 
     */
    @Import(name="dn")
    private @Nullable Output dn;

    /**
     * @return Distinguished name (DN) of the existing LDAP entry to manage
     * password rotation for. If given, it will take precedence over `username` for the LDAP
     * search performed during password rotation. Cannot be modified after creation.
     * 
     */
    public Optional> dn() {
        return Optional.ofNullable(this.dn);
    }

    /**
     * The unique path this backend should be mounted at. Must
     * not begin or end with a `/`. Defaults to `ldap`.
     * 
     */
    @Import(name="mount")
    private @Nullable Output mount;

    /**
     * @return The unique path this backend should be mounted at. Must
     * not begin or end with a `/`. Defaults to `ldap`.
     * 
     */
    public Optional> mount() {
        return Optional.ofNullable(this.mount);
    }

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

    /**
     * Name of the role.
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return Name of the role.
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    /**
     * How often Vault should rotate the password of the user entry.
     * 
     */
    @Import(name="rotationPeriod")
    private @Nullable Output rotationPeriod;

    /**
     * @return How often Vault should rotate the password of the user entry.
     * 
     */
    public Optional> rotationPeriod() {
        return Optional.ofNullable(this.rotationPeriod);
    }

    /**
     * Causes vault to skip the initial secret rotation on import. Not applicable to updates.
     * Requires Vault 1.16 or above.
     * 
     */
    @Import(name="skipImportRotation")
    private @Nullable Output skipImportRotation;

    /**
     * @return Causes vault to skip the initial secret rotation on import. Not applicable to updates.
     * Requires Vault 1.16 or above.
     * 
     */
    public Optional> skipImportRotation() {
        return Optional.ofNullable(this.skipImportRotation);
    }

    /**
     * The username of the existing LDAP entry to manage password rotation for.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return The username of the existing LDAP entry to manage password rotation for.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private SecretBackendStaticRoleState() {}

    private SecretBackendStaticRoleState(SecretBackendStaticRoleState $) {
        this.dn = $.dn;
        this.mount = $.mount;
        this.namespace = $.namespace;
        this.roleName = $.roleName;
        this.rotationPeriod = $.rotationPeriod;
        this.skipImportRotation = $.skipImportRotation;
        this.username = $.username;
    }

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

    public static final class Builder {
        private SecretBackendStaticRoleState $;

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

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

        /**
         * @param dn Distinguished name (DN) of the existing LDAP entry to manage
         * password rotation for. If given, it will take precedence over `username` for the LDAP
         * search performed during password rotation. Cannot be modified after creation.
         * 
         * @return builder
         * 
         */
        public Builder dn(@Nullable Output dn) {
            $.dn = dn;
            return this;
        }

        /**
         * @param dn Distinguished name (DN) of the existing LDAP entry to manage
         * password rotation for. If given, it will take precedence over `username` for the LDAP
         * search performed during password rotation. Cannot be modified after creation.
         * 
         * @return builder
         * 
         */
        public Builder dn(String dn) {
            return dn(Output.of(dn));
        }

        /**
         * @param mount The unique path this backend should be mounted at. Must
         * not begin or end with a `/`. Defaults to `ldap`.
         * 
         * @return builder
         * 
         */
        public Builder mount(@Nullable Output mount) {
            $.mount = mount;
            return this;
        }

        /**
         * @param mount The unique path this backend should be mounted at. Must
         * not begin or end with a `/`. Defaults to `ldap`.
         * 
         * @return builder
         * 
         */
        public Builder mount(String mount) {
            return mount(Output.of(mount));
        }

        /**
         * @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 roleName Name of the role.
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName Name of the role.
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        /**
         * @param rotationPeriod How often Vault should rotate the password of the user entry.
         * 
         * @return builder
         * 
         */
        public Builder rotationPeriod(@Nullable Output rotationPeriod) {
            $.rotationPeriod = rotationPeriod;
            return this;
        }

        /**
         * @param rotationPeriod How often Vault should rotate the password of the user entry.
         * 
         * @return builder
         * 
         */
        public Builder rotationPeriod(Integer rotationPeriod) {
            return rotationPeriod(Output.of(rotationPeriod));
        }

        /**
         * @param skipImportRotation Causes vault to skip the initial secret rotation on import. Not applicable to updates.
         * Requires Vault 1.16 or above.
         * 
         * @return builder
         * 
         */
        public Builder skipImportRotation(@Nullable Output skipImportRotation) {
            $.skipImportRotation = skipImportRotation;
            return this;
        }

        /**
         * @param skipImportRotation Causes vault to skip the initial secret rotation on import. Not applicable to updates.
         * Requires Vault 1.16 or above.
         * 
         * @return builder
         * 
         */
        public Builder skipImportRotation(Boolean skipImportRotation) {
            return skipImportRotation(Output.of(skipImportRotation));
        }

        /**
         * @param username The username of the existing LDAP entry to manage password rotation for.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username of the existing LDAP entry to manage password rotation for.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public SecretBackendStaticRoleState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy