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

com.pulumi.azurenative.containerservice.inputs.AzureKeyVaultKmsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.containerservice.inputs;

import com.pulumi.azurenative.containerservice.enums.KeyVaultNetworkAccessTypes;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Azure Key Vault key management service settings for the security profile.
 * 
 */
public final class AzureKeyVaultKmsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureKeyVaultKmsArgs Empty = new AzureKeyVaultKmsArgs();

    /**
     * Whether to enable Azure Key Vault key management service. The default is false.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether to enable Azure Key Vault key management service. The default is false.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.
     * 
     */
    @Import(name="keyId")
    private @Nullable Output keyId;

    /**
     * @return Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.
     * 
     */
    public Optional> keyId() {
        return Optional.ofNullable(this.keyId);
    }

    /**
     * Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
     * 
     */
    @Import(name="keyVaultNetworkAccess")
    private @Nullable Output> keyVaultNetworkAccess;

    /**
     * @return Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
     * 
     */
    public Optional>> keyVaultNetworkAccess() {
        return Optional.ofNullable(this.keyVaultNetworkAccess);
    }

    /**
     * Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.
     * 
     */
    @Import(name="keyVaultResourceId")
    private @Nullable Output keyVaultResourceId;

    /**
     * @return Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.
     * 
     */
    public Optional> keyVaultResourceId() {
        return Optional.ofNullable(this.keyVaultResourceId);
    }

    private AzureKeyVaultKmsArgs() {}

    private AzureKeyVaultKmsArgs(AzureKeyVaultKmsArgs $) {
        this.enabled = $.enabled;
        this.keyId = $.keyId;
        this.keyVaultNetworkAccess = $.keyVaultNetworkAccess;
        this.keyVaultResourceId = $.keyVaultResourceId;
    }

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

    public static final class Builder {
        private AzureKeyVaultKmsArgs $;

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

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

        /**
         * @param enabled Whether to enable Azure Key Vault key management service. The default is false.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to enable Azure Key Vault key management service. The default is false.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param keyId Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.
         * 
         * @return builder
         * 
         */
        public Builder keyId(@Nullable Output keyId) {
            $.keyId = keyId;
            return this;
        }

        /**
         * @param keyId Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.
         * 
         * @return builder
         * 
         */
        public Builder keyId(String keyId) {
            return keyId(Output.of(keyId));
        }

        /**
         * @param keyVaultNetworkAccess Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultNetworkAccess(@Nullable Output> keyVaultNetworkAccess) {
            $.keyVaultNetworkAccess = keyVaultNetworkAccess;
            return this;
        }

        /**
         * @param keyVaultNetworkAccess Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultNetworkAccess(Either keyVaultNetworkAccess) {
            return keyVaultNetworkAccess(Output.of(keyVaultNetworkAccess));
        }

        /**
         * @param keyVaultNetworkAccess Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultNetworkAccess(String keyVaultNetworkAccess) {
            return keyVaultNetworkAccess(Either.ofLeft(keyVaultNetworkAccess));
        }

        /**
         * @param keyVaultNetworkAccess Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultNetworkAccess(KeyVaultNetworkAccessTypes keyVaultNetworkAccess) {
            return keyVaultNetworkAccess(Either.ofRight(keyVaultNetworkAccess));
        }

        /**
         * @param keyVaultResourceId Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultResourceId(@Nullable Output keyVaultResourceId) {
            $.keyVaultResourceId = keyVaultResourceId;
            return this;
        }

        /**
         * @param keyVaultResourceId Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultResourceId(String keyVaultResourceId) {
            return keyVaultResourceId(Output.of(keyVaultResourceId));
        }

        public AzureKeyVaultKmsArgs build() {
            $.keyVaultNetworkAccess = Codegen.stringProp("keyVaultNetworkAccess").left(KeyVaultNetworkAccessTypes.class).output().arg($.keyVaultNetworkAccess).def("Public").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy