You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::Types::ModifyTrafficMirrorFilterRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyTrafficMirrorFilterRuleRequest
- Defined in:
- (unknown)
Overview
When passing ModifyTrafficMirrorFilterRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
traffic_mirror_filter_rule_id: "TrafficMirrorFilterRuleId", # required
traffic_direction: "ingress", # accepts ingress, egress
rule_number: 1,
rule_action: "accept", # accepts accept, reject
destination_port_range: {
from_port: 1,
to_port: 1,
},
source_port_range: {
from_port: 1,
to_port: 1,
},
protocol: 1,
destination_cidr_block: "String",
source_cidr_block: "String",
description: "String",
remove_fields: ["destination-port-range"], # accepts destination-port-range, source-port-range, protocol, description
dry_run: false,
}
Instance Attribute Summary collapse
-
#description ⇒ String
The description to assign to the Traffic Mirror rule.
-
#destination_cidr_block ⇒ String
The destination CIDR block to assign to the Traffic Mirror rule.
-
#destination_port_range ⇒ Types::TrafficMirrorPortRangeRequest
The destination ports that are associated with the Traffic Mirror rule.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#protocol ⇒ Integer
The protocol, for example TCP, to assign to the Traffic Mirror rule.
-
#remove_fields ⇒ Array<String>
The properties that you want to remove from the Traffic Mirror filter rule.
-
#rule_action ⇒ String
The action to assign to the rule.
-
#rule_number ⇒ Integer
The number of the Traffic Mirror rule.
-
#source_cidr_block ⇒ String
The source CIDR block to assign to the Traffic Mirror rule.
-
#source_port_range ⇒ Types::TrafficMirrorPortRangeRequest
The port range to assign to the Traffic Mirror rule.
-
#traffic_direction ⇒ String
The type of traffic (
ingress
|egress
) to assign to the rule. -
#traffic_mirror_filter_rule_id ⇒ String
The ID of the Traffic Mirror rule.
Instance Attribute Details
#description ⇒ String
The description to assign to the Traffic Mirror rule.
#destination_cidr_block ⇒ String
The destination CIDR block to assign to the Traffic Mirror rule.
#destination_port_range ⇒ Types::TrafficMirrorPortRangeRequest
The destination ports that are associated with the Traffic Mirror rule.
#dry_run ⇒ Boolean
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
.
#protocol ⇒ Integer
The protocol, for example TCP, to assign to the Traffic Mirror rule.
#remove_fields ⇒ Array<String>
The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
#rule_action ⇒ String
The action to assign to the rule.
Possible values:
- accept
- reject
#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.
#source_cidr_block ⇒ String
The source CIDR block to assign to the Traffic Mirror rule.
#source_port_range ⇒ Types::TrafficMirrorPortRangeRequest
The port range to assign to the Traffic Mirror rule.
#traffic_direction ⇒ String
The type of traffic (ingress
| egress
) to assign to the rule.
Possible values:
- ingress
- egress
#traffic_mirror_filter_rule_id ⇒ String
The ID of the Traffic Mirror rule.