import { Value } from '../../cloudformation/Value';
import { Tag } from '../Tag';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
/**
  Creates a Traffic Mirror session.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html">the AWS Docs</a>
*/
export type TrafficMirrorSession = AwsResource<'AWS::EC2::TrafficMirrorSession', TrafficMirrorSessionProperties>;
export declare function trafficMirrorSession(trafficMirrorSessionProps: TrafficMirrorSessionProperties): TrafficMirrorSession;
/**
  Creates a Traffic Mirror session.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html">the AWS Docs</a>
*/
export interface TrafficMirrorSessionProperties {
    /** <code>TrafficMirrorTargetId</code>  <a name="cfn-ec2-trafficmirrorsession-trafficmirrortargetid"></a>
  The ID of the Traffic Mirror target.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    trafficMirrorTargetId: Value<string>;
    /** <code>Description</code>  <a name="cfn-ec2-trafficmirrorsession-description"></a>
  The description of the Traffic Mirror session.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    description?: Value<string>;
    /** <code>SessionNumber</code>  <a name="cfn-ec2-trafficmirrorsession-sessionnumber"></a>
  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.<br />
  Valid values are 1-32766.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    sessionNumber: Value<number>;
    /** <code>VirtualNetworkId</code>  <a name="cfn-ec2-trafficmirrorsession-virtualnetworkid"></a>
  The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN protocol, see <a href="https://tools.ietf.org/html/rfc7348">RFC 7348</a>. If you do not specify a <code>VirtualNetworkId</code>, an account-wide unique id is chosen at random.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    virtualNetworkId?: Value<number>;
    /** <code>PacketLength</code>  <a name="cfn-ec2-trafficmirrorsession-packetlength"></a>
  The number of bytes in each packet to mirror. These are bytes after the VXLAN header. Do not specify this parameter when you want to mirror the entire packet. To mirror a subset of the packet, set this to the length (in bytes) that you want 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.<br />
  If you do not want to mirror the entire packet, use the <code>PacketLength</code> parameter to specify the number of bytes in each packet to mirror.<br />
  For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default <code>PacketLength</code> will be set to 8500. Valid values are 1-8500. Setting a <code>PacketLength</code> greater than 8500 will result in an error response.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    packetLength?: Value<number>;
    /** <code>NetworkInterfaceId</code>  <a name="cfn-ec2-trafficmirrorsession-networkinterfaceid"></a>
  The ID of the source network interface.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    networkInterfaceId: Value<string>;
    /** <code>TrafficMirrorFilterId</code>  <a name="cfn-ec2-trafficmirrorsession-trafficmirrorfilterid"></a>
  The ID of the Traffic Mirror filter.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    trafficMirrorFilterId: Value<string>;
    /** <code>Tags</code>  <a name="cfn-ec2-trafficmirrorsession-tags"></a>
  The tags to assign to a Traffic Mirror session.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    tags?: Tag[];
}
