{
  "name": "ListSites",
  "plane": "control",
  "terraformEligible": true,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudSites.ListSites",
    "service": "sites"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "maxResults": {
        "default": null,
        "format": "uint32",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "nextToken": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      }
    },
    "title": "ListSitesRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "AsyncEffectState": {
        "enum": [
          "PENDING",
          "LEASED",
          "APPLIED",
          "TERMINAL_FAILED",
          "BLOCKED_PLATFORM"
        ],
        "type": "string"
      },
      "AsyncOperationStatus": {
        "properties": {
          "commandGeneration": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          },
          "edgePropagation": {
            "$ref": "#/definitions/EdgePropagationStatus"
          },
          "effectId": {
            "type": "string"
          },
          "state": {
            "$ref": "#/definitions/AsyncEffectState"
          }
        },
        "required": [
          "commandGeneration",
          "edgePropagation",
          "effectId",
          "state"
        ],
        "type": "object"
      },
      "EdgePropagationStatus": {
        "enum": [
          "COMPLETE",
          "PENDING",
          "FAILED"
        ],
        "type": "string"
      },
      "PreviewProtectionMode": {
        "enum": [
          "DISABLED",
          "PROTECTED"
        ],
        "type": "string"
      },
      "SiteDescription": {
        "properties": {
          "activeDeploymentId": {
            "type": [
              "string",
              "null"
            ]
          },
          "lifecycle": {
            "$ref": "#/definitions/SiteLifecycleStatus"
          },
          "name": {
            "type": "string"
          },
          "operation": {
            "anyOf": [
              {
                "$ref": "#/definitions/AsyncOperationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "platformHostname": {
            "type": "string"
          },
          "previewProtection": {
            "allOf": [
              {
                "$ref": "#/definitions/PreviewProtectionMode"
              }
            ],
            "default": "DISABLED"
          },
          "publicAccess": {
            "default": false,
            "type": "boolean"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/definitions/SiteRegion"
              }
            ],
            "default": "eu-central-1"
          },
          "revision": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "siteId": {
            "type": "string"
          }
        },
        "required": [
          "lifecycle",
          "name",
          "platformHostname",
          "revision",
          "siteId"
        ],
        "type": "object"
      },
      "SiteLifecycleStatus": {
        "enum": [
          "ACTIVE",
          "DELETING",
          "DELETED"
        ],
        "type": "string"
      },
      "SiteRegion": {
        "enum": [
          "eu-central-1"
        ],
        "type": "string"
      }
    },
    "properties": {
      "nextToken": {
        "type": [
          "string",
          "null"
        ]
      },
      "sites": {
        "items": {
          "$ref": "#/definitions/SiteDescription"
        },
        "type": "array"
      }
    },
    "required": [
      "sites"
    ],
    "title": "ListSitesResponse",
    "type": "object"
  }
}
