{
  "typeName" : "AWS::Greengrass::FunctionDefinitionVersion",
  "description" : "Resource Type definition for AWS::Greengrass::FunctionDefinitionVersion",
  "additionalProperties" : false,
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "DefaultConfig" : {
      "$ref" : "#/definitions/DefaultConfig"
    },
    "Functions" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Function"
      }
    },
    "FunctionDefinitionId" : {
      "type" : "string"
    }
  },
  "definitions" : {
    "DefaultConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Execution" : {
          "$ref" : "#/definitions/Execution"
        }
      },
      "required" : [ "Execution" ]
    },
    "Function" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "FunctionArn" : {
          "type" : "string"
        },
        "FunctionConfiguration" : {
          "$ref" : "#/definitions/FunctionConfiguration"
        },
        "Id" : {
          "type" : "string"
        }
      },
      "required" : [ "FunctionArn", "FunctionConfiguration", "Id" ]
    },
    "Execution" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IsolationMode" : {
          "type" : "string"
        },
        "RunAs" : {
          "$ref" : "#/definitions/RunAs"
        }
      }
    },
    "FunctionConfiguration" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "MemorySize" : {
          "type" : "integer"
        },
        "Pinned" : {
          "type" : "boolean"
        },
        "ExecArgs" : {
          "type" : "string"
        },
        "Timeout" : {
          "type" : "integer"
        },
        "EncodingType" : {
          "type" : "string"
        },
        "Environment" : {
          "$ref" : "#/definitions/Environment"
        },
        "Executable" : {
          "type" : "string"
        }
      }
    },
    "RunAs" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Uid" : {
          "type" : "integer"
        },
        "Gid" : {
          "type" : "integer"
        }
      }
    },
    "Environment" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Variables" : {
          "type" : "object"
        },
        "Execution" : {
          "$ref" : "#/definitions/Execution"
        },
        "ResourceAccessPolicies" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/ResourceAccessPolicy"
          }
        },
        "AccessSysfs" : {
          "type" : "boolean"
        }
      }
    },
    "ResourceAccessPolicy" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ResourceId" : {
          "type" : "string"
        },
        "Permission" : {
          "type" : "string"
        }
      },
      "required" : [ "ResourceId" ]
    }
  },
  "required" : [ "FunctionDefinitionId", "Functions" ],
  "createOnlyProperties" : [ "/properties/Functions", "/properties/FunctionDefinitionId", "/properties/DefaultConfig" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}