deleteHost method
The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.
May throw ResourceNotFoundException.
May throw ResourceUnavailableException.
Parameter hostArn :
The Amazon Resource Name (ARN) of the host to be deleted.
Implementation
Future<void> deleteHost({
required String hostArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'CodeStar_connections_20191201.DeleteHost'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'HostArn': hostArn,
},
);
}