| 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 |
Amazonka.IoTSecureTunneling.CloseTunnel
Description
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.
Requires permission to access the CloseTunnel action.
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.
Constructors
| CloseTunnel' | |
Instances
Arguments
| :: Text | |
| -> CloseTunnel |
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, IoT Secure Tunneling deletes the tunnel data
immediately.
CloseTunnel, closeTunnel_tunnelId - The ID of the tunnel to close.
Request Lenses
closeTunnel_delete :: Lens' CloseTunnel (Maybe Bool) Source #
When set to true, 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.
Constructors
| CloseTunnelResponse' | |
Fields
| |
Instances
newCloseTunnelResponse Source #
Arguments
| :: Int | |
| -> CloseTunnelResponse |
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.