1
+ {
2
+ "Resources" : {
3
+ "mywsapi32E6CE11" : {
4
+ "Type" : " AWS::ApiGatewayV2::Api" ,
5
+ "Properties" : {
6
+ "Name" : " mywsapi" ,
7
+ "ProtocolType" : " WEBSOCKET" ,
8
+ "RouteSelectionExpression" : " $request.body.action"
9
+ }
10
+ },
11
+ "mywsapidefaultRouteDefaultIntegrationFFCB3BA9" : {
12
+ "Type" : " AWS::ApiGatewayV2::Integration" ,
13
+ "Properties" : {
14
+ "ApiId" : {
15
+ "Ref" : " mywsapi32E6CE11"
16
+ },
17
+ "IntegrationType" : " MOCK" ,
18
+ "IntegrationUri" : " "
19
+ }
20
+ },
21
+ "mywsapidefaultRouteE9382DF8" : {
22
+ "Type" : " AWS::ApiGatewayV2::Route" ,
23
+ "Properties" : {
24
+ "ApiId" : {
25
+ "Ref" : " mywsapi32E6CE11"
26
+ },
27
+ "RouteKey" : " $default" ,
28
+ "AuthorizationType" : " NONE" ,
29
+ "Target" : {
30
+ "Fn::Join" : [
31
+ " " ,
32
+ [
33
+ " integrations/" ,
34
+ {
35
+ "Ref" : " mywsapidefaultRouteDefaultIntegrationFFCB3BA9"
36
+ }
37
+ ]
38
+ ]
39
+ }
40
+ }
41
+ },
42
+ "mywsapisendmessageRouteSendMessageIntegrationD29E12F9" : {
43
+ "Type" : " AWS::ApiGatewayV2::Integration" ,
44
+ "Properties" : {
45
+ "ApiId" : {
46
+ "Ref" : " mywsapi32E6CE11"
47
+ },
48
+ "IntegrationType" : " MOCK" ,
49
+ "IntegrationUri" : " "
50
+ }
51
+ },
52
+ "mywsapisendmessageRouteAE873328" : {
53
+ "Type" : " AWS::ApiGatewayV2::Route" ,
54
+ "Properties" : {
55
+ "ApiId" : {
56
+ "Ref" : " mywsapi32E6CE11"
57
+ },
58
+ "RouteKey" : " sendmessage" ,
59
+ "AuthorizationType" : " NONE" ,
60
+ "Target" : {
61
+ "Fn::Join" : [
62
+ " " ,
63
+ [
64
+ " integrations/" ,
65
+ {
66
+ "Ref" : " mywsapisendmessageRouteSendMessageIntegrationD29E12F9"
67
+ }
68
+ ]
69
+ ]
70
+ }
71
+ }
72
+ },
73
+ "mystage114C35EC" : {
74
+ "Type" : " AWS::ApiGatewayV2::Stage" ,
75
+ "Properties" : {
76
+ "ApiId" : {
77
+ "Ref" : " mywsapi32E6CE11"
78
+ },
79
+ "StageName" : " dev" ,
80
+ "AutoDeploy" : true
81
+ }
82
+ }
83
+ },
84
+ "Outputs" : {
85
+ "ApiEndpoint" : {
86
+ "Value" : {
87
+ "Fn::Join" : [
88
+ " " ,
89
+ [
90
+ " wss://" ,
91
+ {
92
+ "Ref" : " mywsapi32E6CE11"
93
+ },
94
+ " .execute-api." ,
95
+ {
96
+ "Ref" : " AWS::Region"
97
+ },
98
+ " ." ,
99
+ {
100
+ "Ref" : " AWS::URLSuffix"
101
+ },
102
+ " /dev"
103
+ ]
104
+ ]
105
+ }
106
+ }
107
+ }
108
+ }
0 commit comments