AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.

Inheritance Hierarchy

System.Object
  Amazon.CognitoIdentityProvider.Model.TokenValidityUnitsType

Namespace: Amazon.CognitoIdentityProvider.Model
Assembly: AWSSDK.CognitoIdentityProvider.dll
Version: 3.x.y.z

Syntax

C#
public class TokenValidityUnitsType

The TokenValidityUnitsType type exposes the following members

Constructors

NameDescription
Public Method TokenValidityUnitsType()

Properties

NameTypeDescription
Public Property AccessToken Amazon.CognitoIdentityProvider.TimeUnitsType

Gets and sets the property AccessToken.

A time unit of seconds, minutes, hours, or days 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.

Public Property IdToken Amazon.CognitoIdentityProvider.TimeUnitsType

Gets and sets the property IdToken.

A time unit of seconds, minutes, hours, or days 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.

Public Property RefreshToken Amazon.CognitoIdentityProvider.TimeUnitsType

Gets and sets the property RefreshToken.

A time unit of seconds, minutes, hours, or days 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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5