Skip to content

CloudFront  >  Dictionaries  >  CachedMethodsDict

CachedMethodsDict

Dictionary Type

CachedMethodsDict

Bases: TypedDict

Dictionary form of CachedMethods.

Attributes

items instance-attribute

A complex type that contains the HTTP methods that you want CloudFront to cache responses to. Valid values for CachedMethods include GET, HEAD, and OPTIONS, depending on which caching option you choose. For more information, see the preceding section.

quantity instance-attribute
quantity: Required[int]

The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).