amazonka-workspaces-1.4.5: 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.RebuildWorkspaces

Contents

Description

Rebuilds the specified WorkSpaces.

Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. Rebuilding a WorkSpace causes the following to occur:

  • The system is restored to the image of the bundle that the WorkSpace is created from. Any applications that have been installed, or system settings that have been made since the WorkSpace was created will be lost.
  • The data drive (D drive) is re-created from the last automatic snapshot taken of the data drive. The current contents of the data drive are overwritten. Automatic snapshots of the data drive are taken every 12 hours, so the snapshot can be as much as 12 hours old.

To be able to rebuild a WorkSpace, the WorkSpace must have a State of AVAILABLE or ERROR .

Synopsis

Creating a Request

rebuildWorkspaces #

Creates a value of RebuildWorkspaces with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RebuildWorkspaces #

Contains the inputs for the RebuildWorkspaces operation.

See: rebuildWorkspaces smart constructor.

Instances

Eq RebuildWorkspaces # 
Data RebuildWorkspaces # 

Methods

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

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

toConstr :: RebuildWorkspaces -> Constr #

dataTypeOf :: RebuildWorkspaces -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RebuildWorkspaces # 
Show RebuildWorkspaces # 
Generic RebuildWorkspaces # 
Hashable RebuildWorkspaces # 
ToJSON RebuildWorkspaces # 
NFData RebuildWorkspaces # 

Methods

rnf :: RebuildWorkspaces -> () #

AWSRequest RebuildWorkspaces # 
ToQuery RebuildWorkspaces # 
ToPath RebuildWorkspaces # 
ToHeaders RebuildWorkspaces # 
type Rep RebuildWorkspaces # 
type Rep RebuildWorkspaces = D1 (MetaData "RebuildWorkspaces" "Network.AWS.WorkSpaces.RebuildWorkspaces" "amazonka-workspaces-1.4.5-3ohyArvn0vQ6jMfbHLtMmt" True) (C1 (MetaCons "RebuildWorkspaces'" PrefixI True) (S1 (MetaSel (Just Symbol "_rwRebuildWorkspaceRequests") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (List1 RebuildRequest))))
type Rs RebuildWorkspaces # 

Request Lenses

rwRebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest) #

An array of structures that specify the WorkSpaces to rebuild.

Destructuring the Response

rebuildWorkspacesResponse #

Creates a value of RebuildWorkspacesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RebuildWorkspacesResponse #

Contains the results of the RebuildWorkspaces operation.

See: rebuildWorkspacesResponse smart constructor.

Instances

Eq RebuildWorkspacesResponse # 
Data RebuildWorkspacesResponse # 

Methods

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

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

toConstr :: RebuildWorkspacesResponse -> Constr #

dataTypeOf :: RebuildWorkspacesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RebuildWorkspacesResponse # 
Show RebuildWorkspacesResponse # 
Generic RebuildWorkspacesResponse # 
NFData RebuildWorkspacesResponse # 
type Rep RebuildWorkspacesResponse # 
type Rep RebuildWorkspacesResponse = D1 (MetaData "RebuildWorkspacesResponse" "Network.AWS.WorkSpaces.RebuildWorkspaces" "amazonka-workspaces-1.4.5-3ohyArvn0vQ6jMfbHLtMmt" False) (C1 (MetaCons "RebuildWorkspacesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rwrsFailedRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FailedWorkspaceChangeRequest]))) (S1 (MetaSel (Just Symbol "_rwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

rwrsFailedRequests :: Lens' RebuildWorkspacesResponse [FailedWorkspaceChangeRequest] #

An array of structures representing any WorkSpaces that could not be rebuilt.

rwrsResponseStatus :: Lens' RebuildWorkspacesResponse Int #

  • - | The response status code.