deleteLocation method

Future<void> deleteLocation({
  1. required String locationArn,
})

Deletes a transfer location resource from DataSync.

May throw InternalException. May throw InvalidRequestException.

Parameter locationArn : The Amazon Resource Name (ARN) of the location to delete.

Implementation

Future<void> deleteLocation({
  required String locationArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'FmrsService.DeleteLocation'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LocationArn': locationArn,
    },
  );
}