{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-elastic-beanstalk/json-schema/aws-elastic-beanstalk-update-environment-message-schema.json",
  "title": "UpdateEnvironmentMessage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-elastic-beanstalk-amazon-elastic-beanstalk-aws-elastic-beanstalk-update-api-openapi.yml#/components/schemas/UpdateEnvironmentMessage",
  "type": "object",
  "properties": {
    "ApplicationName": {
      "type": "string",
      "description": "The name of the application with which the environment is associated."
    },
    "EnvironmentId": {
      "type": "string",
      "description": "The ID of the environment to update. If no environment with this ID exists, Elastic Beanstalk returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error."
    },
    "EnvironmentName": {
      "type": "string",
      "description": "The name of the environment to update. If no environment with this name exists, Elastic Beanstalk returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, Elastic Beanstalk returns MissingRequiredParameter error."
    },
    "GroupName": {
      "type": "string",
      "description": "The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See Environment Manifest (env.yaml) for details."
    },
    "Description": {
      "type": "string",
      "description": "If this parameter is specified, Elastic Beanstalk updates the description of this environment."
    },
    "Tier": {
      "$ref": "#/$defs/EnvironmentTier"
    },
    "VersionLabel": {
      "type": "string",
      "description": "If this parameter is specified, Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error."
    },
    "TemplateName": {
      "type": "string",
      "description": "If this parameter is specified, Elastic Beanstalk deploys this configuration template to the environment. If no such configuration template is found, Elastic Beanstalk returns an InvalidParameterValue error."
    },
    "SolutionStackName": {
      "type": "string",
      "description": "This specifies the platform version that the environment will run after the environment is updated."
    },
    "PlatformArn": {
      "type": "string",
      "description": "The ARN of the platform, if used."
    },
    "OptionSettings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConfigurationOptionSetting"
      },
      "description": "If specified, Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value."
    },
    "OptionsToRemove": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OptionSpecification"
      },
      "description": "A list of custom user-defined configuration options to remove from the configuration set for this environment."
    }
  },
  "$defs": {
    "ConfigurationOptionSetting": {
      "type": "object",
      "properties": {
        "ResourceName": {
          "type": "string",
          "description": "A unique resource name for the option setting. Use it for a time–based scaling configuration option."
        },
        "Namespace": {
          "type": "string",
          "description": "A unique namespace that identifies the option's associated Amazon Web Services resource."
        },
        "OptionName": {
          "type": "string",
          "description": "The name of the configuration option."
        },
        "Value": {
          "type": "string",
          "description": "The current value for the configuration option."
        }
      }
    },
    "EnvironmentTier": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of this environment tier. Valid values: For Standard-mode EC2-based web server – WebServer For Standard-mode EC2-based backend application with Amazon SQS – Worker For Cluster-mode Amazon EKS-based applications – Cluster"
        },
        "Type": {
          "type": "string",
          "description": "The type of this environment tier. Valid values: For Web server tier – Standard For Worker tier – SQS/HTTP For Cluster tier – EKS"
        },
        "Version": {
          "type": "string",
          "description": "The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version. This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified."
        }
      }
    },
    "OptionSpecification": {
      "type": "object",
      "properties": {
        "ResourceName": {
          "type": "string",
          "description": "A unique resource name for a time-based scaling configuration option."
        },
        "Namespace": {
          "type": "string",
          "description": "A unique namespace identifying the option's associated Amazon Web Services resource."
        },
        "OptionName": {
          "type": "string",
          "description": "The name of the configuration option."
        }
      }
    }
  }
}