{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-lambda/json-schema/aws-lambda-update-capacity-provider-request-schema.json",
  "title": "UpdateCapacityProviderRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-lambda-capacity-providers-api-openapi.yml#/components/schemas/UpdateCapacityProviderRequest",
  "type": "object",
  "properties": {
    "CapacityProviderName": {
      "type": "string",
      "description": "The name of the capacity provider to update."
    },
    "CapacityProviderScalingConfig": {
      "$ref": "#/$defs/CapacityProviderScalingConfig"
    },
    "PropagateTags": {
      "$ref": "#/$defs/PropagateTags"
    },
    "TelemetryConfig": {
      "$ref": "#/$defs/CapacityProviderTelemetryConfig"
    }
  },
  "required": [
    "CapacityProviderName"
  ],
  "$defs": {
    "CapacityProviderLoggingConfig": {
      "type": "object",
      "properties": {
        "SystemLogLevel": {
          "type": "string",
          "enum": [
            "DEBUG",
            "INFO",
            "WARN"
          ],
          "description": "Set this property to filter the system logs for your capacity provider that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest."
        },
        "LogGroup": {
          "type": "string",
          "description": "The name of the Amazon CloudWatch log group the capacity provider sends logs to. By default, Lambda capacity providers send logs to a default log group named /aws/lambda/capacity-provider/&lt;capacity provider name&gt;. To use a different log group, enter an existing log group or enter a new log group name."
        }
      }
    },
    "CapacityProviderScalingConfig": {
      "type": "object",
      "properties": {
        "MaxVCpuCount": {
          "type": "integer",
          "description": "The maximum number of vCPUs that the capacity provider can provision across all compute instances."
        },
        "ScalingMode": {
          "type": "string",
          "enum": [
            "Auto",
            "Manual"
          ],
          "description": "The scaling mode that determines how the capacity provider responds to changes in demand."
        },
        "ScalingPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TargetTrackingScalingPolicy"
          },
          "description": "A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds."
        }
      }
    },
    "CapacityProviderTelemetryConfig": {
      "type": "object",
      "properties": {
        "LoggingConfig": {
          "$ref": "#/$defs/CapacityProviderLoggingConfig"
        }
      }
    },
    "PropagateTags": {
      "type": "object",
      "properties": {
        "Mode": {
          "type": "string",
          "enum": [
            "None",
            "Explicit"
          ],
          "description": "The tag propagation mode. Set to Explicit to propagate the tags specified in ExplicitTags to managed resources. Set to None to disable tag propagation."
        },
        "ExplicitTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A list of tags to apply to managed resources when Mode is set to Explicit. You can specify up to 40 tags."
        }
      }
    },
    "TargetTrackingScalingPolicy": {
      "type": "object",
      "properties": {
        "PredefinedMetricType": {
          "type": "string",
          "enum": [
            "LambdaCapacityProviderAverageCPUUtilization"
          ],
          "description": "The predefined metric type to track for scaling decisions."
        },
        "TargetValue": {
          "type": "number",
          "description": "The target value for the metric that the scaling policy attempts to maintain through scaling actions."
        }
      },
      "required": [
        "PredefinedMetricType",
        "TargetValue"
      ]
    }
  }
}