CfnUserPoolSessionConfigurationAttachmentProps Struct
Properties for defining a CfnUserPoolSessionConfigurationAttachment.
| 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 cfnUserPoolSessionConfigurationAttachmentProps: cognito.CfnUserPoolSessionConfigurationAttachmentProps = {
tokenSession: {
maxPerUser: 123,
},
userPoolId: 'userPoolId',
userSessionTracking: 'userSessionTracking',
};
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
cfn_user_pool_session_configuration_attachment_props = cognito.CfnUserPoolSessionConfigurationAttachmentProps(
token_session=cognito.CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty(
max_per_user=123
),
user_pool_id="userPoolId",
user_session_tracking="userSessionTracking"
)
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.*;
CfnUserPoolSessionConfigurationAttachmentProps cfnUserPoolSessionConfigurationAttachmentProps = CfnUserPoolSessionConfigurationAttachmentProps.builder()
.tokenSession(TokenSessionProperty.builder()
.maxPerUser(123)
.build())
.userPoolId("userPoolId")
.userSessionTracking("userSessionTracking")
.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 cfnUserPoolSessionConfigurationAttachmentProps = new CfnUserPoolSessionConfigurationAttachmentProps {
TokenSession = new TokenSessionProperty {
MaxPerUser = 123
},
UserPoolId = "userPoolId",
UserSessionTracking = "userSessionTracking"
};
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"
cfnUserPoolSessionConfigurationAttachmentProps := &CfnUserPoolSessionConfigurationAttachmentProps{
TokenSession: &TokenSessionProperty{
MaxPerUser: jsii.Number(123),
},
UserPoolId: jsii.String("userPoolId"),
UserSessionTracking: jsii.String("userSessionTracking"),
}
Properties
tokenSessionIResolvable | CfnUserPoolSessionConfigurationAttachment.token_sessiontyping.Union[IResolvable, TokenSessionProperty]tokenSessionIResolvableTokenSessionIResolvableTokenSessioninterface{} required #Token session settings that apply to every app client in the user pool.
The ID of the user pool.
userSessionTrackingstringuser_session_trackingstruserSessionTrackingStringUserSessionTrackingstringUserSessionTracking*string required #Whether server-side user session tracking is enabled for the user pool.
Requires the ESSENTIALS or PLUS feature plan.