UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

109 lines (108 loc) 3.33 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of rds postgresql instance failover logs * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.rds_postgresql.getInstanceFailoverLogs({ * instanceId: "postgres-72******9f58", * limit: 1000, * queryEndTime: "2025-12-12T17:00:00Z", * queryStartTime: "2025-12-10T16:00:00Z", * }); * ``` */ export declare function getInstanceFailoverLogs(args: GetInstanceFailoverLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceFailoverLogsResult>; /** * A collection of arguments for invoking getInstanceFailoverLogs. */ export interface GetInstanceFailoverLogsArgs { /** * The ID of the PostgreSQL instance. */ instanceId: string; /** * The number of records per page. Max: 1000, Min: 1. */ limit?: number; /** * File name where to save data source results. */ outputFile?: string; /** * The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time). */ queryEndTime?: string; /** * The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time). */ queryStartTime?: string; } /** * A collection of values returned by getInstanceFailoverLogs. */ export interface GetInstanceFailoverLogsResult { /** * The collection of failover logs. */ readonly failoverLogs: outputs.rds_postgresql.GetInstanceFailoverLogsFailoverLog[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; readonly limit?: number; readonly outputFile?: string; readonly queryEndTime?: string; readonly queryStartTime?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of rds postgresql instance failover logs * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.rds_postgresql.getInstanceFailoverLogs({ * instanceId: "postgres-72******9f58", * limit: 1000, * queryEndTime: "2025-12-12T17:00:00Z", * queryStartTime: "2025-12-10T16:00:00Z", * }); * ``` */ export declare function getInstanceFailoverLogsOutput(args: GetInstanceFailoverLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceFailoverLogsResult>; /** * A collection of arguments for invoking getInstanceFailoverLogs. */ export interface GetInstanceFailoverLogsOutputArgs { /** * The ID of the PostgreSQL instance. */ instanceId: pulumi.Input<string>; /** * The number of records per page. Max: 1000, Min: 1. */ limit?: pulumi.Input<number>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time). */ queryEndTime?: pulumi.Input<string>; /** * The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time). */ queryStartTime?: pulumi.Input<string>; }