Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Closes a tunnel identified by the unique tunnel id. When a CloseTunnel
request is received, we close the WebSocket connections between the
client and proxy server so no data can be transmitted.
Synopsis
- data CloseTunnel = CloseTunnel' {}
- newCloseTunnel :: Text -> CloseTunnel
- closeTunnel_delete :: Lens' CloseTunnel (Maybe Bool)
- closeTunnel_tunnelId :: Lens' CloseTunnel Text
- data CloseTunnelResponse = CloseTunnelResponse' {
- httpStatus :: Int
- newCloseTunnelResponse :: Int -> CloseTunnelResponse
- closeTunnelResponse_httpStatus :: Lens' CloseTunnelResponse Int
Creating a Request
data CloseTunnel Source #
See: newCloseTunnel
smart constructor.
Instances
Create a value of CloseTunnel
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:delete':CloseTunnel'
, closeTunnel_delete
- When set to true, AWS IoT Secure Tunneling deletes the tunnel data
immediately.
$sel:tunnelId:CloseTunnel'
, closeTunnel_tunnelId
- The ID of the tunnel to close.
Request Lenses
closeTunnel_delete :: Lens' CloseTunnel (Maybe Bool) Source #
When set to true, AWS IoT Secure Tunneling deletes the tunnel data immediately.
closeTunnel_tunnelId :: Lens' CloseTunnel Text Source #
The ID of the tunnel to close.
Destructuring the Response
data CloseTunnelResponse Source #
See: newCloseTunnelResponse
smart constructor.
CloseTunnelResponse' | |
|
Instances
newCloseTunnelResponse Source #
Create a value of CloseTunnelResponse
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:httpStatus:CloseTunnelResponse'
, closeTunnelResponse_httpStatus
- The response's http status code.
Response Lenses
closeTunnelResponse_httpStatus :: Lens' CloseTunnelResponse Int Source #
The response's http status code.