amazonka-storagegateway-2.0: Amazon Storage Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.StorageGateway.ResetCache

Description

Resets all cache disks that have encountered an error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters an 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.

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

data ResetCache Source #

See: newResetCache smart constructor.

Constructors

ResetCache' 

Fields

Instances

Instances details
ToJSON ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

ToHeaders ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Methods

toHeaders :: ResetCache -> [Header] #

ToPath ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

ToQuery ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

AWSRequest ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Associated Types

type AWSResponse ResetCache #

Generic ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Associated Types

type Rep ResetCache :: Type -> Type #

Read ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Show ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

NFData ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Methods

rnf :: ResetCache -> () #

Eq ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Hashable ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

type AWSResponse ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

type Rep ResetCache Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

type Rep ResetCache = D1 ('MetaData "ResetCache" "Amazonka.StorageGateway.ResetCache" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ResetCache'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newResetCache Source #

Arguments

:: Text

ResetCache

-> ResetCache 

Create a value of ResetCache with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ResetCache, resetCache_gatewayARN - Undocumented member.

Request Lenses

Destructuring the Response

data ResetCacheResponse Source #

See: newResetCacheResponse smart constructor.

Constructors

ResetCacheResponse' 

Fields

Instances

Instances details
Generic ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Associated Types

type Rep ResetCacheResponse :: Type -> Type #

Read ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Show ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

NFData ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

Methods

rnf :: ResetCacheResponse -> () #

Eq ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

type Rep ResetCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ResetCache

type Rep ResetCacheResponse = D1 ('MetaData "ResetCacheResponse" "Amazonka.StorageGateway.ResetCache" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ResetCacheResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newResetCacheResponse Source #

Create a value of ResetCacheResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ResetCache, resetCacheResponse_gatewayARN - Undocumented member.

$sel:httpStatus:ResetCacheResponse', resetCacheResponse_httpStatus - The response's http status code.

Response Lenses