import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service. * * This API gets information about a schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedule = oci.resourcescheduler.getSchedule({ * scheduleId: testScheduleOciResourceSchedulerSchedule.id, * }); * ``` */ export declare function getSchedule(args: GetScheduleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSchedule. */ export interface GetScheduleArgs { /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. */ scheduleId: string; } /** * A collection of values returned by getSchedule. */ export interface GetScheduleResult { /** * This is the action that will be executed by the schedule. */ readonly action: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created */ readonly compartmentId: string; /** * 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: { [key: string]: string; }; /** * This is the description of the schedule. */ readonly description: string; /** * This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. */ readonly displayName: string; /** * 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: { [key: string]: string; }; /** * This is the resource OCID. */ readonly id: string; /** * This is the status of the last work request. */ readonly lastRunStatus: string; /** * IANA timezone identifier (e.g., 'America/New_York', 'UTC', 'Europe/London'). This determines the timezone context for evaluating the recurrence expression. */ readonly localTimeZone: string; /** * 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: string; /** * Type of recurrence of a schedule */ readonly recurrenceType: string; /** * This is a list of resources filters. The schedule will be applied to resources matching all of them. */ readonly resourceFilters: outputs.ResourceScheduler.GetScheduleResourceFilter[]; /** * This is the list of resources to which the scheduled operation is applied. */ readonly resources: outputs.ResourceScheduler.GetScheduleResource[]; readonly scheduleId: string; /** * This is the current state of a schedule. */ readonly state: string; /** * 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: { [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: string; /** * 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: string; /** * 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: string; /** * 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: string; /** * 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: string; /** * 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: string; } /** * This data source provides details about a specific Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service. * * This API gets information about a schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedule = oci.resourcescheduler.getSchedule({ * scheduleId: testScheduleOciResourceSchedulerSchedule.id, * }); * ``` */ export declare function getScheduleOutput(args: GetScheduleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSchedule. */ export interface GetScheduleOutputArgs { /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. */ scheduleId: pulumi.Input; } //# sourceMappingURL=getSchedule.d.ts.map