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

com.pulumi.azure.keyvault.inputs.SecretState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.keyvault.inputs;

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


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

    public static final SecretState Empty = new SecretState();

    /**
     * Specifies the content type for the Key Vault Secret.
     * 
     */
    @Import(name="contentType")
    private @Nullable Output contentType;

    /**
     * @return Specifies the content type for the Key Vault Secret.
     * 
     */
    public Optional> contentType() {
        return Optional.ofNullable(this.contentType);
    }

    /**
     * Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
     * 
     */
    @Import(name="expirationDate")
    private @Nullable Output expirationDate;

    /**
     * @return Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
     * 
     */
    public Optional> expirationDate() {
        return Optional.ofNullable(this.expirationDate);
    }

    /**
     * The ID of the Key Vault where the Secret should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="keyVaultId")
    private @Nullable Output keyVaultId;

    /**
     * @return The ID of the Key Vault where the Secret should be created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> keyVaultId() {
        return Optional.ofNullable(this.keyVaultId);
    }

    /**
     * Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
     * 
     */
    @Import(name="notBeforeDate")
    private @Nullable Output notBeforeDate;

    /**
     * @return Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
     * 
     */
    public Optional> notBeforeDate() {
        return Optional.ofNullable(this.notBeforeDate);
    }

    /**
     * The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
     * 
     */
    @Import(name="resourceVersionlessId")
    private @Nullable Output resourceVersionlessId;

    /**
     * @return The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
     * 
     */
    public Optional> resourceVersionlessId() {
        return Optional.ofNullable(this.resourceVersionlessId);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the value of the Key Vault Secret. Changing this will create a new version of the Key Vault Secret.
     * 
     * > **Note:** Key Vault strips newlines. To preserve newlines in multi-line secrets try replacing them with `\n` or by base 64 encoding them with `replace(file("my_secret_file"), "/\n/", "\n")` or `base64encode(file("my_secret_file"))`, respectively.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Specifies the value of the Key Vault Secret. Changing this will create a new version of the Key Vault Secret.
     * 
     * > **Note:** Key Vault strips newlines. To preserve newlines in multi-line secrets try replacing them with `\n` or by base 64 encoding them with `replace(file("my_secret_file"), "/\n/", "\n")` or `base64encode(file("my_secret_file"))`, respectively.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    /**
     * The current version of the Key Vault Secret.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The current version of the Key Vault Secret.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    /**
     * The Base ID of the Key Vault Secret.
     * 
     */
    @Import(name="versionlessId")
    private @Nullable Output versionlessId;

    /**
     * @return The Base ID of the Key Vault Secret.
     * 
     */
    public Optional> versionlessId() {
        return Optional.ofNullable(this.versionlessId);
    }

    private SecretState() {}

    private SecretState(SecretState $) {
        this.contentType = $.contentType;
        this.expirationDate = $.expirationDate;
        this.keyVaultId = $.keyVaultId;
        this.name = $.name;
        this.notBeforeDate = $.notBeforeDate;
        this.resourceId = $.resourceId;
        this.resourceVersionlessId = $.resourceVersionlessId;
        this.tags = $.tags;
        this.value = $.value;
        this.version = $.version;
        this.versionlessId = $.versionlessId;
    }

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

    public static final class Builder {
        private SecretState $;

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

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

        /**
         * @param contentType Specifies the content type for the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder contentType(@Nullable Output contentType) {
            $.contentType = contentType;
            return this;
        }

        /**
         * @param contentType Specifies the content type for the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

        /**
         * @param expirationDate Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(@Nullable Output expirationDate) {
            $.expirationDate = expirationDate;
            return this;
        }

        /**
         * @param expirationDate Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(String expirationDate) {
            return expirationDate(Output.of(expirationDate));
        }

        /**
         * @param keyVaultId The ID of the Key Vault where the Secret should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(@Nullable Output keyVaultId) {
            $.keyVaultId = keyVaultId;
            return this;
        }

        /**
         * @param keyVaultId The ID of the Key Vault where the Secret should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(String keyVaultId) {
            return keyVaultId(Output.of(keyVaultId));
        }

        /**
         * @param name Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notBeforeDate Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
         * 
         * @return builder
         * 
         */
        public Builder notBeforeDate(@Nullable Output notBeforeDate) {
            $.notBeforeDate = notBeforeDate;
            return this;
        }

        /**
         * @param notBeforeDate Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
         * 
         * @return builder
         * 
         */
        public Builder notBeforeDate(String notBeforeDate) {
            return notBeforeDate(Output.of(notBeforeDate));
        }

        /**
         * @param resourceId The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param resourceVersionlessId The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
         * 
         * @return builder
         * 
         */
        public Builder resourceVersionlessId(@Nullable Output resourceVersionlessId) {
            $.resourceVersionlessId = resourceVersionlessId;
            return this;
        }

        /**
         * @param resourceVersionlessId The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
         * 
         * @return builder
         * 
         */
        public Builder resourceVersionlessId(String resourceVersionlessId) {
            return resourceVersionlessId(Output.of(resourceVersionlessId));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param value Specifies the value of the Key Vault Secret. Changing this will create a new version of the Key Vault Secret.
         * 
         * > **Note:** Key Vault strips newlines. To preserve newlines in multi-line secrets try replacing them with `\n` or by base 64 encoding them with `replace(file("my_secret_file"), "/\n/", "\n")` or `base64encode(file("my_secret_file"))`, respectively.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Specifies the value of the Key Vault Secret. Changing this will create a new version of the Key Vault Secret.
         * 
         * > **Note:** Key Vault strips newlines. To preserve newlines in multi-line secrets try replacing them with `\n` or by base 64 encoding them with `replace(file("my_secret_file"), "/\n/", "\n")` or `base64encode(file("my_secret_file"))`, respectively.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        /**
         * @param version The current version of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The current version of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        /**
         * @param versionlessId The Base ID of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder versionlessId(@Nullable Output versionlessId) {
            $.versionlessId = versionlessId;
            return this;
        }

        /**
         * @param versionlessId The Base ID of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder versionlessId(String versionlessId) {
            return versionlessId(Output.of(versionlessId));
        }

        public SecretState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy