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 |
Starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.
When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.
To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.
Synopsis
- data StartGateway = StartGateway' {
- gatewayARN :: Text
- newStartGateway :: Text -> StartGateway
- startGateway_gatewayARN :: Lens' StartGateway Text
- data StartGatewayResponse = StartGatewayResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newStartGatewayResponse :: Int -> StartGatewayResponse
- startGatewayResponse_gatewayARN :: Lens' StartGatewayResponse (Maybe Text)
- startGatewayResponse_httpStatus :: Lens' StartGatewayResponse Int
Creating a Request
data StartGateway Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway to start.
See: newStartGateway
smart constructor.
Instances
Create a value of StartGateway
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:
StartGateway
, startGateway_gatewayARN
- Undocumented member.
Request Lenses
startGateway_gatewayARN :: Lens' StartGateway Text Source #
Undocumented member.
Destructuring the Response
data StartGatewayResponse Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway that was restarted.
See: newStartGatewayResponse
smart constructor.
StartGatewayResponse' | |
|
Instances
newStartGatewayResponse Source #
Create a value of StartGatewayResponse
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:
StartGateway
, startGatewayResponse_gatewayARN
- Undocumented member.
$sel:httpStatus:StartGatewayResponse'
, startGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
startGatewayResponse_gatewayARN :: Lens' StartGatewayResponse (Maybe Text) Source #
Undocumented member.
startGatewayResponse_httpStatus :: Lens' StartGatewayResponse Int Source #
The response's http status code.