deleteServer method
Deletes the file transfer protocol-enabled server that you specify.
No response returns from this operation.
May throw AccessDeniedException. May throw ServiceUnavailableException. May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException.
Parameter serverId
:
A unique system-assigned identifier for a server instance.
Implementation
Future<void> deleteServer({
required String serverId,
}) async {
ArgumentError.checkNotNull(serverId, 'serverId');
_s.validateStringLength(
'serverId',
serverId,
19,
19,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'TransferService.DeleteServer'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ServerId': serverId,
},
);
}