@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
100 lines (99 loc) • 3.03 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS error 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.getErrorLogs({
* instanceId: instanceId,
* startTime: startTime,
* endTime: endTime,
* });
* ```
*/
export declare function getErrorLogs(args: GetErrorLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetErrorLogsResult>;
/**
* A collection of arguments for invoking getErrorLogs.
*/
export interface GetErrorLogsArgs {
/**
* 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 log level. Value options: **ALL**, **INFO**, **LOG**, **WARNING**,
* **ERROR**, **FATAL**, **PANIC**, **NOTE**. Defaults to **ALL**.
*/
level?: 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;
}
/**
* A collection of values returned by getErrorLogs.
*/
export interface GetErrorLogsResult {
readonly endTime: string;
/**
* Indicates the list of the error logs.
*/
readonly errorLogs: outputs.Rds.GetErrorLogsErrorLog[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
/**
* Indicates the error log level.
*/
readonly level?: string;
readonly region: string;
readonly startTime: string;
}
export declare function getErrorLogsOutput(args: GetErrorLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetErrorLogsResult>;
/**
* A collection of arguments for invoking getErrorLogs.
*/
export interface GetErrorLogsOutputArgs {
/**
* 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 log level. Value options: **ALL**, **INFO**, **LOG**, **WARNING**,
* **ERROR**, **FATAL**, **PANIC**, **NOTE**. Defaults to **ALL**.
*/
level?: 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>;
}