UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

127 lines (126 loc) 3.54 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of RDS slow logs. * * ## 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 startTime = config.requireObject("startTime"); * const endTime = config.requireObject("endTime"); * const test = huaweicloud.Rds.getSlowLogs({ * instanceId: instanceId, * startTime: startTime, * endTime: endTime, * }); * ``` */ export declare function getSlowLogs(args: GetSlowLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetSlowLogsResult>; /** * A collection of arguments for invoking getSlowLogs. */ export interface GetSlowLogsArgs { /** * Specifies the name of the database. */ database?: string; /** * Specifies the end time in the **yyyy-mm-ddThh:mm:ssZ** format. */ endTime: string; /** * Specifies the ID of the RDS instance. */ instanceId: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the start time in the **yyyy-mm-ddThh:mm:ssZ** format. */ startTime: string; /** * Specifies the statement type. Value options: **INSERT**, **UPDATE**, **SELECT**, * **DELETE**, **CREATE**. */ type?: string; /** * Specifies the name of the account. */ users?: string; } /** * A collection of values returned by getSlowLogs. */ export interface GetSlowLogsResult { /** * Indicates the name of the database. */ readonly database?: string; readonly endTime: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; readonly region: string; /** * Indicates the list of the slow logs. */ readonly slowLogs: outputs.Rds.GetSlowLogsSlowLog[]; /** * Indicates the start time in the **yyyy-mm-ddThh:mm:ssZ** format. */ readonly startTime: string; /** * Indicates the statement type. */ readonly type?: string; /** * Indicates the name of the account. */ readonly users?: string; } export declare function getSlowLogsOutput(args: GetSlowLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSlowLogsResult>; /** * A collection of arguments for invoking getSlowLogs. */ export interface GetSlowLogsOutputArgs { /** * Specifies the name of the database. */ database?: pulumi.Input<string>; /** * Specifies the end time in the **yyyy-mm-ddThh:mm:ssZ** format. */ endTime: pulumi.Input<string>; /** * Specifies the ID of the 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>; /** * Specifies the start time in the **yyyy-mm-ddThh:mm:ssZ** format. */ startTime: pulumi.Input<string>; /** * Specifies the statement type. Value options: **INSERT**, **UPDATE**, **SELECT**, * **DELETE**, **CREATE**. */ type?: pulumi.Input<string>; /** * Specifies the name of the account. */ users?: pulumi.Input<string>; }