setUserPoolClientSessionConfiguration

Sets the session configuration for a user pool app client. The configurable client-level setting is the maximum validity period for silent reuse of an SSO session. This operation performs a full replacement of the client-level session configuration; every request parameter is required, and session tracking must be enabled for the user pool. The user pool must be in the Essentials or Plus tier. Otherwise, this operation returns a FeatureUnavailableInTierException.

Samples

// The following example configures an app client to silently reuse an SSO session for up to 43200
// minutes (30 days) since the last authentication before requiring the user to sign in again.
val resp = cognitoIdentityProviderClient.setUserPoolClientSessionConfiguration {
    userPoolId = "us-east-1_EXAMPLE"
    clientId = "1example23456789"
    ssoSession = ClientSsoSessionConfigType {
        maxValidityMinutes = 43200
    }
}