Skip to content

TokenValidityUnitsType

Source code in docs_src/capo_cognito_identity_provider/types/token_validity_units_type.py
class TokenValidityUnitsType(TypedDict, closed=True):
    access_token: NotRequired[
        "capo_cognito_identity_provider.types.time_units_type.TimeUnitsType"
    ]
    """<p> A time unit for the value that you set in the <code>AccessTokenValidity</code> parameter. The default <code>AccessTokenValidity</code> time unit is <code>hours</code>. <code>AccessTokenValidity</code> duration can range from five minutes to one day.</p>"""
    id_token: NotRequired[
        "capo_cognito_identity_provider.types.time_units_type.TimeUnitsType"
    ]
    """<p>A time unit for the value that you set in the <code>IdTokenValidity</code> parameter. The default <code>IdTokenValidity</code> time unit is <code>hours</code>. <code>IdTokenValidity</code> duration can range from five minutes to one day.</p>"""
    refresh_token: NotRequired[
        "capo_cognito_identity_provider.types.time_units_type.TimeUnitsType"
    ]
    """<p>A time unit for the value that you set in the <code>RefreshTokenValidity</code> parameter. The default <code>RefreshTokenValidity</code> time unit is <code>days</code>. <code>RefreshTokenValidity</code> duration can range from 60 minutes to 10 years.</p>"""

access_token instance-attribute

access_token: NotRequired[TimeUnitsType]

A time unit 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.

id_token instance-attribute

id_token: NotRequired[TimeUnitsType]

A time unit 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.

refresh_token instance-attribute

refresh_token: NotRequired[TimeUnitsType]

A time unit 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.