Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CreateTrafficMirrorFilterRule = CreateTrafficMirrorFilterRule' {
- clientToken :: Maybe Text
- description :: Maybe Text
- destinationPortRange :: Maybe TrafficMirrorPortRangeRequest
- dryRun :: Maybe Bool
- protocol :: Maybe Int
- sourcePortRange :: Maybe TrafficMirrorPortRangeRequest
- trafficMirrorFilterId :: Text
- trafficDirection :: TrafficDirection
- ruleNumber :: Int
- ruleAction :: TrafficMirrorRuleAction
- destinationCidrBlock :: Text
- sourceCidrBlock :: Text
- newCreateTrafficMirrorFilterRule :: Text -> TrafficDirection -> Int -> TrafficMirrorRuleAction -> Text -> Text -> CreateTrafficMirrorFilterRule
- createTrafficMirrorFilterRule_clientToken :: Lens' CreateTrafficMirrorFilterRule (Maybe Text)
- createTrafficMirrorFilterRule_description :: Lens' CreateTrafficMirrorFilterRule (Maybe Text)
- createTrafficMirrorFilterRule_destinationPortRange :: Lens' CreateTrafficMirrorFilterRule (Maybe TrafficMirrorPortRangeRequest)
- createTrafficMirrorFilterRule_dryRun :: Lens' CreateTrafficMirrorFilterRule (Maybe Bool)
- createTrafficMirrorFilterRule_protocol :: Lens' CreateTrafficMirrorFilterRule (Maybe Int)
- createTrafficMirrorFilterRule_sourcePortRange :: Lens' CreateTrafficMirrorFilterRule (Maybe TrafficMirrorPortRangeRequest)
- createTrafficMirrorFilterRule_trafficMirrorFilterId :: Lens' CreateTrafficMirrorFilterRule Text
- createTrafficMirrorFilterRule_trafficDirection :: Lens' CreateTrafficMirrorFilterRule TrafficDirection
- createTrafficMirrorFilterRule_ruleNumber :: Lens' CreateTrafficMirrorFilterRule Int
- createTrafficMirrorFilterRule_ruleAction :: Lens' CreateTrafficMirrorFilterRule TrafficMirrorRuleAction
- createTrafficMirrorFilterRule_destinationCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text
- createTrafficMirrorFilterRule_sourceCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text
- data CreateTrafficMirrorFilterRuleResponse = CreateTrafficMirrorFilterRuleResponse' {}
- newCreateTrafficMirrorFilterRuleResponse :: Int -> CreateTrafficMirrorFilterRuleResponse
- createTrafficMirrorFilterRuleResponse_clientToken :: Lens' CreateTrafficMirrorFilterRuleResponse (Maybe Text)
- createTrafficMirrorFilterRuleResponse_trafficMirrorFilterRule :: Lens' CreateTrafficMirrorFilterRuleResponse (Maybe TrafficMirrorFilterRule)
- createTrafficMirrorFilterRuleResponse_httpStatus :: Lens' CreateTrafficMirrorFilterRuleResponse Int
Creating a Request
data CreateTrafficMirrorFilterRule Source #
See: newCreateTrafficMirrorFilterRule
smart constructor.
CreateTrafficMirrorFilterRule' | |
|
Instances
newCreateTrafficMirrorFilterRule Source #
:: Text | |
-> TrafficDirection | |
-> Int | |
-> TrafficMirrorRuleAction | |
-> Text | |
-> Text | |
-> CreateTrafficMirrorFilterRule |
Create a value of CreateTrafficMirrorFilterRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to ensure idempotency.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_description
- The description of the Traffic Mirror rule.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_destinationPortRange
- The destination port range.
$sel:dryRun:CreateTrafficMirrorFilterRule'
, createTrafficMirrorFilterRule_dryRun
- 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
.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_protocol
- 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.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_sourcePortRange
- The source port range.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_trafficMirrorFilterId
- The ID of the filter that this rule is associated with.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_trafficDirection
- The type of traffic.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_ruleNumber
- 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.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_ruleAction
- The action to take on the filtered traffic.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_destinationCidrBlock
- The destination CIDR block to assign to the Traffic Mirror rule.
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRule_sourceCidrBlock
- The source CIDR block to assign to the Traffic Mirror rule.
Request Lenses
createTrafficMirrorFilterRule_clientToken :: Lens' CreateTrafficMirrorFilterRule (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
createTrafficMirrorFilterRule_description :: Lens' CreateTrafficMirrorFilterRule (Maybe Text) Source #
The description of the Traffic Mirror rule.
createTrafficMirrorFilterRule_destinationPortRange :: Lens' CreateTrafficMirrorFilterRule (Maybe TrafficMirrorPortRangeRequest) Source #
The destination port range.
createTrafficMirrorFilterRule_dryRun :: Lens' CreateTrafficMirrorFilterRule (Maybe Bool) Source #
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
.
createTrafficMirrorFilterRule_protocol :: Lens' CreateTrafficMirrorFilterRule (Maybe Int) Source #
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.
createTrafficMirrorFilterRule_sourcePortRange :: Lens' CreateTrafficMirrorFilterRule (Maybe TrafficMirrorPortRangeRequest) Source #
The source port range.
createTrafficMirrorFilterRule_trafficMirrorFilterId :: Lens' CreateTrafficMirrorFilterRule Text Source #
The ID of the filter that this rule is associated with.
createTrafficMirrorFilterRule_trafficDirection :: Lens' CreateTrafficMirrorFilterRule TrafficDirection Source #
The type of traffic.
createTrafficMirrorFilterRule_ruleNumber :: Lens' CreateTrafficMirrorFilterRule Int Source #
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.
createTrafficMirrorFilterRule_ruleAction :: Lens' CreateTrafficMirrorFilterRule TrafficMirrorRuleAction Source #
The action to take on the filtered traffic.
createTrafficMirrorFilterRule_destinationCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text Source #
The destination CIDR block to assign to the Traffic Mirror rule.
createTrafficMirrorFilterRule_sourceCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text Source #
The source CIDR block to assign to the Traffic Mirror rule.
Destructuring the Response
data CreateTrafficMirrorFilterRuleResponse Source #
See: newCreateTrafficMirrorFilterRuleResponse
smart constructor.
CreateTrafficMirrorFilterRuleResponse' | |
|
Instances
newCreateTrafficMirrorFilterRuleResponse Source #
Create a value of CreateTrafficMirrorFilterRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateTrafficMirrorFilterRule
, createTrafficMirrorFilterRuleResponse_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to ensure idempotency.
$sel:trafficMirrorFilterRule:CreateTrafficMirrorFilterRuleResponse'
, createTrafficMirrorFilterRuleResponse_trafficMirrorFilterRule
- The Traffic Mirror rule.
$sel:httpStatus:CreateTrafficMirrorFilterRuleResponse'
, createTrafficMirrorFilterRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createTrafficMirrorFilterRuleResponse_clientToken :: Lens' CreateTrafficMirrorFilterRuleResponse (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
createTrafficMirrorFilterRuleResponse_trafficMirrorFilterRule :: Lens' CreateTrafficMirrorFilterRuleResponse (Maybe TrafficMirrorFilterRule) Source #
The Traffic Mirror rule.
createTrafficMirrorFilterRuleResponse_httpStatus :: Lens' CreateTrafficMirrorFilterRuleResponse Int Source #
The response's http status code.