UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

76 lines (75 loc) 2.36 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of RDS restore time ranges. * * ## 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.getRestoreTimeRanges({ * instanceId: instanceId, * date: "2024-05-15", * }); * ``` */ export declare function getRestoreTimeRanges(args: GetRestoreTimeRangesArgs, opts?: pulumi.InvokeOptions): Promise<GetRestoreTimeRangesResult>; /** * A collection of arguments for invoking getRestoreTimeRanges. */ export interface GetRestoreTimeRangesArgs { /** * Specifies the date to be queried. * The value is in the **yyyy-mm-dd** format, and the time zone is UTC. */ date?: string; /** * Specifies the ID of RDS instance. */ instanceId: 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 getRestoreTimeRanges. */ export interface GetRestoreTimeRangesResult { readonly date?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; readonly region: string; /** * Indicates the list of restoration time ranges. */ readonly restoreTimes: outputs.Rds.GetRestoreTimeRangesRestoreTime[]; } export declare function getRestoreTimeRangesOutput(args: GetRestoreTimeRangesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRestoreTimeRangesResult>; /** * A collection of arguments for invoking getRestoreTimeRanges. */ export interface GetRestoreTimeRangesOutputArgs { /** * Specifies the date to be queried. * The value is in the **yyyy-mm-dd** format, and the time zone is UTC. */ date?: pulumi.Input<string>; /** * Specifies the ID of RDS instance. */ instanceId: 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>; }