WebSocket API Allow CloudWatch Logs TypeScript

0

I'm working with WebSocket API and I'm having a hard time configuring and setting up CloudWatch logs for my WebSocketStage() in CDK using TypeScript. I don't know if I'm missing something. Any idea?

2 回答
0

Hi,

I assume you went through this: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.StageProps.html.

What is not working? Can you elaborate more?

profile picture
专家
已回答 1 年前
  • Hello, yeah I have seen those properties but they are not available in WebSocketApi() nor in WebSocketStage()

0

For folks who would stumble upon this question, As of writing this, WebSocket construct yet not allows configuring the AccessLogs. However internally cfn constructs does support setting up logs. This can be achieved via EscapeHatches and here you can find examples on how to do so. https://github.com/aws/aws-cdk/issues/11100

已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则