Class CorsHttpMethod
(experimental) Supported CORS HTTP methods.
Inheritance
System.Object
CorsHttpMethod
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public sealed class CorsHttpMethod : Enum
Syntax (vb)
Public NotInheritable Class CorsHttpMethod
Inherits
Enum
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
new HttpApi(this, "HttpProxyApi", new HttpApiProps {
CorsPreflight = new CorsPreflightOptions {
AllowHeaders = new [] { "Authorization" },
AllowMethods = new [] { CorsHttpMethod.GET, CorsHttpMethod.HEAD, CorsHttpMethod.OPTIONS, CorsHttpMethod.POST },
AllowOrigins = new [] { "*" },
MaxAge = Duration.Days(10)
}
});
Synopsis
Fields
ANY | (experimental) HTTP ANY. |
DELETE | (experimental) HTTP DELETE. |
GET | (experimental) HTTP GET. |
HEAD | (experimental) HTTP HEAD. |
OPTIONS | (experimental) HTTP OPTIONS. |
PATCH | (experimental) HTTP PATCH. |
POST | (experimental) HTTP POST. |
PUT | (experimental) HTTP PUT. |
value__ |
Fields
ANY
(experimental) HTTP ANY.
public const CorsHttpMethod ANY
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
DELETE
(experimental) HTTP DELETE.
public const CorsHttpMethod DELETE
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
GET
(experimental) HTTP GET.
public const CorsHttpMethod GET
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
HEAD
(experimental) HTTP HEAD.
public const CorsHttpMethod HEAD
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
OPTIONS
(experimental) HTTP OPTIONS.
public const CorsHttpMethod OPTIONS
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
PATCH
(experimental) HTTP PATCH.
public const CorsHttpMethod PATCH
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
POST
(experimental) HTTP POST.
public const CorsHttpMethod POST
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
PUT
(experimental) HTTP PUT.
public const CorsHttpMethod PUT
Field Value
Type | Description |
---|---|
CorsHttpMethod |
Remarks
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |