import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Execution Window resource in Oracle Cloud Infrastructure Database service. * * Creates an execution window resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testExecutionWindow = new oci.database.ExecutionWindow("test_execution_window", { * compartmentId: compartmentId, * executionResourceId: testResource.id, * timeScheduled: executionWindowTimeScheduled, * windowDurationInMins: Number(executionWindowWindowDurationInMins), * definedTags: executionWindowDefinedTags, * freeformTags: { * Department: "Finance", * }, * isEnforcedDuration: executionWindowIsEnforcedDuration === "true", * }); * ``` * * ## Import * * ExecutionWindows can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Database/executionWindow:ExecutionWindow test_execution_window "id" * ``` */ export declare class ExecutionWindow extends pulumi.CustomResource { /** * Get an existing ExecutionWindow 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?: ExecutionWindowState, opts?: pulumi.CustomResourceOptions): ExecutionWindow; /** * Returns true if the given object is an instance of ExecutionWindow. 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 ExecutionWindow; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ 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). */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * Description of the execution window. */ readonly description: pulumi.Output; /** * The user-friendly name for the execution window. The name does not need to be unique. */ readonly displayName: pulumi.Output; /** * The estimated time of the execution window in minutes. */ readonly estimatedTimeInMins: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the execution resource the execution window belongs to. */ readonly executionResourceId: pulumi.Output; /** * (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; }>; /** * (Updatable) Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is `FALSE`. */ readonly isEnforcedDuration: pulumi.Output; /** * Additional information about the current lifecycle state. */ readonly lifecycleDetails: pulumi.Output; /** * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING. */ readonly lifecycleSubstate: pulumi.Output; /** * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. */ readonly state: pulumi.Output; /** * The date and time the execution window was created. */ readonly timeCreated: pulumi.Output; /** * The date and time that the execution window ended. */ readonly timeEnded: pulumi.Output; /** * (Updatable) The scheduled start date and time of the execution window. */ readonly timeScheduled: pulumi.Output; /** * The date and time that the execution window was started. */ readonly timeStarted: pulumi.Output; /** * The last date and time that the execution window was updated. */ readonly timeUpdated: pulumi.Output; /** * The total time taken by corresponding resource activity in minutes. */ readonly totalTimeTakenInMins: pulumi.Output; /** * (Updatable) Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes. * * ** 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 windowDurationInMins: pulumi.Output; /** * The execution window is of PLANNED or UNPLANNED type. */ readonly windowType: pulumi.Output; /** * Create a ExecutionWindow 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: ExecutionWindowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ExecutionWindow resources. */ export interface ExecutionWindowState { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ 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). */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Description of the execution window. */ description?: pulumi.Input; /** * The user-friendly name for the execution window. The name does not need to be unique. */ displayName?: pulumi.Input; /** * The estimated time of the execution window in minutes. */ estimatedTimeInMins?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the execution resource the execution window belongs to. */ executionResourceId?: pulumi.Input; /** * (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) Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is `FALSE`. */ isEnforcedDuration?: pulumi.Input; /** * Additional information about the current lifecycle state. */ lifecycleDetails?: pulumi.Input; /** * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING. */ lifecycleSubstate?: pulumi.Input; /** * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. */ state?: pulumi.Input; /** * The date and time the execution window was created. */ timeCreated?: pulumi.Input; /** * The date and time that the execution window ended. */ timeEnded?: pulumi.Input; /** * (Updatable) The scheduled start date and time of the execution window. */ timeScheduled?: pulumi.Input; /** * The date and time that the execution window was started. */ timeStarted?: pulumi.Input; /** * The last date and time that the execution window was updated. */ timeUpdated?: pulumi.Input; /** * The total time taken by corresponding resource activity in minutes. */ totalTimeTakenInMins?: pulumi.Input; /** * (Updatable) Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes. * * ** 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 */ windowDurationInMins?: pulumi.Input; /** * The execution window is of PLANNED or UNPLANNED type. */ windowType?: pulumi.Input; } /** * The set of arguments for constructing a ExecutionWindow resource. */ export interface ExecutionWindowArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ 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). */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the execution resource the execution window belongs to. */ executionResourceId: pulumi.Input; /** * (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) Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is `FALSE`. */ isEnforcedDuration?: pulumi.Input; /** * (Updatable) The scheduled start date and time of the execution window. */ timeScheduled: pulumi.Input; /** * (Updatable) Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes. * * ** 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 */ windowDurationInMins: pulumi.Input; } //# sourceMappingURL=executionWindow.d.ts.map