amazonka-storagegateway-1.4.5: Amazon Storage Gateway 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.StorageGateway.ResetCache

Contents

Description

Resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters a error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point you can reconfigure the disks as cache disks.

Important: If the cache disk you are resetting contains data that has not been uploaded to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.

Synopsis

Creating a Request

resetCache #

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

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

data ResetCache #

See: resetCache smart constructor.

Instances

Eq ResetCache # 
Data ResetCache # 

Methods

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

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

toConstr :: ResetCache -> Constr #

dataTypeOf :: ResetCache -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetCache # 
Show ResetCache # 
Generic ResetCache # 

Associated Types

type Rep ResetCache :: * -> * #

Hashable ResetCache # 
ToJSON ResetCache # 
NFData ResetCache # 

Methods

rnf :: ResetCache -> () #

AWSRequest ResetCache # 
ToQuery ResetCache # 
ToPath ResetCache # 
ToHeaders ResetCache # 

Methods

toHeaders :: ResetCache -> [Header] #

type Rep ResetCache # 
type Rep ResetCache = D1 (MetaData "ResetCache" "Network.AWS.StorageGateway.ResetCache" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" True) (C1 (MetaCons "ResetCache'" PrefixI True) (S1 (MetaSel (Just Symbol "_rcGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs ResetCache # 

Request Lenses

rcGatewayARN :: Lens' ResetCache Text #

Undocumented member.

Destructuring the Response

resetCacheResponse #

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

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

data ResetCacheResponse #

See: resetCacheResponse smart constructor.

Instances

Eq ResetCacheResponse # 
Data ResetCacheResponse # 

Methods

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

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

toConstr :: ResetCacheResponse -> Constr #

dataTypeOf :: ResetCacheResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetCacheResponse # 
Show ResetCacheResponse # 
Generic ResetCacheResponse # 
NFData ResetCacheResponse # 

Methods

rnf :: ResetCacheResponse -> () #

type Rep ResetCacheResponse # 
type Rep ResetCacheResponse = D1 (MetaData "ResetCacheResponse" "Network.AWS.StorageGateway.ResetCache" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "ResetCacheResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rcrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

rcrsResponseStatus :: Lens' ResetCacheResponse Int #

  • - | The response status code.