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

com.pulumi.azure.keyvault.ManagedHardwareSecurityModuleRoleAssignmentArgs 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.keyvault;

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 ManagedHardwareSecurityModuleRoleAssignmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedHardwareSecurityModuleRoleAssignmentArgs Empty = new ManagedHardwareSecurityModuleRoleAssignmentArgs();

    /**
     * The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     * 
     */
    @Import(name="managedHsmId", required=true)
    private Output managedHsmId;

    /**
     * @return The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     * 
     */
    public Output managedHsmId() {
        return this.managedHsmId;
    }

    /**
     * The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="principalId", required=true)
    private Output principalId;

    /**
     * @return The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Output principalId() {
        return this.principalId;
    }

    /**
     * The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="roleDefinitionId", required=true)
    private Output roleDefinitionId;

    /**
     * @return The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Output roleDefinitionId() {
        return this.roleDefinitionId;
    }

    /**
     * Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private ManagedHardwareSecurityModuleRoleAssignmentArgs() {}

    private ManagedHardwareSecurityModuleRoleAssignmentArgs(ManagedHardwareSecurityModuleRoleAssignmentArgs $) {
        this.managedHsmId = $.managedHsmId;
        this.name = $.name;
        this.principalId = $.principalId;
        this.roleDefinitionId = $.roleDefinitionId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private ManagedHardwareSecurityModuleRoleAssignmentArgs $;

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

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

        /**
         * @param managedHsmId The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
         * *
         * 
         * @return builder
         * 
         */
        public Builder managedHsmId(Output managedHsmId) {
            $.managedHsmId = managedHsmId;
            return this;
        }

        /**
         * @param managedHsmId The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
         * *
         * 
         * @return builder
         * 
         */
        public Builder managedHsmId(String managedHsmId) {
            return managedHsmId(Output.of(managedHsmId));
        }

        /**
         * @param name The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param principalId The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(Output principalId) {
            $.principalId = principalId;
            return this;
        }

        /**
         * @param principalId The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(String principalId) {
            return principalId(Output.of(principalId));
        }

        /**
         * @param roleDefinitionId The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(Output roleDefinitionId) {
            $.roleDefinitionId = roleDefinitionId;
            return this;
        }

        /**
         * @param roleDefinitionId The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(String roleDefinitionId) {
            return roleDefinitionId(Output.of(roleDefinitionId));
        }

        /**
         * @param scope Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public ManagedHardwareSecurityModuleRoleAssignmentArgs build() {
            if ($.managedHsmId == null) {
                throw new MissingRequiredPropertyException("ManagedHardwareSecurityModuleRoleAssignmentArgs", "managedHsmId");
            }
            if ($.principalId == null) {
                throw new MissingRequiredPropertyException("ManagedHardwareSecurityModuleRoleAssignmentArgs", "principalId");
            }
            if ($.roleDefinitionId == null) {
                throw new MissingRequiredPropertyException("ManagedHardwareSecurityModuleRoleAssignmentArgs", "roleDefinitionId");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("ManagedHardwareSecurityModuleRoleAssignmentArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy