modify_traffic_mirror_session
async
¶
modify_traffic_mirror_session(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
53588 53589 53590 53591 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 53606 53607 53608 53609 53610 53611 53612 53613 53614 53615 53616 53617 53618 53619 53620 53621 53622 53623 53624 53625 53626 53627 53628 53629 53630 53631 53632 53633 53634 53635 53636 53637 53638 53639 53640 53641 53642 53643 53644 53645 53646 53647 53648 53649 53650 53651 53652 53653 53654 53655 53656 53657 53658 53659 53660 53661 53662 53663 53664 53665 53666 53667 53668 53669 53670 53671 | |