startGateway method
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. To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.
May throw InvalidGatewayRequestException. May throw InternalServerError.
Implementation
Future<StartGatewayOutput> startGateway({
required String gatewayARN,
}) async {
ArgumentError.checkNotNull(gatewayARN, 'gatewayARN');
_s.validateStringLength(
'gatewayARN',
gatewayARN,
50,
500,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StorageGateway_20130630.StartGateway'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GatewayARN': gatewayARN,
},
);
return StartGatewayOutput.fromJson(jsonResponse.body);
}