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

Description

Updates an existing Amazon Lightsail content delivery network (CDN) distribution.

Use this action to update the configuration of your existing distribution.

Synopsis

Creating a Request

data UpdateDistribution Source #

See: newUpdateDistribution smart constructor.

Constructors

UpdateDistribution' 

Fields

  • origin :: Maybe InputOrigin

    An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.

    The distribution pulls, caches, and serves content from the origin.

  • cacheBehaviorSettings :: Maybe CacheSettings

    An object that describes the cache behavior settings for the distribution.

    The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

  • isEnabled :: Maybe Bool

    Indicates whether to enable the distribution.

  • defaultCacheBehavior :: Maybe CacheBehavior

    An object that describes the default cache behavior for the distribution.

  • cacheBehaviors :: Maybe [CacheBehaviorPerPath]

    An array of objects that describe the per-path cache behavior for the distribution.

  • distributionName :: Text

    The name of the distribution to update.

    Use the GetDistributions action to get a list of distribution names that you can specify.

Instances

Instances details
Eq UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Read UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Show UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Generic UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Associated Types

type Rep UpdateDistribution :: Type -> Type #

NFData UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Methods

rnf :: UpdateDistribution -> () #

Hashable UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

ToJSON UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

AWSRequest UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Associated Types

type AWSResponse UpdateDistribution #

ToHeaders UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

ToPath UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

ToQuery UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

type Rep UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

type Rep UpdateDistribution = D1 ('MetaData "UpdateDistribution" "Amazonka.Lightsail.UpdateDistribution" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "UpdateDistribution'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "origin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InputOrigin)) :*: (S1 ('MetaSel ('Just "cacheBehaviorSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheSettings)) :*: S1 ('MetaSel ('Just "isEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "defaultCacheBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheBehavior)) :*: (S1 ('MetaSel ('Just "cacheBehaviors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CacheBehaviorPerPath])) :*: S1 ('MetaSel ('Just "distributionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

newUpdateDistribution Source #

Create a value of UpdateDistribution 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:origin:UpdateDistribution', updateDistribution_origin - An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.

The distribution pulls, caches, and serves content from the origin.

$sel:cacheBehaviorSettings:UpdateDistribution', updateDistribution_cacheBehaviorSettings - An object that describes the cache behavior settings for the distribution.

The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

$sel:isEnabled:UpdateDistribution', updateDistribution_isEnabled - Indicates whether to enable the distribution.

$sel:defaultCacheBehavior:UpdateDistribution', updateDistribution_defaultCacheBehavior - An object that describes the default cache behavior for the distribution.

$sel:cacheBehaviors:UpdateDistribution', updateDistribution_cacheBehaviors - An array of objects that describe the per-path cache behavior for the distribution.

$sel:distributionName:UpdateDistribution', updateDistribution_distributionName - The name of the distribution to update.

Use the GetDistributions action to get a list of distribution names that you can specify.

Request Lenses

updateDistribution_origin :: Lens' UpdateDistribution (Maybe InputOrigin) Source #

An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.

The distribution pulls, caches, and serves content from the origin.

updateDistribution_cacheBehaviorSettings :: Lens' UpdateDistribution (Maybe CacheSettings) Source #

An object that describes the cache behavior settings for the distribution.

The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

updateDistribution_isEnabled :: Lens' UpdateDistribution (Maybe Bool) Source #

Indicates whether to enable the distribution.

updateDistribution_defaultCacheBehavior :: Lens' UpdateDistribution (Maybe CacheBehavior) Source #

An object that describes the default cache behavior for the distribution.

updateDistribution_cacheBehaviors :: Lens' UpdateDistribution (Maybe [CacheBehaviorPerPath]) Source #

An array of objects that describe the per-path cache behavior for the distribution.

updateDistribution_distributionName :: Lens' UpdateDistribution Text Source #

The name of the distribution to update.

Use the GetDistributions action to get a list of distribution names that you can specify.

Destructuring the Response

data UpdateDistributionResponse Source #

See: newUpdateDistributionResponse smart constructor.

Constructors

UpdateDistributionResponse' 

Fields

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Read UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Show UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Generic UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

Associated Types

type Rep UpdateDistributionResponse :: Type -> Type #

NFData UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

type Rep UpdateDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistribution

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

newUpdateDistributionResponse Source #

Create a value of UpdateDistributionResponse 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:operation:UpdateDistributionResponse', updateDistributionResponse_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:httpStatus:UpdateDistributionResponse', updateDistributionResponse_httpStatus - The response's http status code.

Response Lenses

updateDistributionResponse_operation :: Lens' UpdateDistributionResponse (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.