public class AmazonWorkspacesClient extends AmazonWebServiceClient implements AmazonWorkspaces
This is the Amazon WorkSpaces API Reference. This guide provides detailed information about Amazon WorkSpaces operations, data types, parameters, and errors.
Modifier and Type | Field and Description |
---|---|
protected List<com.amazonaws.transform.JsonErrorUnmarshallerV2> |
jsonErrorUnmarshallers
List of exception unmarshallers for all Amazon WorkSpaces exceptions.
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
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 |
---|---|
CreateWorkspacesResult |
createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest)
Creates one or more WorkSpaces.
|
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.
|
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.
|
RebootWorkspacesResult |
rebootWorkspaces(RebootWorkspacesRequest rebootWorkspacesRequest)
Reboots the specified WorkSpaces.
|
RebuildWorkspacesResult |
rebuildWorkspaces(RebuildWorkspacesRequest rebuildWorkspacesRequest)
Rebuilds the specified WorkSpaces.
|
TerminateWorkspacesResult |
terminateWorkspaces(TerminateWorkspacesRequest terminateWorkspacesRequest)
Terminates the specified WorkSpaces.
|
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
protected List<com.amazonaws.transform.JsonErrorUnmarshallerV2> jsonErrorUnmarshallers
public AmazonWorkspacesClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public 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.).DefaultAWSCredentialsProviderChain
public 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 CreateWorkspacesResult createWorkspaces(CreateWorkspacesRequest createWorkspacesRequest)
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
createWorkspaces
in interface AmazonWorkspaces
createWorkspacesRequest
- Contains the inputs for the CreateWorkspaces operation.ResourceLimitExceededException
- Your resource limits have been exceeded.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 AmazonWorkspaces
describeWorkspaceBundlesRequest
- Contains the inputs for the DescribeWorkspaceBundles
operation.InvalidParameterValuesException
- One or more parameter values are not valid.public DescribeWorkspaceBundlesResult describeWorkspaceBundles()
AmazonWorkspaces
describeWorkspaceBundles
in interface AmazonWorkspaces
AmazonWorkspaces.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 AmazonWorkspaces
describeWorkspaceDirectoriesRequest
- Contains the inputs for the DescribeWorkspaceDirectories
operation.InvalidParameterValuesException
- One or more parameter values are not valid.public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories()
AmazonWorkspaces
describeWorkspaceDirectories
in interface AmazonWorkspaces
AmazonWorkspaces.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 AmazonWorkspaces
describeWorkspacesRequest
- 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()
AmazonWorkspaces
describeWorkspaces
in interface AmazonWorkspaces
AmazonWorkspaces.describeWorkspaces(DescribeWorkspacesRequest)
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 will return before the WorkSpaces have rebooted.
rebootWorkspaces
in interface AmazonWorkspaces
rebootWorkspacesRequest
- 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:
To be able to rebuild a WorkSpace, the WorkSpace must have a State
of AVAILABLE
or ERROR
.
This operation is asynchronous and will return before the WorkSpaces have been completely rebuilt.
rebuildWorkspaces
in interface AmazonWorkspaces
rebuildWorkspacesRequest
- Contains the inputs for the RebuildWorkspaces operation.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 will return before the WorkSpaces have been completely terminated.
terminateWorkspaces
in interface AmazonWorkspaces
terminateWorkspacesRequest
- 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 AmazonWorkspaces
request
- The originally executed requestCopyright © 2015. All rights reserved.