import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Alert resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/Alert * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Updates the status of the specified alert. * * ## Import * * Alerts can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/alert:Alert test_alert "id" * ``` */ export declare class Alert extends pulumi.CustomResource { /** * Get an existing Alert 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?: AlertState, opts?: pulumi.CustomResourceOptions): Alert; /** * Returns true if the given object is an instance of Alert. 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 Alert; /** * The OCID of alert. */ readonly alertId: pulumi.Output; /** * The key of the rule of alert policy that triggered alert. */ readonly alertPolicyRuleKey: pulumi.Output; /** * The display name of the rule of alert policy that triggered alert. */ readonly alertPolicyRuleName: pulumi.Output; /** * Type of the alert. Indicates the Data Safe feature triggering the alert. */ readonly alertType: pulumi.Output; /** * (Updatable) A comment can be entered to track the alert changes done by the user. */ readonly comment: pulumi.Output; /** * (Updatable) The OCID of the compartment that contains the alert. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * The description of the alert. */ readonly description: pulumi.Output; /** * The display name of the alert. */ readonly displayName: pulumi.Output; /** * Map that contains maps of values. Example: `{"Operations": {"CostCenter": "42"}}` */ readonly featureDetails: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The operation (event) that triggered alert. */ readonly operation: pulumi.Output; /** * The result of the operation (event) that triggered alert. */ readonly operationStatus: pulumi.Output; /** * Creation date and time of the operation that triggered alert, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly operationTime: pulumi.Output; /** * The OCID of the policy that triggered alert. */ readonly policyId: pulumi.Output; /** * The resource endpoint that triggered the alert. */ readonly resourceName: pulumi.Output; /** * Severity level of the alert. */ readonly severity: pulumi.Output; /** * The current state of the alert. */ readonly state: pulumi.Output; /** * (Updatable) The status of the alert. * * ** 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 status: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * Array of OCIDs of the target database which are associated with the alert. */ readonly targetIds: pulumi.Output; /** * Array of names of the target database. */ readonly targetNames: pulumi.Output; /** * Creation date and time of the alert, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * Last date and time the alert was updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeUpdated: pulumi.Output; /** * Create a Alert 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: AlertArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Alert resources. */ export interface AlertState { /** * The OCID of alert. */ alertId?: pulumi.Input; /** * The key of the rule of alert policy that triggered alert. */ alertPolicyRuleKey?: pulumi.Input; /** * The display name of the rule of alert policy that triggered alert. */ alertPolicyRuleName?: pulumi.Input; /** * Type of the alert. Indicates the Data Safe feature triggering the alert. */ alertType?: pulumi.Input; /** * (Updatable) A comment can be entered to track the alert changes done by the user. */ comment?: pulumi.Input; /** * (Updatable) The OCID of the compartment that contains the alert. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The description of the alert. */ description?: pulumi.Input; /** * The display name of the alert. */ displayName?: pulumi.Input; /** * Map that contains maps of values. Example: `{"Operations": {"CostCenter": "42"}}` */ featureDetails?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The operation (event) that triggered alert. */ operation?: pulumi.Input; /** * The result of the operation (event) that triggered alert. */ operationStatus?: pulumi.Input; /** * Creation date and time of the operation that triggered alert, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ operationTime?: pulumi.Input; /** * The OCID of the policy that triggered alert. */ policyId?: pulumi.Input; /** * The resource endpoint that triggered the alert. */ resourceName?: pulumi.Input; /** * Severity level of the alert. */ severity?: pulumi.Input; /** * The current state of the alert. */ state?: pulumi.Input; /** * (Updatable) The status of the alert. * * ** 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 */ status?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Array of OCIDs of the target database which are associated with the alert. */ targetIds?: pulumi.Input[] | undefined>; /** * Array of names of the target database. */ targetNames?: pulumi.Input[] | undefined>; /** * Creation date and time of the alert, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeCreated?: pulumi.Input; /** * Last date and time the alert was updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Alert resource. */ export interface AlertArgs { /** * The OCID of alert. */ alertId: pulumi.Input; /** * (Updatable) A comment can be entered to track the alert changes done by the user. */ comment?: pulumi.Input; /** * (Updatable) The OCID of the compartment that contains the alert. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The status of the alert. * * ** 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 */ status?: pulumi.Input; } //# sourceMappingURL=alert.d.ts.map