Table of Contents

Class CfnUserPoolClient.TokenValidityUnitsProperty

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html

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

string

Remarks

The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-accesstoken

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

string

Remarks

The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-idtoken

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

string

Remarks

The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-refreshtoken