amazonka-workspaces-1.0.1: Amazon WorkSpaces SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkSpaces.CreateWorkspaces

Contents

Description

Creates one or more WorkSpaces.

This operation is asynchronous and returns before the WorkSpaces are created.

See: AWS API Reference for CreateWorkspaces.

Synopsis

Creating a Request

createWorkspaces Source

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:

Request Lenses

cwWorkspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest) Source

An array of structures that specify the WorkSpaces to create.

Destructuring the Response

createWorkspacesResponse Source

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:

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.

cwrsStatus :: Lens' CreateWorkspacesResponse Int Source

The response status code.