describe_workspaces
async
¶
describe_workspaces(
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
workspace_ids: Optional[WorkspaceIdList] = None,
directory_id: Optional[DirectoryId] = None,
user_name: Optional[UserName] = None,
bundle_id: Optional[BundleId] = None,
limit: Optional[Limit] = None,
next_token: Optional[PaginationToken] = None,
workspace_name: Optional[WorkspaceName] = None,
) -> DescribeWorkspacesResult
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.
Parameters:
-
workspace_ids(Optional[WorkspaceIdList], default:None) –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.
-
directory_id(Optional[DirectoryId], default:None) –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. -
user_name(Optional[UserName], default:None) –The name of the directory user. You must specify this parameter with
DirectoryId. -
bundle_id(Optional[BundleId], default:None) –The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.
-
limit(Optional[Limit], default:None) –The maximum number of items to return.
-
next_token(Optional[PaginationToken], default:None) –If you received a
NextTokenfrom a previous call that was paginated, provide this token to receive the next set of results. -
workspace_name(Optional[WorkspaceName], default:None) –The name of the user-decoupled WorkSpace.
Raises:
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
ResourceUnavailableException–The specified resource is not available.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 | |