import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Task Schedule resource in Oracle Cloud Infrastructure Jms service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/jms/latest/TaskSchedule * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/jms * * Create a task schedule using the information provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTaskSchedule = new oci.jms.TaskSchedule("test_task_schedule", { * fleetId: fleetOcid, * executionRecurrences: "DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z", * taskDetails: { * taskType: "ADD_INSTALLATION_SITE", * addInstallationSiteTaskRequest: { * installationSites: [{ * artifactContentType: "JDK", * forceInstall: false, * headlessMode: false, * installationPath: "/example/install/path", * managedInstanceId: "example-managed-instance-ocid", * releaseVersion: "17.0.0", * }], * postInstallationActions: [], * }, * cryptoTaskRequest: { * recordingDurationInMinutes: 10, * targets: [{ * applicationInstallationKey: "example-application-installation-key", * applicationKey: "example-application-key", * containerKey: "example-container-key", * jreKey: "example-jre-key", * managedInstanceId: "example-managed-instance-ocid", * }], * waitingPeriodInMinutes: 10, * }, * deployedApplicationMigrationTaskRequest: { * targets: [{ * deployedApplicationInstallationKey: "example-application-installation-key", * excludePackagePrefixes: [], * includePackagePrefixes: [], * managedInstanceId: "example-managed-instance-ocid", * sourceJdkVersion: "11", * targetJdkVersion: "21", * }], * }, * javaMigrationTaskRequest: { * targets: [{ * applicationInstallationKey: "example-application-installation-key", * excludePackagePrefixes: [], * includePackagePrefixes: [], * managedInstanceId: "example-managed-instance-ocid", * sourceJdkVersion: "11", * targetJdkVersion: "21", * }], * }, * jfrTaskRequest: { * jfcProfileName: "jfcV1", * jfcV1: "jfcV1", * jfcV2: "jfvV2", * recordingDurationInMinutes: 10, * recordingSizeInMb: 10, * targets: [{ * applicationInstallationKey: "example-application-installation-key", * applicationKey: "example-application-key", * containerKey: "example-container-key", * jreKey: "example-jre-key", * managedInstanceId: "example-managed-instance-ocid", * }], * waitingPeriodInMinutes: 10, * }, * performanceTuningTaskRequest: { * recordingDurationInMinutes: 10, * targets: [{ * applicationInstallationKey: "example-application-installation-key", * applicationKey: "example-application-key", * containerKey: "example-container-key", * jreKey: "example-jre-key", * managedInstanceId: "example-managed-instance-ocid", * }], * waitingPeriodInMinutes: 10, * }, * removeInstallationSiteTaskRequest: { * installationSites: [{ * installationKey: "example-jvm-installation-key", * managedInstanceId: "example-managed-instance-ocid", * }], * }, * scanJavaServerTaskRequest: { * managedInstanceIds: [], * }, * scanLibraryTaskRequest: { * dynamicScanDurationInMinutes: 10, * isDynamicScan: false, * managedInstanceIds: [], * }, * }, * }); * ``` * * ## Import * * TaskSchedules can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Jms/taskSchedule:TaskSchedule test_task_schedule "id" * ``` */ export declare class TaskSchedule extends pulumi.CustomResource { /** * Get an existing TaskSchedule 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?: TaskScheduleState, opts?: pulumi.CustomResourceOptions): TaskSchedule; /** * Returns true if the given object is an instance of TaskSchedule. 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 TaskSchedule; /** * Name of the task creator. */ readonly createdBy: pulumi.Output; /** * (Updatable) Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. */ readonly executionRecurrences: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet. */ readonly fleetId: pulumi.Output; /** * The name of the task schedule. */ readonly name: pulumi.Output; /** * All possible status of task schedule. */ readonly state: pulumi.Output; /** * (Updatable) The minimum details of a task. */ readonly taskDetails: pulumi.Output; /** * The date and time the task schedule was created (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeCreated: pulumi.Output; /** * The date and time the task schedule ran last (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeLastRun: pulumi.Output; /** * The date and time the task schedule was last updated (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeLastUpdated: pulumi.Output; /** * The date and time the task schedule will run next (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeNextRun: pulumi.Output; /** * Create a TaskSchedule 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: TaskScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TaskSchedule resources. */ export interface TaskScheduleState { /** * Name of the task creator. */ createdBy?: pulumi.Input; /** * (Updatable) Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. */ executionRecurrences?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet. */ fleetId?: pulumi.Input; /** * The name of the task schedule. */ name?: pulumi.Input; /** * All possible status of task schedule. */ state?: pulumi.Input; /** * (Updatable) The minimum details of a task. */ taskDetails?: pulumi.Input; /** * The date and time the task schedule was created (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ timeCreated?: pulumi.Input; /** * The date and time the task schedule ran last (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ timeLastRun?: pulumi.Input; /** * The date and time the task schedule was last updated (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ timeLastUpdated?: pulumi.Input; /** * The date and time the task schedule will run next (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ timeNextRun?: pulumi.Input; } /** * The set of arguments for constructing a TaskSchedule resource. */ export interface TaskScheduleArgs { /** * (Updatable) Recurrence specification for the task schedule execution (formatted according to [RFC-5545](https://icalendar.org/RFC-Specifications/iCalendar-RFC-5545/)). To run daily for 10 occurrences starts on September 2, 2024 09:00 UTC, it should be 'DTSTART=20240902T090000Z; RRULE:FREQ=DAILY;COUNT=10'. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 UTC, it should be 'DTSTART=20240805T090000Z;RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z'. */ executionRecurrences: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Fleet. */ fleetId: pulumi.Input; /** * (Updatable) The minimum details of a task. */ taskDetails: pulumi.Input; } //# sourceMappingURL=taskSchedule.d.ts.map