deleteLocation method
Deletes the configuration of a location used by AWS DataSync.
May throw InvalidRequestException. May throw InternalException.
Parameter locationArn
:
The Amazon Resource Name (ARN) of the location to delete.
Implementation
Future<void> deleteLocation({
required String locationArn,
}) async {
ArgumentError.checkNotNull(locationArn, 'locationArn');
_s.validateStringLength(
'locationArn',
locationArn,
0,
128,
isRequired: true,
);
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,
},
);
}