Class ModifyTrafficMirrorFilterNetworkServicesCommand
Allows or restricts mirroring network services.
By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored.
When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.
example
Use a bare-bones client and the command you need to make an API call.
Allows or restricts mirroring network services.
By default, Amazon DNS network services are not eligible for Traffic Mirror. Use
AddNetworkServices
to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, useRemoveNetworkServices
to remove the network services from the Traffic Mirror filter.Use a bare-bones client and the command you need to make an API call.
import { EC2Client, ModifyTrafficMirrorFilterNetworkServicesCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, ModifyTrafficMirrorFilterNetworkServicesCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new ModifyTrafficMirrorFilterNetworkServicesCommand(input); const response = await client.send(command);
ModifyTrafficMirrorFilterNetworkServicesCommandInput for command's
input
shape.ModifyTrafficMirrorFilterNetworkServicesCommandOutput for command's
response
shape.config for EC2Client's
config
shape.