create_traffic_mirror_target
async
¶
create_traffic_mirror_target(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
network_load_balancer_arn: Optional[String] = None,
description: Optional[String] = None,
tag_specifications: Optional[TagSpecificationList] = None,
dry_run: Optional[Boolean] = None,
client_token: Optional[String] = None,
gateway_load_balancer_endpoint_id: Optional[VpcEndpointId] = None,
) -> CreateTrafficMirrorTargetResult
Creates 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 CreateTrafficMirrorSession.
Parameters:
-
network_interface_id(Optional[NetworkInterfaceId], default:None) –The network interface ID that is associated with the target.
-
network_load_balancer_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
-
description(Optional[String], default:None) –The description of the Traffic Mirror target.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the Traffic Mirror target.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
-
gateway_load_balancer_endpoint_id(Optional[VpcEndpointId], default:None) –The ID of the Gateway Load Balancer endpoint.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 | |