// Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request
// is received, we close the WebSocket connections between the client and proxy
// server so no data can be transmitted.
Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request
is received, we close the WebSocket connections between the client and proxy
server so no data can be transmitted.
// Closes a tunnel identified by the unique tunnel id . When a CloseTunnel request // is received we close the WebSocket connections between the client and proxy // server so no data can be transmitted .
func (c *Client) CloseTunnel(ctx context.Context, params *CloseTunnelInput, optFns ...func(*Options)) (*CloseTunnelOutput, error) {
	if params == nil {
		params = &CloseTunnelInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CloseTunnel", params, optFns, addOperationCloseTunnelMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CloseTunnelOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CloseTunnel ( ctx context . Context , params * CloseTunnelInput , optFns ... func ( * Options ) ) ( * CloseTunnelOutput , error ) { if params == nil { params = & CloseTunnelInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCloseTunnelMiddlewares ) if err != nil { return nil , err } out := result . ( * CloseTunnelOutput ) out . ResultMetadata = metadata return out , nil }
Closes a tunnel identified by the unique tunnel id.
Closes a tunnel identified by the unique tunnel id .