public interface AMIApi
Modifier and Type | Method and Description |
---|---|
void |
addLaunchPermissionsToImageInRegion(String region,
Iterable<String> userIds,
Iterable<String> userGroups,
String imageId)
Adds
launchPermission s to an AMI. |
String |
createImageInRegion(String region,
String name,
String instanceId,
CreateImageOptions... options)
Creates an AMI that uses an Amazon EBS root device from a "running" or "stopped" instance.
|
void |
deregisterImageInRegion(String region,
String imageId)
Deregisters the specified AMI.
|
Set<? extends Image> |
describeImagesInRegion(String region,
DescribeImagesOptions... options)
Returns information about AMIs, AKIs, and ARIs.
|
Set<? extends Image> |
describeImagesInRegionWithFilter(String region,
com.google.common.collect.Multimap<String,String> filter,
DescribeImagesOptions... options)
Returns information about AMIs, AKIs, and ARIs.
|
Map<String,Image.EbsBlockDevice> |
getBlockDeviceMappingsForImageInRegion(String region,
String imageId)
Returns a map of device name to block device for the image.
|
Permission |
getLaunchPermissionForImageInRegion(String region,
String imageId)
Returns the
Permission s of an image. |
String |
registerImageFromManifestInRegion(String region,
String imageName,
String pathToManifest,
RegisterImageOptions... options)
Registers an AMI with Amazon EC2.
|
String |
registerUnixImageBackedByEbsInRegion(String region,
String imageName,
String ebsSnapshotId,
RegisterImageBackedByEbsOptions... options)
Registers an AMI with Amazon EC2.
|
void |
removeLaunchPermissionsFromImageInRegion(String region,
Iterable<String> userIds,
Iterable<String> userGroups,
String imageId) |
void |
resetLaunchPermissionsOnImageInRegion(String region,
String imageId)
Resets the
launchPermission s on an AMI. |
@Named(value="DescribeImages") Set<? extends Image> describeImagesInRegion(@Nullable String region, DescribeImagesOptions... options)
region
- AMIs are tied to the Region where its files are located within Amazon S3.InstanceApi#describeInstances
,
#describeImageAttribute
,
,
DescribeImagesOptions
@Named(value="DescribeImages") Set<? extends Image> describeImagesInRegionWithFilter(@Nullable String region, com.google.common.collect.Multimap<String,String> filter, DescribeImagesOptions... options)
region
- AMIs are tied to the Region where its files are located within Amazon S3.filter
- Multimap of filter key/values.InstanceApi#describeInstances
,
#describeImageAttribute
,
,
DescribeImagesOptions
@Named(value="CreateImage") String createImageInRegion(@Nullable String region, String name, String instanceId, CreateImageOptions... options)
region
- AMIs are tied to the Region where its files are located within Amazon S3.name
- The name of the AMI that was provided during image creation. 3-128 alphanumeric
characters, parenthesis (()), commas (,), slashes (/), dashes (-), or underscores(_)instanceId
- The ID of the instance.CreateImageOptions
,
InstanceApi#runInstances
,
InstanceApi#describeInstances
,
InstanceApi#terminateInstances
,
@Named(value="DeregisterImage") void deregisterImageInRegion(@Nullable String region, String imageId)
region
- AMIs are tied to the Region where its files are located within Amazon S3.imageId
- Unique ID of the AMI which was assigned during registration. To register an AMI, use
RegisterImage. To view the AMI IDs of AMIs that belong to your identity. use
DescribeImages.#describeImages
,
#registerImage
,
@Named(value="RegisterImage") String registerImageFromManifestInRegion(@Nullable String region, String imageName, String pathToManifest, RegisterImageOptions... options)
InstanceApi#runInstances
operation.
Each AMI is associated with an unique ID which is provided by the Amazon EC2 service through
this operation. If needed, you can deregister an AMI at any time.
region
- AMIs are tied to the Region where its files are located within Amazon S3.name
- The name of the AMI that was provided during image creation. 3-128 alphanumeric
characters, parenthesis (()), commas (,), slashes (/), dashes (-), or underscores(_)pathToManifest
- Full path to your AMI manifest in Amazon S3 storage.options
- Options to specify metadata such as architecture or secondary volumes to be
associated with this image.#describeImages
,
#deregisterImage
,
@Named(value="RegisterImage") String registerUnixImageBackedByEbsInRegion(@Nullable String region, String imageName, String ebsSnapshotId, RegisterImageBackedByEbsOptions... options)
InstanceApi#runInstances
operation. The root device name
is /dev/sda1
Each AMI is associated with an unique ID which is provided by the Amazon EC2 service through
this operation. If needed, you can deregister an AMI at any time.
region
- AMIs are tied to the Region where its files are located within Amazon S3.name
- The name of the AMI that was provided during image creation. 3-128 alphanumeric
characters, parenthesis (()), commas (,), slashes (/), dashes (-), or underscores(_)ebsSnapshotId
- The id of the root snapshot (e.g., snap-6eba6e06).options
- Options to specify metadata such as architecture or secondary volumes to be
associated with this image.#describeImages
,
#deregisterImage
,
@Named(value="ResetImageAttribute") void resetLaunchPermissionsOnImageInRegion(@Nullable String region, String imageId)
launchPermission
s on an AMI.@Named(value="ModifyImageAttribute") void addLaunchPermissionsToImageInRegion(@Nullable String region, Iterable<String> userIds, Iterable<String> userGroups, String imageId)
launchPermission
s to an AMI.@Named(value="ModifyImageAttribute") void removeLaunchPermissionsFromImageInRegion(@Nullable String region, Iterable<String> userIds, Iterable<String> userGroups, String imageId)
AMIApi#removeLaunchPermissionsToImageInRegion
@Named(value="DescribeImageAttribute") Permission getLaunchPermissionForImageInRegion(@Nullable String region, String imageId)
Permission
s of an image.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#describeImages
,
#modifyImageAttribute
,
#resetImageAttribute
,
,
DescribeImagesOptions
@Named(value="DescribeImageAttribute") Map<String,Image.EbsBlockDevice> getBlockDeviceMappingsForImageInRegion(@Nullable String region, String imageId)
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#describeImages
,
#modifyImageAttribute
,
#resetImageAttribute
,
,
DescribeImagesOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.