Skip to content
v2.278.0

SSOSessionProperty Struct ​

Managed login single sign-on session settings for the app client.

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 sSOSessionProperty: cognito.CfnUserPoolClientSessionConfigurationAttachment.SSOSessionProperty = {
  maxValidityMinutes: 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

s_so_session_property = cognito.CfnUserPoolClientSessionConfigurationAttachment.SSOSessionProperty(
    max_validity_minutes=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.*;

SSOSessionProperty sSOSessionProperty = SSOSessionProperty.builder()
        .maxValidityMinutes(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 sSOSessionProperty = new SSOSessionProperty {
    MaxValidityMinutes = 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"

sSOSessionProperty := &SSOSessionProperty{
	MaxValidityMinutes: jsii.Number(123),
}

Properties ​

maxValidityMinutesnumbermax_validity_minutesint | floatmaxValidityMinutesNumberMaxValidityMinutesdoubleMaxValidityMinutes*float64 required #
The maximum time in minutes since the last authentication during which this app client can reuse an existing managed login SSO session without asking the user to sign in again.

0 means the app client always asks the user to sign in.