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 |
Deletes the specified Traffic Mirror session.
Synopsis
- data DeleteTrafficMirrorSession = DeleteTrafficMirrorSession' {}
- newDeleteTrafficMirrorSession :: Text -> DeleteTrafficMirrorSession
- deleteTrafficMirrorSession_dryRun :: Lens' DeleteTrafficMirrorSession (Maybe Bool)
- deleteTrafficMirrorSession_trafficMirrorSessionId :: Lens' DeleteTrafficMirrorSession Text
- data DeleteTrafficMirrorSessionResponse = DeleteTrafficMirrorSessionResponse' {}
- newDeleteTrafficMirrorSessionResponse :: Int -> DeleteTrafficMirrorSessionResponse
- deleteTrafficMirrorSessionResponse_trafficMirrorSessionId :: Lens' DeleteTrafficMirrorSessionResponse (Maybe Text)
- deleteTrafficMirrorSessionResponse_httpStatus :: Lens' DeleteTrafficMirrorSessionResponse Int
Creating a Request
data DeleteTrafficMirrorSession Source #
See: newDeleteTrafficMirrorSession
smart constructor.
DeleteTrafficMirrorSession' | |
|
Instances
newDeleteTrafficMirrorSession Source #
Create a value of DeleteTrafficMirrorSession
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:dryRun:DeleteTrafficMirrorSession'
, deleteTrafficMirrorSession_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
.
DeleteTrafficMirrorSession
, deleteTrafficMirrorSession_trafficMirrorSessionId
- The ID of the Traffic Mirror session.
Request Lenses
deleteTrafficMirrorSession_dryRun :: Lens' DeleteTrafficMirrorSession (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
.
deleteTrafficMirrorSession_trafficMirrorSessionId :: Lens' DeleteTrafficMirrorSession Text Source #
The ID of the Traffic Mirror session.
Destructuring the Response
data DeleteTrafficMirrorSessionResponse Source #
See: newDeleteTrafficMirrorSessionResponse
smart constructor.
DeleteTrafficMirrorSessionResponse' | |
|
Instances
Generic DeleteTrafficMirrorSessionResponse Source # | |
Read DeleteTrafficMirrorSessionResponse Source # | |
Show DeleteTrafficMirrorSessionResponse Source # | |
NFData DeleteTrafficMirrorSessionResponse Source # | |
Defined in Amazonka.EC2.DeleteTrafficMirrorSession rnf :: DeleteTrafficMirrorSessionResponse -> () # | |
Eq DeleteTrafficMirrorSessionResponse Source # | |
type Rep DeleteTrafficMirrorSessionResponse Source # | |
Defined in Amazonka.EC2.DeleteTrafficMirrorSession type Rep DeleteTrafficMirrorSessionResponse = D1 ('MetaData "DeleteTrafficMirrorSessionResponse" "Amazonka.EC2.DeleteTrafficMirrorSession" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteTrafficMirrorSessionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trafficMirrorSessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteTrafficMirrorSessionResponse Source #
Create a value of DeleteTrafficMirrorSessionResponse
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:
DeleteTrafficMirrorSession
, deleteTrafficMirrorSessionResponse_trafficMirrorSessionId
- The ID of the deleted Traffic Mirror session.
$sel:httpStatus:DeleteTrafficMirrorSessionResponse'
, deleteTrafficMirrorSessionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteTrafficMirrorSessionResponse_trafficMirrorSessionId :: Lens' DeleteTrafficMirrorSessionResponse (Maybe Text) Source #
The ID of the deleted Traffic Mirror session.
deleteTrafficMirrorSessionResponse_httpStatus :: Lens' DeleteTrafficMirrorSessionResponse Int Source #
The response's http status code.