Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks
Class AWSOpsWorksAsyncClient

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceClient
      extended by com.amazonaws.services.opsworks.AWSOpsWorksClient
          extended by com.amazonaws.services.opsworks.AWSOpsWorksAsyncClient
All Implemented Interfaces:
AWSOpsWorks, AWSOpsWorksAsync

public class AWSOpsWorksAsyncClient
extends AWSOpsWorksClient
implements AWSOpsWorksAsync

Asynchronous client for accessing AWSOpsWorks. 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. AWS OpsWorks


Constructor Summary
AWSOpsWorksAsyncClient()
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks.
AWSOpsWorksAsyncClient(AWSCredentials awsCredentials)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials.
AWSOpsWorksAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials, executor service, and client configuration options.
AWSOpsWorksAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials and executor service.
AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials provider.
AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials provider and client configuration options.
AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials provider, executor service, and client configuration options.
AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials provider and executor service.
AWSOpsWorksAsyncClient(ClientConfiguration clientConfiguration)
          Constructs a new asynchronous client to invoke service methods on AWSOpsWorks.
 
Method Summary
 Future<Void> attachElasticLoadBalancerAsync(AttachElasticLoadBalancerRequest attachElasticLoadBalancerRequest)
           Attaches an Elastic Load Balancing instance to a specified layer.
 Future<Void> attachElasticLoadBalancerAsync(AttachElasticLoadBalancerRequest attachElasticLoadBalancerRequest, AsyncHandler<AttachElasticLoadBalancerRequest,Void> asyncHandler)
           Attaches an Elastic Load Balancing instance to a specified layer.
 Future<CloneStackResult> cloneStackAsync(CloneStackRequest cloneStackRequest)
           Creates a clone of a specified stack.
 Future<CloneStackResult> cloneStackAsync(CloneStackRequest cloneStackRequest, AsyncHandler<CloneStackRequest,CloneStackResult> asyncHandler)
           Creates a clone of a specified stack.
 Future<CreateAppResult> createAppAsync(CreateAppRequest createAppRequest)
           Creates an app for a specified stack.
 Future<CreateAppResult> createAppAsync(CreateAppRequest createAppRequest, AsyncHandler<CreateAppRequest,CreateAppResult> asyncHandler)
           Creates an app for a specified stack.
 Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest createDeploymentRequest)
           Deploys a stack or app.
 Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest createDeploymentRequest, AsyncHandler<CreateDeploymentRequest,CreateDeploymentResult> asyncHandler)
           Deploys a stack or app.
 Future<CreateInstanceResult> createInstanceAsync(CreateInstanceRequest createInstanceRequest)
           Creates an instance in a specified stack.
 Future<CreateInstanceResult> createInstanceAsync(CreateInstanceRequest createInstanceRequest, AsyncHandler<CreateInstanceRequest,CreateInstanceResult> asyncHandler)
           Creates an instance in a specified stack.
 Future<CreateLayerResult> createLayerAsync(CreateLayerRequest createLayerRequest)
           Creates a layer.
 Future<CreateLayerResult> createLayerAsync(CreateLayerRequest createLayerRequest, AsyncHandler<CreateLayerRequest,CreateLayerResult> asyncHandler)
           Creates a layer.
 Future<CreateStackResult> createStackAsync(CreateStackRequest createStackRequest)
           Creates a new stack.
 Future<CreateStackResult> createStackAsync(CreateStackRequest createStackRequest, AsyncHandler<CreateStackRequest,CreateStackResult> asyncHandler)
           Creates a new stack.
 Future<CreateUserProfileResult> createUserProfileAsync(CreateUserProfileRequest createUserProfileRequest)
           Creates a new user profile.
 Future<CreateUserProfileResult> createUserProfileAsync(CreateUserProfileRequest createUserProfileRequest, AsyncHandler<CreateUserProfileRequest,CreateUserProfileResult> asyncHandler)
           Creates a new user profile.
 Future<Void> deleteAppAsync(DeleteAppRequest deleteAppRequest)
           Deletes a specified app.
 Future<Void> deleteAppAsync(DeleteAppRequest deleteAppRequest, AsyncHandler<DeleteAppRequest,Void> asyncHandler)
           Deletes a specified app.
 Future<Void> deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest)
           Deletes a specified instance.
 Future<Void> deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest, AsyncHandler<DeleteInstanceRequest,Void> asyncHandler)
           Deletes a specified instance.
 Future<Void> deleteLayerAsync(DeleteLayerRequest deleteLayerRequest)
           Deletes a specified layer.
 Future<Void> deleteLayerAsync(DeleteLayerRequest deleteLayerRequest, AsyncHandler<DeleteLayerRequest,Void> asyncHandler)
           Deletes a specified layer.
 Future<Void> deleteStackAsync(DeleteStackRequest deleteStackRequest)
           Deletes a specified stack.
 Future<Void> deleteStackAsync(DeleteStackRequest deleteStackRequest, AsyncHandler<DeleteStackRequest,Void> asyncHandler)
           Deletes a specified stack.
 Future<Void> deleteUserProfileAsync(DeleteUserProfileRequest deleteUserProfileRequest)
           Deletes a user profile.
 Future<Void> deleteUserProfileAsync(DeleteUserProfileRequest deleteUserProfileRequest, AsyncHandler<DeleteUserProfileRequest,Void> asyncHandler)
           Deletes a user profile.
 Future<DescribeAppsResult> describeAppsAsync(DescribeAppsRequest describeAppsRequest)
           Requests a description of a specified set of apps.
 Future<DescribeAppsResult> describeAppsAsync(DescribeAppsRequest describeAppsRequest, AsyncHandler<DescribeAppsRequest,DescribeAppsResult> asyncHandler)
           Requests a description of a specified set of apps.
 Future<DescribeCommandsResult> describeCommandsAsync(DescribeCommandsRequest describeCommandsRequest)
           Describes the results of specified commands.
 Future<DescribeCommandsResult> describeCommandsAsync(DescribeCommandsRequest describeCommandsRequest, AsyncHandler<DescribeCommandsRequest,DescribeCommandsResult> asyncHandler)
           Describes the results of specified commands.
 Future<DescribeDeploymentsResult> describeDeploymentsAsync(DescribeDeploymentsRequest describeDeploymentsRequest)
           Requests a description of a specified set of deployments.
 Future<DescribeDeploymentsResult> describeDeploymentsAsync(DescribeDeploymentsRequest describeDeploymentsRequest, AsyncHandler<DescribeDeploymentsRequest,DescribeDeploymentsResult> asyncHandler)
           Requests a description of a specified set of deployments.
 Future<DescribeElasticIpsResult> describeElasticIpsAsync(DescribeElasticIpsRequest describeElasticIpsRequest)
           Describes an instance's Elastic IP addresses .
 Future<DescribeElasticIpsResult> describeElasticIpsAsync(DescribeElasticIpsRequest describeElasticIpsRequest, AsyncHandler<DescribeElasticIpsRequest,DescribeElasticIpsResult> asyncHandler)
           Describes an instance's Elastic IP addresses .
 Future<DescribeElasticLoadBalancersResult> describeElasticLoadBalancersAsync(DescribeElasticLoadBalancersRequest describeElasticLoadBalancersRequest)
           Describes a stack's Elastic Load Balancing instances.
 Future<DescribeElasticLoadBalancersResult> describeElasticLoadBalancersAsync(DescribeElasticLoadBalancersRequest describeElasticLoadBalancersRequest, AsyncHandler<DescribeElasticLoadBalancersRequest,DescribeElasticLoadBalancersResult> asyncHandler)
           Describes a stack's Elastic Load Balancing instances.
 Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest)
           Requests a description of a set of instances associated with a specified ID or IDs.
 Future<DescribeInstancesResult> describeInstancesAsync(DescribeInstancesRequest describeInstancesRequest, AsyncHandler<DescribeInstancesRequest,DescribeInstancesResult> asyncHandler)
           Requests a description of a set of instances associated with a specified ID or IDs.
 Future<DescribeLayersResult> describeLayersAsync(DescribeLayersRequest describeLayersRequest)
           Requests a description of one or more layers in a specified stack.
 Future<DescribeLayersResult> describeLayersAsync(DescribeLayersRequest describeLayersRequest, AsyncHandler<DescribeLayersRequest,DescribeLayersResult> asyncHandler)
           Requests a description of one or more layers in a specified stack.
 Future<DescribeLoadBasedAutoScalingResult> describeLoadBasedAutoScalingAsync(DescribeLoadBasedAutoScalingRequest describeLoadBasedAutoScalingRequest)
           Describes load-based auto scaling configurations for specified layers.
 Future<DescribeLoadBasedAutoScalingResult> describeLoadBasedAutoScalingAsync(DescribeLoadBasedAutoScalingRequest describeLoadBasedAutoScalingRequest, AsyncHandler<DescribeLoadBasedAutoScalingRequest,DescribeLoadBasedAutoScalingResult> asyncHandler)
           Describes load-based auto scaling configurations for specified layers.
 Future<DescribePermissionsResult> describePermissionsAsync(DescribePermissionsRequest describePermissionsRequest)
           Describes the permissions for a specified stack.
 Future<DescribePermissionsResult> describePermissionsAsync(DescribePermissionsRequest describePermissionsRequest, AsyncHandler<DescribePermissionsRequest,DescribePermissionsResult> asyncHandler)
           Describes the permissions for a specified stack.
 Future<DescribeRaidArraysResult> describeRaidArraysAsync(DescribeRaidArraysRequest describeRaidArraysRequest)
           Describe an instance's RAID arrays.
 Future<DescribeRaidArraysResult> describeRaidArraysAsync(DescribeRaidArraysRequest describeRaidArraysRequest, AsyncHandler<DescribeRaidArraysRequest,DescribeRaidArraysResult> asyncHandler)
           Describe an instance's RAID arrays.
 Future<DescribeServiceErrorsResult> describeServiceErrorsAsync(DescribeServiceErrorsRequest describeServiceErrorsRequest)
           Describes OpsWorks service errors.
 Future<DescribeServiceErrorsResult> describeServiceErrorsAsync(DescribeServiceErrorsRequest describeServiceErrorsRequest, AsyncHandler<DescribeServiceErrorsRequest,DescribeServiceErrorsResult> asyncHandler)
           Describes OpsWorks service errors.
 Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest describeStacksRequest)
           Requests a description of one or more stacks.
 Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest describeStacksRequest, AsyncHandler<DescribeStacksRequest,DescribeStacksResult> asyncHandler)
           Requests a description of one or more stacks.
 Future<DescribeTimeBasedAutoScalingResult> describeTimeBasedAutoScalingAsync(DescribeTimeBasedAutoScalingRequest describeTimeBasedAutoScalingRequest)
           Describes time-based auto scaling configurations for specified instances.
 Future<DescribeTimeBasedAutoScalingResult> describeTimeBasedAutoScalingAsync(DescribeTimeBasedAutoScalingRequest describeTimeBasedAutoScalingRequest, AsyncHandler<DescribeTimeBasedAutoScalingRequest,DescribeTimeBasedAutoScalingResult> asyncHandler)
           Describes time-based auto scaling configurations for specified instances.
 Future<DescribeUserProfilesResult> describeUserProfilesAsync(DescribeUserProfilesRequest describeUserProfilesRequest)
           Describe specified users.
 Future<DescribeUserProfilesResult> describeUserProfilesAsync(DescribeUserProfilesRequest describeUserProfilesRequest, AsyncHandler<DescribeUserProfilesRequest,DescribeUserProfilesResult> asyncHandler)
           Describe specified users.
 Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest)
           Describes an instance's Amazon EBS volumes.
 Future<DescribeVolumesResult> describeVolumesAsync(DescribeVolumesRequest describeVolumesRequest, AsyncHandler<DescribeVolumesRequest,DescribeVolumesResult> asyncHandler)
           Describes an instance's Amazon EBS volumes.
 Future<Void> detachElasticLoadBalancerAsync(DetachElasticLoadBalancerRequest detachElasticLoadBalancerRequest)
           Detaches a specified Elastic Load Balancing instance from it's layer.
 Future<Void> detachElasticLoadBalancerAsync(DetachElasticLoadBalancerRequest detachElasticLoadBalancerRequest, AsyncHandler<DetachElasticLoadBalancerRequest,Void> asyncHandler)
           Detaches a specified Elastic Load Balancing instance from it's layer.
 ExecutorService getExecutorService()
          Returns the executor service used by this async client to execute requests.
 Future<GetHostnameSuggestionResult> getHostnameSuggestionAsync(GetHostnameSuggestionRequest getHostnameSuggestionRequest)
           Gets a generated hostname for the specified layer, based on the current hostname theme.
 Future<GetHostnameSuggestionResult> getHostnameSuggestionAsync(GetHostnameSuggestionRequest getHostnameSuggestionRequest, AsyncHandler<GetHostnameSuggestionRequest,GetHostnameSuggestionResult> asyncHandler)
           Gets a generated hostname for the specified layer, based on the current hostname theme.
 Future<Void> rebootInstanceAsync(RebootInstanceRequest rebootInstanceRequest)
           Reboots a specified instance.
 Future<Void> rebootInstanceAsync(RebootInstanceRequest rebootInstanceRequest, AsyncHandler<RebootInstanceRequest,Void> asyncHandler)
           Reboots a specified instance.
 Future<Void> setLoadBasedAutoScalingAsync(SetLoadBasedAutoScalingRequest setLoadBasedAutoScalingRequest)
           Specify the load-based auto scaling configuration for a specified layer.
 Future<Void> setLoadBasedAutoScalingAsync(SetLoadBasedAutoScalingRequest setLoadBasedAutoScalingRequest, AsyncHandler<SetLoadBasedAutoScalingRequest,Void> asyncHandler)
           Specify the load-based auto scaling configuration for a specified layer.
 Future<Void> setPermissionAsync(SetPermissionRequest setPermissionRequest)
           Specifies a stack's permissions.
 Future<Void> setPermissionAsync(SetPermissionRequest setPermissionRequest, AsyncHandler<SetPermissionRequest,Void> asyncHandler)
           Specifies a stack's permissions.
 Future<Void> setTimeBasedAutoScalingAsync(SetTimeBasedAutoScalingRequest setTimeBasedAutoScalingRequest)
           Specify the time-based auto scaling configuration for a specified instance.
 Future<Void> setTimeBasedAutoScalingAsync(SetTimeBasedAutoScalingRequest setTimeBasedAutoScalingRequest, AsyncHandler<SetTimeBasedAutoScalingRequest,Void> asyncHandler)
           Specify the time-based auto scaling configuration for a specified instance.
 void shutdown()
          Shuts down the client, releasing all managed resources.
 Future<Void> startInstanceAsync(StartInstanceRequest startInstanceRequest)
           Starts a specified instance.
 Future<Void> startInstanceAsync(StartInstanceRequest startInstanceRequest, AsyncHandler<StartInstanceRequest,Void> asyncHandler)
           Starts a specified instance.
 Future<Void> startStackAsync(StartStackRequest startStackRequest)
           Starts stack's instances.
 Future<Void> startStackAsync(StartStackRequest startStackRequest, AsyncHandler<StartStackRequest,Void> asyncHandler)
           Starts stack's instances.
 Future<Void> stopInstanceAsync(StopInstanceRequest stopInstanceRequest)
           Stops a specified instance.
 Future<Void> stopInstanceAsync(StopInstanceRequest stopInstanceRequest, AsyncHandler<StopInstanceRequest,Void> asyncHandler)
           Stops a specified instance.
 Future<Void> stopStackAsync(StopStackRequest stopStackRequest)
           Stops a specified stack.
 Future<Void> stopStackAsync(StopStackRequest stopStackRequest, AsyncHandler<StopStackRequest,Void> asyncHandler)
           Stops a specified stack.
 Future<Void> updateAppAsync(UpdateAppRequest updateAppRequest)
           Updates a specified app.
 Future<Void> updateAppAsync(UpdateAppRequest updateAppRequest, AsyncHandler<UpdateAppRequest,Void> asyncHandler)
           Updates a specified app.
 Future<Void> updateInstanceAsync(UpdateInstanceRequest updateInstanceRequest)
           Updates a specified instance.
 Future<Void> updateInstanceAsync(UpdateInstanceRequest updateInstanceRequest, AsyncHandler<UpdateInstanceRequest,Void> asyncHandler)
           Updates a specified instance.
 Future<Void> updateLayerAsync(UpdateLayerRequest updateLayerRequest)
           Updates a specified layer.
 Future<Void> updateLayerAsync(UpdateLayerRequest updateLayerRequest, AsyncHandler<UpdateLayerRequest,Void> asyncHandler)
           Updates a specified layer.
 Future<Void> updateStackAsync(UpdateStackRequest updateStackRequest)
           Updates a specified stack.
 Future<Void> updateStackAsync(UpdateStackRequest updateStackRequest, AsyncHandler<UpdateStackRequest,Void> asyncHandler)
           Updates a specified stack.
 Future<Void> updateUserProfileAsync(UpdateUserProfileRequest updateUserProfileRequest)
           Updates a specified user profile.
 Future<Void> updateUserProfileAsync(UpdateUserProfileRequest updateUserProfileRequest, AsyncHandler<UpdateUserProfileRequest,Void> asyncHandler)
           Updates a specified user profile.
 
Methods inherited from class com.amazonaws.services.opsworks.AWSOpsWorksClient
attachElasticLoadBalancer, cloneStack, createApp, createDeployment, createInstance, createLayer, createStack, createUserProfile, deleteApp, deleteInstance, deleteLayer, deleteStack, deleteUserProfile, describeApps, describeCommands, describeDeployments, describeElasticIps, describeElasticLoadBalancers, describeInstances, describeLayers, describeLoadBasedAutoScaling, describePermissions, describeRaidArrays, describeServiceErrors, describeStacks, describeTimeBasedAutoScaling, describeUserProfiles, describeVolumes, detachElasticLoadBalancer, getCachedResponseMetadata, getHostnameSuggestion, rebootInstance, setEndpoint, setLoadBasedAutoScaling, setPermission, setTimeBasedAutoScaling, startInstance, startStack, stopInstance, stopStack, updateApp, updateInstance, updateLayer, updateStack, updateUserProfile
 
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setRegion, setTimeOffset, withTimeOffset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amazonaws.services.opsworks.AWSOpsWorks
attachElasticLoadBalancer, cloneStack, createApp, createDeployment, createInstance, createLayer, createStack, createUserProfile, deleteApp, deleteInstance, deleteLayer, deleteStack, deleteUserProfile, describeApps, describeCommands, describeDeployments, describeElasticIps, describeElasticLoadBalancers, describeInstances, describeLayers, describeLoadBasedAutoScaling, describePermissions, describeRaidArrays, describeServiceErrors, describeStacks, describeTimeBasedAutoScaling, describeUserProfiles, describeVolumes, detachElasticLoadBalancer, getCachedResponseMetadata, getHostnameSuggestion, rebootInstance, setEndpoint, setLoadBasedAutoScaling, setPermission, setRegion, setTimeBasedAutoScaling, startInstance, startStack, stopInstance, stopStack, updateApp, updateInstance, updateLayer, updateStack, updateUserProfile
 

Constructor Detail

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks. 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

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks. 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 AWSOpsWorks (ex: proxy settings, retry counts, etc.).
See Also:
DefaultAWSCredentialsProvider

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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.

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentials awsCredentials,
                              ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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.

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentials awsCredentials,
                              ClientConfiguration clientConfiguration,
                              ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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.

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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.

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                              ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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.

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                              ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks using the specified AWS account credentials provider 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).

AWSOpsWorksAsyncClient

public AWSOpsWorksAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                              ClientConfiguration clientConfiguration,
                              ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSOpsWorks 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 AWSOpsWorks
Overrides:
shutdown in class AmazonWebServiceClient

updateUserProfileAsync

public Future<Void> updateUserProfileAsync(UpdateUserProfileRequest updateUserProfileRequest)
                                    throws AmazonServiceException,
                                           AmazonClientException

Updates a specified user profile.

Specified by:
updateUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
updateUserProfileRequest - Container for the necessary parameters to execute the UpdateUserProfile operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the UpdateUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateUserProfileAsync

public Future<Void> updateUserProfileAsync(UpdateUserProfileRequest updateUserProfileRequest,
                                           AsyncHandler<UpdateUserProfileRequest,Void> asyncHandler)
                                    throws AmazonServiceException,
                                           AmazonClientException

Updates a specified user profile.

Specified by:
updateUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
updateUserProfileRequest - Container for the necessary parameters to execute the UpdateUserProfile operation on AWSOpsWorks.
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 UpdateUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createStackAsync

public Future<CreateStackResult> createStackAsync(CreateStackRequest createStackRequest)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates a new stack. For more information, see Create a New Stack .

Specified by:
createStackAsync in interface AWSOpsWorksAsync
Parameters:
createStackRequest - Container for the necessary parameters to execute the CreateStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createStackAsync

public Future<CreateStackResult> createStackAsync(CreateStackRequest createStackRequest,
                                                  AsyncHandler<CreateStackRequest,CreateStackResult> asyncHandler)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates a new stack. For more information, see Create a New Stack .

Specified by:
createStackAsync in interface AWSOpsWorksAsync
Parameters:
createStackRequest - Container for the necessary parameters to execute the CreateStack operation on AWSOpsWorks.
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 CreateStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

rebootInstanceAsync

public Future<Void> rebootInstanceAsync(RebootInstanceRequest rebootInstanceRequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

Reboots a specified instance. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
rebootInstanceAsync in interface AWSOpsWorksAsync
Parameters:
rebootInstanceRequest - Container for the necessary parameters to execute the RebootInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the RebootInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

rebootInstanceAsync

public Future<Void> rebootInstanceAsync(RebootInstanceRequest rebootInstanceRequest,
                                        AsyncHandler<RebootInstanceRequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

Reboots a specified instance. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
rebootInstanceAsync in interface AWSOpsWorksAsync
Parameters:
rebootInstanceRequest - Container for the necessary parameters to execute the RebootInstance operation on AWSOpsWorks.
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 RebootInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setPermissionAsync

public Future<Void> setPermissionAsync(SetPermissionRequest setPermissionRequest)
                                throws AmazonServiceException,
                                       AmazonClientException

Specifies a stack's permissions. For more information, see Security and Permissions .

Specified by:
setPermissionAsync in interface AWSOpsWorksAsync
Parameters:
setPermissionRequest - Container for the necessary parameters to execute the SetPermission operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the SetPermission service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setPermissionAsync

public Future<Void> setPermissionAsync(SetPermissionRequest setPermissionRequest,
                                       AsyncHandler<SetPermissionRequest,Void> asyncHandler)
                                throws AmazonServiceException,
                                       AmazonClientException

Specifies a stack's permissions. For more information, see Security and Permissions .

Specified by:
setPermissionAsync in interface AWSOpsWorksAsync
Parameters:
setPermissionRequest - Container for the necessary parameters to execute the SetPermission operation on AWSOpsWorks.
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 SetPermission service method, as returned by AWSOpsWorks.
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 AWSOpsWorks 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

Requests a description of a set of instances associated with a specified ID or IDs.

Specified by:
describeInstancesAsync in interface AWSOpsWorksAsync
Parameters:
describeInstancesRequest - Container for the necessary parameters to execute the DescribeInstances operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeInstances service method, as returned by AWSOpsWorks.
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 AWSOpsWorks 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

Requests a description of a set of instances associated with a specified ID or IDs.

Specified by:
describeInstancesAsync in interface AWSOpsWorksAsync
Parameters:
describeInstancesRequest - Container for the necessary parameters to execute the DescribeInstances operation on AWSOpsWorks.
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 AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describePermissionsAsync

public Future<DescribePermissionsResult> describePermissionsAsync(DescribePermissionsRequest describePermissionsRequest)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

Describes the permissions for a specified stack.

Specified by:
describePermissionsAsync in interface AWSOpsWorksAsync
Parameters:
describePermissionsRequest - Container for the necessary parameters to execute the DescribePermissions operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribePermissions service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describePermissionsAsync

public Future<DescribePermissionsResult> describePermissionsAsync(DescribePermissionsRequest describePermissionsRequest,
                                                                  AsyncHandler<DescribePermissionsRequest,DescribePermissionsResult> asyncHandler)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

Describes the permissions for a specified stack.

Specified by:
describePermissionsAsync in interface AWSOpsWorksAsync
Parameters:
describePermissionsRequest - Container for the necessary parameters to execute the DescribePermissions operation on AWSOpsWorks.
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 DescribePermissions service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteInstanceAsync

public Future<Void> deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

Deletes a specified instance. You must stop an instance before you can delete it. For more information, see Deleting Instances .

Specified by:
deleteInstanceAsync in interface AWSOpsWorksAsync
Parameters:
deleteInstanceRequest - Container for the necessary parameters to execute the DeleteInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DeleteInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteInstanceAsync

public Future<Void> deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest,
                                        AsyncHandler<DeleteInstanceRequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

Deletes a specified instance. You must stop an instance before you can delete it. For more information, see Deleting Instances .

Specified by:
deleteInstanceAsync in interface AWSOpsWorksAsync
Parameters:
deleteInstanceRequest - Container for the necessary parameters to execute the DeleteInstance operation on AWSOpsWorks.
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 DeleteInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

cloneStackAsync

public Future<CloneStackResult> cloneStackAsync(CloneStackRequest cloneStackRequest)
                                         throws AmazonServiceException,
                                                AmazonClientException

Creates a clone of a specified stack. For more information, see Clone a Stack .

Specified by:
cloneStackAsync in interface AWSOpsWorksAsync
Parameters:
cloneStackRequest - Container for the necessary parameters to execute the CloneStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CloneStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

cloneStackAsync

public Future<CloneStackResult> cloneStackAsync(CloneStackRequest cloneStackRequest,
                                                AsyncHandler<CloneStackRequest,CloneStackResult> asyncHandler)
                                         throws AmazonServiceException,
                                                AmazonClientException

Creates a clone of a specified stack. For more information, see Clone a Stack .

Specified by:
cloneStackAsync in interface AWSOpsWorksAsync
Parameters:
cloneStackRequest - Container for the necessary parameters to execute the CloneStack operation on AWSOpsWorks.
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 CloneStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createInstanceAsync

public Future<CreateInstanceResult> createInstanceAsync(CreateInstanceRequest createInstanceRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer .

Specified by:
createInstanceAsync in interface AWSOpsWorksAsync
Parameters:
createInstanceRequest - Container for the necessary parameters to execute the CreateInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createInstanceAsync

public Future<CreateInstanceResult> createInstanceAsync(CreateInstanceRequest createInstanceRequest,
                                                        AsyncHandler<CreateInstanceRequest,CreateInstanceResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer .

Specified by:
createInstanceAsync in interface AWSOpsWorksAsync
Parameters:
createInstanceRequest - Container for the necessary parameters to execute the CreateInstance operation on AWSOpsWorks.
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 CreateInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

stopInstanceAsync

public Future<Void> stopInstanceAsync(StopInstanceRequest stopInstanceRequest)
                               throws AmazonServiceException,
                                      AmazonClientException

Stops a specified instance. When you stop a standard instance, the data disappears and must be reinstalled when you restart the instance. You can stop an Amazon EBS-backed instance without losing data. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
stopInstanceAsync in interface AWSOpsWorksAsync
Parameters:
stopInstanceRequest - Container for the necessary parameters to execute the StopInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the StopInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

stopInstanceAsync

public Future<Void> stopInstanceAsync(StopInstanceRequest stopInstanceRequest,
                                      AsyncHandler<StopInstanceRequest,Void> asyncHandler)
                               throws AmazonServiceException,
                                      AmazonClientException

Stops a specified instance. When you stop a standard instance, the data disappears and must be reinstalled when you restart the instance. You can stop an Amazon EBS-backed instance without losing data. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
stopInstanceAsync in interface AWSOpsWorksAsync
Parameters:
stopInstanceRequest - Container for the necessary parameters to execute the StopInstance operation on AWSOpsWorks.
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 StopInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

detachElasticLoadBalancerAsync

public Future<Void> detachElasticLoadBalancerAsync(DetachElasticLoadBalancerRequest detachElasticLoadBalancerRequest)
                                            throws AmazonServiceException,
                                                   AmazonClientException

Detaches a specified Elastic Load Balancing instance from it's layer.

Specified by:
detachElasticLoadBalancerAsync in interface AWSOpsWorksAsync
Parameters:
detachElasticLoadBalancerRequest - Container for the necessary parameters to execute the DetachElasticLoadBalancer operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DetachElasticLoadBalancer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

detachElasticLoadBalancerAsync

public Future<Void> detachElasticLoadBalancerAsync(DetachElasticLoadBalancerRequest detachElasticLoadBalancerRequest,
                                                   AsyncHandler<DetachElasticLoadBalancerRequest,Void> asyncHandler)
                                            throws AmazonServiceException,
                                                   AmazonClientException

Detaches a specified Elastic Load Balancing instance from it's layer.

Specified by:
detachElasticLoadBalancerAsync in interface AWSOpsWorksAsync
Parameters:
detachElasticLoadBalancerRequest - Container for the necessary parameters to execute the DetachElasticLoadBalancer operation on AWSOpsWorks.
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 DetachElasticLoadBalancer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateAppAsync

public Future<Void> updateAppAsync(UpdateAppRequest updateAppRequest)
                            throws AmazonServiceException,
                                   AmazonClientException

Updates a specified app.

Specified by:
updateAppAsync in interface AWSOpsWorksAsync
Parameters:
updateAppRequest - Container for the necessary parameters to execute the UpdateApp operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the UpdateApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateAppAsync

public Future<Void> updateAppAsync(UpdateAppRequest updateAppRequest,
                                   AsyncHandler<UpdateAppRequest,Void> asyncHandler)
                            throws AmazonServiceException,
                                   AmazonClientException

Updates a specified app.

Specified by:
updateAppAsync in interface AWSOpsWorksAsync
Parameters:
updateAppRequest - Container for the necessary parameters to execute the UpdateApp operation on AWSOpsWorks.
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 UpdateApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteAppAsync

public Future<Void> deleteAppAsync(DeleteAppRequest deleteAppRequest)
                            throws AmazonServiceException,
                                   AmazonClientException

Deletes a specified app.

Specified by:
deleteAppAsync in interface AWSOpsWorksAsync
Parameters:
deleteAppRequest - Container for the necessary parameters to execute the DeleteApp operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DeleteApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteAppAsync

public Future<Void> deleteAppAsync(DeleteAppRequest deleteAppRequest,
                                   AsyncHandler<DeleteAppRequest,Void> asyncHandler)
                            throws AmazonServiceException,
                                   AmazonClientException

Deletes a specified app.

Specified by:
deleteAppAsync in interface AWSOpsWorksAsync
Parameters:
deleteAppRequest - Container for the necessary parameters to execute the DeleteApp operation on AWSOpsWorks.
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 DeleteApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

attachElasticLoadBalancerAsync

public Future<Void> attachElasticLoadBalancerAsync(AttachElasticLoadBalancerRequest attachElasticLoadBalancerRequest)
                                            throws AmazonServiceException,
                                                   AmazonClientException

Attaches an Elastic Load Balancing instance to a specified layer.

NOTE:You must create the Elastic Load Balancing instance separately, by using the Elastic Load Balancing console, API, or CLI. For more information, see Elastic Load Balancing Developer Guide.

Specified by:
attachElasticLoadBalancerAsync in interface AWSOpsWorksAsync
Parameters:
attachElasticLoadBalancerRequest - Container for the necessary parameters to execute the AttachElasticLoadBalancer operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the AttachElasticLoadBalancer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

attachElasticLoadBalancerAsync

public Future<Void> attachElasticLoadBalancerAsync(AttachElasticLoadBalancerRequest attachElasticLoadBalancerRequest,
                                                   AsyncHandler<AttachElasticLoadBalancerRequest,Void> asyncHandler)
                                            throws AmazonServiceException,
                                                   AmazonClientException

Attaches an Elastic Load Balancing instance to a specified layer.

NOTE:You must create the Elastic Load Balancing instance separately, by using the Elastic Load Balancing console, API, or CLI. For more information, see Elastic Load Balancing Developer Guide.

Specified by:
attachElasticLoadBalancerAsync in interface AWSOpsWorksAsync
Parameters:
attachElasticLoadBalancerRequest - Container for the necessary parameters to execute the AttachElasticLoadBalancer operation on AWSOpsWorks.
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 AttachElasticLoadBalancer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeCommandsAsync

public Future<DescribeCommandsResult> describeCommandsAsync(DescribeCommandsRequest describeCommandsRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Describes the results of specified commands.

Specified by:
describeCommandsAsync in interface AWSOpsWorksAsync
Parameters:
describeCommandsRequest - Container for the necessary parameters to execute the DescribeCommands operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeCommands service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeCommandsAsync

public Future<DescribeCommandsResult> describeCommandsAsync(DescribeCommandsRequest describeCommandsRequest,
                                                            AsyncHandler<DescribeCommandsRequest,DescribeCommandsResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Describes the results of specified commands.

Specified by:
describeCommandsAsync in interface AWSOpsWorksAsync
Parameters:
describeCommandsRequest - Container for the necessary parameters to execute the DescribeCommands operation on AWSOpsWorks.
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 DescribeCommands service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateStackAsync

public Future<Void> updateStackAsync(UpdateStackRequest updateStackRequest)
                              throws AmazonServiceException,
                                     AmazonClientException

Updates a specified stack.

Specified by:
updateStackAsync in interface AWSOpsWorksAsync
Parameters:
updateStackRequest - Container for the necessary parameters to execute the UpdateStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the UpdateStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateStackAsync

public Future<Void> updateStackAsync(UpdateStackRequest updateStackRequest,
                                     AsyncHandler<UpdateStackRequest,Void> asyncHandler)
                              throws AmazonServiceException,
                                     AmazonClientException

Updates a specified stack.

Specified by:
updateStackAsync in interface AWSOpsWorksAsync
Parameters:
updateStackRequest - Container for the necessary parameters to execute the UpdateStack operation on AWSOpsWorks.
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 UpdateStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createUserProfileAsync

public Future<CreateUserProfileResult> createUserProfileAsync(CreateUserProfileRequest createUserProfileRequest)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

Creates a new user profile.

Specified by:
createUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
createUserProfileRequest - Container for the necessary parameters to execute the CreateUserProfile operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createUserProfileAsync

public Future<CreateUserProfileResult> createUserProfileAsync(CreateUserProfileRequest createUserProfileRequest,
                                                              AsyncHandler<CreateUserProfileRequest,CreateUserProfileResult> asyncHandler)
                                                       throws AmazonServiceException,
                                                              AmazonClientException

Creates a new user profile.

Specified by:
createUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
createUserProfileRequest - Container for the necessary parameters to execute the CreateUserProfile operation on AWSOpsWorks.
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 CreateUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

getHostnameSuggestionAsync

public Future<GetHostnameSuggestionResult> getHostnameSuggestionAsync(GetHostnameSuggestionRequest getHostnameSuggestionRequest)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException

Gets a generated hostname for the specified layer, based on the current hostname theme.

Specified by:
getHostnameSuggestionAsync in interface AWSOpsWorksAsync
Parameters:
getHostnameSuggestionRequest - Container for the necessary parameters to execute the GetHostnameSuggestion operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the GetHostnameSuggestion service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

getHostnameSuggestionAsync

public Future<GetHostnameSuggestionResult> getHostnameSuggestionAsync(GetHostnameSuggestionRequest getHostnameSuggestionRequest,
                                                                      AsyncHandler<GetHostnameSuggestionRequest,GetHostnameSuggestionResult> asyncHandler)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException

Gets a generated hostname for the specified layer, based on the current hostname theme.

Specified by:
getHostnameSuggestionAsync in interface AWSOpsWorksAsync
Parameters:
getHostnameSuggestionRequest - Container for the necessary parameters to execute the GetHostnameSuggestion operation on AWSOpsWorks.
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 GetHostnameSuggestion service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeRaidArraysAsync

public Future<DescribeRaidArraysResult> describeRaidArraysAsync(DescribeRaidArraysRequest describeRaidArraysRequest)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Describe an instance's RAID arrays.

Specified by:
describeRaidArraysAsync in interface AWSOpsWorksAsync
Parameters:
describeRaidArraysRequest - Container for the necessary parameters to execute the DescribeRaidArrays operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeRaidArrays service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeRaidArraysAsync

public Future<DescribeRaidArraysResult> describeRaidArraysAsync(DescribeRaidArraysRequest describeRaidArraysRequest,
                                                                AsyncHandler<DescribeRaidArraysRequest,DescribeRaidArraysResult> asyncHandler)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Describe an instance's RAID arrays.

Specified by:
describeRaidArraysAsync in interface AWSOpsWorksAsync
Parameters:
describeRaidArraysRequest - Container for the necessary parameters to execute the DescribeRaidArrays operation on AWSOpsWorks.
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 DescribeRaidArrays service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeLayersAsync

public Future<DescribeLayersResult> describeLayersAsync(DescribeLayersRequest describeLayersRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Requests a description of one or more layers in a specified stack.

Specified by:
describeLayersAsync in interface AWSOpsWorksAsync
Parameters:
describeLayersRequest - Container for the necessary parameters to execute the DescribeLayers operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeLayers service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeLayersAsync

public Future<DescribeLayersResult> describeLayersAsync(DescribeLayersRequest describeLayersRequest,
                                                        AsyncHandler<DescribeLayersRequest,DescribeLayersResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Requests a description of one or more layers in a specified stack.

Specified by:
describeLayersAsync in interface AWSOpsWorksAsync
Parameters:
describeLayersRequest - Container for the necessary parameters to execute the DescribeLayers operation on AWSOpsWorks.
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 DescribeLayers service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeLoadBasedAutoScalingAsync

public Future<DescribeLoadBasedAutoScalingResult> describeLoadBasedAutoScalingAsync(DescribeLoadBasedAutoScalingRequest describeLoadBasedAutoScalingRequest)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes load-based auto scaling configurations for specified layers.

Specified by:
describeLoadBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
describeLoadBasedAutoScalingRequest - Container for the necessary parameters to execute the DescribeLoadBasedAutoScaling operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeLoadBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeLoadBasedAutoScalingAsync

public Future<DescribeLoadBasedAutoScalingResult> describeLoadBasedAutoScalingAsync(DescribeLoadBasedAutoScalingRequest describeLoadBasedAutoScalingRequest,
                                                                                    AsyncHandler<DescribeLoadBasedAutoScalingRequest,DescribeLoadBasedAutoScalingResult> asyncHandler)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes load-based auto scaling configurations for specified layers.

Specified by:
describeLoadBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
describeLoadBasedAutoScalingRequest - Container for the necessary parameters to execute the DescribeLoadBasedAutoScaling operation on AWSOpsWorks.
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 DescribeLoadBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setLoadBasedAutoScalingAsync

public Future<Void> setLoadBasedAutoScalingAsync(SetLoadBasedAutoScalingRequest setLoadBasedAutoScalingRequest)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances .

NOTE:To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.

Specified by:
setLoadBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
setLoadBasedAutoScalingRequest - Container for the necessary parameters to execute the SetLoadBasedAutoScaling operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the SetLoadBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setLoadBasedAutoScalingAsync

public Future<Void> setLoadBasedAutoScalingAsync(SetLoadBasedAutoScalingRequest setLoadBasedAutoScalingRequest,
                                                 AsyncHandler<SetLoadBasedAutoScalingRequest,Void> asyncHandler)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances .

NOTE:To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.

Specified by:
setLoadBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
setLoadBasedAutoScalingRequest - Container for the necessary parameters to execute the SetLoadBasedAutoScaling operation on AWSOpsWorks.
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 SetLoadBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeElasticLoadBalancersAsync

public Future<DescribeElasticLoadBalancersResult> describeElasticLoadBalancersAsync(DescribeElasticLoadBalancersRequest describeElasticLoadBalancersRequest)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes a stack's Elastic Load Balancing instances.

Specified by:
describeElasticLoadBalancersAsync in interface AWSOpsWorksAsync
Parameters:
describeElasticLoadBalancersRequest - Container for the necessary parameters to execute the DescribeElasticLoadBalancers operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeElasticLoadBalancers service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeElasticLoadBalancersAsync

public Future<DescribeElasticLoadBalancersResult> describeElasticLoadBalancersAsync(DescribeElasticLoadBalancersRequest describeElasticLoadBalancersRequest,
                                                                                    AsyncHandler<DescribeElasticLoadBalancersRequest,DescribeElasticLoadBalancersResult> asyncHandler)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes a stack's Elastic Load Balancing instances.

Specified by:
describeElasticLoadBalancersAsync in interface AWSOpsWorksAsync
Parameters:
describeElasticLoadBalancersRequest - Container for the necessary parameters to execute the DescribeElasticLoadBalancers operation on AWSOpsWorks.
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 DescribeElasticLoadBalancers service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteLayerAsync

public Future<Void> deleteLayerAsync(DeleteLayerRequest deleteLayerRequest)
                              throws AmazonServiceException,
                                     AmazonClientException

Deletes a specified layer. You must first stop and then delete all associated instances. For more information, see How to Delete a Layer .

Specified by:
deleteLayerAsync in interface AWSOpsWorksAsync
Parameters:
deleteLayerRequest - Container for the necessary parameters to execute the DeleteLayer operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DeleteLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteLayerAsync

public Future<Void> deleteLayerAsync(DeleteLayerRequest deleteLayerRequest,
                                     AsyncHandler<DeleteLayerRequest,Void> asyncHandler)
                              throws AmazonServiceException,
                                     AmazonClientException

Deletes a specified layer. You must first stop and then delete all associated instances. For more information, see How to Delete a Layer .

Specified by:
deleteLayerAsync in interface AWSOpsWorksAsync
Parameters:
deleteLayerRequest - Container for the necessary parameters to execute the DeleteLayer operation on AWSOpsWorks.
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 DeleteLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setTimeBasedAutoScalingAsync

public Future<Void> setTimeBasedAutoScalingAsync(SetTimeBasedAutoScalingRequest setTimeBasedAutoScalingRequest)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Specify the time-based auto scaling configuration for a specified instance. For more information, see Managing Load with Time-based and Load-based Instances .

Specified by:
setTimeBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
setTimeBasedAutoScalingRequest - Container for the necessary parameters to execute the SetTimeBasedAutoScaling operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the SetTimeBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

setTimeBasedAutoScalingAsync

public Future<Void> setTimeBasedAutoScalingAsync(SetTimeBasedAutoScalingRequest setTimeBasedAutoScalingRequest,
                                                 AsyncHandler<SetTimeBasedAutoScalingRequest,Void> asyncHandler)
                                          throws AmazonServiceException,
                                                 AmazonClientException

Specify the time-based auto scaling configuration for a specified instance. For more information, see Managing Load with Time-based and Load-based Instances .

Specified by:
setTimeBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
setTimeBasedAutoScalingRequest - Container for the necessary parameters to execute the SetTimeBasedAutoScaling operation on AWSOpsWorks.
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 SetTimeBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks 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 an instance's Amazon EBS volumes.

Specified by:
describeVolumesAsync in interface AWSOpsWorksAsync
Parameters:
describeVolumesRequest - Container for the necessary parameters to execute the DescribeVolumes operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeVolumes service method, as returned by AWSOpsWorks.
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 AWSOpsWorks 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 an instance's Amazon EBS volumes.

Specified by:
describeVolumesAsync in interface AWSOpsWorksAsync
Parameters:
describeVolumesRequest - Container for the necessary parameters to execute the DescribeVolumes operation on AWSOpsWorks.
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 AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createAppAsync

public Future<CreateAppResult> createAppAsync(CreateAppRequest createAppRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

Creates an app for a specified stack. For more information, see Creating Apps .

Specified by:
createAppAsync in interface AWSOpsWorksAsync
Parameters:
createAppRequest - Container for the necessary parameters to execute the CreateApp operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createAppAsync

public Future<CreateAppResult> createAppAsync(CreateAppRequest createAppRequest,
                                              AsyncHandler<CreateAppRequest,CreateAppResult> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

Creates an app for a specified stack. For more information, see Creating Apps .

Specified by:
createAppAsync in interface AWSOpsWorksAsync
Parameters:
createAppRequest - Container for the necessary parameters to execute the CreateApp operation on AWSOpsWorks.
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 CreateApp service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeTimeBasedAutoScalingAsync

public Future<DescribeTimeBasedAutoScalingResult> describeTimeBasedAutoScalingAsync(DescribeTimeBasedAutoScalingRequest describeTimeBasedAutoScalingRequest)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes time-based auto scaling configurations for specified instances.

Specified by:
describeTimeBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
describeTimeBasedAutoScalingRequest - Container for the necessary parameters to execute the DescribeTimeBasedAutoScaling operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeTimeBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeTimeBasedAutoScalingAsync

public Future<DescribeTimeBasedAutoScalingResult> describeTimeBasedAutoScalingAsync(DescribeTimeBasedAutoScalingRequest describeTimeBasedAutoScalingRequest,
                                                                                    AsyncHandler<DescribeTimeBasedAutoScalingRequest,DescribeTimeBasedAutoScalingResult> asyncHandler)
                                                                             throws AmazonServiceException,
                                                                                    AmazonClientException

Describes time-based auto scaling configurations for specified instances.

Specified by:
describeTimeBasedAutoScalingAsync in interface AWSOpsWorksAsync
Parameters:
describeTimeBasedAutoScalingRequest - Container for the necessary parameters to execute the DescribeTimeBasedAutoScaling operation on AWSOpsWorks.
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 DescribeTimeBasedAutoScaling service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteUserProfileAsync

public Future<Void> deleteUserProfileAsync(DeleteUserProfileRequest deleteUserProfileRequest)
                                    throws AmazonServiceException,
                                           AmazonClientException

Deletes a user profile.

Specified by:
deleteUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
deleteUserProfileRequest - Container for the necessary parameters to execute the DeleteUserProfile operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DeleteUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteUserProfileAsync

public Future<Void> deleteUserProfileAsync(DeleteUserProfileRequest deleteUserProfileRequest,
                                           AsyncHandler<DeleteUserProfileRequest,Void> asyncHandler)
                                    throws AmazonServiceException,
                                           AmazonClientException

Deletes a user profile.

Specified by:
deleteUserProfileAsync in interface AWSOpsWorksAsync
Parameters:
deleteUserProfileRequest - Container for the necessary parameters to execute the DeleteUserProfile operation on AWSOpsWorks.
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 DeleteUserProfile service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeUserProfilesAsync

public Future<DescribeUserProfilesResult> describeUserProfilesAsync(DescribeUserProfilesRequest describeUserProfilesRequest)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Describe specified users.

Specified by:
describeUserProfilesAsync in interface AWSOpsWorksAsync
Parameters:
describeUserProfilesRequest - Container for the necessary parameters to execute the DescribeUserProfiles operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeUserProfiles service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeUserProfilesAsync

public Future<DescribeUserProfilesResult> describeUserProfilesAsync(DescribeUserProfilesRequest describeUserProfilesRequest,
                                                                    AsyncHandler<DescribeUserProfilesRequest,DescribeUserProfilesResult> asyncHandler)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

Describe specified users.

Specified by:
describeUserProfilesAsync in interface AWSOpsWorksAsync
Parameters:
describeUserProfilesRequest - Container for the necessary parameters to execute the DescribeUserProfiles operation on AWSOpsWorks.
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 DescribeUserProfiles service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateInstanceAsync

public Future<Void> updateInstanceAsync(UpdateInstanceRequest updateInstanceRequest)
                                 throws AmazonServiceException,
                                        AmazonClientException

Updates a specified instance.

Specified by:
updateInstanceAsync in interface AWSOpsWorksAsync
Parameters:
updateInstanceRequest - Container for the necessary parameters to execute the UpdateInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the UpdateInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateInstanceAsync

public Future<Void> updateInstanceAsync(UpdateInstanceRequest updateInstanceRequest,
                                        AsyncHandler<UpdateInstanceRequest,Void> asyncHandler)
                                 throws AmazonServiceException,
                                        AmazonClientException

Updates a specified instance.

Specified by:
updateInstanceAsync in interface AWSOpsWorksAsync
Parameters:
updateInstanceRequest - Container for the necessary parameters to execute the UpdateInstance operation on AWSOpsWorks.
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 UpdateInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeServiceErrorsAsync

public Future<DescribeServiceErrorsResult> describeServiceErrorsAsync(DescribeServiceErrorsRequest describeServiceErrorsRequest)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException

Describes OpsWorks service errors.

Specified by:
describeServiceErrorsAsync in interface AWSOpsWorksAsync
Parameters:
describeServiceErrorsRequest - Container for the necessary parameters to execute the DescribeServiceErrors operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeServiceErrors service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeServiceErrorsAsync

public Future<DescribeServiceErrorsResult> describeServiceErrorsAsync(DescribeServiceErrorsRequest describeServiceErrorsRequest,
                                                                      AsyncHandler<DescribeServiceErrorsRequest,DescribeServiceErrorsResult> asyncHandler)
                                                               throws AmazonServiceException,
                                                                      AmazonClientException

Describes OpsWorks service errors.

Specified by:
describeServiceErrorsAsync in interface AWSOpsWorksAsync
Parameters:
describeServiceErrorsRequest - Container for the necessary parameters to execute the DescribeServiceErrors operation on AWSOpsWorks.
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 DescribeServiceErrors service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeDeploymentsAsync

public Future<DescribeDeploymentsResult> describeDeploymentsAsync(DescribeDeploymentsRequest describeDeploymentsRequest)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

Requests a description of a specified set of deployments.

Specified by:
describeDeploymentsAsync in interface AWSOpsWorksAsync
Parameters:
describeDeploymentsRequest - Container for the necessary parameters to execute the DescribeDeployments operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeDeployments service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeDeploymentsAsync

public Future<DescribeDeploymentsResult> describeDeploymentsAsync(DescribeDeploymentsRequest describeDeploymentsRequest,
                                                                  AsyncHandler<DescribeDeploymentsRequest,DescribeDeploymentsResult> asyncHandler)
                                                           throws AmazonServiceException,
                                                                  AmazonClientException

Requests a description of a specified set of deployments.

Specified by:
describeDeploymentsAsync in interface AWSOpsWorksAsync
Parameters:
describeDeploymentsRequest - Container for the necessary parameters to execute the DescribeDeployments operation on AWSOpsWorks.
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 DescribeDeployments service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateLayerAsync

public Future<Void> updateLayerAsync(UpdateLayerRequest updateLayerRequest)
                              throws AmazonServiceException,
                                     AmazonClientException

Updates a specified layer.

Specified by:
updateLayerAsync in interface AWSOpsWorksAsync
Parameters:
updateLayerRequest - Container for the necessary parameters to execute the UpdateLayer operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the UpdateLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

updateLayerAsync

public Future<Void> updateLayerAsync(UpdateLayerRequest updateLayerRequest,
                                     AsyncHandler<UpdateLayerRequest,Void> asyncHandler)
                              throws AmazonServiceException,
                                     AmazonClientException

Updates a specified layer.

Specified by:
updateLayerAsync in interface AWSOpsWorksAsync
Parameters:
updateLayerRequest - Container for the necessary parameters to execute the UpdateLayer operation on AWSOpsWorks.
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 UpdateLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

startInstanceAsync

public Future<Void> startInstanceAsync(StartInstanceRequest startInstanceRequest)
                                throws AmazonServiceException,
                                       AmazonClientException

Starts a specified instance. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
startInstanceAsync in interface AWSOpsWorksAsync
Parameters:
startInstanceRequest - Container for the necessary parameters to execute the StartInstance operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the StartInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

startInstanceAsync

public Future<Void> startInstanceAsync(StartInstanceRequest startInstanceRequest,
                                       AsyncHandler<StartInstanceRequest,Void> asyncHandler)
                                throws AmazonServiceException,
                                       AmazonClientException

Starts a specified instance. For more information, see Starting, Stopping, and Rebooting Instances .

Specified by:
startInstanceAsync in interface AWSOpsWorksAsync
Parameters:
startInstanceRequest - Container for the necessary parameters to execute the StartInstance operation on AWSOpsWorks.
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 StartInstance service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeElasticIpsAsync

public Future<DescribeElasticIpsResult> describeElasticIpsAsync(DescribeElasticIpsRequest describeElasticIpsRequest)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Describes an instance's Elastic IP addresses .

Specified by:
describeElasticIpsAsync in interface AWSOpsWorksAsync
Parameters:
describeElasticIpsRequest - Container for the necessary parameters to execute the DescribeElasticIps operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeElasticIps service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeElasticIpsAsync

public Future<DescribeElasticIpsResult> describeElasticIpsAsync(DescribeElasticIpsRequest describeElasticIpsRequest,
                                                                AsyncHandler<DescribeElasticIpsRequest,DescribeElasticIpsResult> asyncHandler)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

Describes an instance's Elastic IP addresses .

Specified by:
describeElasticIpsAsync in interface AWSOpsWorksAsync
Parameters:
describeElasticIpsRequest - Container for the necessary parameters to execute the DescribeElasticIps operation on AWSOpsWorks.
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 DescribeElasticIps service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeStacksAsync

public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest describeStacksRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Requests a description of one or more stacks.

Specified by:
describeStacksAsync in interface AWSOpsWorksAsync
Parameters:
describeStacksRequest - Container for the necessary parameters to execute the DescribeStacks operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeStacks service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeStacksAsync

public Future<DescribeStacksResult> describeStacksAsync(DescribeStacksRequest describeStacksRequest,
                                                        AsyncHandler<DescribeStacksRequest,DescribeStacksResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Requests a description of one or more stacks.

Specified by:
describeStacksAsync in interface AWSOpsWorksAsync
Parameters:
describeStacksRequest - Container for the necessary parameters to execute the DescribeStacks operation on AWSOpsWorks.
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 DescribeStacks service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeAppsAsync

public Future<DescribeAppsResult> describeAppsAsync(DescribeAppsRequest describeAppsRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Requests a description of a specified set of apps.

Specified by:
describeAppsAsync in interface AWSOpsWorksAsync
Parameters:
describeAppsRequest - Container for the necessary parameters to execute the DescribeApps operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DescribeApps service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

describeAppsAsync

public Future<DescribeAppsResult> describeAppsAsync(DescribeAppsRequest describeAppsRequest,
                                                    AsyncHandler<DescribeAppsRequest,DescribeAppsResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

Requests a description of a specified set of apps.

Specified by:
describeAppsAsync in interface AWSOpsWorksAsync
Parameters:
describeAppsRequest - Container for the necessary parameters to execute the DescribeApps operation on AWSOpsWorks.
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 DescribeApps service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createLayerAsync

public Future<CreateLayerResult> createLayerAsync(CreateLayerRequest createLayerRequest)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates a layer. For more information, see How to Create a Layer .

NOTE:You should use CreateLayer for non-custom layer types such as PHP App Server only if the stack does not have an existing layer of that type. A stack can have at most one instance of each non-custom layer; if you attempt to create a second instance, CreateLayer fails. A stack can have an arbitrary number of custom layers, so you can call CreateLayer as many times as you like for that layer type.

Specified by:
createLayerAsync in interface AWSOpsWorksAsync
Parameters:
createLayerRequest - Container for the necessary parameters to execute the CreateLayer operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createLayerAsync

public Future<CreateLayerResult> createLayerAsync(CreateLayerRequest createLayerRequest,
                                                  AsyncHandler<CreateLayerRequest,CreateLayerResult> asyncHandler)
                                           throws AmazonServiceException,
                                                  AmazonClientException

Creates a layer. For more information, see How to Create a Layer .

NOTE:You should use CreateLayer for non-custom layer types such as PHP App Server only if the stack does not have an existing layer of that type. A stack can have at most one instance of each non-custom layer; if you attempt to create a second instance, CreateLayer fails. A stack can have an arbitrary number of custom layers, so you can call CreateLayer as many times as you like for that layer type.

Specified by:
createLayerAsync in interface AWSOpsWorksAsync
Parameters:
createLayerRequest - Container for the necessary parameters to execute the CreateLayer operation on AWSOpsWorks.
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 CreateLayer service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteStackAsync

public Future<Void> deleteStackAsync(DeleteStackRequest deleteStackRequest)
                              throws AmazonServiceException,
                                     AmazonClientException

Deletes a specified stack. You must first delete all instances, layers, and apps. For more information, see Shut Down a Stack .

Specified by:
deleteStackAsync in interface AWSOpsWorksAsync
Parameters:
deleteStackRequest - Container for the necessary parameters to execute the DeleteStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the DeleteStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

deleteStackAsync

public Future<Void> deleteStackAsync(DeleteStackRequest deleteStackRequest,
                                     AsyncHandler<DeleteStackRequest,Void> asyncHandler)
                              throws AmazonServiceException,
                                     AmazonClientException

Deletes a specified stack. You must first delete all instances, layers, and apps. For more information, see Shut Down a Stack .

Specified by:
deleteStackAsync in interface AWSOpsWorksAsync
Parameters:
deleteStackRequest - Container for the necessary parameters to execute the DeleteStack operation on AWSOpsWorks.
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 DeleteStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

startStackAsync

public Future<Void> startStackAsync(StartStackRequest startStackRequest)
                             throws AmazonServiceException,
                                    AmazonClientException

Starts stack's instances.

Specified by:
startStackAsync in interface AWSOpsWorksAsync
Parameters:
startStackRequest - Container for the necessary parameters to execute the StartStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the StartStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

startStackAsync

public Future<Void> startStackAsync(StartStackRequest startStackRequest,
                                    AsyncHandler<StartStackRequest,Void> asyncHandler)
                             throws AmazonServiceException,
                                    AmazonClientException

Starts stack's instances.

Specified by:
startStackAsync in interface AWSOpsWorksAsync
Parameters:
startStackRequest - Container for the necessary parameters to execute the StartStack operation on AWSOpsWorks.
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 StartStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

stopStackAsync

public Future<Void> stopStackAsync(StopStackRequest stopStackRequest)
                            throws AmazonServiceException,
                                   AmazonClientException

Stops a specified stack.

Specified by:
stopStackAsync in interface AWSOpsWorksAsync
Parameters:
stopStackRequest - Container for the necessary parameters to execute the StopStack operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the StopStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

stopStackAsync

public Future<Void> stopStackAsync(StopStackRequest stopStackRequest,
                                   AsyncHandler<StopStackRequest,Void> asyncHandler)
                            throws AmazonServiceException,
                                   AmazonClientException

Stops a specified stack.

Specified by:
stopStackAsync in interface AWSOpsWorksAsync
Parameters:
stopStackRequest - Container for the necessary parameters to execute the StopStack operation on AWSOpsWorks.
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 StopStack service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createDeploymentAsync

public Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest createDeploymentRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Deploys a stack or app.

For more information, see Deploying Apps and Run Stack Commands .

Specified by:
createDeploymentAsync in interface AWSOpsWorksAsync
Parameters:
createDeploymentRequest - Container for the necessary parameters to execute the CreateDeployment operation on AWSOpsWorks.
Returns:
A Java Future object containing the response from the CreateDeployment service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.

createDeploymentAsync

public Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest createDeploymentRequest,
                                                            AsyncHandler<CreateDeploymentRequest,CreateDeploymentResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

Deploys a stack or app.

For more information, see Deploying Apps and Run Stack Commands .

Specified by:
createDeploymentAsync in interface AWSOpsWorksAsync
Parameters:
createDeploymentRequest - Container for the necessary parameters to execute the CreateDeployment operation on AWSOpsWorks.
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 CreateDeployment service method, as returned by AWSOpsWorks.
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 AWSOpsWorks indicating either a problem with the data in the request, or a server side issue.


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