disassociateCustomerGateway method
Disassociates a customer gateway from a device and a link.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter customerGatewayArn :
The Amazon Resource Name (ARN) of the customer gateway.
Parameter globalNetworkId :
The ID of the global network.
Implementation
Future<DisassociateCustomerGatewayResponse> disassociateCustomerGateway({
required String customerGatewayArn,
required String globalNetworkId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/global-networks/${Uri.encodeComponent(globalNetworkId)}/customer-gateway-associations/${Uri.encodeComponent(customerGatewayArn)}',
exceptionFnMap: _exceptionFns,
);
return DisassociateCustomerGatewayResponse.fromJson(response);
}