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