UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

118 lines (117 loc) 3.71 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the tables that can be restored to a specified point in time. * * ## 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 restoreTime = config.requireObject("restoreTime"); * const test = huaweicloud.Rds.getRestoredTables({ * engine: "postgresql", * instanceIds: [instanceId], * restoreTime: restoreTime, * }); * ``` */ export declare function getRestoredTables(args: GetRestoredTablesArgs, opts?: pulumi.InvokeOptions): Promise<GetRestoredTablesResult>; /** * A collection of arguments for invoking getRestoredTables. */ export interface GetRestoredTablesArgs { /** * Specifies the database name, which can be used for fuzzy query. */ databaseNameLike?: string; /** * Specifies the database engine. The supported engines are as follows, not case-sensitive: * **postgresql**. */ engine: string; /** * Specifies the RDS instance IDs. */ instanceIds: string[]; /** * Specifies the instance name, which can be used for fuzzy query. */ instanceNameLike?: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the restoration time point. A timestamp in milliseconds is used. */ restoreTime: string; /** * Specifies the table name, which can be used for fuzzy query. */ tableNameLike?: string; } /** * A collection of values returned by getRestoredTables. */ export interface GetRestoredTablesResult { readonly databaseNameLike?: string; readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceIds: string[]; readonly instanceNameLike?: string; /** * Indicates the instance information. */ readonly instances: outputs.Rds.GetRestoredTablesInstance[]; readonly region: string; readonly restoreTime: string; /** * Indicates the maximum number of tables that can be restored. */ readonly tableLimit: number; readonly tableNameLike?: string; } export declare function getRestoredTablesOutput(args: GetRestoredTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRestoredTablesResult>; /** * A collection of arguments for invoking getRestoredTables. */ export interface GetRestoredTablesOutputArgs { /** * Specifies the database name, which can be used for fuzzy query. */ databaseNameLike?: pulumi.Input<string>; /** * Specifies the database engine. The supported engines are as follows, not case-sensitive: * **postgresql**. */ engine: pulumi.Input<string>; /** * Specifies the RDS instance IDs. */ instanceIds: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the instance name, which can be used for fuzzy query. */ instanceNameLike?: 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 restoration time point. A timestamp in milliseconds is used. */ restoreTime: pulumi.Input<string>; /** * Specifies the table name, which can be used for fuzzy query. */ tableNameLike?: pulumi.Input<string>; }