libZSservicesZSamazonka-appsyncZSamazonka-appsync
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.AppSync.Types.CachingConfig

Description

 
Synopsis

Documentation

data CachingConfig Source #

The caching configuration for a resolver that has caching enabled.

See: newCachingConfig smart constructor.

Constructors

CachingConfig' 

Fields

  • ttl :: Maybe Integer

    The TTL in seconds for a resolver that has caching enabled.

    Valid values are between 1 and 3600 seconds.

  • cachingKeys :: Maybe [Text]

    The caching keys for a resolver that has caching enabled.

    Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.

Instances

Instances details
Eq CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

Read CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

Show CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

Generic CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

Associated Types

type Rep CachingConfig :: Type -> Type #

NFData CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

Methods

rnf :: CachingConfig -> () #

Hashable CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

ToJSON CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

FromJSON CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

type Rep CachingConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.CachingConfig

type Rep CachingConfig = D1 ('MetaData "CachingConfig" "Amazonka.AppSync.Types.CachingConfig" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CachingConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "cachingKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

newCachingConfig :: CachingConfig Source #

Create a value of CachingConfig 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:ttl:CachingConfig', cachingConfig_ttl - The TTL in seconds for a resolver that has caching enabled.

Valid values are between 1 and 3600 seconds.

$sel:cachingKeys:CachingConfig', cachingConfig_cachingKeys - The caching keys for a resolver that has caching enabled.

Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.

cachingConfig_ttl :: Lens' CachingConfig (Maybe Integer) Source #

The TTL in seconds for a resolver that has caching enabled.

Valid values are between 1 and 3600 seconds.

cachingConfig_cachingKeys :: Lens' CachingConfig (Maybe [Text]) Source #

The caching keys for a resolver that has caching enabled.

Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.