{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-create-eks-anywhere-subscription-request-schema.json",
  "title": "CreateEksAnywhereSubscriptionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-eks-anywhere-subscriptions-api-openapi.yml#/components/schemas/CreateEksAnywhereSubscriptionRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters."
    },
    "term": {
      "$ref": "#/$defs/EksAnywhereSubscriptionTerm"
    },
    "licenseQuantity": {
      "type": "integer",
      "description": "The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription."
    },
    "licenseType": {
      "type": "string",
      "enum": [
        "Cluster"
      ],
      "description": "The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster."
    },
    "autoRenew": {
      "type": "boolean",
      "description": "A boolean indicating whether the subscription auto renews at the end of the term."
    },
    "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": "The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription."
    }
  },
  "required": [
    "name",
    "term"
  ],
  "$defs": {
    "EksAnywhereSubscriptionTerm": {
      "type": "object",
      "properties": {
        "duration": {
          "type": "integer",
          "description": "The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month subscription."
        },
        "unit": {
          "type": "string",
          "enum": [
            "MONTHS"
          ],
          "description": "The term unit of the subscription. Valid value is MONTHS."
        }
      }
    }
  }
}