deleteInterconnect method
Deletes the specified interconnect.
May throw DirectConnectServerException. May throw DirectConnectClientException.
Parameter interconnectId
:
The ID of the interconnect.
Implementation
Future<DeleteInterconnectResponse> deleteInterconnect({
required String interconnectId,
}) async {
ArgumentError.checkNotNull(interconnectId, 'interconnectId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.DeleteInterconnect'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'interconnectId': interconnectId,
},
);
return DeleteInterconnectResponse.fromJson(jsonResponse.body);
}