Skip to content

SessionLocationType

Source code in docs_src/capo_cognito_identity_provider/types/session_location_type.py
class SessionLocationType(TypedDict, closed=True):
    city: NotRequired[
        "capo_cognito_identity_provider.types.session_location_city_type.SessionLocationCityType"
    ]
    """<p>The city of the most recent activity on the session, derived from the IP address. This value can be null if geo-IP resolution fails. The maximum length is 256 characters.</p>"""
    country: NotRequired[
        "capo_cognito_identity_provider.types.session_location_country_type.SessionLocationCountryType"
    ]
    """<p>The country of the most recent activity on the session, derived from the IP address and returned in English (for example, <code>United States</code>). This is a country name as returned by the geo-IP database, not an ISO country code, and can be <code>unknown</code> if geo-IP resolution fails.</p>"""

city instance-attribute

city: NotRequired[SessionLocationCityType]

The city of the most recent activity on the session, derived from the IP address. This value can be null if geo-IP resolution fails. The maximum length is 256 characters.

country instance-attribute

country: NotRequired[SessionLocationCountryType]

The country of the most recent activity on the session, derived from the IP address and returned in English (for example, United States). This is a country name as returned by the geo-IP database, not an ISO country code, and can be unknown if geo-IP resolution fails.