{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-api-gateway/json-schema/aws-api-gateway-create-portal-request-schema.json",
  "title": "CreatePortalRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-api-gateway-portals-api-openapi.yml#/components/schemas/CreatePortalRequest",
  "type": "object",
  "properties": {
    "Authorization": {
      "$ref": "#/$defs/Authorization"
    },
    "EndpointConfiguration": {
      "$ref": "#/$defs/EndpointConfigurationRequest"
    },
    "IncludedPortalProductArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARNs of the portal products included in the portal."
    },
    "LogoUri": {
      "type": "string",
      "description": "The URI for the portal logo image that is displayed in the portal header."
    },
    "PortalContent": {
      "$ref": "#/$defs/PortalContent"
    },
    "RumAppMonitorName": {
      "type": "string",
      "description": "The name of the Amazon CloudWatch RUM app monitor for the portal."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The collection of tags. Each tag element is associated with a given resource."
    }
  },
  "required": [
    "Authorization",
    "EndpointConfiguration",
    "PortalContent"
  ],
  "$defs": {
    "ACMManaged": {
      "type": "object",
      "properties": {
        "CertificateArn": {
          "type": "string",
          "description": "The certificate ARN."
        },
        "DomainName": {
          "type": "string",
          "description": "The domain name."
        }
      },
      "required": [
        "CertificateArn",
        "DomainName"
      ]
    },
    "Authorization": {
      "type": "object",
      "properties": {
        "CognitoConfig": {
          "$ref": "#/$defs/CognitoConfig"
        },
        "None": {
          "$ref": "#/$defs/None"
        }
      }
    },
    "CognitoConfig": {
      "type": "object",
      "properties": {
        "AppClientId": {
          "type": "string",
          "description": "The app client ID."
        },
        "UserPoolArn": {
          "type": "string",
          "description": "The user pool ARN."
        },
        "UserPoolDomain": {
          "type": "string",
          "description": "The user pool domain."
        }
      },
      "required": [
        "AppClientId",
        "UserPoolArn",
        "UserPoolDomain"
      ]
    },
    "CustomColors": {
      "type": "object",
      "properties": {
        "AccentColor": {
          "type": "string",
          "description": "Represents the accent color."
        },
        "BackgroundColor": {
          "type": "string",
          "description": "Represents the background color."
        },
        "ErrorValidationColor": {
          "type": "string",
          "description": "The errorValidationColor."
        },
        "HeaderColor": {
          "type": "string",
          "description": "Represents the header color."
        },
        "NavigationColor": {
          "type": "string",
          "description": "Represents the navigation color."
        },
        "TextColor": {
          "type": "string",
          "description": "Represents the text color."
        }
      },
      "required": [
        "AccentColor",
        "BackgroundColor",
        "ErrorValidationColor",
        "HeaderColor",
        "NavigationColor",
        "TextColor"
      ]
    },
    "EndpointConfigurationRequest": {
      "type": "object",
      "properties": {
        "AcmManaged": {
          "$ref": "#/$defs/ACMManaged"
        },
        "None": {
          "$ref": "#/$defs/None"
        }
      }
    },
    "None": {
      "type": "object",
      "properties": {}
    },
    "PortalContent": {
      "type": "object",
      "properties": {
        "Description": {
          "type": "string",
          "description": "A description of the portal."
        },
        "DisplayName": {
          "type": "string",
          "description": "The display name for the portal."
        },
        "Theme": {
          "$ref": "#/$defs/PortalTheme"
        }
      },
      "required": [
        "DisplayName",
        "Theme"
      ]
    },
    "PortalTheme": {
      "type": "object",
      "properties": {
        "CustomColors": {
          "$ref": "#/$defs/CustomColors"
        },
        "LogoLastUploaded": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the logo was last uploaded."
        }
      },
      "required": [
        "CustomColors"
      ]
    }
  }
}