AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a Traffic Mirror session.

A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.

The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.

By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.


For .NET Core this operation is only available in asynchronous form. Please refer to CreateTrafficMirrorSessionAsync.

Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z


public virtual CreateTrafficMirrorSessionResponse CreateTrafficMirrorSession(
         CreateTrafficMirrorSessionRequest request


Type: Amazon.EC2.Model.CreateTrafficMirrorSessionRequest

Container for the necessary parameters to execute the CreateTrafficMirrorSession service method.

Return Value

The response from the CreateTrafficMirrorSession service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also