interface AccessControlAllowMethodsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudFront.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudfront#CfnResponseHeadersPolicyPropsMixin_AccessControlAllowMethodsProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudfront.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudfront » CfnResponseHeadersPolicyPropsMixin » 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/cfn-property-mixins';
const accessControlAllowMethodsProperty: cloudfront.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty = {
items: ['items'],
};
Properties
| Name | Type | Description |
|---|---|---|
| items? | string[] | The list of HTTP methods. Valid values are:. |
items?
Type:
string[]
(optional)
The list of HTTP methods. Valid values are:.
GETDELETEHEADOPTIONSPATCHPOSTPUTALL
ALL is a special value that includes all of the listed HTTP methods.

.NET
Go
Java
Python
TypeScript