Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_status :: Lens' ResetDistributionCacheResponse (Maybe Text)
- resetDistributionCacheResponse_operation :: Lens' ResetDistributionCacheResponse (Maybe Operation)
- resetDistributionCacheResponse_createTime :: Lens' ResetDistributionCacheResponse (Maybe UTCTime)
- resetDistributionCacheResponse_httpStatus :: Lens' ResetDistributionCacheResponse Int
Creating a Request
data ResetDistributionCache Source #
See: newResetDistributionCache
smart constructor.
ResetDistributionCache' | |
|
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.
ResetDistributionCacheResponse' | |
|
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:status:ResetDistributionCacheResponse'
, resetDistributionCacheResponse_status
- The status of the reset cache request.
$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.
$sel:createTime:ResetDistributionCacheResponse'
, resetDistributionCacheResponse_createTime
- The timestamp of the reset cache request (e.g., 1479734909.17
) in Unix
time format.
$sel:httpStatus:ResetDistributionCacheResponse'
, resetDistributionCacheResponse_httpStatus
- The response's http status code.
Response Lenses
resetDistributionCacheResponse_status :: Lens' ResetDistributionCacheResponse (Maybe Text) Source #
The status of the reset cache request.
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_createTime :: Lens' ResetDistributionCacheResponse (Maybe UTCTime) Source #
The timestamp of the reset cache request (e.g., 1479734909.17
) in Unix
time format.
resetDistributionCacheResponse_httpStatus :: Lens' ResetDistributionCacheResponse Int Source #
The response's http status code.