aws ec2 create-traffic-mirror-filter-rule
Creates a Traffic Mirror filter rule. A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror. You need the Traffic Mirror filter ID when you create the rule
Options
Name | Description |
---|---|
--traffic-mirror-filter-id <string> | The ID of the filter that this rule is associated with |
--traffic-direction <string> | The type of traffic (ingress | egress) |
--rule-number <integer> | The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number |
--rule-action <string> | The action to take (accept | reject) on the filtered traffic |
--destination-port-range <structure> | The destination port range |
--source-port-range <structure> | The source port range |
--protocol <integer> | The protocol, for example UDP, to assign to the Traffic Mirror rule. For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website |
--destination-cidr-block <string> | The destination CIDR block to assign to the Traffic Mirror rule |
--source-cidr-block <string> | The source CIDR block to assign to the Traffic Mirror rule |
--description <string> | The description of the Traffic Mirror rule |
--dry-run | 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 is UnauthorizedOperation |
--no-dry-run | 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 is UnauthorizedOperation |
--client-token <string> | Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency |
--cli-input-json <string> | Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally |
--generate-cli-skeleton <string> | Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command |