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

com.pulumi.azurenative.fluidrelay.inputs.CustomerManagedKeyEncryptionPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.fluidrelay.inputs;

import com.pulumi.azurenative.fluidrelay.inputs.CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * All Customer-managed key encryption properties for the resource.
 * 
 */
public final class CustomerManagedKeyEncryptionPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomerManagedKeyEncryptionPropertiesArgs Empty = new CustomerManagedKeyEncryptionPropertiesArgs();

    /**
     * All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
     * 
     */
    @Import(name="keyEncryptionKeyIdentity")
    private @Nullable Output keyEncryptionKeyIdentity;

    /**
     * @return All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
     * 
     */
    public Optional> keyEncryptionKeyIdentity() {
        return Optional.ofNullable(this.keyEncryptionKeyIdentity);
    }

    /**
     * key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
     * 
     */
    @Import(name="keyEncryptionKeyUrl")
    private @Nullable Output keyEncryptionKeyUrl;

    /**
     * @return key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
     * 
     */
    public Optional> keyEncryptionKeyUrl() {
        return Optional.ofNullable(this.keyEncryptionKeyUrl);
    }

    private CustomerManagedKeyEncryptionPropertiesArgs() {}

    private CustomerManagedKeyEncryptionPropertiesArgs(CustomerManagedKeyEncryptionPropertiesArgs $) {
        this.keyEncryptionKeyIdentity = $.keyEncryptionKeyIdentity;
        this.keyEncryptionKeyUrl = $.keyEncryptionKeyUrl;
    }

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

    public static final class Builder {
        private CustomerManagedKeyEncryptionPropertiesArgs $;

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

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

        /**
         * @param keyEncryptionKeyIdentity All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKeyIdentity(@Nullable Output keyEncryptionKeyIdentity) {
            $.keyEncryptionKeyIdentity = keyEncryptionKeyIdentity;
            return this;
        }

        /**
         * @param keyEncryptionKeyIdentity All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKeyIdentity(CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs keyEncryptionKeyIdentity) {
            return keyEncryptionKeyIdentity(Output.of(keyEncryptionKeyIdentity));
        }

        /**
         * @param keyEncryptionKeyUrl key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKeyUrl(@Nullable Output keyEncryptionKeyUrl) {
            $.keyEncryptionKeyUrl = keyEncryptionKeyUrl;
            return this;
        }

        /**
         * @param keyEncryptionKeyUrl key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
         * 
         * @return builder
         * 
         */
        public Builder keyEncryptionKeyUrl(String keyEncryptionKeyUrl) {
            return keyEncryptionKeyUrl(Output.of(keyEncryptionKeyUrl));
        }

        public CustomerManagedKeyEncryptionPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy