import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Scheduling Policy Scheduling Window resource in Oracle Cloud Infrastructure Database service. * * Creates a Scheduling Window resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedulingPolicySchedulingWindow = new oci.database.SchedulingPolicySchedulingWindow("test_scheduling_policy_scheduling_window", { * schedulingPolicyId: testSchedulingPolicy.id, * windowPreference: { * daysOfWeeks: [{ * name: schedulingPolicySchedulingWindowWindowPreferenceDaysOfWeekName, * }], * duration: Number(schedulingPolicySchedulingWindowWindowPreferenceDuration), * isEnforcedDuration: schedulingPolicySchedulingWindowWindowPreferenceIsEnforcedDuration === "true", * startTime: schedulingPolicySchedulingWindowWindowPreferenceStartTime, * weeksOfMonths: schedulingPolicySchedulingWindowWindowPreferenceWeeksOfMonth, * months: [{ * name: schedulingPolicySchedulingWindowWindowPreferenceMonthsName, * }], * }, * compartmentId: compartmentId, * definedTags: schedulingPolicySchedulingWindowDefinedTags, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * SchedulingPolicySchedulingWindows can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Database/schedulingPolicySchedulingWindow:SchedulingPolicySchedulingWindow test_scheduling_policy_scheduling_window "schedulingPolicies/{schedulingPolicyId}/schedulingWindows/{schedulingWindowId}" * ``` */ export declare class SchedulingPolicySchedulingWindow extends pulumi.CustomResource { /** * Get an existing SchedulingPolicySchedulingWindow 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?: SchedulingPolicySchedulingWindowState, opts?: pulumi.CustomResourceOptions): SchedulingPolicySchedulingWindow; /** * Returns true if the given object is an instance of SchedulingPolicySchedulingWindow. 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 SchedulingPolicySchedulingWindow; /** * 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; }>; /** * The user-friendly name for the Scheduling Window. The name does not need to be unique. */ readonly displayName: 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; }>; /** * Additional information about the current lifecycle state. */ readonly lifecycleDetails: pulumi.Output; /** * The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly schedulingPolicyId: pulumi.Output; /** * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED. */ readonly state: pulumi.Output; /** * The date and time the Scheduling Window was created. */ readonly timeCreated: pulumi.Output; /** * The date and time of the next upcoming window associated within the schedulingWindow is planned to start. */ readonly timeNextSchedulingWindowStarts: pulumi.Output; /** * The last date and time that the Scheduling Window was updated. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The Single Scheduling Window details. */ readonly windowPreference: pulumi.Output; /** * Create a SchedulingPolicySchedulingWindow 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: SchedulingPolicySchedulingWindowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SchedulingPolicySchedulingWindow resources. */ export interface SchedulingPolicySchedulingWindowState { /** * 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 user-friendly name for the Scheduling Window. The name does not need to be unique. */ displayName?: 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>; /** * Additional information about the current lifecycle state. */ lifecycleDetails?: pulumi.Input; /** * The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ schedulingPolicyId?: pulumi.Input; /** * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED. */ state?: pulumi.Input; /** * The date and time the Scheduling Window was created. */ timeCreated?: pulumi.Input; /** * The date and time of the next upcoming window associated within the schedulingWindow is planned to start. */ timeNextSchedulingWindowStarts?: pulumi.Input; /** * The last date and time that the Scheduling Window was updated. */ timeUpdated?: pulumi.Input; /** * (Updatable) The Single Scheduling Window details. */ windowPreference?: pulumi.Input; } /** * The set of arguments for constructing a SchedulingPolicySchedulingWindow resource. */ export interface SchedulingPolicySchedulingWindowArgs { /** * 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>; /** * (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 Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ schedulingPolicyId: pulumi.Input; /** * (Updatable) The Single Scheduling Window details. */ windowPreference: pulumi.Input; } //# sourceMappingURL=schedulingPolicySchedulingWindow.d.ts.map