Class CfnUserPoolClient.TokenValidityUnitsProperty
The time units you use when you set the duration of ID, access, and refresh tokens.
Inheritance
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TokenValidityUnitsProperty : Object, CfnUserPoolClient.ITokenValidityUnitsProperty
Syntax (vb)
Public Class TokenValidityUnitsProperty
Inherits Object
Implements CfnUserPoolClient.ITokenValidityUnitsProperty
Remarks
The default unit for RefreshToken is days, and the default for ID and access tokens is hours.
ExampleMetadata: fixture=_generated
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"
};
Synopsis
Constructors
TokenValidityUnitsProperty() |
Properties
AccessToken | A time unit of |
IdToken | A time unit of |
RefreshToken | A time unit of |
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
System.String
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
System.String
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
System.String
Remarks
The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.