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 Data Science service. * * Creates a new Schedule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedule = new oci.datascience.Schedule("test_schedule", { * action: { * actionDetails: { * httpActionType: scheduleActionActionDetailsHttpActionType, * createJobRunDetails: { * compartmentId: compartmentId, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: scheduleActionActionDetailsCreateJobRunDetailsDisplayName, * freeformTags: { * Department: "Finance", * }, * jobConfigurationOverrideDetails: { * jobType: scheduleActionActionDetailsCreateJobRunDetailsJobConfigurationOverrideDetailsJobType, * commandLineArguments: scheduleActionActionDetailsCreateJobRunDetailsJobConfigurationOverrideDetailsCommandLineArguments, * environmentVariables: scheduleActionActionDetailsCreateJobRunDetailsJobConfigurationOverrideDetailsEnvironmentVariables, * maximumRuntimeInMinutes: scheduleActionActionDetailsCreateJobRunDetailsJobConfigurationOverrideDetailsMaximumRuntimeInMinutes, * }, * jobEnvironmentConfigurationOverrideDetails: { * image: scheduleActionActionDetailsCreateJobRunDetailsJobEnvironmentConfigurationOverrideDetailsImage, * jobEnvironmentType: scheduleActionActionDetailsCreateJobRunDetailsJobEnvironmentConfigurationOverrideDetailsJobEnvironmentType, * cmds: scheduleActionActionDetailsCreateJobRunDetailsJobEnvironmentConfigurationOverrideDetailsCmd, * entrypoints: scheduleActionActionDetailsCreateJobRunDetailsJobEnvironmentConfigurationOverrideDetailsEntrypoint, * imageDigest: scheduleActionActionDetailsCreateJobRunDetailsJobEnvironmentConfigurationOverrideDetailsImageDigest, * imageSignatureId: testImageSignature.id, * }, * jobId: testJob.id, * jobLogConfigurationOverrideDetails: { * enableAutoLogCreation: scheduleActionActionDetailsCreateJobRunDetailsJobLogConfigurationOverrideDetailsEnableAutoLogCreation === "true", * enableLogging: scheduleActionActionDetailsCreateJobRunDetailsJobLogConfigurationOverrideDetailsEnableLogging === "true", * logGroupId: testLogGroup.id, * logId: testLog.id, * }, * projectId: testProject.id, * }, * createPipelineRunDetails: { * compartmentId: compartmentId, * configurationOverrideDetails: { * type: scheduleActionActionDetailsCreatePipelineRunDetailsConfigurationOverrideDetailsType, * commandLineArguments: scheduleActionActionDetailsCreatePipelineRunDetailsConfigurationOverrideDetailsCommandLineArguments, * environmentVariables: scheduleActionActionDetailsCreatePipelineRunDetailsConfigurationOverrideDetailsEnvironmentVariables, * maximumRuntimeInMinutes: scheduleActionActionDetailsCreatePipelineRunDetailsConfigurationOverrideDetailsMaximumRuntimeInMinutes, * }, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: scheduleActionActionDetailsCreatePipelineRunDetailsDisplayName, * freeformTags: { * Department: "Finance", * }, * logConfigurationOverrideDetails: { * enableAutoLogCreation: scheduleActionActionDetailsCreatePipelineRunDetailsLogConfigurationOverrideDetailsEnableAutoLogCreation === "true", * enableLogging: scheduleActionActionDetailsCreatePipelineRunDetailsLogConfigurationOverrideDetailsEnableLogging === "true", * logGroupId: testLogGroup.id, * logId: testLog.id, * }, * pipelineId: testPipeline.id, * projectId: testProject.id, * stepOverrideDetails: [{ * stepConfigurationDetails: { * commandLineArguments: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepConfigurationDetailsCommandLineArguments, * environmentVariables: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepConfigurationDetailsEnvironmentVariables, * maximumRuntimeInMinutes: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepConfigurationDetailsMaximumRuntimeInMinutes, * }, * stepContainerConfigurationDetails: { * containerType: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepContainerConfigurationDetailsContainerType, * image: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepContainerConfigurationDetailsImage, * cmds: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepContainerConfigurationDetailsCmd, * entrypoints: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepContainerConfigurationDetailsEntrypoint, * imageDigest: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepContainerConfigurationDetailsImageDigest, * imageSignatureId: testImageSignature.id, * }, * stepName: scheduleActionActionDetailsCreatePipelineRunDetailsStepOverrideDetailsStepName, * }], * systemTags: scheduleActionActionDetailsCreatePipelineRunDetailsSystemTags, * }, * mlApplicationInstanceViewId: testView.id, * triggerMlApplicationInstanceViewFlowDetails: { * parameters: [{ * name: scheduleActionActionDetailsTriggerMlApplicationInstanceViewFlowDetailsParametersName, * value: scheduleActionActionDetailsTriggerMlApplicationInstanceViewFlowDetailsParametersValue, * }], * triggerName: testTrigger.name, * }, * }, * actionType: scheduleActionActionType, * }, * compartmentId: compartmentId, * displayName: scheduleDisplayName, * projectId: testProject.id, * trigger: { * triggerType: scheduleTriggerTriggerType, * cronExpression: scheduleTriggerCronExpression, * frequency: scheduleTriggerFrequency, * interval: Number(scheduleTriggerInterval), * initialJitterInMinutes: 30, * isRandomStartTime: scheduleTriggerIsRandomStartTime === "true", * recurrence: scheduleTriggerRecurrence, * timeEnd: scheduleTriggerTimeEnd, * timeStart: scheduleTriggerTimeStart, * }, * definedTags: { * "Operations.CostCenter": "42", * }, * description: scheduleDescription, * freeformTags: { * Department: "Finance", * }, * logDetails: { * logGroupId: testLogGroup.id, * logId: testLog.id, * }, * }); * ``` * * ## Import * * Schedules can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataScience/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) The schedule action */ readonly action: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the schedule. */ readonly compartmentId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the schedule. */ readonly createdBy: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the schedule. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly name. Avoid entering confidential information. */ 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. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Details about the action performed by the last schedule execution. Example: `Invoked ML Application trigger.` */ readonly lastScheduleRunDetails: pulumi.Output; /** * A message describing the current state in more detail. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) Custom logging details for schedule execution. */ readonly logDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the schedule with. */ readonly projectId: pulumi.Output; /** * The current state of the schedule. Example: `ACTIVE` */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the schedule was created. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The last schedule execution time. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ readonly timeLastScheduleRun: pulumi.Output; /** * The next scheduled execution time for the schedule. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ readonly timeNextScheduledRun: pulumi.Output; /** * The date and time the schedule was updated. Format is defined by RFC3339. Example: `2022-09-05T01:02:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The trigger of the schedule can be UNIX cron or iCal expression or simple interval */ readonly trigger: 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) The schedule action */ action?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the schedule. */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the schedule. */ createdBy?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the schedule. */ description?: pulumi.Input; /** * (Updatable) A user-friendly name. Avoid entering confidential information. */ 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. 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>; /** * Details about the action performed by the last schedule execution. Example: `Invoked ML Application trigger.` */ lastScheduleRunDetails?: pulumi.Input; /** * A message describing the current state in more detail. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) Custom logging details for schedule execution. */ logDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the schedule with. */ projectId?: pulumi.Input; /** * The current state of the schedule. Example: `ACTIVE` */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the schedule was created. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ timeCreated?: pulumi.Input; /** * The last schedule execution time. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ timeLastScheduleRun?: pulumi.Input; /** * The next scheduled execution time for the schedule. Format is defined by RFC3339. Example: `2022-08-05T01:02:29.600Z` */ timeNextScheduledRun?: pulumi.Input; /** * The date and time the schedule was updated. Format is defined by RFC3339. Example: `2022-09-05T01:02:29.600Z` */ timeUpdated?: pulumi.Input; /** * (Updatable) The trigger of the schedule can be UNIX cron or iCal expression or simple interval */ trigger?: pulumi.Input; } /** * The set of arguments for constructing a Schedule resource. */ export interface ScheduleArgs { /** * (Updatable) The schedule action */ action: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the schedule. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. 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) A short description of the schedule. */ description?: pulumi.Input; /** * (Updatable) A user-friendly name. Avoid entering confidential information. */ 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. 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) Custom logging details for schedule execution. */ logDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the schedule with. */ projectId: pulumi.Input; /** * (Updatable) The trigger of the schedule can be UNIX cron or iCal expression or simple interval */ trigger: pulumi.Input; } //# sourceMappingURL=schedule.d.ts.map