import * as pulumi from "@pulumi/pulumi";
/**
 * Provides a Datadog Org Group Policy Override resource. An override exempts a specific organization from a policy applied at the org group level.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as datadog from "@pulumi/datadog";
 *
 * const prod = new datadog.OrgGroup("prod", {name: "Production Environments"});
 * const exemptOrg = new datadog.OrgGroupMembership("exempt_org", {
 *     orgGroupId: prod.id,
 *     orgUuid: "ff4a8255-6931-58d1-add0-a6b3602d5421",
 * });
 * const widgetCopyPaste = new datadog.OrgGroupPolicy("widget_copy_paste", {
 *     orgGroupId: prod.id,
 *     policyName: "is_widget_copy_paste_enabled",
 *     content: JSON.stringify({
 *         org_config: false,
 *     }),
 *     enforcementTier: "OVERRIDE_ALLOWED",
 * });
 * // Exempts the given organization from the widget_copy_paste policy.
 * // The org keeps its current value for is_widget_copy_paste_enabled regardless
 * // of the policy. The resource must target a policy whose tier is not GROUP_MANAGED.
 * const example = new datadog.OrgGroupPolicyOverride("example", {
 *     orgGroupId: prod.id,
 *     policyId: widgetCopyPaste.id,
 *     orgUuid: "ff4a8255-6931-58d1-add0-a6b3602d5421",
 *     orgSite: "us1",
 * }, {
 *     dependsOn: [exemptOrg],
 * });
 * ```
 *
 * ## Behavior notes
 *
 * ### Server-side auto-creation
 *
 * Overrides are also created automatically by the server when an org's existing config differs from a policy's value. Two triggers:
 *
 * 1. **Membership change:** When an org is moved into an org group, the server compares that org's current config to each non-`GROUP_MANAGED` policy in the group. Any mismatch produces an auto-created override that records the org's existing value.
 * 2. **Policy create/update** with a non-`GROUP_MANAGED` tier: The server performs the same comparison across every member org at policy apply time, creating overrides for orgs whose config doesn't match the new policy value.
 *
 * Auto-created and user-declared overrides are indistinguishable at the API level. They can be adopted into Terraform via `pulumi import` or by iterating the `datadog.getOrgGroupPolicyOverrides` data source with `forEach` + `import` blocks.
 *
 * ### Delete behavior
 *
 * Removing an override does **not** just remove the exemption marker. The target org's config value is also reset to match the parent policy's current value. The server treats override deletion as "re-apply the policy to this org" and propagates the policy value accordingly.
 *
 * If you want to stop managing an override without changing the org's value, use `terraform state rm` instead of removing the resource block.
 *
 * ### GROUP_MANAGED tier cascade
 *
 * When the parent `datadog.OrgGroupPolicy` transitions to `enforcementTier = "GROUP_MANAGED"`, the server automatically deletes every override for that policy. Creating an override against an already-`GROUP_MANAGED`-tier policy also fails with a `FailedPrecondition` error.
 *
 * If you plan to flip a policy to `GROUP_MANAGED`, remove the `datadog.OrgGroupPolicyOverride` resource blocks for that policy in the same commit. Otherwise, Terraform's next apply will try to re-create the server-deleted overrides and fail.
 *
 * ## Import
 *
 * ```sh
 * $ pulumi import datadog:index/orgGroupPolicyOverride:OrgGroupPolicyOverride example <override_uuid>
 * ```
 */
export declare class OrgGroupPolicyOverride extends pulumi.CustomResource {
    /**
     * Get an existing OrgGroupPolicyOverride 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?: OrgGroupPolicyOverrideState, opts?: pulumi.CustomResourceOptions): OrgGroupPolicyOverride;
    /**
     * Returns true if the given object is an instance of OrgGroupPolicyOverride.  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 OrgGroupPolicyOverride;
    /**
     * The org's config value at the time the override was created, as a JSON-encoded string. Server-managed.
     */
    readonly content: pulumi.Output<string>;
    /**
     * The UUID of the org group that owns the policy. Must be a valid UUID.
     */
    readonly orgGroupId: pulumi.Output<string>;
    /**
     * The short site name of the organization (e.g., `us1`, `eu1`, `us1-fed`). Part of the override's server-side identity; changing it replaces the resource. String length must be at least 1.
     */
    readonly orgSite: pulumi.Output<string>;
    /**
     * The UUID of the organization being exempted from the policy. Must be a valid UUID.
     */
    readonly orgUuid: pulumi.Output<string>;
    /**
     * The UUID of the org group policy the override applies to. Must be a valid UUID.
     */
    readonly policyId: pulumi.Output<string>;
    /**
     * Create a OrgGroupPolicyOverride 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: OrgGroupPolicyOverrideArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering OrgGroupPolicyOverride resources.
 */
export interface OrgGroupPolicyOverrideState {
    /**
     * The org's config value at the time the override was created, as a JSON-encoded string. Server-managed.
     */
    content?: pulumi.Input<string | undefined>;
    /**
     * The UUID of the org group that owns the policy. Must be a valid UUID.
     */
    orgGroupId?: pulumi.Input<string | undefined>;
    /**
     * The short site name of the organization (e.g., `us1`, `eu1`, `us1-fed`). Part of the override's server-side identity; changing it replaces the resource. String length must be at least 1.
     */
    orgSite?: pulumi.Input<string | undefined>;
    /**
     * The UUID of the organization being exempted from the policy. Must be a valid UUID.
     */
    orgUuid?: pulumi.Input<string | undefined>;
    /**
     * The UUID of the org group policy the override applies to. Must be a valid UUID.
     */
    policyId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a OrgGroupPolicyOverride resource.
 */
export interface OrgGroupPolicyOverrideArgs {
    /**
     * The UUID of the org group that owns the policy. Must be a valid UUID.
     */
    orgGroupId: pulumi.Input<string>;
    /**
     * The short site name of the organization (e.g., `us1`, `eu1`, `us1-fed`). Part of the override's server-side identity; changing it replaces the resource. String length must be at least 1.
     */
    orgSite: pulumi.Input<string>;
    /**
     * The UUID of the organization being exempted from the policy. Must be a valid UUID.
     */
    orgUuid: pulumi.Input<string>;
    /**
     * The UUID of the org group policy the override applies to. Must be a valid UUID.
     */
    policyId: pulumi.Input<string>;
}
//# sourceMappingURL=orgGroupPolicyOverride.d.ts.map