UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

154 lines (153 loc) 5.78 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages RDS cross-region backup strategy resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const destinationRegion = config.requireObject("destinationRegion"); * const destinationProjectId = config.requireObject("destinationProjectId"); * const test = new huaweicloud.rds.CrossRegionBackupStrategy("test", { * instanceId: instanceId, * backupType: "all", * keepDays: 5, * destinationRegion: destinationRegion, * destinationProjectId: destinationProjectId, * }); * ``` * * ## Import * * The RDS cross-region backup strategy can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Rds/crossRegionBackupStrategy:CrossRegionBackupStrategy test <id> * ``` */ export declare class CrossRegionBackupStrategy extends pulumi.CustomResource { /** * Get an existing CrossRegionBackupStrategy 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?: CrossRegionBackupStrategyState, opts?: pulumi.CustomResourceOptions): CrossRegionBackupStrategy; /** * Returns true if the given object is an instance of CrossRegionBackupStrategy. 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 CrossRegionBackupStrategy; /** * Specifies the backup type. Value options: * + **auto**: open automated full backup. * + **all**: open both automated full backup and automated incremental backup. */ readonly backupType: pulumi.Output<string>; /** * Specifies the target project ID for the cross-region backup * policy. */ readonly destinationProjectId: pulumi.Output<string>; /** * Specifies the target region ID for the cross-region backup policy. */ readonly destinationRegion: pulumi.Output<string>; /** * Specifies the ID of the RDS instance. */ readonly instanceId: pulumi.Output<string>; /** * Specifies the number of days to retain the generated backup files. * Value ranges from `1` to `1,825`. */ readonly keepDays: pulumi.Output<number>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * Create a CrossRegionBackupStrategy 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: CrossRegionBackupStrategyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CrossRegionBackupStrategy resources. */ export interface CrossRegionBackupStrategyState { /** * Specifies the backup type. Value options: * + **auto**: open automated full backup. * + **all**: open both automated full backup and automated incremental backup. */ backupType?: pulumi.Input<string>; /** * Specifies the target project ID for the cross-region backup * policy. */ destinationProjectId?: pulumi.Input<string>; /** * Specifies the target region ID for the cross-region backup policy. */ destinationRegion?: pulumi.Input<string>; /** * Specifies the ID of the RDS instance. */ instanceId?: pulumi.Input<string>; /** * Specifies the number of days to retain the generated backup files. * Value ranges from `1` to `1,825`. */ keepDays?: pulumi.Input<number>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a CrossRegionBackupStrategy resource. */ export interface CrossRegionBackupStrategyArgs { /** * Specifies the backup type. Value options: * + **auto**: open automated full backup. * + **all**: open both automated full backup and automated incremental backup. */ backupType: pulumi.Input<string>; /** * Specifies the target project ID for the cross-region backup * policy. */ destinationProjectId: pulumi.Input<string>; /** * Specifies the target region ID for the cross-region backup policy. */ destinationRegion: pulumi.Input<string>; /** * Specifies the ID of the RDS instance. */ instanceId: pulumi.Input<string>; /** * Specifies the number of days to retain the generated backup files. * Value ranges from `1` to `1,825`. */ keepDays: pulumi.Input<number>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; }