import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The mirror target is the network interface or classic load balancer used to collect traffic. You can use traffic mirroring to replicate network interface traffic based on your filtering criteria and forward the replicated traffic over the private network to the target service for monitoring and analysis. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const vPCTrafficMirrorTargetDemo = new volcenginecc.vpc.TrafficMirrorTarget("VPCTrafficMirrorTargetDemo", { * trafficMirrorTargetName: "test-terraformtest", * description: "this is a test", * instanceId: "eni-2yggxh4o692bk6asvxxxxx", * instanceType: "NetworkInterface", * projectName: "default", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vpc/trafficMirrorTarget:TrafficMirrorTarget example "traffic_mirror_target_id" * ``` */ export declare class TrafficMirrorTarget extends pulumi.CustomResource { /** * Get an existing TrafficMirrorTarget 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, state?: TrafficMirrorTargetState, opts?: pulumi.CustomResourceOptions): TrafficMirrorTarget; /** * Returns true if the given object is an instance of TrafficMirrorTarget. 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 TrafficMirrorTarget; /** * Creation time of the mirror session. */ readonly createdAt: pulumi.Output; /** * Listener description. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, the default value is an empty string. */ readonly description: pulumi.Output; /** * Resource ID of the mirror target. */ readonly instanceId: pulumi.Output; /** * Resource type of the mirror target. NetworkInterface: Elastic network interface. ClbInstance: Classic load balancer. */ readonly instanceType: pulumi.Output; /** * Name of the project to which the mirror target belongs. If not specified, it will be added to the default project. */ readonly projectName: pulumi.Output; /** * Status of the mirror target. Available: Available. Creating: Creating. */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * ID of the mirror target. */ readonly trafficMirrorTargetId: pulumi.Output; /** * Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, the default is 'protocol-port' as the listener name. */ readonly trafficMirrorTargetName: pulumi.Output; /** * Update time of the mirror session. */ readonly updatedAt: pulumi.Output; /** * Create a TrafficMirrorTarget 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: TrafficMirrorTargetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TrafficMirrorTarget resources. */ export interface TrafficMirrorTargetState { /** * Creation time of the mirror session. */ createdAt?: pulumi.Input; /** * Listener description. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, the default value is an empty string. */ description?: pulumi.Input; /** * Resource ID of the mirror target. */ instanceId?: pulumi.Input; /** * Resource type of the mirror target. NetworkInterface: Elastic network interface. ClbInstance: Classic load balancer. */ instanceType?: pulumi.Input; /** * Name of the project to which the mirror target belongs. If not specified, it will be added to the default project. */ projectName?: pulumi.Input; /** * Status of the mirror target. Available: Available. Creating: Creating. */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * ID of the mirror target. */ trafficMirrorTargetId?: pulumi.Input; /** * Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, the default is 'protocol-port' as the listener name. */ trafficMirrorTargetName?: pulumi.Input; /** * Update time of the mirror session. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a TrafficMirrorTarget resource. */ export interface TrafficMirrorTargetArgs { /** * Listener description. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length must be between 0 and 255 characters. If not specified, the default value is an empty string. */ description?: pulumi.Input; /** * Resource ID of the mirror target. */ instanceId: pulumi.Input; /** * Resource type of the mirror target. NetworkInterface: Elastic network interface. ClbInstance: Classic load balancer. */ instanceType: pulumi.Input; /** * Name of the project to which the mirror target belongs. If not specified, it will be added to the default project. */ projectName?: pulumi.Input; tags?: pulumi.Input[]>; /** * Listener name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, the default is 'protocol-port' as the listener name. */ trafficMirrorTargetName?: pulumi.Input; }