getGateway method
By providing the ARN (Amazon Resource Name), this API returns the gateway.
May throw ResourceNotFoundException.
Parameter gatewayArn :
The Amazon Resource Name (ARN) of the gateway.
Implementation
Future<GetGatewayOutput> getGateway({
required String gatewayArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'BackupOnPremises_v20210101.GetGateway'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'GatewayArn': gatewayArn,
},
);
return GetGatewayOutput.fromJson(jsonResponse.body);
}