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.Types.CacheBehavior

Description

 
Synopsis

Documentation

data CacheBehavior Source #

Describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

See: newCacheBehavior smart constructor.

Constructors

CacheBehavior' 

Fields

  • behavior :: Maybe BehaviorEnum

    The cache behavior of the distribution.

    The following cache behaviors can be specified:

    • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.
    • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

Instances

Instances details
Eq CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

Read CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

Show CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

Generic CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

Associated Types

type Rep CacheBehavior :: Type -> Type #

NFData CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

Methods

rnf :: CacheBehavior -> () #

Hashable CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

ToJSON CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

FromJSON CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

type Rep CacheBehavior Source # 
Instance details

Defined in Amazonka.Lightsail.Types.CacheBehavior

type Rep CacheBehavior = D1 ('MetaData "CacheBehavior" "Amazonka.Lightsail.Types.CacheBehavior" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CacheBehavior'" 'PrefixI 'True) (S1 ('MetaSel ('Just "behavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BehaviorEnum))))

newCacheBehavior :: CacheBehavior Source #

Create a value of CacheBehavior 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:behavior:CacheBehavior', cacheBehavior_behavior - The cache behavior of the distribution.

The following cache behaviors can be specified:

  • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.
  • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

cacheBehavior_behavior :: Lens' CacheBehavior (Maybe BehaviorEnum) Source #

The cache behavior of the distribution.

The following cache behaviors can be specified:

  • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.
  • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.