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 |
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
Synopsis
- data CreateWorkspaces = CreateWorkspaces' {}
- newCreateWorkspaces :: NonEmpty WorkspaceRequest -> CreateWorkspaces
- createWorkspaces_workspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest)
- data CreateWorkspacesResponse = CreateWorkspacesResponse' {}
- newCreateWorkspacesResponse :: Int -> CreateWorkspacesResponse
- createWorkspacesResponse_failedRequests :: Lens' CreateWorkspacesResponse (Maybe [FailedCreateWorkspaceRequest])
- createWorkspacesResponse_pendingRequests :: Lens' CreateWorkspacesResponse (Maybe [Workspace])
- createWorkspacesResponse_httpStatus :: Lens' CreateWorkspacesResponse Int
Creating a Request
data CreateWorkspaces Source #
See: newCreateWorkspaces
smart constructor.
CreateWorkspaces' | |
|
Instances
Create a value of CreateWorkspaces
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:workspaces:CreateWorkspaces'
, createWorkspaces_workspaces
- The WorkSpaces to create. You can specify up to 25 WorkSpaces.
Request Lenses
createWorkspaces_workspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest) Source #
The WorkSpaces to create. You can specify up to 25 WorkSpaces.
Destructuring the Response
data CreateWorkspacesResponse Source #
See: newCreateWorkspacesResponse
smart constructor.
CreateWorkspacesResponse' | |
|
Instances
newCreateWorkspacesResponse Source #
Create a value of CreateWorkspacesResponse
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:failedRequests:CreateWorkspacesResponse'
, createWorkspacesResponse_failedRequests
- Information about the WorkSpaces that could not be created.
$sel:pendingRequests:CreateWorkspacesResponse'
, createWorkspacesResponse_pendingRequests
- 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.
$sel:httpStatus:CreateWorkspacesResponse'
, createWorkspacesResponse_httpStatus
- The response's http status code.
Response Lenses
createWorkspacesResponse_failedRequests :: Lens' CreateWorkspacesResponse (Maybe [FailedCreateWorkspaceRequest]) Source #
Information about the WorkSpaces that could not be created.
createWorkspacesResponse_pendingRequests :: Lens' CreateWorkspacesResponse (Maybe [Workspace]) Source #
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.
createWorkspacesResponse_httpStatus :: Lens' CreateWorkspacesResponse Int Source #
The response's http status code.