You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::Types::CreateTrafficMirrorFilterRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateTrafficMirrorFilterRuleRequest
- Defined in:
- (unknown)
Overview
When passing CreateTrafficMirrorFilterRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
traffic_mirror_filter_id: "TrafficMirrorFilterId", # required
traffic_direction: "ingress", # required, accepts ingress, egress
rule_number: 1, # required
rule_action: "accept", # required, 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", # required
source_cidr_block: "String", # required
description: "String",
dry_run: false,
client_token: "String",
}
Instance Attribute Summary collapse
-
#client_token ⇒ String
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
#description ⇒ String
The description of 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 port range.
-
#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 UDP, to assign to the Traffic Mirror rule.
-
#rule_action ⇒ String
The action to take (
accept
|reject
) on the filtered traffic. -
#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 source port range.
-
#traffic_direction ⇒ String
The type of traffic (
ingress
|egress
). -
#traffic_mirror_filter_id ⇒ String
The ID of the filter that this rule is associated with.
Instance Attribute Details
#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.
#description ⇒ String
The description of 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 port range.
#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 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.
#rule_action ⇒ String
The action to take (accept
| reject
) on the filtered traffic.
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 source port range.
#traffic_direction ⇒ String
The type of traffic (ingress
| egress
).
Possible values:
- ingress
- egress
#traffic_mirror_filter_id ⇒ String
The ID of the filter that this rule is associated with.