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

com.pulumi.azure.storage.EncryptionScopeArgs 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.storage;

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


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

    public static final EncryptionScopeArgs Empty = new EncryptionScopeArgs();

    /**
     * Is a secondary layer of encryption with Platform Managed Keys for data applied? Changing this forces a new resource to be created.
     * 
     */
    @Import(name="infrastructureEncryptionRequired")
    private @Nullable Output infrastructureEncryptionRequired;

    /**
     * @return Is a secondary layer of encryption with Platform Managed Keys for data applied? Changing this forces a new resource to be created.
     * 
     */
    public Optional> infrastructureEncryptionRequired() {
        return Optional.ofNullable(this.infrastructureEncryptionRequired);
    }

    /**
     * The ID of the Key Vault Key. Required when `source` is `Microsoft.KeyVault`.
     * 
     */
    @Import(name="keyVaultKeyId")
    private @Nullable Output keyVaultKeyId;

    /**
     * @return The ID of the Key Vault Key. Required when `source` is `Microsoft.KeyVault`.
     * 
     */
    public Optional> keyVaultKeyId() {
        return Optional.ofNullable(this.keyVaultKeyId);
    }

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

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

    /**
     * The source of the Storage Encryption Scope. Possible values are `Microsoft.KeyVault` and `Microsoft.Storage`.
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return The source of the Storage Encryption Scope. Possible values are `Microsoft.KeyVault` and `Microsoft.Storage`.
     * 
     */
    public Output source() {
        return this.source;
    }

    /**
     * The ID of the Storage Account where this Storage Encryption Scope is created. Changing this forces a new Storage Encryption Scope to be created.
     * 
     */
    @Import(name="storageAccountId", required=true)
    private Output storageAccountId;

    /**
     * @return The ID of the Storage Account where this Storage Encryption Scope is created. Changing this forces a new Storage Encryption Scope to be created.
     * 
     */
    public Output storageAccountId() {
        return this.storageAccountId;
    }

    private EncryptionScopeArgs() {}

    private EncryptionScopeArgs(EncryptionScopeArgs $) {
        this.infrastructureEncryptionRequired = $.infrastructureEncryptionRequired;
        this.keyVaultKeyId = $.keyVaultKeyId;
        this.name = $.name;
        this.source = $.source;
        this.storageAccountId = $.storageAccountId;
    }

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

    public static final class Builder {
        private EncryptionScopeArgs $;

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

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

        /**
         * @param infrastructureEncryptionRequired Is a secondary layer of encryption with Platform Managed Keys for data applied? Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureEncryptionRequired(@Nullable Output infrastructureEncryptionRequired) {
            $.infrastructureEncryptionRequired = infrastructureEncryptionRequired;
            return this;
        }

        /**
         * @param infrastructureEncryptionRequired Is a secondary layer of encryption with Platform Managed Keys for data applied? Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureEncryptionRequired(Boolean infrastructureEncryptionRequired) {
            return infrastructureEncryptionRequired(Output.of(infrastructureEncryptionRequired));
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key. Required when `source` is `Microsoft.KeyVault`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(@Nullable Output keyVaultKeyId) {
            $.keyVaultKeyId = keyVaultKeyId;
            return this;
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key. Required when `source` is `Microsoft.KeyVault`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(String keyVaultKeyId) {
            return keyVaultKeyId(Output.of(keyVaultKeyId));
        }

        /**
         * @param name The name which should be used for this Storage Encryption Scope. Changing this forces a new Storage Encryption Scope 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 Storage Encryption Scope. Changing this forces a new Storage Encryption Scope to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param source The source of the Storage Encryption Scope. Possible values are `Microsoft.KeyVault` and `Microsoft.Storage`.
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source of the Storage Encryption Scope. Possible values are `Microsoft.KeyVault` and `Microsoft.Storage`.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param storageAccountId The ID of the Storage Account where this Storage Encryption Scope is created. Changing this forces a new Storage Encryption Scope to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The ID of the Storage Account where this Storage Encryption Scope is created. Changing this forces a new Storage Encryption Scope to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        public EncryptionScopeArgs build() {
            if ($.source == null) {
                throw new MissingRequiredPropertyException("EncryptionScopeArgs", "source");
            }
            if ($.storageAccountId == null) {
                throw new MissingRequiredPropertyException("EncryptionScopeArgs", "storageAccountId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy