libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data ResetDistributionCache Source #

See: newResetDistributionCache smart constructor.

Constructors

ResetDistributionCache' 

Fields

  • distributionName :: Maybe Text

    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.

Instances

Instances details
Eq ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Read ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Show ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Generic ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type Rep ResetDistributionCache :: Type -> Type #

NFData ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Methods

rnf :: ResetDistributionCache -> () #

Hashable ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

ToJSON ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

AWSRequest ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type AWSResponse ResetDistributionCache #

ToHeaders ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

ToPath ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

ToQuery ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

type Rep ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

type Rep ResetDistributionCache = D1 ('MetaData "ResetDistributionCache" "Amazonka.Lightsail.ResetDistributionCache" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "ResetDistributionCache'" 'PrefixI 'True) (S1 ('MetaSel ('Just "distributionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

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

  • status :: Maybe Text

    The status of the reset cache request.

  • operation :: Maybe 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.

  • createTime :: Maybe POSIX

    The timestamp of the reset cache request (e.g., 1479734909.17) in Unix time format.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Read ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Show ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Generic ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type Rep ResetDistributionCacheResponse :: Type -> Type #

NFData ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

type Rep ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

type Rep ResetDistributionCacheResponse = D1 ('MetaData "ResetDistributionCacheResponse" "Amazonka.Lightsail.ResetDistributionCache" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "ResetDistributionCacheResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation))) :*: (S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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.