{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-list-environments-response-schema.json",
  "title": "ListEnvironmentsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-environments-api-openapi.yml#/components/schemas/ListEnvironmentsResponse",
  "type": "object",
  "properties": {
    "environments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnvironmentSummary"
      },
      "description": "Describes environments."
    },
    "nextToken": {
      "type": "string",
      "description": "If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."
    }
  },
  "$defs": {
    "EnvironmentSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the environment."
        },
        "name": {
          "type": "string",
          "description": "The name of the environment."
        },
        "desktopArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0."
        },
        "desktopEndpoint": {
          "type": "string",
          "description": "The URL for the identity provider login (only for environments that use AppStream 2.0)."
        },
        "desktopType": {
          "type": "string",
          "enum": [
            "workspaces",
            "appstream",
            "workspaces-web"
          ],
          "description": "The type of streaming desktop for the environment."
        },
        "activationCode": {
          "type": "string",
          "description": "The activation code to register a device to the environment."
        },
        "softwareSetUpdateSchedule": {
          "type": "string",
          "enum": [
            "USE_MAINTENANCE_WINDOW",
            "APPLY_IMMEDIATELY"
          ],
          "description": "An option to define if software updates should be applied within a maintenance window."
        },
        "maintenanceWindow": {
          "$ref": "#/$defs/MaintenanceWindow"
        },
        "softwareSetUpdateMode": {
          "type": "string",
          "enum": [
            "USE_LATEST",
            "USE_DESIRED"
          ],
          "description": "An option to define which software updates to apply."
        },
        "desiredSoftwareSetId": {
          "type": "string",
          "description": "The ID of the software set to apply."
        },
        "pendingSoftwareSetId": {
          "type": "string",
          "description": "The ID of the software set that is pending to be installed."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the environment was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the device was updated."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the environment."
        }
      }
    },
    "MaintenanceWindow": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "SYSTEM",
            "CUSTOM"
          ],
          "description": "An option to select the default or custom maintenance window."
        },
        "startTimeHour": {
          "type": "integer",
          "description": "The hour for the maintenance window start (00-23)."
        },
        "startTimeMinute": {
          "type": "integer",
          "description": "The minutes past the hour for the maintenance window start (00-59)."
        },
        "endTimeHour": {
          "type": "integer",
          "description": "The hour for the maintenance window end (00-23)."
        },
        "endTimeMinute": {
          "type": "integer",
          "description": "The minutes for the maintenance window end (00-59)."
        },
        "daysOfTheWeek": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "MONDAY",
              "TUESDAY",
              "WEDNESDAY",
              "THURSDAY",
              "FRIDAY",
              "SATURDAY",
              "SUNDAY"
            ]
          },
          "description": "The days of the week during which the maintenance window is open."
        },
        "applyTimeOf": {
          "type": "string",
          "enum": [
            "UTC",
            "DEVICE"
          ],
          "description": "The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC)."
        }
      },
      "required": [
        "type"
      ]
    }
  }
}