{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-budgets-budget.json",
  "title": "AWSBudgetsBudgetProperties",
  "description": "Resource Type definition for AWS::Budgets::Budget. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-budgets-budget.json",
    "sourceSha256": "5899bd88120899871434038ac66a1eb44a8ba09e72ebf17abbe0ab87f9de6a3a"
  },
  "type": "object",
  "properties": {
    "NotificationsWithSubscribers": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/NotificationWithSubscribers"
      }
    },
    "Budget": {
      "$ref": "#/$defs/BudgetData"
    }
  },
  "typeName": "AWS::Budgets::Budget",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "HistoricalOptions": {
      "type": "object",
      "title": "AWSBudgetsBudgetHistoricalOptionsDefinition",
      "properties": {
        "BudgetAdjustmentPeriod": {
          "type": "integer"
        }
      },
      "required": [
        "BudgetAdjustmentPeriod"
      ],
      "additionalProperties": false
    },
    "Subscriber": {
      "type": "object",
      "title": "AWSBudgetsBudgetSubscriberDefinition",
      "properties": {
        "Address": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SubscriptionType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "SubscriptionType",
        "Address"
      ],
      "additionalProperties": false
    },
    "BudgetData": {
      "type": "object",
      "title": "AWSBudgetsBudgetBudgetDataDefinition",
      "properties": {
        "BudgetLimit": {
          "$ref": "#/$defs/Spend"
        },
        "TimePeriod": {
          "$ref": "#/$defs/TimePeriod"
        },
        "AutoAdjustData": {
          "$ref": "#/$defs/AutoAdjustData"
        },
        "TimeUnit": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PlannedBudgetLimits": {
          "type": "object"
        },
        "CostFilters": {
          "type": "object"
        },
        "BudgetName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "CostTypes": {
          "$ref": "#/$defs/CostTypes"
        },
        "BudgetType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "TimeUnit",
        "BudgetType"
      ],
      "additionalProperties": false
    },
    "TimePeriod": {
      "type": "object",
      "title": "AWSBudgetsBudgetTimePeriodDefinition",
      "properties": {
        "Start": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "End": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Spend": {
      "type": "object",
      "title": "AWSBudgetsBudgetSpendDefinition",
      "properties": {
        "Unit": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Amount": {
          "type": "number"
        }
      },
      "required": [
        "Amount",
        "Unit"
      ],
      "additionalProperties": false
    },
    "NotificationWithSubscribers": {
      "type": "object",
      "title": "AWSBudgetsBudgetNotificationWithSubscribersDefinition",
      "properties": {
        "Subscribers": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Subscriber"
          }
        },
        "Notification": {
          "$ref": "#/$defs/Notification"
        }
      },
      "required": [
        "Subscribers",
        "Notification"
      ],
      "additionalProperties": false
    },
    "AutoAdjustData": {
      "type": "object",
      "title": "AWSBudgetsBudgetAutoAdjustDataDefinition",
      "properties": {
        "AutoAdjustType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "HistoricalOptions": {
          "$ref": "#/$defs/HistoricalOptions"
        }
      },
      "required": [
        "AutoAdjustType"
      ],
      "additionalProperties": false
    },
    "Notification": {
      "type": "object",
      "title": "AWSBudgetsBudgetNotificationDefinition",
      "properties": {
        "ComparisonOperator": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NotificationType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Threshold": {
          "type": "number"
        },
        "ThresholdType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "ComparisonOperator",
        "NotificationType",
        "Threshold"
      ],
      "additionalProperties": false
    },
    "CostTypes": {
      "type": "object",
      "title": "AWSBudgetsBudgetCostTypesDefinition",
      "properties": {
        "IncludeSupport": {
          "type": "boolean"
        },
        "IncludeOtherSubscription": {
          "type": "boolean"
        },
        "IncludeTax": {
          "type": "boolean"
        },
        "IncludeSubscription": {
          "type": "boolean"
        },
        "UseBlended": {
          "type": "boolean"
        },
        "IncludeUpfront": {
          "type": "boolean"
        },
        "IncludeDiscount": {
          "type": "boolean"
        },
        "IncludeCredit": {
          "type": "boolean"
        },
        "IncludeRecurring": {
          "type": "boolean"
        },
        "UseAmortized": {
          "type": "boolean"
        },
        "IncludeRefund": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "Budget"
  ],
  "createOnlyProperties": [
    "/properties/NotificationsWithSubscribers"
  ]
}
