Skip to content

Commit 38ca341

Browse files
committed
Amend method type in LambdaEndpoint
1 parent 086c861 commit 38ca341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
import {RestApiGateway} from "../constructs/RestApiGateway"
2323
import {LambdaFunction} from "../constructs/LambdaFunction"
2424
import {LambdaEndpoint} from "../constructs/RestApiGateway/LambdaEndpoint"
25+
import {HttpMethod} from "aws-cdk-lib/aws-lambda"
2526
import {PolicyStatement} from "aws-cdk-lib/aws-iam"
2627
import * as cdk from "aws-cdk-lib"
2728
import * as iam from "aws-cdk-lib/aws-iam"
@@ -481,7 +482,7 @@ export class EpsAssistMeStack extends Stack {
481482
new LambdaEndpoint(this, "SlackAskEpsEndpoint", {
482483
parentResource: slackResource,
483484
resourceName: "ask-eps",
484-
method: "POST",
485+
method: HttpMethod.POST,
485486
restApiGatewayRole: apiGateway.role,
486487
lambdaFunction: slackBotLambda
487488
})

0 commit comments

Comments
 (0)