universal-s3
Version:
Universal S3 SDK for JavaScript, available for Node.js backends
950 lines (949 loc) • 64.1 kB
TypeScript
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class WorkSpaces extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: WorkSpaces.Types.ClientConfiguration)
config: Config & WorkSpaces.Types.ClientConfiguration;
/**
* Associates the specified IP access control group with the specified directory.
*/
associateIpGroups(params: WorkSpaces.Types.AssociateIpGroupsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.AssociateIpGroupsResult) => void): Request<WorkSpaces.Types.AssociateIpGroupsResult, AWSError>;
/**
* Associates the specified IP access control group with the specified directory.
*/
associateIpGroups(callback?: (err: AWSError, data: WorkSpaces.Types.AssociateIpGroupsResult) => void): Request<WorkSpaces.Types.AssociateIpGroupsResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.AuthorizeIpRulesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.AuthorizeIpRulesResult) => void): Request<WorkSpaces.Types.AuthorizeIpRulesResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.AuthorizeIpRulesResult) => void): Request<WorkSpaces.Types.AuthorizeIpRulesResult, AWSError>;
/**
* Copies the specified image from the specified Region to the current Region.
*/
copyWorkspaceImage(params: WorkSpaces.Types.CopyWorkspaceImageRequest, callback?: (err: AWSError, data: WorkSpaces.Types.CopyWorkspaceImageResult) => void): Request<WorkSpaces.Types.CopyWorkspaceImageResult, AWSError>;
/**
* Copies the specified image from the specified Region to the current Region.
*/
copyWorkspaceImage(callback?: (err: AWSError, data: WorkSpaces.Types.CopyWorkspaceImageResult) => void): Request<WorkSpaces.Types.CopyWorkspaceImageResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.CreateIpGroupRequest, callback?: (err: AWSError, data: WorkSpaces.Types.CreateIpGroupResult) => void): Request<WorkSpaces.Types.CreateIpGroupResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.CreateIpGroupResult) => void): Request<WorkSpaces.Types.CreateIpGroupResult, AWSError>;
/**
* Creates the specified tags for the specified WorkSpaces resource.
*/
createTags(params: WorkSpaces.Types.CreateTagsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.CreateTagsResult) => void): Request<WorkSpaces.Types.CreateTagsResult, AWSError>;
/**
* Creates the specified tags for the specified WorkSpaces resource.
*/
createTags(callback?: (err: AWSError, data: WorkSpaces.Types.CreateTagsResult) => void): Request<WorkSpaces.Types.CreateTagsResult, AWSError>;
/**
* Creates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created.
*/
createWorkspaces(params: WorkSpaces.Types.CreateWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.CreateWorkspacesResult) => void): Request<WorkSpaces.Types.CreateWorkspacesResult, AWSError>;
/**
* Creates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created.
*/
createWorkspaces(callback?: (err: AWSError, data: WorkSpaces.Types.CreateWorkspacesResult) => void): Request<WorkSpaces.Types.CreateWorkspacesResult, AWSError>;
/**
* Deletes the specified IP access control group. You cannot delete an IP access control group that is associated with a directory.
*/
deleteIpGroup(params: WorkSpaces.Types.DeleteIpGroupRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DeleteIpGroupResult) => void): Request<WorkSpaces.Types.DeleteIpGroupResult, AWSError>;
/**
* Deletes the specified IP access control group. You cannot delete an IP access control group that is associated with a directory.
*/
deleteIpGroup(callback?: (err: AWSError, data: WorkSpaces.Types.DeleteIpGroupResult) => void): Request<WorkSpaces.Types.DeleteIpGroupResult, AWSError>;
/**
* Deletes the specified tags from the specified WorkSpaces resource.
*/
deleteTags(params: WorkSpaces.Types.DeleteTagsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DeleteTagsResult) => void): Request<WorkSpaces.Types.DeleteTagsResult, AWSError>;
/**
* Deletes the specified tags from the specified WorkSpaces resource.
*/
deleteTags(callback?: (err: AWSError, data: WorkSpaces.Types.DeleteTagsResult) => void): Request<WorkSpaces.Types.DeleteTagsResult, AWSError>;
/**
* Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and un-share the image if it is shared with other accounts.
*/
deleteWorkspaceImage(params: WorkSpaces.Types.DeleteWorkspaceImageRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DeleteWorkspaceImageResult) => void): Request<WorkSpaces.Types.DeleteWorkspaceImageResult, AWSError>;
/**
* Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and un-share the image if it is shared with other accounts.
*/
deleteWorkspaceImage(callback?: (err: AWSError, data: WorkSpaces.Types.DeleteWorkspaceImageResult) => void): Request<WorkSpaces.Types.DeleteWorkspaceImageResult, AWSError>;
/**
* Retrieves a list that describes the configuration of bring your own license (BYOL) for the specified account.
*/
describeAccount(params: WorkSpaces.Types.DescribeAccountRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeAccountResult) => void): Request<WorkSpaces.Types.DescribeAccountResult, AWSError>;
/**
* Retrieves a list that describes the configuration of bring your own license (BYOL) for the specified account.
*/
describeAccount(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeAccountResult) => void): Request<WorkSpaces.Types.DescribeAccountResult, AWSError>;
/**
* Retrieves a list that describes modifications to the configuration of bring your own license (BYOL) for the specified account.
*/
describeAccountModifications(params: WorkSpaces.Types.DescribeAccountModificationsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeAccountModificationsResult) => void): Request<WorkSpaces.Types.DescribeAccountModificationsResult, AWSError>;
/**
* Retrieves a list that describes modifications to the configuration of bring your own license (BYOL) for the specified account.
*/
describeAccountModifications(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeAccountModificationsResult) => void): Request<WorkSpaces.Types.DescribeAccountModificationsResult, AWSError>;
/**
* Retrieves a list that describes one or more specified Amazon WorkSpaces clients.
*/
describeClientProperties(params: WorkSpaces.Types.DescribeClientPropertiesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeClientPropertiesResult) => void): Request<WorkSpaces.Types.DescribeClientPropertiesResult, AWSError>;
/**
* Retrieves a list that describes one or more specified Amazon WorkSpaces clients.
*/
describeClientProperties(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeClientPropertiesResult) => void): Request<WorkSpaces.Types.DescribeClientPropertiesResult, AWSError>;
/**
* Describes one or more of your IP access control groups.
*/
describeIpGroups(params: WorkSpaces.Types.DescribeIpGroupsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeIpGroupsResult) => void): Request<WorkSpaces.Types.DescribeIpGroupsResult, AWSError>;
/**
* Describes one or more of your IP access control groups.
*/
describeIpGroups(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeIpGroupsResult) => void): Request<WorkSpaces.Types.DescribeIpGroupsResult, AWSError>;
/**
* Describes the specified tags for the specified WorkSpaces resource.
*/
describeTags(params: WorkSpaces.Types.DescribeTagsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeTagsResult) => void): Request<WorkSpaces.Types.DescribeTagsResult, AWSError>;
/**
* Describes the specified tags for the specified WorkSpaces resource.
*/
describeTags(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeTagsResult) => void): Request<WorkSpaces.Types.DescribeTagsResult, AWSError>;
/**
* Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both.
*/
describeWorkspaceBundles(params: WorkSpaces.Types.DescribeWorkspaceBundlesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceBundlesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceBundlesResult, AWSError>;
/**
* Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both.
*/
describeWorkspaceBundles(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceBundlesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceBundlesResult, AWSError>;
/**
* Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.
*/
describeWorkspaceDirectories(params: WorkSpaces.Types.DescribeWorkspaceDirectoriesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceDirectoriesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceDirectoriesResult, AWSError>;
/**
* Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.
*/
describeWorkspaceDirectories(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceDirectoriesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceDirectoriesResult, AWSError>;
/**
* Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described.
*/
describeWorkspaceImages(params: WorkSpaces.Types.DescribeWorkspaceImagesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceImagesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceImagesResult, AWSError>;
/**
* Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described.
*/
describeWorkspaceImages(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceImagesResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceImagesResult, AWSError>;
/**
* Describes the snapshots for the specified WorkSpace.
*/
describeWorkspaceSnapshots(params: WorkSpaces.Types.DescribeWorkspaceSnapshotsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceSnapshotsResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceSnapshotsResult, AWSError>;
/**
* Describes the snapshots for the specified WorkSpace.
*/
describeWorkspaceSnapshots(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspaceSnapshotsResult) => void): Request<WorkSpaces.Types.DescribeWorkspaceSnapshotsResult, AWSError>;
/**
* Describes the specified WorkSpaces. You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time.
*/
describeWorkspaces(params: WorkSpaces.Types.DescribeWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspacesResult) => void): Request<WorkSpaces.Types.DescribeWorkspacesResult, AWSError>;
/**
* Describes the specified WorkSpaces. You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time.
*/
describeWorkspaces(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspacesResult) => void): Request<WorkSpaces.Types.DescribeWorkspacesResult, AWSError>;
/**
* Describes the connection status of the specified WorkSpaces.
*/
describeWorkspacesConnectionStatus(params: WorkSpaces.Types.DescribeWorkspacesConnectionStatusRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspacesConnectionStatusResult) => void): Request<WorkSpaces.Types.DescribeWorkspacesConnectionStatusResult, AWSError>;
/**
* Describes the connection status of the specified WorkSpaces.
*/
describeWorkspacesConnectionStatus(callback?: (err: AWSError, data: WorkSpaces.Types.DescribeWorkspacesConnectionStatusResult) => void): Request<WorkSpaces.Types.DescribeWorkspacesConnectionStatusResult, AWSError>;
/**
* Disassociates the specified IP access control group from the specified directory.
*/
disassociateIpGroups(params: WorkSpaces.Types.DisassociateIpGroupsRequest, callback?: (err: AWSError, data: WorkSpaces.Types.DisassociateIpGroupsResult) => void): Request<WorkSpaces.Types.DisassociateIpGroupsResult, AWSError>;
/**
* Disassociates the specified IP access control group from the specified directory.
*/
disassociateIpGroups(callback?: (err: AWSError, data: WorkSpaces.Types.DisassociateIpGroupsResult) => void): Request<WorkSpaces.Types.DisassociateIpGroupsResult, AWSError>;
/**
* Imports the specified Windows 7 or Windows 10 bring your own license (BYOL) image into Amazon WorkSpaces. The image must be an already licensed EC2 image that is in your AWS account, and you must own the image.
*/
importWorkspaceImage(params: WorkSpaces.Types.ImportWorkspaceImageRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ImportWorkspaceImageResult) => void): Request<WorkSpaces.Types.ImportWorkspaceImageResult, AWSError>;
/**
* Imports the specified Windows 7 or Windows 10 bring your own license (BYOL) image into Amazon WorkSpaces. The image must be an already licensed EC2 image that is in your AWS account, and you must own the image.
*/
importWorkspaceImage(callback?: (err: AWSError, data: WorkSpaces.Types.ImportWorkspaceImageResult) => void): Request<WorkSpaces.Types.ImportWorkspaceImageResult, AWSError>;
/**
* Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable bring your own license (BYOL). The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.
*/
listAvailableManagementCidrRanges(params: WorkSpaces.Types.ListAvailableManagementCidrRangesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ListAvailableManagementCidrRangesResult) => void): Request<WorkSpaces.Types.ListAvailableManagementCidrRangesResult, AWSError>;
/**
* Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable bring your own license (BYOL). The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.
*/
listAvailableManagementCidrRanges(callback?: (err: AWSError, data: WorkSpaces.Types.ListAvailableManagementCidrRangesResult) => void): Request<WorkSpaces.Types.ListAvailableManagementCidrRangesResult, AWSError>;
/**
* Modifies the configuration of bring your own license (BYOL) for the specified account.
*/
modifyAccount(params: WorkSpaces.Types.ModifyAccountRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ModifyAccountResult) => void): Request<WorkSpaces.Types.ModifyAccountResult, AWSError>;
/**
* Modifies the configuration of bring your own license (BYOL) for the specified account.
*/
modifyAccount(callback?: (err: AWSError, data: WorkSpaces.Types.ModifyAccountResult) => void): Request<WorkSpaces.Types.ModifyAccountResult, AWSError>;
/**
* Modifies the properties of the specified Amazon WorkSpaces clients.
*/
modifyClientProperties(params: WorkSpaces.Types.ModifyClientPropertiesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ModifyClientPropertiesResult) => void): Request<WorkSpaces.Types.ModifyClientPropertiesResult, AWSError>;
/**
* Modifies the properties of the specified Amazon WorkSpaces clients.
*/
modifyClientProperties(callback?: (err: AWSError, data: WorkSpaces.Types.ModifyClientPropertiesResult) => void): Request<WorkSpaces.Types.ModifyClientPropertiesResult, AWSError>;
/**
* Modifies the specified WorkSpace properties.
*/
modifyWorkspaceProperties(params: WorkSpaces.Types.ModifyWorkspacePropertiesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ModifyWorkspacePropertiesResult) => void): Request<WorkSpaces.Types.ModifyWorkspacePropertiesResult, AWSError>;
/**
* Modifies the specified WorkSpace properties.
*/
modifyWorkspaceProperties(callback?: (err: AWSError, data: WorkSpaces.Types.ModifyWorkspacePropertiesResult) => void): Request<WorkSpaces.Types.ModifyWorkspacePropertiesResult, AWSError>;
/**
* 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, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE state.
*/
modifyWorkspaceState(params: WorkSpaces.Types.ModifyWorkspaceStateRequest, callback?: (err: AWSError, data: WorkSpaces.Types.ModifyWorkspaceStateResult) => void): Request<WorkSpaces.Types.ModifyWorkspaceStateResult, AWSError>;
/**
* 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, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE state.
*/
modifyWorkspaceState(callback?: (err: AWSError, data: WorkSpaces.Types.ModifyWorkspaceStateResult) => void): Request<WorkSpaces.Types.ModifyWorkspaceStateResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.RebootWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.RebootWorkspacesResult) => void): Request<WorkSpaces.Types.RebootWorkspacesResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.RebootWorkspacesResult) => void): Request<WorkSpaces.Types.RebootWorkspacesResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.RebuildWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.RebuildWorkspacesResult) => void): Request<WorkSpaces.Types.RebuildWorkspacesResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.RebuildWorkspacesResult) => void): Request<WorkSpaces.Types.RebuildWorkspacesResult, AWSError>;
/**
* Restores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, or UNHEALTHY. Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. This operation is asynchronous and returns before the WorkSpace is completely restored.
*/
restoreWorkspace(params: WorkSpaces.Types.RestoreWorkspaceRequest, callback?: (err: AWSError, data: WorkSpaces.Types.RestoreWorkspaceResult) => void): Request<WorkSpaces.Types.RestoreWorkspaceResult, AWSError>;
/**
* Restores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, or UNHEALTHY. Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. This operation is asynchronous and returns before the WorkSpace is completely restored.
*/
restoreWorkspace(callback?: (err: AWSError, data: WorkSpaces.Types.RestoreWorkspaceResult) => void): Request<WorkSpaces.Types.RestoreWorkspaceResult, AWSError>;
/**
* Removes one or more rules from the specified IP access control group.
*/
revokeIpRules(params: WorkSpaces.Types.RevokeIpRulesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.RevokeIpRulesResult) => void): Request<WorkSpaces.Types.RevokeIpRulesResult, AWSError>;
/**
* Removes one or more rules from the specified IP access control group.
*/
revokeIpRules(callback?: (err: AWSError, data: WorkSpaces.Types.RevokeIpRulesResult) => void): Request<WorkSpaces.Types.RevokeIpRulesResult, AWSError>;
/**
* Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of AutoStop and a state of STOPPED.
*/
startWorkspaces(params: WorkSpaces.Types.StartWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.StartWorkspacesResult) => void): Request<WorkSpaces.Types.StartWorkspacesResult, AWSError>;
/**
* Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of AutoStop and a state of STOPPED.
*/
startWorkspaces(callback?: (err: AWSError, data: WorkSpaces.Types.StartWorkspacesResult) => void): Request<WorkSpaces.Types.StartWorkspacesResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.StopWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.StopWorkspacesResult) => void): Request<WorkSpaces.Types.StopWorkspacesResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.StopWorkspacesResult) => void): Request<WorkSpaces.Types.StopWorkspacesResult, AWSError>;
/**
* 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(params: WorkSpaces.Types.TerminateWorkspacesRequest, callback?: (err: AWSError, data: WorkSpaces.Types.TerminateWorkspacesResult) => void): Request<WorkSpaces.Types.TerminateWorkspacesResult, AWSError>;
/**
* 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(callback?: (err: AWSError, data: WorkSpaces.Types.TerminateWorkspacesResult) => void): Request<WorkSpaces.Types.TerminateWorkspacesResult, AWSError>;
/**
* Replaces the current rules of the specified IP access control group with the specified rules.
*/
updateRulesOfIpGroup(params: WorkSpaces.Types.UpdateRulesOfIpGroupRequest, callback?: (err: AWSError, data: WorkSpaces.Types.UpdateRulesOfIpGroupResult) => void): Request<WorkSpaces.Types.UpdateRulesOfIpGroupResult, AWSError>;
/**
* Replaces the current rules of the specified IP access control group with the specified rules.
*/
updateRulesOfIpGroup(callback?: (err: AWSError, data: WorkSpaces.Types.UpdateRulesOfIpGroupResult) => void): Request<WorkSpaces.Types.UpdateRulesOfIpGroupResult, AWSError>;
}
declare namespace WorkSpaces {
export type ARN = string;
export interface AccountModification {
/**
* The state of the modification to the configuration of BYOL.
*/
ModificationState?: DedicatedTenancyModificationStateEnum;
/**
* The status of BYOL (whether BYOL is being enabled or disabled).
*/
DedicatedTenancySupport?: DedicatedTenancySupportResultEnum;
/**
* The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account.
*/
DedicatedTenancyManagementCidrRange?: DedicatedTenancyManagementCidrRange;
/**
* The timestamp when the modification of the BYOL configuration was started.
*/
StartTime?: Timestamp;
/**
* The error code that is returned if the configuration of BYOL cannot be modified.
*/
ErrorCode?: WorkspaceErrorCode;
/**
* The text of the error message that is returned if the configuration of BYOL cannot be modified.
*/
ErrorMessage?: Description;
}
export type AccountModificationList = AccountModification[];
export type Alias = string;
export interface AssociateIpGroupsRequest {
/**
* The identifier of the directory.
*/
DirectoryId: DirectoryId;
/**
* The identifiers of one or more IP access control groups.
*/
GroupIds: IpGroupIdList;
}
export interface AssociateIpGroupsResult {
}
export interface AuthorizeIpRulesRequest {
/**
* The identifier of the group.
*/
GroupId: IpGroupId;
/**
* The rules to add to the group.
*/
UserRules: IpRuleList;
}
export interface AuthorizeIpRulesResult {
}
export type BooleanObject = boolean;
export type BundleId = string;
export type BundleIdList = BundleId[];
export type BundleList = WorkspaceBundle[];
export type BundleOwner = string;
export interface ClientProperties {
/**
* Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re-entering their credentials.
*/
ReconnectEnabled?: ReconnectEnum;
}
export type ClientPropertiesList = ClientPropertiesResult[];
export interface ClientPropertiesResult {
/**
* The resource identifier, in the form of a directory ID.
*/
ResourceId?: NonEmptyString;
/**
* Information about the Amazon WorkSpaces client.
*/
ClientProperties?: ClientProperties;
}
export type Compute = "VALUE"|"STANDARD"|"PERFORMANCE"|"POWER"|"GRAPHICS"|"POWERPRO"|"GRAPHICSPRO"|string;
export interface ComputeType {
/**
* The compute type.
*/
Name?: Compute;
}
export type ComputerName = string;
export type ConnectionState = "CONNECTED"|"DISCONNECTED"|"UNKNOWN"|string;
export interface CopyWorkspaceImageRequest {
/**
* The name of the image.
*/
Name: WorkspaceImageName;
/**
* A description of the image.
*/
Description?: WorkspaceImageDescription;
/**
* The identifier of the source image.
*/
SourceImageId: WorkspaceImageId;
/**
* The identifier of the source Region.
*/
SourceRegion: Region;
/**
* The tags for the image.
*/
Tags?: TagList;
}
export interface CopyWorkspaceImageResult {
/**
* The identifier of the image.
*/
ImageId?: WorkspaceImageId;
}
export interface CreateIpGroupRequest {
/**
* The name of the group.
*/
GroupName: IpGroupName;
/**
* The description of the group.
*/
GroupDesc?: IpGroupDesc;
/**
* The rules to add to the group.
*/
UserRules?: IpRuleList;
/**
* The tags. Each WorkSpaces resource can have a maximum of 50 tags.
*/
Tags?: TagList;
}
export interface CreateIpGroupResult {
/**
* The identifier of the group.
*/
GroupId?: IpGroupId;
}
export interface CreateTagsRequest {
/**
* The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, and IP access control groups.
*/
ResourceId: NonEmptyString;
/**
* The tags. Each WorkSpaces resource can have a maximum of 50 tags.
*/
Tags: TagList;
}
export interface CreateTagsResult {
}
export interface CreateWorkspacesRequest {
/**
* The WorkSpaces to create. You can specify up to 25 WorkSpaces.
*/
Workspaces: WorkspaceRequestList;
}
export interface CreateWorkspacesResult {
/**
* Information about the WorkSpaces that could not be created.
*/
FailedRequests?: FailedCreateWorkspaceRequests;
/**
* Information about the WorkSpaces that were created. Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.
*/
PendingRequests?: WorkspaceList;
}
export type DedicatedTenancyCidrRangeList = DedicatedTenancyManagementCidrRange[];
export type DedicatedTenancyManagementCidrRange = string;
export type DedicatedTenancyModificationStateEnum = "PENDING"|"COMPLETED"|"FAILED"|string;
export type DedicatedTenancySupportEnum = "ENABLED"|string;
export type DedicatedTenancySupportResultEnum = "ENABLED"|"DISABLED"|string;
export type DefaultOu = string;
export interface DefaultWorkspaceCreationProperties {
/**
* Specifies whether the directory is enabled for Amazon WorkDocs.
*/
EnableWorkDocs?: BooleanObject;
/**
* Specifies whether to automatically assign a public IP address to WorkSpaces in this directory by default. If enabled, the public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces.
*/
EnableInternetAccess?: BooleanObject;
/**
* The organizational unit (OU) in the directory for the WorkSpace machine accounts.
*/
DefaultOu?: DefaultOu;
/**
* The identifier of any security groups to apply to WorkSpaces when they are created.
*/
CustomSecurityGroupId?: SecurityGroupId;
/**
* Specifies whether the WorkSpace user is an administrator on the WorkSpace.
*/
UserEnabledAsLocalAdministrator?: BooleanObject;
}
export interface DeleteIpGroupRequest {
/**
* The identifier of the IP access control group.
*/
GroupId: IpGroupId;
}
export interface DeleteIpGroupResult {
}
export interface DeleteTagsRequest {
/**
* The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, and IP access control groups.
*/
ResourceId: NonEmptyString;
/**
* The tag keys.
*/
TagKeys: TagKeyList;
}
export interface DeleteTagsResult {
}
export interface DeleteWorkspaceImageRequest {
/**
* The identifier of the image.
*/
ImageId: WorkspaceImageId;
}
export interface DeleteWorkspaceImageResult {
}
export interface DescribeAccountModificationsRequest {
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
}
export interface DescribeAccountModificationsResult {
/**
* The list of modifications to the configuration of BYOL.
*/
AccountModifications?: AccountModificationList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export interface DescribeAccountRequest {
}
export interface DescribeAccountResult {
/**
* The status of BYOL (whether BYOL is enabled or disabled).
*/
DedicatedTenancySupport?: DedicatedTenancySupportResultEnum;
/**
* The IP address range, specified as an IPv4 CIDR block, used for the management network interface. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.
*/
DedicatedTenancyManagementCidrRange?: DedicatedTenancyManagementCidrRange;
}
export interface DescribeClientPropertiesRequest {
/**
* The resource identifier, in the form of directory IDs.
*/
ResourceIds: ResourceIdList;
}
export interface DescribeClientPropertiesResult {
/**
* Information about the specified Amazon WorkSpaces clients.
*/
ClientPropertiesList?: ClientPropertiesList;
}
export interface DescribeIpGroupsRequest {
/**
* The identifiers of one or more IP access control groups.
*/
GroupIds?: IpGroupIdList;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
/**
* The maximum number of items to return.
*/
MaxResults?: Limit;
}
export interface DescribeIpGroupsResult {
/**
* Information about the IP access control groups.
*/
Result?: WorkspacesIpGroupsList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export interface DescribeTagsRequest {
/**
* The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, and IP access control groups.
*/
ResourceId: NonEmptyString;
}
export interface DescribeTagsResult {
/**
* The tags.
*/
TagList?: TagList;
}
export interface DescribeWorkspaceBundlesRequest {
/**
* The identifiers of the bundles. You cannot combine this parameter with any other filter.
*/
BundleIds?: BundleIdList;
/**
* The owner of the bundles. You cannot combine this parameter with any other filter. Specify AMAZON to describe the bundles provided by AWS or null to describe the bundles that belong to your account.
*/
Owner?: BundleOwner;
/**
* The token for the next set of results. (You received this token from a previous call.)
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspaceBundlesResult {
/**
* Information about the bundles.
*/
Bundles?: BundleList;
/**
* The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspaceDirectoriesRequest {
/**
* The identifiers of the directories. If the value is null, all directories are retrieved.
*/
DirectoryIds?: DirectoryIdList;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspaceDirectoriesResult {
/**
* Information about the directories.
*/
Directories?: DirectoryList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspaceImagesRequest {
/**
* The identifier of the image.
*/
ImageIds?: WorkspaceImageIdList;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
/**
* The maximum number of items to return.
*/
MaxResults?: Limit;
}
export interface DescribeWorkspaceImagesResult {
/**
* Information about the images.
*/
Images?: WorkspaceImageList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspaceSnapshotsRequest {
/**
* The identifier of the WorkSpace.
*/
WorkspaceId: WorkspaceId;
}
export interface DescribeWorkspaceSnapshotsResult {
/**
* Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.
*/
RebuildSnapshots?: SnapshotList;
/**
* Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume.
*/
RestoreSnapshots?: SnapshotList;
}
export interface DescribeWorkspacesConnectionStatusRequest {
/**
* The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.
*/
WorkspaceIds?: WorkspaceIdList;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspacesConnectionStatusResult {
/**
* Information about the connection status of the WorkSpace.
*/
WorkspacesConnectionStatus?: WorkspaceConnectionStatusList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspacesRequest {
/**
* The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.
*/
WorkspaceIds?: WorkspaceIdList;
/**
* The identifier of the directory. In addition, you can optionally specify a specific directory user (see UserName). You cannot combine this parameter with any other filter.
*/
DirectoryId?: DirectoryId;
/**
* The name of the directory user. You must specify this parameter with DirectoryId.
*/
UserName?: UserName;
/**
* The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.
*/
BundleId?: BundleId;
/**
* The maximum number of items to return.
*/
Limit?: Limit;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
}
export interface DescribeWorkspacesResult {
/**
* Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.
*/
Workspaces?: WorkspaceList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export type Description = string;
export type DirectoryId = string;
export type DirectoryIdList = DirectoryId[];
export type DirectoryList = WorkspaceDirectory[];
export type DirectoryName = string;
export interface DisassociateIpGroupsRequest {
/**
* The identifier of the directory.
*/
DirectoryId: DirectoryId;
/**
* The identifiers of one or more IP access control groups.
*/
GroupIds: IpGroupIdList;
}
export interface DisassociateIpGroupsResult {
}
export type DnsIpAddresses = IpAddress[];
export type Ec2ImageId = string;
export type ErrorType = string;
export interface FailedCreateWorkspaceRequest {
/**
* Information about the WorkSpace.
*/
WorkspaceRequest?: WorkspaceRequest;
/**
* The error code that is returned if the WorkSpace cannot be created.
*/
ErrorCode?: ErrorType;
/**
* The text of the error message that is returned if the WorkSpace cannot be created.
*/
ErrorMessage?: Description;
}
export type FailedCreateWorkspaceRequests = FailedCreateWorkspaceRequest[];
export type FailedRebootWorkspaceRequests = FailedWorkspaceChangeRequest[];
export type FailedRebuildWorkspaceRequests = FailedWorkspaceChangeRequest[];
export type FailedStartWorkspaceRequests = FailedWorkspaceChangeRequest[];
export type FailedStopWorkspaceRequests = FailedWorkspaceChangeRequest[];
export type FailedTerminateWorkspaceRequests = FailedWorkspaceChangeRequest[];
export interface FailedWorkspaceChangeRequest {
/**
* The identifier of the WorkSpace.
*/
WorkspaceId?: WorkspaceId;
/**
* The error code that is returned if the WorkSpace cannot be rebooted.
*/
ErrorCode?: ErrorType;
/**
* The text of the error message that is returned if the WorkSpace cannot be rebooted.
*/
ErrorMessage?: Description;
}
export interface ImportWorkspaceImageRequest {
/**
* The identifier of the EC2 image.
*/
Ec2ImageId: Ec2ImageId;
/**
* The ingestion process to be used when importing the image.
*/
IngestionProcess: WorkspaceImageIngestionProcess;
/**
* The name of the WorkSpace image.
*/
ImageName: WorkspaceImageName;
/**
* The description of the WorkSpace image.
*/
ImageDescription: WorkspaceImageDescription;
/**
* The tags. Each WorkSpaces resource can have a maximum of 50 tags.
*/
Tags?: TagList;
}
export interface ImportWorkspaceImageResult {
/**
* The identifier of the WorkSpace image.
*/
ImageId?: WorkspaceImageId;
}
export type IpAddress = string;
export type IpGroupDesc = string;
export type IpGroupId = string;
export type IpGroupIdList = IpGroupId[];
export type IpGroupName = string;
export type IpRevokedRuleList = IpRule[];
export type IpRule = string;
export type IpRuleDesc = string;
export interface IpRuleItem {
/**
* The IP address range, in CIDR notation.
*/
ipRule?: IpRule;
/**
* The description.
*/
ruleDesc?: IpRuleDesc;
}
export type IpRuleList = IpRuleItem[];
export type Limit = number;
export interface ListAvailableManagementCidrRangesRequest {
/**
* The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
*/
ManagementCidrRangeConstraint: ManagementCidrRangeConstraint;
/**
* The maximum number of items to return.
*/
MaxResults?: ManagementCidrRangeMaxResults;
/**
* If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
*/
NextToken?: PaginationToken;
}
export interface ListAvailableManagementCidrRangesResult {
/**
* The list of available IP address ranges, specified as IPv4 CIDR blocks.
*/
ManagementCidrRanges?: DedicatedTenancyCidrRangeList;
/**
* The token to use to retrieve the next set of results, or null if no more results are available.
*/
NextToken?: PaginationToken;
}
export type ManagementCidrRangeConstraint = string;
export type ManagementCidrRangeMaxResults = number;
export type ModificationResourceEnum = "ROOT_VOLUME"|"USER_VOLUME"|"COMPUTE_TYPE"|string;
export interface ModificationState {
/**
* The resource.
*/
Resource?: ModificationResourceEnum;
/**
* The modification state.
*/
State?: ModificationStateEnum;
}
export type ModificationStateEnum = "UPDATE_INITIATED"|"UPDATE_IN_PROGRESS"|string;
export type ModificationStateList = ModificationState[];
export interface ModifyAccountRequest {
/**
* The status of BYOL.
*/
DedicatedTenancySupport?: DedicatedTenancySupportEnum;
/**
* The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the ListAvailableManagementCidrRanges operation.
*/
DedicatedTenancyManagementCidrRange?: DedicatedTenancyManagementCidrRange;
}
export interface ModifyAccountResult {
}
export interface ModifyClientPropertiesRequest {
/**
* The resource identifiers, in the form of directory IDs.
*/
ResourceId: NonEmptyString;
/**
* Information about the Amazon WorkSpaces client.
*/
ClientProperties: ClientProperties;
}
export interface ModifyClientPropertiesResult {
}
export interface ModifyWorkspacePropertiesRequest {
/**
* The identifier of the WorkSpace.
*/
WorkspaceId: WorkspaceId;
/**
* The properties of the WorkSpace.
*/
WorkspaceProperties: WorkspaceProperties;
}
export interface ModifyWorkspacePropertiesResult {
}
export interface ModifyWorkspaceStateRequest {
/**
* The identifier of the WorkSpace.
*/
WorkspaceId: WorkspaceId;
/**
* The WorkSpace state.
*/
WorkspaceState: TargetWorkspaceState;
}
export interface ModifyWorkspaceStateResult {
}
export type NonEmptyString = string;
export interface OperatingSystem {
/**
* The operating system.
*/
Type?: OperatingSystemType;
}
export type OperatingSystemType = "WINDOWS"|"LINUX"|string;
export type PaginationToken = string;
export interface RebootRequest {
/**
* The identifier of the WorkSpace.
*/
WorkspaceId: WorkspaceId;
}
export type RebootWorkspaceRequests = RebootRequest[];
export interface RebootWorkspacesRequest {
/**
* The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
*/
RebootWorkspaceRequests: RebootWorkspaceRequests;
}
export interface RebootWorkspacesResult {
/**
* Information about the WorkSpaces that could not be rebooted.
*/
FailedRequests?: FailedRebootWorkspaceRequests;
}
export interface RebuildRequest {