{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cognito/json-schema/amazon-cognito-create-managed-login-branding-response-schema.json",
  "title": "CreateManagedLoginBrandingResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cognito-managed-login-branding-api-openapi.yml#/components/schemas/CreateManagedLoginBrandingResponse",
  "type": "object",
  "properties": {
    "ManagedLoginBranding": {
      "$ref": "#/$defs/ManagedLoginBrandingType"
    }
  },
  "$defs": {
    "AssetType": {
      "type": "object",
      "properties": {
        "Category": {
          "type": "string",
          "enum": [
            "FAVICON_ICO",
            "FAVICON_SVG",
            "EMAIL_GRAPHIC",
            "SMS_GRAPHIC",
            "AUTH_APP_GRAPHIC",
            "PASSWORD_GRAPHIC",
            "PASSKEY_GRAPHIC",
            "PAGE_HEADER_LOGO",
            "PAGE_HEADER_BACKGROUND",
            "PAGE_FOOTER_LOGO",
            "PAGE_FOOTER_BACKGROUND",
            "PAGE_BACKGROUND",
            "FORM_BACKGROUND",
            "FORM_LOGO",
            "IDP_BUTTON_ICON"
          ],
          "description": "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."
        },
        "ColorMode": {
          "type": "string",
          "enum": [
            "LIGHT",
            "DARK",
            "DYNAMIC"
          ],
          "description": "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": {
          "type": "string",
          "enum": [
            "ICO",
            "JPEG",
            "PNG",
            "SVG",
            "WEBP"
          ],
          "description": "The file type of the image file."
        },
        "Bytes": {
          "type": "string",
          "format": "byte",
          "description": "The image file, in Base64-encoded binary."
        },
        "ResourceId": {
          "type": "string",
          "description": "The ID of the asset."
        }
      },
      "required": [
        "Category",
        "ColorMode",
        "Extension"
      ]
    },
    "ManagedLoginBrandingType": {
      "type": "object",
      "properties": {
        "ManagedLoginBrandingId": {
          "type": "string",
          "description": "The ID of the managed login branding style."
        },
        "UserPoolId": {
          "type": "string",
          "description": "The user pool where the branding style is assigned."
        },
        "UseCognitoProvidedValues": {
          "type": "boolean",
          "description": "When true, applies the default branding style options. This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor. When you specify true for this option, you must also omit values for Settings and Assets in the request."
        },
        "Settings": {
          "type": "object",
          "description": "A JSON file, encoded as a Document type, with the the settings that you want to apply to your style. The following components are not currently implemented and reserved for future use: signUp instructions sessionTimerDisplay languageSelector (for localization, see Managed login localization)"
        },
        "Assets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AssetType"
          },
          "description": "An array of image files that you want to apply to roles like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode."
        },
        "CreationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object."
        },
        "LastModifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object."
        }
      }
    }
  }
}