Skip to content

AssetType

Source code in docs_src/capo_cognito_identity_provider/types/asset_type.py
class AssetType(TypedDict, closed=True):
    category: (
        "capo_cognito_identity_provider.types.asset_category_type.AssetCategoryType"
    )
    """<p>The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.</p>"""
    color_mode: "capo_cognito_identity_provider.types.color_scheme_mode_type.ColorSchemeModeType"
    """<p>The display-mode target of the asset: light, dark, or browser-adaptive. For example, Amazon Cognito displays a dark-mode image only when the browser or application is in dark mode, but displays a browser-adaptive file in all contexts.</p>"""
    extension: (
        "capo_cognito_identity_provider.types.asset_extension_type.AssetExtensionType"
    )
    """<p>The file type of the image file.</p>"""
    bytes: NotRequired[
        "capo_cognito_identity_provider.types.asset_bytes_type.AssetBytesType"
    ]
    """<p>The image file, in Base64-encoded binary.</p>"""
    resource_id: NotRequired[
        "capo_cognito_identity_provider.types.resource_id_type.ResourceIdType"
    ]
    """<p>The ID of the asset.</p>"""

bytes instance-attribute

bytes: NotRequired[AssetBytesType]

The image file, in Base64-encoded binary.

category instance-attribute

The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.

color_mode instance-attribute

color_mode: ColorSchemeModeType

The display-mode target of the asset: light, dark, or browser-adaptive. For example, Amazon Cognito displays a dark-mode image only when the browser or application is in dark mode, but displays a browser-adaptive file in all contexts.

extension instance-attribute

extension: AssetExtensionType

The file type of the image file.

resource_id instance-attribute

resource_id: NotRequired[ResourceIdType]

The ID of the asset.