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;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
cached_methods = cloudfront.CachedMethods.CACHE_GET_HEAD
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
CachedMethods cachedMethods = CachedMethods.CACHE_GET_HEAD;
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var cachedMethods = CachedMethods.CACHE_GET_HEAD;
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cachedMethods := awscdk.Aws_cloudfront.CachedMethods_CACHE_GET_HEAD()
Properties
CACHE_GET_HEADCachedMethodscache_get_headCachedMethodsCACHE_GET_HEADCachedMethodsCACHE_GET_HEADCachedMethodsCACHE_GET_HEADCachedMethodsstatic#HEAD and GET.
CACHE_GET_HEAD_OPTIONSCachedMethodscache_get_head_optionsCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsCACHE_GET_HEAD_OPTIONSCachedMethodsstatic#HEAD, GET, and OPTIONS.
HTTP methods supported.