import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/resource-scheduler/latest/Schedule * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/resourcescheduler * * This API creates a schedule. You must provide either resources or resourceFilters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedule = new oci.resourcescheduler.Schedule("test_schedule", { * action: scheduleAction, * compartmentId: compartmentId, * recurrenceDetails: scheduleRecurrenceDetails, * recurrenceType: scheduleRecurrenceType, * definedTags: { * "Operations.CostCenter": "42", * }, * description: scheduleDescription, * displayName: scheduleDisplayName, * freeformTags: { * Department: "Finance", * }, * localTimeZone: scheduleLocalTimeZone, * resourceFilters: [{ * attribute: scheduleResourceFiltersAttribute, * condition: scheduleResourceFiltersCondition, * shouldIncludeChildCompartments: scheduleResourceFiltersShouldIncludeChildCompartments === "true", * values: [{ * namespace: scheduleResourceFiltersValueNamespace, * tagKey: scheduleResourceFiltersValueTagKey, * value: scheduleResourceFiltersValueValue, * }], * }], * resources: [{ * id: scheduleResourcesId, * metadata: scheduleResourcesMetadata, * parameters: [{ * parameterType: scheduleResourcesParametersParameterType, * value: scheduleResourcesParametersValue[0], * }], * }], * timeEnds: scheduleTimeEnds, * timeStarts: scheduleTimeStarts, * }); * ``` * * ## Import * * Schedules can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ResourceScheduler/schedule:Schedule test_schedule "id" * ``` */ export declare class Schedule extends pulumi.CustomResource { /** * Get an existing Schedule 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?: ScheduleState, opts?: pulumi.CustomResourceOptions): Schedule; /** * Returns true if the given object is an instance of Schedule. 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 Schedule; /** * (Updatable) This is the action that will be executed by the schedule. */ readonly action: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created */ readonly compartmentId: pulumi.Output; /** * (Updatable) These are 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; }>; /** * (Updatable) This is the description of the schedule. */ readonly description: pulumi.Output; /** * (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. */ readonly displayName: pulumi.Output; /** * (Updatable) These are 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; }>; /** * This is the status of the last work request. */ readonly lastRunStatus: pulumi.Output; /** * (Updatable) IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines the timezone context for evaluating the recurrence expression. */ readonly localTimeZone: pulumi.Output; /** * (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. */ readonly recurrenceDetails: pulumi.Output; /** * (Updatable) Type of recurrence of a schedule */ readonly recurrenceType: pulumi.Output; /** * (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them. */ readonly resourceFilters: pulumi.Output; /** * (Updatable) This is the list of resources to which the scheduled operation is applied. */ readonly resources: pulumi.Output; /** * (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 state: pulumi.Output; /** * These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ readonly timeEnds: pulumi.Output; /** * This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeLastRun: pulumi.Output; /** * This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeNextRun: pulumi.Output; /** * (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ readonly timeStarts: pulumi.Output; /** * This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * Create a Schedule 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: ScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Schedule resources. */ export interface ScheduleState { /** * (Updatable) This is the action that will be executed by the schedule. */ action?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created */ compartmentId?: pulumi.Input; /** * (Updatable) These are 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) This is the description of the schedule. */ description?: pulumi.Input; /** * (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. */ displayName?: pulumi.Input; /** * (Updatable) These are 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>; /** * This is the status of the last work request. */ lastRunStatus?: pulumi.Input; /** * (Updatable) IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines the timezone context for evaluating the recurrence expression. */ localTimeZone?: pulumi.Input; /** * (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. */ recurrenceDetails?: pulumi.Input; /** * (Updatable) Type of recurrence of a schedule */ recurrenceType?: pulumi.Input; /** * (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them. */ resourceFilters?: pulumi.Input[] | undefined>; /** * (Updatable) This is the list of resources to which the scheduled operation is applied. */ resources?: pulumi.Input[] | undefined>; /** * (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 */ state?: pulumi.Input; /** * These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ timeEnds?: pulumi.Input; /** * This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeLastRun?: pulumi.Input; /** * This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeNextRun?: pulumi.Input; /** * (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ timeStarts?: pulumi.Input; /** * This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Schedule resource. */ export interface ScheduleArgs { /** * (Updatable) This is the action that will be executed by the schedule. */ action: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created */ compartmentId: pulumi.Input; /** * (Updatable) These are 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) This is the description of the schedule. */ description?: pulumi.Input; /** * (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. */ displayName?: pulumi.Input; /** * (Updatable) These are 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) IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines the timezone context for evaluating the recurrence expression. */ localTimeZone?: pulumi.Input; /** * (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. */ recurrenceDetails: pulumi.Input; /** * (Updatable) Type of recurrence of a schedule */ recurrenceType: pulumi.Input; /** * (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them. */ resourceFilters?: pulumi.Input[] | undefined>; /** * (Updatable) This is the list of resources to which the scheduled operation is applied. */ resources?: pulumi.Input[] | undefined>; /** * (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 */ state?: pulumi.Input; /** * (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ timeEnds?: pulumi.Input; /** * (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` */ timeStarts?: pulumi.Input; } //# sourceMappingURL=schedule.d.ts.map