interface TokenValidityUnitsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Cognito.Mixins.CfnUserPoolClientPropsMixin.TokenValidityUnitsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscognito/mixins#CfnUserPoolClientPropsMixin_TokenValidityUnitsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolClientPropsMixin.TokenValidityUnitsProperty |
Python | aws_cdk.mixins_preview.aws_cognito.mixins.CfnUserPoolClientPropsMixin.TokenValidityUnitsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cognito » mixins » CfnUserPoolClientPropsMixin » TokenValidityUnitsProperty |
The units that validity times are represented in.
The default unit for refresh tokens is days, and the default for ID and access tokens are hours.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cognito_mixins } from '@aws-cdk/mixins-preview/aws-cognito';
const tokenValidityUnitsProperty: cognito_mixins.CfnUserPoolClientPropsMixin.TokenValidityUnitsProperty = {
accessToken: 'accessToken',
idToken: 'idToken',
refreshToken: 'refreshToken',
};
Properties
| Name | Type | Description |
|---|---|---|
| access | string | A time unit for the value that you set in the AccessTokenValidity parameter. |
| id | string | A time unit for the value that you set in the IdTokenValidity parameter. |
| refresh | string | A time unit for the value that you set in the RefreshTokenValidity parameter. |
accessToken?
Type:
string
(optional)
A time unit for the value that you set in the AccessTokenValidity parameter.
The default AccessTokenValidity time unit is hours . AccessTokenValidity duration can range from five minutes to one day.
idToken?
Type:
string
(optional)
A time unit for the value that you set in the IdTokenValidity parameter.
The default IdTokenValidity time unit is hours . IdTokenValidity duration can range from five minutes to one day.
refreshToken?
Type:
string
(optional)
A time unit for the value that you set in the RefreshTokenValidity parameter.
The default RefreshTokenValidity time unit is days . RefreshTokenValidity duration can range from 60 minutes to 10 years.

.NET
Go
Java
Python
TypeScript