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

com.pulumi.azure.eventhub.inputs.NamespaceCustomerManagedKeyState 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 java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NamespaceCustomerManagedKeyState Empty = new NamespaceCustomerManagedKeyState();

    /**
     * The ID of the EventHub Namespace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubNamespaceId")
    private @Nullable Output eventhubNamespaceId;

    /**
     * @return The ID of the EventHub Namespace. Changing this forces a new resource to be created.
     * 
     */
    public Optional> eventhubNamespaceId() {
        return Optional.ofNullable(this.eventhubNamespaceId);
    }

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

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

    /**
     * The list of keys of Key Vault.
     * 
     */
    @Import(name="keyVaultKeyIds")
    private @Nullable Output> keyVaultKeyIds;

    /**
     * @return The list of keys of Key Vault.
     * 
     */
    public Optional>> keyVaultKeyIds() {
        return Optional.ofNullable(this.keyVaultKeyIds);
    }

    /**
     * The ID of a User Managed Identity that will be used to access Key Vaults that contain the encryption keys.
     * 
     * > **Note:** If using `user_assigned_identity_id`, ensure the User Assigned Identity is also assigned to the parent Event Hub.
     * 
     * > **Note:** If using `user_assigned_identity_id`, make sure to assign the identity the appropriate permissions to access the Key Vault key. Failure to grant `Get, UnwrapKey, and WrapKey` will cause this resource to fail to apply.
     * 
     */
    @Import(name="userAssignedIdentityId")
    private @Nullable Output userAssignedIdentityId;

    /**
     * @return The ID of a User Managed Identity that will be used to access Key Vaults that contain the encryption keys.
     * 
     * > **Note:** If using `user_assigned_identity_id`, ensure the User Assigned Identity is also assigned to the parent Event Hub.
     * 
     * > **Note:** If using `user_assigned_identity_id`, make sure to assign the identity the appropriate permissions to access the Key Vault key. Failure to grant `Get, UnwrapKey, and WrapKey` will cause this resource to fail to apply.
     * 
     */
    public Optional> userAssignedIdentityId() {
        return Optional.ofNullable(this.userAssignedIdentityId);
    }

    private NamespaceCustomerManagedKeyState() {}

    private NamespaceCustomerManagedKeyState(NamespaceCustomerManagedKeyState $) {
        this.eventhubNamespaceId = $.eventhubNamespaceId;
        this.infrastructureEncryptionEnabled = $.infrastructureEncryptionEnabled;
        this.keyVaultKeyIds = $.keyVaultKeyIds;
        this.userAssignedIdentityId = $.userAssignedIdentityId;
    }

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

    public static final class Builder {
        private NamespaceCustomerManagedKeyState $;

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

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

        /**
         * @param eventhubNamespaceId The ID of the EventHub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceId(@Nullable Output eventhubNamespaceId) {
            $.eventhubNamespaceId = eventhubNamespaceId;
            return this;
        }

        /**
         * @param eventhubNamespaceId The ID of the EventHub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceId(String eventhubNamespaceId) {
            return eventhubNamespaceId(Output.of(eventhubNamespaceId));
        }

        /**
         * @param infrastructureEncryptionEnabled Whether to 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 Whether to 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 keyVaultKeyIds The list of keys of Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyIds(@Nullable Output> keyVaultKeyIds) {
            $.keyVaultKeyIds = keyVaultKeyIds;
            return this;
        }

        /**
         * @param keyVaultKeyIds The list of keys of Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyIds(List keyVaultKeyIds) {
            return keyVaultKeyIds(Output.of(keyVaultKeyIds));
        }

        /**
         * @param keyVaultKeyIds The list of keys of Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyIds(String... keyVaultKeyIds) {
            return keyVaultKeyIds(List.of(keyVaultKeyIds));
        }

        /**
         * @param userAssignedIdentityId The ID of a User Managed Identity that will be used to access Key Vaults that contain the encryption keys.
         * 
         * > **Note:** If using `user_assigned_identity_id`, ensure the User Assigned Identity is also assigned to the parent Event Hub.
         * 
         * > **Note:** If using `user_assigned_identity_id`, make sure to assign the identity the appropriate permissions to access the Key Vault key. Failure to grant `Get, UnwrapKey, and WrapKey` will cause this resource to fail to apply.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentityId(@Nullable Output userAssignedIdentityId) {
            $.userAssignedIdentityId = userAssignedIdentityId;
            return this;
        }

        /**
         * @param userAssignedIdentityId The ID of a User Managed Identity that will be used to access Key Vaults that contain the encryption keys.
         * 
         * > **Note:** If using `user_assigned_identity_id`, ensure the User Assigned Identity is also assigned to the parent Event Hub.
         * 
         * > **Note:** If using `user_assigned_identity_id`, make sure to assign the identity the appropriate permissions to access the Key Vault key. Failure to grant `Get, UnwrapKey, and WrapKey` will cause this resource to fail to apply.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentityId(String userAssignedIdentityId) {
            return userAssignedIdentityId(Output.of(userAssignedIdentityId));
        }

        public NamespaceCustomerManagedKeyState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy