@Bean
@Lazy
public ScheduledJobType bucketIngest() {
ScheduledJobType result = scheduledJobTypeFactory.create("BucketIngest");
result.setLabel("Bucket ingest");
result.setDescription("This job downloads a file from a URL and imports it into MOLGENIS.");
result.setSchema(
"{'title': 'Bucket Ingest Job','type': 'object','properties': { 'bucket': {'type': 'string', 'description': 'The name of the bucket.'},"
+ "'key': {'type': 'string', 'description': 'Expression to match the file key'}, 'accessKey': { 'type': 'string', "
+ "'description': 'the access key to be used to login to the amazon bucket'},'secretKey': {'type': 'string', "
+ "'description': 'the secretkey to be used to login to the amazon bucket'},'expression': {'type': 'boolean', "
+ "'description': 'Is the key an expression or an exact match'},'extension': {'type': 'string', "
+ "'description': 'Optional extension of the file, is not part of the key in the bucket'},'region': {'type': 'string', "
+ "'description': 'The region where the amazon bucket is located'},'targetEntityId': {'type': 'string', "
+ "'description': 'Target EntityType ID'}},"
+ "'required': ['bucket','key','accessKey','secretKey','expression','region']}");
result.setJobExecutionType(amazonBucketJobExecutionMetaData);
return result;
}
}