{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-eks-fargateprofile.json",
  "title": "AWSEKSFargateProfileProperties",
  "description": "Resource Schema for AWS::EKS::FargateProfile. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-eks.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-eks-fargateprofile.json",
    "sourceSha256": "cde3e761d1e98ed8dc70c3060664028a03407b360cab0bc53916d6e589ce31cf"
  },
  "type": "object",
  "properties": {
    "ClusterName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the Cluster"
    },
    "FargateProfileName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of FargateProfile"
    },
    "PodExecutionRoleArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IAM policy arn for pods"
    },
    "Subnets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Selectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Selector"
      },
      "minItems": 1
    },
    "Tags": {
      "type": "array",
      "uniqueItems": true,
      "description": "An array of key-value pairs to apply to this resource.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::EKS::FargateProfile",
  "primaryIdentifier": [
    "/properties/ClusterName",
    "/properties/FargateProfileName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-eks.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSEKSFargateProfileTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    },
    "Selector": {
      "type": "object",
      "title": "AWSEKSFargateProfileSelectorDefinition",
      "properties": {
        "Namespace": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Labels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Label"
          }
        }
      },
      "required": [
        "Namespace"
      ],
      "additionalProperties": false
    },
    "Label": {
      "description": "A key-value pair to associate with a pod.",
      "type": "object",
      "title": "AWSEKSFargateProfileLabelDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the label."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the label. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "ClusterName",
    "PodExecutionRoleArn",
    "Selectors"
  ],
  "createOnlyProperties": [
    "/properties/ClusterName",
    "/properties/FargateProfileName",
    "/properties/PodExecutionRoleArn",
    "/properties/Subnets",
    "/properties/Selectors"
  ]
}
