@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
151 lines (150 loc) • 5.31 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a RDS LTS log resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const ltsGroupId = config.requireObject("ltsGroupId");
* const ltsStreamId = config.requireObject("ltsStreamId");
* const test = new huaweicloud.rds.LtsLog("test", {
* instanceId: instanceId,
* engine: "mysql",
* logType: "error_log",
* ltsGroupId: ltsGroupId,
* ltsStreamId: ltsStreamId,
* });
* ```
*
* ## Import
*
* The RDS LTS log can be imported using `instance_id` and `log_type` separated by a slash, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Rds/ltsLog:LtsLog test <instance_id>/<log_type>
* ```
*/
export declare class LtsLog extends pulumi.CustomResource {
/**
* Get an existing LtsLog resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LtsLogState, opts?: pulumi.CustomResourceOptions): LtsLog;
/**
* Returns true if the given object is an instance of LtsLog. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is LtsLog;
/**
* Specifies the engine of the RDS instance.
* Value options: **mysql**, **postgresql**, **sqlserver**. Changing this creates a new resource.
*/
readonly engine: pulumi.Output<string>;
/**
* Specifies the ID of the RDS instance.
* Changing this creates a new resource.
*/
readonly instanceId: pulumi.Output<string>;
/**
* Specifies the type of the LTS log.
* Value options: **error_log**, **slow_log**, **audit_log**. Changing this creates a new resource.
*/
readonly logType: pulumi.Output<string>;
/**
* Specifies the ID of the LTS log group.
*/
readonly ltsGroupId: pulumi.Output<string>;
/**
* Specifies the ID of the LTS log stream.
*/
readonly ltsStreamId: pulumi.Output<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a LtsLog resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: LtsLogArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LtsLog resources.
*/
export interface LtsLogState {
/**
* Specifies the engine of the RDS instance.
* Value options: **mysql**, **postgresql**, **sqlserver**. Changing this creates a new resource.
*/
engine?: pulumi.Input<string>;
/**
* Specifies the ID of the RDS instance.
* Changing this creates a new resource.
*/
instanceId?: pulumi.Input<string>;
/**
* Specifies the type of the LTS log.
* Value options: **error_log**, **slow_log**, **audit_log**. Changing this creates a new resource.
*/
logType?: pulumi.Input<string>;
/**
* Specifies the ID of the LTS log group.
*/
ltsGroupId?: pulumi.Input<string>;
/**
* Specifies the ID of the LTS log stream.
*/
ltsStreamId?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a LtsLog resource.
*/
export interface LtsLogArgs {
/**
* Specifies the engine of the RDS instance.
* Value options: **mysql**, **postgresql**, **sqlserver**. Changing this creates a new resource.
*/
engine: pulumi.Input<string>;
/**
* Specifies the ID of the RDS instance.
* Changing this creates a new resource.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the type of the LTS log.
* Value options: **error_log**, **slow_log**, **audit_log**. Changing this creates a new resource.
*/
logType: pulumi.Input<string>;
/**
* Specifies the ID of the LTS log group.
*/
ltsGroupId: pulumi.Input<string>;
/**
* Specifies the ID of the LTS log stream.
*/
ltsStreamId: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}