TokenSessionProperty Struct
Token session settings that apply to every app client in the user pool.
| Source |
|---|
Example
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
# 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
// 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();
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
};
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
maxPerUsernumbermax_per_userint | floatmaxPerUserNumberMaxPerUserdoubleMaxPerUser*float64 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.