# TokenSessionProperty

Token session settings that apply to every app client in the user pool.

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const tokenSessionProperty: cognito.CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty = {
  maxPerUser: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

token_session_property = cognito.CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty(
    max_per_user=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

TokenSessionProperty tokenSessionProperty = TokenSessionProperty.builder()
        .maxPerUser(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var tokenSessionProperty = new TokenSessionProperty {
    MaxPerUser = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

tokenSessionProperty := &TokenSessionProperty{
	MaxPerUser: jsii.Number(123),
}
```

## Properties

- `maxPerUser`: number (required) — The maximum number of concurrent token sessions per user across all app clients.

  When a new session would exceed this number, the least recently used session ends.
