deleteConnection method
Deletes the specified connection in your global network.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter connectionId :
The ID of the connection.
Parameter globalNetworkId :
The ID of the global network.
Implementation
Future<DeleteConnectionResponse> deleteConnection({
required String connectionId,
required String globalNetworkId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/global-networks/${Uri.encodeComponent(globalNetworkId)}/connections/${Uri.encodeComponent(connectionId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteConnectionResponse.fromJson(response);
}