| 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 |
Amazonka.Lightsail.ResetDistributionCache
Description
Deletes currently cached content from your Amazon Lightsail content delivery network (CDN) distribution.
After resetting the cache, the next time a content request is made, your distribution pulls, serves, and caches it from the origin.
Synopsis
- data ResetDistributionCache = ResetDistributionCache' {}
- newResetDistributionCache :: ResetDistributionCache
- resetDistributionCache_distributionName :: Lens' ResetDistributionCache (Maybe Text)
- data ResetDistributionCacheResponse = ResetDistributionCacheResponse' {}
- newResetDistributionCacheResponse :: Int -> ResetDistributionCacheResponse
- resetDistributionCacheResponse_createTime :: Lens' ResetDistributionCacheResponse (Maybe UTCTime)
- resetDistributionCacheResponse_operation :: Lens' ResetDistributionCacheResponse (Maybe Operation)
- resetDistributionCacheResponse_status :: Lens' ResetDistributionCacheResponse (Maybe Text)
- resetDistributionCacheResponse_httpStatus :: Lens' ResetDistributionCacheResponse Int
Creating a Request
data ResetDistributionCache Source #
See: newResetDistributionCache smart constructor.
Constructors
| ResetDistributionCache' | |
Fields
| |
Instances
newResetDistributionCache :: ResetDistributionCache Source #
Create a value of ResetDistributionCache 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:distributionName:ResetDistributionCache', resetDistributionCache_distributionName - The name of the distribution for which to reset cache.
Use the GetDistributions action to get a list of distribution names
that you can specify.
Request Lenses
resetDistributionCache_distributionName :: Lens' ResetDistributionCache (Maybe Text) Source #
The name of the distribution for which to reset cache.
Use the GetDistributions action to get a list of distribution names
that you can specify.
Destructuring the Response
data ResetDistributionCacheResponse Source #
See: newResetDistributionCacheResponse smart constructor.
Constructors
| ResetDistributionCacheResponse' | |
Fields
| |
Instances
newResetDistributionCacheResponse Source #
Create a value of ResetDistributionCacheResponse 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:createTime:ResetDistributionCacheResponse', resetDistributionCacheResponse_createTime - The timestamp of the reset cache request (e.g., 1479734909.17) in Unix
time format.
$sel:operation:ResetDistributionCacheResponse', resetDistributionCacheResponse_operation - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
ResetDistributionCacheResponse, resetDistributionCacheResponse_status - The status of the reset cache request.
$sel:httpStatus:ResetDistributionCacheResponse', resetDistributionCacheResponse_httpStatus - The response's http status code.
Response Lenses
resetDistributionCacheResponse_createTime :: Lens' ResetDistributionCacheResponse (Maybe UTCTime) Source #
The timestamp of the reset cache request (e.g., 1479734909.17) in Unix
time format.
resetDistributionCacheResponse_operation :: Lens' ResetDistributionCacheResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
resetDistributionCacheResponse_status :: Lens' ResetDistributionCacheResponse (Maybe Text) Source #
The status of the reset cache request.
resetDistributionCacheResponse_httpStatus :: Lens' ResetDistributionCacheResponse Int Source #
The response's http status code.