Class CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty : CfnResponseHeadersPolicy.IAccessControlAllowMethodsProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty Implements CfnResponseHeadersPolicy.IAccessControlAllowMethodsProperty
Remarks
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var accessControlAllowMethodsProperty = new AccessControlAllowMethodsProperty {
Items = new [] { "items" }
};
Synopsis
Constructors
| AccessControlAllowMethodsProperty() | A list of HTTP methods that CloudFront includes as values for the |
Properties
| Items | The list of HTTP methods. Valid values are:. |
Constructors
AccessControlAllowMethodsProperty()
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.
public AccessControlAllowMethodsProperty()
Remarks
For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var accessControlAllowMethodsProperty = new AccessControlAllowMethodsProperty {
Items = new [] { "items" }
};
Properties
Items
The list of HTTP methods. Valid values are:.
public string[] Items { get; set; }
Property Value
string[]
Remarks
ALL is a special value that includes all of the listed HTTP methods.