deleteDirectConnectGateway method
Future<DeleteDirectConnectGatewayResult>
deleteDirectConnectGateway({
- required String directConnectGatewayId,
Deletes the specified Direct Connect gateway. You must first delete all virtual interfaces that are attached to the Direct Connect gateway and disassociate all virtual private gateways associated with the Direct Connect gateway.
May throw DirectConnectServerException. May throw DirectConnectClientException.
Parameter directConnectGatewayId
:
The ID of the Direct Connect gateway.
Implementation
Future<DeleteDirectConnectGatewayResult> deleteDirectConnectGateway({
required String directConnectGatewayId,
}) async {
ArgumentError.checkNotNull(
directConnectGatewayId, 'directConnectGatewayId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.DeleteDirectConnectGateway'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'directConnectGatewayId': directConnectGatewayId,
},
);
return DeleteDirectConnectGatewayResult.fromJson(jsonResponse.body);
}