class CachedMethods
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CachedMethods |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CachedMethods |
![]() | software.amazon.awscdk.services.cloudfront.CachedMethods |
![]() | aws_cdk.aws_cloudfront.CachedMethods |
![]() | 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
Name | Type | Description |
---|---|---|
methods | string[] | HTTP methods supported. |
static CACHE_GET_HEAD | Cached | HEAD and GET. |
static CACHE_GET_HEAD_OPTIONS | Cached | HEAD, GET, and OPTIONS. |
methods
Type:
string[]
HTTP methods supported.
static CACHE_GET_HEAD
Type:
Cached
HEAD and GET.
static CACHE_GET_HEAD_OPTIONS
Type:
Cached
HEAD, GET, and OPTIONS.