UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

91 lines (90 loc) 3.37 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage dns backup schedule * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.dns.BackupSchedule("foo", { * schedule: 1, * zid: 58846, * }); * ``` * * ## Import * * DnsBackupSchedule can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:dns/backupSchedule:BackupSchedule default resource_id * ``` */ export declare class BackupSchedule extends pulumi.CustomResource { /** * Get an existing BackupSchedule 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<pulumi.ID>, state?: BackupScheduleState, opts?: pulumi.CustomResourceOptions): BackupSchedule; /** * Returns true if the given object is an instance of BackupSchedule. 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 BackupSchedule; /** * Maximum number of backups per domain. */ readonly countLimit: pulumi.Output<number>; /** * The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month. */ readonly schedule: pulumi.Output<number>; /** * The ID of the domain for which you want to update the backup schedule. */ readonly zid: pulumi.Output<number>; /** * Create a BackupSchedule 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: BackupScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackupSchedule resources. */ export interface BackupScheduleState { /** * Maximum number of backups per domain. */ countLimit?: pulumi.Input<number>; /** * The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month. */ schedule?: pulumi.Input<number>; /** * The ID of the domain for which you want to update the backup schedule. */ zid?: pulumi.Input<number>; } /** * The set of arguments for constructing a BackupSchedule resource. */ export interface BackupScheduleArgs { /** * The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month. */ schedule: pulumi.Input<number>; /** * The ID of the domain for which you want to update the backup schedule. */ zid: pulumi.Input<number>; }