{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-update-nodegroup-config-request-schema.json",
  "title": "UpdateNodegroupConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-operations-api-openapi.yml#/components/schemas/UpdateNodegroupConfigRequest",
  "type": "object",
  "properties": {
    "clusterName": {
      "type": "string",
      "description": "The name of your cluster."
    },
    "nodegroupName": {
      "type": "string",
      "description": "The name of the managed node group to update."
    },
    "labels": {
      "$ref": "#/$defs/UpdateLabelsPayload"
    },
    "taints": {
      "$ref": "#/$defs/UpdateTaintsPayload"
    },
    "scalingConfig": {
      "$ref": "#/$defs/NodegroupScalingConfig"
    },
    "updateConfig": {
      "$ref": "#/$defs/NodegroupUpdateConfig"
    },
    "nodeRepairConfig": {
      "$ref": "#/$defs/NodeRepairConfig"
    },
    "warmPoolConfig": {
      "$ref": "#/$defs/WarmPoolConfig"
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    }
  },
  "required": [
    "clusterName",
    "nodegroupName"
  ],
  "$defs": {
    "NodeRepairConfig": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default."
        },
        "maxUnhealthyNodeThresholdCount": {
          "type": "integer",
          "description": "Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also set maxUnhealthyNodeThresholdPercentage at the same time."
        },
        "maxUnhealthyNodeThresholdPercentage": {
          "type": "integer",
          "description": "Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also set maxUnhealthyNodeThresholdCount at the same time."
        },
        "maxParallelNodesRepairedCount": {
          "type": "integer",
          "description": "Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedPercentage at the same time."
        },
        "maxParallelNodesRepairedPercentage": {
          "type": "integer",
          "description": "Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedCount at the same time."
        },
        "nodeRepairConfigOverrides": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeRepairConfigOverrides"
          },
          "description": "Specify granular overrides for specific repair actions. These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values."
        }
      }
    },
    "NodeRepairConfigOverrides": {
      "type": "object",
      "properties": {
        "nodeMonitoringCondition": {
          "type": "string",
          "description": "Specify an unhealthy condition reported by the node monitoring agent that this override would apply to."
        },
        "nodeUnhealthyReason": {
          "type": "string",
          "description": "Specify a reason reported by the node monitoring agent that this override would apply to."
        },
        "minRepairWaitTimeMins": {
          "type": "integer",
          "description": "Specify the minimum time in minutes to wait before attempting to repair a node with this specific nodeMonitoringCondition and nodeUnhealthyReason."
        },
        "repairAction": {
          "type": "string",
          "enum": [
            "Replace",
            "Reboot",
            "NoAction"
          ],
          "description": "Specify the repair action to take for nodes when all of the specified conditions are met."
        }
      }
    },
    "NodegroupScalingConfig": {
      "type": "object",
      "properties": {
        "minSize": {
          "type": "integer",
          "description": "The minimum number of nodes that the managed node group can scale in to."
        },
        "maxSize": {
          "type": "integer",
          "description": "The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide."
        },
        "desiredSize": {
          "type": "integer",
          "description": "The current number of nodes that the managed node group should maintain. If you use the Kubernetes Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down. Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove thi"
        }
      }
    },
    "NodegroupUpdateConfig": {
      "type": "object",
      "properties": {
        "maxUnavailable": {
          "type": "integer",
          "description": "The maximum number of nodes unavailable at once during a version update. Nodes are updated in parallel. This value or maxUnavailablePercentage is required to have a value.The maximum number is 100."
        },
        "maxUnavailablePercentage": {
          "type": "integer",
          "description": "The maximum percentage of nodes unavailable during a version update. This percentage of nodes are updated in parallel, up to 100 nodes at once. This value or maxUnavailable is required to have a value."
        },
        "updateStrategy": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "MINIMAL"
          ],
          "description": "The configuration for the behavior to follow during a node group version update of this managed node group. You choose between two possible strategies for replacing nodes during an UpdateNodegroupVersion action. An Amazon EKS managed node group updates by replacing nodes with new nodes of newer AMI versions in parallel. The update strategy changes the managed node update behavior of the managed node group for each quantity. The default strategy has guardrails to protect you from misconfiguration and launches the new instances first, before terminating the old instances. The minimal strategy re"
        }
      }
    },
    "Taint": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the taint."
        },
        "value": {
          "type": "string",
          "description": "The value of the taint."
        },
        "effect": {
          "type": "string",
          "enum": [
            "NO_SCHEDULE",
            "NO_EXECUTE",
            "PREFER_NO_SCHEDULE"
          ],
          "description": "The effect of the taint."
        }
      }
    },
    "UpdateLabelsPayload": {
      "type": "object",
      "properties": {
        "addOrUpdateLabels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Kubernetes labels to add or update."
        },
        "removeLabels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Kubernetes labels to remove."
        }
      }
    },
    "UpdateTaintsPayload": {
      "type": "object",
      "properties": {
        "addOrUpdateTaints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Taint"
          },
          "description": "Kubernetes taints to be added or updated."
        },
        "removeTaints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Taint"
          },
          "description": "Kubernetes taints to remove."
        }
      }
    },
    "WarmPoolConfig": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether to attach warm pools on the managed node group. Set to true to enable the warm pool, or false to disable and remove it. If not specified during an update, the current value is preserved."
        },
        "minSize": {
          "type": "integer",
          "description": "The minimum number of instances to maintain in the warm pool. Default: 0. Size your warm pool based on scaling patterns to balance cost and availability. Start with 10-20% of expected peak capacity."
        },
        "maxGroupPreparedCapacity": {
          "type": "integer",
          "description": "The maximum total number of instances across the warm pool and Auto Scaling group combined. This value controls the total prepared capacity available for your node group."
        },
        "poolState": {
          "type": "string",
          "enum": [
            "STOPPED",
            "RUNNING",
            "HIBERNATED"
          ],
          "description": "The desired state for warm pool instances. Default: Stopped. Valid values are Stopped (most cost-effective with EBS storage costs only), Running (fastest transition time with full EC2 costs), and Hibernated (balance between cost and speed, only supported on specific instance types). Warm pool instances in the Hibernated state are not supported with Bottlerocket AMIs."
        },
        "reuseOnScaleIn": {
          "type": "boolean",
          "description": "Indicates whether instances should return to the warm pool during scale-in events instead of being terminated. Default: false. Enable this to reduce costs by reusing instances. This feature is not supported for Bottlerocket AMIs."
        }
      }
    }
  }
}