interface AccessControlAllowMethodsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty |
Java | software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty |
Python | aws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty |
TypeScript | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
const accessControlAllowMethodsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty = {
items: ['items'],
};
Properties
| Name | Type | Description |
|---|---|---|
| items | string[] | The list of HTTP methods. Valid values are:. |
items
Type:
string[]
The list of HTTP methods. Valid values are:.
GETDELETEHEADOPTIONSPATCHPOSTPUTALL
ALL is a special value that includes all of the listed HTTP methods.

.NET
Java
Python
TypeScript