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.

Container for the parameters to the ModifyTrafficMirrorSession operation. Modifies a Traffic Mirror session.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.ModifyTrafficMirrorSessionRequest

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

Syntax

C#
public class ModifyTrafficMirrorSessionRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The ModifyTrafficMirrorSessionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Description System.String

Gets and sets the property Description.

The description to assign to the Traffic Mirror session.

Public Property PacketLength System.Int32

Gets and sets the property PacketLength.

The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet.

For sessions with Network Load Balancer (NLB) traffic mirror targets, the default PacketLength will be set to 8500. Valid values are 1-8500. Setting a PacketLength greater than 8500 will result in an error response.

Public Property RemoveFields System.Collections.Generic.List<System.String>

Gets and sets the property RemoveFields.

The properties that you want to remove from the Traffic Mirror session.

When you remove a property from a Traffic Mirror session, the property is set to the default.

Public Property SessionNumber System.Int32

Gets and sets the property SessionNumber.

The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.

Valid values are 1-32766.

Public Property TrafficMirrorFilterId System.String

Gets and sets the property TrafficMirrorFilterId.

The ID of the Traffic Mirror filter.

Public Property TrafficMirrorSessionId System.String

Gets and sets the property TrafficMirrorSessionId.

The ID of the Traffic Mirror session.

Public Property TrafficMirrorTargetId System.String

Gets and sets the property TrafficMirrorTargetId.

The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.

Public Property VirtualNetworkId System.Int32

Gets and sets the property VirtualNetworkId.

The virtual network ID of the Traffic Mirror session.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5