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

com.pulumi.azurenative.fluidrelay.inputs.CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs 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.fluidrelay.inputs;

import com.pulumi.azurenative.fluidrelay.enums.CmkIdentityType;
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 identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
 * 
 */
public final class CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs Empty = new CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs();

    /**
     * Values can be SystemAssigned or UserAssigned
     * 
     */
    @Import(name="identityType")
    private @Nullable Output identityType;

    /**
     * @return Values can be SystemAssigned or UserAssigned
     * 
     */
    public Optional> identityType() {
        return Optional.ofNullable(this.identityType);
    }

    /**
     * user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
     * 
     */
    @Import(name="userAssignedIdentityResourceId")
    private @Nullable Output userAssignedIdentityResourceId;

    /**
     * @return user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
     * 
     */
    public Optional> userAssignedIdentityResourceId() {
        return Optional.ofNullable(this.userAssignedIdentityResourceId);
    }

    private CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs() {}

    private CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs(CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs $) {
        this.identityType = $.identityType;
        this.userAssignedIdentityResourceId = $.userAssignedIdentityResourceId;
    }

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

    public static final class Builder {
        private CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs $;

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

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

        /**
         * @param identityType Values can be SystemAssigned or UserAssigned
         * 
         * @return builder
         * 
         */
        public Builder identityType(@Nullable Output identityType) {
            $.identityType = identityType;
            return this;
        }

        /**
         * @param identityType Values can be SystemAssigned or UserAssigned
         * 
         * @return builder
         * 
         */
        public Builder identityType(CmkIdentityType identityType) {
            return identityType(Output.of(identityType));
        }

        /**
         * @param userAssignedIdentityResourceId user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentityResourceId(@Nullable Output userAssignedIdentityResourceId) {
            $.userAssignedIdentityResourceId = userAssignedIdentityResourceId;
            return this;
        }

        /**
         * @param userAssignedIdentityResourceId user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentityResourceId(String userAssignedIdentityResourceId) {
            return userAssignedIdentityResourceId(Output.of(userAssignedIdentityResourceId));
        }

        public CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy