deregisterTransitGateway method

Future<DeregisterTransitGatewayResponse> deregisterTransitGateway({
  1. required String globalNetworkId,
  2. required String transitGatewayArn,
})

Deregisters a transit gateway from your global network. This action does not delete your transit gateway, or modify any of its attachments. This action removes any customer gateway associations.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter globalNetworkId : The ID of the global network.

Parameter transitGatewayArn : The Amazon Resource Name (ARN) of the transit gateway.

Implementation

Future<DeregisterTransitGatewayResponse> deregisterTransitGateway({
  required String globalNetworkId,
  required String transitGatewayArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/global-networks/${Uri.encodeComponent(globalNetworkId)}/transit-gateway-registrations/${Uri.encodeComponent(transitGatewayArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeregisterTransitGatewayResponse.fromJson(response);
}