{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-batch-schedulingpolicy.json",
  "title": "AWSBatchSchedulingPolicyProperties",
  "description": "Resource Type schema for AWS::Batch::SchedulingPolicy. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-batch.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-batch-schedulingpolicy.json",
    "sourceSha256": "aab02b69f5d91306733937975a6c57316fd5ea201814cd4ac8f0886cdb7d634a"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": ""
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of Scheduling Policy."
    },
    "FairsharePolicy": {
      "$ref": "#/$defs/FairsharePolicy"
    },
    "Tags": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "additionalProperties": false,
      "patternProperties": {
        ".*": {
          "type": "string"
        }
      }
    }
  },
  "typeName": "AWS::Batch::SchedulingPolicy",
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-batch.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Tags"
  ],
  "$defs": {
    "ResourceArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "ARN of the Scheduling Policy.",
      "title": "AWSBatchSchedulingPolicyResourceArnDefinition"
    },
    "FairsharePolicy": {
      "description": "Fair Share Policy for the Job Queue.",
      "type": "object",
      "properties": {
        "ShareDecaySeconds": {
          "type": "number",
          "minimum": 0,
          "maximum": 604800
        },
        "ComputeReservation": {
          "type": "number",
          "minimum": 0,
          "maximum": 99
        },
        "ShareDistribution": {
          "description": "List of Share Attributes",
          "type": "array",
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/ShareAttributes"
          }
        }
      },
      "required": [],
      "title": "AWSBatchSchedulingPolicyFairsharePolicyDefinition",
      "additionalProperties": false
    },
    "ShareAttributes": {
      "type": "object",
      "properties": {
        "ShareIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "WeightFactor": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000
        }
      },
      "required": [],
      "title": "AWSBatchSchedulingPolicyShareAttributesDefinition",
      "additionalProperties": false
    }
  },
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "primaryIdentifier": [
    "/properties/Arn"
  ]
}
