UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

82 lines (81 loc) 2.34 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the RDS slow log link. * * ## 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 test = huaweicloud.Rds.getSlowLogLink({ * instanceId: instanceId, * }); * ``` */ export declare function getSlowLogLink(args: GetSlowLogLinkArgs, opts?: pulumi.InvokeOptions): Promise<GetSlowLogLinkResult>; /** * A collection of arguments for invoking getSlowLogLink. */ export interface GetSlowLogLinkArgs { /** * Specifies the name of the file to be downloaded. It is mandatory when the type of the * instance is **SQLServer**. */ fileName?: string; /** * Specifies the ID of the RDS instance. */ instanceId: string; /** * Specifies the region in which to create the resource. If omitted, the provider-level * region will be used. */ region?: string; } /** * A collection of values returned by getSlowLogLink. */ export interface GetSlowLogLinkResult { /** * Indicates the creation time. */ readonly createdAt: number; /** * Indicates the download link. */ readonly fileLink: string; readonly fileName?: string; /** * Indicates the file size in KB. */ readonly fileSize: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; readonly region: string; } export declare function getSlowLogLinkOutput(args: GetSlowLogLinkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSlowLogLinkResult>; /** * A collection of arguments for invoking getSlowLogLink. */ export interface GetSlowLogLinkOutputArgs { /** * Specifies the name of the file to be downloaded. It is mandatory when the type of the * instance is **SQLServer**. */ fileName?: pulumi.Input<string>; /** * Specifies the ID of the RDS instance. */ instanceId: pulumi.Input<string>; /** * Specifies the region in which to create the resource. If omitted, the provider-level * region will be used. */ region?: pulumi.Input<string>; }