modzyClient.submitJobAWSS3
Submit a job using aws s3 files as inputs
modzyClient.submitJobAWSS3(String modelId, String versionId, String accessKeyID, String secretAccessKey, String region, List<S3FileRef> s3FileRefSource)
Submits a job based on data files stored in AWS S3 buckets. It is possible to configure the patterns on the S3FileRef
object.
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
|
| Model identifier provided by Modzy. |
|
|
| The model’s version number. It follows the semantic versioning format. |
|
|
| The AWS access key |
|
|
| The AWS secret access key |
|
|
| The AWS Region |
|
|
| A list of inputs to process |
|
Returns
com.modzy.sdk.model.Job
object with the job status obtained from the server
Examples
List<S3FileRef> inputs = new ArrayList<>();
inputs.add( new S3FileRef("some-bucket", "some-key") );
Job job = modzyClient.submitJobAWSS3("ed542963de", "1.0.1", "accessKey", "secretKey", "us-east-1", inputs);
More specific customization options are provided by the method [modzyClient.getJobClient.submitJob
]{doc:javamodzyclientsubmitjob}
JobInput<S3FileRef> jobInput = new JobInputS3("accessKey", "secretAccessKey", "us-east-1");
Map<String,S3FileRef> mapSource = new HashMap<>();
mapSource.put("image", new S3FileRef("someBucket", "someKey"));
jobInput.addSource("my-input", mapSource);
Job job = modzyClient.submitJob("ed542963de", "1.0.1", jobInput, false);
Updated 9 months ago