amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Description

 
Synopsis

Documentation

data TokenValidityUnitsType Source #

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

See: newTokenValidityUnitsType smart constructor.

Constructors

TokenValidityUnitsType' 

Fields

  • accessToken :: Maybe TimeUnitsType

    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.

  • idToken :: Maybe TimeUnitsType

    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.

  • refreshToken :: Maybe TimeUnitsType

    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.

Instances

Instances details
FromJSON TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

ToJSON TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Generic TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Associated Types

type Rep TokenValidityUnitsType :: Type -> Type #

Read TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Show TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

NFData TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Methods

rnf :: TokenValidityUnitsType -> () #

Eq TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Hashable TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

type Rep TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

type Rep TokenValidityUnitsType = D1 ('MetaData "TokenValidityUnitsType" "Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "TokenValidityUnitsType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnitsType)) :*: (S1 ('MetaSel ('Just "idToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnitsType)) :*: S1 ('MetaSel ('Just "refreshToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnitsType)))))

newTokenValidityUnitsType :: TokenValidityUnitsType Source #

Create a value of TokenValidityUnitsType with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accessToken:TokenValidityUnitsType', tokenValidityUnitsType_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.

$sel:idToken:TokenValidityUnitsType', tokenValidityUnitsType_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.

$sel:refreshToken:TokenValidityUnitsType', tokenValidityUnitsType_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.

tokenValidityUnitsType_accessToken :: Lens' TokenValidityUnitsType (Maybe TimeUnitsType) Source #

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.

tokenValidityUnitsType_idToken :: Lens' TokenValidityUnitsType (Maybe TimeUnitsType) Source #

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.

tokenValidityUnitsType_refreshToken :: Lens' TokenValidityUnitsType (Maybe TimeUnitsType) Source #

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.