{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ecr-registrypolicy.json",
  "title": "AWSECRRegistryPolicyProperties",
  "description": "The AWS::ECR::RegistryPolicy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide: <https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html>. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ecr.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ecr-registrypolicy.json",
    "sourceSha256": "6d65a2bd428a9ecf1d7fb2d1505f20955142d0f72c2204e49094e44150d17986"
  },
  "type": "object",
  "properties": {
    "PolicyText": {
      "type": "object",
      "description": "The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions (https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the Amazon Elastic Container Registry User Guide."
    }
  },
  "typeName": "AWS::ECR::RegistryPolicy",
  "$defs": {
    "RegistryId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 12,
          "maxLength": 12,
          "pattern": "^[0-9]{12}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The registry id.",
      "title": "AWSECRRegistryPolicyRegistryIdDefinition"
    }
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ecr.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/RegistryId"
  ],
  "required": [
    "PolicyText"
  ],
  "readOnlyProperties": [
    "/properties/RegistryId"
  ]
}
