@ThreadSafe public class AmazonWorkspacesClient extends AmazonWebServiceClient implements AmazonWorkspaces
This reference provides detailed information about the Amazon WorkSpaces operations.
| Modifier and Type | Field and Description |
|---|---|
protected static ClientConfigurationFactory |
configFactory
Client configuration factory providing ClientConfigurations tailored to
this client
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Constructor and Description |
|---|
AmazonWorkspacesClient()
Constructs a new client to invoke service methods on Amazon WorkSpaces.
|
AmazonWorkspacesClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on Amazon WorkSpaces
using the specified AWS account credentials.
|
AmazonWorkspacesClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon WorkSpaces
using the specified AWS account credentials and client configuration
options.
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on Amazon WorkSpaces
using the specified AWS account credentials provider.
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon WorkSpaces
using the specified AWS account credentials provider and client
configuration options.
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on Amazon WorkSpaces
using the specified AWS account credentials provider, client
configuration options, and request metric collector.
|
AmazonWorkspacesClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on Amazon WorkSpaces.
|
| Modifier and Type | Method and Description |
|---|---|
CreateTagsResult |
createTags(CreateTagsRequest createTagsRequest)
Creates tags for a WorkSpace.
|
CreateWorkspacesResult |
createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest)
Creates one or more WorkSpaces.
|
DeleteTagsResult |
deleteTags(DeleteTagsRequest deleteTagsRequest)
Deletes tags from a WorkSpace.
|
DescribeTagsResult |
describeTags(DescribeTagsRequest describeTagsRequest)
Describes tags for a WorkSpace.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles()
Simplified method form for invoking the DescribeWorkspaceBundles
operation.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles(DescribeWorkspaceBundlesRequest describeWorkspaceBundlesRequest)
Obtains information about the WorkSpace bundles that are available to
your account in the specified region.
|
DescribeWorkspaceDirectoriesResult |
describeWorkspaceDirectories()
Simplified method form for invoking the DescribeWorkspaceDirectories
operation.
|
DescribeWorkspaceDirectoriesResult |
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.
|
DescribeWorkspacesResult |
describeWorkspaces()
Simplified method form for invoking the DescribeWorkspaces operation.
|
DescribeWorkspacesResult |
describeWorkspaces(DescribeWorkspacesRequest describeWorkspacesRequest)
Obtains information about the specified WorkSpaces.
|
DescribeWorkspacesConnectionStatusResult |
describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest describeWorkspacesConnectionStatusRequest)
Describes the connection status of a specified WorkSpace.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful,
request, typically used for debugging issues where a service isn't acting
as expected.
|
ModifyWorkspacePropertiesResult |
modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest modifyWorkspacePropertiesRequest)
Modifies the WorkSpace properties, including the RunningMode and AutoStop
time.
|
RebootWorkspacesResult |
rebootWorkspaces(RebootWorkspacesRequest rebootWorkspacesRequest)
Reboots the specified WorkSpaces.
|
RebuildWorkspacesResult |
rebuildWorkspaces(RebuildWorkspacesRequest rebuildWorkspacesRequest)
Rebuilds the specified WorkSpaces.
|
StartWorkspacesResult |
startWorkspaces(StartWorkspacesRequest startWorkspacesRequest)
Starts the specified WorkSpaces.
|
StopWorkspacesResult |
stopWorkspaces(StopWorkspacesRequest stopWorkspacesRequest)
Stops the specified WorkSpaces.
|
TerminateWorkspacesResult |
terminateWorkspaces(TerminateWorkspacesRequest terminateWorkspacesRequest)
Terminates the specified WorkSpaces.
|
addRequestHandler, 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, shutdown, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownprotected static final ClientConfigurationFactory configFactory
public AmazonWorkspacesClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AmazonWorkspacesClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this client
connects to Amazon WorkSpaces (ex: proxy settings, retry counts,
etc.).DefaultAWSCredentialsProviderChainpublic AmazonWorkspacesClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.public AmazonWorkspacesClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon WorkSpaces (ex: proxy settings, retry counts,
etc.).public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon WorkSpaces (ex: proxy settings, retry counts,
etc.).public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client
connects to Amazon WorkSpaces (ex: proxy settings, retry counts,
etc.).requestMetricCollector - optional request metric collectorpublic CreateTagsResult createTags(CreateTagsRequest createTagsRequest)
Creates tags for a WorkSpace.
createTags in interface AmazonWorkspacescreateTagsRequest - The request of the CreateTags operation.ResourceNotFoundException - The resource could not be found.InvalidParameterValuesException - One or more parameter values are not valid.ResourceLimitExceededException - Your resource limits have been exceeded.public CreateWorkspacesResult createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest)
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
createWorkspaces in interface AmazonWorkspacescreateWorkspacesRequest - Contains the inputs for the CreateWorkspaces operation.ResourceLimitExceededException - Your resource limits have been exceeded.InvalidParameterValuesException - One or more parameter values are not valid.public DeleteTagsResult deleteTags(DeleteTagsRequest deleteTagsRequest)
Deletes tags from a WorkSpace.
deleteTags in interface AmazonWorkspacesdeleteTagsRequest - The request of the DeleteTags operation.ResourceNotFoundException - The resource could not be found.InvalidParameterValuesException - One or more parameter values are not valid.public DescribeTagsResult describeTags(DescribeTagsRequest describeTagsRequest)
Describes tags for a WorkSpace.
describeTags in interface AmazonWorkspacesdescribeTagsRequest - The request of the DescribeTags operation.ResourceNotFoundException - The resource could not be found.public DescribeWorkspaceBundlesResult 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.
describeWorkspaceBundles in interface AmazonWorkspacesdescribeWorkspaceBundlesRequest - Contains the inputs for the DescribeWorkspaceBundles
operation.InvalidParameterValuesException - One or more parameter values are not valid.public DescribeWorkspaceBundlesResult describeWorkspaceBundles()
AmazonWorkspacesdescribeWorkspaceBundles in interface AmazonWorkspacesAmazonWorkspaces.describeWorkspaceBundles(DescribeWorkspaceBundlesRequest)public DescribeWorkspaceDirectoriesResult 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.
describeWorkspaceDirectories in interface AmazonWorkspacesdescribeWorkspaceDirectoriesRequest - Contains the inputs for the DescribeWorkspaceDirectories
operation.InvalidParameterValuesException - One or more parameter values are not valid.public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories()
AmazonWorkspacesdescribeWorkspaceDirectories in interface AmazonWorkspacesAmazonWorkspaces.describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest)public DescribeWorkspacesResult 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.
describeWorkspaces in interface AmazonWorkspacesdescribeWorkspacesRequest - Contains the inputs for the DescribeWorkspaces operation.InvalidParameterValuesException - One or more parameter values are not valid.ResourceUnavailableException - The specified resource is not available.public DescribeWorkspacesResult describeWorkspaces()
AmazonWorkspacesdescribeWorkspaces in interface AmazonWorkspacesAmazonWorkspaces.describeWorkspaces(DescribeWorkspacesRequest)public DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest describeWorkspacesConnectionStatusRequest)
Describes the connection status of a specified WorkSpace.
describeWorkspacesConnectionStatus in interface AmazonWorkspacesdescribeWorkspacesConnectionStatusRequest - InvalidParameterValuesException - One or more parameter values are not valid.public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest modifyWorkspacePropertiesRequest)
Modifies the WorkSpace properties, including the RunningMode and AutoStop time.
modifyWorkspaceProperties in interface AmazonWorkspacesmodifyWorkspacePropertiesRequest - InvalidParameterValuesException - One or more parameter values are not valid.InvalidResourceStateException - The specified WorkSpace has an invalid state for this operation.OperationInProgressException - The properties of this WorkSpace are currently being modified.
Try again in a moment.UnsupportedWorkspaceConfigurationException - The WorkSpace does not have the supported configuration for this
operation. For more information, see the Amazon WorkSpaces Administration Guide.ResourceNotFoundException - The resource could not be found.AccessDeniedExceptionResourceUnavailableException - The specified resource is not available.public RebootWorkspacesResult 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.
rebootWorkspaces in interface AmazonWorkspacesrebootWorkspacesRequest - Contains the inputs for the RebootWorkspaces operation.public RebuildWorkspacesResult 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.
rebuildWorkspaces in interface AmazonWorkspacesrebuildWorkspacesRequest - Contains the inputs for the RebuildWorkspaces operation.public StartWorkspacesResult startWorkspaces(StartWorkspacesRequest startWorkspacesRequest)
Starts the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to “STOPPED.”
startWorkspaces in interface AmazonWorkspacesstartWorkspacesRequest - public StopWorkspacesResult stopWorkspaces(StopWorkspacesRequest stopWorkspacesRequest)
Stops 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.
stopWorkspaces in interface AmazonWorkspacesstopWorkspacesRequest - public TerminateWorkspacesResult 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.
terminateWorkspaces in interface AmazonWorkspacesterminateWorkspacesRequest - Contains the inputs for the TerminateWorkspaces operation.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonWorkspacesrequest - The originally executed requestCopyright © 2016. All rights reserved.