| 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.BackupGateway.GetGateway
Description
By providing the ARN (Amazon Resource Name), this API returns the gateway.
Synopsis
- data GetGateway = GetGateway' {
- gatewayArn :: Text
- newGetGateway :: Text -> GetGateway
- getGateway_gatewayArn :: Lens' GetGateway Text
- data GetGatewayResponse = GetGatewayResponse' {}
- newGetGatewayResponse :: Int -> GetGatewayResponse
- getGatewayResponse_gateway :: Lens' GetGatewayResponse (Maybe GatewayDetails)
- getGatewayResponse_httpStatus :: Lens' GetGatewayResponse Int
Creating a Request
data GetGateway Source #
See: newGetGateway smart constructor.
Constructors
| GetGateway' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetGateway |
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:
GetGateway, getGateway_gatewayArn - The Amazon Resource Name (ARN) of the gateway.
Request Lenses
getGateway_gatewayArn :: Lens' GetGateway Text Source #
The Amazon Resource Name (ARN) of the gateway.
Destructuring the Response
data GetGatewayResponse Source #
See: newGetGatewayResponse smart constructor.
Constructors
| GetGatewayResponse' | |
Fields
| |
Instances
newGetGatewayResponse Source #
Arguments
| :: Int | |
| -> GetGatewayResponse |
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 - By providing the ARN (Amazon Resource Name), this API returns the
gateway.
$sel:httpStatus:GetGatewayResponse', getGatewayResponse_httpStatus - The response's http status code.
Response Lenses
getGatewayResponse_gateway :: Lens' GetGatewayResponse (Maybe GatewayDetails) Source #
By providing the ARN (Amazon Resource Name), this API returns the gateway.
getGatewayResponse_httpStatus :: Lens' GetGatewayResponse Int Source #
The response's http status code.