UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

198 lines (197 loc) 7.07 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a CFW 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 ltsAttackLogStreamId = config.requireObject("ltsAttackLogStreamId"); * const ltsFlowLogStreamId = config.requireObject("ltsFlowLogStreamId"); * const ltsAccessLogStreamId = config.requireObject("ltsAccessLogStreamId"); * const fwInstanceId = config.requireObject("fwInstanceId"); * const ltsLogGroupId = config.requireObject("ltsLogGroupId"); * const test = new huaweicloud.cfw.LtsLog("test", { * fwInstanceId: fwInstanceId, * ltsLogGroupId: ltsLogGroupId, * ltsAttackLogStreamEnable: 1, * ltsAccessLogStreamEnable: 1, * ltsFlowLogStreamEnable: 1, * ltsAttackLogStreamId: ltsAttackLogStreamId, * ltsAccessLogStreamId: ltsAccessLogStreamId, * ltsFlowLogStreamId: ltsFlowLogStreamId, * }); * ``` * * ## Import * * The lts log resource can be imported using the firewall instance ID, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cfw/ltsLog:LtsLog test <fw_instance_id> * ``` */ 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 ID of the firewall. * Changing this creates a new resource. */ readonly fwInstanceId: pulumi.Output<string>; /** * Specifies whether to enable the access log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ readonly ltsAccessLogStreamEnable: pulumi.Output<number>; /** * Specifies the access log stream ID. */ readonly ltsAccessLogStreamId: pulumi.Output<string | undefined>; /** * Specifies whether to enable the attack log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ readonly ltsAttackLogStreamEnable: pulumi.Output<number>; /** * Specifies the attack log stream ID. */ readonly ltsAttackLogStreamId: pulumi.Output<string | undefined>; /** * Specifies whether to enable the flow log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ readonly ltsFlowLogStreamEnable: pulumi.Output<number>; /** * Specifies the flow log stream ID. */ readonly ltsFlowLogStreamId: pulumi.Output<string | undefined>; /** * Specifies the LTS log group ID. */ readonly ltsLogGroupId: 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 ID of the firewall. * Changing this creates a new resource. */ fwInstanceId?: pulumi.Input<string>; /** * Specifies whether to enable the access log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsAccessLogStreamEnable?: pulumi.Input<number>; /** * Specifies the access log stream ID. */ ltsAccessLogStreamId?: pulumi.Input<string>; /** * Specifies whether to enable the attack log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsAttackLogStreamEnable?: pulumi.Input<number>; /** * Specifies the attack log stream ID. */ ltsAttackLogStreamId?: pulumi.Input<string>; /** * Specifies whether to enable the flow log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsFlowLogStreamEnable?: pulumi.Input<number>; /** * Specifies the flow log stream ID. */ ltsFlowLogStreamId?: pulumi.Input<string>; /** * Specifies the LTS log group ID. */ ltsLogGroupId?: 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 ID of the firewall. * Changing this creates a new resource. */ fwInstanceId: pulumi.Input<string>; /** * Specifies whether to enable the access log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsAccessLogStreamEnable: pulumi.Input<number>; /** * Specifies the access log stream ID. */ ltsAccessLogStreamId?: pulumi.Input<string>; /** * Specifies whether to enable the attack log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsAttackLogStreamEnable: pulumi.Input<number>; /** * Specifies the attack log stream ID. */ ltsAttackLogStreamId?: pulumi.Input<string>; /** * Specifies whether to enable the flow log stream. * The valid values are `0` and `1`, where `0` means disable and `1` means enable. */ ltsFlowLogStreamEnable: pulumi.Input<number>; /** * Specifies the flow log stream ID. */ ltsFlowLogStreamId?: pulumi.Input<string>; /** * Specifies the LTS log group ID. */ ltsLogGroupId: 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>; }