class CachedMethods
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.CachedMethods |
Java | software.amazon.awscdk.services.cloudfront.CachedMethods |
Python | aws_cdk.aws_cloudfront.CachedMethods |
TypeScript (source) | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
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.