Interface AWSAMIApi

  • All Superinterfaces:
    AMIApi

    public interface AWSAMIApi
    extends AMIApi
    Provides access to AMI Services.

    • Method Detail

      • getProductCodesForImageInRegion

        @Named("DescribeImageAttribute")
        @POST
        @Path("/")
        Set<String> getProductCodesForImageInRegion​(@Nullable
                                                    String region,
                                                    @FormParam("ImageId")
                                                    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

        @Named("ModifyImageAttribute")
        @POST
        @Path("/")
        void addProductCodesToImageInRegion​(@Nullable
                                            String region,
                                            Iterable<String> productCodes,
                                            @FormParam("ImageId")
                                            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

        @Named("ModifyImageAttribute")
        @POST
        @Path("/")
        void removeProductCodesFromImageInRegion​(@Nullable
                                                 String region,
                                                 Iterable<String> productCodes,
                                                 @FormParam("ImageId")
                                                 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,