{
  "typeName" : "AWS::Greengrass::ResourceDefinitionVersion",
  "description" : "Resource Type definition for AWS::Greengrass::ResourceDefinitionVersion",
  "additionalProperties" : false,
  "properties" : {
    "ResourceDefinitionId" : {
      "type" : "string"
    },
    "Resources" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/ResourceInstance"
      }
    },
    "Id" : {
      "type" : "string"
    }
  },
  "definitions" : {
    "SecretsManagerSecretResourceData" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ARN" : {
          "type" : "string"
        },
        "AdditionalStagingLabelsToDownload" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      },
      "required" : [ "ARN" ]
    },
    "ResourceDataContainer" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "LocalVolumeResourceData" : {
          "$ref" : "#/definitions/LocalVolumeResourceData"
        },
        "LocalDeviceResourceData" : {
          "$ref" : "#/definitions/LocalDeviceResourceData"
        },
        "S3MachineLearningModelResourceData" : {
          "$ref" : "#/definitions/S3MachineLearningModelResourceData"
        },
        "SecretsManagerSecretResourceData" : {
          "$ref" : "#/definitions/SecretsManagerSecretResourceData"
        },
        "SageMakerMachineLearningModelResourceData" : {
          "$ref" : "#/definitions/SageMakerMachineLearningModelResourceData"
        }
      }
    },
    "SageMakerMachineLearningModelResourceData" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "OwnerSetting" : {
          "$ref" : "#/definitions/ResourceDownloadOwnerSetting"
        },
        "SageMakerJobArn" : {
          "type" : "string"
        },
        "DestinationPath" : {
          "type" : "string"
        }
      },
      "required" : [ "DestinationPath", "SageMakerJobArn" ]
    },
    "ResourceInstance" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ResourceDataContainer" : {
          "$ref" : "#/definitions/ResourceDataContainer"
        },
        "Id" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      },
      "required" : [ "ResourceDataContainer", "Id", "Name" ]
    },
    "LocalVolumeResourceData" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SourcePath" : {
          "type" : "string"
        },
        "DestinationPath" : {
          "type" : "string"
        },
        "GroupOwnerSetting" : {
          "$ref" : "#/definitions/GroupOwnerSetting"
        }
      },
      "required" : [ "SourcePath", "DestinationPath" ]
    },
    "S3MachineLearningModelResourceData" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "OwnerSetting" : {
          "$ref" : "#/definitions/ResourceDownloadOwnerSetting"
        },
        "DestinationPath" : {
          "type" : "string"
        },
        "S3Uri" : {
          "type" : "string"
        }
      },
      "required" : [ "DestinationPath", "S3Uri" ]
    },
    "LocalDeviceResourceData" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SourcePath" : {
          "type" : "string"
        },
        "GroupOwnerSetting" : {
          "$ref" : "#/definitions/GroupOwnerSetting"
        }
      },
      "required" : [ "SourcePath" ]
    },
    "ResourceDownloadOwnerSetting" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "GroupPermission" : {
          "type" : "string"
        },
        "GroupOwner" : {
          "type" : "string"
        }
      },
      "required" : [ "GroupOwner", "GroupPermission" ]
    },
    "GroupOwnerSetting" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "AutoAddGroupOwner" : {
          "type" : "boolean"
        },
        "GroupOwner" : {
          "type" : "string"
        }
      },
      "required" : [ "AutoAddGroupOwner" ]
    }
  },
  "required" : [ "Resources", "ResourceDefinitionId" ],
  "createOnlyProperties" : [ "/properties/Resources", "/properties/ResourceDefinitionId" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}