Skip to content
v2.274.0

CachedMethods Class ​

The HTTP methods that the Behavior will cache requests on.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cachedMethods = cloudfront.CachedMethods.CACHE_GET_HEAD;

Properties ​

CACHE_GET_HEADCachedMethodscache_get_headCachedMethodsCACHE_GET_HEADCachedMethodsCACHE_GET_HEADCachedMethodsCACHE_GET_HEADCachedMethodsrequiredstatic#
HEAD and GET.
CACHE_GET_HEAD_OPTIONSCachedMethodscache_get_head_optionsCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsrequiredstatic#
HEAD, GET, and OPTIONS.
methodsstring[]methodstyping.List[str]methodsList<String>Methodsstring[]Methods*[]*stringrequired#
HTTP methods supported.