amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.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

AWSRequest ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type AWSResponse ResetDistributionCache #

Generic ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type Rep ResetDistributionCache :: Type -> Type #

Read ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Show ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

NFData ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Methods

rnf :: ResetDistributionCache -> () #

Eq ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Hashable ResetDistributionCache Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "ResetDistributionCache'" 'PrefixI 'True) (S1 ('MetaSel ('Just "distributionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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

  • createTime :: Maybe POSIX

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

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

  • status :: Maybe Text

    The status of the reset cache request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Associated Types

type Rep ResetDistributionCacheResponse :: Type -> Type #

Read ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Show ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

NFData ResetDistributionCacheResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ResetDistributionCache

Eq 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "ResetDistributionCacheResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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: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.