{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ClusterName",
  "/properties/AddonName",
  "/properties/NamespaceConfig"
 ],
 "definitions": {
  "PodIdentityAssociation": {
   "additionalProperties": false,
   "properties": {
    "RoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "pattern": "^arn:aws(-cn|-us-gov|-iso(-[a-z])?)?:iam::\\d{12}:(role)\\/*",
     "type": "string"
    },
    "ServiceAccount": {
     "type": "string"
    }
   },
   "required": [
    "ServiceAccount",
    "RoleArn"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 127,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 255,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/ClusterName",
  "/properties/AddonName"
 ],
 "properties": {
  "AddonName": {
   "minLength": 1,
   "type": "string"
  },
  "AddonVersion": {
   "minLength": 1,
   "type": "string"
  },
  "Arn": {
   "type": "string"
  },
  "ClusterName": {
   "minLength": 1,
   "type": "string"
  },
  "ConfigurationValues": {
   "minLength": 1,
   "type": "string"
  },
  "NamespaceConfig": {
   "additionalProperties": false,
   "properties": {
    "Namespace": {
     "maxLength": 63,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Namespace"
   ],
   "type": "object"
  },
  "PodIdentityAssociations": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/PodIdentityAssociation"
   },
   "type": "array",
   "uniqueItems": true
  },
  "PreserveOnDelete": {
   "type": "boolean"
  },
  "ResolveConflicts": {
   "enum": [
    "NONE",
    "OVERWRITE",
    "PRESERVE"
   ],
   "minLength": 1,
   "type": "string"
  },
  "ServiceAccountRoleArn": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "ClusterName",
  "AddonName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-eks.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::EKS::Addon",
 "writeOnlyProperties": [
  "/properties/ResolveConflicts",
  "/properties/PreserveOnDelete",
  "/properties/PodIdentityAssociations"
 ]
}
