{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-environments-schema.json",
  "title": "Environments",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-environments-api-openapi.yml#/components/schemas/Environments",
  "type": "object",
  "properties": {
    "Items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Environment"
      },
      "description": "The elements from this collection."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. Use this token to get the next set of results."
    }
  },
  "$defs": {
    "Environment": {
      "type": "object",
      "properties": {
        "ApplicationId": {
          "type": "string",
          "description": "The application ID."
        },
        "Id": {
          "type": "string",
          "description": "The environment ID."
        },
        "Name": {
          "type": "string",
          "description": "The name of the environment."
        },
        "Description": {
          "type": "string",
          "description": "The description of the environment."
        },
        "State": {
          "type": "string",
          "enum": [
            "READY_FOR_DEPLOYMENT",
            "DEPLOYING",
            "ROLLING_BACK",
            "ROLLED_BACK",
            "REVERTED"
          ],
          "description": "The state of the environment. An environment can be in one of the following states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK"
        },
        "Monitors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Monitor"
          },
          "description": "Amazon CloudWatch alarms monitored during the deployment."
        }
      }
    },
    "Monitor": {
      "type": "object",
      "properties": {
        "AlarmArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the Amazon CloudWatch alarm."
        },
        "AlarmRoleArn": {
          "type": "string",
          "description": "ARN of an Identity and Access Management (IAM) role for AppConfig to monitor AlarmArn."
        }
      },
      "required": [
        "AlarmArn"
      ]
    }
  }
}