# ClientAffinity

Client affinity gives you control over whether to always route each client to the same specific endpoint.

- Source: [`aws-globalaccelerator/lib/listener.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-globalaccelerator/lib/listener.ts#L106)

## Members

| Member | Description |
| --- | --- |
| `NONE` | Route traffic based on the 5-tuple `(source IP, source port, destination IP, destination port, protocol)`. |
| `SOURCE_IP` | Route traffic based on the 2-tuple `(source IP, destination IP)`. |

## Referenced by

- [`ListenerOptions`](/v2/docs/aws-cdk-lib.aws_globalaccelerator.ListenerOptions).clientAffinity
