{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Prefix"
 ],
 "definitions": {
  "AppliedForItem": {
   "enum": [
    "REPLICATION",
    "PULL_THROUGH_CACHE",
    "CREATE_ON_PUSH"
   ],
   "type": "string"
  },
  "EncryptionConfiguration": {
   "additionalProperties": false,
   "properties": {
    "EncryptionType": {
     "$ref": "#/definitions/EncryptionType"
    },
    "KmsKey": {
     "$ref": "#/definitions/KmsKey"
    }
   },
   "required": [
    "EncryptionType"
   ],
   "type": "object"
  },
  "EncryptionType": {
   "enum": [
    "AES256",
    "KMS",
    "KMS_DSSE"
   ],
   "type": "string"
  },
  "ImageTagMutabilityExclusionFilter": {
   "additionalProperties": false,
   "properties": {
    "ImageTagMutabilityExclusionFilterType": {
     "enum": [
      "WILDCARD"
     ],
     "type": "string"
    },
    "ImageTagMutabilityExclusionFilterValue": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[0-9a-zA-Z._*-]{1,128}",
     "type": "string"
    }
   },
   "required": [
    "ImageTagMutabilityExclusionFilterType",
    "ImageTagMutabilityExclusionFilterValue"
   ],
   "type": "object"
  },
  "KmsKey": {
   "maxLength": 2048,
   "minLength": 1,
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Prefix"
 ],
 "properties": {
  "AppliedFor": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/AppliedForItem"
   },
   "type": "array",
   "uniqueItems": true
  },
  "CreatedAt": {
   "type": "string"
  },
  "CustomRoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 2048,
   "minLength": 0,
   "pattern": "^arn:aws[-a-z0-9]*:iam::[0-9]{12}:role/[A-Za-z0-9+=,-.@_]*$",
   "type": "string"
  },
  "Description": {
   "maxLength": 256,
   "minLength": 0,
   "type": "string"
  },
  "EncryptionConfiguration": {
   "$ref": "#/definitions/EncryptionConfiguration"
  },
  "ImageTagMutability": {
   "enum": [
    "MUTABLE",
    "IMMUTABLE",
    "IMMUTABLE_WITH_EXCLUSION",
    "MUTABLE_WITH_EXCLUSION"
   ],
   "type": "string"
  },
  "ImageTagMutabilityExclusionFilters": {
   "insertionOrder": true,
   "items": {
    "$ref": "#/definitions/ImageTagMutabilityExclusionFilter"
   },
   "maxItems": 5,
   "minItems": 1,
   "type": "array"
  },
  "LifecyclePolicy": {
   "maxLength": 30720,
   "minLength": 100,
   "type": "string"
  },
  "Prefix": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^([a-z0-9]+((\\.|_|__|-+)[a-z0-9]+)*(\\/[a-z0-9]+((\\.|_|__|-+)[a-z0-9]+)*)*\\/?|ROOT)$",
   "type": "string"
  },
  "RepositoryPolicy": {
   "maxLength": 10240,
   "minLength": 0,
   "type": "string"
  },
  "ResourceTags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "UpdatedAt": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/CreatedAt",
  "/properties/UpdatedAt"
 ],
 "required": [
  "Prefix",
  "AppliedFor"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ecr.git",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::ECR::RepositoryCreationTemplate"
}
