code: public static List<Image> describeAllImages() {
          // pass any credentials as aws-mock does not authenticate them at all
          AWSCredentials credentials = new BasicAWSCredentials("foo", "bar");
          AmazonEC2Client amazonEC2Client = new AmazonEC2Client(credentials);
  
          // the mock endpoint for ec2 which runs on your computer
          String ec2Endpoint = "http://localhost:8000/aws-mock/ec2-endpoint/";
          amazonEC2Client.setEndpoint(ec2Endpoint);
  
          // describe all AMIs in aws-mock.
          DescribeImagesResult result = amazonEC2Client.describeImages();
  
          return result.getImages();
      }
docs: Describe all available AMIs within aws-mock.
  
  @return a list of AMIs