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, 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; /** * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. */ readonly compliancePolicyId: pulumi.Output; /** * (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; /** * (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; /** * 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; /** * (Updatable) Patch Selection Details */ readonly patchSelection: pulumi.Output; /** * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. */ readonly patchTypeIds: pulumi.Output; /** * (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; /** * (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; /** * The current state of the CompliancePolicyRule. */ readonly state: pulumi.Output; /** * 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; /** * 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; /** * 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; /** * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. */ compliancePolicyId?: pulumi.Input; /** * (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; } | 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; /** * (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; } | 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; /** * 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; /** * (Updatable) Patch Selection Details */ patchSelection?: pulumi.Input; /** * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. */ patchTypeIds?: pulumi.Input[] | 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; /** * (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[] | undefined>; /** * The current state of the CompliancePolicyRule. */ state?: pulumi.Input; /** * 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; } | 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; /** * 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; } /** * The set of arguments for constructing a CompliancePolicyRule resource. */ export interface CompliancePolicyRuleArgs { /** * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. */ compliancePolicyId: pulumi.Input; /** * (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; } | 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; /** * (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; } | 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; /** * (Updatable) Patch Selection Details */ patchSelection: pulumi.Input; /** * (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. */ patchTypeIds: pulumi.Input[]>; /** * (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; /** * (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[] | undefined>; } //# sourceMappingURL=compliancePolicyRule.d.ts.map