import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages a Resource Group Policy Assignment.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleDefinition = new azure.policy.Definition("example", {
 *     name: "only-deploy-in-westeurope",
 *     policyType: "Custom",
 *     mode: "All",
 *     displayName: "my-policy-definition",
 *     policyRule: ` {
 *     "if": {
 *       "not": {
 *         "field": "location",
 *         "equals": "westeurope"
 *       }
 *     },
 *     "then": {
 *       "effect": "Deny"
 *     }
 *   }
 * `,
 * });
 * const exampleResourceGroupPolicyAssignment = new azure.core.ResourceGroupPolicyAssignment("example", {
 *     name: "example",
 *     resourceGroupId: example.id,
 *     policyDefinitionId: exampleDefinition.id,
 *     parameters: `    {
 *       \\"tagName\\": {
 *         \\"value\\": \\"Business Unit\\"
 *       },
 *       \\"tagValue\\": {
 *         \\"value\\": \\"BU\\"
 *       }
 *     }
 * `,
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Authorization` - 2022-06-01
 *
 * ## Import
 *
 * Resource Group Policy Assignments can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:core/resourceGroupPolicyAssignment:ResourceGroupPolicyAssignment example /subscriptions/00000000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Authorization/policyAssignments/assignment1
 * ```
 */
export declare class ResourceGroupPolicyAssignment extends pulumi.CustomResource {
    /**
     * Get an existing ResourceGroupPolicyAssignment resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceGroupPolicyAssignmentState, opts?: pulumi.CustomResourceOptions): ResourceGroupPolicyAssignment;
    /**
     * Returns true if the given object is an instance of ResourceGroupPolicyAssignment.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj: any): obj is ResourceGroupPolicyAssignment;
    /**
     * A description which should be used for this Policy Assignment.
     */
    readonly description: pulumi.Output<string | undefined>;
    /**
     * The Display Name for this Policy Assignment.
     */
    readonly displayName: pulumi.Output<string | undefined>;
    /**
     * Specifies if this Policy should be enforced or not? Defaults to `true`.
     */
    readonly enforce: pulumi.Output<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     *
     * > **Note:** The `location` field must also be specified when `identity` is specified.
     */
    readonly identity: pulumi.Output<outputs.core.ResourceGroupPolicyAssignmentIdentity | undefined>;
    /**
     * The Azure Region where the Policy Assignment should exist. Changing this forces a new Policy Assignment to be created.
     */
    readonly location: pulumi.Output<string>;
    /**
     * A JSON mapping of any Metadata for this Policy.
     */
    readonly metadata: pulumi.Output<string>;
    /**
     * The name which should be used for this Policy Assignment. Changing this forces a new Policy Assignment to be created. Cannot exceed 64 characters in length.
     */
    readonly name: pulumi.Output<string>;
    /**
     * One or more `nonComplianceMessage` blocks as defined below.
     */
    readonly nonComplianceMessages: pulumi.Output<outputs.core.ResourceGroupPolicyAssignmentNonComplianceMessage[] | undefined>;
    /**
     * Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
     */
    readonly notScopes: pulumi.Output<string[] | undefined>;
    /**
     * One or more `overrides` blocks as defined below. More detail about `overrides` and `resourceSelectors` see [policy assignment structure](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure)
     */
    readonly overrides: pulumi.Output<outputs.core.ResourceGroupPolicyAssignmentOverride[] | undefined>;
    /**
     * A JSON mapping of any Parameters for this Policy.
     */
    readonly parameters: pulumi.Output<string | undefined>;
    /**
     * The ID of the Policy Definition or Policy Definition Set. Changing this forces a new Policy Assignment to be created.
     */
    readonly policyDefinitionId: pulumi.Output<string>;
    /**
     * The ID of the Resource Group where this Policy Assignment should be created. Changing this forces a new Policy Assignment to be created.
     */
    readonly resourceGroupId: pulumi.Output<string>;
    /**
     * One or more `resourceSelectors` blocks as defined below to filter polices by resource properties.
     */
    readonly resourceSelectors: pulumi.Output<outputs.core.ResourceGroupPolicyAssignmentResourceSelector[] | undefined>;
    /**
     * Create a ResourceGroupPolicyAssignment resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name: string, args: ResourceGroupPolicyAssignmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ResourceGroupPolicyAssignment resources.
 */
export interface ResourceGroupPolicyAssignmentState {
    /**
     * A description which should be used for this Policy Assignment.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * The Display Name for this Policy Assignment.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * Specifies if this Policy should be enforced or not? Defaults to `true`.
     */
    enforce?: pulumi.Input<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     *
     * > **Note:** The `location` field must also be specified when `identity` is specified.
     */
    identity?: pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentIdentity | undefined>;
    /**
     * The Azure Region where the Policy Assignment should exist. Changing this forces a new Policy Assignment to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * A JSON mapping of any Metadata for this Policy.
     */
    metadata?: pulumi.Input<string | undefined>;
    /**
     * The name which should be used for this Policy Assignment. Changing this forces a new Policy Assignment to be created. Cannot exceed 64 characters in length.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * One or more `nonComplianceMessage` blocks as defined below.
     */
    nonComplianceMessages?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentNonComplianceMessage>[] | undefined>;
    /**
     * Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
     */
    notScopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * One or more `overrides` blocks as defined below. More detail about `overrides` and `resourceSelectors` see [policy assignment structure](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure)
     */
    overrides?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentOverride>[] | undefined>;
    /**
     * A JSON mapping of any Parameters for this Policy.
     */
    parameters?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Policy Definition or Policy Definition Set. Changing this forces a new Policy Assignment to be created.
     */
    policyDefinitionId?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Resource Group where this Policy Assignment should be created. Changing this forces a new Policy Assignment to be created.
     */
    resourceGroupId?: pulumi.Input<string | undefined>;
    /**
     * One or more `resourceSelectors` blocks as defined below to filter polices by resource properties.
     */
    resourceSelectors?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentResourceSelector>[] | undefined>;
}
/**
 * The set of arguments for constructing a ResourceGroupPolicyAssignment resource.
 */
export interface ResourceGroupPolicyAssignmentArgs {
    /**
     * A description which should be used for this Policy Assignment.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * The Display Name for this Policy Assignment.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * Specifies if this Policy should be enforced or not? Defaults to `true`.
     */
    enforce?: pulumi.Input<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     *
     * > **Note:** The `location` field must also be specified when `identity` is specified.
     */
    identity?: pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentIdentity | undefined>;
    /**
     * The Azure Region where the Policy Assignment should exist. Changing this forces a new Policy Assignment to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * A JSON mapping of any Metadata for this Policy.
     */
    metadata?: pulumi.Input<string | undefined>;
    /**
     * The name which should be used for this Policy Assignment. Changing this forces a new Policy Assignment to be created. Cannot exceed 64 characters in length.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * One or more `nonComplianceMessage` blocks as defined below.
     */
    nonComplianceMessages?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentNonComplianceMessage>[] | undefined>;
    /**
     * Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
     */
    notScopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * One or more `overrides` blocks as defined below. More detail about `overrides` and `resourceSelectors` see [policy assignment structure](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure)
     */
    overrides?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentOverride>[] | undefined>;
    /**
     * A JSON mapping of any Parameters for this Policy.
     */
    parameters?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Policy Definition or Policy Definition Set. Changing this forces a new Policy Assignment to be created.
     */
    policyDefinitionId: pulumi.Input<string>;
    /**
     * The ID of the Resource Group where this Policy Assignment should be created. Changing this forces a new Policy Assignment to be created.
     */
    resourceGroupId: pulumi.Input<string>;
    /**
     * One or more `resourceSelectors` blocks as defined below to filter polices by resource properties.
     */
    resourceSelectors?: pulumi.Input<pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentResourceSelector>[] | undefined>;
}
//# sourceMappingURL=resourceGroupPolicyAssignment.d.ts.map