import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The mirror session links the mirror source, mirror destination, and filter conditions, enabling private network forwarding of traffic copied from the mirror source to the mirror destination. It serves as the carrier for traffic mirroring * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const vPCTrafficMirrorSessionDemo = new volcenginecc.vpc.TrafficMirrorSession("VPCTrafficMirrorSessionDemo", { * description: "test-description", * networkInterfaceId: "eni-1a1s0wz7xkm4g8nvexxxxx", * packetLength: 64, * priority: 12, * projectName: "default", * tags: [{ * key: "env", * value: "test", * }], * trafficMirrorFilterId: "tmf-bu54sj0bl2bk5h0xxxxx", * trafficMirrorSessionName: "test-1", * trafficMirrorTargetId: "tmt-ij32u0acvta874o8ctxxxxx", * virtualNetworkId: 13, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vpc/trafficMirrorSession:TrafficMirrorSession example "traffic_mirror_session_id" * ``` */ export declare class TrafficMirrorSession extends pulumi.CustomResource { /** * Get an existing TrafficMirrorSession 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?: TrafficMirrorSessionState, opts?: pulumi.CustomResourceOptions): TrafficMirrorSession; /** * Returns true if the given object is an instance of TrafficMirrorSession. 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 TrafficMirrorSession; /** * Session billing status. Normal: Billing in progress. - FinancialLocked: Locked due to overdue payment */ readonly businessStatus: pulumi.Output; /** * Creation time */ readonly createdTime: pulumi.Output; /** * Mirror session instance description */ readonly description: pulumi.Output; /** * Lock reason */ readonly lockReason: pulumi.Output; /** * Mirror source instance ID. Currently, only ECS primary and secondary network interfaces are supported */ readonly networkInterfaceId: pulumi.Output; /** * Mirror session MTU. Values exceeding this will be truncated. Range: 64–9600 */ readonly packetLength: pulumi.Output; /** * Mirror session priority. Range: 1–32766. Priority values must be unique within the same account */ readonly priority: pulumi.Output; /** * Name of the associated project */ readonly projectName: pulumi.Output; /** * Session status */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Filter condition instance ID */ readonly trafficMirrorFilterId: pulumi.Output; /** * Mirror session instance ID */ readonly trafficMirrorSessionId: pulumi.Output; /** * Mirror session name */ readonly trafficMirrorSessionName: pulumi.Output; /** * Mirror source instance list */ readonly trafficMirrorSourceIds: pulumi.Output; /** * Mirror destination instance ID */ readonly trafficMirrorTargetId: pulumi.Output; /** * Mirror session VNI. Range: 1–16777215 */ readonly virtualNetworkId: pulumi.Output; /** * Create a TrafficMirrorSession 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: TrafficMirrorSessionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TrafficMirrorSession resources. */ export interface TrafficMirrorSessionState { /** * Session billing status. Normal: Billing in progress. - FinancialLocked: Locked due to overdue payment */ businessStatus?: pulumi.Input; /** * Creation time */ createdTime?: pulumi.Input; /** * Mirror session instance description */ description?: pulumi.Input; /** * Lock reason */ lockReason?: pulumi.Input; /** * Mirror source instance ID. Currently, only ECS primary and secondary network interfaces are supported */ networkInterfaceId?: pulumi.Input; /** * Mirror session MTU. Values exceeding this will be truncated. Range: 64–9600 */ packetLength?: pulumi.Input; /** * Mirror session priority. Range: 1–32766. Priority values must be unique within the same account */ priority?: pulumi.Input; /** * Name of the associated project */ projectName?: pulumi.Input; /** * Session status */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Filter condition instance ID */ trafficMirrorFilterId?: pulumi.Input; /** * Mirror session instance ID */ trafficMirrorSessionId?: pulumi.Input; /** * Mirror session name */ trafficMirrorSessionName?: pulumi.Input; /** * Mirror source instance list */ trafficMirrorSourceIds?: pulumi.Input[]>; /** * Mirror destination instance ID */ trafficMirrorTargetId?: pulumi.Input; /** * Mirror session VNI. Range: 1–16777215 */ virtualNetworkId?: pulumi.Input; } /** * The set of arguments for constructing a TrafficMirrorSession resource. */ export interface TrafficMirrorSessionArgs { /** * Mirror session instance description */ description?: pulumi.Input; /** * Mirror source instance ID. Currently, only ECS primary and secondary network interfaces are supported */ networkInterfaceId: pulumi.Input; /** * Mirror session MTU. Values exceeding this will be truncated. Range: 64–9600 */ packetLength?: pulumi.Input; /** * Mirror session priority. Range: 1–32766. Priority values must be unique within the same account */ priority: pulumi.Input; /** * Name of the associated project */ projectName?: pulumi.Input; tags?: pulumi.Input[]>; /** * Filter condition instance ID */ trafficMirrorFilterId: pulumi.Input; /** * Mirror session name */ trafficMirrorSessionName?: pulumi.Input; /** * Mirror destination instance ID */ trafficMirrorTargetId: pulumi.Input; /** * Mirror session VNI. Range: 1–16777215 */ virtualNetworkId?: pulumi.Input; }