{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-greengrassv2-componentversion.json",
  "title": "AWSGreengrassV2ComponentVersionProperties",
  "description": "Resource for Greengrass component version.. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-greengrassv2-componentversion.json",
    "sourceSha256": "77a3a0c19480122b6d61cd6a6d0ac1dff7c945cadcf4e42a16c06d239d2949b2"
  },
  "type": "object",
  "properties": {
    "InlineRecipe": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LambdaFunction": {
      "$ref": "#/$defs/LambdaFunctionRecipeSource"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": false,
      "maxProperties": 50,
      "patternProperties": {
        "^(?!aws:)[a-zA-Z+-=._:/]{1,128}$": {
          "type": "string",
          "maxLength": 256
        }
      }
    }
  },
  "typeName": "AWS::GreengrassV2::ComponentVersion",
  "additionalIdentifiers": [
    [
      "/properties/ComponentName",
      "/properties/ComponentVersion"
    ]
  ],
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "$defs": {
    "LambdaFunctionRecipeSource": {
      "type": "object",
      "properties": {
        "LambdaArn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^arn:aws(-(cn|us-gov))?:lambda:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ComponentName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ComponentVersion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ComponentPlatforms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentPlatform"
          },
          "insertionOrder": false
        },
        "ComponentDependencies": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            ".*": {
              "$ref": "#/$defs/ComponentDependencyRequirement"
            }
          }
        },
        "ComponentLambdaParameters": {
          "$ref": "#/$defs/LambdaExecutionParameters"
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaFunctionRecipeSourceDefinition",
      "additionalProperties": false
    },
    "ComponentPlatform": {
      "type": "object",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Attributes": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            ".+": {
              "type": "string"
            }
          }
        }
      },
      "title": "AWSGreengrassV2ComponentVersionComponentPlatformDefinition",
      "additionalProperties": false
    },
    "ComponentDependencyRequirement": {
      "type": "object",
      "properties": {
        "VersionRequirement": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DependencyType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "SOFT",
                "HARD"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSGreengrassV2ComponentVersionComponentDependencyRequirementDefinition",
      "additionalProperties": false
    },
    "LambdaExecutionParameters": {
      "type": "object",
      "properties": {
        "EventSources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LambdaEventSource"
          },
          "insertionOrder": false
        },
        "MaxQueueSize": {
          "type": "integer"
        },
        "MaxInstancesCount": {
          "type": "integer"
        },
        "MaxIdleTimeInSeconds": {
          "type": "integer"
        },
        "TimeoutInSeconds": {
          "type": "integer"
        },
        "StatusTimeoutInSeconds": {
          "type": "integer"
        },
        "Pinned": {
          "type": "boolean"
        },
        "InputPayloadEncodingType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "json",
                "binary"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ExecArgs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "insertionOrder": true
        },
        "EnvironmentVariables": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            ".+": {
              "type": "string"
            }
          }
        },
        "LinuxProcessParams": {
          "$ref": "#/$defs/LambdaLinuxProcessParams"
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaExecutionParametersDefinition",
      "additionalProperties": false
    },
    "LambdaEventSource": {
      "type": "object",
      "properties": {
        "Topic": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "PUB_SUB",
                "IOT_CORE"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaEventSourceDefinition",
      "additionalProperties": false
    },
    "LambdaLinuxProcessParams": {
      "type": "object",
      "properties": {
        "IsolationMode": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "GreengrassContainer",
                "NoContainer"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ContainerParams": {
          "$ref": "#/$defs/LambdaContainerParams"
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaLinuxProcessParamsDefinition",
      "additionalProperties": false
    },
    "LambdaContainerParams": {
      "type": "object",
      "properties": {
        "MemorySizeInKB": {
          "type": "integer"
        },
        "MountROSysfs": {
          "type": "boolean"
        },
        "Volumes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LambdaVolumeMount"
          },
          "insertionOrder": false
        },
        "Devices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LambdaDeviceMount"
          },
          "insertionOrder": false
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaContainerParamsDefinition",
      "additionalProperties": false
    },
    "LambdaVolumeMount": {
      "type": "object",
      "properties": {
        "SourcePath": {
          "$ref": "#/$defs/FilesystemPath"
        },
        "DestinationPath": {
          "$ref": "#/$defs/FilesystemPath"
        },
        "Permission": {
          "$ref": "#/$defs/LambdaFilesystemPermission"
        },
        "AddGroupOwner": {
          "$ref": "#/$defs/LambdaAddGroupOwnerBoolean"
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaVolumeMountDefinition",
      "additionalProperties": false
    },
    "LambdaDeviceMount": {
      "type": "object",
      "properties": {
        "Path": {
          "$ref": "#/$defs/FilesystemPath"
        },
        "Permission": {
          "$ref": "#/$defs/LambdaFilesystemPermission"
        },
        "AddGroupOwner": {
          "$ref": "#/$defs/LambdaAddGroupOwnerBoolean"
        }
      },
      "title": "AWSGreengrassV2ComponentVersionLambdaDeviceMountDefinition",
      "additionalProperties": false
    },
    "FilesystemPath": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSGreengrassV2ComponentVersionFilesystemPathDefinition"
    },
    "LambdaFilesystemPermission": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ro",
            "rw"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSGreengrassV2ComponentVersionLambdaFilesystemPermissionDefinition"
    },
    "LambdaAddGroupOwnerBoolean": {
      "type": "boolean",
      "title": "AWSGreengrassV2ComponentVersionLambdaAddGroupOwnerBooleanDefinition"
    }
  },
  "createOnlyProperties": [
    "/properties/LambdaFunction",
    "/properties/InlineRecipe"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/ComponentName",
    "/properties/ComponentVersion"
  ],
  "writeOnlyProperties": [
    "/properties/LambdaFunction",
    "/properties/InlineRecipe"
  ]
}
