Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateTrafficMirrorFilterCommand

Creates a Traffic Mirror filter.

A Traffic Mirror filter is a set of rules that defines the traffic to mirror.

By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices to mirror supported network services.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, CreateTrafficMirrorFilterCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, CreateTrafficMirrorFilterCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new CreateTrafficMirrorFilterCommand(input);
const response = await client.send(command);
see

CreateTrafficMirrorFilterCommandInput for command's input shape.

see

CreateTrafficMirrorFilterCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateTrafficMirrorFilterCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions