interface AccessControlAllowMethodsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_AccessControlAllowMethodsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowMethodsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const accessControlAllowMethodsProperty: cloudfront_mixins.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