amazonka-workspaces-1.6.0: Amazon WorkSpaces SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

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:

  • cwWorkspaces - The WorkSpaces to create. You can specify up to 25 WorkSpaces.

data CreateWorkspaces Source #

See: createWorkspaces smart constructor.

Instances

Eq CreateWorkspaces Source # 
Data CreateWorkspaces Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateWorkspaces -> c CreateWorkspaces #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateWorkspaces #

toConstr :: CreateWorkspaces -> Constr #

dataTypeOf :: CreateWorkspaces -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateWorkspaces) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateWorkspaces) #

gmapT :: (forall b. Data b => b -> b) -> CreateWorkspaces -> CreateWorkspaces #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateWorkspaces -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateWorkspaces -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateWorkspaces -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateWorkspaces -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateWorkspaces -> m CreateWorkspaces #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateWorkspaces -> m CreateWorkspaces #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateWorkspaces -> m CreateWorkspaces #

Read CreateWorkspaces Source # 
Show CreateWorkspaces Source # 
Generic CreateWorkspaces Source # 
Hashable CreateWorkspaces Source # 
ToJSON CreateWorkspaces Source # 
NFData CreateWorkspaces Source # 

Methods

rnf :: CreateWorkspaces -> () #

AWSRequest CreateWorkspaces Source # 
ToHeaders CreateWorkspaces Source # 
ToPath CreateWorkspaces Source # 
ToQuery CreateWorkspaces Source # 
type Rep CreateWorkspaces Source # 
type Rep CreateWorkspaces = D1 * (MetaData "CreateWorkspaces" "Network.AWS.WorkSpaces.CreateWorkspaces" "amazonka-workspaces-1.6.0-AwHYwyt6ovyA3XlaTDhfeV" True) (C1 * (MetaCons "CreateWorkspaces'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cwWorkspaces") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (List1 WorkspaceRequest))))
type Rs CreateWorkspaces Source # 

Request Lenses

cwWorkspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest) Source #

The WorkSpaces to create. You can specify up to 25 WorkSpaces.

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:

  • cwrsFailedRequests - Information about the WorkSpaces that could not be created.
  • cwrsPendingRequests - 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.
  • cwrsResponseStatus - -- | The response status code.

data CreateWorkspacesResponse Source #

See: createWorkspacesResponse smart constructor.

Instances

Eq CreateWorkspacesResponse Source # 
Data CreateWorkspacesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateWorkspacesResponse -> c CreateWorkspacesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateWorkspacesResponse #

toConstr :: CreateWorkspacesResponse -> Constr #

dataTypeOf :: CreateWorkspacesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateWorkspacesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateWorkspacesResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateWorkspacesResponse -> CreateWorkspacesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateWorkspacesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateWorkspacesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateWorkspacesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateWorkspacesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateWorkspacesResponse -> m CreateWorkspacesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateWorkspacesResponse -> m CreateWorkspacesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateWorkspacesResponse -> m CreateWorkspacesResponse #

Read CreateWorkspacesResponse Source # 
Show CreateWorkspacesResponse Source # 
Generic CreateWorkspacesResponse Source # 
NFData CreateWorkspacesResponse Source # 
type Rep CreateWorkspacesResponse Source # 
type Rep CreateWorkspacesResponse = D1 * (MetaData "CreateWorkspacesResponse" "Network.AWS.WorkSpaces.CreateWorkspaces" "amazonka-workspaces-1.6.0-AwHYwyt6ovyA3XlaTDhfeV" False) (C1 * (MetaCons "CreateWorkspacesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cwrsFailedRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [FailedCreateWorkspaceRequest]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cwrsPendingRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Workspace]))) (S1 * (MetaSel (Just Symbol "_cwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

cwrsFailedRequests :: Lens' CreateWorkspacesResponse [FailedCreateWorkspaceRequest] Source #

Information about the WorkSpaces that could not be created.

cwrsPendingRequests :: Lens' CreateWorkspacesResponse [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.