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 |
Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT Secure Tunneling proxy server.
Synopsis
- data OpenTunnel = OpenTunnel' {}
- newOpenTunnel :: OpenTunnel
- openTunnel_destinationConfig :: Lens' OpenTunnel (Maybe DestinationConfig)
- openTunnel_description :: Lens' OpenTunnel (Maybe Text)
- openTunnel_timeoutConfig :: Lens' OpenTunnel (Maybe TimeoutConfig)
- openTunnel_tags :: Lens' OpenTunnel (Maybe (NonEmpty Tag))
- data OpenTunnelResponse = OpenTunnelResponse' {}
- newOpenTunnelResponse :: Int -> OpenTunnelResponse
- openTunnelResponse_sourceAccessToken :: Lens' OpenTunnelResponse (Maybe Text)
- openTunnelResponse_tunnelArn :: Lens' OpenTunnelResponse (Maybe Text)
- openTunnelResponse_destinationAccessToken :: Lens' OpenTunnelResponse (Maybe Text)
- openTunnelResponse_tunnelId :: Lens' OpenTunnelResponse (Maybe Text)
- openTunnelResponse_httpStatus :: Lens' OpenTunnelResponse Int
Creating a Request
data OpenTunnel Source #
See: newOpenTunnel
smart constructor.
OpenTunnel' | |
|
Instances
newOpenTunnel :: OpenTunnel Source #
Create a value of OpenTunnel
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:destinationConfig:OpenTunnel'
, openTunnel_destinationConfig
- The destination configuration for the OpenTunnel request.
$sel:description:OpenTunnel'
, openTunnel_description
- A short text description of the tunnel.
$sel:timeoutConfig:OpenTunnel'
, openTunnel_timeoutConfig
- Timeout configuration for a tunnel.
$sel:tags:OpenTunnel'
, openTunnel_tags
- A collection of tag metadata.
Request Lenses
openTunnel_destinationConfig :: Lens' OpenTunnel (Maybe DestinationConfig) Source #
The destination configuration for the OpenTunnel request.
openTunnel_description :: Lens' OpenTunnel (Maybe Text) Source #
A short text description of the tunnel.
openTunnel_timeoutConfig :: Lens' OpenTunnel (Maybe TimeoutConfig) Source #
Timeout configuration for a tunnel.
openTunnel_tags :: Lens' OpenTunnel (Maybe (NonEmpty Tag)) Source #
A collection of tag metadata.
Destructuring the Response
data OpenTunnelResponse Source #
See: newOpenTunnelResponse
smart constructor.
OpenTunnelResponse' | |
|
Instances
newOpenTunnelResponse Source #
Create a value of OpenTunnelResponse
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:sourceAccessToken:OpenTunnelResponse'
, openTunnelResponse_sourceAccessToken
- The access token the source local proxy uses to connect to AWS IoT
Secure Tunneling.
$sel:tunnelArn:OpenTunnelResponse'
, openTunnelResponse_tunnelArn
- The Amazon Resource Name for the tunnel. The tunnel ARN format is
arn:aws:tunnel:<region>:<account-id>:tunnel/<tunnel-id>
$sel:destinationAccessToken:OpenTunnelResponse'
, openTunnelResponse_destinationAccessToken
- The access token the destination local proxy uses to connect to AWS IoT
Secure Tunneling.
$sel:tunnelId:OpenTunnelResponse'
, openTunnelResponse_tunnelId
- A unique alpha-numeric tunnel ID.
$sel:httpStatus:OpenTunnelResponse'
, openTunnelResponse_httpStatus
- The response's http status code.
Response Lenses
openTunnelResponse_sourceAccessToken :: Lens' OpenTunnelResponse (Maybe Text) Source #
The access token the source local proxy uses to connect to AWS IoT Secure Tunneling.
openTunnelResponse_tunnelArn :: Lens' OpenTunnelResponse (Maybe Text) Source #
The Amazon Resource Name for the tunnel. The tunnel ARN format is
arn:aws:tunnel:<region>:<account-id>:tunnel/<tunnel-id>
openTunnelResponse_destinationAccessToken :: Lens' OpenTunnelResponse (Maybe Text) Source #
The access token the destination local proxy uses to connect to AWS IoT Secure Tunneling.
openTunnelResponse_tunnelId :: Lens' OpenTunnelResponse (Maybe Text) Source #
A unique alpha-numeric tunnel ID.
openTunnelResponse_httpStatus :: Lens' OpenTunnelResponse Int Source #
The response's http status code.