| 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.DescribeTunnel
Description
Gets information about a tunnel identified by the unique tunnel id.
Requires permission to access the DescribeTunnel action.
Synopsis
- data DescribeTunnel = DescribeTunnel' {}
- newDescribeTunnel :: Text -> DescribeTunnel
- describeTunnel_tunnelId :: Lens' DescribeTunnel Text
- data DescribeTunnelResponse = DescribeTunnelResponse' {
- tunnel :: Maybe Tunnel
- httpStatus :: Int
- newDescribeTunnelResponse :: Int -> DescribeTunnelResponse
- describeTunnelResponse_tunnel :: Lens' DescribeTunnelResponse (Maybe Tunnel)
- describeTunnelResponse_httpStatus :: Lens' DescribeTunnelResponse Int
Creating a Request
data DescribeTunnel Source #
See: newDescribeTunnel smart constructor.
Constructors
| DescribeTunnel' | |
Instances
Arguments
| :: Text | |
| -> DescribeTunnel |
Create a value of DescribeTunnel 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:
DescribeTunnel, describeTunnel_tunnelId - The tunnel to describe.
Request Lenses
describeTunnel_tunnelId :: Lens' DescribeTunnel Text Source #
The tunnel to describe.
Destructuring the Response
data DescribeTunnelResponse Source #
See: newDescribeTunnelResponse smart constructor.
Constructors
| DescribeTunnelResponse' | |
Fields
| |
Instances
newDescribeTunnelResponse Source #
Create a value of DescribeTunnelResponse 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:tunnel:DescribeTunnelResponse', describeTunnelResponse_tunnel - The tunnel being described.
$sel:httpStatus:DescribeTunnelResponse', describeTunnelResponse_httpStatus - The response's http status code.
Response Lenses
describeTunnelResponse_tunnel :: Lens' DescribeTunnelResponse (Maybe Tunnel) Source #
The tunnel being described.
describeTunnelResponse_httpStatus :: Lens' DescribeTunnelResponse Int Source #
The response's http status code.