{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ce-costcategory.json",
  "title": "AWSCECostCategoryProperties",
  "description": "Cost Category enables you to map your cost and usage into meaningful categories. You can use Cost Category to organize your costs using a rule-based engine.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cost-explorer.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ce-costcategory.json",
    "sourceSha256": "2579974f3a7b11ead186a7979289c53f29f1468eec508e1fd0de7f7c8738676b"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RuleVersion": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CostCategoryExpression.v1"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Rules": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "JSON array format of Expression in Billing and Cost Management API"
    },
    "SplitChargeRules": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Json array format of CostCategorySplitChargeRule in Billing and Cost Management API"
    },
    "DefaultValue": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The default value for the cost category"
    }
  },
  "typeName": "AWS::CE::CostCategory",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cost-explorer.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Name"
  ],
  "$defs": {
    "ZonedDateTime": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(([+-]\\d\\d:\\d\\d)|Z)$",
          "minLength": 20,
          "maxLength": 25
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "ISO 8601 date time with offset format",
      "title": "AWSCECostCategoryZonedDateTimeDefinition"
    }
  },
  "required": [
    "Name",
    "RuleVersion",
    "Rules"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/EffectiveStart"
  ]
}
