| 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.GetDistributionLatestCacheReset
Description
Returns the timestamp and status of the last cache reset of a specific Amazon Lightsail content delivery network (CDN) distribution.
Synopsis
- data GetDistributionLatestCacheReset = GetDistributionLatestCacheReset' {}
- newGetDistributionLatestCacheReset :: GetDistributionLatestCacheReset
- getDistributionLatestCacheReset_distributionName :: Lens' GetDistributionLatestCacheReset (Maybe Text)
- data GetDistributionLatestCacheResetResponse = GetDistributionLatestCacheResetResponse' {
- createTime :: Maybe POSIX
- status :: Maybe Text
- httpStatus :: Int
- newGetDistributionLatestCacheResetResponse :: Int -> GetDistributionLatestCacheResetResponse
- getDistributionLatestCacheResetResponse_createTime :: Lens' GetDistributionLatestCacheResetResponse (Maybe UTCTime)
- getDistributionLatestCacheResetResponse_status :: Lens' GetDistributionLatestCacheResetResponse (Maybe Text)
- getDistributionLatestCacheResetResponse_httpStatus :: Lens' GetDistributionLatestCacheResetResponse Int
Creating a Request
data GetDistributionLatestCacheReset Source #
See: newGetDistributionLatestCacheReset smart constructor.
Constructors
| GetDistributionLatestCacheReset' | |
Fields
| |
Instances
newGetDistributionLatestCacheReset :: GetDistributionLatestCacheReset Source #
Create a value of GetDistributionLatestCacheReset 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:GetDistributionLatestCacheReset', getDistributionLatestCacheReset_distributionName - The name of the distribution for which to return the timestamp of the
last cache reset.
Use the GetDistributions action to get a list of distribution names
that you can specify.
When omitted, the response includes the latest cache reset timestamp of all your distributions.
Request Lenses
getDistributionLatestCacheReset_distributionName :: Lens' GetDistributionLatestCacheReset (Maybe Text) Source #
The name of the distribution for which to return the timestamp of the last cache reset.
Use the GetDistributions action to get a list of distribution names
that you can specify.
When omitted, the response includes the latest cache reset timestamp of all your distributions.
Destructuring the Response
data GetDistributionLatestCacheResetResponse Source #
See: newGetDistributionLatestCacheResetResponse smart constructor.
Constructors
| GetDistributionLatestCacheResetResponse' | |
Fields
| |
Instances
newGetDistributionLatestCacheResetResponse Source #
Arguments
| :: Int | |
| -> GetDistributionLatestCacheResetResponse |
Create a value of GetDistributionLatestCacheResetResponse 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:GetDistributionLatestCacheResetResponse', getDistributionLatestCacheResetResponse_createTime - The timestamp of the last cache reset (e.g., 1479734909.17) in Unix
time format.
GetDistributionLatestCacheResetResponse, getDistributionLatestCacheResetResponse_status - The status of the last cache reset.
$sel:httpStatus:GetDistributionLatestCacheResetResponse', getDistributionLatestCacheResetResponse_httpStatus - The response's http status code.
Response Lenses
getDistributionLatestCacheResetResponse_createTime :: Lens' GetDistributionLatestCacheResetResponse (Maybe UTCTime) Source #
The timestamp of the last cache reset (e.g., 1479734909.17) in Unix
time format.
getDistributionLatestCacheResetResponse_status :: Lens' GetDistributionLatestCacheResetResponse (Maybe Text) Source #
The status of the last cache reset.
getDistributionLatestCacheResetResponse_httpStatus :: Lens' GetDistributionLatestCacheResetResponse Int Source #
The response's http status code.