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

com.pulumi.azure.cognitive.inputs.AccountCustomerManagedKeyArgs 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.cognitive.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccountCustomerManagedKeyArgs Empty = new AccountCustomerManagedKeyArgs();

    /**
     * The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
     * 
     */
    @Import(name="identityClientId")
    private @Nullable Output identityClientId;

    /**
     * @return The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
     * 
     */
    public Optional> identityClientId() {
        return Optional.ofNullable(this.identityClientId);
    }

    /**
     * The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
     * 
     */
    @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 Cognitive Account.
     * 
     */
    public Output keyVaultKeyId() {
        return this.keyVaultKeyId;
    }

    private AccountCustomerManagedKeyArgs() {}

    private AccountCustomerManagedKeyArgs(AccountCustomerManagedKeyArgs $) {
        this.identityClientId = $.identityClientId;
        this.keyVaultKeyId = $.keyVaultKeyId;
    }

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

    public static final class Builder {
        private AccountCustomerManagedKeyArgs $;

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

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

        /**
         * @param identityClientId The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
         * 
         * @return builder
         * 
         */
        public Builder identityClientId(@Nullable Output identityClientId) {
            $.identityClientId = identityClientId;
            return this;
        }

        /**
         * @param identityClientId The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
         * 
         * @return builder
         * 
         */
        public Builder identityClientId(String identityClientId) {
            return identityClientId(Output.of(identityClientId));
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
         * 
         * @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 Cognitive Account.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(String keyVaultKeyId) {
            return keyVaultKeyId(Output.of(keyVaultKeyId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy