{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-get-managed-scaling-policy-output-schema.json",
  "title": "GetManagedScalingPolicyOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-managed-scaling-policy-api-openapi.yml#/components/schemas/GetManagedScalingPolicyOutput",
  "type": "object",
  "properties": {
    "ManagedScalingPolicy": {
      "$ref": "#/$defs/ManagedScalingPolicy"
    }
  },
  "$defs": {
    "ComputeLimits": {
      "type": "object",
      "properties": {
        "UnitType": {
          "type": "string",
          "enum": [
            "InstanceFleetUnits",
            "Instances",
            "VCPU"
          ],
          "description": "The unit type used for specifying a managed scaling policy."
        },
        "MinimumCapacityUnits": {
          "type": "integer",
          "description": "The lower boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration."
        },
        "MaximumCapacityUnits": {
          "type": "integer",
          "description": "The upper boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration."
        },
        "MaximumOnDemandCapacityUnits": {
          "type": "integer",
          "description": "The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances."
        },
        "MaximumCoreCapacityUnits": {
          "type": "integer",
          "description": "The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes."
        }
      },
      "required": [
        "UnitType",
        "MinimumCapacityUnits",
        "MaximumCapacityUnits"
      ]
    },
    "ManagedScalingPolicy": {
      "type": "object",
      "properties": {
        "ComputeLimits": {
          "$ref": "#/$defs/ComputeLimits"
        },
        "UtilizationPerformanceIndex": {
          "type": "integer",
          "description": "An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100."
        },
        "ScalingStrategy": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "ADVANCED"
          ],
          "description": "Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT."
        }
      }
    }
  }
}