com.amazonaws.services.ec2
Class AmazonEC2AsyncClient

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceClient
      extended by com.amazonaws.services.ec2.AmazonEC2Client
          extended by com.amazonaws.services.ec2.AmazonEC2AsyncClient
All Implemented Interfaces:
AmazonEC2, AmazonEC2Async

public class AmazonEC2AsyncClient
extends AmazonEC2Client
implements AmazonEC2Async

Asynchronous client for accessing AmazonEC2. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.

Amazon EC2's simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon's proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. Amazon EC2 provides developers the tools to build failure resilient applications and isolate themselves from common failure scenarios.

Visit http://aws.amazon.com/ec2/ for more information.


Constructor Summary
AmazonEC2AsyncClient()
          Constructs a new asynchronous client to invoke service methods on AmazonEC2.
AmazonEC2AsyncClient(AWSCredentials awsCredentials)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials.
AmazonEC2AsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials, executor service, and client configuration options.
AmazonEC2AsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials and executor service.
AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider.
AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider, executor service, and client configuration options.
AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider and executor service.
AmazonEC2AsyncClient(ClientConfiguration clientConfiguration)
          Constructs a new asynchronous client to invoke service methods on AmazonEC2.
 
Method Summary
 Future<Void> activateLicenseAsync(ActivateLicenseRequest activateLicenseRequest)
           Activates a specific number of licenses for a 90-day period.
 Future<Void> activateLicenseAsync(ActivateLicenseRequest activateLicenseRequest, AsyncHandler<ActivateLicenseRequest,Void> asyncHandler)
           Activates a specific number of licenses for a 90-day period.
 Future<AllocateAddressResult> allocateAddressAsync(AllocateAddressRequest allocateAddressRequest)
           The AllocateAddress operation acquires an elastic IP address for use with your account.
 Future<AllocateAddressResult> allocateAddressAsync(AllocateAddressRequest allocateAddressRequest, AsyncHandler<AllocateAddressRequest,AllocateAddressResult> asyncHandler)
           The AllocateAddress operation acquires an elastic IP address for use with your account.
 Future<AssociateAddressResult> associateAddressAsync(AssociateAddressRequest associateAddressRequest)
           The AssociateAddress operation associates an elastic IP address with an instance.
 Future<AssociateAddressResult> associateAddressAsync(AssociateAddressRequest associateAddressRequest, AsyncHandler<AssociateAddressRequest,AssociateAddressResult> asyncHandler)
           The AssociateAddress operation associates an elastic IP address with an instance.
 Future<AttachVolumeResult> attachVolumeAsync(AttachVolumeRequest attachVolumeRequest)
           Attach a previously created volume to a running instance.
 Future<AttachVolumeResult> attachVolumeAsync(AttachVolumeRequest attachVolumeRequest, AsyncHandler<AttachVolumeRequest,AttachVolumeResult> asyncHandler)
           Attach a previously created volume to a running instance.
 Future<Void> authorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest)
           The AuthorizeSecurityGroupIngress operation adds permissions to a security group.
 Future<Void> authorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest, AsyncHandler<AuthorizeSecurityGroupIngressRequest,Void> asyncHandler)
           The AuthorizeSecurityGroupIngress operation adds permissions to a security group.
 Future<BundleInstanceResult> bundleInstanceAsync(BundleInstanceRequest bundleInstanceRequest)
           The BundleInstance operation request that an instance is bundled the next time it boots.
 Future<BundleInstanceResult> bundleInstanceAsync(BundleInstanceRequest bundleInstanceRequest, AsyncHandler<BundleInstanceRequest,BundleInstanceResult> asyncHandler)
           The BundleInstance operation request that an instance is bundled the next time it boots.
 Future<CancelBundleTaskResult> cancelBundleTaskAsync(CancelBundleTaskRequest cancelBundleTaskRequest)
           CancelBundleTask operation cancels a pending or in-progress bundling task.
 Future<CancelBundleTaskResult> cancelBundleTaskAsync(CancelBundleTaskRequest cancelBundleTaskRequest, AsyncHandler<CancelBundleTaskRequest,CancelBundleTaskResult> asyncHandler)
           CancelBundleTask operation cancels a pending or in-progress bundling task.
 Future<Void> cancelConversionTaskAsync(CancelConversionTaskRequest cancelConversionTaskRequest)
           
 Future<Void> cancelConversionTaskAsync(CancelConversionTaskRequest cancelConversionTaskRequest, AsyncHandler<CancelConversionTaskRequest,Void> asyncHandler)
           
 Future<Void> cancelExportTaskAsync(CancelExportTaskRequest cancelExportTaskRequest)
           
 Future<Void> cancelExportTaskAsync(CancelExportTaskRequest cancelExportTaskRequest, AsyncHandler<CancelExportTaskRequest,Void> asyncHandler)
           
 Future<CancelReservedInstancesListingResult> cancelReservedInstancesListingAsync(CancelReservedInstancesListingRequest cancelReservedInstancesListingRequest)
           
 Future<CancelReservedInstancesListingResult> cancelReservedInstancesListingAsync(CancelReservedInstancesListingRequest cancelReservedInstancesListingRequest, AsyncHandler<CancelReservedInstancesListingRequest,CancelReservedInstancesListingResult> asyncHandler)
           
 Future<CancelSpotInstanceRequestsResult> cancelSpotInstanceRequestsAsync(CancelSpotInstanceRequestsRequest cancelSpotInstanceRequestsRequest)
           Cancels one or more Spot Instance requests.
 Future<CancelSpotInstanceRequestsResult> cancelSpotInstanceRequestsAsync(CancelSpotInstanceRequestsRequest cancelSpotInstanceRequestsRequest, AsyncHandler<CancelSpotInstanceRequestsRequest,CancelSpotInstanceRequestsResult> asyncHandler)
           Cancels one or more Spot Instance requests.
 Future<ConfirmProductInstanceResult> confirmProductInstanceAsync(ConfirmProductInstanceRequest confirmProductInstanceRequest)
           The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance.
 Future<ConfirmProductInstanceResult> confirmProductInstanceAsync(ConfirmProductInstanceRequest confirmProductInstanceRequest, AsyncHandler<ConfirmProductInstanceRequest,ConfirmProductInstanceResult> asyncHandler)
           The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance.
 Future<CreateImageResult> createImageAsync(CreateImageRequest createImageRequest)
           Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance.
 Future<CreateImageResult> createImageAsync(CreateImageRequest createImageRequest, AsyncHandler<CreateImageRequest,CreateImageResult> asyncHandler)
           Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance.
 Future<CreateInstanceExportTaskResult> createInstanceExportTaskAsync(CreateInstanceExportTaskRequest createInstanceExportTaskRequest)
           
 Future<CreateInstanceExportTaskResult> createInstanceExportTaskAsync(CreateInstanceExportTaskRequest createInstanceExportTaskRequest, AsyncHandler<CreateInstanceExportTaskRequest,CreateInstanceExportTaskResult> asyncHandler)
           
 Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest createKeyPairRequest)
           The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances.
 Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest createKeyPairRequest, AsyncHandler<CreateKeyPairRequest,CreateKeyPairResult> asyncHandler)
           The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances.
 Future<Void> createPlacementGroupAsync(CreatePlacementGroupRequest createPlacementGroupRequest)
           Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched.
 Future<Void> createPlacementGroupAsync(CreatePlacementGroupRequest createPlacementGroupRequest, AsyncHandler<CreatePlacementGroupRequest,Void> asyncHandler)
           Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched.
 Future<CreateReservedInstancesListingResult> createReservedInstancesListingAsync(CreateReservedInstancesListingRequest createReservedInstancesListingRequest)
           
 Future<CreateReservedInstancesListingResult> createReservedInstancesListingAsync(CreateReservedInstancesListingRequest createReservedInstancesListingRequest, AsyncHandler<CreateReservedInstancesListingRequest,CreateReservedInstancesListingResult> asyncHandler)
           
 Future<CreateSecurityGroupResult> createSecurityGroupAsync(CreateSecurityGroupRequest createSecurityGroupRequest)
           The CreateSecurityGroup operation creates a new security group.
 Future<CreateSecurityGroupResult> createSecurityGroupAsync(CreateSecurityGroupRequest createSecurityGroupRequest, AsyncHandler<CreateSecurityGroupRequest,CreateSecurityGroupResult> asyncHandler)
           The CreateSecurityGroup operation creates a new security group.
 Future<CreateSnapshotResult> createSnapshotAsync(CreateSnapshotRequest createSnapshotRequest)
           Create a snapshot of the volume identified by volume ID.
 Future<CreateSnapshotResult> createSnapshotAsync(CreateSnapshotRequest createSnapshotRequest, AsyncHandler<CreateSnapshotRequest,CreateSnapshotResult> asyncHandler)
           Create a snapshot of the volume identified by volume ID.
 Future<CreateSpotDatafeedSubscriptionResult> createSpotDatafeedSubscriptionAsync(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest)
           Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs.
 Future<CreateSpotDatafeedSubscriptionResult> createSpotDatafeedSubscriptionAsync(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest, AsyncHandler<CreateSpotDatafeedSubscriptionRequest,CreateSpotDatafeedSubscriptionResult> asyncHandler)
           Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs.
 Future<Void> createTagsAsync(CreateTagsRequest createTagsRequest)
           Adds or overwrites tags for the specified resources.
 Future<Void> createTagsAsync(CreateTagsRequest createTagsRequest, AsyncHandler<CreateTagsRequest,Void> asyncHandler)
           Adds or overwrites tags for the specified resources.
 Future<CreateVolumeResult> createVolumeAsync(CreateVolumeRequest createVolumeRequest)
           Initializes an empty volume of a given size.
 Future<CreateVolumeResult> createVolumeAsync(CreateVolumeRequest createVolumeRequest, AsyncHandler<CreateVolumeRequest,CreateVolumeResult> asyncHandler)
           Initializes an empty volume of a given size.
 Future<Void> deactivateLicenseAsync(DeactivateLicenseRequest deactivateLicenseRequest)
           Deactivates a specific number of licenses.
 Future<Void> deactivateLicenseAsync(DeactivateLicenseRequest deactivateLicenseRequest, AsyncHandler<DeactivateLicenseRequest,Void> asyncHandler)
           Deactivates a specific number of licenses.
 Future<Void> deleteKeyPairAsync(DeleteKeyPairRequest deleteKeyPairRequest)
           The DeleteKeyPair operation deletes a key pair.
 Future<Void> deleteKeyPairAsync(DeleteKeyPairRequest deleteKeyPairRequest, AsyncHandler<DeleteKeyPairRequest,Void> asyncHandler)
           The DeleteKeyPair operation deletes a key pair.
 Future<Void> deletePlacementGroupAsync(DeletePlacementGroupRequest deletePlacementGroupRequest)
           Deletes a PlacementGroup from a user's account.
 Future<Void> deletePlacementGroupAsync(DeletePlacementGroupRequest deletePlacementGroupRequest, AsyncHandler<DeletePlacementGroupRequest,Void> asyncHandler)
           Deletes a PlacementGroup from a user's account.
 Future<Void> deleteSecurityGroupAsync(DeleteSecurityGroupRequest deleteSecurityGroupRequest)
           The DeleteSecurityGroup operation deletes a security group.
 Future<Void> deleteSecurityGroupAsync(DeleteSecurityGroupRequest deleteSecurityGroupRequest, AsyncHandler<DeleteSecurityGroupRequest,Void> asyncHandler)
           The DeleteSecurityGroup operation deletes a security group.
 Future<Void> deleteSnapshotAsync(DeleteSnapshotRequest deleteSnapshotRequest)
           Deletes the snapshot identified by snapshotId .
 Future<Void> deleteSnapshotAsync(DeleteSnapshotRequest deleteSnapshotRequest, AsyncHandler<DeleteSnapshotRequest,Void> asyncHandler)
           Deletes the snapshot identified by snapshotId .
 Future<Void> deleteSpotDatafeedSubscriptionAsync(DeleteSpotDatafeedSubscriptionRequest deleteSpotDatafeedSubscriptionRequest)
           Deletes the data feed for Spot Instances.
 Future<Void> deleteSpotDatafeedSubscriptionAsync(DeleteSpotDatafeedSubscriptionRequest deleteSpotDatafeedSubscriptionRequest, AsyncHandler<DeleteSpotDatafeedSubscriptionRequest,Void> asyncHandler)
           Deletes the data feed for Spot Instances.
 Future<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest)
           Deletes tags from the specified Amazon EC2 resources.
 Future<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest, AsyncHandler<DeleteTagsRequest,Void> asyncHandler)
           Deletes tags from the specified Amazon EC2 resources.
 Future<Void> deleteVolumeAsync(DeleteVolumeRequest deleteVolumeRequest)
           Deletes a previously created volume.
 Future<Void> deleteVolumeAsync(DeleteVolumeRequest deleteVolumeRequest, AsyncHandler<DeleteVolumeRequest,Void> asyncHandler)
           Deletes a previously created volume.
 Future<Void> deregisterImageAsync(DeregisterImageRequest deregisterImageRequest)
           The DeregisterImage operation deregisters an AMI.
 Future<Void> deregisterImageAsync(DeregisterImageRequest deregisterImageRequest, AsyncHandler<DeregisterImageRequest,Void> asyncHandler)
           The DeregisterImage operation deregisters an AMI.
 Future<DescribeAddressesResult> describeAddressesAsync(DescribeAddressesRequest describeAddressesRequest)
           The DescribeAddresses operation lists elastic IP addresses assigned to your account.
 Future<DescribeAddressesResult> describeAddressesAsync(DescribeAddressesRequest describeAddressesRequest, AsyncHandler<DescribeAddressesRequest,DescribeAddressesResult> asyncHandler)
           The DescribeAddresses operation lists elastic IP addresses assigned to your account.
 Future<DescribeAvailabilityZonesResult> describeAvailabilityZonesAsync(DescribeAvailabilityZonesRequest describeAvailabilityZonesRequest)
           The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and their states.
 Future<DescribeAvailabilityZonesResult> describeAvailabilityZonesAsync(DescribeAvailabilityZonesRequest describeAvailabilityZonesRequest, AsyncHandler<DescribeAvailabilityZonesRequest,DescribeAvailabilityZonesResult> asyncHandler)
           The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and their states.
 Future<DescribeBundleTasksResult> describeBundleTasksAsync(DescribeBundleTasksRequest describeBundleTasksRequest)
           The DescribeBundleTasks operation describes in-progress and recent bundle tasks.
 Future<DescribeBundleTasksResult> describeBundleTasksAsync(DescribeBundleTasksRequest describeBundleTasksRequest, AsyncHandler<DescribeBundleTasksRequest,DescribeBundleTasksResult> asyncHandler)
           The DescribeBundleTasks operation describes in-progress and recent bundle tasks.
 Future<DescribeConversionTasksResult> describeConversionTasksAsync(DescribeConversionTasksRequest describeConversionTasksRequest)
           
 Future<DescribeConversionTasksResult> describeConversionTasksAsync(DescribeConversionTasksRequest describeConversionTasksRequest, AsyncHandler<DescribeConversionTasksRequest,DescribeConversionTasksResult> asyncHandler)
           
 Future<DescribeExportTasksResult> describeExportTasksAsync(DescribeExportTasksRequest describeExportTasksRequest)
           
 Future<DescribeExportTasksResult> describeExportTasksAsync(DescribeExportTasksRequest describeExportTasksRequest, AsyncHandler<DescribeExportTasksRequest,DescribeExportTasksResult> asyncHandler)
           
 Future<DescribeImageAttributeResult> describeImageAttributeAsync(DescribeImageAttributeRequest describeImageAttributeRequest)
           The DescribeImageAttribute operation returns information about an attribute of an AMI.
 Future<DescribeImageAttributeResult> describeImageAttributeAsync(DescribeImageAttributeRequest describeImageAttributeRequest, AsyncHandler<DescribeImageAttributeRequest,DescribeImageAttributeResult> asyncHandler)
           The DescribeImageAttribute operation returns information about an attribute of an AMI.
 Future<DescribeImagesResult> describeImagesAsync(DescribeImagesRequest describeImagesRequest)
           The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user.
 Future<DescribeImagesResult> describeImagesAsync(DescribeImagesRequest describeImagesRequest, AsyncHandler<DescribeImagesRequest,DescribeImagesResult> asyncHandler)
           The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user.
 Future<DescribeInstanceAttributeResult> describeInstanceAttributeAsync(DescribeInstanceAttributeRequest describeInstanceAttributeRequest)
           Returns information about an attribute of an instance.
 Future<DescribeInstanceAttributeResult> describeInstanceAttributeAsync(DescribeInstanceAttributeRequest describeInstanceAttributeRequest, AsyncHandler<DescribeInstanceAttributeRequest,DescribeInstanceAttributeResult> asyncHandler)
           Returns information about an attribute of an instance.
 Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest)
           The DescribeInstances operation returns information about instances that you own.
 Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest, AsyncHandler<DescribeInstancesRequest,DescribeInstancesResult> asyncHandler)
           The DescribeInstances operation returns information about instances that you own.
 Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(DescribeInstanceStatusRequest describeInstanceStatusRequest)
           Describes the status of an Amazon Elastic Compute Cloud (Amazon EC2) instance.
 Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(DescribeInstanceStatusRequest describeInstanceStatusRequest, AsyncHandler<DescribeInstanceStatusRequest,DescribeInstanceStatusResult> asyncHandler)
           Describes the status of an Amazon Elastic Compute Cloud (Amazon EC2) instance.
 Future<DescribeKeyPairsResult> describeKeyPairsAsync(DescribeKeyPairsRequest describeKeyPairsRequest)
           The DescribeKeyPairs operation returns information about key pairs available to you.
 Future<DescribeKeyPairsResult> describeKeyPairsAsync(DescribeKeyPairsRequest describeKeyPairsRequest, AsyncHandler<DescribeKeyPairsRequest,DescribeKeyPairsResult> asyncHandler)
           The DescribeKeyPairs operation returns information about key pairs available to you.
 Future<DescribeLicensesResult> describeLicensesAsync(DescribeLicensesRequest describeLicensesRequest)
           Provides details of a user's registered licenses.
 Future<DescribeLicensesResult> describeLicensesAsync(DescribeLicensesRequest describeLicensesRequest, AsyncHandler<DescribeLicensesRequest,DescribeLicensesResult> asyncHandler)
           Provides details of a user's registered licenses.
 Future<DescribePlacementGroupsResult> describePlacementGroupsAsync(DescribePlacementGroupsRequest describePlacementGroupsRequest)
           Returns information about one or more PlacementGroup instances in a user's account.
 Future<DescribePlacementGroupsResult> describePlacementGroupsAsync(DescribePlacementGroupsRequest describePlacementGroupsRequest, AsyncHandler<DescribePlacementGroupsRequest,DescribePlacementGroupsResult> asyncHandler)
           Returns information about one or more PlacementGroup instances in a user's account.
 Future<DescribeRegionsResult> describeRegionsAsync(DescribeRegionsRequest describeRegionsRequest)
           The DescribeRegions operation describes regions zones that are currently available to the account.
 Future<DescribeRegionsResult> describeRegionsAsync(DescribeRegionsRequest describeRegionsRequest, AsyncHandler<DescribeRegionsRequest,DescribeRegionsResult> asyncHandler)
           The DescribeRegions operation describes regions zones that are currently available to the account.
 Future<DescribeReservedInstancesResult> describeReservedInstancesAsync(DescribeReservedInstancesRequest describeReservedInstancesRequest)
           The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.
 Future<DescribeReservedInstancesResult> describeReservedInstancesAsync(DescribeReservedInstancesRequest describeReservedInstancesRequest, AsyncHandler<DescribeReservedInstancesRequest,DescribeReservedInstancesResult> asyncHandler)
           The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.
 Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest)
           
 Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest, AsyncHandler<DescribeReservedInstancesListingsRequest,DescribeReservedInstancesListingsResult> asyncHandler)
           
 Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(DescribeReservedInstancesOfferingsRequest describeReservedInstancesOfferingsRequest)
           The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase.
 Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(DescribeReservedInstancesOfferingsRequest describeReservedInstancesOfferingsRequest, AsyncHandler<DescribeReservedInstancesOfferingsRequest,DescribeReservedInstancesOfferingsResult> asyncHandler)
           The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase.
 Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(DescribeSecurityGroupsRequest describeSecurityGroupsRequest)
           The DescribeSecurityGroups operation returns information about security groups that you own.
 Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(DescribeSecurityGroupsRequest describeSecurityGroupsRequest, AsyncHandler<DescribeSecurityGroupsRequest,DescribeSecurityGroupsResult> asyncHandler)
           The DescribeSecurityGroups operation returns information about security groups that you own.
 Future<DescribeSnapshotAttributeResult> describeSnapshotAttributeAsync(DescribeSnapshotAttributeRequest describeSnapshotAttributeRequest)
           Returns information about an attribute of a snapshot.
 Future<DescribeSnapshotAttributeResult> describeSnapshotAttributeAsync(DescribeSnapshotAttributeRequest describeSnapshotAttributeRequest, AsyncHandler<DescribeSnapshotAttributeRequest,DescribeSnapshotAttributeResult> asyncHandler)
           Returns information about an attribute of a snapshot.
 Future<DescribeSnapshotsResult> describeSnapshotsAsync(DescribeSnapshotsRequest describeSnapshotsRequest)
           Returns information about the Amazon EBS snapshots available to you.
 Future<DescribeSnapshotsResult> describeSnapshotsAsync(DescribeSnapshotsRequest describeSnapshotsRequest, AsyncHandler<DescribeSnapshotsRequest,DescribeSnapshotsResult> asyncHandler)
           Returns information about the Amazon EBS snapshots available to you.
 Future<DescribeSpotDatafeedSubscriptionResult> describeSpotDatafeedSubscriptionAsync(DescribeSpotDatafeedSubscriptionRequest describeSpotDatafeedSubscriptionRequest)
           Describes the data feed for Spot Instances.
 Future<DescribeSpotDatafeedSubscriptionResult> describeSpotDatafeedSubscriptionAsync(DescribeSpotDatafeedSubscriptionRequest describeSpotDatafeedSubscriptionRequest, AsyncHandler<DescribeSpotDatafeedSubscriptionRequest,DescribeSpotDatafeedSubscriptionResult> asyncHandler)
           Describes the data feed for Spot Instances.
 Future<DescribeSpotInstanceRequestsResult> describeSpotInstanceRequestsAsync(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest)
           Describes Spot Instance requests.
 Future<DescribeSpotInstanceRequestsResult> describeSpotInstanceRequestsAsync(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest, AsyncHandler<DescribeSpotInstanceRequestsRequest,DescribeSpotInstanceRequestsResult> asyncHandler)
           Describes Spot Instance requests.
 Future<DescribeSpotPriceHistoryResult> describeSpotPriceHistoryAsync(DescribeSpotPriceHistoryRequest describeSpotPriceHistoryRequest)
           Describes the Spot Price history.
 Future<DescribeSpotPriceHistoryResult> describeSpotPriceHistoryAsync(DescribeSpotPriceHistoryRequest describeSpotPriceHistoryRequest, AsyncHandler<DescribeSpotPriceHistoryRequest,DescribeSpotPriceHistoryResult> asyncHandler)
           Describes the Spot Price history.
 Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest)
           Describes the tags for the specified resources.
 Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest, AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler)
           Describes the tags for the specified resources.
 Future<DescribeVolumeAttributeResult> describeVolumeAttributeAsync(DescribeVolumeAttributeRequest describeVolumeAttributeRequest)
           
 Future<DescribeVolumeAttributeResult> describeVolumeAttributeAsync(DescribeVolumeAttributeRequest describeVolumeAttributeRequest, AsyncHandler<DescribeVolumeAttributeRequest,DescribeVolumeAttributeResult> asyncHandler)
           
 Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest)
           Describes the status of the indicated volume or, in lieu of any specified, all volumes belonging to the caller.
 Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest, AsyncHandler<DescribeVolumesRequest,DescribeVolumesResult> asyncHandler)
           Describes the status of the indicated volume or, in lieu of any specified, all volumes belonging to the caller.
 Future<DescribeVolumeStatusResult> describeVolumeStatusAsync(DescribeVolumeStatusRequest describeVolumeStatusRequest)
           Describes the status of a volume.
 Future<DescribeVolumeStatusResult> describeVolumeStatusAsync(DescribeVolumeStatusRequest describeVolumeStatusRequest, AsyncHandler<DescribeVolumeStatusRequest,DescribeVolumeStatusResult> asyncHandler)
           Describes the status of a volume.
 Future<DetachVolumeResult> detachVolumeAsync(DetachVolumeRequest detachVolumeRequest)
           Detach a previously attached volume from a running instance.
 Future<DetachVolumeResult> detachVolumeAsync(DetachVolumeRequest detachVolumeRequest, AsyncHandler<DetachVolumeRequest,DetachVolumeResult> asyncHandler)
           Detach a previously attached volume from a running instance.
 Future<Void> disassociateAddressAsync(DisassociateAddressRequest disassociateAddressRequest)
           The DisassociateAddress operation disassociates the specified elastic IP address from the instance to which it is assigned.
 Future<Void> disassociateAddressAsync(DisassociateAddressRequest disassociateAddressRequest, AsyncHandler<DisassociateAddressRequest,Void> asyncHandler)
           The DisassociateAddress operation disassociates the specified elastic IP address from the instance to which it is assigned.
 Future<Void> enableVolumeIOAsync(EnableVolumeIORequest enableVolumeIORequest)
           Enable IO on the volume after an event has occured.
 Future<Void> enableVolumeIOAsync(EnableVolumeIORequest enableVolumeIORequest, AsyncHandler<EnableVolumeIORequest,Void> asyncHandler)
           Enable IO on the volume after an event has occured.
 Future<GetConsoleOutputResult> getConsoleOutputAsync(GetConsoleOutputRequest getConsoleOutputRequest)
           The GetConsoleOutput operation retrieves console output for the specified instance.
 Future<GetConsoleOutputResult> getConsoleOutputAsync(GetConsoleOutputRequest getConsoleOutputRequest, AsyncHandler<GetConsoleOutputRequest,GetConsoleOutputResult> asyncHandler)
           The GetConsoleOutput operation retrieves console output for the specified instance.
 ExecutorService getExecutorService()
          Returns the executor service used by this async client to execute requests.
 Future<GetPasswordDataResult> getPasswordDataAsync(GetPasswordDataRequest getPasswordDataRequest)
           Retrieves the encrypted administrator password for the instances running Windows.
 Future<GetPasswordDataResult> getPasswordDataAsync(GetPasswordDataRequest getPasswordDataRequest, AsyncHandler<GetPasswordDataRequest,GetPasswordDataResult> asyncHandler)
           Retrieves the encrypted administrator password for the instances running Windows.
 Future<ImportInstanceResult> importInstanceAsync(ImportInstanceRequest importInstanceRequest)
           
 Future<ImportInstanceResult> importInstanceAsync(ImportInstanceRequest importInstanceRequest, AsyncHandler<ImportInstanceRequest,ImportInstanceResult> asyncHandler)
           
 Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest importKeyPairRequest)
           Imports the public key from an RSA key pair created with a third-party tool.
 Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest importKeyPairRequest, AsyncHandler<ImportKeyPairRequest,ImportKeyPairResult> asyncHandler)
           Imports the public key from an RSA key pair created with a third-party tool.
 Future<ImportVolumeResult> importVolumeAsync(ImportVolumeRequest importVolumeRequest)
           
 Future<ImportVolumeResult> importVolumeAsync(ImportVolumeRequest importVolumeRequest, AsyncHandler<ImportVolumeRequest,ImportVolumeResult> asyncHandler)
           
 Future<Void> modifyImageAttributeAsync(ModifyImageAttributeRequest modifyImageAttributeRequest)
           The ModifyImageAttribute operation modifies an attribute of an AMI.
 Future<Void> modifyImageAttributeAsync(ModifyImageAttributeRequest modifyImageAttributeRequest, AsyncHandler<ModifyImageAttributeRequest,Void> asyncHandler)
           The ModifyImageAttribute operation modifies an attribute of an AMI.
 Future<Void> modifyInstanceAttributeAsync(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest)
           Modifies an attribute of an instance.
 Future<Void> modifyInstanceAttributeAsync(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest, AsyncHandler<ModifyInstanceAttributeRequest,Void> asyncHandler)
           Modifies an attribute of an instance.
 Future<Void> modifySnapshotAttributeAsync(ModifySnapshotAttributeRequest modifySnapshotAttributeRequest)
           Adds or remove permission settings for the specified snapshot.
 Future<Void> modifySnapshotAttributeAsync(ModifySnapshotAttributeRequest modifySnapshotAttributeRequest, AsyncHandler<ModifySnapshotAttributeRequest,Void> asyncHandler)
           Adds or remove permission settings for the specified snapshot.
 Future<Void> modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest modifyVolumeAttributeRequest)
           
 Future<Void> modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest modifyVolumeAttributeRequest, AsyncHandler<ModifyVolumeAttributeRequest,Void> asyncHandler)
           
 Future<MonitorInstancesResult> monitorInstancesAsync(MonitorInstancesRequest monitorInstancesRequest)
           Enables monitoring for a running instance.
 Future<MonitorInstancesResult> monitorInstancesAsync(MonitorInstancesRequest monitorInstancesRequest, AsyncHandler<MonitorInstancesRequest,MonitorInstancesResult> asyncHandler)
           Enables monitoring for a running instance.
 Future<PurchaseReservedInstancesOfferingResult> purchaseReservedInstancesOfferingAsync(PurchaseReservedInstancesOfferingRequest purchaseReservedInstancesOfferingRequest)
           The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account.
 Future<PurchaseReservedInstancesOfferingResult> purchaseReservedInstancesOfferingAsync(PurchaseReservedInstancesOfferingRequest purchaseReservedInstancesOfferingRequest, AsyncHandler<PurchaseReservedInstancesOfferingRequest,PurchaseReservedInstancesOfferingResult> asyncHandler)
           The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account.
 Future<Void> rebootInstancesAsync(RebootInstancesRequest rebootInstancesRequest)
           The RebootInstances operation requests a reboot of one or more instances.
 Future<Void> rebootInstancesAsync(RebootInstancesRequest rebootInstancesRequest, AsyncHandler<RebootInstancesRequest,Void> asyncHandler)
           The RebootInstances operation requests a reboot of one or more instances.
 Future<RegisterImageResult> registerImageAsync(RegisterImageRequest registerImageRequest)
           The RegisterImage operation registers an AMI with Amazon EC2.
 Future<RegisterImageResult> registerImageAsync(RegisterImageRequest registerImageRequest, AsyncHandler<RegisterImageRequest,RegisterImageResult> asyncHandler)
           The RegisterImage operation registers an AMI with Amazon EC2.
 Future<Void> releaseAddressAsync(ReleaseAddressRequest releaseAddressRequest)
           The ReleaseAddress operation releases an elastic IP address associated with your account.
 Future<Void> releaseAddressAsync(ReleaseAddressRequest releaseAddressRequest, AsyncHandler<ReleaseAddressRequest,Void> asyncHandler)
           The ReleaseAddress operation releases an elastic IP address associated with your account.
 Future<Void> reportInstanceStatusAsync(ReportInstanceStatusRequest reportInstanceStatusRequest)
           
 Future<Void> reportInstanceStatusAsync(ReportInstanceStatusRequest reportInstanceStatusRequest, AsyncHandler<ReportInstanceStatusRequest,Void> asyncHandler)
           
 Future<RequestSpotInstancesResult> requestSpotInstancesAsync(RequestSpotInstancesRequest requestSpotInstancesRequest)
           Creates a Spot Instance request.
 Future<RequestSpotInstancesResult> requestSpotInstancesAsync(RequestSpotInstancesRequest requestSpotInstancesRequest, AsyncHandler<RequestSpotInstancesRequest,RequestSpotInstancesResult> asyncHandler)
           Creates a Spot Instance request.
 Future<Void> resetImageAttributeAsync(ResetImageAttributeRequest resetImageAttributeRequest)
           The ResetImageAttribute operation resets an attribute of an AMI to its default value.
 Future<Void> resetImageAttributeAsync(ResetImageAttributeRequest resetImageAttributeRequest, AsyncHandler<ResetImageAttributeRequest,Void> asyncHandler)
           The ResetImageAttribute operation resets an attribute of an AMI to its default value.
 Future<Void> resetInstanceAttributeAsync(ResetInstanceAttributeRequest resetInstanceAttributeRequest)
           Resets an attribute of an instance to its default value.
 Future<Void> resetInstanceAttributeAsync(ResetInstanceAttributeRequest resetInstanceAttributeRequest, AsyncHandler<ResetInstanceAttributeRequest,Void> asyncHandler)
           Resets an attribute of an instance to its default value.
 Future<Void> resetSnapshotAttributeAsync(ResetSnapshotAttributeRequest resetSnapshotAttributeRequest)
           Resets permission settings for the specified snapshot.
 Future<Void> resetSnapshotAttributeAsync(ResetSnapshotAttributeRequest resetSnapshotAttributeRequest, AsyncHandler<ResetSnapshotAttributeRequest,Void> asyncHandler)
           Resets permission settings for the specified snapshot.
 Future<Void> revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest revokeSecurityGroupIngressRequest)
           The RevokeSecurityGroupIngress operation revokes permissions from a security group.
 Future<Void> revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest revokeSecurityGroupIngressRequest, AsyncHandler<RevokeSecurityGroupIngressRequest,Void> asyncHandler)
           The RevokeSecurityGroupIngress operation revokes permissions from a security group.
 Future<RunInstancesResult> runInstancesAsync(RunInstancesRequest runInstancesRequest)
           The RunInstances operation launches a specified number of instances.
 Future<RunInstancesResult> runInstancesAsync(RunInstancesRequest runInstancesRequest, AsyncHandler<RunInstancesRequest,RunInstancesResult> asyncHandler)
           The RunInstances operation launches a specified number of instances.
 void shutdown()
          Shuts down the client, releasing all managed resources.
 Future<StartInstancesResult> startInstancesAsync(StartInstancesRequest startInstancesRequest)
           Starts an instance that uses an Amazon EBS volume as its root device.
 Future<StartInstancesResult> startInstancesAsync(StartInstancesRequest startInstancesRequest, AsyncHandler<StartInstancesRequest,StartInstancesResult> asyncHandler)
           Starts an instance that uses an Amazon EBS volume as its root device.
 Future<StopInstancesResult> stopInstancesAsync(StopInstancesRequest stopInstancesRequest)
           Stops an instance that uses an Amazon EBS volume as its root device.
 Future<StopInstancesResult> stopInstancesAsync(StopInstancesRequest stopInstancesRequest, AsyncHandler<StopInstancesRequest,StopInstancesResult> asyncHandler)
           Stops an instance that uses an Amazon EBS volume as its root device.
 Future<TerminateInstancesResult> terminateInstancesAsync(TerminateInstancesRequest terminateInstancesRequest)
           The TerminateInstances operation shuts down one or more instances.
 Future<TerminateInstancesResult> terminateInstancesAsync(TerminateInstancesRequest terminateInstancesRequest, AsyncHandler<TerminateInstancesRequest,TerminateInstancesResult> asyncHandler)
           The TerminateInstances operation shuts down one or more instances.
 Future<UnmonitorInstancesResult> unmonitorInstancesAsync(UnmonitorInstancesRequest unmonitorInstancesRequest)
           Disables monitoring for a running instance.
 Future<UnmonitorInstancesResult> unmonitorInstancesAsync(UnmonitorInstancesRequest unmonitorInstancesRequest, AsyncHandler<UnmonitorInstancesRequest,UnmonitorInstancesResult> asyncHandler)
           Disables monitoring for a running instance.
 
Methods inherited from class com.amazonaws.services.ec2.AmazonEC2Client
activateLicense, allocateAddress, allocateAddress, associateAddress, attachVolume, authorizeSecurityGroupIngress, authorizeSecurityGroupIngress, bundleInstance, cancelBundleTask, cancelConversionTask, cancelExportTask, cancelReservedInstancesListing, cancelSpotInstanceRequests, confirmProductInstance, createImage, createInstanceExportTask, createKeyPair, createPlacementGroup, createReservedInstancesListing, createSecurityGroup, createSnapshot, createSpotDatafeedSubscription, createTags, createVolume, deactivateLicense, deleteKeyPair, deletePlacementGroup, deleteSecurityGroup, deleteSecurityGroup, deleteSnapshot, deleteSpotDatafeedSubscription, deleteSpotDatafeedSubscription, deleteTags, deleteVolume, deregisterImage, describeAddresses, describeAddresses, describeAvailabilityZones, describeAvailabilityZones, describeBundleTasks, describeBundleTasks, describeConversionTasks, describeConversionTasks, describeExportTasks, describeExportTasks, describeImageAttribute, describeImages, describeImages, describeInstanceAttribute, describeInstances, describeInstances, describeInstanceStatus, describeInstanceStatus, describeKeyPairs, describeKeyPairs, describeLicenses, describeLicenses, describePlacementGroups, describePlacementGroups, describeRegions, describeRegions, describeReservedInstances, describeReservedInstances, describeReservedInstancesListings, describeReservedInstancesListings, describeReservedInstancesOfferings, describeReservedInstancesOfferings, describeSecurityGroups, describeSecurityGroups, describeSnapshotAttribute, describeSnapshots, describeSnapshots, describeSpotDatafeedSubscription, describeSpotDatafeedSubscription, describeSpotInstanceRequests, describeSpotInstanceRequests, describeSpotPriceHistory, describeSpotPriceHistory, describeTags, describeTags, describeVolumeAttribute, describeVolumes, describeVolumes, describeVolumeStatus, describeVolumeStatus, detachVolume, disassociateAddress, enableVolumeIO, getCachedResponseMetadata, getConsoleOutput, getPasswordData, importInstance, importKeyPair, importVolume, importVolume, modifyImageAttribute, modifyInstanceAttribute, modifySnapshotAttribute, modifyVolumeAttribute, monitorInstances, purchaseReservedInstancesOffering, rebootInstances, registerImage, registerImage, releaseAddress, releaseAddress, reportInstanceStatus, reportInstanceStatus, requestSpotInstances, resetImageAttribute, resetInstanceAttribute, resetSnapshotAttribute, revokeSecurityGroupIngress, revokeSecurityGroupIngress, runInstances, startInstances, stopInstances, terminateInstances, unmonitorInstances
 
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, removeRequestHandler, setConfiguration, setEndpoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amazonaws.services.ec2.AmazonEC2
activateLicense, allocateAddress, allocateAddress, associateAddress, attachVolume, authorizeSecurityGroupIngress, authorizeSecurityGroupIngress, bundleInstance, cancelBundleTask, cancelConversionTask, cancelExportTask, cancelReservedInstancesListing, cancelSpotInstanceRequests, confirmProductInstance, createImage, createInstanceExportTask, createKeyPair, createPlacementGroup, createReservedInstancesListing, createSecurityGroup, createSnapshot, createSpotDatafeedSubscription, createTags, createVolume, deactivateLicense, deleteKeyPair, deletePlacementGroup, deleteSecurityGroup, deleteSecurityGroup, deleteSnapshot, deleteSpotDatafeedSubscription, deleteSpotDatafeedSubscription, deleteTags, deleteVolume, deregisterImage, describeAddresses, describeAddresses, describeAvailabilityZones, describeAvailabilityZones, describeBundleTasks, describeBundleTasks, describeConversionTasks, describeConversionTasks, describeExportTasks, describeExportTasks, describeImageAttribute, describeImages, describeImages, describeInstanceAttribute, describeInstances, describeInstances, describeInstanceStatus, describeInstanceStatus, describeKeyPairs, describeKeyPairs, describeLicenses, describeLicenses, describePlacementGroups, describePlacementGroups, describeRegions, describeRegions, describeReservedInstances, describeReservedInstances, describeReservedInstancesListings, describeReservedInstancesListings, describeReservedInstancesOfferings, describeReservedInstancesOfferings, describeSecurityGroups, describeSecurityGroups, describeSnapshotAttribute, describeSnapshots, describeSnapshots, describeSpotDatafeedSubscription, describeSpotDatafeedSubscription, describeSpotInstanceRequests, describeSpotInstanceRequests, describeSpotPriceHistory, describeSpotPriceHistory, describeTags, describeTags, describeVolumeAttribute, describeVolumes, describeVolumes, describeVolumeStatus, describeVolumeStatus, detachVolume, disassociateAddress, enableVolumeIO, getCachedResponseMetadata, getConsoleOutput, getPasswordData, importInstance, importKeyPair, importVolume, importVolume, modifyImageAttribute, modifyInstanceAttribute, modifySnapshotAttribute, modifyVolumeAttribute, monitorInstances, purchaseReservedInstancesOffering, rebootInstances, registerImage, registerImage, releaseAddress, releaseAddress, reportInstanceStatus, reportInstanceStatus, requestSpotInstances, resetImageAttribute, resetInstanceAttribute, resetSnapshotAttribute, revokeSecurityGroupIngress, revokeSecurityGroupIngress, runInstances, setEndpoint, startInstances, stopInstances, terminateInstances, unmonitorInstances
 

Constructor Detail

AmazonEC2AsyncClient

public AmazonEC2AsyncClient()
Constructs a new asynchronous client to invoke service methods on AmazonEC2. A credentials provider chain will be used that searches for credentials in this order:

All service calls made using this new client object are blocking, and will not return until the service call completes.

See Also:
DefaultAWSCredentialsProvider

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AmazonEC2. A credentials provider chain will be used that searches for credentials in this order:

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration - The client configuration options controlling how this client connects to AmazonEC2 (ex: proxy settings, retry counts, etc.).
See Also:
DefaultAWSCredentialsProvider

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials. Default client settings will be used, and a default cached thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentials awsCredentials,
                            ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService - The executor service by which all asynchronous requests will be executed.

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentials awsCredentials,
                            ClientConfiguration clientConfiguration,
                            ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
executorService - The executor service by which all asynchronous requests will be executed.

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider. Default client settings will be used, and a default cached thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                            ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService - The executor service by which all asynchronous requests will be executed.

AmazonEC2AsyncClient

public AmazonEC2AsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                            ClientConfiguration clientConfiguration,
                            ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonEC2 using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
executorService - The executor service by which all asynchronous requests will be executed.
Method Detail

getExecutorService

public ExecutorService getExecutorService()
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.

shutdown

public void shutdown()
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() prior to calling this method.

Specified by:
shutdown in interface AmazonEC2
Overrides:
shutdown in class AmazonWebServiceClient

rebootInstancesAsync

public Future<Void> rebootInstancesAsync(RebootInstancesRequest rebootInstancesRequest)
                                  throws AmazonServiceException,
                                         AmazonClientException

The RebootInstances operation requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to the user. Requests to reboot terminated instances are ignored.

Specified by:
rebootInstancesAsync in interface AmazonEC2Async
Parameters:
rebootInstancesRequest - Container for the necessary parameters to execute the RebootInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the RebootInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

rebootInstancesAsync

public Future<Void> rebootInstancesAsync(RebootInstancesRequest rebootInstancesRequest,
                                         AsyncHandler<RebootInstancesRequest,Void> asyncHandler)
                                  throws AmazonServiceException,
                                         AmazonClientException

The RebootInstances operation requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to the user. Requests to reboot terminated instances are ignored.

Specified by:
rebootInstancesAsync in interface AmazonEC2Async
Parameters:
rebootInstancesRequest - Container for the necessary parameters to execute the RebootInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RebootInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesAsync

public Future<DescribeReservedInstancesResult> describeReservedInstancesAsync(DescribeReservedInstancesRequest describeReservedInstancesRequest)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.

Specified by:
describeReservedInstancesAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesRequest - Container for the necessary parameters to execute the DescribeReservedInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeReservedInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesAsync

public Future<DescribeReservedInstancesResult> describeReservedInstancesAsync(DescribeReservedInstancesRequest describeReservedInstancesRequest,
                                                                              AsyncHandler<DescribeReservedInstancesRequest,DescribeReservedInstancesResult> asyncHandler)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.

Specified by:
describeReservedInstancesAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesRequest - Container for the necessary parameters to execute the DescribeReservedInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeReservedInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeAvailabilityZonesAsync

public Future<DescribeAvailabilityZonesResult> describeAvailabilityZonesAsync(DescribeAvailabilityZonesRequest describeAvailabilityZonesRequest)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and their states.

Availability zones are not the same across accounts. The availability zone us-east-1a for account A is not necessarily the same as us-east-1a for account B. Zone assignments are mapped independently for each account.

Specified by:
describeAvailabilityZonesAsync in interface AmazonEC2Async
Parameters:
describeAvailabilityZonesRequest - Container for the necessary parameters to execute the DescribeAvailabilityZones operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeAvailabilityZones service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeAvailabilityZonesAsync

public Future<DescribeAvailabilityZonesResult> describeAvailabilityZonesAsync(DescribeAvailabilityZonesRequest describeAvailabilityZonesRequest,
                                                                              AsyncHandler<DescribeAvailabilityZonesRequest,DescribeAvailabilityZonesResult> asyncHandler)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and their states.

Availability zones are not the same across accounts. The availability zone us-east-1a for account A is not necessarily the same as us-east-1a for account B. Zone assignments are mapped independently for each account.

Specified by:
describeAvailabilityZonesAsync in interface AmazonEC2Async
Parameters:
describeAvailabilityZonesRequest - Container for the necessary parameters to execute the DescribeAvailabilityZones operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeAvailabilityZones service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

detachVolumeAsync

public Future<DetachVolumeResult> detachVolumeAsync(DetachVolumeRequest detachVolumeRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Detach a previously attached volume from a running instance.

Specified by:
detachVolumeAsync in interface AmazonEC2Async
Parameters:
detachVolumeRequest - Container for the necessary parameters to execute the DetachVolume operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DetachVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

detachVolumeAsync

public Future<DetachVolumeResult> detachVolumeAsync(DetachVolumeRequest detachVolumeRequest,
                                                    AsyncHandler<DetachVolumeRequest,DetachVolumeResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Detach a previously attached volume from a running instance.

Specified by:
detachVolumeAsync in interface AmazonEC2Async
Parameters:
detachVolumeRequest - Container for the necessary parameters to execute the DetachVolume operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DetachVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteKeyPairAsync

public Future<Void> deleteKeyPairAsync(DeleteKeyPairRequest deleteKeyPairRequest)
                                throws AmazonServiceException,
                                       AmazonClientException

The DeleteKeyPair operation deletes a key pair.

Specified by:
deleteKeyPairAsync in interface AmazonEC2Async
Parameters:
deleteKeyPairRequest - Container for the necessary parameters to execute the DeleteKeyPair operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteKeyPairAsync

public Future<Void> deleteKeyPairAsync(DeleteKeyPairRequest deleteKeyPairRequest,
                                       AsyncHandler<DeleteKeyPairRequest,Void> asyncHandler)
                                throws AmazonServiceException,
                                       AmazonClientException

The DeleteKeyPair operation deletes a key pair.

Specified by:
deleteKeyPairAsync in interface AmazonEC2Async
Parameters:
deleteKeyPairRequest - Container for the necessary parameters to execute the DeleteKeyPair operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

unmonitorInstancesAsync

public Future<UnmonitorInstancesResult> unmonitorInstancesAsync(UnmonitorInstancesRequest unmonitorInstancesRequest)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Disables monitoring for a running instance.

Specified by:
unmonitorInstancesAsync in interface AmazonEC2Async
Parameters:
unmonitorInstancesRequest - Container for the necessary parameters to execute the UnmonitorInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the UnmonitorInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

unmonitorInstancesAsync

public Future<UnmonitorInstancesResult> unmonitorInstancesAsync(UnmonitorInstancesRequest unmonitorInstancesRequest,
                                                                AsyncHandler<UnmonitorInstancesRequest,UnmonitorInstancesResult> asyncHandler)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Disables monitoring for a running instance.

Specified by:
unmonitorInstancesAsync in interface AmazonEC2Async
Parameters:
unmonitorInstancesRequest - Container for the necessary parameters to execute the UnmonitorInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UnmonitorInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createImageAsync

public Future<CreateImageResult> createImageAsync(CreateImageRequest createImageRequest)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance. AMIs that use an Amazon EBS root device boot faster than AMIs that use instance stores. They can be up to 1 TiB in size, use storage that persists on instance failure, and can be stopped and started.

Specified by:
createImageAsync in interface AmazonEC2Async
Parameters:
createImageRequest - Container for the necessary parameters to execute the CreateImage operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createImageAsync

public Future<CreateImageResult> createImageAsync(CreateImageRequest createImageRequest,
                                                  AsyncHandler<CreateImageRequest,CreateImageResult> asyncHandler)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance. AMIs that use an Amazon EBS root device boot faster than AMIs that use instance stores. They can be up to 1 TiB in size, use storage that persists on instance failure, and can be stopped and started.

Specified by:
createImageAsync in interface AmazonEC2Async
Parameters:
createImageRequest - Container for the necessary parameters to execute the CreateImage operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSecurityGroupAsync

public Future<Void> deleteSecurityGroupAsync(DeleteSecurityGroupRequest deleteSecurityGroupRequest)
                                      throws AmazonServiceException,
                                             AmazonClientException

The DeleteSecurityGroup operation deletes a security group.

NOTE: If you attempt to delete a security group that contains instances, a fault is returned. If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed.

Specified by:
deleteSecurityGroupAsync in interface AmazonEC2Async
Parameters:
deleteSecurityGroupRequest - Container for the necessary parameters to execute the DeleteSecurityGroup operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteSecurityGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSecurityGroupAsync

public Future<Void> deleteSecurityGroupAsync(DeleteSecurityGroupRequest deleteSecurityGroupRequest,
                                             AsyncHandler<DeleteSecurityGroupRequest,Void> asyncHandler)
                                      throws AmazonServiceException,
                                             AmazonClientException

The DeleteSecurityGroup operation deletes a security group.

NOTE: If you attempt to delete a security group that contains instances, a fault is returned. If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed.

Specified by:
deleteSecurityGroupAsync in interface AmazonEC2Async
Parameters:
deleteSecurityGroupRequest - Container for the necessary parameters to execute the DeleteSecurityGroup operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteSecurityGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createInstanceExportTaskAsync

public Future<CreateInstanceExportTaskResult> createInstanceExportTaskAsync(CreateInstanceExportTaskRequest createInstanceExportTaskRequest)
                                                                     throws AmazonServiceException,
                                                                            AmazonClientException
Specified by:
createInstanceExportTaskAsync in interface AmazonEC2Async
Parameters:
createInstanceExportTaskRequest - Container for the necessary parameters to execute the CreateInstanceExportTask operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateInstanceExportTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createInstanceExportTaskAsync

public Future<CreateInstanceExportTaskResult> createInstanceExportTaskAsync(CreateInstanceExportTaskRequest createInstanceExportTaskRequest,
                                                                            AsyncHandler<CreateInstanceExportTaskRequest,CreateInstanceExportTaskResult> asyncHandler)
                                                                     throws AmazonServiceException,
                                                                            AmazonClientException
Specified by:
createInstanceExportTaskAsync in interface AmazonEC2Async
Parameters:
createInstanceExportTaskRequest - Container for the necessary parameters to execute the CreateInstanceExportTask operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateInstanceExportTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

getPasswordDataAsync

public Future<GetPasswordDataResult> getPasswordDataAsync(GetPasswordDataRequest getPasswordDataRequest)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

Retrieves the encrypted administrator password for the instances running Windows.

NOTE: The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance. The password is encrypted using the key pair that you provided.

Specified by:
getPasswordDataAsync in interface AmazonEC2Async
Parameters:
getPasswordDataRequest - Container for the necessary parameters to execute the GetPasswordData operation on AmazonEC2.
Returns:
A Java Future object containing the response from the GetPasswordData service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

getPasswordDataAsync

public Future<GetPasswordDataResult> getPasswordDataAsync(GetPasswordDataRequest getPasswordDataRequest,
                                                          AsyncHandler<GetPasswordDataRequest,GetPasswordDataResult> asyncHandler)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

Retrieves the encrypted administrator password for the instances running Windows.

NOTE: The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance. The password is encrypted using the key pair that you provided.

Specified by:
getPasswordDataAsync in interface AmazonEC2Async
Parameters:
getPasswordDataRequest - Container for the necessary parameters to execute the GetPasswordData operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetPasswordData service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

stopInstancesAsync

public Future<StopInstancesResult> stopInstancesAsync(StopInstancesRequest stopInstancesRequest)
                                               throws AmazonServiceException,
                                                      AmazonClientException

Stops an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.

NOTE: Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM. Performing this operation on an instance that uses an instance store as its root device returns an error.

Specified by:
stopInstancesAsync in interface AmazonEC2Async
Parameters:
stopInstancesRequest - Container for the necessary parameters to execute the StopInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the StopInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

stopInstancesAsync

public Future<StopInstancesResult> stopInstancesAsync(StopInstancesRequest stopInstancesRequest,
                                                      AsyncHandler<StopInstancesRequest,StopInstancesResult> asyncHandler)
                                               throws AmazonServiceException,
                                                      AmazonClientException

Stops an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.

NOTE: Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM. Performing this operation on an instance that uses an instance store as its root device returns an error.

Specified by:
stopInstancesAsync in interface AmazonEC2Async
Parameters:
stopInstancesRequest - Container for the necessary parameters to execute the StopInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the StopInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importKeyPairAsync

public Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest importKeyPairRequest)
                                               throws AmazonServiceException,
                                                      AmazonClientException

Imports the public key from an RSA key pair created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.

RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the ssh-keygen command line tool provided with the standard OpenSSH installation. Standard library support for RSA key pair creation is also available for Java, Ruby, Python, and many other programming languages.

The following formats are supported:

Specified by:
importKeyPairAsync in interface AmazonEC2Async
Parameters:
importKeyPairRequest - Container for the necessary parameters to execute the ImportKeyPair operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ImportKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importKeyPairAsync

public Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest importKeyPairRequest,
                                                      AsyncHandler<ImportKeyPairRequest,ImportKeyPairResult> asyncHandler)
                                               throws AmazonServiceException,
                                                      AmazonClientException

Imports the public key from an RSA key pair created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.

RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the ssh-keygen command line tool provided with the standard OpenSSH installation. Standard library support for RSA key pair creation is also available for Java, Ruby, Python, and many other programming languages.

The following formats are supported:

Specified by:
importKeyPairAsync in interface AmazonEC2Async
Parameters:
importKeyPairRequest - Container for the necessary parameters to execute the ImportKeyPair operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ImportKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSecurityGroupAsync

public Future<CreateSecurityGroupResult> createSecurityGroupAsync(CreateSecurityGroupRequest createSecurityGroupRequest)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

The CreateSecurityGroup operation creates a new security group.

Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.

Specified by:
createSecurityGroupAsync in interface AmazonEC2Async
Parameters:
createSecurityGroupRequest - Container for the necessary parameters to execute the CreateSecurityGroup operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateSecurityGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSecurityGroupAsync

public Future<CreateSecurityGroupResult> createSecurityGroupAsync(CreateSecurityGroupRequest createSecurityGroupRequest,
                                                                  AsyncHandler<CreateSecurityGroupRequest,CreateSecurityGroupResult> asyncHandler)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

The CreateSecurityGroup operation creates a new security group.

Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.

Specified by:
createSecurityGroupAsync in interface AmazonEC2Async
Parameters:
createSecurityGroupRequest - Container for the necessary parameters to execute the CreateSecurityGroup operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateSecurityGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotPriceHistoryAsync

public Future<DescribeSpotPriceHistoryResult> describeSpotPriceHistoryAsync(DescribeSpotPriceHistoryRequest describeSpotPriceHistoryRequest)
                                                                     throws AmazonServiceException,
                                                                            AmazonClientException

Describes the Spot Price history.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
describeSpotPriceHistoryAsync in interface AmazonEC2Async
Parameters:
describeSpotPriceHistoryRequest - Container for the necessary parameters to execute the DescribeSpotPriceHistory operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSpotPriceHistory service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotPriceHistoryAsync

public Future<DescribeSpotPriceHistoryResult> describeSpotPriceHistoryAsync(DescribeSpotPriceHistoryRequest describeSpotPriceHistoryRequest,
                                                                            AsyncHandler<DescribeSpotPriceHistoryRequest,DescribeSpotPriceHistoryResult> asyncHandler)
                                                                     throws AmazonServiceException,
                                                                            AmazonClientException

Describes the Spot Price history.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
describeSpotPriceHistoryAsync in interface AmazonEC2Async
Parameters:
describeSpotPriceHistoryRequest - Container for the necessary parameters to execute the DescribeSpotPriceHistory operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSpotPriceHistory service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeRegionsAsync

public Future<DescribeRegionsResult> describeRegionsAsync(DescribeRegionsRequest describeRegionsRequest)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

The DescribeRegions operation describes regions zones that are currently available to the account.

Specified by:
describeRegionsAsync in interface AmazonEC2Async
Parameters:
describeRegionsRequest - Container for the necessary parameters to execute the DescribeRegions operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeRegions service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeRegionsAsync

public Future<DescribeRegionsResult> describeRegionsAsync(DescribeRegionsRequest describeRegionsRequest,
                                                          AsyncHandler<DescribeRegionsRequest,DescribeRegionsResult> asyncHandler)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

The DescribeRegions operation describes regions zones that are currently available to the account.

Specified by:
describeRegionsAsync in interface AmazonEC2Async
Parameters:
describeRegionsRequest - Container for the necessary parameters to execute the DescribeRegions operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeRegions service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createReservedInstancesListingAsync

public Future<CreateReservedInstancesListingResult> createReservedInstancesListingAsync(CreateReservedInstancesListingRequest createReservedInstancesListingRequest)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException
Specified by:
createReservedInstancesListingAsync in interface AmazonEC2Async
Parameters:
createReservedInstancesListingRequest - Container for the necessary parameters to execute the CreateReservedInstancesListing operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateReservedInstancesListing service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createReservedInstancesListingAsync

public Future<CreateReservedInstancesListingResult> createReservedInstancesListingAsync(CreateReservedInstancesListingRequest createReservedInstancesListingRequest,
                                                                                        AsyncHandler<CreateReservedInstancesListingRequest,CreateReservedInstancesListingResult> asyncHandler)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException
Specified by:
createReservedInstancesListingAsync in interface AmazonEC2Async
Parameters:
createReservedInstancesListingRequest - Container for the necessary parameters to execute the CreateReservedInstancesListing operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateReservedInstancesListing service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetSnapshotAttributeAsync

public Future<Void> resetSnapshotAttributeAsync(ResetSnapshotAttributeRequest resetSnapshotAttributeRequest)
                                         throws AmazonServiceException,
                                                AmazonClientException

Resets permission settings for the specified snapshot.

Specified by:
resetSnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
resetSnapshotAttributeRequest - Container for the necessary parameters to execute the ResetSnapshotAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ResetSnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetSnapshotAttributeAsync

public Future<Void> resetSnapshotAttributeAsync(ResetSnapshotAttributeRequest resetSnapshotAttributeRequest,
                                                AsyncHandler<ResetSnapshotAttributeRequest,Void> asyncHandler)
                                         throws AmazonServiceException,
                                                AmazonClientException

Resets permission settings for the specified snapshot.

Specified by:
resetSnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
resetSnapshotAttributeRequest - Container for the necessary parameters to execute the ResetSnapshotAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ResetSnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importVolumeAsync

public Future<ImportVolumeResult> importVolumeAsync(ImportVolumeRequest importVolumeRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException
Specified by:
importVolumeAsync in interface AmazonEC2Async
Parameters:
importVolumeRequest - Container for the necessary parameters to execute the ImportVolume operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ImportVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importVolumeAsync

public Future<ImportVolumeResult> importVolumeAsync(ImportVolumeRequest importVolumeRequest,
                                                    AsyncHandler<ImportVolumeRequest,ImportVolumeResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException
Specified by:
importVolumeAsync in interface AmazonEC2Async
Parameters:
importVolumeRequest - Container for the necessary parameters to execute the ImportVolume operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ImportVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSecurityGroupsAsync

public Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(DescribeSecurityGroupsRequest describeSecurityGroupsRequest)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The DescribeSecurityGroups operation returns information about security groups that you own.

If you specify security group names, information about those security group is returned. Otherwise, information for all security group is returned. If you specify a group that does not exist, a fault is returned.

Specified by:
describeSecurityGroupsAsync in interface AmazonEC2Async
Parameters:
describeSecurityGroupsRequest - Container for the necessary parameters to execute the DescribeSecurityGroups operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSecurityGroups service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSecurityGroupsAsync

public Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(DescribeSecurityGroupsRequest describeSecurityGroupsRequest,
                                                                        AsyncHandler<DescribeSecurityGroupsRequest,DescribeSecurityGroupsResult> asyncHandler)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The DescribeSecurityGroups operation returns information about security groups that you own.

If you specify security group names, information about those security group is returned. Otherwise, information for all security group is returned. If you specify a group that does not exist, a fault is returned.

Specified by:
describeSecurityGroupsAsync in interface AmazonEC2Async
Parameters:
describeSecurityGroupsRequest - Container for the necessary parameters to execute the DescribeSecurityGroups operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSecurityGroups service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deregisterImageAsync

public Future<Void> deregisterImageAsync(DeregisterImageRequest deregisterImageRequest)
                                  throws AmazonServiceException,
                                         AmazonClientException

The DeregisterImage operation deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.

Specified by:
deregisterImageAsync in interface AmazonEC2Async
Parameters:
deregisterImageRequest - Container for the necessary parameters to execute the DeregisterImage operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeregisterImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deregisterImageAsync

public Future<Void> deregisterImageAsync(DeregisterImageRequest deregisterImageRequest,
                                         AsyncHandler<DeregisterImageRequest,Void> asyncHandler)
                                  throws AmazonServiceException,
                                         AmazonClientException

The DeregisterImage operation deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.

Specified by:
deregisterImageAsync in interface AmazonEC2Async
Parameters:
deregisterImageRequest - Container for the necessary parameters to execute the DeregisterImage operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeregisterImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotDatafeedSubscriptionAsync

public Future<DescribeSpotDatafeedSubscriptionResult> describeSpotDatafeedSubscriptionAsync(DescribeSpotDatafeedSubscriptionRequest describeSpotDatafeedSubscriptionRequest)
                                                                                     throws AmazonServiceException,
                                                                                            AmazonClientException

Describes the data feed for Spot Instances.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
describeSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
describeSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the DescribeSpotDatafeedSubscription operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotDatafeedSubscriptionAsync

public Future<DescribeSpotDatafeedSubscriptionResult> describeSpotDatafeedSubscriptionAsync(DescribeSpotDatafeedSubscriptionRequest describeSpotDatafeedSubscriptionRequest,
                                                                                            AsyncHandler<DescribeSpotDatafeedSubscriptionRequest,DescribeSpotDatafeedSubscriptionResult> asyncHandler)
                                                                                     throws AmazonServiceException,
                                                                                            AmazonClientException

Describes the data feed for Spot Instances.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
describeSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
describeSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the DescribeSpotDatafeedSubscription operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteTagsAsync

public Future<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest)
                             throws AmazonServiceException,
                                    AmazonClientException

Deletes tags from the specified Amazon EC2 resources.

Specified by:
deleteTagsAsync in interface AmazonEC2Async
Parameters:
deleteTagsRequest - Container for the necessary parameters to execute the DeleteTags operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteTagsAsync

public Future<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest,
                                    AsyncHandler<DeleteTagsRequest,Void> asyncHandler)
                             throws AmazonServiceException,
                                    AmazonClientException

Deletes tags from the specified Amazon EC2 resources.

Specified by:
deleteTagsAsync in interface AmazonEC2Async
Parameters:
deleteTagsRequest - Container for the necessary parameters to execute the DeleteTags operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

enableVolumeIOAsync

public Future<Void> enableVolumeIOAsync(EnableVolumeIORequest enableVolumeIORequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

Enable IO on the volume after an event has occured.

Specified by:
enableVolumeIOAsync in interface AmazonEC2Async
Parameters:
enableVolumeIORequest - Container for the necessary parameters to execute the EnableVolumeIO operation on AmazonEC2.
Returns:
A Java Future object containing the response from the EnableVolumeIO service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

enableVolumeIOAsync

public Future<Void> enableVolumeIOAsync(EnableVolumeIORequest enableVolumeIORequest,
                                        AsyncHandler<EnableVolumeIORequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

Enable IO on the volume after an event has occured.

Specified by:
enableVolumeIOAsync in interface AmazonEC2Async
Parameters:
enableVolumeIORequest - Container for the necessary parameters to execute the EnableVolumeIO operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the EnableVolumeIO service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

attachVolumeAsync

public Future<AttachVolumeResult> attachVolumeAsync(AttachVolumeRequest attachVolumeRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Attach a previously created volume to a running instance.

Specified by:
attachVolumeAsync in interface AmazonEC2Async
Parameters:
attachVolumeRequest - Container for the necessary parameters to execute the AttachVolume operation on AmazonEC2.
Returns:
A Java Future object containing the response from the AttachVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

attachVolumeAsync

public Future<AttachVolumeResult> attachVolumeAsync(AttachVolumeRequest attachVolumeRequest,
                                                    AsyncHandler<AttachVolumeRequest,AttachVolumeResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Attach a previously created volume to a running instance.

Specified by:
attachVolumeAsync in interface AmazonEC2Async
Parameters:
attachVolumeRequest - Container for the necessary parameters to execute the AttachVolume operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AttachVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeLicensesAsync

public Future<DescribeLicensesResult> describeLicensesAsync(DescribeLicensesRequest describeLicensesRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Provides details of a user's registered licenses. Zero or more IDs may be specified on the call. When one or more license IDs are specified, only data for the specified IDs are returned.

Specified by:
describeLicensesAsync in interface AmazonEC2Async
Parameters:
describeLicensesRequest - Container for the necessary parameters to execute the DescribeLicenses operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeLicenses service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeLicensesAsync

public Future<DescribeLicensesResult> describeLicensesAsync(DescribeLicensesRequest describeLicensesRequest,
                                                            AsyncHandler<DescribeLicensesRequest,DescribeLicensesResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Provides details of a user's registered licenses. Zero or more IDs may be specified on the call. When one or more license IDs are specified, only data for the specified IDs are returned.

Specified by:
describeLicensesAsync in interface AmazonEC2Async
Parameters:
describeLicensesRequest - Container for the necessary parameters to execute the DescribeLicenses operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeLicenses service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumeStatusAsync

public Future<DescribeVolumeStatusResult> describeVolumeStatusAsync(DescribeVolumeStatusRequest describeVolumeStatusRequest)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Describes the status of a volume.

Specified by:
describeVolumeStatusAsync in interface AmazonEC2Async
Parameters:
describeVolumeStatusRequest - Container for the necessary parameters to execute the DescribeVolumeStatus operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeVolumeStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumeStatusAsync

public Future<DescribeVolumeStatusResult> describeVolumeStatusAsync(DescribeVolumeStatusRequest describeVolumeStatusRequest,
                                                                    AsyncHandler<DescribeVolumeStatusRequest,DescribeVolumeStatusResult> asyncHandler)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Describes the status of a volume.

Specified by:
describeVolumeStatusAsync in interface AmazonEC2Async
Parameters:
describeVolumeStatusRequest - Container for the necessary parameters to execute the DescribeVolumeStatus operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeVolumeStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

activateLicenseAsync

public Future<Void> activateLicenseAsync(ActivateLicenseRequest activateLicenseRequest)
                                  throws AmazonServiceException,
                                         AmazonClientException

Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.

Specified by:
activateLicenseAsync in interface AmazonEC2Async
Parameters:
activateLicenseRequest - Container for the necessary parameters to execute the ActivateLicense operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ActivateLicense service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

activateLicenseAsync

public Future<Void> activateLicenseAsync(ActivateLicenseRequest activateLicenseRequest,
                                         AsyncHandler<ActivateLicenseRequest,Void> asyncHandler)
                                  throws AmazonServiceException,
                                         AmazonClientException

Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.

Specified by:
activateLicenseAsync in interface AmazonEC2Async
Parameters:
activateLicenseRequest - Container for the necessary parameters to execute the ActivateLicense operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ActivateLicense service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetImageAttributeAsync

public Future<Void> resetImageAttributeAsync(ResetImageAttributeRequest resetImageAttributeRequest)
                                      throws AmazonServiceException,
                                             AmazonClientException

The ResetImageAttribute operation resets an attribute of an AMI to its default value.

NOTE: The productCodes attribute cannot be reset.

Specified by:
resetImageAttributeAsync in interface AmazonEC2Async
Parameters:
resetImageAttributeRequest - Container for the necessary parameters to execute the ResetImageAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ResetImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetImageAttributeAsync

public Future<Void> resetImageAttributeAsync(ResetImageAttributeRequest resetImageAttributeRequest,
                                             AsyncHandler<ResetImageAttributeRequest,Void> asyncHandler)
                                      throws AmazonServiceException,
                                             AmazonClientException

The ResetImageAttribute operation resets an attribute of an AMI to its default value.

NOTE: The productCodes attribute cannot be reset.

Specified by:
resetImageAttributeAsync in interface AmazonEC2Async
Parameters:
resetImageAttributeRequest - Container for the necessary parameters to execute the ResetImageAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ResetImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSnapshotAsync

public Future<CreateSnapshotResult> createSnapshotAsync(CreateSnapshotRequest createSnapshotRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot is taken.

NOTE: Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until the create snapshot status has returned.

Specified by:
createSnapshotAsync in interface AmazonEC2Async
Parameters:
createSnapshotRequest - Container for the necessary parameters to execute the CreateSnapshot operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateSnapshot service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSnapshotAsync

public Future<CreateSnapshotResult> createSnapshotAsync(CreateSnapshotRequest createSnapshotRequest,
                                                        AsyncHandler<CreateSnapshotRequest,CreateSnapshotResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot is taken.

NOTE: Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until the create snapshot status has returned.

Specified by:
createSnapshotAsync in interface AmazonEC2Async
Parameters:
createSnapshotRequest - Container for the necessary parameters to execute the CreateSnapshot operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateSnapshot service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteVolumeAsync

public Future<Void> deleteVolumeAsync(DeleteVolumeRequest deleteVolumeRequest)
                               throws AmazonServiceException,
                                      AmazonClientException

Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.

Specified by:
deleteVolumeAsync in interface AmazonEC2Async
Parameters:
deleteVolumeRequest - Container for the necessary parameters to execute the DeleteVolume operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteVolumeAsync

public Future<Void> deleteVolumeAsync(DeleteVolumeRequest deleteVolumeRequest,
                                      AsyncHandler<DeleteVolumeRequest,Void> asyncHandler)
                               throws AmazonServiceException,
                                      AmazonClientException

Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.

Specified by:
deleteVolumeAsync in interface AmazonEC2Async
Parameters:
deleteVolumeRequest - Container for the necessary parameters to execute the DeleteVolume operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

associateAddressAsync

public Future<AssociateAddressResult> associateAddressAsync(AssociateAddressRequest associateAddressRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The AssociateAddress operation associates an elastic IP address with an instance.

If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

Specified by:
associateAddressAsync in interface AmazonEC2Async
Parameters:
associateAddressRequest - Container for the necessary parameters to execute the AssociateAddress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the AssociateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

associateAddressAsync

public Future<AssociateAddressResult> associateAddressAsync(AssociateAddressRequest associateAddressRequest,
                                                            AsyncHandler<AssociateAddressRequest,AssociateAddressResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The AssociateAddress operation associates an elastic IP address with an instance.

If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

Specified by:
associateAddressAsync in interface AmazonEC2Async
Parameters:
associateAddressRequest - Container for the necessary parameters to execute the AssociateAddress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AssociateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelConversionTaskAsync

public Future<Void> cancelConversionTaskAsync(CancelConversionTaskRequest cancelConversionTaskRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException
Specified by:
cancelConversionTaskAsync in interface AmazonEC2Async
Parameters:
cancelConversionTaskRequest - Container for the necessary parameters to execute the CancelConversionTask operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CancelConversionTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelConversionTaskAsync

public Future<Void> cancelConversionTaskAsync(CancelConversionTaskRequest cancelConversionTaskRequest,
                                              AsyncHandler<CancelConversionTaskRequest,Void> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException
Specified by:
cancelConversionTaskAsync in interface AmazonEC2Async
Parameters:
cancelConversionTaskRequest - Container for the necessary parameters to execute the CancelConversionTask operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelConversionTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deactivateLicenseAsync

public Future<Void> deactivateLicenseAsync(DeactivateLicenseRequest deactivateLicenseRequest)
                                    throws AmazonServiceException,
                                           AmazonClientException

Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have persisted for at least a 90-day period.

Specified by:
deactivateLicenseAsync in interface AmazonEC2Async
Parameters:
deactivateLicenseRequest - Container for the necessary parameters to execute the DeactivateLicense operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeactivateLicense service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deactivateLicenseAsync

public Future<Void> deactivateLicenseAsync(DeactivateLicenseRequest deactivateLicenseRequest,
                                           AsyncHandler<DeactivateLicenseRequest,Void> asyncHandler)
                                    throws AmazonServiceException,
                                           AmazonClientException

Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have persisted for at least a 90-day period.

Specified by:
deactivateLicenseAsync in interface AmazonEC2Async
Parameters:
deactivateLicenseRequest - Container for the necessary parameters to execute the DeactivateLicense operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeactivateLicense service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeExportTasksAsync

public Future<DescribeExportTasksResult> describeExportTasksAsync(DescribeExportTasksRequest describeExportTasksRequest)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException
Specified by:
describeExportTasksAsync in interface AmazonEC2Async
Parameters:
describeExportTasksRequest - Container for the necessary parameters to execute the DescribeExportTasks operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeExportTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeExportTasksAsync

public Future<DescribeExportTasksResult> describeExportTasksAsync(DescribeExportTasksRequest describeExportTasksRequest,
                                                                  AsyncHandler<DescribeExportTasksRequest,DescribeExportTasksResult> asyncHandler)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException
Specified by:
describeExportTasksAsync in interface AmazonEC2Async
Parameters:
describeExportTasksRequest - Container for the necessary parameters to execute the DescribeExportTasks operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeExportTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumesAsync

public Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

Describes the status of the indicated volume or, in lieu of any specified, all volumes belonging to the caller. Volumes that have been deleted are not described.

Specified by:
describeVolumesAsync in interface AmazonEC2Async
Parameters:
describeVolumesRequest - Container for the necessary parameters to execute the DescribeVolumes operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeVolumes service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumesAsync

public Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest,
                                                          AsyncHandler<DescribeVolumesRequest,DescribeVolumesResult> asyncHandler)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

Describes the status of the indicated volume or, in lieu of any specified, all volumes belonging to the caller. Volumes that have been deleted are not described.

Specified by:
describeVolumesAsync in interface AmazonEC2Async
Parameters:
describeVolumesRequest - Container for the necessary parameters to execute the DescribeVolumes operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeVolumes service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesListingsAsync

public Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest)
                                                                                       throws AmazonServiceException,
                                                                                              AmazonClientException
Specified by:
describeReservedInstancesListingsAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesListingsRequest - Container for the necessary parameters to execute the DescribeReservedInstancesListings operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeReservedInstancesListings service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesListingsAsync

public Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest,
                                                                                              AsyncHandler<DescribeReservedInstancesListingsRequest,DescribeReservedInstancesListingsResult> asyncHandler)
                                                                                       throws AmazonServiceException,
                                                                                              AmazonClientException
Specified by:
describeReservedInstancesListingsAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesListingsRequest - Container for the necessary parameters to execute the DescribeReservedInstancesListings operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeReservedInstancesListings service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

reportInstanceStatusAsync

public Future<Void> reportInstanceStatusAsync(ReportInstanceStatusRequest reportInstanceStatusRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException
Specified by:
reportInstanceStatusAsync in interface AmazonEC2Async
Parameters:
reportInstanceStatusRequest - Container for the necessary parameters to execute the ReportInstanceStatus operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ReportInstanceStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

reportInstanceStatusAsync

public Future<Void> reportInstanceStatusAsync(ReportInstanceStatusRequest reportInstanceStatusRequest,
                                              AsyncHandler<ReportInstanceStatusRequest,Void> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException
Specified by:
reportInstanceStatusAsync in interface AmazonEC2Async
Parameters:
reportInstanceStatusRequest - Container for the necessary parameters to execute the ReportInstanceStatus operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReportInstanceStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

monitorInstancesAsync

public Future<MonitorInstancesResult> monitorInstancesAsync(MonitorInstancesRequest monitorInstancesRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Enables monitoring for a running instance.

Specified by:
monitorInstancesAsync in interface AmazonEC2Async
Parameters:
monitorInstancesRequest - Container for the necessary parameters to execute the MonitorInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the MonitorInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

monitorInstancesAsync

public Future<MonitorInstancesResult> monitorInstancesAsync(MonitorInstancesRequest monitorInstancesRequest,
                                                            AsyncHandler<MonitorInstancesRequest,MonitorInstancesResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Enables monitoring for a running instance.

Specified by:
monitorInstancesAsync in interface AmazonEC2Async
Parameters:
monitorInstancesRequest - Container for the necessary parameters to execute the MonitorInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the MonitorInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeBundleTasksAsync

public Future<DescribeBundleTasksResult> describeBundleTasksAsync(DescribeBundleTasksRequest describeBundleTasksRequest)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

The DescribeBundleTasks operation describes in-progress and recent bundle tasks. Complete and failed tasks are removed from the list a short time after completion. If no bundle ids are given, all bundle tasks are returned.

Specified by:
describeBundleTasksAsync in interface AmazonEC2Async
Parameters:
describeBundleTasksRequest - Container for the necessary parameters to execute the DescribeBundleTasks operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeBundleTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeBundleTasksAsync

public Future<DescribeBundleTasksResult> describeBundleTasksAsync(DescribeBundleTasksRequest describeBundleTasksRequest,
                                                                  AsyncHandler<DescribeBundleTasksRequest,DescribeBundleTasksResult> asyncHandler)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

The DescribeBundleTasks operation describes in-progress and recent bundle tasks. Complete and failed tasks are removed from the list a short time after completion. If no bundle ids are given, all bundle tasks are returned.

Specified by:
describeBundleTasksAsync in interface AmazonEC2Async
Parameters:
describeBundleTasksRequest - Container for the necessary parameters to execute the DescribeBundleTasks operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeBundleTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importInstanceAsync

public Future<ImportInstanceResult> importInstanceAsync(ImportInstanceRequest importInstanceRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException
Specified by:
importInstanceAsync in interface AmazonEC2Async
Parameters:
importInstanceRequest - Container for the necessary parameters to execute the ImportInstance operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ImportInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

importInstanceAsync

public Future<ImportInstanceResult> importInstanceAsync(ImportInstanceRequest importInstanceRequest,
                                                        AsyncHandler<ImportInstanceRequest,ImportInstanceResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException
Specified by:
importInstanceAsync in interface AmazonEC2Async
Parameters:
importInstanceRequest - Container for the necessary parameters to execute the ImportInstance operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ImportInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

revokeSecurityGroupIngressAsync

public Future<Void> revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest revokeSecurityGroupIngressRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The RevokeSecurityGroupIngress operation revokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.

Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).

Permission changes are quickly propagated to instances within the security group. However, depending on the number of instances in the group, a small delay might occur.

Specified by:
revokeSecurityGroupIngressAsync in interface AmazonEC2Async
Parameters:
revokeSecurityGroupIngressRequest - Container for the necessary parameters to execute the RevokeSecurityGroupIngress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the RevokeSecurityGroupIngress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

revokeSecurityGroupIngressAsync

public Future<Void> revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest revokeSecurityGroupIngressRequest,
                                                    AsyncHandler<RevokeSecurityGroupIngressRequest,Void> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The RevokeSecurityGroupIngress operation revokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.

Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).

Permission changes are quickly propagated to instances within the security group. However, depending on the number of instances in the group, a small delay might occur.

Specified by:
revokeSecurityGroupIngressAsync in interface AmazonEC2Async
Parameters:
revokeSecurityGroupIngressRequest - Container for the necessary parameters to execute the RevokeSecurityGroupIngress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RevokeSecurityGroupIngress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

getConsoleOutputAsync

public Future<GetConsoleOutputResult> getConsoleOutputAsync(GetConsoleOutputRequest getConsoleOutputRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The GetConsoleOutput operation retrieves console output for the specified instance.

Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least one hour after the most recent post.

Specified by:
getConsoleOutputAsync in interface AmazonEC2Async
Parameters:
getConsoleOutputRequest - Container for the necessary parameters to execute the GetConsoleOutput operation on AmazonEC2.
Returns:
A Java Future object containing the response from the GetConsoleOutput service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

getConsoleOutputAsync

public Future<GetConsoleOutputResult> getConsoleOutputAsync(GetConsoleOutputRequest getConsoleOutputRequest,
                                                            AsyncHandler<GetConsoleOutputRequest,GetConsoleOutputResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The GetConsoleOutput operation retrieves console output for the specified instance.

Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least one hour after the most recent post.

Specified by:
getConsoleOutputAsync in interface AmazonEC2Async
Parameters:
getConsoleOutputRequest - Container for the necessary parameters to execute the GetConsoleOutput operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetConsoleOutput service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyImageAttributeAsync

public Future<Void> modifyImageAttributeAsync(ModifyImageAttributeRequest modifyImageAttributeRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

The ModifyImageAttribute operation modifies an attribute of an AMI.

Specified by:
modifyImageAttributeAsync in interface AmazonEC2Async
Parameters:
modifyImageAttributeRequest - Container for the necessary parameters to execute the ModifyImageAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ModifyImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyImageAttributeAsync

public Future<Void> modifyImageAttributeAsync(ModifyImageAttributeRequest modifyImageAttributeRequest,
                                              AsyncHandler<ModifyImageAttributeRequest,Void> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

The ModifyImageAttribute operation modifies an attribute of an AMI.

Specified by:
modifyImageAttributeAsync in interface AmazonEC2Async
Parameters:
modifyImageAttributeRequest - Container for the necessary parameters to execute the ModifyImageAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSpotDatafeedSubscriptionAsync

public Future<CreateSpotDatafeedSubscriptionResult> createSpotDatafeedSubscriptionAsync(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException

Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
createSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
createSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the CreateSpotDatafeedSubscription operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createSpotDatafeedSubscriptionAsync

public Future<CreateSpotDatafeedSubscriptionResult> createSpotDatafeedSubscriptionAsync(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest,
                                                                                        AsyncHandler<CreateSpotDatafeedSubscriptionRequest,CreateSpotDatafeedSubscriptionResult> asyncHandler)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException

Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
createSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
createSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the CreateSpotDatafeedSubscription operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeConversionTasksAsync

public Future<DescribeConversionTasksResult> describeConversionTasksAsync(DescribeConversionTasksRequest describeConversionTasksRequest)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException
Specified by:
describeConversionTasksAsync in interface AmazonEC2Async
Parameters:
describeConversionTasksRequest - Container for the necessary parameters to execute the DescribeConversionTasks operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeConversionTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeConversionTasksAsync

public Future<DescribeConversionTasksResult> describeConversionTasksAsync(DescribeConversionTasksRequest describeConversionTasksRequest,
                                                                          AsyncHandler<DescribeConversionTasksRequest,DescribeConversionTasksResult> asyncHandler)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException
Specified by:
describeConversionTasksAsync in interface AmazonEC2Async
Parameters:
describeConversionTasksRequest - Container for the necessary parameters to execute the DescribeConversionTasks operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeConversionTasks service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstanceAttributeAsync

public Future<DescribeInstanceAttributeResult> describeInstanceAttributeAsync(DescribeInstanceAttributeRequest describeInstanceAttributeRequest)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

Returns information about an attribute of an instance. Only one attribute can be specified per call.

Specified by:
describeInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
describeInstanceAttributeRequest - Container for the necessary parameters to execute the DescribeInstanceAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstanceAttributeAsync

public Future<DescribeInstanceAttributeResult> describeInstanceAttributeAsync(DescribeInstanceAttributeRequest describeInstanceAttributeRequest,
                                                                              AsyncHandler<DescribeInstanceAttributeRequest,DescribeInstanceAttributeResult> asyncHandler)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

Returns information about an attribute of an instance. Only one attribute can be specified per call.

Specified by:
describeInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
describeInstanceAttributeRequest - Container for the necessary parameters to execute the DescribeInstanceAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

runInstancesAsync

public Future<RunInstancesResult> runInstancesAsync(RunInstancesRequest runInstancesRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The RunInstances operation launches a specified number of instances.

If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch. If there is insufficient capacity to launch the maximum number of AMIs you request, Amazon EC2 launches as many as possible to satisfy the requested maximum values.

Every instance is launched in a security group. If you do not specify a security group at launch, the instances start in your default security group. For more information on creating security groups, see CreateSecurityGroup.

An optional instance type can be specified. For information about instance types, see Instance Types.

You can provide an optional key pair ID for each image in the launch request (for more information, see CreateKeyPair). All instances that are created from images that use this key pair will have access to the associated public key at boot. You can use this key to provide secure access to an instance of an image on a per-instance basis. Amazon EC2 public images use this feature to provide secure access without passwords.

IMPORTANT: Launching public images without a key pair ID will leave them inaccessible. The public key material is made available to the instance at boot time by placing it in the openssh_id.pub file on a logical device that is exposed to the instance as /dev/sda2 (the ephemeral store). The format of this file is suitable for use as an entry within ~/.ssh/authorized_keys (the OpenSSH format). This can be done at boot (e.g., as part of rc.local) allowing for secure access without passwords. Optional user data can be provided in the launch request. All instances that collectively comprise the launch request have access to this data For more information, see Instance Metadata.

NOTE: If any of the AMIs have a product code attached for which the user has not subscribed, the RunInstances call will fail.

IMPORTANT: We strongly recommend using the 2.6.18 Xen stock kernel with the c1.medium and c1.xlarge instances. Although the default Amazon EC2 kernels will work, the new kernels provide greater stability and performance for these instance types. For more information about kernels, see Kernels, RAM Disks, and Block Device Mappings.

Specified by:
runInstancesAsync in interface AmazonEC2Async
Parameters:
runInstancesRequest - Container for the necessary parameters to execute the RunInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the RunInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

runInstancesAsync

public Future<RunInstancesResult> runInstancesAsync(RunInstancesRequest runInstancesRequest,
                                                    AsyncHandler<RunInstancesRequest,RunInstancesResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The RunInstances operation launches a specified number of instances.

If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch. If there is insufficient capacity to launch the maximum number of AMIs you request, Amazon EC2 launches as many as possible to satisfy the requested maximum values.

Every instance is launched in a security group. If you do not specify a security group at launch, the instances start in your default security group. For more information on creating security groups, see CreateSecurityGroup.

An optional instance type can be specified. For information about instance types, see Instance Types.

You can provide an optional key pair ID for each image in the launch request (for more information, see CreateKeyPair). All instances that are created from images that use this key pair will have access to the associated public key at boot. You can use this key to provide secure access to an instance of an image on a per-instance basis. Amazon EC2 public images use this feature to provide secure access without passwords.

IMPORTANT: Launching public images without a key pair ID will leave them inaccessible. The public key material is made available to the instance at boot time by placing it in the openssh_id.pub file on a logical device that is exposed to the instance as /dev/sda2 (the ephemeral store). The format of this file is suitable for use as an entry within ~/.ssh/authorized_keys (the OpenSSH format). This can be done at boot (e.g., as part of rc.local) allowing for secure access without passwords. Optional user data can be provided in the launch request. All instances that collectively comprise the launch request have access to this data For more information, see Instance Metadata.

NOTE: If any of the AMIs have a product code attached for which the user has not subscribed, the RunInstances call will fail.

IMPORTANT: We strongly recommend using the 2.6.18 Xen stock kernel with the c1.medium and c1.xlarge instances. Although the default Amazon EC2 kernels will work, the new kernels provide greater stability and performance for these instance types. For more information about kernels, see Kernels, RAM Disks, and Block Device Mappings.

Specified by:
runInstancesAsync in interface AmazonEC2Async
Parameters:
runInstancesRequest - Container for the necessary parameters to execute the RunInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RunInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describePlacementGroupsAsync

public Future<DescribePlacementGroupsResult> describePlacementGroupsAsync(DescribePlacementGroupsRequest describePlacementGroupsRequest)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException

Returns information about one or more PlacementGroup instances in a user's account.

Specified by:
describePlacementGroupsAsync in interface AmazonEC2Async
Parameters:
describePlacementGroupsRequest - Container for the necessary parameters to execute the DescribePlacementGroups operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribePlacementGroups service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describePlacementGroupsAsync

public Future<DescribePlacementGroupsResult> describePlacementGroupsAsync(DescribePlacementGroupsRequest describePlacementGroupsRequest,
                                                                          AsyncHandler<DescribePlacementGroupsRequest,DescribePlacementGroupsResult> asyncHandler)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException

Returns information about one or more PlacementGroup instances in a user's account.

Specified by:
describePlacementGroupsAsync in interface AmazonEC2Async
Parameters:
describePlacementGroupsRequest - Container for the necessary parameters to execute the DescribePlacementGroups operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribePlacementGroups service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstancesAsync

public Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

The DescribeInstances operation returns information about instances that you own.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault is returned. If you specify an instance that you do not own, it will not be included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

Specified by:
describeInstancesAsync in interface AmazonEC2Async
Parameters:
describeInstancesRequest - Container for the necessary parameters to execute the DescribeInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstancesAsync

public Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest,
                                                              AsyncHandler<DescribeInstancesRequest,DescribeInstancesResult> asyncHandler)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

The DescribeInstances operation returns information about instances that you own.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault is returned. If you specify an instance that you do not own, it will not be included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

Specified by:
describeInstancesAsync in interface AmazonEC2Async
Parameters:
describeInstancesRequest - Container for the necessary parameters to execute the DescribeInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyVolumeAttributeAsync

public Future<Void> modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest modifyVolumeAttributeRequest)
                                        throws AmazonServiceException,
                                               AmazonClientException
Specified by:
modifyVolumeAttributeAsync in interface AmazonEC2Async
Parameters:
modifyVolumeAttributeRequest - Container for the necessary parameters to execute the ModifyVolumeAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ModifyVolumeAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyVolumeAttributeAsync

public Future<Void> modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest modifyVolumeAttributeRequest,
                                               AsyncHandler<ModifyVolumeAttributeRequest,Void> asyncHandler)
                                        throws AmazonServiceException,
                                               AmazonClientException
Specified by:
modifyVolumeAttributeAsync in interface AmazonEC2Async
Parameters:
modifyVolumeAttributeRequest - Container for the necessary parameters to execute the ModifyVolumeAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyVolumeAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeImagesAsync

public Future<DescribeImagesResult> describeImagesAsync(DescribeImagesRequest describeImagesRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user. Information returned includes image type, product codes, architecture, and kernel and RAM disk IDs. Images available to the user include public images available for any user to launch, private images owned by the user making the request, and private images owned by other users for which the user has explicit launch permissions.

Launch permissions fall into three categories:

The list of AMIs returned can be modified by specifying AMI IDs, AMI owners, or users with launch permissions. If no options are specified, Amazon EC2 returns all AMIs for which the user has launch permissions.

If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. If you specify an invalid AMI ID, a fault is returned. If you specify an AMI ID for which you do not have access, it will not be included in the returned results.

If you specify one or more AMI owners, only AMIs from the specified owners and for which you have access are returned. The results can include the account IDs of the specified owners, amazon for AMIs owned by Amazon or self for AMIs that you own.

If you specify a list of executable users, only users that have launch permissions for the AMIs are returned. You can specify account IDs (if you own the AMI(s)), self for AMIs for which you own or have explicit permissions, or all for public AMIs.

NOTE: Deregistered images are included in the returned results for an unspecified interval after deregistration.

Specified by:
describeImagesAsync in interface AmazonEC2Async
Parameters:
describeImagesRequest - Container for the necessary parameters to execute the DescribeImages operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeImages service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeImagesAsync

public Future<DescribeImagesResult> describeImagesAsync(DescribeImagesRequest describeImagesRequest,
                                                        AsyncHandler<DescribeImagesRequest,DescribeImagesResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user. Information returned includes image type, product codes, architecture, and kernel and RAM disk IDs. Images available to the user include public images available for any user to launch, private images owned by the user making the request, and private images owned by other users for which the user has explicit launch permissions.

Launch permissions fall into three categories:

The list of AMIs returned can be modified by specifying AMI IDs, AMI owners, or users with launch permissions. If no options are specified, Amazon EC2 returns all AMIs for which the user has launch permissions.

If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. If you specify an invalid AMI ID, a fault is returned. If you specify an AMI ID for which you do not have access, it will not be included in the returned results.

If you specify one or more AMI owners, only AMIs from the specified owners and for which you have access are returned. The results can include the account IDs of the specified owners, amazon for AMIs owned by Amazon or self for AMIs that you own.

If you specify a list of executable users, only users that have launch permissions for the AMIs are returned. You can specify account IDs (if you own the AMI(s)), self for AMIs for which you own or have explicit permissions, or all for public AMIs.

NOTE: Deregistered images are included in the returned results for an unspecified interval after deregistration.

Specified by:
describeImagesAsync in interface AmazonEC2Async
Parameters:
describeImagesRequest - Container for the necessary parameters to execute the DescribeImages operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeImages service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

startInstancesAsync

public Future<StartInstancesResult> startInstancesAsync(StartInstancesRequest startInstancesRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.

NOTE: Performing this operation on an instance that uses an instance store as its root device returns an error.

Specified by:
startInstancesAsync in interface AmazonEC2Async
Parameters:
startInstancesRequest - Container for the necessary parameters to execute the StartInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the StartInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

startInstancesAsync

public Future<StartInstancesResult> startInstancesAsync(StartInstancesRequest startInstancesRequest,
                                                        AsyncHandler<StartInstancesRequest,StartInstancesResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.

NOTE: Performing this operation on an instance that uses an instance store as its root device returns an error.

Specified by:
startInstancesAsync in interface AmazonEC2Async
Parameters:
startInstancesRequest - Container for the necessary parameters to execute the StartInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the StartInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelReservedInstancesListingAsync

public Future<CancelReservedInstancesListingResult> cancelReservedInstancesListingAsync(CancelReservedInstancesListingRequest cancelReservedInstancesListingRequest)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException
Specified by:
cancelReservedInstancesListingAsync in interface AmazonEC2Async
Parameters:
cancelReservedInstancesListingRequest - Container for the necessary parameters to execute the CancelReservedInstancesListing operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CancelReservedInstancesListing service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelReservedInstancesListingAsync

public Future<CancelReservedInstancesListingResult> cancelReservedInstancesListingAsync(CancelReservedInstancesListingRequest cancelReservedInstancesListingRequest,
                                                                                        AsyncHandler<CancelReservedInstancesListingRequest,CancelReservedInstancesListingResult> asyncHandler)
                                                                                 throws AmazonServiceException,
                                                                                        AmazonClientException
Specified by:
cancelReservedInstancesListingAsync in interface AmazonEC2Async
Parameters:
cancelReservedInstancesListingRequest - Container for the necessary parameters to execute the CancelReservedInstancesListing operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelReservedInstancesListing service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyInstanceAttributeAsync

public Future<Void> modifyInstanceAttributeAsync(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Modifies an attribute of an instance.

Specified by:
modifyInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
modifyInstanceAttributeRequest - Container for the necessary parameters to execute the ModifyInstanceAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ModifyInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifyInstanceAttributeAsync

public Future<Void> modifyInstanceAttributeAsync(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest,
                                                 AsyncHandler<ModifyInstanceAttributeRequest,Void> asyncHandler)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Modifies an attribute of an instance.

Specified by:
modifyInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
modifyInstanceAttributeRequest - Container for the necessary parameters to execute the ModifyInstanceAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

authorizeSecurityGroupIngressAsync

public Future<Void> authorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest)
                                                throws AmazonServiceException,
                                                       AmazonClientException

The AuthorizeSecurityGroupIngress operation adds permissions to a security group.

Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). When authorizing ICMP, -1 can be used as a wildcard in the type and code fields.

Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur.

Specified by:
authorizeSecurityGroupIngressAsync in interface AmazonEC2Async
Parameters:
authorizeSecurityGroupIngressRequest - Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the AuthorizeSecurityGroupIngress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

authorizeSecurityGroupIngressAsync

public Future<Void> authorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest,
                                                       AsyncHandler<AuthorizeSecurityGroupIngressRequest,Void> asyncHandler)
                                                throws AmazonServiceException,
                                                       AmazonClientException

The AuthorizeSecurityGroupIngress operation adds permissions to a security group.

Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). When authorizing ICMP, -1 can be used as a wildcard in the type and code fields.

Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur.

Specified by:
authorizeSecurityGroupIngressAsync in interface AmazonEC2Async
Parameters:
authorizeSecurityGroupIngressRequest - Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AuthorizeSecurityGroupIngress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotInstanceRequestsAsync

public Future<DescribeSpotInstanceRequestsResult> describeSpotInstanceRequestsAsync(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes Spot Instance requests. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests. For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

You can filter the results to return information only about Spot Instance requests that match criteria you specify. For example, you could get information about requests where the Spot Price you specified is a certain value (you can't use greater than or less than comparison, but you can use * and ? wildcards). You can specify multiple values for a filter. A Spot Instance request must match at least one of the specified values for it to be included in the results.

You can specify multiple filters (e.g., the Spot Price is equal to a particular value, and the instance type is m1.small ). The result includes information for a particular request only if it matches all your filters. If there's no match, no special message is returned; the response is simply empty.

You can use wildcards with the filter values: an asterisk matches zero or more characters, and ? matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\ .

Specified by:
describeSpotInstanceRequestsAsync in interface AmazonEC2Async
Parameters:
describeSpotInstanceRequestsRequest - Container for the necessary parameters to execute the DescribeSpotInstanceRequests operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSpotInstanceRequests service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSpotInstanceRequestsAsync

public Future<DescribeSpotInstanceRequestsResult> describeSpotInstanceRequestsAsync(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest,
                                                                                    AsyncHandler<DescribeSpotInstanceRequestsRequest,DescribeSpotInstanceRequestsResult> asyncHandler)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes Spot Instance requests. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests. For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

You can filter the results to return information only about Spot Instance requests that match criteria you specify. For example, you could get information about requests where the Spot Price you specified is a certain value (you can't use greater than or less than comparison, but you can use * and ? wildcards). You can specify multiple values for a filter. A Spot Instance request must match at least one of the specified values for it to be included in the results.

You can specify multiple filters (e.g., the Spot Price is equal to a particular value, and the instance type is m1.small ). The result includes information for a particular request only if it matches all your filters. If there's no match, no special message is returned; the response is simply empty.

You can use wildcards with the filter values: an asterisk matches zero or more characters, and ? matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\ .

Specified by:
describeSpotInstanceRequestsAsync in interface AmazonEC2Async
Parameters:
describeSpotInstanceRequestsRequest - Container for the necessary parameters to execute the DescribeSpotInstanceRequests operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSpotInstanceRequests service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelExportTaskAsync

public Future<Void> cancelExportTaskAsync(CancelExportTaskRequest cancelExportTaskRequest)
                                   throws AmazonServiceException,
                                          AmazonClientException
Specified by:
cancelExportTaskAsync in interface AmazonEC2Async
Parameters:
cancelExportTaskRequest - Container for the necessary parameters to execute the CancelExportTask operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CancelExportTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelExportTaskAsync

public Future<Void> cancelExportTaskAsync(CancelExportTaskRequest cancelExportTaskRequest,
                                          AsyncHandler<CancelExportTaskRequest,Void> asyncHandler)
                                   throws AmazonServiceException,
                                          AmazonClientException
Specified by:
cancelExportTaskAsync in interface AmazonEC2Async
Parameters:
cancelExportTaskRequest - Container for the necessary parameters to execute the CancelExportTask operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelExportTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

requestSpotInstancesAsync

public Future<RequestSpotInstancesResult> requestSpotInstancesAsync(RequestSpotInstancesRequest requestSpotInstancesRequest)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Creates a Spot Instance request.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.

Specified by:
requestSpotInstancesAsync in interface AmazonEC2Async
Parameters:
requestSpotInstancesRequest - Container for the necessary parameters to execute the RequestSpotInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the RequestSpotInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

requestSpotInstancesAsync

public Future<RequestSpotInstancesResult> requestSpotInstancesAsync(RequestSpotInstancesRequest requestSpotInstancesRequest,
                                                                    AsyncHandler<RequestSpotInstancesRequest,RequestSpotInstancesResult> asyncHandler)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Creates a Spot Instance request.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.

Specified by:
requestSpotInstancesAsync in interface AmazonEC2Async
Parameters:
requestSpotInstancesRequest - Container for the necessary parameters to execute the RequestSpotInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RequestSpotInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createTagsAsync

public Future<Void> createTagsAsync(CreateTagsRequest createTagsRequest)
                             throws AmazonServiceException,
                                    AmazonClientException

Adds or overwrites tags for the specified resources. Each resource can have a maximum of 10 tags. Each tag consists of a key-value pair. Tag keys must be unique per resource.

Specified by:
createTagsAsync in interface AmazonEC2Async
Parameters:
createTagsRequest - Container for the necessary parameters to execute the CreateTags operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createTagsAsync

public Future<Void> createTagsAsync(CreateTagsRequest createTagsRequest,
                                    AsyncHandler<CreateTagsRequest,Void> asyncHandler)
                             throws AmazonServiceException,
                                    AmazonClientException

Adds or overwrites tags for the specified resources. Each resource can have a maximum of 10 tags. Each tag consists of a key-value pair. Tag keys must be unique per resource.

Specified by:
createTagsAsync in interface AmazonEC2Async
Parameters:
createTagsRequest - Container for the necessary parameters to execute the CreateTags operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumeAttributeAsync

public Future<DescribeVolumeAttributeResult> describeVolumeAttributeAsync(DescribeVolumeAttributeRequest describeVolumeAttributeRequest)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException
Specified by:
describeVolumeAttributeAsync in interface AmazonEC2Async
Parameters:
describeVolumeAttributeRequest - Container for the necessary parameters to execute the DescribeVolumeAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeVolumeAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeVolumeAttributeAsync

public Future<DescribeVolumeAttributeResult> describeVolumeAttributeAsync(DescribeVolumeAttributeRequest describeVolumeAttributeRequest,
                                                                          AsyncHandler<DescribeVolumeAttributeRequest,DescribeVolumeAttributeResult> asyncHandler)
                                                                   throws AmazonServiceException,
                                                                          AmazonClientException
Specified by:
describeVolumeAttributeAsync in interface AmazonEC2Async
Parameters:
describeVolumeAttributeRequest - Container for the necessary parameters to execute the DescribeVolumeAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeVolumeAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeTagsAsync

public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Describes the tags for the specified resources.

Specified by:
describeTagsAsync in interface AmazonEC2Async
Parameters:
describeTagsRequest - Container for the necessary parameters to execute the DescribeTags operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeTagsAsync

public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest,
                                                    AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Describes the tags for the specified resources.

Specified by:
describeTagsAsync in interface AmazonEC2Async
Parameters:
describeTagsRequest - Container for the necessary parameters to execute the DescribeTags operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeTags service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelBundleTaskAsync

public Future<CancelBundleTaskResult> cancelBundleTaskAsync(CancelBundleTaskRequest cancelBundleTaskRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

CancelBundleTask operation cancels a pending or in-progress bundling task. This is an asynchronous call and it make take a while for the task to be canceled. If a task is canceled while it is storing items, there may be parts of the incomplete AMI stored in S3. It is up to the caller to clean up these parts from S3.

Specified by:
cancelBundleTaskAsync in interface AmazonEC2Async
Parameters:
cancelBundleTaskRequest - Container for the necessary parameters to execute the CancelBundleTask operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CancelBundleTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelBundleTaskAsync

public Future<CancelBundleTaskResult> cancelBundleTaskAsync(CancelBundleTaskRequest cancelBundleTaskRequest,
                                                            AsyncHandler<CancelBundleTaskRequest,CancelBundleTaskResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

CancelBundleTask operation cancels a pending or in-progress bundling task. This is an asynchronous call and it make take a while for the task to be canceled. If a task is canceled while it is storing items, there may be parts of the incomplete AMI stored in S3. It is up to the caller to clean up these parts from S3.

Specified by:
cancelBundleTaskAsync in interface AmazonEC2Async
Parameters:
cancelBundleTaskRequest - Container for the necessary parameters to execute the CancelBundleTask operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelBundleTask service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelSpotInstanceRequestsAsync

public Future<CancelSpotInstanceRequestsResult> cancelSpotInstanceRequestsAsync(CancelSpotInstanceRequestsRequest cancelSpotInstanceRequestsRequest)
                                                                         throws AmazonServiceException,
                                                                                AmazonClientException

Cancels one or more Spot Instance requests.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
cancelSpotInstanceRequestsAsync in interface AmazonEC2Async
Parameters:
cancelSpotInstanceRequestsRequest - Container for the necessary parameters to execute the CancelSpotInstanceRequests operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CancelSpotInstanceRequests service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

cancelSpotInstanceRequestsAsync

public Future<CancelSpotInstanceRequestsResult> cancelSpotInstanceRequestsAsync(CancelSpotInstanceRequestsRequest cancelSpotInstanceRequestsRequest,
                                                                                AsyncHandler<CancelSpotInstanceRequestsRequest,CancelSpotInstanceRequestsResult> asyncHandler)
                                                                         throws AmazonServiceException,
                                                                                AmazonClientException

Cancels one or more Spot Instance requests.

Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
cancelSpotInstanceRequestsAsync in interface AmazonEC2Async
Parameters:
cancelSpotInstanceRequestsRequest - Container for the necessary parameters to execute the CancelSpotInstanceRequests operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelSpotInstanceRequests service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

purchaseReservedInstancesOfferingAsync

public Future<PurchaseReservedInstancesOfferingResult> purchaseReservedInstancesOfferingAsync(PurchaseReservedInstancesOfferingRequest purchaseReservedInstancesOfferingRequest)
                                                                                       throws AmazonServiceException,
                                                                                              AmazonClientException

The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

Specified by:
purchaseReservedInstancesOfferingAsync in interface AmazonEC2Async
Parameters:
purchaseReservedInstancesOfferingRequest - Container for the necessary parameters to execute the PurchaseReservedInstancesOffering operation on AmazonEC2.
Returns:
A Java Future object containing the response from the PurchaseReservedInstancesOffering service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

purchaseReservedInstancesOfferingAsync

public Future<PurchaseReservedInstancesOfferingResult> purchaseReservedInstancesOfferingAsync(PurchaseReservedInstancesOfferingRequest purchaseReservedInstancesOfferingRequest,
                                                                                              AsyncHandler<PurchaseReservedInstancesOfferingRequest,PurchaseReservedInstancesOfferingResult> asyncHandler)
                                                                                       throws AmazonServiceException,
                                                                                              AmazonClientException

The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

Specified by:
purchaseReservedInstancesOfferingAsync in interface AmazonEC2Async
Parameters:
purchaseReservedInstancesOfferingRequest - Container for the necessary parameters to execute the PurchaseReservedInstancesOffering operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the PurchaseReservedInstancesOffering service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifySnapshotAttributeAsync

public Future<Void> modifySnapshotAttributeAsync(ModifySnapshotAttributeRequest modifySnapshotAttributeRequest)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Adds or remove permission settings for the specified snapshot.

Specified by:
modifySnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
modifySnapshotAttributeRequest - Container for the necessary parameters to execute the ModifySnapshotAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ModifySnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

modifySnapshotAttributeAsync

public Future<Void> modifySnapshotAttributeAsync(ModifySnapshotAttributeRequest modifySnapshotAttributeRequest,
                                                 AsyncHandler<ModifySnapshotAttributeRequest,Void> asyncHandler)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Adds or remove permission settings for the specified snapshot.

Specified by:
modifySnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
modifySnapshotAttributeRequest - Container for the necessary parameters to execute the ModifySnapshotAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifySnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

terminateInstancesAsync

public Future<TerminateInstancesResult> terminateInstancesAsync(TerminateInstancesRequest terminateInstancesRequest)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

The TerminateInstances operation shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call will succeed.

Terminated instances will remain visible after termination (approximately one hour).

Specified by:
terminateInstancesAsync in interface AmazonEC2Async
Parameters:
terminateInstancesRequest - Container for the necessary parameters to execute the TerminateInstances operation on AmazonEC2.
Returns:
A Java Future object containing the response from the TerminateInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

terminateInstancesAsync

public Future<TerminateInstancesResult> terminateInstancesAsync(TerminateInstancesRequest terminateInstancesRequest,
                                                                AsyncHandler<TerminateInstancesRequest,TerminateInstancesResult> asyncHandler)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

The TerminateInstances operation shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call will succeed.

Terminated instances will remain visible after termination (approximately one hour).

Specified by:
terminateInstancesAsync in interface AmazonEC2Async
Parameters:
terminateInstancesRequest - Container for the necessary parameters to execute the TerminateInstances operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the TerminateInstances service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSpotDatafeedSubscriptionAsync

public Future<Void> deleteSpotDatafeedSubscriptionAsync(DeleteSpotDatafeedSubscriptionRequest deleteSpotDatafeedSubscriptionRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Deletes the data feed for Spot Instances.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
deleteSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
deleteSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the DeleteSpotDatafeedSubscription operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSpotDatafeedSubscriptionAsync

public Future<Void> deleteSpotDatafeedSubscriptionAsync(DeleteSpotDatafeedSubscriptionRequest deleteSpotDatafeedSubscriptionRequest,
                                                        AsyncHandler<DeleteSpotDatafeedSubscriptionRequest,Void> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Deletes the data feed for Spot Instances.

For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .

Specified by:
deleteSpotDatafeedSubscriptionAsync in interface AmazonEC2Async
Parameters:
deleteSpotDatafeedSubscriptionRequest - Container for the necessary parameters to execute the DeleteSpotDatafeedSubscription operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteSpotDatafeedSubscription service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSnapshotAttributeAsync

public Future<DescribeSnapshotAttributeResult> describeSnapshotAttributeAsync(DescribeSnapshotAttributeRequest describeSnapshotAttributeRequest)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

Returns information about an attribute of a snapshot. Only one attribute can be specified per call.

Specified by:
describeSnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
describeSnapshotAttributeRequest - Container for the necessary parameters to execute the DescribeSnapshotAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSnapshotAttributeAsync

public Future<DescribeSnapshotAttributeResult> describeSnapshotAttributeAsync(DescribeSnapshotAttributeRequest describeSnapshotAttributeRequest,
                                                                              AsyncHandler<DescribeSnapshotAttributeRequest,DescribeSnapshotAttributeResult> asyncHandler)
                                                                       throws AmazonServiceException,
                                                                              AmazonClientException

Returns information about an attribute of a snapshot. Only one attribute can be specified per call.

Specified by:
describeSnapshotAttributeAsync in interface AmazonEC2Async
Parameters:
describeSnapshotAttributeRequest - Container for the necessary parameters to execute the DescribeSnapshotAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSnapshotAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeAddressesAsync

public Future<DescribeAddressesResult> describeAddressesAsync(DescribeAddressesRequest describeAddressesRequest)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

The DescribeAddresses operation lists elastic IP addresses assigned to your account.

Specified by:
describeAddressesAsync in interface AmazonEC2Async
Parameters:
describeAddressesRequest - Container for the necessary parameters to execute the DescribeAddresses operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeAddresses service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeAddressesAsync

public Future<DescribeAddressesResult> describeAddressesAsync(DescribeAddressesRequest describeAddressesRequest,
                                                              AsyncHandler<DescribeAddressesRequest,DescribeAddressesResult> asyncHandler)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

The DescribeAddresses operation lists elastic IP addresses assigned to your account.

Specified by:
describeAddressesAsync in interface AmazonEC2Async
Parameters:
describeAddressesRequest - Container for the necessary parameters to execute the DescribeAddresses operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeAddresses service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeImageAttributeAsync

public Future<DescribeImageAttributeResult> describeImageAttributeAsync(DescribeImageAttributeRequest describeImageAttributeRequest)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The DescribeImageAttribute operation returns information about an attribute of an AMI. Only one attribute can be specified per call.

Specified by:
describeImageAttributeAsync in interface AmazonEC2Async
Parameters:
describeImageAttributeRequest - Container for the necessary parameters to execute the DescribeImageAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeImageAttributeAsync

public Future<DescribeImageAttributeResult> describeImageAttributeAsync(DescribeImageAttributeRequest describeImageAttributeRequest,
                                                                        AsyncHandler<DescribeImageAttributeRequest,DescribeImageAttributeResult> asyncHandler)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The DescribeImageAttribute operation returns information about an attribute of an AMI. Only one attribute can be specified per call.

Specified by:
describeImageAttributeAsync in interface AmazonEC2Async
Parameters:
describeImageAttributeRequest - Container for the necessary parameters to execute the DescribeImageAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeImageAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeKeyPairsAsync

public Future<DescribeKeyPairsResult> describeKeyPairsAsync(DescribeKeyPairsRequest describeKeyPairsRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The DescribeKeyPairs operation returns information about key pairs available to you. If you specify key pairs, information about those key pairs is returned. Otherwise, information for all registered key pairs is returned.

Specified by:
describeKeyPairsAsync in interface AmazonEC2Async
Parameters:
describeKeyPairsRequest - Container for the necessary parameters to execute the DescribeKeyPairs operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeKeyPairs service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeKeyPairsAsync

public Future<DescribeKeyPairsResult> describeKeyPairsAsync(DescribeKeyPairsRequest describeKeyPairsRequest,
                                                            AsyncHandler<DescribeKeyPairsRequest,DescribeKeyPairsResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The DescribeKeyPairs operation returns information about key pairs available to you. If you specify key pairs, information about those key pairs is returned. Otherwise, information for all registered key pairs is returned.

Specified by:
describeKeyPairsAsync in interface AmazonEC2Async
Parameters:
describeKeyPairsRequest - Container for the necessary parameters to execute the DescribeKeyPairs operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeKeyPairs service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

confirmProductInstanceAsync

public Future<ConfirmProductInstanceResult> confirmProductInstanceAsync(ConfirmProductInstanceRequest confirmProductInstanceRequest)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance. The operation returns false if the product code is not attached to the instance.

The ConfirmProductInstance operation can only be executed by the owner of the AMI. This feature is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.

Specified by:
confirmProductInstanceAsync in interface AmazonEC2Async
Parameters:
confirmProductInstanceRequest - Container for the necessary parameters to execute the ConfirmProductInstance operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ConfirmProductInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

confirmProductInstanceAsync

public Future<ConfirmProductInstanceResult> confirmProductInstanceAsync(ConfirmProductInstanceRequest confirmProductInstanceRequest,
                                                                        AsyncHandler<ConfirmProductInstanceRequest,ConfirmProductInstanceResult> asyncHandler)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance. The operation returns false if the product code is not attached to the instance.

The ConfirmProductInstance operation can only be executed by the owner of the AMI. This feature is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.

Specified by:
confirmProductInstanceAsync in interface AmazonEC2Async
Parameters:
confirmProductInstanceRequest - Container for the necessary parameters to execute the ConfirmProductInstance operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ConfirmProductInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createVolumeAsync

public Future<CreateVolumeResult> createVolumeAsync(CreateVolumeRequest createVolumeRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Initializes an empty volume of a given size.

Specified by:
createVolumeAsync in interface AmazonEC2Async
Parameters:
createVolumeRequest - Container for the necessary parameters to execute the CreateVolume operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createVolumeAsync

public Future<CreateVolumeResult> createVolumeAsync(CreateVolumeRequest createVolumeRequest,
                                                    AsyncHandler<CreateVolumeRequest,CreateVolumeResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Initializes an empty volume of a given size.

Specified by:
createVolumeAsync in interface AmazonEC2Async
Parameters:
createVolumeRequest - Container for the necessary parameters to execute the CreateVolume operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateVolume service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstanceStatusAsync

public Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(DescribeInstanceStatusRequest describeInstanceStatusRequest)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

Describes the status of an Amazon Elastic Compute Cloud (Amazon EC2) instance. Instance status provides information about two types of scheduled events for an instance that may require your attention:

If your instance is permanently retired, it will not be restarted. You can avoid retirement by manually restarting your instance when its event code is instance-retirement . This ensures that your instance is started on a healthy host.

DescribeInstanceStatus returns information only for instances in the running state.

You can filter the results to return information only about instances that match criteria you specify. For example, you could get information about instances in a specific Availability Zone. You can specify multiple values for a filter (e.g., more than one Availability Zone). An instance must match at least one of the specified values for it to be included in the results.

You can specify multiple filters. An instance must match all the filters for it to be included in the results. If there's no match, no special message is returned; the response is simply empty.

You can use wildcards with the filter values: * matches zero or more characters, and ? matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\ .

The following filters are available:

Specified by:
describeInstanceStatusAsync in interface AmazonEC2Async
Parameters:
describeInstanceStatusRequest - Container for the necessary parameters to execute the DescribeInstanceStatus operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeInstanceStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeInstanceStatusAsync

public Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(DescribeInstanceStatusRequest describeInstanceStatusRequest,
                                                                        AsyncHandler<DescribeInstanceStatusRequest,DescribeInstanceStatusResult> asyncHandler)
                                                                 throws AmazonServiceException,
                                                                        AmazonClientException

Describes the status of an Amazon Elastic Compute Cloud (Amazon EC2) instance. Instance status provides information about two types of scheduled events for an instance that may require your attention:

If your instance is permanently retired, it will not be restarted. You can avoid retirement by manually restarting your instance when its event code is instance-retirement . This ensures that your instance is started on a healthy host.

DescribeInstanceStatus returns information only for instances in the running state.

You can filter the results to return information only about instances that match criteria you specify. For example, you could get information about instances in a specific Availability Zone. You can specify multiple values for a filter (e.g., more than one Availability Zone). An instance must match at least one of the specified values for it to be included in the results.

You can specify multiple filters. An instance must match all the filters for it to be included in the results. If there's no match, no special message is returned; the response is simply empty.

You can use wildcards with the filter values: * matches zero or more characters, and ? matches exactly one character. You can escape special characters using a backslash before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\ .

The following filters are available:

Specified by:
describeInstanceStatusAsync in interface AmazonEC2Async
Parameters:
describeInstanceStatusRequest - Container for the necessary parameters to execute the DescribeInstanceStatus operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeInstanceStatus service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesOfferingsAsync

public Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(DescribeReservedInstancesOfferingsRequest describeReservedInstancesOfferingsRequest)
                                                                                         throws AmazonServiceException,
                                                                                                AmazonClientException

The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

Specified by:
describeReservedInstancesOfferingsAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesOfferingsRequest - Container for the necessary parameters to execute the DescribeReservedInstancesOfferings operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeReservedInstancesOfferings service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeReservedInstancesOfferingsAsync

public Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(DescribeReservedInstancesOfferingsRequest describeReservedInstancesOfferingsRequest,
                                                                                                AsyncHandler<DescribeReservedInstancesOfferingsRequest,DescribeReservedInstancesOfferingsResult> asyncHandler)
                                                                                         throws AmazonServiceException,
                                                                                                AmazonClientException

The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

Specified by:
describeReservedInstancesOfferingsAsync in interface AmazonEC2Async
Parameters:
describeReservedInstancesOfferingsRequest - Container for the necessary parameters to execute the DescribeReservedInstancesOfferings operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeReservedInstancesOfferings service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSnapshotAsync

public Future<Void> deleteSnapshotAsync(DeleteSnapshotRequest deleteSnapshotRequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

Deletes the snapshot identified by snapshotId .

Specified by:
deleteSnapshotAsync in interface AmazonEC2Async
Parameters:
deleteSnapshotRequest - Container for the necessary parameters to execute the DeleteSnapshot operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeleteSnapshot service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deleteSnapshotAsync

public Future<Void> deleteSnapshotAsync(DeleteSnapshotRequest deleteSnapshotRequest,
                                        AsyncHandler<DeleteSnapshotRequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

Deletes the snapshot identified by snapshotId .

Specified by:
deleteSnapshotAsync in interface AmazonEC2Async
Parameters:
deleteSnapshotRequest - Container for the necessary parameters to execute the DeleteSnapshot operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteSnapshot service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

disassociateAddressAsync

public Future<Void> disassociateAddressAsync(DisassociateAddressRequest disassociateAddressRequest)
                                      throws AmazonServiceException,
                                             AmazonClientException

The DisassociateAddress operation disassociates the specified elastic IP address from the instance to which it is assigned. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

Specified by:
disassociateAddressAsync in interface AmazonEC2Async
Parameters:
disassociateAddressRequest - Container for the necessary parameters to execute the DisassociateAddress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DisassociateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

disassociateAddressAsync

public Future<Void> disassociateAddressAsync(DisassociateAddressRequest disassociateAddressRequest,
                                             AsyncHandler<DisassociateAddressRequest,Void> asyncHandler)
                                      throws AmazonServiceException,
                                             AmazonClientException

The DisassociateAddress operation disassociates the specified elastic IP address from the instance to which it is assigned. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

Specified by:
disassociateAddressAsync in interface AmazonEC2Async
Parameters:
disassociateAddressRequest - Container for the necessary parameters to execute the DisassociateAddress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DisassociateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createPlacementGroupAsync

public Future<Void> createPlacementGroupAsync(CreatePlacementGroupRequest createPlacementGroupRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.

Specified by:
createPlacementGroupAsync in interface AmazonEC2Async
Parameters:
createPlacementGroupRequest - Container for the necessary parameters to execute the CreatePlacementGroup operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreatePlacementGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createPlacementGroupAsync

public Future<Void> createPlacementGroupAsync(CreatePlacementGroupRequest createPlacementGroupRequest,
                                              AsyncHandler<CreatePlacementGroupRequest,Void> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.

Specified by:
createPlacementGroupAsync in interface AmazonEC2Async
Parameters:
createPlacementGroupRequest - Container for the necessary parameters to execute the CreatePlacementGroup operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreatePlacementGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

bundleInstanceAsync

public Future<BundleInstanceResult> bundleInstanceAsync(BundleInstanceRequest bundleInstanceRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The BundleInstance operation request that an instance is bundled the next time it boots. The bundling process creates a new image from a running instance and stores the AMI data in S3. Once bundled, the image must be registered in the normal way using the RegisterImage API.

Specified by:
bundleInstanceAsync in interface AmazonEC2Async
Parameters:
bundleInstanceRequest - Container for the necessary parameters to execute the BundleInstance operation on AmazonEC2.
Returns:
A Java Future object containing the response from the BundleInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

bundleInstanceAsync

public Future<BundleInstanceResult> bundleInstanceAsync(BundleInstanceRequest bundleInstanceRequest,
                                                        AsyncHandler<BundleInstanceRequest,BundleInstanceResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The BundleInstance operation request that an instance is bundled the next time it boots. The bundling process creates a new image from a running instance and stores the AMI data in S3. Once bundled, the image must be registered in the normal way using the RegisterImage API.

Specified by:
bundleInstanceAsync in interface AmazonEC2Async
Parameters:
bundleInstanceRequest - Container for the necessary parameters to execute the BundleInstance operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the BundleInstance service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deletePlacementGroupAsync

public Future<Void> deletePlacementGroupAsync(DeletePlacementGroupRequest deletePlacementGroupRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

Deletes a PlacementGroup from a user's account. Terminate all Amazon EC2 instances in the placement group before deletion.

Specified by:
deletePlacementGroupAsync in interface AmazonEC2Async
Parameters:
deletePlacementGroupRequest - Container for the necessary parameters to execute the DeletePlacementGroup operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DeletePlacementGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

deletePlacementGroupAsync

public Future<Void> deletePlacementGroupAsync(DeletePlacementGroupRequest deletePlacementGroupRequest,
                                              AsyncHandler<DeletePlacementGroupRequest,Void> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

Deletes a PlacementGroup from a user's account. Terminate all Amazon EC2 instances in the placement group before deletion.

Specified by:
deletePlacementGroupAsync in interface AmazonEC2Async
Parameters:
deletePlacementGroupRequest - Container for the necessary parameters to execute the DeletePlacementGroup operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeletePlacementGroup service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

allocateAddressAsync

public Future<AllocateAddressResult> allocateAddressAsync(AllocateAddressRequest allocateAddressRequest)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

The AllocateAddress operation acquires an elastic IP address for use with your account.

Specified by:
allocateAddressAsync in interface AmazonEC2Async
Parameters:
allocateAddressRequest - Container for the necessary parameters to execute the AllocateAddress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the AllocateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

allocateAddressAsync

public Future<AllocateAddressResult> allocateAddressAsync(AllocateAddressRequest allocateAddressRequest,
                                                          AsyncHandler<AllocateAddressRequest,AllocateAddressResult> asyncHandler)
                                                   throws AmazonServiceException,
                                                          AmazonClientException

The AllocateAddress operation acquires an elastic IP address for use with your account.

Specified by:
allocateAddressAsync in interface AmazonEC2Async
Parameters:
allocateAddressRequest - Container for the necessary parameters to execute the AllocateAddress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AllocateAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

releaseAddressAsync

public Future<Void> releaseAddressAsync(ReleaseAddressRequest releaseAddressRequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

The ReleaseAddress operation releases an elastic IP address associated with your account.

NOTE: Releasing an IP address automatically disassociates it from any instance with which it is associated. For more information, see DisassociateAddress.

IMPORTANT: After releasing an elastic IP address, it is released to the IP address pool and might no longer be available to your account. Make sure to update your DNS records and any servers or devices that communicate with the address. If you run this operation on an elastic IP address that is already released, the address might be assigned to another account which will cause Amazon EC2 to return an error.

Specified by:
releaseAddressAsync in interface AmazonEC2Async
Parameters:
releaseAddressRequest - Container for the necessary parameters to execute the ReleaseAddress operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ReleaseAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

releaseAddressAsync

public Future<Void> releaseAddressAsync(ReleaseAddressRequest releaseAddressRequest,
                                        AsyncHandler<ReleaseAddressRequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

The ReleaseAddress operation releases an elastic IP address associated with your account.

NOTE: Releasing an IP address automatically disassociates it from any instance with which it is associated. For more information, see DisassociateAddress.

IMPORTANT: After releasing an elastic IP address, it is released to the IP address pool and might no longer be available to your account. Make sure to update your DNS records and any servers or devices that communicate with the address. If you run this operation on an elastic IP address that is already released, the address might be assigned to another account which will cause Amazon EC2 to return an error.

Specified by:
releaseAddressAsync in interface AmazonEC2Async
Parameters:
releaseAddressRequest - Container for the necessary parameters to execute the ReleaseAddress operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReleaseAddress service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetInstanceAttributeAsync

public Future<Void> resetInstanceAttributeAsync(ResetInstanceAttributeRequest resetInstanceAttributeRequest)
                                         throws AmazonServiceException,
                                                AmazonClientException

Resets an attribute of an instance to its default value.

Specified by:
resetInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
resetInstanceAttributeRequest - Container for the necessary parameters to execute the ResetInstanceAttribute operation on AmazonEC2.
Returns:
A Java Future object containing the response from the ResetInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

resetInstanceAttributeAsync

public Future<Void> resetInstanceAttributeAsync(ResetInstanceAttributeRequest resetInstanceAttributeRequest,
                                                AsyncHandler<ResetInstanceAttributeRequest,Void> asyncHandler)
                                         throws AmazonServiceException,
                                                AmazonClientException

Resets an attribute of an instance to its default value.

Specified by:
resetInstanceAttributeAsync in interface AmazonEC2Async
Parameters:
resetInstanceAttributeRequest - Container for the necessary parameters to execute the ResetInstanceAttribute operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ResetInstanceAttribute service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createKeyPairAsync

public Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest createKeyPairRequest)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances. For more information, see RunInstances.

Specified by:
createKeyPairAsync in interface AmazonEC2Async
Parameters:
createKeyPairRequest - Container for the necessary parameters to execute the CreateKeyPair operation on AmazonEC2.
Returns:
A Java Future object containing the response from the CreateKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

createKeyPairAsync

public Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest createKeyPairRequest,
                                                      AsyncHandler<CreateKeyPairRequest,CreateKeyPairResult> asyncHandler)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances. For more information, see RunInstances.

Specified by:
createKeyPairAsync in interface AmazonEC2Async
Parameters:
createKeyPairRequest - Container for the necessary parameters to execute the CreateKeyPair operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateKeyPair service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSnapshotsAsync

public Future<DescribeSnapshotsResult> describeSnapshotsAsync(DescribeSnapshotsRequest describeSnapshotsRequest)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

Returns information about the Amazon EBS snapshots available to you. Snapshots available to you include public snapshots available for any AWS account to launch, private snapshots you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.

Specified by:
describeSnapshotsAsync in interface AmazonEC2Async
Parameters:
describeSnapshotsRequest - Container for the necessary parameters to execute the DescribeSnapshots operation on AmazonEC2.
Returns:
A Java Future object containing the response from the DescribeSnapshots service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

describeSnapshotsAsync

public Future<DescribeSnapshotsResult> describeSnapshotsAsync(DescribeSnapshotsRequest describeSnapshotsRequest,
                                                              AsyncHandler<DescribeSnapshotsRequest,DescribeSnapshotsResult> asyncHandler)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

Returns information about the Amazon EBS snapshots available to you. Snapshots available to you include public snapshots available for any AWS account to launch, private snapshots you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.

Specified by:
describeSnapshotsAsync in interface AmazonEC2Async
Parameters:
describeSnapshotsRequest - Container for the necessary parameters to execute the DescribeSnapshots operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeSnapshots service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

registerImageAsync

public Future<RegisterImageResult> registerImageAsync(RegisterImageRequest registerImageRequest)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The RegisterImage operation registers an AMI with Amazon EC2. Images must be registered before they can be launched. For more information, see RunInstances.

Each AMI is associated with an unique ID which is provided by the Amazon EC2 service through the RegisterImage operation. During registration, Amazon EC2 retrieves the specified image manifest from Amazon S3 and verifies that the image is owned by the user registering the image.

The image manifest is retrieved once and stored within the Amazon EC2. Any modifications to an image in Amazon S3 invalidates this registration. If you make changes to an image, deregister the previous image and register the new image. For more information, see DeregisterImage.

Specified by:
registerImageAsync in interface AmazonEC2Async
Parameters:
registerImageRequest - Container for the necessary parameters to execute the RegisterImage operation on AmazonEC2.
Returns:
A Java Future object containing the response from the RegisterImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.

registerImageAsync

public Future<RegisterImageResult> registerImageAsync(RegisterImageRequest registerImageRequest,
                                                      AsyncHandler<RegisterImageRequest,RegisterImageResult> asyncHandler)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The RegisterImage operation registers an AMI with Amazon EC2. Images must be registered before they can be launched. For more information, see RunInstances.

Each AMI is associated with an unique ID which is provided by the Amazon EC2 service through the RegisterImage operation. During registration, Amazon EC2 retrieves the specified image manifest from Amazon S3 and verifies that the image is owned by the user registering the image.

The image manifest is retrieved once and stored within the Amazon EC2. Any modifications to an image in Amazon S3 invalidates this registration. If you make changes to an image, deregister the previous image and register the new image. For more information, see DeregisterImage.

Specified by:
registerImageAsync in interface AmazonEC2Async
Parameters:
registerImageRequest - Container for the necessary parameters to execute the RegisterImage operation on AmazonEC2.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RegisterImage service method, as returned by AmazonEC2.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.