import * as pulumi from "@pulumi/pulumi"; /** * Manage a worflow that schedules backups of public cloud instance. Note that upon deletion, the workflow is deleted but any backups that have been created by this workflow are not. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myBackup = new ovh.cloudproject.WorkflowBackup("my_backup", { * serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", * regionName: "GRA11", * cron: "50 4 * * *", * instanceId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx", * maxExecutionCount: 0, * name: "Backup workflow for instance", * rotation: 7, * }); * ``` * * ## Import * * A cloud project workflow backup can be imported using the `id` (workflow ID) E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/workflowBackup:WorkflowBackup my_workflow id * ``` */ export declare class WorkflowBackup extends pulumi.CustomResource { /** * Get an existing WorkflowBackup 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?: WorkflowBackupState, opts?: pulumi.CustomResourceOptions): WorkflowBackup; /** * Returns true if the given object is an instance of WorkflowBackup. 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 WorkflowBackup; /** * The name of the backup files that are created. If empty, the `name` attribute is used. */ readonly backupName: pulumi.Output; /** * The creation date of the workflow. */ readonly createdAt: pulumi.Output; /** * The cron periodicity at which the backup workflow is scheduled * * * `instanceId` the id of the instance to back up */ readonly cron: pulumi.Output; /** * See Argument Reference above. */ readonly instanceId: pulumi.Output; /** * The number of times the worflow is run. Default value is `0` which means that the workflow will be scheduled continously until its deletion */ readonly maxExecutionCount: pulumi.Output; /** * The worflow name that is used in the UI */ readonly name: pulumi.Output; /** * The name of the openstack region. */ readonly regionName: pulumi.Output; /** * The number of backup that are retained. */ readonly rotation: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Create a WorkflowBackup 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: WorkflowBackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkflowBackup resources. */ export interface WorkflowBackupState { /** * The name of the backup files that are created. If empty, the `name` attribute is used. */ backupName?: pulumi.Input; /** * The creation date of the workflow. */ createdAt?: pulumi.Input; /** * The cron periodicity at which the backup workflow is scheduled * * * `instanceId` the id of the instance to back up */ cron?: pulumi.Input; /** * See Argument Reference above. */ instanceId?: pulumi.Input; /** * The number of times the worflow is run. Default value is `0` which means that the workflow will be scheduled continously until its deletion */ maxExecutionCount?: pulumi.Input; /** * The worflow name that is used in the UI */ name?: pulumi.Input; /** * The name of the openstack region. */ regionName?: pulumi.Input; /** * The number of backup that are retained. */ rotation?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a WorkflowBackup resource. */ export interface WorkflowBackupArgs { /** * The name of the backup files that are created. If empty, the `name` attribute is used. */ backupName?: pulumi.Input; /** * The cron periodicity at which the backup workflow is scheduled * * * `instanceId` the id of the instance to back up */ cron: pulumi.Input; /** * See Argument Reference above. */ instanceId: pulumi.Input; /** * The number of times the worflow is run. Default value is `0` which means that the workflow will be scheduled continously until its deletion */ maxExecutionCount?: pulumi.Input; /** * The worflow name that is used in the UI */ name?: pulumi.Input; /** * The name of the openstack region. */ regionName: pulumi.Input; /** * The number of backup that are retained. */ rotation: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; }