Class: Aws::AppSync::Types::CachingConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb

Overview

Note:

When making an API call, you may pass CachingConfig data as a hash:

{
  ttl: 1,
  caching_keys: ["String"],
}

The caching configuration for a resolver that has caching enabled.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#caching_keysArray<String>

The caching keys for a resolver that has caching enabled.

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

Returns:

  • (Array<String>)


346
347
348
349
350
351
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 346

class CachingConfig < Struct.new(
  :ttl,
  :caching_keys)
  SENSITIVE = []
  include Aws::Structure
end

#ttlInteger

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

Valid values are between 1 and 3600 seconds.

Returns:

  • (Integer)


346
347
348
349
350
351
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 346

class CachingConfig < Struct.new(
  :ttl,
  :caching_keys)
  SENSITIVE = []
  include Aws::Structure
end