{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/OrganizationId",
  "/properties/Principal",
  "/properties/Action",
  "/properties/LayerVersionArn"
 ],
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Action": {
   "maxLength": 22,
   "minLength": 0,
   "pattern": "^lambda:GetLayerVersion$",
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "LayerVersionArn": {
   "type": "string"
  },
  "OrganizationId": {
   "maxLength": 34,
   "minLength": 0,
   "pattern": "^o-[a-z0-9]{10,32}$",
   "type": "string"
  },
  "Principal": {
   "pattern": "^\\d{12}|\\*|arn:(aws[a-zA-Z-]*):iam::\\d{12}:root$",
   "type": "string"
  }
 },
 "propertyTransform": {
  "/properties/Principal": "$join([\"^arn:aws[a-zA-Z-]*:iam::\",Principal,\":[a-zA-Z-]*\"]) $OR $join([\".*AWS.*[\", Principal, \"].*\"]) $OR $replace(Principal, /^arn:aws[a-zA-Z-]*:/, \"arn:aws[a-zA-Z-]*:\") $OR Principal"
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "LayerVersionArn",
  "Action",
  "Principal"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lambda.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::Lambda::LayerVersionPermission"
}
