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

This operation is asynchronous and will return before the WorkSpaces have been completely rebuilt.

Synopsis

Creating a Request

rebuildWorkspaces Source #

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

Contains the inputs for the RebuildWorkspaces operation.

See: rebuildWorkspaces smart constructor.

Instances

Eq RebuildWorkspaces Source # 
Data RebuildWorkspaces Source # 

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 Source # 
Show RebuildWorkspaces Source # 
Generic RebuildWorkspaces Source # 
ToJSON RebuildWorkspaces Source # 
Hashable RebuildWorkspaces Source # 
NFData RebuildWorkspaces Source # 

Methods

rnf :: RebuildWorkspaces -> () #

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

Request Lenses

rwRebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest) Source #

An array of structures that specify the WorkSpaces to rebuild.

Destructuring the Response

rebuildWorkspacesResponse Source #

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

Contains the results of the RebuildWorkspaces operation.

See: rebuildWorkspacesResponse smart constructor.

Instances

Eq RebuildWorkspacesResponse Source # 
Data RebuildWorkspacesResponse Source # 

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 Source # 
Show RebuildWorkspacesResponse Source # 
Generic RebuildWorkspacesResponse Source # 
NFData RebuildWorkspacesResponse Source # 
type Rep RebuildWorkspacesResponse Source # 
type Rep RebuildWorkspacesResponse = D1 (MetaData "RebuildWorkspacesResponse" "Network.AWS.WorkSpaces.RebuildWorkspaces" "amazonka-workspaces-1.4.2-E1tn9WBBgtH4LpyYrCvgju" False) (C1 (MetaCons "RebuildWorkspacesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rwrsFailedRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FailedWorkspaceChangeRequest]))) (S1 (MetaSel (Just Symbol "_rwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

rwrsFailedRequests :: Lens' RebuildWorkspacesResponse [FailedWorkspaceChangeRequest] Source #

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