org.jclouds.aws.ec2.services
Interface AWSAMIClient

All Superinterfaces:
AMIClient

public interface AWSAMIClient
extends AMIClient

Provides access to EC2 via their REST API.

Author:
Adrian Cole

Method Summary
 void addProductCodesToImageInRegion(String region, Iterable<String> productCodes, String imageId)
          Adds productCodes to an AMI.
 Set<String> getProductCodesForImageInRegion(String region, String imageId)
          Returns the Product Codes of an image.
 void removeProductCodesFromImageInRegion(String region, Iterable<String> productCodes, String imageId)
          Removes productCodes from an AMI.
 
Methods inherited from interface org.jclouds.ec2.services.AMIClient
addLaunchPermissionsToImageInRegion, createImageInRegion, deregisterImageInRegion, describeImagesInRegion, getBlockDeviceMappingsForImageInRegion, getLaunchPermissionForImageInRegion, registerImageFromManifestInRegion, registerUnixImageBackedByEbsInRegion, removeLaunchPermissionsFromImageInRegion, resetLaunchPermissionsOnImageInRegion
 

Method Detail

getProductCodesForImageInRegion

Set<String> getProductCodesForImageInRegion(@Nullable
                                            String region,
                                            String imageId)
Returns the Product Codes of an image.

Parameters:
region - AMIs are tied to the Region where its files are located within Amazon S3.
imageId - The ID of the AMI for which an attribute will be described
See Also:
#describeImages, #modifyImageAttribute, #resetImageAttribute, , DescribeImagesOptions

addProductCodesToImageInRegion

void addProductCodesToImageInRegion(@Nullable
                                    String region,
                                    Iterable<String> productCodes,
                                    String imageId)
Adds productCodes to an AMI.

Parameters:
region - AMIs are tied to the Region where its files are located within Amazon S3.
productCodes - Product Codes
imageId - The AMI ID.
See Also:
#removeProductCodesFromImage, #describeImageAttribute, #resetImageAttribute,

removeProductCodesFromImageInRegion

void removeProductCodesFromImageInRegion(@Nullable
                                         String region,
                                         Iterable<String> productCodes,
                                         String imageId)
Removes productCodes from an AMI.

Parameters:
region - AMIs are tied to the Region where its files are located within Amazon S3.
productCodes - Product Codes
imageId - The AMI ID.
See Also:
#addProductCodesToImage, #describeImageAttribute, #resetImageAttribute,


Copyright © 2009-2012 jclouds. All Rights Reserved.