@ThreadSafe public class AmazonWorkspacesAsyncClient extends AmazonWorkspacesClient implements AmazonWorkspacesAsync
AsyncHandler can be used to
receive notification when an asynchronous operation completes.
This reference provides detailed information about the Amazon WorkSpaces operations.
configFactoryclient, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Constructor and Description |
|---|
AmazonWorkspacesAsyncClient()
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces.
|
AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials.
|
AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials, executor service,
and client configuration options.
|
AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials and executor
service.
|
AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials provider.
|
AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the provided AWS account credentials provider and client
configuration options.
|
AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials provider, executor
service, and client configuration options.
|
AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces using the specified AWS account credentials provider and
executor service.
|
AmazonWorkspacesAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Amazon
WorkSpaces.
|
createTags, createWorkspaces, deleteTags, describeTags, describeWorkspaceBundles, describeWorkspaceBundles, describeWorkspaceDirectories, describeWorkspaceDirectories, describeWorkspaces, describeWorkspaces, describeWorkspacesConnectionStatus, getCachedResponseMetadata, modifyWorkspaceProperties, rebootWorkspaces, rebuildWorkspaces, startWorkspaces, stopWorkspaces, terminateWorkspacesaddRequestHandler, addRequestHandler, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTags, createWorkspaces, deleteTags, describeTags, describeWorkspaceBundles, describeWorkspaceBundles, describeWorkspaceDirectories, describeWorkspaceDirectories, describeWorkspaces, describeWorkspaces, describeWorkspacesConnectionStatus, getCachedResponseMetadata, modifyWorkspaceProperties, rebootWorkspaces, rebuildWorkspaces, setEndpoint, setRegion, startWorkspaces, stopWorkspaces, terminateWorkspacespublic AmazonWorkspacesAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
public AmazonWorkspacesAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections().
clientConfiguration - The client configuration options controlling how this client
connects to Amazon WorkSpaces (ex: proxy settings, retry counts,
etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)public AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials - The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)public AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
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.public AmazonWorkspacesAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.public AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)public AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections().
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).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)public AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
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.public AmazonWorkspacesAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.public ExecutorService getExecutorService()
public Future<CreateTagsResult> createTagsAsync(CreateTagsRequest request)
AmazonWorkspacesAsyncCreates tags for a WorkSpace.
createTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the CreateTags operation.public Future<CreateTagsResult> createTagsAsync(CreateTagsRequest request, AsyncHandler<CreateTagsRequest,CreateTagsResult> asyncHandler)
AmazonWorkspacesAsyncCreates tags for a WorkSpace.
createTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the CreateTags operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateWorkspacesResult> createWorkspacesAsync(CreateWorkspacesRequest request)
AmazonWorkspacesAsyncCreates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
createWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the CreateWorkspaces operation.public Future<CreateWorkspacesResult> createWorkspacesAsync(CreateWorkspacesRequest request, AsyncHandler<CreateWorkspacesRequest,CreateWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncCreates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
createWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the CreateWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request)
AmazonWorkspacesAsyncDeletes tags from a WorkSpace.
deleteTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the DeleteTags operation.public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request, AsyncHandler<DeleteTagsRequest,DeleteTagsResult> asyncHandler)
AmazonWorkspacesAsyncDeletes tags from a WorkSpace.
deleteTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the DeleteTags operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest request)
AmazonWorkspacesAsyncDescribes tags for a WorkSpace.
describeTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the DescribeTags operation.public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest request, AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler)
AmazonWorkspacesAsyncDescribes tags for a WorkSpace.
describeTagsAsync in interface AmazonWorkspacesAsyncrequest - The request of the DescribeTags operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspaceBundlesResult> describeWorkspaceBundlesAsync(DescribeWorkspaceBundlesRequest request)
AmazonWorkspacesAsyncObtains information about the WorkSpace bundles that are available to your account in the specified region.
You can filter the results with either the BundleIds
parameter, or the Owner parameter, but not both.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspaceBundlesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaceBundles
operation.public Future<DescribeWorkspaceBundlesResult> describeWorkspaceBundlesAsync(DescribeWorkspaceBundlesRequest request, AsyncHandler<DescribeWorkspaceBundlesRequest,DescribeWorkspaceBundlesResult> asyncHandler)
AmazonWorkspacesAsyncObtains information about the WorkSpace bundles that are available to your account in the specified region.
You can filter the results with either the BundleIds
parameter, or the Owner parameter, but not both.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspaceBundlesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaceBundles
operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspaceBundlesResult> describeWorkspaceBundlesAsync()
describeWorkspaceBundlesAsync in interface AmazonWorkspacesAsyncdescribeWorkspaceBundlesAsync(DescribeWorkspaceBundlesRequest)public Future<DescribeWorkspaceBundlesResult> describeWorkspaceBundlesAsync(AsyncHandler<DescribeWorkspaceBundlesRequest,DescribeWorkspaceBundlesResult> asyncHandler)
describeWorkspaceBundlesAsync in interface AmazonWorkspacesAsyncdescribeWorkspaceBundlesAsync(DescribeWorkspaceBundlesRequest,
com.amazonaws.handlers.AsyncHandler)public Future<DescribeWorkspaceDirectoriesResult> describeWorkspaceDirectoriesAsync(DescribeWorkspaceDirectoriesRequest request)
AmazonWorkspacesAsyncRetrieves information about the AWS Directory Service directories in the region that are registered with Amazon WorkSpaces and are available to your account.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspaceDirectoriesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaceDirectories
operation.public Future<DescribeWorkspaceDirectoriesResult> describeWorkspaceDirectoriesAsync(DescribeWorkspaceDirectoriesRequest request, AsyncHandler<DescribeWorkspaceDirectoriesRequest,DescribeWorkspaceDirectoriesResult> asyncHandler)
AmazonWorkspacesAsyncRetrieves information about the AWS Directory Service directories in the region that are registered with Amazon WorkSpaces and are available to your account.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspaceDirectoriesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaceDirectories
operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspaceDirectoriesResult> describeWorkspaceDirectoriesAsync()
describeWorkspaceDirectoriesAsync in interface AmazonWorkspacesAsyncdescribeWorkspaceDirectoriesAsync(DescribeWorkspaceDirectoriesRequest)public Future<DescribeWorkspaceDirectoriesResult> describeWorkspaceDirectoriesAsync(AsyncHandler<DescribeWorkspaceDirectoriesRequest,DescribeWorkspaceDirectoriesResult> asyncHandler)
public Future<DescribeWorkspacesResult> describeWorkspacesAsync(DescribeWorkspacesRequest request)
AmazonWorkspacesAsyncObtains information about the specified WorkSpaces.
Only one of the filter parameters, such as BundleId,
DirectoryId, or WorkspaceIds, can be specified
at a time.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaces operation.public Future<DescribeWorkspacesResult> describeWorkspacesAsync(DescribeWorkspacesRequest request, AsyncHandler<DescribeWorkspacesRequest,DescribeWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncObtains information about the specified WorkSpaces.
Only one of the filter parameters, such as BundleId,
DirectoryId, or WorkspaceIds, can be specified
at a time.
This operation supports pagination with the use of the
NextToken request and response parameters. If more results
are available, the NextToken response member contains a
token that you pass in the next call to this operation to retrieve the
next set of items.
describeWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the DescribeWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeWorkspacesResult> describeWorkspacesAsync()
describeWorkspacesAsync in interface AmazonWorkspacesAsyncdescribeWorkspacesAsync(DescribeWorkspacesRequest)public Future<DescribeWorkspacesResult> describeWorkspacesAsync(AsyncHandler<DescribeWorkspacesRequest,DescribeWorkspacesResult> asyncHandler)
describeWorkspacesAsync in interface AmazonWorkspacesAsyncdescribeWorkspacesAsync(DescribeWorkspacesRequest,
com.amazonaws.handlers.AsyncHandler)public Future<DescribeWorkspacesConnectionStatusResult> describeWorkspacesConnectionStatusAsync(DescribeWorkspacesConnectionStatusRequest request)
AmazonWorkspacesAsyncDescribes the connection status of a specified WorkSpace.
describeWorkspacesConnectionStatusAsync in interface AmazonWorkspacesAsyncpublic Future<DescribeWorkspacesConnectionStatusResult> describeWorkspacesConnectionStatusAsync(DescribeWorkspacesConnectionStatusRequest request, AsyncHandler<DescribeWorkspacesConnectionStatusRequest,DescribeWorkspacesConnectionStatusResult> asyncHandler)
AmazonWorkspacesAsyncDescribes the connection status of a specified WorkSpace.
describeWorkspacesConnectionStatusAsync in interface AmazonWorkspacesAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ModifyWorkspacePropertiesResult> modifyWorkspacePropertiesAsync(ModifyWorkspacePropertiesRequest request)
AmazonWorkspacesAsyncModifies the WorkSpace properties, including the RunningMode and AutoStop time.
modifyWorkspacePropertiesAsync in interface AmazonWorkspacesAsyncpublic Future<ModifyWorkspacePropertiesResult> modifyWorkspacePropertiesAsync(ModifyWorkspacePropertiesRequest request, AsyncHandler<ModifyWorkspacePropertiesRequest,ModifyWorkspacePropertiesResult> asyncHandler)
AmazonWorkspacesAsyncModifies the WorkSpace properties, including the RunningMode and AutoStop time.
modifyWorkspacePropertiesAsync in interface AmazonWorkspacesAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RebootWorkspacesResult> rebootWorkspacesAsync(RebootWorkspacesRequest request)
AmazonWorkspacesAsyncReboots the specified WorkSpaces.
To be able to reboot a WorkSpace, the WorkSpace must have a State
of AVAILABLE, IMPAIRED, or
INOPERABLE.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
rebootWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the RebootWorkspaces operation.public Future<RebootWorkspacesResult> rebootWorkspacesAsync(RebootWorkspacesRequest request, AsyncHandler<RebootWorkspacesRequest,RebootWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncReboots the specified WorkSpaces.
To be able to reboot a WorkSpace, the WorkSpace must have a State
of AVAILABLE, IMPAIRED, or
INOPERABLE.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
rebootWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the RebootWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RebuildWorkspacesResult> rebuildWorkspacesAsync(RebuildWorkspacesRequest request)
AmazonWorkspacesAsyncRebuilds the specified WorkSpaces.
Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. Rebuilding a WorkSpace causes the following to occur:
The system is restored to the image of the bundle that the WorkSpace is created from. Any applications that have been installed, or system settings that have been made since the WorkSpace was created will be lost.
The data drive (D drive) is re-created from the last automatic snapshot taken of the data drive. The current contents of the data drive are overwritten. Automatic snapshots of the data drive are taken every 12 hours, so the snapshot can be as much as 12 hours old.
To be able to rebuild a WorkSpace, the WorkSpace must have a State
of AVAILABLE or ERROR.
This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.
rebuildWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the RebuildWorkspaces operation.public Future<RebuildWorkspacesResult> rebuildWorkspacesAsync(RebuildWorkspacesRequest request, AsyncHandler<RebuildWorkspacesRequest,RebuildWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncRebuilds the specified WorkSpaces.
Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. Rebuilding a WorkSpace causes the following to occur:
The system is restored to the image of the bundle that the WorkSpace is created from. Any applications that have been installed, or system settings that have been made since the WorkSpace was created will be lost.
The data drive (D drive) is re-created from the last automatic snapshot taken of the data drive. The current contents of the data drive are overwritten. Automatic snapshots of the data drive are taken every 12 hours, so the snapshot can be as much as 12 hours old.
To be able to rebuild a WorkSpace, the WorkSpace must have a State
of AVAILABLE or ERROR.
This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.
rebuildWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the RebuildWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartWorkspacesResult> startWorkspacesAsync(StartWorkspacesRequest request)
AmazonWorkspacesAsyncStarts the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to “STOPPED.”
startWorkspacesAsync in interface AmazonWorkspacesAsyncpublic Future<StartWorkspacesResult> startWorkspacesAsync(StartWorkspacesRequest request, AsyncHandler<StartWorkspacesRequest,StartWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncStarts the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to “STOPPED.”
startWorkspacesAsync in interface AmazonWorkspacesAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopWorkspacesResult> stopWorkspacesAsync(StopWorkspacesRequest request)
AmazonWorkspacesAsyncStops the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
stopWorkspacesAsync in interface AmazonWorkspacesAsyncpublic Future<StopWorkspacesResult> stopWorkspacesAsync(StopWorkspacesRequest request, AsyncHandler<StopWorkspacesRequest,StopWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncStops the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
stopWorkspacesAsync in interface AmazonWorkspacesAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TerminateWorkspacesResult> terminateWorkspacesAsync(TerminateWorkspacesRequest request)
AmazonWorkspacesAsyncTerminates the specified WorkSpaces.
Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is not maintained and will be destroyed. If you need to archive any user data, contact Amazon Web Services before terminating the WorkSpace.
You can terminate a WorkSpace that is in any state except
SUSPENDED.
This operation is asynchronous and returns before the WorkSpaces have been completely terminated.
terminateWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the TerminateWorkspaces operation.public Future<TerminateWorkspacesResult> terminateWorkspacesAsync(TerminateWorkspacesRequest request, AsyncHandler<TerminateWorkspacesRequest,TerminateWorkspacesResult> asyncHandler)
AmazonWorkspacesAsyncTerminates the specified WorkSpaces.
Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is not maintained and will be destroyed. If you need to archive any user data, contact Amazon Web Services before terminating the WorkSpace.
You can terminate a WorkSpace that is in any state except
SUSPENDED.
This operation is asynchronous and returns before the WorkSpaces have been completely terminated.
terminateWorkspacesAsync in interface AmazonWorkspacesAsyncrequest - Contains the inputs for the TerminateWorkspaces operation.asyncHandler - Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by
getExecutorService().awaitTermination() prior to calling this
method.shutdown in interface AmazonWorkspacesshutdown in class AmazonWebServiceClientCopyright © 2016. All rights reserved.