Skip to content

Commit dad112e

Browse files
authored
feat(apigatewayv2): WebSocketStage support accessLogSettings (#34766)
### Issue # (if applicable) Closes #21935 ### Reason for this change WebSocketStage support `accessLogSettings` ### Description of changes - WebSocketStage support `accessLogSettings` - Add default logging format for WebSocket, different from Http ### Describe any new or updated permissions being added ### Description of how you validated changes Unit + Integ ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent f618638 commit dad112e

File tree

15 files changed

+974
-215
lines changed

15 files changed

+974
-215
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/aws-cdk-aws-apigatewayv2-websocket-stage.assets.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/aws-cdk-aws-apigatewayv2-websocket-stage.template.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"Resources": {
3+
"MyLogGroup5C0DAD85": {
4+
"Type": "AWS::Logs::LogGroup",
5+
"Properties": {
6+
"RetentionInDays": 731
7+
},
8+
"UpdateReplacePolicy": "Delete",
9+
"DeletionPolicy": "Delete"
10+
},
311
"WebSocketApi34BCF99B": {
412
"Type": "AWS::ApiGatewayV2::Api",
513
"Properties": {
@@ -11,6 +19,15 @@
1119
"WebSocketStageC46B7E43": {
1220
"Type": "AWS::ApiGatewayV2::Stage",
1321
"Properties": {
22+
"AccessLogSettings": {
23+
"DestinationArn": {
24+
"Fn::GetAtt": [
25+
"MyLogGroup5C0DAD85",
26+
"Arn"
27+
]
28+
},
29+
"Format": "{\"extendedRequestId\":\"$context.extendedRequestId\",\"requestTime\":\"$context.requestTime\"}"
30+
},
1431
"ApiId": {
1532
"Ref": "WebSocketApi34BCF99B"
1633
},

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/awscdkawsapigatewayv2websocketstagetestDefaultTestDeployAssert19BC2E43.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/awscdkawsapigatewayv2websocketstagetestDefaultTestDeployAssert19BC2E43.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2/test/websocket/integ.stage.js.snapshot/integ.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)