CorsHttpMethod
- class aws_cdk.aws_apigatewayv2.CorsHttpMethod(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Supported CORS HTTP methods.
- 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
HTTP ANY.
- DELETE
HTTP DELETE.
- GET
HTTP GET.
- HEAD
HTTP HEAD.
- OPTIONS
HTTP OPTIONS.
- PATCH
HTTP PATCH.
- POST
HTTP POST.
- PUT
HTTP PUT.