import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about a specific Alert Policy Rule resource in Oracle Cloud Infrastructure Data Safe service. * * Gets the details of a policy rule by its key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAlertPolicyRule = oci.datasafe.getAlertPolicyRule({ * alertPolicyId: testAlertPolicy.id, * ruleKey: alertPolicyRuleRuleKey, * }); * ``` */ export declare function getAlertPolicyRule(args: GetAlertPolicyRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlertPolicyRule. */ export interface GetAlertPolicyRuleArgs { /** * The OCID of the alert policy. */ alertPolicyId: string; /** * The key of the alert policy rule. */ ruleKey: string; } /** * A collection of values returned by getAlertPolicyRule. */ export interface GetAlertPolicyRuleResult { readonly alertPolicyId: string; /** * Describes the alert policy rule. */ readonly description: string; /** * The display name of the alert policy rule. */ readonly displayName: string; /** * The conditional expression of the alert policy rule which evaluates to boolean value. */ readonly expression: string; readonly id: string; /** * The unique key of the alert policy rule. */ readonly key: string; readonly ruleKey: string; /** * The current state of the alert policy rule. */ readonly state: string; /** * Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: string; } /** * This data source provides details about a specific Alert Policy Rule resource in Oracle Cloud Infrastructure Data Safe service. * * Gets the details of a policy rule by its key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAlertPolicyRule = oci.datasafe.getAlertPolicyRule({ * alertPolicyId: testAlertPolicy.id, * ruleKey: alertPolicyRuleRuleKey, * }); * ``` */ export declare function getAlertPolicyRuleOutput(args: GetAlertPolicyRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlertPolicyRule. */ export interface GetAlertPolicyRuleOutputArgs { /** * The OCID of the alert policy. */ alertPolicyId: pulumi.Input; /** * The key of the alert policy rule. */ ruleKey: pulumi.Input; } //# sourceMappingURL=getAlertPolicyRule.d.ts.map