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 |
Retrieves the details of a gateway.
Synopsis
- data GetGateway = GetGateway' {
- gatewayArn :: Text
- newGetGateway :: Text -> GetGateway
- getGateway_gatewayArn :: Lens' GetGateway Text
- data GetGatewayResponse = GetGatewayResponse' {
- gateway :: Maybe Gateway
- httpStatus :: Int
- newGetGatewayResponse :: Int -> GetGatewayResponse
- getGatewayResponse_gateway :: Lens' GetGatewayResponse (Maybe Gateway)
- getGatewayResponse_httpStatus :: Lens' GetGatewayResponse Int
Creating a Request
data GetGateway Source #
See: newGetGateway
smart constructor.
GetGateway' | |
|
Instances
Create a value of GetGateway
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:gatewayArn:GetGateway'
, getGateway_gatewayArn
- The ARN of the gateway to get.
Request Lenses
getGateway_gatewayArn :: Lens' GetGateway Text Source #
The ARN of the gateway to get.
Destructuring the Response
data GetGatewayResponse Source #
See: newGetGatewayResponse
smart constructor.
GetGatewayResponse' | |
|
Instances
newGetGatewayResponse Source #
Create a value of GetGatewayResponse
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:gateway:GetGatewayResponse'
, getGatewayResponse_gateway
- The details of the gateway.
$sel:httpStatus:GetGatewayResponse'
, getGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
getGatewayResponse_gateway :: Lens' GetGatewayResponse (Maybe Gateway) Source #
The details of the gateway.
getGatewayResponse_httpStatus :: Lens' GetGatewayResponse Int Source #
The response's http status code.