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

com.pulumi.azure.keyvault.ManagedStorageAccountArgs 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;

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


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

    public static final ManagedStorageAccountArgs Empty = new ManagedStorageAccountArgs();

    /**
     * The ID of the Key Vault where the Managed Storage Account should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="keyVaultId", required=true)
    private Output keyVaultId;

    /**
     * @return The ID of the Key Vault where the Managed Storage Account should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output keyVaultId() {
        return this.keyVaultId;
    }

    /**
     * The name which should be used for this Key Vault Managed Storage Account. Changing this forces a new Key Vault Managed Storage Account to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Key Vault Managed Storage Account. Changing this forces a new Key Vault Managed Storage Account to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Should Storage Account access key be regenerated periodically?
     * 
     * > **NOTE:** Azure Key Vault application needs to have access to Storage Account for auto regeneration to work. Example can be found above.
     * 
     */
    @Import(name="regenerateKeyAutomatically")
    private @Nullable Output regenerateKeyAutomatically;

    /**
     * @return Should Storage Account access key be regenerated periodically?
     * 
     * > **NOTE:** Azure Key Vault application needs to have access to Storage Account for auto regeneration to work. Example can be found above.
     * 
     */
    public Optional> regenerateKeyAutomatically() {
        return Optional.ofNullable(this.regenerateKeyAutomatically);
    }

    /**
     * How often Storage Account access key should be regenerated. Value needs to be in [ISO 8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    @Import(name="regenerationPeriod")
    private @Nullable Output regenerationPeriod;

    /**
     * @return How often Storage Account access key should be regenerated. Value needs to be in [ISO 8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    public Optional> regenerationPeriod() {
        return Optional.ofNullable(this.regenerationPeriod);
    }

    /**
     * The ID of the Storage Account.
     * 
     */
    @Import(name="storageAccountId", required=true)
    private Output storageAccountId;

    /**
     * @return The ID of the Storage Account.
     * 
     */
    public Output storageAccountId() {
        return this.storageAccountId;
    }

    /**
     * Which Storage Account access key that is managed by Key Vault. Possible values are `key1` and `key2`.
     * 
     */
    @Import(name="storageAccountKey", required=true)
    private Output storageAccountKey;

    /**
     * @return Which Storage Account access key that is managed by Key Vault. Possible values are `key1` and `key2`.
     * 
     */
    public Output storageAccountKey() {
        return this.storageAccountKey;
    }

    /**
     * A mapping of tags which should be assigned to the Key Vault Managed Storage Account. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Key Vault Managed Storage Account. Changing this forces a new resource to be created.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ManagedStorageAccountArgs() {}

    private ManagedStorageAccountArgs(ManagedStorageAccountArgs $) {
        this.keyVaultId = $.keyVaultId;
        this.name = $.name;
        this.regenerateKeyAutomatically = $.regenerateKeyAutomatically;
        this.regenerationPeriod = $.regenerationPeriod;
        this.storageAccountId = $.storageAccountId;
        this.storageAccountKey = $.storageAccountKey;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ManagedStorageAccountArgs $;

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

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

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

        /**
         * @param keyVaultId The ID of the Key Vault where the Managed Storage Account 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 The name which should be used for this Key Vault Managed Storage Account. Changing this forces a new Key Vault Managed Storage Account to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Key Vault Managed Storage Account. Changing this forces a new Key Vault Managed Storage Account to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param regenerateKeyAutomatically Should Storage Account access key be regenerated periodically?
         * 
         * > **NOTE:** Azure Key Vault application needs to have access to Storage Account for auto regeneration to work. Example can be found above.
         * 
         * @return builder
         * 
         */
        public Builder regenerateKeyAutomatically(@Nullable Output regenerateKeyAutomatically) {
            $.regenerateKeyAutomatically = regenerateKeyAutomatically;
            return this;
        }

        /**
         * @param regenerateKeyAutomatically Should Storage Account access key be regenerated periodically?
         * 
         * > **NOTE:** Azure Key Vault application needs to have access to Storage Account for auto regeneration to work. Example can be found above.
         * 
         * @return builder
         * 
         */
        public Builder regenerateKeyAutomatically(Boolean regenerateKeyAutomatically) {
            return regenerateKeyAutomatically(Output.of(regenerateKeyAutomatically));
        }

        /**
         * @param regenerationPeriod How often Storage Account access key should be regenerated. Value needs to be in [ISO 8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder regenerationPeriod(@Nullable Output regenerationPeriod) {
            $.regenerationPeriod = regenerationPeriod;
            return this;
        }

        /**
         * @param regenerationPeriod How often Storage Account access key should be regenerated. Value needs to be in [ISO 8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder regenerationPeriod(String regenerationPeriod) {
            return regenerationPeriod(Output.of(regenerationPeriod));
        }

        /**
         * @param storageAccountId The ID of the Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The ID of the Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        /**
         * @param storageAccountKey Which Storage Account access key that is managed by Key Vault. Possible values are `key1` and `key2`.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(Output storageAccountKey) {
            $.storageAccountKey = storageAccountKey;
            return this;
        }

        /**
         * @param storageAccountKey Which Storage Account access key that is managed by Key Vault. Possible values are `key1` and `key2`.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(String storageAccountKey) {
            return storageAccountKey(Output.of(storageAccountKey));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Key Vault Managed Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Key Vault Managed Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ManagedStorageAccountArgs build() {
            if ($.keyVaultId == null) {
                throw new MissingRequiredPropertyException("ManagedStorageAccountArgs", "keyVaultId");
            }
            if ($.storageAccountId == null) {
                throw new MissingRequiredPropertyException("ManagedStorageAccountArgs", "storageAccountId");
            }
            if ($.storageAccountKey == null) {
                throw new MissingRequiredPropertyException("ManagedStorageAccountArgs", "storageAccountKey");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy