Class AWSService


  • public class AWSService
    extends Object
    Service class to interact with AWS, basically a wrapper around AWSDeviceFarm.
    • Constructor Detail

      • AWSService

        public AWSService()
        Constructor
      • AWSService

        public AWSService​(Map<String,​String> awsConfiguration)
        Constructor
        Parameters:
        awsConfiguration - key-value map holding AWS configuration
      • AWSService

        public AWSService​(String awsAccessKey,
                          String awsSecretKey,
                          String awsRegion)
        Constructor
        Parameters:
        awsAccessKey - the AWS access key
        awsSecretKey - the AWS secret key
        awsRegion - the AWS region
    • 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 upload
        projectArn - the ARN of the Device Farm project
        uploadType - the UploadType
        synchronous - true, if the execution should wait for the download to succeed
        Returns:
        Upload