modify_traffic_mirror_session
¶
modify_traffic_mirror_session(
*,
config_overrides: Optional[EC2ClientConfig] = None,
traffic_mirror_session_id: Optional[TrafficMirrorSessionId] = None,
traffic_mirror_target_id: Optional[TrafficMirrorTargetId] = None,
traffic_mirror_filter_id: Optional[TrafficMirrorFilterId] = None,
packet_length: Optional[Integer] = None,
session_number: Optional[Integer] = None,
virtual_network_id: Optional[Integer] = None,
description: Optional[String] = None,
remove_fields: Optional[TrafficMirrorSessionFieldList] = None,
dry_run: Optional[Boolean] = None,
) -> ModifyTrafficMirrorSessionResult
Modifies a Traffic Mirror session.
Parameters:
-
traffic_mirror_session_id(Optional[TrafficMirrorSessionId], default:None) –The ID of the Traffic Mirror session.
-
traffic_mirror_target_id(Optional[TrafficMirrorTargetId], default:None) –The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
-
traffic_mirror_filter_id(Optional[TrafficMirrorFilterId], default:None) –The ID of the Traffic Mirror filter.
-
packet_length(Optional[Integer], default:None) –The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet.
For sessions with Network Load Balancer (NLB) traffic mirror targets, the default
PacketLengthwill be set to 8500. Valid values are 1-8500. Setting aPacketLengthgreater than 8500 will result in an error response. -
session_number(Optional[Integer], default:None) –The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
-
virtual_network_id(Optional[Integer], default:None) –The virtual network ID of the Traffic Mirror session.
-
description(Optional[String], default:None) –The description to assign to the Traffic Mirror session.
-
remove_fields(Optional[TrafficMirrorSessionFieldList], default:None) –The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
52853 52854 52855 52856 52857 52858 52859 52860 52861 52862 52863 52864 52865 52866 52867 52868 52869 52870 52871 52872 52873 52874 52875 52876 52877 52878 52879 52880 52881 52882 52883 52884 52885 52886 52887 52888 52889 52890 52891 52892 52893 52894 52895 52896 52897 52898 52899 52900 52901 52902 52903 52904 52905 52906 52907 52908 52909 52910 52911 52912 52913 52914 52915 52916 52917 52918 52919 52920 52921 52922 52923 52924 52925 52926 52927 52928 52929 52930 52931 52932 52933 52934 52935 | |