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 |
Modifies a Traffic Mirror session.
Synopsis
- data ModifyTrafficMirrorSession = ModifyTrafficMirrorSession' {}
- newModifyTrafficMirrorSession :: Text -> ModifyTrafficMirrorSession
- modifyTrafficMirrorSession_description :: Lens' ModifyTrafficMirrorSession (Maybe Text)
- modifyTrafficMirrorSession_dryRun :: Lens' ModifyTrafficMirrorSession (Maybe Bool)
- modifyTrafficMirrorSession_packetLength :: Lens' ModifyTrafficMirrorSession (Maybe Int)
- modifyTrafficMirrorSession_removeFields :: Lens' ModifyTrafficMirrorSession (Maybe [TrafficMirrorSessionField])
- modifyTrafficMirrorSession_sessionNumber :: Lens' ModifyTrafficMirrorSession (Maybe Int)
- modifyTrafficMirrorSession_trafficMirrorFilterId :: Lens' ModifyTrafficMirrorSession (Maybe Text)
- modifyTrafficMirrorSession_trafficMirrorTargetId :: Lens' ModifyTrafficMirrorSession (Maybe Text)
- modifyTrafficMirrorSession_virtualNetworkId :: Lens' ModifyTrafficMirrorSession (Maybe Int)
- modifyTrafficMirrorSession_trafficMirrorSessionId :: Lens' ModifyTrafficMirrorSession Text
- data ModifyTrafficMirrorSessionResponse = ModifyTrafficMirrorSessionResponse' {}
- newModifyTrafficMirrorSessionResponse :: Int -> ModifyTrafficMirrorSessionResponse
- modifyTrafficMirrorSessionResponse_trafficMirrorSession :: Lens' ModifyTrafficMirrorSessionResponse (Maybe TrafficMirrorSession)
- modifyTrafficMirrorSessionResponse_httpStatus :: Lens' ModifyTrafficMirrorSessionResponse Int
Creating a Request
data ModifyTrafficMirrorSession Source #
See: newModifyTrafficMirrorSession
smart constructor.
ModifyTrafficMirrorSession' | |
|
Instances
newModifyTrafficMirrorSession Source #
Create a value of ModifyTrafficMirrorSession
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:
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_description
- The description to assign to the Traffic Mirror session.
$sel:dryRun:ModifyTrafficMirrorSession'
, modifyTrafficMirrorSession_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
.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_packetLength
- 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.
$sel:removeFields:ModifyTrafficMirrorSession'
, modifyTrafficMirrorSession_removeFields
- 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.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_sessionNumber
- 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.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_trafficMirrorFilterId
- The ID of the Traffic Mirror filter.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_trafficMirrorTargetId
- The Traffic Mirror target. The target must be in the same VPC as the
source, or have a VPC peering connection with the source.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_virtualNetworkId
- The virtual network ID of the Traffic Mirror session.
ModifyTrafficMirrorSession
, modifyTrafficMirrorSession_trafficMirrorSessionId
- The ID of the Traffic Mirror session.
Request Lenses
modifyTrafficMirrorSession_description :: Lens' ModifyTrafficMirrorSession (Maybe Text) Source #
The description to assign to the Traffic Mirror session.
modifyTrafficMirrorSession_dryRun :: Lens' ModifyTrafficMirrorSession (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
.
modifyTrafficMirrorSession_packetLength :: Lens' ModifyTrafficMirrorSession (Maybe Int) Source #
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.
modifyTrafficMirrorSession_removeFields :: Lens' ModifyTrafficMirrorSession (Maybe [TrafficMirrorSessionField]) Source #
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.
modifyTrafficMirrorSession_sessionNumber :: Lens' ModifyTrafficMirrorSession (Maybe Int) Source #
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.
modifyTrafficMirrorSession_trafficMirrorFilterId :: Lens' ModifyTrafficMirrorSession (Maybe Text) Source #
The ID of the Traffic Mirror filter.
modifyTrafficMirrorSession_trafficMirrorTargetId :: Lens' ModifyTrafficMirrorSession (Maybe Text) Source #
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
modifyTrafficMirrorSession_virtualNetworkId :: Lens' ModifyTrafficMirrorSession (Maybe Int) Source #
The virtual network ID of the Traffic Mirror session.
modifyTrafficMirrorSession_trafficMirrorSessionId :: Lens' ModifyTrafficMirrorSession Text Source #
The ID of the Traffic Mirror session.
Destructuring the Response
data ModifyTrafficMirrorSessionResponse Source #
See: newModifyTrafficMirrorSessionResponse
smart constructor.
ModifyTrafficMirrorSessionResponse' | |
|
Instances
Generic ModifyTrafficMirrorSessionResponse Source # | |
Read ModifyTrafficMirrorSessionResponse Source # | |
Show ModifyTrafficMirrorSessionResponse Source # | |
NFData ModifyTrafficMirrorSessionResponse Source # | |
Defined in Amazonka.EC2.ModifyTrafficMirrorSession rnf :: ModifyTrafficMirrorSessionResponse -> () # | |
Eq ModifyTrafficMirrorSessionResponse Source # | |
type Rep ModifyTrafficMirrorSessionResponse Source # | |
Defined in Amazonka.EC2.ModifyTrafficMirrorSession type Rep ModifyTrafficMirrorSessionResponse = D1 ('MetaData "ModifyTrafficMirrorSessionResponse" "Amazonka.EC2.ModifyTrafficMirrorSession" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyTrafficMirrorSessionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trafficMirrorSession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficMirrorSession)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyTrafficMirrorSessionResponse Source #
Create a value of ModifyTrafficMirrorSessionResponse
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:
$sel:trafficMirrorSession:ModifyTrafficMirrorSessionResponse'
, modifyTrafficMirrorSessionResponse_trafficMirrorSession
- Information about the Traffic Mirror session.
$sel:httpStatus:ModifyTrafficMirrorSessionResponse'
, modifyTrafficMirrorSessionResponse_httpStatus
- The response's http status code.
Response Lenses
modifyTrafficMirrorSessionResponse_trafficMirrorSession :: Lens' ModifyTrafficMirrorSessionResponse (Maybe TrafficMirrorSession) Source #
Information about the Traffic Mirror session.
modifyTrafficMirrorSessionResponse_httpStatus :: Lens' ModifyTrafficMirrorSessionResponse Int Source #
The response's http status code.