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
전문가
답변함 일 년 전
  • 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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인