interface AccessControlAllowMethodsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_AccessControlAllowMethodsProperty |
Java | software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
items | string[] | 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.