{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-create-fargate-profile-request-schema.json",
  "title": "CreateFargateProfileRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-fargate-profiles-api-openapi.yml#/components/schemas/CreateFargateProfileRequest",
  "type": "object",
  "properties": {
    "fargateProfileName": {
      "type": "string",
      "description": "The name of the Fargate profile."
    },
    "clusterName": {
      "type": "string",
      "description": "The name of your cluster."
    },
    "podExecutionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Pod execution role to use for a Pod that matches the selectors in the Fargate profile. The Pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod execution role in the Amazon EKS User Guide."
    },
    "subnets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter."
    },
    "selectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FargateProfileSelector"
      },
      "description": "The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile."
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources."
    }
  },
  "required": [
    "fargateProfileName",
    "clusterName",
    "podExecutionRoleArn"
  ],
  "$defs": {
    "FargateProfileSelector": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "description": "The Kubernetes namespace that the selector should match."
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match."
        }
      }
    }
  }
}