@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
91 lines (90 loc) • 2.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS SQL audit 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.getSqlAuditLogs({
* instanceId: instanceId,
* startTime: startTime,
* endTime: endTime,
* });
* ```
*/
export declare function getSqlAuditLogs(args: GetSqlAuditLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetSqlAuditLogsResult>;
/**
* A collection of arguments for invoking getSqlAuditLogs.
*/
export interface GetSqlAuditLogsArgs {
/**
* Specifies the end time in the **yyyy-mm-ddThh:mm:ssZ** format.
* It must be later than the start time. The time span cannot be longer than 30 days.
*/
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;
}
/**
* A collection of values returned by getSqlAuditLogs.
*/
export interface GetSqlAuditLogsResult {
/**
* Indicates the list of the SQL audit logs.
*/
readonly auditLogs: outputs.Rds.GetSqlAuditLogsAuditLog[];
/**
* Indicates the end time of the audit log.
*/
readonly endTime: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
readonly region: string;
readonly startTime: string;
}
export declare function getSqlAuditLogsOutput(args: GetSqlAuditLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSqlAuditLogsResult>;
/**
* A collection of arguments for invoking getSqlAuditLogs.
*/
export interface GetSqlAuditLogsOutputArgs {
/**
* Specifies the end time in the **yyyy-mm-ddThh:mm:ssZ** format.
* It must be later than the start time. The time span cannot be longer than 30 days.
*/
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>;
}