import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Alert Policy Rule resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/AlertPolicyRule * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Creates a new rule for the alert policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAlertPolicyRule = new oci.datasafe.AlertPolicyRule("test_alert_policy_rule", { * alertPolicyId: testAlertPolicy.id, * expression: alertPolicyRuleExpression, * description: alertPolicyRuleDescription, * displayName: alertPolicyRuleDisplayName, * }); * ``` * * ## Import * * AlertPolicyRules can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/alertPolicyRule:AlertPolicyRule test_alert_policy_rule "alertPolicies/{alertPolicyId}/rules/{ruleKey}" * ``` */ export declare class AlertPolicyRule extends pulumi.CustomResource { /** * Get an existing AlertPolicyRule 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?: AlertPolicyRuleState, opts?: pulumi.CustomResourceOptions): AlertPolicyRule; /** * Returns true if the given object is an instance of AlertPolicyRule. 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 AlertPolicyRule; /** * The OCID of the alert policy. */ readonly alertPolicyId: pulumi.Output; /** * (Updatable) Describes the alert policy rule. */ readonly description: pulumi.Output; /** * (Updatable) The display name of the alert policy rule. */ readonly displayName: pulumi.Output; /** * (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value. * * ** 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 expression: pulumi.Output; /** * The unique key of the alert policy rule. */ readonly key: pulumi.Output; /** * The current state of the alert policy rule. */ readonly state: pulumi.Output; /** * Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * Create a AlertPolicyRule 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: AlertPolicyRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertPolicyRule resources. */ export interface AlertPolicyRuleState { /** * The OCID of the alert policy. */ alertPolicyId?: pulumi.Input; /** * (Updatable) Describes the alert policy rule. */ description?: pulumi.Input; /** * (Updatable) The display name of the alert policy rule. */ displayName?: pulumi.Input; /** * (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value. * * ** 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 */ expression?: pulumi.Input; /** * The unique key of the alert policy rule. */ key?: pulumi.Input; /** * The current state of the alert policy rule. */ state?: pulumi.Input; /** * Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a AlertPolicyRule resource. */ export interface AlertPolicyRuleArgs { /** * The OCID of the alert policy. */ alertPolicyId: pulumi.Input; /** * (Updatable) Describes the alert policy rule. */ description?: pulumi.Input; /** * (Updatable) The display name of the alert policy rule. */ displayName?: pulumi.Input; /** * (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value. * * ** 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 */ expression: pulumi.Input; } //# sourceMappingURL=alertPolicyRule.d.ts.map