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

com.pulumi.azurenative.keyvault.inputs.AccessPolicyEntryArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.keyvault.inputs.PermissionsArgs;
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;


/**
 * An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
 * 
 */
public final class AccessPolicyEntryArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccessPolicyEntryArgs Empty = new AccessPolicyEntryArgs();

    /**
     *  Application ID of the client making request on behalf of a principal
     * 
     */
    @Import(name="applicationId")
    private @Nullable Output applicationId;

    /**
     * @return  Application ID of the client making request on behalf of a principal
     * 
     */
    public Optional> applicationId() {
        return Optional.ofNullable(this.applicationId);
    }

    /**
     * The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
     * 
     */
    @Import(name="objectId", required=true)
    private Output objectId;

    /**
     * @return The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
     * 
     */
    public Output objectId() {
        return this.objectId;
    }

    /**
     * Permissions the identity has for keys, secrets and certificates.
     * 
     */
    @Import(name="permissions", required=true)
    private Output permissions;

    /**
     * @return Permissions the identity has for keys, secrets and certificates.
     * 
     */
    public Output permissions() {
        return this.permissions;
    }

    /**
     * The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
     * 
     */
    @Import(name="tenantId", required=true)
    private Output tenantId;

    /**
     * @return The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
     * 
     */
    public Output tenantId() {
        return this.tenantId;
    }

    private AccessPolicyEntryArgs() {}

    private AccessPolicyEntryArgs(AccessPolicyEntryArgs $) {
        this.applicationId = $.applicationId;
        this.objectId = $.objectId;
        this.permissions = $.permissions;
        this.tenantId = $.tenantId;
    }

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

    public static final class Builder {
        private AccessPolicyEntryArgs $;

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

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

        /**
         * @param applicationId  Application ID of the client making request on behalf of a principal
         * 
         * @return builder
         * 
         */
        public Builder applicationId(@Nullable Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId  Application ID of the client making request on behalf of a principal
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        /**
         * @param objectId The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
         * 
         * @return builder
         * 
         */
        public Builder objectId(Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param permissions Permissions the identity has for keys, secrets and certificates.
         * 
         * @return builder
         * 
         */
        public Builder permissions(Output permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions Permissions the identity has for keys, secrets and certificates.
         * 
         * @return builder
         * 
         */
        public Builder permissions(PermissionsArgs permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param tenantId The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        public AccessPolicyEntryArgs build() {
            if ($.objectId == null) {
                throw new MissingRequiredPropertyException("AccessPolicyEntryArgs", "objectId");
            }
            if ($.permissions == null) {
                throw new MissingRequiredPropertyException("AccessPolicyEntryArgs", "permissions");
            }
            if ($.tenantId == null) {
                throw new MissingRequiredPropertyException("AccessPolicyEntryArgs", "tenantId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy