| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.WorkSpaces.CreateWorkspaces
Description
Creates one or more WorkSpaces.
- createWorkspaces :: NonEmpty WorkspaceRequest -> CreateWorkspaces
- data CreateWorkspaces
- cwWorkspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest)
- createWorkspacesResponse :: Int -> CreateWorkspacesResponse
- data CreateWorkspacesResponse
- cwrsFailedRequests :: Lens' CreateWorkspacesResponse [FailedCreateWorkspaceRequest]
- cwrsPendingRequests :: Lens' CreateWorkspacesResponse [Workspace]
- cwrsResponseStatus :: Lens' CreateWorkspacesResponse Int
Creating a Request
Arguments
| :: NonEmpty WorkspaceRequest | |
| -> CreateWorkspaces |
Creates a value of CreateWorkspaces with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cwWorkspaces- An array of structures that specify the WorkSpaces to create.
data CreateWorkspaces Source #
Contains the inputs for the CreateWorkspaces operation.
See: createWorkspaces smart constructor.
Instances
Request Lenses
cwWorkspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest) Source #
An array of structures that specify the WorkSpaces to create.
Destructuring the Response
createWorkspacesResponse Source #
Arguments
| :: Int | |
| -> CreateWorkspacesResponse |
Creates a value of CreateWorkspacesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cwrsFailedRequests- An array of structures that represent the WorkSpaces that could not be created.cwrsPendingRequests- An array of structures that represent the WorkSpaces that were created. Because this operation is asynchronous, the identifier inWorkspaceIdis not immediately available. If you immediately callDescribeWorkspaceswith this identifier, no information will be returned.cwrsResponseStatus- -- | The response status code.
data CreateWorkspacesResponse Source #
Contains the result of the CreateWorkspaces operation.
See: createWorkspacesResponse smart constructor.
Response Lenses
cwrsFailedRequests :: Lens' CreateWorkspacesResponse [FailedCreateWorkspaceRequest] Source #
An array of structures that represent the WorkSpaces that could not be created.
cwrsPendingRequests :: Lens' CreateWorkspacesResponse [Workspace] Source #
An array of structures that represent the WorkSpaces that were created. Because this operation is asynchronous, the identifier in WorkspaceId is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information will be returned.
cwrsResponseStatus :: Lens' CreateWorkspacesResponse Int Source #
- - | The response status code.