{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-batch-computeenvironment.json",
  "title": "AWSBatchComputeEnvironmentProperties",
  "description": "Resource Type definition for AWS::Batch::ComputeEnvironment. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-batch-computeenvironment.json",
    "sourceSha256": "5e9972eaf76018db8a96042fea03c12449b1fb2c570aeb245fb9dcef71714e12"
  },
  "type": "object",
  "properties": {
    "ComputeEnvironmentName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ComputeResources": {
      "$ref": "#/$defs/ComputeResources"
    },
    "ReplaceComputeEnvironment": {
      "type": "boolean",
      "default": true
    },
    "ServiceRole": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "State": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "additionalProperties": false,
      "patternProperties": {
        ".*": {
          "type": "string"
        }
      }
    },
    "Type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "UpdatePolicy": {
      "$ref": "#/$defs/UpdatePolicy"
    },
    "UnmanagedvCpus": {
      "type": "integer"
    },
    "EksConfiguration": {
      "$ref": "#/$defs/EksConfiguration"
    }
  },
  "typeName": "AWS::Batch::ComputeEnvironment",
  "additionalIdentifiers": [
    [
      "/properties/ComputeEnvironmentName"
    ]
  ],
  "$defs": {
    "ComputeResources": {
      "type": "object",
      "title": "AWSBatchComputeEnvironmentComputeResourcesDefinition",
      "properties": {
        "AllocationStrategy": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BidPercentage": {
          "type": "integer"
        },
        "DesiredvCpus": {
          "type": "integer"
        },
        "Ec2Configuration": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/Ec2ConfigurationObject"
          }
        },
        "Ec2KeyPair": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ImageId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "InstanceRole": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "InstanceTypes": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "LaunchTemplate": {
          "$ref": "#/$defs/LaunchTemplateSpecification"
        },
        "MaxvCpus": {
          "type": "integer"
        },
        "MinvCpus": {
          "type": "integer"
        },
        "PlacementGroup": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SecurityGroupIds": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "SpotIamFleetRole": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Subnets": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "Tags": {
          "type": "object",
          "description": "A key-value pair to associate with a resource.",
          "additionalProperties": false,
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          }
        },
        "Type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UpdateToLatestImageVersion": {
          "type": "boolean",
          "default": false
        }
      },
      "required": [
        "Subnets",
        "Type",
        "MaxvCpus"
      ],
      "additionalProperties": false
    },
    "Ec2ConfigurationObject": {
      "type": "object",
      "title": "AWSBatchComputeEnvironmentEc2ConfigurationObjectDefinition",
      "properties": {
        "ImageIdOverride": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ImageType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ImageKubernetesVersion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "ImageType"
      ],
      "additionalProperties": false
    },
    "LaunchTemplateSpecification": {
      "type": "object",
      "title": "AWSBatchComputeEnvironmentLaunchTemplateSpecificationDefinition",
      "properties": {
        "LaunchTemplateId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LaunchTemplateName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Version": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "UpdatePolicy": {
      "type": "object",
      "title": "AWSBatchComputeEnvironmentUpdatePolicyDefinition",
      "properties": {
        "TerminateJobsOnUpdate": {
          "type": "boolean",
          "default": false
        },
        "JobExecutionTimeoutMinutes": {
          "type": "integer",
          "default": 30
        }
      },
      "additionalProperties": false
    },
    "EksConfiguration": {
      "type": "object",
      "title": "AWSBatchComputeEnvironmentEksConfigurationDefinition",
      "properties": {
        "EksClusterArn": {
          "oneOf": [
            {
              "type": "string",
              "default": false
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KubernetesNamespace": {
          "oneOf": [
            {
              "type": "string",
              "default": false
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "EksClusterArn",
        "KubernetesNamespace"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/ComputeEnvironmentArn"
  ],
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "Type"
  ],
  "createOnlyProperties": [
    "/properties/ComputeResources/SpotIamFleetRole",
    "/properties/ComputeEnvironmentName",
    "/properties/Tags",
    "/properties/Type",
    "/properties/EksConfiguration"
  ],
  "conditionalCreateOnlyProperties": [
    "/properties/ComputeResources/AllocationStrategy",
    "/properties/ComputeResources/BidPercentage",
    "/properties/ComputeResources/Ec2Configuration",
    "/properties/ComputeResources/Ec2KeyPair",
    "/properties/ComputeResources/ImageId",
    "/properties/ComputeResources/InstanceRole",
    "/properties/ComputeResources/InstanceTypes",
    "/properties/ComputeResources/LaunchTemplate",
    "/properties/ComputeResources/PlacementGroup",
    "/properties/ComputeResources/SecurityGroupIds",
    "/properties/ComputeResources/Subnets",
    "/properties/ComputeResources/Tags",
    "/properties/ComputeResources/Type"
  ],
  "writeOnlyProperties": [
    "/properties/ComputeResources/UpdateToLatestImageVersion",
    "/properties/ReplaceComputeEnvironment",
    "/properties/UpdatePolicy"
  ],
  "primaryIdentifier": [
    "/properties/ComputeEnvironmentArn"
  ]
}
