amazonka-workspaces-1.4.4: Amazon WorkSpaces SDK.

Copyright(c) 2013-2016 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.

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:

data CreateWorkspaces Source #

Contains the inputs for the CreateWorkspaces operation.

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 # 
NFData CreateWorkspaces Source # 

Methods

rnf :: CreateWorkspaces -> () #

AWSRequest CreateWorkspaces Source # 
ToPath CreateWorkspaces Source # 
ToHeaders CreateWorkspaces Source # 
ToQuery CreateWorkspaces Source # 
ToJSON CreateWorkspaces Source # 
type Rep CreateWorkspaces Source # 
type Rep CreateWorkspaces = D1 (MetaData "CreateWorkspaces" "Network.AWS.WorkSpaces.CreateWorkspaces" "amazonka-workspaces-1.4.4-IQnza0NWtgfKfbbLfSFOLb" 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 #

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:

data CreateWorkspacesResponse Source #

Contains the result of the CreateWorkspaces operation.

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.4.4-IQnza0NWtgfKfbbLfSFOLb" 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 DecidedUnpack) (Rec0 Int)))))

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.