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

com.pulumi.azure.pim.RoleManagementPolicyArgs 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.pim;

import com.pulumi.azure.pim.inputs.RoleManagementPolicyActivationRulesArgs;
import com.pulumi.azure.pim.inputs.RoleManagementPolicyActiveAssignmentRulesArgs;
import com.pulumi.azure.pim.inputs.RoleManagementPolicyEligibleAssignmentRulesArgs;
import com.pulumi.azure.pim.inputs.RoleManagementPolicyNotificationRulesArgs;
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 RoleManagementPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final RoleManagementPolicyArgs Empty = new RoleManagementPolicyArgs();

    /**
     * An `activation_rules` block as defined below.
     * 
     */
    @Import(name="activationRules")
    private @Nullable Output activationRules;

    /**
     * @return An `activation_rules` block as defined below.
     * 
     */
    public Optional> activationRules() {
        return Optional.ofNullable(this.activationRules);
    }

    /**
     * An `active_assignment_rules` block as defined below.
     * 
     */
    @Import(name="activeAssignmentRules")
    private @Nullable Output activeAssignmentRules;

    /**
     * @return An `active_assignment_rules` block as defined below.
     * 
     */
    public Optional> activeAssignmentRules() {
        return Optional.ofNullable(this.activeAssignmentRules);
    }

    /**
     * An `eligible_assignment_rules` block as defined below.
     * 
     */
    @Import(name="eligibleAssignmentRules")
    private @Nullable Output eligibleAssignmentRules;

    /**
     * @return An `eligible_assignment_rules` block as defined below.
     * 
     */
    public Optional> eligibleAssignmentRules() {
        return Optional.ofNullable(this.eligibleAssignmentRules);
    }

    /**
     * A `notification_rules` block as defined below.
     * 
     */
    @Import(name="notificationRules")
    private @Nullable Output notificationRules;

    /**
     * @return A `notification_rules` block as defined below.
     * 
     */
    public Optional> notificationRules() {
        return Optional.ofNullable(this.notificationRules);
    }

    /**
     * The scoped Role Definition ID of the role for which this policy will apply. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="roleDefinitionId", required=true)
    private Output roleDefinitionId;

    /**
     * @return The scoped Role Definition ID of the role for which this policy will apply. Changing this forces a new resource to be created.
     * 
     */
    public Output roleDefinitionId() {
        return this.roleDefinitionId;
    }

    /**
     * The scope to which this Role Management Policy will apply. Can refer to a management group, a subscription, a resource group or a resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope to which this Role Management Policy will apply. Can refer to a management group, a subscription, a resource group or a resource. Changing this forces a new resource to be created.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private RoleManagementPolicyArgs() {}

    private RoleManagementPolicyArgs(RoleManagementPolicyArgs $) {
        this.activationRules = $.activationRules;
        this.activeAssignmentRules = $.activeAssignmentRules;
        this.eligibleAssignmentRules = $.eligibleAssignmentRules;
        this.notificationRules = $.notificationRules;
        this.roleDefinitionId = $.roleDefinitionId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private RoleManagementPolicyArgs $;

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

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

        /**
         * @param activationRules An `activation_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder activationRules(@Nullable Output activationRules) {
            $.activationRules = activationRules;
            return this;
        }

        /**
         * @param activationRules An `activation_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder activationRules(RoleManagementPolicyActivationRulesArgs activationRules) {
            return activationRules(Output.of(activationRules));
        }

        /**
         * @param activeAssignmentRules An `active_assignment_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder activeAssignmentRules(@Nullable Output activeAssignmentRules) {
            $.activeAssignmentRules = activeAssignmentRules;
            return this;
        }

        /**
         * @param activeAssignmentRules An `active_assignment_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder activeAssignmentRules(RoleManagementPolicyActiveAssignmentRulesArgs activeAssignmentRules) {
            return activeAssignmentRules(Output.of(activeAssignmentRules));
        }

        /**
         * @param eligibleAssignmentRules An `eligible_assignment_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder eligibleAssignmentRules(@Nullable Output eligibleAssignmentRules) {
            $.eligibleAssignmentRules = eligibleAssignmentRules;
            return this;
        }

        /**
         * @param eligibleAssignmentRules An `eligible_assignment_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder eligibleAssignmentRules(RoleManagementPolicyEligibleAssignmentRulesArgs eligibleAssignmentRules) {
            return eligibleAssignmentRules(Output.of(eligibleAssignmentRules));
        }

        /**
         * @param notificationRules A `notification_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notificationRules(@Nullable Output notificationRules) {
            $.notificationRules = notificationRules;
            return this;
        }

        /**
         * @param notificationRules A `notification_rules` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notificationRules(RoleManagementPolicyNotificationRulesArgs notificationRules) {
            return notificationRules(Output.of(notificationRules));
        }

        /**
         * @param roleDefinitionId The scoped Role Definition ID of the role for which this policy will apply. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(Output roleDefinitionId) {
            $.roleDefinitionId = roleDefinitionId;
            return this;
        }

        /**
         * @param roleDefinitionId The scoped Role Definition ID of the role for which this policy will apply. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(String roleDefinitionId) {
            return roleDefinitionId(Output.of(roleDefinitionId));
        }

        /**
         * @param scope The scope to which this Role Management Policy will apply. Can refer to a management group, a subscription, a resource group or a resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope to which this Role Management Policy will apply. Can refer to a management group, a subscription, a resource group or a resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy