create_traffic_mirror_target
¶
create_traffic_mirror_target(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 | |