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 |
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' {
- status :: Maybe Text
- createTime :: Maybe POSIX
- httpStatus :: Int
- newGetDistributionLatestCacheResetResponse :: Int -> GetDistributionLatestCacheResetResponse
- getDistributionLatestCacheResetResponse_status :: Lens' GetDistributionLatestCacheResetResponse (Maybe Text)
- getDistributionLatestCacheResetResponse_createTime :: Lens' GetDistributionLatestCacheResetResponse (Maybe UTCTime)
- getDistributionLatestCacheResetResponse_httpStatus :: Lens' GetDistributionLatestCacheResetResponse Int
Creating a Request
data GetDistributionLatestCacheReset Source #
See: newGetDistributionLatestCacheReset
smart constructor.
GetDistributionLatestCacheReset' | |
|
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.
GetDistributionLatestCacheResetResponse' | |
|
Instances
newGetDistributionLatestCacheResetResponse Source #
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:status:GetDistributionLatestCacheResetResponse'
, getDistributionLatestCacheResetResponse_status
- The status of the last cache reset.
$sel:createTime:GetDistributionLatestCacheResetResponse'
, getDistributionLatestCacheResetResponse_createTime
- The timestamp of the last cache reset (e.g., 1479734909.17
) in Unix
time format.
$sel:httpStatus:GetDistributionLatestCacheResetResponse'
, getDistributionLatestCacheResetResponse_httpStatus
- The response's http status code.
Response Lenses
getDistributionLatestCacheResetResponse_status :: Lens' GetDistributionLatestCacheResetResponse (Maybe Text) Source #
The status of the last cache reset.
getDistributionLatestCacheResetResponse_createTime :: Lens' GetDistributionLatestCacheResetResponse (Maybe UTCTime) Source #
The timestamp of the last cache reset (e.g., 1479734909.17
) in Unix
time format.
getDistributionLatestCacheResetResponse_httpStatus :: Lens' GetDistributionLatestCacheResetResponse Int Source #
The response's http status code.