{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-create-usage-limit-message-schema.json",
  "title": "CreateUsageLimitMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-usage-limit-api-openapi.yml#/components/schemas/CreateUsageLimitMessage",
  "type": "object",
  "properties": {
    "ClusterIdentifier": {
      "type": "string",
      "description": "The identifier of the cluster that you want to limit usage."
    },
    "FeatureType": {
      "type": "string",
      "enum": [
        "spectrum",
        "concurrency-scaling",
        "cross-region-datasharing",
        "extra-compute-for-automatic-optimization"
      ],
      "description": "The Amazon Redshift feature that you want to limit."
    },
    "LimitType": {
      "type": "string",
      "enum": [
        "time",
        "data-scanned"
      ],
      "description": "The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned. If FeatureType is extra-compute-for-automatic-optimization, then LimitType must be time."
    },
    "Amount": {
      "type": "integer",
      "description": "The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number."
    },
    "Period": {
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ],
      "description": "The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly."
    },
    "BreachAction": {
      "type": "string",
      "enum": [
        "log",
        "emit-metric",
        "disable"
      ],
      "description": "The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tag instances."
    }
  },
  "required": [
    "ClusterIdentifier",
    "FeatureType",
    "LimitType",
    "Amount"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key, or name, for the resource tag."
        },
        "Value": {
          "type": "string",
          "description": "The value for the resource tag."
        }
      }
    }
  }
}