Package qa.justtestlah.awsdevicefarm
Class AWSService
- java.lang.Object
-
- qa.justtestlah.awsdevicefarm.AWSService
-
public class AWSService extends Object
Service class to interact with AWS, basically a wrapper aroundAWSDeviceFarm
.
-
-
Constructor Summary
Constructors Constructor Description AWSService()
ConstructorAWSService(String awsAccessKey, String awsSecretKey, String awsRegion)
ConstructorAWSService(Map<String,String> awsConfiguration)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.services.devicefarm.AWSDeviceFarm
getAws()
com.amazonaws.services.devicefarm.model.Upload
upload(File file, String projectArn, com.amazonaws.services.devicefarm.model.UploadType uploadType, boolean synchronous)
Upload a file to AWS Device Farm (modified from https://github.com/awslabs/aws-device-farm-jenkins-plugin)
-
-
-
Method Detail
-
getAws
public com.amazonaws.services.devicefarm.AWSDeviceFarm getAws()
- Returns:
AWSDeviceFarm
-
upload
public com.amazonaws.services.devicefarm.model.Upload upload(File file, String projectArn, com.amazonaws.services.devicefarm.model.UploadType uploadType, boolean synchronous)
Upload a file to AWS Device Farm (modified from https://github.com/awslabs/aws-device-farm-jenkins-plugin)- Parameters:
file
- the file to uploadprojectArn
- the ARN of the Device Farm projectuploadType
- theUploadType
synchronous
- true, if the execution should wait for the download to succeed- Returns:
Upload
-
-