@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkspacesClient extends AmazonWebServiceClient implements AmazonWorkspaces
This reference provides detailed information about the Amazon WorkSpaces operations.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AmazonWorkspacesClient()
Deprecated.
|
AmazonWorkspacesClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AmazonWorkspacesClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AmazonWorkspacesClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AmazonWorkspacesClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AmazonWorkspacesClientBuilder |
builder() |
CreateTagsResult |
createTags(CreateTagsRequest request)
Creates tags for a WorkSpace.
|
CreateWorkspacesResult |
createWorkspaces(CreateWorkspacesRequest request)
Creates one or more WorkSpaces.
|
DeleteTagsResult |
deleteTags(DeleteTagsRequest request)
Deletes tags from a WorkSpace.
|
DescribeTagsResult |
describeTags(DescribeTagsRequest request)
Describes tags for a WorkSpace.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles()
Simplified method form for invoking the DescribeWorkspaceBundles operation.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request)
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 request)
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 request)
Obtains information about the specified WorkSpaces.
|
DescribeWorkspacesConnectionStatusResult |
describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request)
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 request)
Modifies the WorkSpace properties, including the running mode and AutoStop time.
|
RebootWorkspacesResult |
rebootWorkspaces(RebootWorkspacesRequest request)
Reboots the specified WorkSpaces.
|
RebuildWorkspacesResult |
rebuildWorkspaces(RebuildWorkspacesRequest request)
Rebuilds the specified WorkSpaces.
|
StartWorkspacesResult |
startWorkspaces(StartWorkspacesRequest request)
Starts the specified WorkSpaces.
|
StopWorkspacesResult |
stopWorkspaces(StopWorkspacesRequest request)
Stops the specified WorkSpaces.
|
TerminateWorkspacesResult |
terminateWorkspaces(TerminateWorkspacesRequest request)
Terminates the specified WorkSpaces.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AmazonWorkspacesClient()
AmazonWorkspacesClientBuilder.defaultClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AmazonWorkspacesClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(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
@Deprecated public AmazonWorkspacesClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
for example:
AmazonWorkspacesClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
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.@Deprecated public AmazonWorkspacesClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(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.).@Deprecated public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(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.@Deprecated public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(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.).@Deprecated public AmazonWorkspacesClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsClientBuilder.withMetricsCollector(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 static AmazonWorkspacesClientBuilder builder()
public CreateTagsResult createTags(CreateTagsRequest request)
Creates tags for a WorkSpace.
createTags
in interface AmazonWorkspaces
createTagsRequest
- 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 request)
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.InvalidParameterValuesException
- One or more parameter values are not valid.public DeleteTagsResult deleteTags(DeleteTagsRequest request)
Deletes tags from a WorkSpace.
deleteTags
in interface AmazonWorkspaces
deleteTagsRequest
- 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 request)
Describes tags for a WorkSpace.
describeTags
in interface AmazonWorkspaces
describeTagsRequest
- The request of the DescribeTags operation.ResourceNotFoundException
- The resource could not be found.public DescribeWorkspaceBundlesResult describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request)
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 request)
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 request)
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 DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request)
Describes the connection status of a specified WorkSpace.
describeWorkspacesConnectionStatus
in interface AmazonWorkspaces
describeWorkspacesConnectionStatusRequest
- InvalidParameterValuesException
- One or more parameter values are not valid.public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request)
Modifies the WorkSpace properties, including the running mode and AutoStop time.
modifyWorkspaceProperties
in interface AmazonWorkspaces
modifyWorkspacePropertiesRequest
- InvalidParameterValuesException
- One or more parameter values are not valid.InvalidResourceStateException
- The state of the WorkSpace is not valid for this operation.OperationInProgressException
- The properties of this WorkSpace are currently being modified. Try again in a moment.UnsupportedWorkspaceConfigurationException
- The configuration of this WorkSpace is not supported for this operation. For more information, see the Amazon WorkSpaces Administration
Guide.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- The user is not authorized to access a resource.ResourceUnavailableException
- The specified resource is not available.public RebootWorkspacesResult rebootWorkspaces(RebootWorkspacesRequest request)
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 AmazonWorkspaces
rebootWorkspacesRequest
- Contains the inputs for the RebootWorkspaces operation.public RebuildWorkspacesResult rebuildWorkspaces(RebuildWorkspacesRequest request)
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 AmazonWorkspaces
rebuildWorkspacesRequest
- Contains the inputs for the RebuildWorkspaces operation.public StartWorkspacesResult startWorkspaces(StartWorkspacesRequest request)
Starts the specified WorkSpaces. The WorkSpaces must have a running mode of AutoStop and a state of STOPPED.
startWorkspaces
in interface AmazonWorkspaces
startWorkspacesRequest
- public StopWorkspacesResult stopWorkspaces(StopWorkspacesRequest request)
Stops the specified WorkSpaces. The WorkSpaces must have a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
stopWorkspaces
in interface AmazonWorkspaces
stopWorkspacesRequest
- public TerminateWorkspacesResult terminateWorkspaces(TerminateWorkspacesRequest request)
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 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 © 2013 Amazon Web Services, Inc. All Rights Reserved.