@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
66 lines (65 loc) • 1.87 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the link for downloading a backup file.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = huaweicloud.Rds.getBackupFiles({
* backupId: _var.backup_id,
* });
* ```
*/
export declare function getBackupFiles(args: GetBackupFilesArgs, opts?: pulumi.InvokeOptions): Promise<GetBackupFilesResult>;
/**
* A collection of arguments for invoking getBackupFiles.
*/
export interface GetBackupFilesArgs {
/**
* Specifies the backup ID.
*/
backupId: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getBackupFiles.
*/
export interface GetBackupFilesResult {
readonly backupId: string;
/**
* Indicates the name of the bucket where the file is located.
*/
readonly bucket: string;
/**
* Indicates the list of backup files.
*/
readonly files: outputs.Rds.GetBackupFilesFile[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
}
export declare function getBackupFilesOutput(args: GetBackupFilesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBackupFilesResult>;
/**
* A collection of arguments for invoking getBackupFiles.
*/
export interface GetBackupFilesOutputArgs {
/**
* Specifies the backup ID.
*/
backupId: 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>;
}