{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-update-capability-request-schema.json",
  "title": "UpdateCapabilityRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-capabilities-api-openapi.yml#/components/schemas/UpdateCapabilityRequest",
  "type": "object",
  "properties": {
    "clusterName": {
      "type": "string",
      "description": "The name of the Amazon EKS cluster that contains the capability you want to update configuration for."
    },
    "capabilityName": {
      "type": "string",
      "description": "The name of the capability to update configuration for."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. If you specify a new role ARN, the capability will start using the new role for all subsequent operations."
    },
    "configuration": {
      "$ref": "#/$defs/UpdateCapabilityConfiguration"
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation."
    },
    "deletePropagationPolicy": {
      "type": "string",
      "enum": [
        "RETAIN"
      ],
      "description": "The updated delete propagation policy for the capability. Currently, the only supported value is RETAIN."
    }
  },
  "required": [
    "clusterName",
    "capabilityName"
  ],
  "$defs": {
    "ArgoCdNetworkAccessConfigRequest": {
      "type": "object",
      "properties": {
        "vpceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of VPC endpoint IDs to associate with the managed Argo CD API server endpoint. Each VPC endpoint provides private connectivity from a specific VPC to the Argo CD server. You can specify multiple VPC endpoint IDs to enable access from multiple VPCs."
        }
      }
    },
    "ArgoCdRoleMapping": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "ADMIN",
            "EDITOR",
            "VIEWER"
          ],
          "description": "The Argo CD role to assign. Valid values are: ADMIN – Full administrative access to Argo CD. EDITOR – Edit access to Argo CD resources. VIEWER – Read-only access to Argo CD resources."
        },
        "identities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SsoIdentity"
          },
          "description": "A list of IAM Identity CenterIAM; Identity Center identities (users or groups) that should be assigned this Argo CD role."
        }
      },
      "required": [
        "role",
        "identities"
      ]
    },
    "SsoIdentity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the IAM Identity CenterIAM; Identity Center user or group."
        },
        "type": {
          "type": "string",
          "enum": [
            "SSO_USER",
            "SSO_GROUP"
          ],
          "description": "The type of identity. Valid values are SSO_USER or SSO_GROUP."
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "UpdateAckConfig": {
      "type": "object",
      "properties": {
        "enableCrossNamespace": {
          "type": "boolean",
          "description": "Specifies whether ACK controllers resolve resource references to resources in a different Kubernetes namespace. Set this value to false to require references to remain within the same namespace, or true to allow cross-namespace references. If you omit this field, the current value is unchanged."
        },
        "disabledServices": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An updated list of ACK service names whose controllers are turned off for this capability. This list replaces the previous list instead of merging with it, so specify the complete set of services that you want turned off. If you omit this field, the previous list is unchanged. To turn all services back on, specify an empty list."
        }
      }
    },
    "UpdateArgoCdConfig": {
      "type": "object",
      "properties": {
        "rbacRoleMappings": {
          "$ref": "#/$defs/UpdateRoleMappings"
        },
        "networkAccess": {
          "$ref": "#/$defs/ArgoCdNetworkAccessConfigRequest"
        }
      }
    },
    "UpdateCapabilityConfiguration": {
      "type": "object",
      "properties": {
        "argoCd": {
          "$ref": "#/$defs/UpdateArgoCdConfig"
        },
        "ack": {
          "$ref": "#/$defs/UpdateAckConfig"
        }
      }
    },
    "UpdateRoleMappings": {
      "type": "object",
      "properties": {
        "addOrUpdateRoleMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ArgoCdRoleMapping"
          },
          "description": "A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created."
        },
        "removeRoleMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ArgoCdRoleMapping"
          },
          "description": "A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (ADMIN, EDITOR, or VIEWER) and the identities to remove from that role."
        }
      }
    }
  }
}