CorsHttpMethod
- class aws_cdk.aws_apigatewayv2.CorsHttpMethod(value)
Bases:
Enum
(experimental) Supported CORS HTTP methods.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
apigwv2.HttpApi(self, "HttpProxyApi", cors_preflight=apigwv2.CorsPreflightOptions( allow_headers=["Authorization"], allow_methods=[apigwv2.CorsHttpMethod.GET, apigwv2.CorsHttpMethod.HEAD, apigwv2.CorsHttpMethod.OPTIONS, apigwv2.CorsHttpMethod.POST ], allow_origins=["*"], max_age=Duration.days(10) ) )
Attributes
- ANY
(experimental) HTTP ANY.
- Stability:
experimental
- DELETE
(experimental) HTTP DELETE.
- Stability:
experimental
- GET
(experimental) HTTP GET.
- Stability:
experimental
- HEAD
(experimental) HTTP HEAD.
- Stability:
experimental
- OPTIONS
(experimental) HTTP OPTIONS.
- Stability:
experimental
- PATCH
(experimental) HTTP PATCH.
- Stability:
experimental
- POST
(experimental) HTTP POST.
- Stability:
experimental
- PUT
(experimental) HTTP PUT.
- Stability:
experimental