Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
This operation returns paginated results.
Synopsis
- data DescribeWorkspaces = DescribeWorkspaces' {}
- newDescribeWorkspaces :: DescribeWorkspaces
- describeWorkspaces_directoryId :: Lens' DescribeWorkspaces (Maybe Text)
- describeWorkspaces_workspaceIds :: Lens' DescribeWorkspaces (Maybe (NonEmpty Text))
- describeWorkspaces_userName :: Lens' DescribeWorkspaces (Maybe Text)
- describeWorkspaces_bundleId :: Lens' DescribeWorkspaces (Maybe Text)
- describeWorkspaces_nextToken :: Lens' DescribeWorkspaces (Maybe Text)
- describeWorkspaces_limit :: Lens' DescribeWorkspaces (Maybe Natural)
- data DescribeWorkspacesResponse = DescribeWorkspacesResponse' {
- nextToken :: Maybe Text
- workspaces :: Maybe [Workspace]
- httpStatus :: Int
- newDescribeWorkspacesResponse :: Int -> DescribeWorkspacesResponse
- describeWorkspacesResponse_nextToken :: Lens' DescribeWorkspacesResponse (Maybe Text)
- describeWorkspacesResponse_workspaces :: Lens' DescribeWorkspacesResponse (Maybe [Workspace])
- describeWorkspacesResponse_httpStatus :: Lens' DescribeWorkspacesResponse Int
Creating a Request
data DescribeWorkspaces Source #
See: newDescribeWorkspaces
smart constructor.
DescribeWorkspaces' | |
|
Instances
newDescribeWorkspaces :: DescribeWorkspaces Source #
Create a value of DescribeWorkspaces
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:directoryId:DescribeWorkspaces'
, describeWorkspaces_directoryId
- 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.
$sel:workspaceIds:DescribeWorkspaces'
, describeWorkspaces_workspaceIds
- 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.
$sel:userName:DescribeWorkspaces'
, describeWorkspaces_userName
- The name of the directory user. You must specify this parameter with
DirectoryId
.
$sel:bundleId:DescribeWorkspaces'
, describeWorkspaces_bundleId
- The identifier of the bundle. All WorkSpaces that are created from this
bundle are retrieved. You cannot combine this parameter with any other
filter.
$sel:nextToken:DescribeWorkspaces'
, describeWorkspaces_nextToken
- If you received a NextToken
from a previous call that was paginated,
provide this token to receive the next set of results.
$sel:limit:DescribeWorkspaces'
, describeWorkspaces_limit
- The maximum number of items to return.
Request Lenses
describeWorkspaces_directoryId :: Lens' DescribeWorkspaces (Maybe Text) Source #
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.
describeWorkspaces_workspaceIds :: Lens' DescribeWorkspaces (Maybe (NonEmpty Text)) Source #
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.
describeWorkspaces_userName :: Lens' DescribeWorkspaces (Maybe Text) Source #
The name of the directory user. You must specify this parameter with
DirectoryId
.
describeWorkspaces_bundleId :: Lens' DescribeWorkspaces (Maybe Text) Source #
The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.
describeWorkspaces_nextToken :: Lens' DescribeWorkspaces (Maybe Text) Source #
If you received a NextToken
from a previous call that was paginated,
provide this token to receive the next set of results.
describeWorkspaces_limit :: Lens' DescribeWorkspaces (Maybe Natural) Source #
The maximum number of items to return.
Destructuring the Response
data DescribeWorkspacesResponse Source #
See: newDescribeWorkspacesResponse
smart constructor.
DescribeWorkspacesResponse' | |
|
Instances
newDescribeWorkspacesResponse Source #
Create a value of DescribeWorkspacesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:DescribeWorkspaces'
, describeWorkspacesResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null when there are no more results to return.
$sel:workspaces:DescribeWorkspacesResponse'
, describeWorkspacesResponse_workspaces
- Information about the WorkSpaces.
Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.
$sel:httpStatus:DescribeWorkspacesResponse'
, describeWorkspacesResponse_httpStatus
- The response's http status code.
Response Lenses
describeWorkspacesResponse_nextToken :: Lens' DescribeWorkspacesResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
describeWorkspacesResponse_workspaces :: Lens' DescribeWorkspacesResponse (Maybe [Workspace]) Source #
Information about the WorkSpaces.
Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.
describeWorkspacesResponse_httpStatus :: Lens' DescribeWorkspacesResponse Int Source #
The response's http status code.