AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface WorkSpacesAsyncClient extends AutoCloseable
builder()
method.
This reference provides detailed information about the Amazon WorkSpaces operations.
Modifier and Type | Method | Description |
---|---|---|
static WorkSpacesAsyncClientBuilder |
builder() |
Create a builder that can be used to configure and create a
WorkSpacesAsyncClient . |
static WorkSpacesAsyncClient |
create() |
Create a
WorkSpacesAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateTagsResponse> |
createTags(CreateTagsRequest createTagsRequest) |
Creates tags for a WorkSpace.
|
default CompletableFuture<CreateWorkspacesResponse> |
createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest) |
Creates one or more WorkSpaces.
|
default CompletableFuture<DeleteTagsResponse> |
deleteTags(DeleteTagsRequest deleteTagsRequest) |
Deletes tags from a WorkSpace.
|
default CompletableFuture<DescribeTagsResponse> |
describeTags(DescribeTagsRequest describeTagsRequest) |
Describes tags for a WorkSpace.
|
default CompletableFuture<DescribeWorkspaceBundlesResponse> |
describeWorkspaceBundles(DescribeWorkspaceBundlesRequest describeWorkspaceBundlesRequest) |
Obtains information about the WorkSpace bundles that are available to your account in the specified region.
|
default CompletableFuture<DescribeWorkspaceDirectoriesResponse> |
describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest describeWorkspaceDirectoriesRequest) |
Retrieves information about the AWS Directory Service directories in the region that are registered with Amazon
WorkSpaces and are available to your account.
|
default CompletableFuture<DescribeWorkspacesResponse> |
describeWorkspaces(DescribeWorkspacesRequest describeWorkspacesRequest) |
Obtains information about the specified WorkSpaces.
|
default CompletableFuture<DescribeWorkspacesConnectionStatusResponse> |
describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest describeWorkspacesConnectionStatusRequest) |
Describes the connection status of a specified WorkSpace.
|
default CompletableFuture<ModifyWorkspacePropertiesResponse> |
modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest modifyWorkspacePropertiesRequest) |
Modifies the WorkSpace properties, including the running mode and AutoStop time.
|
default CompletableFuture<RebootWorkspacesResponse> |
rebootWorkspaces(RebootWorkspacesRequest rebootWorkspacesRequest) |
Reboots the specified WorkSpaces.
|
default CompletableFuture<RebuildWorkspacesResponse> |
rebuildWorkspaces(RebuildWorkspacesRequest rebuildWorkspacesRequest) |
Rebuilds the specified WorkSpaces.
|
default CompletableFuture<StartWorkspacesResponse> |
startWorkspaces(StartWorkspacesRequest startWorkspacesRequest) |
Starts the specified WorkSpaces.
|
default CompletableFuture<StopWorkspacesResponse> |
stopWorkspaces(StopWorkspacesRequest stopWorkspacesRequest) |
Stops the specified WorkSpaces.
|
default CompletableFuture<TerminateWorkspacesResponse> |
terminateWorkspaces(TerminateWorkspacesRequest terminateWorkspacesRequest) |
Terminates the specified WorkSpaces.
|
close
static WorkSpacesAsyncClient create()
WorkSpacesAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static WorkSpacesAsyncClientBuilder builder()
WorkSpacesAsyncClient
.default CompletableFuture<CreateTagsResponse> createTags(CreateTagsRequest createTagsRequest)
Creates tags for a WorkSpace.
createTagsRequest
- The request of the CreateTags operation.default CompletableFuture<CreateWorkspacesResponse> createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest)
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
createWorkspacesRequest
- Contains the inputs for the CreateWorkspaces operation.default CompletableFuture<DeleteTagsResponse> deleteTags(DeleteTagsRequest deleteTagsRequest)
Deletes tags from a WorkSpace.
deleteTagsRequest
- The request of the DeleteTags operation.default CompletableFuture<DescribeTagsResponse> describeTags(DescribeTagsRequest describeTagsRequest)
Describes tags for a WorkSpace.
describeTagsRequest
- The request of the DescribeTags operation.default CompletableFuture<DescribeWorkspaceBundlesResponse> describeWorkspaceBundles(DescribeWorkspaceBundlesRequest describeWorkspaceBundlesRequest)
Obtains 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.
describeWorkspaceBundlesRequest
- Contains the inputs for the DescribeWorkspaceBundles operation.default CompletableFuture<DescribeWorkspaceDirectoriesResponse> describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest describeWorkspaceDirectoriesRequest)
Retrieves 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.
describeWorkspaceDirectoriesRequest
- Contains the inputs for the DescribeWorkspaceDirectories operation.default CompletableFuture<DescribeWorkspacesResponse> describeWorkspaces(DescribeWorkspacesRequest describeWorkspacesRequest)
Obtains 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.
describeWorkspacesRequest
- Contains the inputs for the DescribeWorkspaces operation.default CompletableFuture<DescribeWorkspacesConnectionStatusResponse> describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest describeWorkspacesConnectionStatusRequest)
Describes the connection status of a specified WorkSpace.
describeWorkspacesConnectionStatusRequest
- default CompletableFuture<ModifyWorkspacePropertiesResponse> modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest modifyWorkspacePropertiesRequest)
Modifies the WorkSpace properties, including the running mode and AutoStop time.
modifyWorkspacePropertiesRequest
- default CompletableFuture<RebootWorkspacesResponse> rebootWorkspaces(RebootWorkspacesRequest rebootWorkspacesRequest)
Reboots 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.
rebootWorkspacesRequest
- Contains the inputs for the RebootWorkspaces operation.default CompletableFuture<RebuildWorkspacesResponse> rebuildWorkspaces(RebuildWorkspacesRequest rebuildWorkspacesRequest)
Rebuilds 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.
rebuildWorkspacesRequest
- Contains the inputs for the RebuildWorkspaces operation.default CompletableFuture<StartWorkspacesResponse> startWorkspaces(StartWorkspacesRequest startWorkspacesRequest)
Starts the specified WorkSpaces. The WorkSpaces must have a running mode of AutoStop and a state of STOPPED.
startWorkspacesRequest
- default CompletableFuture<StopWorkspacesResponse> stopWorkspaces(StopWorkspacesRequest stopWorkspacesRequest)
Stops the specified WorkSpaces. The WorkSpaces must have a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
stopWorkspacesRequest
- default CompletableFuture<TerminateWorkspacesResponse> terminateWorkspaces(TerminateWorkspacesRequest terminateWorkspacesRequest)
Terminates 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.
terminateWorkspacesRequest
- Contains the inputs for the TerminateWorkspaces operation.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.