aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty

interface AccessControlAllowMethodsProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_AccessControlAllowMethodsProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » AccessControlAllowMethodsProperty

A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.

For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.

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 accessControlAllowMethodsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty = {
  items: ['items'],
};

Properties

NameTypeDescription
itemsstring[]The list of HTTP methods. Valid values are:.

items

Type: string[]

The list of HTTP methods. Valid values are:.

  • GET
  • DELETE
  • HEAD
  • OPTIONS
  • PATCH
  • POST
  • PUT
  • ALL

ALL is a special value that includes all of the listed HTTP methods.