import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/fleet-management/latest/CompliancePolicyRule
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/fleet_apps_management
 *
 * Creates a compliance policy rule.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testCompliancePolicyRule = new oci.fleetappsmanagement.CompliancePolicyRule("test_compliance_policy_rule", {
 *     compliancePolicyId: testCompliancePolicy.id,
 *     displayName: compliancePolicyRuleDisplayName,
 *     patchSelection: {
 *         selectionType: compliancePolicyRulePatchSelectionSelectionType,
 *         daysSinceRelease: Number(compliancePolicyRulePatchSelectionDaysSinceRelease),
 *         patchLevel: compliancePolicyRulePatchSelectionPatchLevel,
 *         patchName: testPatch.name,
 *     },
 *     patchTypeIds: testPatchType.id,
 *     productVersion: {
 *         version: compliancePolicyRuleProductVersionVersion,
 *         isApplicableForAllHigherVersions: compliancePolicyRuleProductVersionIsApplicableForAllHigherVersions === "true",
 *     },
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     gracePeriod: compliancePolicyRuleGracePeriod,
 *     severities: compliancePolicyRuleSeverity,
 * });
 * ```
 *
 * ## Import
 *
 * CompliancePolicyRules can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:FleetAppsManagement/compliancePolicyRule:CompliancePolicyRule test_compliance_policy_rule "id"
 * ```
 */
export declare class CompliancePolicyRule extends pulumi.CustomResource {
    /**
     * Get an existing CompliancePolicyRule 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?: CompliancePolicyRuleState, opts?: pulumi.CustomResourceOptions): CompliancePolicyRule;
    /**
     * Returns true if the given object is an instance of CompliancePolicyRule.  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 CompliancePolicyRule;
    /**
     * The OCID of the compartment the CompliancePolicyRule belongs to.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
     */
    readonly compliancePolicyId: pulumi.Output<string>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
     */
    readonly definedTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.  Example: `My new resource`
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
     */
    readonly freeformTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
     */
    readonly gracePeriod: pulumi.Output<string>;
    /**
     * A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
     */
    readonly lifecycleDetails: pulumi.Output<string>;
    /**
     * (Updatable) Patch Selection Details
     */
    readonly patchSelection: pulumi.Output<outputs.FleetAppsManagement.CompliancePolicyRulePatchSelection>;
    /**
     * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
     */
    readonly patchTypeIds: pulumi.Output<string[]>;
    /**
     * (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
     */
    readonly productVersion: pulumi.Output<outputs.FleetAppsManagement.CompliancePolicyRuleProductVersion>;
    /**
     * (Updatable) Severity to which this CompliancePolicyRule applies.
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    readonly severities: pulumi.Output<string[]>;
    /**
     * The current state of the CompliancePolicyRule.
     */
    readonly state: pulumi.Output<string>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    readonly systemTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * Create a CompliancePolicyRule 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: CompliancePolicyRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering CompliancePolicyRule resources.
 */
export interface CompliancePolicyRuleState {
    /**
     * The OCID of the compartment the CompliancePolicyRule belongs to.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
     */
    compliancePolicyId?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.  Example: `My new resource`
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
     */
    gracePeriod?: pulumi.Input<string | undefined>;
    /**
     * A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
     */
    lifecycleDetails?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Patch Selection Details
     */
    patchSelection?: pulumi.Input<inputs.FleetAppsManagement.CompliancePolicyRulePatchSelection | undefined>;
    /**
     * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
     */
    patchTypeIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
     */
    productVersion?: pulumi.Input<inputs.FleetAppsManagement.CompliancePolicyRuleProductVersion | undefined>;
    /**
     * (Updatable) Severity to which this CompliancePolicyRule applies.
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    severities?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * The current state of the CompliancePolicyRule.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    systemTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
     */
    timeUpdated?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a CompliancePolicyRule resource.
 */
export interface CompliancePolicyRuleArgs {
    /**
     * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
     */
    compliancePolicyId: pulumi.Input<string>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.  Example: `My new resource`
     */
    displayName: pulumi.Input<string>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
     */
    gracePeriod?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Patch Selection Details
     */
    patchSelection: pulumi.Input<inputs.FleetAppsManagement.CompliancePolicyRulePatchSelection>;
    /**
     * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
     */
    patchTypeIds: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
     */
    productVersion: pulumi.Input<inputs.FleetAppsManagement.CompliancePolicyRuleProductVersion>;
    /**
     * (Updatable) Severity to which this CompliancePolicyRule applies.
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    severities?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
//# sourceMappingURL=compliancePolicyRule.d.ts.map