aws workspaces91 CLI commands available for Amazon WorkSpaces.
| Command | API Operation | Sample |
|---|---|---|
accept-account-link-invitationAccepts the account link invitation. There's currently no unlinking capability after you accept the account linking invitation. | AcceptAccountLinkInvitation | |
associate-connection-aliasAssociates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connecti | AssociateConnectionAlias | |
associate-ip-groupsAssociates the specified IP access control group with the specified directory. | AssociateIpGroups | |
associate-workspace-applicationAssociates the specified application to the specified WorkSpace. | AssociateWorkspaceApplication | |
authorize-ip-rulesAdds 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 | |
copy-workspace-imageCopies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from | CopyWorkspaceImage | |
create-account-link-invitationCreates the account link invitation. | CreateAccountLinkInvitation | |
create-connect-client-add-inCreates a client-add-in for Amazon Connect within a directory. You can create only one Amazon Connect client add-in within a directory. This client add-in allows WorkSpaces users to seamlessly connect to Amazon Connect. | CreateConnectClientAddIn | |
create-connection-aliasCreates the specified connection alias for use with cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. | CreateConnectionAlias | |
create-ip-groupCreates 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 direc | CreateIpGroup | |
create-standby-workspacesCreates a standby WorkSpace in a secondary Region. | CreateStandbyWorkspaces | |
create-tagsCreates the specified tags for the specified WorkSpaces resource. | CreateTags | |
create-updated-workspace-imageCreates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components. To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use | CreateUpdatedWorkspaceImage | |
create-workspace-bundleCreates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle. | CreateWorkspaceBundle | |
create-workspace-imageCreates a new WorkSpace image from an existing WorkSpace. | CreateWorkspaceImage | |
create-workspacesCreates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core | CreateWorkspaces | |
create-workspaces-poolCreates a pool of WorkSpaces. | CreateWorkspacesPool | |
delete-account-link-invitationDeletes the account link invitation. | DeleteAccountLinkInvitation | |
delete-client-brandingDeletes customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you delete your cu | DeleteClientBranding | |
delete-connect-client-add-inDeletes a client-add-in for Amazon Connect that is configured within a directory. | DeleteConnectClientAddIn | |
delete-connection-aliasDeletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security | DeleteConnectionAlias | |
delete-ip-groupDeletes the specified IP access control group. You cannot delete an IP access control group that is associated with a directory. | DeleteIpGroup | |
delete-tagsDeletes the specified tags from the specified WorkSpaces resource. | DeleteTags | |
delete-workspace-bundleDeletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image. | DeleteWorkspaceBundle | |
delete-workspace-imageDeletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts. | DeleteWorkspaceImage | |
deploy-workspace-applicationsDeploys associated applications to the specified WorkSpace | DeployWorkspaceApplications | |
deregister-workspace-directoryDeregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory. Simple AD and AD Connector are made available to you free | DeregisterWorkspaceDirectory | |
describe-accountRetrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account. | DescribeAccount | |
describe-account-modificationsRetrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account. | DescribeAccountModifications | |
describe-application-associationsDescribes the associations between the application and the specified associated resources. | DescribeApplicationAssociations | |
describe-applicationsDescribes the specified applications by filtering based on their compute types, license availability, operating systems, and owners. | DescribeApplications | |
describe-bundle-associationsDescribes the associations between the applications and the specified bundle. | DescribeBundleAssociations | |
describe-client-brandingDescribes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. Only device type | DescribeClientBranding | |
describe-client-propertiesRetrieves a list that describes one or more specified Amazon WorkSpaces clients. | DescribeClientProperties | |
describe-connect-client-add-insRetrieves a list of Amazon Connect client add-ins that have been created. | DescribeConnectClientAddIns | |
describe-connection-alias-permissionsDescribes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. | DescribeConnectionAliasPermissions | |
describe-connection-aliasesRetrieves a list that describes the connection aliases used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. | DescribeConnectionAliases | |
describe-custom-workspace-image-importRetrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage. | DescribeCustomWorkspaceImageImport | |
describe-image-associationsDescribes the associations between the applications and the specified image. | DescribeImageAssociations | |
describe-ip-groupsDescribes one or more of your IP access control groups. | DescribeIpGroups | |
describe-tagsDescribes the specified tags for the specified WorkSpaces resource. | DescribeTags | |
describe-workspace-associationsDescribes the associations betweens applications and the specified WorkSpace. | DescribeWorkspaceAssociations | |
describe-workspace-bundlesRetrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both. | DescribeWorkspaceBundles | |
describe-workspace-directoriesDescribes the available directories that are registered with Amazon WorkSpaces. | DescribeWorkspaceDirectories | |
describe-workspace-image-permissionsDescribes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image. | DescribeWorkspaceImagePermissions | |
describe-workspace-imagesRetrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described. | DescribeWorkspaceImages | |
describe-workspace-snapshotsDescribes the snapshots for the specified WorkSpace. | DescribeWorkspaceSnapshots | |
describe-workspacesDescribes 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 | |
describe-workspaces-connection-statusDescribes the connection status of the specified WorkSpaces. | DescribeWorkspacesConnectionStatus | |
describe-workspaces-pool-sessionsRetrieves a list that describes the streaming sessions for a specified pool. | DescribeWorkspacesPoolSessions | |
describe-workspaces-poolsDescribes the specified WorkSpaces Pools. | DescribeWorkspacesPools | |
disassociate-connection-aliasDisassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionA | DisassociateConnectionAlias | |
disassociate-ip-groupsDisassociates the specified IP access control group from the specified directory. | DisassociateIpGroups | |
disassociate-workspace-applicationDisassociates the specified application from a WorkSpace. | DisassociateWorkspaceApplication | |
get-account-linkRetrieves account link information. | GetAccountLink | |
import-client-brandingImports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you import client branding, t | ImportClientBranding | |
import-custom-workspace-imageImports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder. The image must be an already licensed image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring | ImportCustomWorkspaceImage | |
import-workspace-imageImports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Wind | ImportWorkspaceImage | |
list-account-linksLists all account links. | ListAccountLinks | |
list-available-management-cidr-rangesRetrieves 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). This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL | ListAvailableManagementCidrRanges | |
migrate-workspaceMigrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume. The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. | MigrateWorkspace | |
modify-accountModifies the configuration of Bring Your Own License (BYOL) for the specified account. | ModifyAccount | |
modify-certificate-based-auth-propertiesModifies the properties of the certificate-based authentication you want to use with your WorkSpaces. | ModifyCertificateBasedAuthProperties | |
modify-client-propertiesModifies the properties of the specified Amazon WorkSpaces clients. | ModifyClientProperties | |
modify-endpoint-encryption-modeModifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode. | ModifyEndpointEncryptionMode | |
modify-saml-propertiesModifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider. | ModifySamlProperties | |
modify-selfservice-permissionsModifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users. | ModifySelfservicePermissions | |
modify-streaming-propertiesModifies the specified streaming properties. | ModifyStreamingProperties | |
modify-workspace-access-propertiesSpecifies which devices and operating systems users can use to access their WorkSpaces. For more information, see Control Device Access. | ModifyWorkspaceAccessProperties | |
modify-workspace-creation-propertiesModify the default properties used to create WorkSpaces. | ModifyWorkspaceCreationProperties | |
modify-workspace-propertiesModifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. The MANUAL running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For | ModifyWorkspaceProperties | |
modify-workspace-stateSets 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 canno | ModifyWorkspaceState | |
reboot-workspacesReboots the specified WorkSpaces. You cannot reboot a WorkSpace unless its state is AVAILABLE, UNHEALTHY, or REBOOTING. Reboot a WorkSpace in the REBOOTING state only if your WorkSpace has been stuck in the REBOOTING state for over 20 minutes. This operation is asynchronous and returns before the Wo | RebootWorkspaces | |
rebuild-workspacesRebuilds the specified WorkSpace. You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, STOPPED, or REBOOTING. 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 as | RebuildWorkspaces | |
register-workspace-directoryRegisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, se | RegisterWorkspaceDirectory | |
reject-account-link-invitationRejects the account link invitation. | RejectAccountLinkInvitation | |
restore-workspaceRestores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED. Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. | RestoreWorkspace | |
revoke-ip-rulesRemoves one or more rules from the specified IP access control group. | RevokeIpRules | |
start-workspacesStarts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of AutoStop or Manual and a state of STOPPED. | StartWorkspaces | |
start-workspaces-poolStarts the specified pool. You cannot start a pool unless it has a running mode of AutoStop and a state of STOPPED. | StartWorkspacesPool | |
stop-workspacesStops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode of AutoStop or Manual and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. | StopWorkspaces | |
stop-workspaces-poolStops the specified pool. You cannot stop a WorkSpace pool unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. | StopWorkspacesPool | |
terminate-workspacesTerminates 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 Support before terminating the WorkSpace. You can terminate a WorkSpace that is in any state exce | TerminateWorkspaces | |
terminate-workspaces-poolTerminates the specified pool. | TerminateWorkspacesPool | |
terminate-workspaces-pool-sessionTerminates the pool session. | TerminateWorkspacesPoolSession | |
update-connect-client-add-inUpdates a Amazon Connect client add-in. Use this action to update the name and endpoint URL of a Amazon Connect client add-in. | UpdateConnectClientAddIn | |
update-connection-alias-permissionShares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the conne | UpdateConnectionAliasPermission | |
update-rules-of-ip-groupReplaces the current rules of the specified IP access control group with the specified rules. | UpdateRulesOfIpGroup | |
update-workspace-bundleUpdates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle tha | UpdateWorkspaceBundle | |
update-workspace-image-permissionShares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with | UpdateWorkspaceImagePermission | |
update-workspaces-poolUpdates the specified pool. | UpdateWorkspacesPool |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterWorkSpaces