AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::TrafficMirrorTarget

CfnTrafficMirrorTarget

Specifies a target for your Traffic Mirror session. A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway. A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint. To use the target in a Traffic Mirror session, use [AWS::EC2::TrafficMirrorSession](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html) .

Import

import { CfnTrafficMirrorTarget } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTrafficMirrorTarget

Properties

Configuration passed to the constructor as CfnTrafficMirrorTargetProps.

descriptionOptional
string

The description of the Traffic Mirror target.

gatewayLoadBalancerEndpointIdOptional
string

The ID of the Gateway Load Balancer endpoint.

networkInterfaceIdOptional
string

The network interface ID that is associated with the target.

networkLoadBalancerArnOptional
string

The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

tagsOptional
CfnTag[]

The tags to assign to the Traffic Mirror target.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic