{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-applicationautoscaling-scalingpolicy.json",
  "title": "AWSApplicationAutoScalingScalingPolicyProperties",
  "description": "Resource Type definition for AWS::ApplicationAutoScaling::ScalingPolicy. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-applicationautoscaling-scalingpolicy.json",
    "sourceSha256": "a89578613c96918291003d9cf938a68411c615317e9b52f5d0f2ec9da3c13a8b"
  },
  "type": "object",
  "properties": {
    "PolicyName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "PolicyType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ResourceId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ScalableDimension": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ScalingTargetId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ServiceNamespace": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "StepScalingPolicyConfiguration": {
      "$ref": "#/$defs/StepScalingPolicyConfiguration"
    },
    "TargetTrackingScalingPolicyConfiguration": {
      "$ref": "#/$defs/TargetTrackingScalingPolicyConfiguration"
    }
  },
  "typeName": "AWS::ApplicationAutoScaling::ScalingPolicy",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "StepScalingPolicyConfiguration": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyStepScalingPolicyConfigurationDefinition",
      "properties": {
        "AdjustmentType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Cooldown": {
          "type": "integer"
        },
        "MetricAggregationType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MinAdjustmentMagnitude": {
          "type": "integer"
        },
        "StepAdjustments": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/StepAdjustment"
          }
        }
      },
      "additionalProperties": false
    },
    "TargetTrackingScalingPolicyConfiguration": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyTargetTrackingScalingPolicyConfigurationDefinition",
      "properties": {
        "CustomizedMetricSpecification": {
          "$ref": "#/$defs/CustomizedMetricSpecification"
        },
        "DisableScaleIn": {
          "type": "boolean"
        },
        "PredefinedMetricSpecification": {
          "$ref": "#/$defs/PredefinedMetricSpecification"
        },
        "ScaleInCooldown": {
          "type": "integer"
        },
        "ScaleOutCooldown": {
          "type": "integer"
        },
        "TargetValue": {
          "type": "number"
        }
      },
      "required": [
        "TargetValue"
      ],
      "additionalProperties": false
    },
    "PredefinedMetricSpecification": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyPredefinedMetricSpecificationDefinition",
      "properties": {
        "PredefinedMetricType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ResourceLabel": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "PredefinedMetricType"
      ],
      "additionalProperties": false
    },
    "CustomizedMetricSpecification": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyCustomizedMetricSpecificationDefinition",
      "properties": {
        "Dimensions": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/MetricDimension"
          }
        },
        "MetricName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Namespace": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Statistic": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Unit": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "MetricName",
        "Statistic",
        "Namespace"
      ],
      "additionalProperties": false
    },
    "StepAdjustment": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyStepAdjustmentDefinition",
      "properties": {
        "MetricIntervalLowerBound": {
          "type": "number"
        },
        "MetricIntervalUpperBound": {
          "type": "number"
        },
        "ScalingAdjustment": {
          "type": "integer"
        }
      },
      "required": [
        "ScalingAdjustment"
      ],
      "additionalProperties": false
    },
    "MetricDimension": {
      "type": "object",
      "title": "AWSApplicationAutoScalingScalingPolicyMetricDimensionDefinition",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Name"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "PolicyType",
    "PolicyName"
  ],
  "createOnlyProperties": [
    "/properties/PolicyName",
    "/properties/ServiceNamespace",
    "/properties/ResourceId",
    "/properties/ScalingTargetId",
    "/properties/ScalableDimension"
  ]
}
