@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.
| 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()
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 |
|---|---|
AssociateIpGroupsResult |
associateIpGroups(AssociateIpGroupsRequest request)
Associates the specified IP access control group with the specified directory.
|
AuthorizeIpRulesResult |
authorizeIpRules(AuthorizeIpRulesRequest request)
Adds one or more rules to the specified IP access control group.
|
static AmazonWorkspacesClientBuilder |
builder() |
CreateIpGroupResult |
createIpGroup(CreateIpGroupRequest request)
Creates an IP access control group.
|
CreateTagsResult |
createTags(CreateTagsRequest request)
Creates the specified tags for the specified WorkSpace.
|
CreateWorkspacesResult |
createWorkspaces(CreateWorkspacesRequest request)
Creates one or more WorkSpaces.
|
DeleteIpGroupResult |
deleteIpGroup(DeleteIpGroupRequest request)
Deletes the specified IP access control group.
|
DeleteTagsResult |
deleteTags(DeleteTagsRequest request)
Deletes the specified tags from the specified WorkSpace.
|
DescribeIpGroupsResult |
describeIpGroups(DescribeIpGroupsRequest request)
Describes one or more of your IP access control groups.
|
DescribeTagsResult |
describeTags(DescribeTagsRequest request)
Describes the specified 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.
|
DisassociateIpGroupsResult |
disassociateIpGroups(DisassociateIpGroupsRequest request)
Disassociates the specified IP access control group from the specified directory.
|
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.
|
ModifyWorkspaceStateResult |
modifyWorkspaceState(ModifyWorkspaceStateRequest request)
Sets the state of the specified WorkSpace.
|
RebootWorkspacesResult |
rebootWorkspaces(RebootWorkspacesRequest request)
Reboots the specified WorkSpaces.
|
RebuildWorkspacesResult |
rebuildWorkspaces(RebuildWorkspacesRequest request)
Rebuilds the specified WorkSpace.
|
RevokeIpRulesResult |
revokeIpRules(RevokeIpRulesRequest request)
Removes one or more rules from the specified IP access control group.
|
StartWorkspacesResult |
startWorkspaces(StartWorkspacesRequest request)
Starts the specified WorkSpaces.
|
StopWorkspacesResult |
stopWorkspaces(StopWorkspacesRequest request)
Stops the specified WorkSpaces.
|
TerminateWorkspacesResult |
terminateWorkspaces(TerminateWorkspacesRequest request)
Terminates the specified WorkSpaces.
|
UpdateRulesOfIpGroupResult |
updateRulesOfIpGroup(UpdateRulesOfIpGroupRequest request)
Replaces the current rules of the specified IP access control group with the specified rules.
|
addRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, 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
@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 AssociateIpGroupsResult associateIpGroups(AssociateIpGroupsRequest request)
Associates the specified IP access control group with the specified directory.
associateIpGroups in interface AmazonWorkspacesassociateIpGroupsRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.ResourceLimitExceededException - Your resource limits have been exceeded.InvalidResourceStateException - The state of the resource is not valid for this operation.AccessDeniedException - The user is not authorized to access a resource.OperationNotSupportedException - This operation is not supported.public AuthorizeIpRulesResult authorizeIpRules(AuthorizeIpRulesRequest request)
Adds one or more rules to the specified IP access control group.
This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules.
authorizeIpRules in interface AmazonWorkspacesauthorizeIpRulesRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.ResourceLimitExceededException - Your resource limits have been exceeded.InvalidResourceStateException - The state of the resource is not valid for this operation.AccessDeniedException - The user is not authorized to access a resource.public CreateIpGroupResult createIpGroup(CreateIpGroupRequest request)
Creates an IP access control group.
An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules.
There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory.
createIpGroup in interface AmazonWorkspacescreateIpGroupRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceLimitExceededException - Your resource limits have been exceeded.ResourceAlreadyExistsException - The specified resource already exists.ResourceCreationFailedException - The resource could not be created.AccessDeniedException - The user is not authorized to access a resource.public CreateTagsResult createTags(CreateTagsRequest request)
Creates the specified tags for the specified WorkSpace.
createTags in interface AmazonWorkspacescreateTagsRequest - 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 AmazonWorkspacescreateWorkspacesRequest - ResourceLimitExceededException - Your resource limits have been exceeded.InvalidParameterValuesException - One or more parameter values are not valid.public DeleteIpGroupResult deleteIpGroup(DeleteIpGroupRequest request)
Deletes the specified IP access control group.
You cannot delete an IP access control group that is associated with a directory.
deleteIpGroup in interface AmazonWorkspacesdeleteIpGroupRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.ResourceAssociatedException - The resource is associated with a directory.AccessDeniedException - The user is not authorized to access a resource.public DeleteTagsResult deleteTags(DeleteTagsRequest request)
Deletes the specified tags from the specified WorkSpace.
deleteTags in interface AmazonWorkspacesdeleteTagsRequest - ResourceNotFoundException - The resource could not be found.InvalidParameterValuesException - One or more parameter values are not valid.public DescribeIpGroupsResult describeIpGroups(DescribeIpGroupsRequest request)
Describes one or more of your IP access control groups.
describeIpGroups in interface AmazonWorkspacesdescribeIpGroupsRequest - InvalidParameterValuesException - One or more parameter values are not valid.AccessDeniedException - The user is not authorized to access a resource.public DescribeTagsResult describeTags(DescribeTagsRequest request)
Describes the specified tags for the specified WorkSpace.
describeTags in interface AmazonWorkspacesdescribeTagsRequest - 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 AmazonWorkspacesdescribeWorkspaceBundlesRequest - InvalidParameterValuesException - One or more parameter values are not valid.public DescribeWorkspaceBundlesResult describeWorkspaceBundles()
AmazonWorkspacesdescribeWorkspaceBundles in interface AmazonWorkspacesAmazonWorkspaces.describeWorkspaceBundles(DescribeWorkspaceBundlesRequest)public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request)
Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.
describeWorkspaceDirectories in interface AmazonWorkspacesdescribeWorkspaceDirectoriesRequest - InvalidParameterValuesException - One or more parameter values are not valid.public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories()
AmazonWorkspacesdescribeWorkspaceDirectories in interface AmazonWorkspacesAmazonWorkspaces.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 AmazonWorkspacesdescribeWorkspacesRequest - 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 request)
Describes the connection status of the specified WorkSpaces.
describeWorkspacesConnectionStatus in interface AmazonWorkspacesdescribeWorkspacesConnectionStatusRequest - InvalidParameterValuesException - One or more parameter values are not valid.public DisassociateIpGroupsResult disassociateIpGroups(DisassociateIpGroupsRequest request)
Disassociates the specified IP access control group from the specified directory.
disassociateIpGroups in interface AmazonWorkspacesdisassociateIpGroupsRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The state of the resource is not valid for this operation.AccessDeniedException - The user is not authorized to access a resource.public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request)
Modifies the specified WorkSpace properties.
modifyWorkspaceProperties in interface AmazonWorkspacesmodifyWorkspacePropertiesRequest - InvalidParameterValuesException - One or more parameter values are not valid.InvalidResourceStateException - The state of the resource 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 ModifyWorkspaceStateResult modifyWorkspaceState(ModifyWorkspaceStateRequest request)
Sets the state of the specified WorkSpace.
To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE.
WorkSpaces in this state do not respond to requests to reboot, stop, start, or rebuild. An AutoStop WorkSpace in
this state is not stopped. Users can log into a WorkSpace in the ADMIN_MAINTENANCE state.
modifyWorkspaceState in interface AmazonWorkspacesmodifyWorkspaceStateRequest - InvalidParameterValuesException - One or more parameter values are not valid.InvalidResourceStateException - The state of the resource is not valid for this operation.ResourceNotFoundException - The resource could not be found.public RebootWorkspacesResult rebootWorkspaces(RebootWorkspacesRequest request)
Reboots the specified WorkSpaces.
You cannot reboot a WorkSpace unless its state is AVAILABLE or UNHEALTHY.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
rebootWorkspaces in interface AmazonWorkspacesrebootWorkspacesRequest - public RebuildWorkspacesResult rebuildWorkspaces(RebuildWorkspacesRequest request)
Rebuilds the specified WorkSpace.
You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, or
UNHEALTHY.
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 AmazonWorkspacesrebuildWorkspacesRequest - public RevokeIpRulesResult revokeIpRules(RevokeIpRulesRequest request)
Removes one or more rules from the specified IP access control group.
revokeIpRules in interface AmazonWorkspacesrevokeIpRulesRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The state of the resource is not valid for this operation.AccessDeniedException - The user is not authorized to access a resource.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 AmazonWorkspacesstartWorkspacesRequest - 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 AmazonWorkspacesstopWorkspacesRequest - 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 AmazonWorkspacesterminateWorkspacesRequest - public UpdateRulesOfIpGroupResult updateRulesOfIpGroup(UpdateRulesOfIpGroupRequest request)
Replaces the current rules of the specified IP access control group with the specified rules.
updateRulesOfIpGroup in interface AmazonWorkspacesupdateRulesOfIpGroupRequest - InvalidParameterValuesException - One or more parameter values are not valid.ResourceNotFoundException - The resource could not be found.ResourceLimitExceededException - Your resource limits have been exceeded.InvalidResourceStateException - The state of the resource is not valid for this operation.AccessDeniedException - The user is not authorized to access a resource.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 © 2018. All rights reserved.