aws-cdk-lib.aws_cloudfront.CachedMethods

class CachedMethods

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CachedMethods
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CachedMethods
Javasoftware.amazon.awscdk.services.cloudfront.CachedMethods
Pythonaws_cdk.aws_cloudfront.CachedMethods
TypeScript (source)aws-cdk-lib » aws_cloudfront » CachedMethods

The HTTP methods that the Behavior will cache requests on.

Example

// 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

NameTypeDescription
methodsstring[]HTTP methods supported.
static CACHE_GET_HEADCachedMethodsHEAD and GET.
static CACHE_GET_HEAD_OPTIONSCachedMethodsHEAD, GET, and OPTIONS.

methods

Type: string[]

HTTP methods supported.


static CACHE_GET_HEAD

Type: CachedMethods

HEAD and GET.


static CACHE_GET_HEAD_OPTIONS

Type: CachedMethods

HEAD, GET, and OPTIONS.