Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ResetCache = ResetCache' {
- gatewayARN :: Text
- newResetCache :: Text -> ResetCache
- resetCache_gatewayARN :: Lens' ResetCache Text
- data ResetCacheResponse = ResetCacheResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newResetCacheResponse :: Int -> ResetCacheResponse
- resetCacheResponse_gatewayARN :: Lens' ResetCacheResponse (Maybe Text)
- resetCacheResponse_httpStatus :: Lens' ResetCacheResponse Int
Creating a Request
data ResetCache Source #
See: newResetCache
smart constructor.
Instances
:: Text | |
-> 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
resetCache_gatewayARN :: Lens' ResetCache Text Source #
Undocumented member.
Destructuring the Response
data ResetCacheResponse Source #
See: newResetCacheResponse
smart constructor.
ResetCacheResponse' | |
|
Instances
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
resetCacheResponse_gatewayARN :: Lens' ResetCacheResponse (Maybe Text) Source #
Undocumented member.
resetCacheResponse_httpStatus :: Lens' ResetCacheResponse Int Source #
The response's http status code.