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 |
Deletes an Amazon File Cache resource. After deletion, the cache no longer exists, and its data is gone.
The DeleteFileCache
operation returns while the cache has the
DELETING
status. You can check the cache deletion status by calling
the
DescribeFileCaches
operation, which returns a list of caches in your account. If you pass
the cache ID for a deleted cache, the DescribeFileCaches
operation
returns a FileCacheNotFound
error.
The data in a deleted cache is also deleted and can't be recovered by any means.
Synopsis
- data DeleteFileCache = DeleteFileCache' {}
- newDeleteFileCache :: Text -> DeleteFileCache
- deleteFileCache_clientRequestToken :: Lens' DeleteFileCache (Maybe Text)
- deleteFileCache_fileCacheId :: Lens' DeleteFileCache Text
- data DeleteFileCacheResponse = DeleteFileCacheResponse' {}
- newDeleteFileCacheResponse :: Int -> DeleteFileCacheResponse
- deleteFileCacheResponse_fileCacheId :: Lens' DeleteFileCacheResponse (Maybe Text)
- deleteFileCacheResponse_lifecycle :: Lens' DeleteFileCacheResponse (Maybe FileCacheLifecycle)
- deleteFileCacheResponse_httpStatus :: Lens' DeleteFileCacheResponse Int
Creating a Request
data DeleteFileCache Source #
See: newDeleteFileCache
smart constructor.
DeleteFileCache' | |
|
Instances
Create a value of DeleteFileCache
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:
$sel:clientRequestToken:DeleteFileCache'
, deleteFileCache_clientRequestToken
- Undocumented member.
DeleteFileCache
, deleteFileCache_fileCacheId
- The ID of the cache that's being deleted.
Request Lenses
deleteFileCache_clientRequestToken :: Lens' DeleteFileCache (Maybe Text) Source #
Undocumented member.
deleteFileCache_fileCacheId :: Lens' DeleteFileCache Text Source #
The ID of the cache that's being deleted.
Destructuring the Response
data DeleteFileCacheResponse Source #
See: newDeleteFileCacheResponse
smart constructor.
DeleteFileCacheResponse' | |
|
Instances
newDeleteFileCacheResponse Source #
Create a value of DeleteFileCacheResponse
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:
DeleteFileCache
, deleteFileCacheResponse_fileCacheId
- The ID of the cache that's being deleted.
DeleteFileCacheResponse
, deleteFileCacheResponse_lifecycle
- The cache lifecycle for the deletion request. If the DeleteFileCache
operation is successful, this status is DELETING
.
$sel:httpStatus:DeleteFileCacheResponse'
, deleteFileCacheResponse_httpStatus
- The response's http status code.
Response Lenses
deleteFileCacheResponse_fileCacheId :: Lens' DeleteFileCacheResponse (Maybe Text) Source #
The ID of the cache that's being deleted.
deleteFileCacheResponse_lifecycle :: Lens' DeleteFileCacheResponse (Maybe FileCacheLifecycle) Source #
The cache lifecycle for the deletion request. If the DeleteFileCache
operation is successful, this status is DELETING
.
deleteFileCacheResponse_httpStatus :: Lens' DeleteFileCacheResponse Int Source #
The response's http status code.