@Stability(value=Stable)
public static interface CfnUserPoolClient.TokenValidityUnitsProperty
extends software.amazon.jsii.JsiiSerializable
The default unit for RefreshToken is days, and the default for ID and access tokens is hours.
Example:
// 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.*;
TokenValidityUnitsProperty tokenValidityUnitsProperty = TokenValidityUnitsProperty.builder()
.accessToken("accessToken")
.idToken("idToken")
.refreshToken("refreshToken")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnUserPoolClient.TokenValidityUnitsProperty.Builder
A builder for
CfnUserPoolClient.TokenValidityUnitsProperty |
static class |
CfnUserPoolClient.TokenValidityUnitsProperty.Jsii$Proxy
An implementation for
CfnUserPoolClient.TokenValidityUnitsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnUserPoolClient.TokenValidityUnitsProperty.Builder |
builder() |
default String |
getAccessToken()
A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the `AccessTokenValidity` parameter.
|
default String |
getIdToken()
A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the `IdTokenValidity` parameter.
|
default String |
getRefreshToken()
A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the `RefreshTokenValidity` parameter.
|
@Stability(value=Stable) @Nullable default String getAccessToken()
The default AccessTokenValidity time unit is hours.
@Stability(value=Stable) @Nullable default String getIdToken()
The default IdTokenValidity time unit is hours.
@Stability(value=Stable) @Nullable default String getRefreshToken()
The default RefreshTokenValidity time unit is days.
@Stability(value=Stable) static CfnUserPoolClient.TokenValidityUnitsProperty.Builder builder()
Copyright © 2022. All rights reserved.