Class CfnUserPoolClient.TokenValidityUnitsProperty
The time units you use when you set the duration of ID, access, and refresh tokens.
public class CfnUserPoolClient.TokenValidityUnitsProperty : CfnUserPoolClient.ITokenValidityUnitsProperty
- Inheritance
-
CfnUserPoolClient.TokenValidityUnitsProperty
- Implements
- Inherited Members
Examples
// 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 tokenValidityUnitsProperty = new TokenValidityUnitsProperty {
AccessToken = "accessToken",
IdToken = "idToken",
RefreshToken = "refreshToken"
};
Remarks
The default unit for RefreshToken is days, and the default for ID and access tokens is hours.
ExampleMetadata: fixture=_generated
Constructors
TokenValidityUnitsProperty()
public TokenValidityUnitsProperty()
Properties
AccessToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter.
public string? AccessToken { get; set; }
Property Value
Remarks
The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
IdToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter.
public string? IdToken { get; set; }
Property Value
Remarks
The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
RefreshToken
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter.
public string? RefreshToken { get; set; }
Property Value
Remarks
The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.