UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

111 lines (110 loc) 3.59 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", * }); * ``` */ /** @deprecated volcengine.rds_postgresql.InstanceFailoverLogs has been deprecated in favor of volcengine.rds_postgresql.getInstanceFailoverLogs */ export declare function instanceFailoverLogs(args: InstanceFailoverLogsArgs, opts?: pulumi.InvokeOptions): Promise<InstanceFailoverLogsResult>; /** * A collection of arguments for invoking InstanceFailoverLogs. */ export interface InstanceFailoverLogsArgs { /** * 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 InstanceFailoverLogs. */ export interface InstanceFailoverLogsResult { /** * The collection of failover logs. */ readonly failoverLogs: outputs.rds_postgresql.InstanceFailoverLogsFailoverLog[]; /** * 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", * }); * ``` */ /** @deprecated volcengine.rds_postgresql.InstanceFailoverLogs has been deprecated in favor of volcengine.rds_postgresql.getInstanceFailoverLogs */ export declare function instanceFailoverLogsOutput(args: InstanceFailoverLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<InstanceFailoverLogsResult>; /** * A collection of arguments for invoking InstanceFailoverLogs. */ export interface InstanceFailoverLogsOutputArgs { /** * 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>; }