libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Description

 
Synopsis

Documentation

data TokenValidityUnitsType Source #

The data type for TokenValidityUnits that specifics the time measurements for token validity.

See: newTokenValidityUnitsType smart constructor.

Constructors

TokenValidityUnitsType' 

Fields

  • accessToken :: Maybe TimeUnitsType

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.

  • refreshToken :: Maybe TimeUnitsType

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.

  • idToken :: Maybe TimeUnitsType

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.

Instances

Instances details
Eq TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Read TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Show 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 #

NFData TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

Methods

rnf :: TokenValidityUnitsType -> () #

Hashable TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

ToJSON TokenValidityUnitsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.TokenValidityUnitsType

FromJSON 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" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "TokenValidityUnitsType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnitsType)) :*: (S1 ('MetaSel ('Just "refreshToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnitsType)) :*: S1 ('MetaSel ('Just "idToken") '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 in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.

$sel:refreshToken:TokenValidityUnitsType', tokenValidityUnitsType_refreshToken - A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.

$sel:idToken:TokenValidityUnitsType', tokenValidityUnitsType_idToken - A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.

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

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.

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

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.

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

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.