@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkspacesClient extends AmazonWebServiceClient implements AmazonWorkspaces
Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows desktops for your users.
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 the specified WorkSpace.
|
CreateWorkspacesResult |
createWorkspaces(CreateWorkspacesRequest request)
Creates one or more WorkSpaces.
|
DeleteTagsResult |
deleteTags(DeleteTagsRequest request)
Deletes the specified tags from a WorkSpace.
|
DescribeTagsResult |
describeTags(DescribeTagsRequest request)
Describes the tags for the specified WorkSpace.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles()
Simplified method form for invoking the DescribeWorkspaceBundles operation.
|
DescribeWorkspaceBundlesResult |
describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request)
Describes the available WorkSpace bundles.
|
DescribeWorkspaceDirectoriesResult |
describeWorkspaceDirectories()
Simplified method form for invoking the DescribeWorkspaceDirectories operation.
|
DescribeWorkspaceDirectoriesResult |
describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request)
Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.
|
DescribeWorkspacesResult |
describeWorkspaces()
Simplified method form for invoking the DescribeWorkspaces operation.
|
DescribeWorkspacesResult |
describeWorkspaces(DescribeWorkspacesRequest request)
Describes the specified WorkSpaces.
|
DescribeWorkspacesConnectionStatusResult |
describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request)
Describes the connection status of 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.
|
ModifyWorkspacePropertiesResult |
modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request)
Modifies the specified WorkSpace properties.
|
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 the specified WorkSpace.
createTags
in interface AmazonWorkspaces
createTagsRequest
- 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
- ResourceLimitExceededException
- Your resource limits have been exceeded.InvalidParameterValuesException
- One or more parameter values are not valid.public DeleteTagsResult deleteTags(DeleteTagsRequest request)
Deletes the specified tags from a WorkSpace.
deleteTags
in interface AmazonWorkspaces
deleteTagsRequest
- ResourceNotFoundException
- The resource could not be found.InvalidParameterValuesException
- One or more parameter values are not valid.public DescribeTagsResult describeTags(DescribeTagsRequest request)
Describes the tags for the specified WorkSpace.
describeTags
in interface AmazonWorkspaces
describeTagsRequest
- ResourceNotFoundException
- The resource could not be found.public DescribeWorkspaceBundlesResult describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request)
Describes the available WorkSpace bundles.
You can filter the results using either bundle ID or owner, but not both.
describeWorkspaceBundles
in interface AmazonWorkspaces
describeWorkspaceBundlesRequest
- 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)
Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.
describeWorkspaceDirectories
in interface AmazonWorkspaces
describeWorkspaceDirectoriesRequest
- 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)
Describes the specified WorkSpaces.
You can filter the results using bundle ID, directory ID, or owner, but you can specify only one filter at a time.
describeWorkspaces
in interface AmazonWorkspaces
describeWorkspacesRequest
- 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 the specified WorkSpaces.
describeWorkspacesConnectionStatus
in interface AmazonWorkspaces
describeWorkspacesConnectionStatusRequest
- InvalidParameterValuesException
- One or more parameter values are not valid.public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request)
Modifies the specified WorkSpace properties.
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.
You cannot reboot a WorkSpace unless its state is AVAILABLE
, IMPAIRED
, or
INOPERABLE
.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
rebootWorkspaces
in interface AmazonWorkspaces
rebootWorkspacesRequest
- public RebuildWorkspacesResult rebuildWorkspaces(RebuildWorkspacesRequest request)
Rebuilds the specified WorkSpaces.
You cannot rebuild a WorkSpace unless its state is AVAILABLE
or ERROR
.
Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace.
This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.
rebuildWorkspaces
in interface AmazonWorkspaces
rebuildWorkspacesRequest
- public StartWorkspacesResult startWorkspaces(StartWorkspacesRequest request)
Starts the specified WorkSpaces.
You cannot start a WorkSpace unless it has a running mode of AutoStop
and a state of
STOPPED
.
startWorkspaces
in interface AmazonWorkspaces
startWorkspacesRequest
- public StopWorkspacesResult stopWorkspaces(StopWorkspacesRequest request)
Stops the specified WorkSpaces.
You cannot stop a WorkSpace unless it has 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 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
- 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.