{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-create-portal-response-schema.json",
  "title": "CreatePortalResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-portals-api-openapi.yml#/components/schemas/CreatePortalResponse",
  "type": "object",
  "properties": {
    "portalId": {
      "type": "string",
      "description": "The ID of the created portal."
    },
    "portalArn": {
      "type": "string",
      "description": "The ARN of the portal, which has the following format. arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId}"
    },
    "portalStartUrl": {
      "type": "string",
      "description": "The URL for the IoT SiteWise Monitor portal. You can use this URL to access portals that use IAM Identity Center for authentication. For portals that use IAM for authentication, you must use the IoT SiteWise console to get a URL that you can use to access the portal."
    },
    "portalStatus": {
      "$ref": "#/$defs/PortalStatus"
    },
    "ssoApplicationId": {
      "type": "string",
      "description": "The associated IAM Identity Center application ID, if the portal uses IAM Identity Center."
    }
  },
  "required": [
    "portalId",
    "portalArn",
    "portalStartUrl",
    "portalStatus",
    "ssoApplicationId"
  ],
  "$defs": {
    "MonitorErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "INTERNAL_FAILURE",
            "VALIDATION_ERROR",
            "LIMIT_EXCEEDED"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "PortalStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "PENDING",
            "UPDATING",
            "DELETING",
            "ACTIVE",
            "FAILED"
          ],
          "description": "The current state of the portal."
        },
        "error": {
          "$ref": "#/$defs/MonitorErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    }
  }
}