{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/FunctionName",
  "/properties/Description",
  "/properties/CodeSha256",
  "/properties/ProvisionedConcurrencyConfig",
  "/properties/RuntimePolicy"
 ],
 "definitions": {
  "FunctionScalingConfig": {
   "additionalProperties": false,
   "properties": {
    "MaxExecutionEnvironments": {
     "maximum": 15000,
     "minimum": 0,
     "type": "integer"
    },
    "MinExecutionEnvironments": {
     "maximum": 15000,
     "minimum": 0,
     "type": "integer"
    }
   },
   "type": "object"
  },
  "ProvisionedConcurrencyConfiguration": {
   "additionalProperties": false,
   "properties": {
    "ProvisionedConcurrentExecutions": {
     "type": "integer"
    }
   },
   "required": [
    "ProvisionedConcurrentExecutions"
   ],
   "type": "object"
  },
  "RuntimePolicy": {
   "additionalProperties": false,
   "properties": {
    "RuntimeVersionArn": {
     "maxLength": 2048,
     "minLength": 26,
     "pattern": "^arn:(aws[a-zA-Z-]*):lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}::runtime:.+$",
     "type": "string"
    },
    "UpdateRuntimeOn": {
     "type": "string"
    }
   },
   "required": [
    "UpdateRuntimeOn"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/FunctionArn"
 ],
 "properties": {
  "CodeSha256": {
   "type": "string"
  },
  "Description": {
   "maxLength": 256,
   "minLength": 0,
   "type": "string"
  },
  "FunctionArn": {
   "pattern": "^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
   "type": "string"
  },
  "FunctionName": {
   "maxLength": 140,
   "minLength": 1,
   "pattern": "^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
   "type": "string"
  },
  "FunctionScalingConfig": {
   "$ref": "#/definitions/FunctionScalingConfig"
  },
  "ProvisionedConcurrencyConfig": {
   "$ref": "#/definitions/ProvisionedConcurrencyConfiguration"
  },
  "RuntimePolicy": {
   "$ref": "#/definitions/RuntimePolicy"
  },
  "Version": {
   "type": "string"
  }
 },
 "propertyTransform": {
  "/properties/FunctionName": "$split(FunctionName, \":\")[-1] $OR FunctionName"
 },
 "readOnlyProperties": [
  "/properties/Version",
  "/properties/FunctionArn"
 ],
 "required": [
  "FunctionName"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::Lambda::Version"
}
