amazonka-storagegateway-1.6.0: Amazon Storage Gateway 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.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. This operation is only supported in the cached volume and tape types.

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

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

See: resetCache smart constructor.

Instances

Eq ResetCache Source # 
Data ResetCache Source # 

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 Source # 
Show ResetCache Source # 
Generic ResetCache Source # 

Associated Types

type Rep ResetCache :: * -> * #

Hashable ResetCache Source # 
ToJSON ResetCache Source # 
NFData ResetCache Source # 

Methods

rnf :: ResetCache -> () #

AWSRequest ResetCache Source # 
ToHeaders ResetCache Source # 

Methods

toHeaders :: ResetCache -> [Header] #

ToPath ResetCache Source # 
ToQuery ResetCache Source # 
type Rep ResetCache Source # 
type Rep ResetCache = D1 * (MetaData "ResetCache" "Network.AWS.StorageGateway.ResetCache" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" True) (C1 * (MetaCons "ResetCache'" PrefixI True) (S1 * (MetaSel (Just Symbol "_rcGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs ResetCache Source # 

Request Lenses

rcGatewayARN :: Lens' ResetCache Text Source #

Undocumented member.

Destructuring the Response

resetCacheResponse Source #

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

See: resetCacheResponse smart constructor.

Instances

Eq ResetCacheResponse Source # 
Data ResetCacheResponse Source # 

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 Source # 
Show ResetCacheResponse Source # 
Generic ResetCacheResponse Source # 
NFData ResetCacheResponse Source # 

Methods

rnf :: ResetCacheResponse -> () #

type Rep ResetCacheResponse Source # 
type Rep ResetCacheResponse = D1 * (MetaData "ResetCacheResponse" "Network.AWS.StorageGateway.ResetCache" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "ResetCacheResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_rrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

rrsResponseStatus :: Lens' ResetCacheResponse Int Source #

  • - | The response status code.