amazonka-storagegateway-1.6.1: 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 # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Data ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.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 Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Show ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Generic ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Associated Types

type Rep ResetCache :: Type -> Type #

Hashable ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

ToJSON ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

AWSRequest ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Associated Types

type Rs ResetCache :: Type #

ToHeaders ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Methods

toHeaders :: ResetCache -> [Header] #

ToPath ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

ToQuery ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

NFData ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Methods

rnf :: ResetCache -> () #

type Rep ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

type Rep ResetCache = D1 (MetaData "ResetCache" "Network.AWS.StorageGateway.ResetCache" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" True) (C1 (MetaCons "ResetCache'" PrefixI True) (S1 (MetaSel (Just "_rcGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs ResetCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

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 # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Data ResetCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

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 # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Show ResetCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Generic ResetCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Associated Types

type Rep ResetCacheResponse :: Type -> Type #

NFData ResetCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

Methods

rnf :: ResetCacheResponse -> () #

type Rep ResetCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ResetCache

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

Response Lenses

rrsResponseStatus :: Lens' ResetCacheResponse Int Source #

  • - | The response status code.