@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
136 lines (135 loc) • 4.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS instances for which cross-region backups are created.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const test = huaweicloud.Rds.getCrossRegionBackupInstances({
* instanceId: instanceId,
* });
* ```
*/
export declare function getCrossRegionBackupInstances(args?: GetCrossRegionBackupInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetCrossRegionBackupInstancesResult>;
/**
* A collection of arguments for invoking getCrossRegionBackupInstances.
*/
export interface GetCrossRegionBackupInstancesArgs {
/**
* Specifies the project ID of the target backup region.
*/
destinationProjectId?: string;
/**
* Specifies the region where the cross-region backup is located.
*/
destinationRegion?: string;
/**
* Specifies the ID of the instance.
*/
instanceId?: string;
/**
* Specifies the number of days to retain cross-region backups.
*/
keepDays?: number;
/**
* Specifies the name of the instance.
*/
name?: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the project ID of the source backup region.
*/
sourceProjectId?: string;
/**
* Specifies the source backup region.
*/
sourceRegion?: string;
}
/**
* A collection of values returned by getCrossRegionBackupInstances.
*/
export interface GetCrossRegionBackupInstancesResult {
/**
* Indicates the list of instances for which cross-region backups are created.
*/
readonly backupInstances: outputs.Rds.GetCrossRegionBackupInstancesBackupInstance[];
/**
* Indicates the project ID of the target backup region.
*/
readonly destinationProjectId?: string;
/**
* Indicates the region where the cross-region backup is located.
*/
readonly destinationRegion?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId?: string;
/**
* Indicates the number of days to retain cross-region backups.
*/
readonly keepDays?: number;
/**
* Indicates the name of the instance.
*/
readonly name?: string;
readonly region: string;
/**
* Indicates the project ID of the source backup region.
*/
readonly sourceProjectId?: string;
/**
* Indicates the source backup region.
*/
readonly sourceRegion?: string;
}
export declare function getCrossRegionBackupInstancesOutput(args?: GetCrossRegionBackupInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCrossRegionBackupInstancesResult>;
/**
* A collection of arguments for invoking getCrossRegionBackupInstances.
*/
export interface GetCrossRegionBackupInstancesOutputArgs {
/**
* Specifies the project ID of the target backup region.
*/
destinationProjectId?: pulumi.Input<string>;
/**
* Specifies the region where the cross-region backup is located.
*/
destinationRegion?: pulumi.Input<string>;
/**
* Specifies the ID of the instance.
*/
instanceId?: pulumi.Input<string>;
/**
* Specifies the number of days to retain cross-region backups.
*/
keepDays?: pulumi.Input<number>;
/**
* Specifies the name of the instance.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the project ID of the source backup region.
*/
sourceProjectId?: pulumi.Input<string>;
/**
* Specifies the source backup region.
*/
sourceRegion?: pulumi.Input<string>;
}