import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Maintenance Run Histories in Oracle Cloud Infrastructure Database service. * * Gets a list of the maintenance run histories in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMaintenanceRunHistories = oci.database.getDatabaseMaintenanceRunHistories({ * compartmentId: compartmentId, * availabilityDomain: maintenanceRunHistoryAvailabilityDomain, * maintenanceType: maintenanceRunHistoryMaintenanceType, * state: maintenanceRunHistoryState, * targetResourceId: testTargetResource.id, * targetResourceType: maintenanceRunHistoryTargetResourceType, * }); * ``` */ export declare function getDatabaseMaintenanceRunHistories(args: GetDatabaseMaintenanceRunHistoriesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabaseMaintenanceRunHistories. */ export interface GetDatabaseMaintenanceRunHistoriesArgs { /** * A filter to return only resources that match the given availability domain exactly. */ availabilityDomain?: string; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; filters?: inputs.Database.GetDatabaseMaintenanceRunHistoriesFilter[]; /** * The maintenance type. */ maintenanceType?: string; /** * The state of the maintenance run history. */ state?: string; /** * The target resource ID. */ targetResourceId?: string; /** * The type of the target resource. */ targetResourceType?: string; } /** * A collection of values returned by getDatabaseMaintenanceRunHistories. */ export interface GetDatabaseMaintenanceRunHistoriesResult { readonly availabilityDomain?: string; /** * The OCID of the compartment. */ readonly compartmentId: string; readonly filters?: outputs.Database.GetDatabaseMaintenanceRunHistoriesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of maintenance_run_histories. */ readonly maintenanceRunHistories: outputs.Database.GetDatabaseMaintenanceRunHistoriesMaintenanceRunHistory[]; /** * Maintenance type. */ readonly maintenanceType?: string; /** * The current state of the maintenance run. For Autonomous AI Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED. */ readonly state?: string; /** * The ID of the target resource on which the maintenance run occurs. */ readonly targetResourceId?: string; /** * The type of the target resource on which the maintenance run occurs. */ readonly targetResourceType?: string; } /** * This data source provides the list of Maintenance Run Histories in Oracle Cloud Infrastructure Database service. * * Gets a list of the maintenance run histories in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMaintenanceRunHistories = oci.database.getDatabaseMaintenanceRunHistories({ * compartmentId: compartmentId, * availabilityDomain: maintenanceRunHistoryAvailabilityDomain, * maintenanceType: maintenanceRunHistoryMaintenanceType, * state: maintenanceRunHistoryState, * targetResourceId: testTargetResource.id, * targetResourceType: maintenanceRunHistoryTargetResourceType, * }); * ``` */ export declare function getDatabaseMaintenanceRunHistoriesOutput(args: GetDatabaseMaintenanceRunHistoriesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabaseMaintenanceRunHistories. */ export interface GetDatabaseMaintenanceRunHistoriesOutputArgs { /** * A filter to return only resources that match the given availability domain exactly. */ availabilityDomain?: pulumi.Input; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The maintenance type. */ maintenanceType?: pulumi.Input; /** * The state of the maintenance run history. */ state?: pulumi.Input; /** * The target resource ID. */ targetResourceId?: pulumi.Input; /** * The type of the target resource. */ targetResourceType?: pulumi.Input; } //# sourceMappingURL=getDatabaseMaintenanceRunHistories.d.ts.map