deleteGateway method

Future<DeleteGatewayOutput> deleteGateway({
  1. required String gatewayArn,
})

Deletes a backup gateway.

May throw ResourceNotFoundException.

Parameter gatewayArn : The Amazon Resource Name (ARN) of the gateway to delete.

Implementation

Future<DeleteGatewayOutput> deleteGateway({
  required String gatewayArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'BackupOnPremises_v20210101.DeleteGateway'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GatewayArn': gatewayArn,
    },
  );

  return DeleteGatewayOutput.fromJson(jsonResponse.body);
}