{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-environment-schema.json",
  "title": "Environment",
  "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/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."
    }
  },
  "$defs": {
    "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"
      ]
    }
  }
}