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

com.pulumi.azure.eventhub.inputs.NamespaceCustomerManagedKeyArgs 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.eventhub.inputs;

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 NamespaceCustomerManagedKeyArgs extends com.pulumi.resources.ResourceArgs {

    public static final NamespaceCustomerManagedKeyArgs Empty = new NamespaceCustomerManagedKeyArgs();

    /**
     * The ID of the User Assigned Identity that has access to the key.
     * 
     */
    @Import(name="identityId", required=true)
    private Output identityId;

    /**
     * @return The ID of the User Assigned Identity that has access to the key.
     * 
     */
    public Output identityId() {
        return this.identityId;
    }

    /**
     * Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
     * 
     */
    @Import(name="infrastructureEncryptionEnabled")
    private @Nullable Output infrastructureEncryptionEnabled;

    /**
     * @return Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
     * 
     */
    public Optional> infrastructureEncryptionEnabled() {
        return Optional.ofNullable(this.infrastructureEncryptionEnabled);
    }

    /**
     * The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
     * 
     */
    @Import(name="keyVaultKeyId", required=true)
    private Output keyVaultKeyId;

    /**
     * @return The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
     * 
     */
    public Output keyVaultKeyId() {
        return this.keyVaultKeyId;
    }

    private NamespaceCustomerManagedKeyArgs() {}

    private NamespaceCustomerManagedKeyArgs(NamespaceCustomerManagedKeyArgs $) {
        this.identityId = $.identityId;
        this.infrastructureEncryptionEnabled = $.infrastructureEncryptionEnabled;
        this.keyVaultKeyId = $.keyVaultKeyId;
    }

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

    public static final class Builder {
        private NamespaceCustomerManagedKeyArgs $;

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

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

        /**
         * @param identityId The ID of the User Assigned Identity that has access to the key.
         * 
         * @return builder
         * 
         */
        public Builder identityId(Output identityId) {
            $.identityId = identityId;
            return this;
        }

        /**
         * @param identityId The ID of the User Assigned Identity that has access to the key.
         * 
         * @return builder
         * 
         */
        public Builder identityId(String identityId) {
            return identityId(Output.of(identityId));
        }

        /**
         * @param infrastructureEncryptionEnabled Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureEncryptionEnabled(@Nullable Output infrastructureEncryptionEnabled) {
            $.infrastructureEncryptionEnabled = infrastructureEncryptionEnabled;
            return this;
        }

        /**
         * @param infrastructureEncryptionEnabled Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureEncryptionEnabled(Boolean infrastructureEncryptionEnabled) {
            return infrastructureEncryptionEnabled(Output.of(infrastructureEncryptionEnabled));
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(Output keyVaultKeyId) {
            $.keyVaultKeyId = keyVaultKeyId;
            return this;
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(String keyVaultKeyId) {
            return keyVaultKeyId(Output.of(keyVaultKeyId));
        }

        public NamespaceCustomerManagedKeyArgs build() {
            if ($.identityId == null) {
                throw new MissingRequiredPropertyException("NamespaceCustomerManagedKeyArgs", "identityId");
            }
            if ($.keyVaultKeyId == null) {
                throw new MissingRequiredPropertyException("NamespaceCustomerManagedKeyArgs", "keyVaultKeyId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy