@aws-sdk/client-gameliftstreams 3.762.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +404 -0
  3. package/dist-cjs/GameLiftStreams.js +59 -0
  4. package/dist-cjs/GameLiftStreamsClient.js +51 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AddStreamGroupLocationsCommand.js +26 -0
  8. package/dist-cjs/commands/AssociateApplicationsCommand.js +26 -0
  9. package/dist-cjs/commands/CreateApplicationCommand.js +26 -0
  10. package/dist-cjs/commands/CreateStreamGroupCommand.js +26 -0
  11. package/dist-cjs/commands/CreateStreamSessionConnectionCommand.js +27 -0
  12. package/dist-cjs/commands/DeleteApplicationCommand.js +26 -0
  13. package/dist-cjs/commands/DeleteStreamGroupCommand.js +26 -0
  14. package/dist-cjs/commands/DisassociateApplicationsCommand.js +26 -0
  15. package/dist-cjs/commands/ExportStreamSessionFilesCommand.js +26 -0
  16. package/dist-cjs/commands/GetApplicationCommand.js +26 -0
  17. package/dist-cjs/commands/GetStreamGroupCommand.js +26 -0
  18. package/dist-cjs/commands/GetStreamSessionCommand.js +27 -0
  19. package/dist-cjs/commands/ListApplicationsCommand.js +26 -0
  20. package/dist-cjs/commands/ListStreamGroupsCommand.js +26 -0
  21. package/dist-cjs/commands/ListStreamSessionsByAccountCommand.js +26 -0
  22. package/dist-cjs/commands/ListStreamSessionsCommand.js +26 -0
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  24. package/dist-cjs/commands/RemoveStreamGroupLocationsCommand.js +26 -0
  25. package/dist-cjs/commands/StartStreamSessionCommand.js +27 -0
  26. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  27. package/dist-cjs/commands/TerminateStreamSessionCommand.js +26 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  29. package/dist-cjs/commands/UpdateApplicationCommand.js +26 -0
  30. package/dist-cjs/commands/UpdateStreamGroupCommand.js +26 -0
  31. package/dist-cjs/commands/index.js +27 -0
  32. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  33. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  34. package/dist-cjs/endpoint/ruleset.js +7 -0
  35. package/dist-cjs/extensionConfiguration.js +2 -0
  36. package/dist-cjs/index.js +12 -0
  37. package/dist-cjs/models/GameLiftStreamsServiceException.js +12 -0
  38. package/dist-cjs/models/index.js +4 -0
  39. package/dist-cjs/models/models_0.js +211 -0
  40. package/dist-cjs/pagination/Interfaces.js +2 -0
  41. package/dist-cjs/pagination/ListApplicationsPaginator.js +7 -0
  42. package/dist-cjs/pagination/ListStreamGroupsPaginator.js +7 -0
  43. package/dist-cjs/pagination/ListStreamSessionsByAccountPaginator.js +7 -0
  44. package/dist-cjs/pagination/ListStreamSessionsPaginator.js +7 -0
  45. package/dist-cjs/pagination/index.js +8 -0
  46. package/dist-cjs/protocols/Aws_restJson1.js +1005 -0
  47. package/dist-cjs/runtimeConfig.browser.js +39 -0
  48. package/dist-cjs/runtimeConfig.js +52 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +34 -0
  51. package/dist-cjs/runtimeExtensions.js +25 -0
  52. package/dist-cjs/waiters/index.js +8 -0
  53. package/dist-cjs/waiters/waitForApplicationDeleted.js +30 -0
  54. package/dist-cjs/waiters/waitForApplicationReady.js +45 -0
  55. package/dist-cjs/waiters/waitForStreamGroupActive.js +63 -0
  56. package/dist-cjs/waiters/waitForStreamGroupDeleted.js +30 -0
  57. package/dist-cjs/waiters/waitForStreamSessionActive.js +45 -0
  58. package/dist-es/GameLiftStreams.js +55 -0
  59. package/dist-es/GameLiftStreamsClient.js +47 -0
  60. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  61. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  62. package/dist-es/commands/AddStreamGroupLocationsCommand.js +22 -0
  63. package/dist-es/commands/AssociateApplicationsCommand.js +22 -0
  64. package/dist-es/commands/CreateApplicationCommand.js +22 -0
  65. package/dist-es/commands/CreateStreamGroupCommand.js +22 -0
  66. package/dist-es/commands/CreateStreamSessionConnectionCommand.js +23 -0
  67. package/dist-es/commands/DeleteApplicationCommand.js +22 -0
  68. package/dist-es/commands/DeleteStreamGroupCommand.js +22 -0
  69. package/dist-es/commands/DisassociateApplicationsCommand.js +22 -0
  70. package/dist-es/commands/ExportStreamSessionFilesCommand.js +22 -0
  71. package/dist-es/commands/GetApplicationCommand.js +22 -0
  72. package/dist-es/commands/GetStreamGroupCommand.js +22 -0
  73. package/dist-es/commands/GetStreamSessionCommand.js +23 -0
  74. package/dist-es/commands/ListApplicationsCommand.js +22 -0
  75. package/dist-es/commands/ListStreamGroupsCommand.js +22 -0
  76. package/dist-es/commands/ListStreamSessionsByAccountCommand.js +22 -0
  77. package/dist-es/commands/ListStreamSessionsCommand.js +22 -0
  78. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  79. package/dist-es/commands/RemoveStreamGroupLocationsCommand.js +22 -0
  80. package/dist-es/commands/StartStreamSessionCommand.js +23 -0
  81. package/dist-es/commands/TagResourceCommand.js +22 -0
  82. package/dist-es/commands/TerminateStreamSessionCommand.js +22 -0
  83. package/dist-es/commands/UntagResourceCommand.js +22 -0
  84. package/dist-es/commands/UpdateApplicationCommand.js +22 -0
  85. package/dist-es/commands/UpdateStreamGroupCommand.js +22 -0
  86. package/dist-es/commands/index.js +24 -0
  87. package/dist-es/endpoint/EndpointParameters.js +12 -0
  88. package/dist-es/endpoint/endpointResolver.js +14 -0
  89. package/dist-es/endpoint/ruleset.js +4 -0
  90. package/dist-es/extensionConfiguration.js +1 -0
  91. package/dist-es/index.js +7 -0
  92. package/dist-es/models/GameLiftStreamsServiceException.js +8 -0
  93. package/dist-es/models/index.js +1 -0
  94. package/dist-es/models/models_0.js +196 -0
  95. package/dist-es/pagination/Interfaces.js +1 -0
  96. package/dist-es/pagination/ListApplicationsPaginator.js +4 -0
  97. package/dist-es/pagination/ListStreamGroupsPaginator.js +4 -0
  98. package/dist-es/pagination/ListStreamSessionsByAccountPaginator.js +4 -0
  99. package/dist-es/pagination/ListStreamSessionsPaginator.js +4 -0
  100. package/dist-es/pagination/index.js +5 -0
  101. package/dist-es/protocols/Aws_restJson1.js +954 -0
  102. package/dist-es/runtimeConfig.browser.js +34 -0
  103. package/dist-es/runtimeConfig.js +47 -0
  104. package/dist-es/runtimeConfig.native.js +11 -0
  105. package/dist-es/runtimeConfig.shared.js +30 -0
  106. package/dist-es/runtimeExtensions.js +21 -0
  107. package/dist-es/waiters/index.js +5 -0
  108. package/dist-es/waiters/waitForApplicationDeleted.js +25 -0
  109. package/dist-es/waiters/waitForApplicationReady.js +40 -0
  110. package/dist-es/waiters/waitForStreamGroupActive.js +58 -0
  111. package/dist-es/waiters/waitForStreamGroupDeleted.js +25 -0
  112. package/dist-es/waiters/waitForStreamSessionActive.js +40 -0
  113. package/dist-types/GameLiftStreams.d.ts +187 -0
  114. package/dist-types/GameLiftStreamsClient.d.ts +217 -0
  115. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  116. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  117. package/dist-types/commands/AddStreamGroupLocationsCommand.d.ts +116 -0
  118. package/dist-types/commands/AssociateApplicationsCommand.d.ts +99 -0
  119. package/dist-types/commands/CreateApplicationCommand.d.ts +146 -0
  120. package/dist-types/commands/CreateStreamGroupCommand.d.ts +158 -0
  121. package/dist-types/commands/CreateStreamSessionConnectionCommand.d.ts +114 -0
  122. package/dist-types/commands/DeleteApplicationCommand.d.ts +116 -0
  123. package/dist-types/commands/DeleteStreamGroupCommand.d.ts +93 -0
  124. package/dist-types/commands/DisassociateApplicationsCommand.d.ts +100 -0
  125. package/dist-types/commands/ExportStreamSessionFilesCommand.d.ts +116 -0
  126. package/dist-types/commands/GetApplicationCommand.d.ts +116 -0
  127. package/dist-types/commands/GetStreamGroupCommand.d.ts +116 -0
  128. package/dist-types/commands/GetStreamSessionCommand.d.ts +119 -0
  129. package/dist-types/commands/ListApplicationsCommand.d.ts +103 -0
  130. package/dist-types/commands/ListStreamGroupsCommand.d.ts +104 -0
  131. package/dist-types/commands/ListStreamSessionsByAccountCommand.d.ts +109 -0
  132. package/dist-types/commands/ListStreamSessionsCommand.d.ts +113 -0
  133. package/dist-types/commands/ListTagsForResourceCommand.d.ts +100 -0
  134. package/dist-types/commands/RemoveStreamGroupLocationsCommand.d.ts +95 -0
  135. package/dist-types/commands/StartStreamSessionCommand.d.ts +156 -0
  136. package/dist-types/commands/TagResourceCommand.d.ts +107 -0
  137. package/dist-types/commands/TerminateStreamSessionCommand.d.ts +91 -0
  138. package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
  139. package/dist-types/commands/UpdateApplicationCommand.d.ts +122 -0
  140. package/dist-types/commands/UpdateStreamGroupCommand.d.ts +154 -0
  141. package/dist-types/commands/index.d.ts +24 -0
  142. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  143. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  144. package/dist-types/endpoint/ruleset.d.ts +2 -0
  145. package/dist-types/extensionConfiguration.d.ts +9 -0
  146. package/dist-types/index.d.ts +21 -0
  147. package/dist-types/models/GameLiftStreamsServiceException.d.ts +14 -0
  148. package/dist-types/models/index.d.ts +1 -0
  149. package/dist-types/models/models_0.d.ts +3555 -0
  150. package/dist-types/pagination/Interfaces.d.ts +8 -0
  151. package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
  152. package/dist-types/pagination/ListStreamGroupsPaginator.d.ts +7 -0
  153. package/dist-types/pagination/ListStreamSessionsByAccountPaginator.d.ts +7 -0
  154. package/dist-types/pagination/ListStreamSessionsPaginator.d.ts +7 -0
  155. package/dist-types/pagination/index.d.ts +5 -0
  156. package/dist-types/protocols/Aws_restJson1.d.ts +218 -0
  157. package/dist-types/runtimeConfig.browser.d.ts +49 -0
  158. package/dist-types/runtimeConfig.d.ts +49 -0
  159. package/dist-types/runtimeConfig.native.d.ts +48 -0
  160. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  161. package/dist-types/runtimeExtensions.d.ts +17 -0
  162. package/dist-types/ts3.4/GameLiftStreams.d.ts +418 -0
  163. package/dist-types/ts3.4/GameLiftStreamsClient.d.ts +264 -0
  164. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  165. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  166. package/dist-types/ts3.4/commands/AddStreamGroupLocationsCommand.d.ts +51 -0
  167. package/dist-types/ts3.4/commands/AssociateApplicationsCommand.d.ts +51 -0
  168. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +50 -0
  169. package/dist-types/ts3.4/commands/CreateStreamGroupCommand.d.ts +50 -0
  170. package/dist-types/ts3.4/commands/CreateStreamSessionConnectionCommand.d.ts +51 -0
  171. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +45 -0
  172. package/dist-types/ts3.4/commands/DeleteStreamGroupCommand.d.ts +45 -0
  173. package/dist-types/ts3.4/commands/DisassociateApplicationsCommand.d.ts +51 -0
  174. package/dist-types/ts3.4/commands/ExportStreamSessionFilesCommand.d.ts +51 -0
  175. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +47 -0
  176. package/dist-types/ts3.4/commands/GetStreamGroupCommand.d.ts +47 -0
  177. package/dist-types/ts3.4/commands/GetStreamSessionCommand.d.ts +50 -0
  178. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +50 -0
  179. package/dist-types/ts3.4/commands/ListStreamGroupsCommand.d.ts +50 -0
  180. package/dist-types/ts3.4/commands/ListStreamSessionsByAccountCommand.d.ts +51 -0
  181. package/dist-types/ts3.4/commands/ListStreamSessionsCommand.d.ts +51 -0
  182. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  183. package/dist-types/ts3.4/commands/RemoveStreamGroupLocationsCommand.d.ts +47 -0
  184. package/dist-types/ts3.4/commands/StartStreamSessionCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  186. package/dist-types/ts3.4/commands/TerminateStreamSessionCommand.d.ts +46 -0
  187. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  188. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +50 -0
  189. package/dist-types/ts3.4/commands/UpdateStreamGroupCommand.d.ts +50 -0
  190. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  191. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  192. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  193. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  194. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  195. package/dist-types/ts3.4/index.d.ts +10 -0
  196. package/dist-types/ts3.4/models/GameLiftStreamsServiceException.d.ts +9 -0
  197. package/dist-types/ts3.4/models/index.d.ts +1 -0
  198. package/dist-types/ts3.4/models/models_0.d.ts +518 -0
  199. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  200. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
  201. package/dist-types/ts3.4/pagination/ListStreamGroupsPaginator.d.ts +11 -0
  202. package/dist-types/ts3.4/pagination/ListStreamSessionsByAccountPaginator.d.ts +11 -0
  203. package/dist-types/ts3.4/pagination/ListStreamSessionsPaginator.d.ts +11 -0
  204. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  205. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +293 -0
  206. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
  207. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  208. package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
  209. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  210. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  211. package/dist-types/ts3.4/waiters/index.d.ts +5 -0
  212. package/dist-types/ts3.4/waiters/waitForApplicationDeleted.d.ts +11 -0
  213. package/dist-types/ts3.4/waiters/waitForApplicationReady.d.ts +11 -0
  214. package/dist-types/ts3.4/waiters/waitForStreamGroupActive.d.ts +11 -0
  215. package/dist-types/ts3.4/waiters/waitForStreamGroupDeleted.d.ts +11 -0
  216. package/dist-types/ts3.4/waiters/waitForStreamSessionActive.d.ts +11 -0
  217. package/dist-types/waiters/index.d.ts +5 -0
  218. package/dist-types/waiters/waitForApplicationDeleted.d.ts +14 -0
  219. package/dist-types/waiters/waitForApplicationReady.d.ts +14 -0
  220. package/dist-types/waiters/waitForStreamGroupActive.d.ts +14 -0
  221. package/dist-types/waiters/waitForStreamGroupDeleted.d.ts +14 -0
  222. package/dist-types/waiters/waitForStreamSessionActive.d.ts +14 -0
  223. package/package.json +102 -0
@@ -0,0 +1,1005 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.de_UpdateStreamGroupCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TerminateStreamSessionCommand = exports.de_TagResourceCommand = exports.de_StartStreamSessionCommand = exports.de_RemoveStreamGroupLocationsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamSessionsByAccountCommand = exports.de_ListStreamSessionsCommand = exports.de_ListStreamGroupsCommand = exports.de_ListApplicationsCommand = exports.de_GetStreamSessionCommand = exports.de_GetStreamGroupCommand = exports.de_GetApplicationCommand = exports.de_ExportStreamSessionFilesCommand = exports.de_DisassociateApplicationsCommand = exports.de_DeleteStreamGroupCommand = exports.de_DeleteApplicationCommand = exports.de_CreateStreamSessionConnectionCommand = exports.de_CreateStreamGroupCommand = exports.de_CreateApplicationCommand = exports.de_AssociateApplicationsCommand = exports.de_AddStreamGroupLocationsCommand = exports.se_UpdateStreamGroupCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TerminateStreamSessionCommand = exports.se_TagResourceCommand = exports.se_StartStreamSessionCommand = exports.se_RemoveStreamGroupLocationsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamSessionsByAccountCommand = exports.se_ListStreamSessionsCommand = exports.se_ListStreamGroupsCommand = exports.se_ListApplicationsCommand = exports.se_GetStreamSessionCommand = exports.se_GetStreamGroupCommand = exports.se_GetApplicationCommand = exports.se_ExportStreamSessionFilesCommand = exports.se_DisassociateApplicationsCommand = exports.se_DeleteStreamGroupCommand = exports.se_DeleteApplicationCommand = exports.se_CreateStreamSessionConnectionCommand = exports.se_CreateStreamGroupCommand = exports.se_CreateApplicationCommand = exports.se_AssociateApplicationsCommand = exports.se_AddStreamGroupLocationsCommand = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const core_2 = require("@smithy/core");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const uuid_1 = require("uuid");
8
+ const GameLiftStreamsServiceException_1 = require("../models/GameLiftStreamsServiceException");
9
+ const models_0_1 = require("../models/models_0");
10
+ const se_AddStreamGroupLocationsCommand = async (input, context) => {
11
+ const b = (0, core_2.requestBuilder)(input, context);
12
+ const headers = {
13
+ "content-type": "application/json",
14
+ };
15
+ b.bp("/streamgroups/{Identifier}/locations");
16
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
17
+ let body;
18
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
19
+ LocationConfigurations: (_) => (0, smithy_client_1._json)(_),
20
+ }));
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
23
+ };
24
+ exports.se_AddStreamGroupLocationsCommand = se_AddStreamGroupLocationsCommand;
25
+ const se_AssociateApplicationsCommand = async (input, context) => {
26
+ const b = (0, core_2.requestBuilder)(input, context);
27
+ const headers = {
28
+ "content-type": "application/json",
29
+ };
30
+ b.bp("/streamgroups/{Identifier}/associations");
31
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
32
+ let body;
33
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
34
+ ApplicationIdentifiers: (_) => (0, smithy_client_1._json)(_),
35
+ }));
36
+ b.m("POST").h(headers).b(body);
37
+ return b.build();
38
+ };
39
+ exports.se_AssociateApplicationsCommand = se_AssociateApplicationsCommand;
40
+ const se_CreateApplicationCommand = async (input, context) => {
41
+ const b = (0, core_2.requestBuilder)(input, context);
42
+ const headers = {
43
+ "content-type": "application/json",
44
+ };
45
+ b.bp("/applications");
46
+ let body;
47
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
48
+ ApplicationLogOutputUri: [],
49
+ ApplicationLogPaths: (_) => (0, smithy_client_1._json)(_),
50
+ ApplicationSourceUri: [],
51
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
52
+ Description: [],
53
+ ExecutablePath: [],
54
+ RuntimeEnvironment: (_) => (0, smithy_client_1._json)(_),
55
+ Tags: (_) => (0, smithy_client_1._json)(_),
56
+ }));
57
+ b.m("POST").h(headers).b(body);
58
+ return b.build();
59
+ };
60
+ exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
61
+ const se_CreateStreamGroupCommand = async (input, context) => {
62
+ const b = (0, core_2.requestBuilder)(input, context);
63
+ const headers = {
64
+ "content-type": "application/json",
65
+ };
66
+ b.bp("/streamgroups");
67
+ let body;
68
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
69
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
70
+ DefaultApplicationIdentifier: [],
71
+ Description: [],
72
+ LocationConfigurations: (_) => (0, smithy_client_1._json)(_),
73
+ StreamClass: [],
74
+ Tags: (_) => (0, smithy_client_1._json)(_),
75
+ }));
76
+ b.m("POST").h(headers).b(body);
77
+ return b.build();
78
+ };
79
+ exports.se_CreateStreamGroupCommand = se_CreateStreamGroupCommand;
80
+ const se_CreateStreamSessionConnectionCommand = async (input, context) => {
81
+ const b = (0, core_2.requestBuilder)(input, context);
82
+ const headers = {
83
+ "content-type": "application/json",
84
+ };
85
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/connections");
86
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
87
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
88
+ let body;
89
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
90
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
91
+ SignalRequest: [],
92
+ }));
93
+ b.m("POST").h(headers).b(body);
94
+ return b.build();
95
+ };
96
+ exports.se_CreateStreamSessionConnectionCommand = se_CreateStreamSessionConnectionCommand;
97
+ const se_DeleteApplicationCommand = async (input, context) => {
98
+ const b = (0, core_2.requestBuilder)(input, context);
99
+ const headers = {};
100
+ b.bp("/applications/{Identifier}");
101
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
102
+ let body;
103
+ b.m("DELETE").h(headers).b(body);
104
+ return b.build();
105
+ };
106
+ exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
107
+ const se_DeleteStreamGroupCommand = async (input, context) => {
108
+ const b = (0, core_2.requestBuilder)(input, context);
109
+ const headers = {};
110
+ b.bp("/streamgroups/{Identifier}");
111
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
112
+ let body;
113
+ b.m("DELETE").h(headers).b(body);
114
+ return b.build();
115
+ };
116
+ exports.se_DeleteStreamGroupCommand = se_DeleteStreamGroupCommand;
117
+ const se_DisassociateApplicationsCommand = async (input, context) => {
118
+ const b = (0, core_2.requestBuilder)(input, context);
119
+ const headers = {
120
+ "content-type": "application/json",
121
+ };
122
+ b.bp("/streamgroups/{Identifier}/disassociations");
123
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
124
+ let body;
125
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
126
+ ApplicationIdentifiers: (_) => (0, smithy_client_1._json)(_),
127
+ }));
128
+ b.m("POST").h(headers).b(body);
129
+ return b.build();
130
+ };
131
+ exports.se_DisassociateApplicationsCommand = se_DisassociateApplicationsCommand;
132
+ const se_ExportStreamSessionFilesCommand = async (input, context) => {
133
+ const b = (0, core_2.requestBuilder)(input, context);
134
+ const headers = {
135
+ "content-type": "application/json",
136
+ };
137
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}/exportfiles");
138
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
139
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
140
+ let body;
141
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
142
+ OutputUri: [],
143
+ }));
144
+ b.m("PUT").h(headers).b(body);
145
+ return b.build();
146
+ };
147
+ exports.se_ExportStreamSessionFilesCommand = se_ExportStreamSessionFilesCommand;
148
+ const se_GetApplicationCommand = async (input, context) => {
149
+ const b = (0, core_2.requestBuilder)(input, context);
150
+ const headers = {};
151
+ b.bp("/applications/{Identifier}");
152
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
153
+ let body;
154
+ b.m("GET").h(headers).b(body);
155
+ return b.build();
156
+ };
157
+ exports.se_GetApplicationCommand = se_GetApplicationCommand;
158
+ const se_GetStreamGroupCommand = async (input, context) => {
159
+ const b = (0, core_2.requestBuilder)(input, context);
160
+ const headers = {};
161
+ b.bp("/streamgroups/{Identifier}");
162
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
163
+ let body;
164
+ b.m("GET").h(headers).b(body);
165
+ return b.build();
166
+ };
167
+ exports.se_GetStreamGroupCommand = se_GetStreamGroupCommand;
168
+ const se_GetStreamSessionCommand = async (input, context) => {
169
+ const b = (0, core_2.requestBuilder)(input, context);
170
+ const headers = {};
171
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
172
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
173
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
174
+ let body;
175
+ b.m("GET").h(headers).b(body);
176
+ return b.build();
177
+ };
178
+ exports.se_GetStreamSessionCommand = se_GetStreamSessionCommand;
179
+ const se_ListApplicationsCommand = async (input, context) => {
180
+ const b = (0, core_2.requestBuilder)(input, context);
181
+ const headers = {};
182
+ b.bp("/applications");
183
+ const query = (0, smithy_client_1.map)({
184
+ [_NT]: [, input[_NT]],
185
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
186
+ });
187
+ let body;
188
+ b.m("GET").h(headers).q(query).b(body);
189
+ return b.build();
190
+ };
191
+ exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
192
+ const se_ListStreamGroupsCommand = async (input, context) => {
193
+ const b = (0, core_2.requestBuilder)(input, context);
194
+ const headers = {};
195
+ b.bp("/streamgroups");
196
+ const query = (0, smithy_client_1.map)({
197
+ [_NT]: [, input[_NT]],
198
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
199
+ });
200
+ let body;
201
+ b.m("GET").h(headers).q(query).b(body);
202
+ return b.build();
203
+ };
204
+ exports.se_ListStreamGroupsCommand = se_ListStreamGroupsCommand;
205
+ const se_ListStreamSessionsCommand = async (input, context) => {
206
+ const b = (0, core_2.requestBuilder)(input, context);
207
+ const headers = {};
208
+ b.bp("/streamgroups/{Identifier}/streamsessions");
209
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
210
+ const query = (0, smithy_client_1.map)({
211
+ [_S]: [, input[_S]],
212
+ [_EFS]: [, input[_EFS]],
213
+ [_NT]: [, input[_NT]],
214
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
215
+ });
216
+ let body;
217
+ b.m("GET").h(headers).q(query).b(body);
218
+ return b.build();
219
+ };
220
+ exports.se_ListStreamSessionsCommand = se_ListStreamSessionsCommand;
221
+ const se_ListStreamSessionsByAccountCommand = async (input, context) => {
222
+ const b = (0, core_2.requestBuilder)(input, context);
223
+ const headers = {};
224
+ b.bp("/streamsessions");
225
+ const query = (0, smithy_client_1.map)({
226
+ [_S]: [, input[_S]],
227
+ [_EFS]: [, input[_EFS]],
228
+ [_NT]: [, input[_NT]],
229
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
230
+ });
231
+ let body;
232
+ b.m("GET").h(headers).q(query).b(body);
233
+ return b.build();
234
+ };
235
+ exports.se_ListStreamSessionsByAccountCommand = se_ListStreamSessionsByAccountCommand;
236
+ const se_ListTagsForResourceCommand = async (input, context) => {
237
+ const b = (0, core_2.requestBuilder)(input, context);
238
+ const headers = {};
239
+ b.bp("/tags/{ResourceArn}");
240
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
241
+ let body;
242
+ b.m("GET").h(headers).b(body);
243
+ return b.build();
244
+ };
245
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
246
+ const se_RemoveStreamGroupLocationsCommand = async (input, context) => {
247
+ const b = (0, core_2.requestBuilder)(input, context);
248
+ const headers = {};
249
+ b.bp("/streamgroups/{Identifier}/locations");
250
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
251
+ const query = (0, smithy_client_1.map)({
252
+ [_l]: [(0, smithy_client_1.expectNonNull)(input.Locations, `Locations`) != null, () => input[_L] || []],
253
+ });
254
+ let body;
255
+ b.m("DELETE").h(headers).q(query).b(body);
256
+ return b.build();
257
+ };
258
+ exports.se_RemoveStreamGroupLocationsCommand = se_RemoveStreamGroupLocationsCommand;
259
+ const se_StartStreamSessionCommand = async (input, context) => {
260
+ const b = (0, core_2.requestBuilder)(input, context);
261
+ const headers = {
262
+ "content-type": "application/json",
263
+ };
264
+ b.bp("/streamgroups/{Identifier}/streamsessions");
265
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
266
+ let body;
267
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
268
+ AdditionalEnvironmentVariables: (_) => (0, smithy_client_1._json)(_),
269
+ AdditionalLaunchArgs: (_) => (0, smithy_client_1._json)(_),
270
+ ApplicationIdentifier: [],
271
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
272
+ ConnectionTimeoutSeconds: [],
273
+ Description: [],
274
+ Locations: (_) => (0, smithy_client_1._json)(_),
275
+ Protocol: [],
276
+ SessionLengthSeconds: [],
277
+ SignalRequest: [],
278
+ UserId: [],
279
+ }));
280
+ b.m("POST").h(headers).b(body);
281
+ return b.build();
282
+ };
283
+ exports.se_StartStreamSessionCommand = se_StartStreamSessionCommand;
284
+ const se_TagResourceCommand = async (input, context) => {
285
+ const b = (0, core_2.requestBuilder)(input, context);
286
+ const headers = {
287
+ "content-type": "application/json",
288
+ };
289
+ b.bp("/tags/{ResourceArn}");
290
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
291
+ let body;
292
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
293
+ Tags: (_) => (0, smithy_client_1._json)(_),
294
+ }));
295
+ b.m("POST").h(headers).b(body);
296
+ return b.build();
297
+ };
298
+ exports.se_TagResourceCommand = se_TagResourceCommand;
299
+ const se_TerminateStreamSessionCommand = async (input, context) => {
300
+ const b = (0, core_2.requestBuilder)(input, context);
301
+ const headers = {};
302
+ b.bp("/streamgroups/{Identifier}/streamsessions/{StreamSessionIdentifier}");
303
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
304
+ b.p("StreamSessionIdentifier", () => input.StreamSessionIdentifier, "{StreamSessionIdentifier}", false);
305
+ let body;
306
+ b.m("DELETE").h(headers).b(body);
307
+ return b.build();
308
+ };
309
+ exports.se_TerminateStreamSessionCommand = se_TerminateStreamSessionCommand;
310
+ const se_UntagResourceCommand = async (input, context) => {
311
+ const b = (0, core_2.requestBuilder)(input, context);
312
+ const headers = {};
313
+ b.bp("/tags/{ResourceArn}");
314
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
315
+ const query = (0, smithy_client_1.map)({
316
+ [_tK]: [(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
317
+ });
318
+ let body;
319
+ b.m("DELETE").h(headers).q(query).b(body);
320
+ return b.build();
321
+ };
322
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
323
+ const se_UpdateApplicationCommand = async (input, context) => {
324
+ const b = (0, core_2.requestBuilder)(input, context);
325
+ const headers = {
326
+ "content-type": "application/json",
327
+ };
328
+ b.bp("/applications/{Identifier}");
329
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
330
+ let body;
331
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
332
+ ApplicationLogOutputUri: [],
333
+ ApplicationLogPaths: (_) => (0, smithy_client_1._json)(_),
334
+ Description: [],
335
+ }));
336
+ b.m("PATCH").h(headers).b(body);
337
+ return b.build();
338
+ };
339
+ exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
340
+ const se_UpdateStreamGroupCommand = async (input, context) => {
341
+ const b = (0, core_2.requestBuilder)(input, context);
342
+ const headers = {
343
+ "content-type": "application/json",
344
+ };
345
+ b.bp("/streamgroups/{Identifier}");
346
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
347
+ let body;
348
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
349
+ Description: [],
350
+ LocationConfigurations: (_) => (0, smithy_client_1._json)(_),
351
+ }));
352
+ b.m("PATCH").h(headers).b(body);
353
+ return b.build();
354
+ };
355
+ exports.se_UpdateStreamGroupCommand = se_UpdateStreamGroupCommand;
356
+ const de_AddStreamGroupLocationsCommand = async (output, context) => {
357
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
358
+ return de_CommandError(output, context);
359
+ }
360
+ const contents = (0, smithy_client_1.map)({
361
+ $metadata: deserializeMetadata(output),
362
+ });
363
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
364
+ const doc = (0, smithy_client_1.take)(data, {
365
+ Identifier: smithy_client_1.expectString,
366
+ Locations: smithy_client_1._json,
367
+ });
368
+ Object.assign(contents, doc);
369
+ return contents;
370
+ };
371
+ exports.de_AddStreamGroupLocationsCommand = de_AddStreamGroupLocationsCommand;
372
+ const de_AssociateApplicationsCommand = async (output, context) => {
373
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
374
+ return de_CommandError(output, context);
375
+ }
376
+ const contents = (0, smithy_client_1.map)({
377
+ $metadata: deserializeMetadata(output),
378
+ });
379
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
380
+ const doc = (0, smithy_client_1.take)(data, {
381
+ ApplicationArns: smithy_client_1._json,
382
+ Arn: smithy_client_1.expectString,
383
+ });
384
+ Object.assign(contents, doc);
385
+ return contents;
386
+ };
387
+ exports.de_AssociateApplicationsCommand = de_AssociateApplicationsCommand;
388
+ const de_CreateApplicationCommand = async (output, context) => {
389
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
390
+ return de_CommandError(output, context);
391
+ }
392
+ const contents = (0, smithy_client_1.map)({
393
+ $metadata: deserializeMetadata(output),
394
+ });
395
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
396
+ const doc = (0, smithy_client_1.take)(data, {
397
+ ApplicationLogOutputUri: smithy_client_1.expectString,
398
+ ApplicationLogPaths: smithy_client_1._json,
399
+ ApplicationSourceUri: smithy_client_1.expectString,
400
+ Arn: smithy_client_1.expectString,
401
+ AssociatedStreamGroups: smithy_client_1._json,
402
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
403
+ Description: smithy_client_1.expectString,
404
+ ExecutablePath: smithy_client_1.expectString,
405
+ Id: smithy_client_1.expectString,
406
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
407
+ ReplicationStatuses: smithy_client_1._json,
408
+ RuntimeEnvironment: smithy_client_1._json,
409
+ Status: smithy_client_1.expectString,
410
+ StatusReason: smithy_client_1.expectString,
411
+ });
412
+ Object.assign(contents, doc);
413
+ return contents;
414
+ };
415
+ exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
416
+ const de_CreateStreamGroupCommand = async (output, context) => {
417
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
418
+ return de_CommandError(output, context);
419
+ }
420
+ const contents = (0, smithy_client_1.map)({
421
+ $metadata: deserializeMetadata(output),
422
+ });
423
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
424
+ const doc = (0, smithy_client_1.take)(data, {
425
+ Arn: smithy_client_1.expectString,
426
+ AssociatedApplications: smithy_client_1._json,
427
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
428
+ DefaultApplication: smithy_client_1._json,
429
+ Description: smithy_client_1.expectString,
430
+ Id: smithy_client_1.expectString,
431
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
432
+ LocationStates: smithy_client_1._json,
433
+ Status: smithy_client_1.expectString,
434
+ StatusReason: smithy_client_1.expectString,
435
+ StreamClass: smithy_client_1.expectString,
436
+ });
437
+ Object.assign(contents, doc);
438
+ return contents;
439
+ };
440
+ exports.de_CreateStreamGroupCommand = de_CreateStreamGroupCommand;
441
+ const de_CreateStreamSessionConnectionCommand = async (output, context) => {
442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
443
+ return de_CommandError(output, context);
444
+ }
445
+ const contents = (0, smithy_client_1.map)({
446
+ $metadata: deserializeMetadata(output),
447
+ });
448
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
449
+ const doc = (0, smithy_client_1.take)(data, {
450
+ SignalResponse: smithy_client_1.expectString,
451
+ });
452
+ Object.assign(contents, doc);
453
+ return contents;
454
+ };
455
+ exports.de_CreateStreamSessionConnectionCommand = de_CreateStreamSessionConnectionCommand;
456
+ const de_DeleteApplicationCommand = async (output, context) => {
457
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
458
+ return de_CommandError(output, context);
459
+ }
460
+ const contents = (0, smithy_client_1.map)({
461
+ $metadata: deserializeMetadata(output),
462
+ });
463
+ await (0, smithy_client_1.collectBody)(output.body, context);
464
+ return contents;
465
+ };
466
+ exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
467
+ const de_DeleteStreamGroupCommand = async (output, context) => {
468
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
469
+ return de_CommandError(output, context);
470
+ }
471
+ const contents = (0, smithy_client_1.map)({
472
+ $metadata: deserializeMetadata(output),
473
+ });
474
+ await (0, smithy_client_1.collectBody)(output.body, context);
475
+ return contents;
476
+ };
477
+ exports.de_DeleteStreamGroupCommand = de_DeleteStreamGroupCommand;
478
+ const de_DisassociateApplicationsCommand = async (output, context) => {
479
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
480
+ return de_CommandError(output, context);
481
+ }
482
+ const contents = (0, smithy_client_1.map)({
483
+ $metadata: deserializeMetadata(output),
484
+ });
485
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
486
+ const doc = (0, smithy_client_1.take)(data, {
487
+ ApplicationArns: smithy_client_1._json,
488
+ Arn: smithy_client_1.expectString,
489
+ });
490
+ Object.assign(contents, doc);
491
+ return contents;
492
+ };
493
+ exports.de_DisassociateApplicationsCommand = de_DisassociateApplicationsCommand;
494
+ const de_ExportStreamSessionFilesCommand = async (output, context) => {
495
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
496
+ return de_CommandError(output, context);
497
+ }
498
+ const contents = (0, smithy_client_1.map)({
499
+ $metadata: deserializeMetadata(output),
500
+ });
501
+ await (0, smithy_client_1.collectBody)(output.body, context);
502
+ return contents;
503
+ };
504
+ exports.de_ExportStreamSessionFilesCommand = de_ExportStreamSessionFilesCommand;
505
+ const de_GetApplicationCommand = async (output, context) => {
506
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
507
+ return de_CommandError(output, context);
508
+ }
509
+ const contents = (0, smithy_client_1.map)({
510
+ $metadata: deserializeMetadata(output),
511
+ });
512
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
513
+ const doc = (0, smithy_client_1.take)(data, {
514
+ ApplicationLogOutputUri: smithy_client_1.expectString,
515
+ ApplicationLogPaths: smithy_client_1._json,
516
+ ApplicationSourceUri: smithy_client_1.expectString,
517
+ Arn: smithy_client_1.expectString,
518
+ AssociatedStreamGroups: smithy_client_1._json,
519
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
520
+ Description: smithy_client_1.expectString,
521
+ ExecutablePath: smithy_client_1.expectString,
522
+ Id: smithy_client_1.expectString,
523
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
524
+ ReplicationStatuses: smithy_client_1._json,
525
+ RuntimeEnvironment: smithy_client_1._json,
526
+ Status: smithy_client_1.expectString,
527
+ StatusReason: smithy_client_1.expectString,
528
+ });
529
+ Object.assign(contents, doc);
530
+ return contents;
531
+ };
532
+ exports.de_GetApplicationCommand = de_GetApplicationCommand;
533
+ const de_GetStreamGroupCommand = async (output, context) => {
534
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
535
+ return de_CommandError(output, context);
536
+ }
537
+ const contents = (0, smithy_client_1.map)({
538
+ $metadata: deserializeMetadata(output),
539
+ });
540
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
541
+ const doc = (0, smithy_client_1.take)(data, {
542
+ Arn: smithy_client_1.expectString,
543
+ AssociatedApplications: smithy_client_1._json,
544
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
545
+ DefaultApplication: smithy_client_1._json,
546
+ Description: smithy_client_1.expectString,
547
+ Id: smithy_client_1.expectString,
548
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
549
+ LocationStates: smithy_client_1._json,
550
+ Status: smithy_client_1.expectString,
551
+ StatusReason: smithy_client_1.expectString,
552
+ StreamClass: smithy_client_1.expectString,
553
+ });
554
+ Object.assign(contents, doc);
555
+ return contents;
556
+ };
557
+ exports.de_GetStreamGroupCommand = de_GetStreamGroupCommand;
558
+ const de_GetStreamSessionCommand = async (output, context) => {
559
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
560
+ return de_CommandError(output, context);
561
+ }
562
+ const contents = (0, smithy_client_1.map)({
563
+ $metadata: deserializeMetadata(output),
564
+ });
565
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
566
+ const doc = (0, smithy_client_1.take)(data, {
567
+ AdditionalEnvironmentVariables: smithy_client_1._json,
568
+ AdditionalLaunchArgs: smithy_client_1._json,
569
+ ApplicationArn: smithy_client_1.expectString,
570
+ Arn: smithy_client_1.expectString,
571
+ ConnectionTimeoutSeconds: smithy_client_1.expectInt32,
572
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
573
+ Description: smithy_client_1.expectString,
574
+ ExportFilesMetadata: smithy_client_1._json,
575
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
576
+ Location: smithy_client_1.expectString,
577
+ LogFileLocationUri: smithy_client_1.expectString,
578
+ Protocol: smithy_client_1.expectString,
579
+ SessionLengthSeconds: smithy_client_1.expectInt32,
580
+ SignalRequest: smithy_client_1.expectString,
581
+ SignalResponse: smithy_client_1.expectString,
582
+ Status: smithy_client_1.expectString,
583
+ StatusReason: smithy_client_1.expectString,
584
+ StreamGroupId: smithy_client_1.expectString,
585
+ UserId: smithy_client_1.expectString,
586
+ WebSdkProtocolUrl: smithy_client_1.expectString,
587
+ });
588
+ Object.assign(contents, doc);
589
+ return contents;
590
+ };
591
+ exports.de_GetStreamSessionCommand = de_GetStreamSessionCommand;
592
+ const de_ListApplicationsCommand = async (output, context) => {
593
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
594
+ return de_CommandError(output, context);
595
+ }
596
+ const contents = (0, smithy_client_1.map)({
597
+ $metadata: deserializeMetadata(output),
598
+ });
599
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
600
+ const doc = (0, smithy_client_1.take)(data, {
601
+ Items: (_) => de_ApplicationSummaryList(_, context),
602
+ NextToken: smithy_client_1.expectString,
603
+ });
604
+ Object.assign(contents, doc);
605
+ return contents;
606
+ };
607
+ exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
608
+ const de_ListStreamGroupsCommand = async (output, context) => {
609
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
610
+ return de_CommandError(output, context);
611
+ }
612
+ const contents = (0, smithy_client_1.map)({
613
+ $metadata: deserializeMetadata(output),
614
+ });
615
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
616
+ const doc = (0, smithy_client_1.take)(data, {
617
+ Items: (_) => de_StreamGroupSummaryList(_, context),
618
+ NextToken: smithy_client_1.expectString,
619
+ });
620
+ Object.assign(contents, doc);
621
+ return contents;
622
+ };
623
+ exports.de_ListStreamGroupsCommand = de_ListStreamGroupsCommand;
624
+ const de_ListStreamSessionsCommand = async (output, context) => {
625
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
626
+ return de_CommandError(output, context);
627
+ }
628
+ const contents = (0, smithy_client_1.map)({
629
+ $metadata: deserializeMetadata(output),
630
+ });
631
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
632
+ const doc = (0, smithy_client_1.take)(data, {
633
+ Items: (_) => de_StreamSessionSummaryList(_, context),
634
+ NextToken: smithy_client_1.expectString,
635
+ });
636
+ Object.assign(contents, doc);
637
+ return contents;
638
+ };
639
+ exports.de_ListStreamSessionsCommand = de_ListStreamSessionsCommand;
640
+ const de_ListStreamSessionsByAccountCommand = async (output, context) => {
641
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
642
+ return de_CommandError(output, context);
643
+ }
644
+ const contents = (0, smithy_client_1.map)({
645
+ $metadata: deserializeMetadata(output),
646
+ });
647
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
648
+ const doc = (0, smithy_client_1.take)(data, {
649
+ Items: (_) => de_StreamSessionSummaryList(_, context),
650
+ NextToken: smithy_client_1.expectString,
651
+ });
652
+ Object.assign(contents, doc);
653
+ return contents;
654
+ };
655
+ exports.de_ListStreamSessionsByAccountCommand = de_ListStreamSessionsByAccountCommand;
656
+ const de_ListTagsForResourceCommand = async (output, context) => {
657
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
658
+ return de_CommandError(output, context);
659
+ }
660
+ const contents = (0, smithy_client_1.map)({
661
+ $metadata: deserializeMetadata(output),
662
+ });
663
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
664
+ const doc = (0, smithy_client_1.take)(data, {
665
+ Tags: smithy_client_1._json,
666
+ });
667
+ Object.assign(contents, doc);
668
+ return contents;
669
+ };
670
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
671
+ const de_RemoveStreamGroupLocationsCommand = async (output, context) => {
672
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
673
+ return de_CommandError(output, context);
674
+ }
675
+ const contents = (0, smithy_client_1.map)({
676
+ $metadata: deserializeMetadata(output),
677
+ });
678
+ await (0, smithy_client_1.collectBody)(output.body, context);
679
+ return contents;
680
+ };
681
+ exports.de_RemoveStreamGroupLocationsCommand = de_RemoveStreamGroupLocationsCommand;
682
+ const de_StartStreamSessionCommand = async (output, context) => {
683
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
684
+ return de_CommandError(output, context);
685
+ }
686
+ const contents = (0, smithy_client_1.map)({
687
+ $metadata: deserializeMetadata(output),
688
+ });
689
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
690
+ const doc = (0, smithy_client_1.take)(data, {
691
+ AdditionalEnvironmentVariables: smithy_client_1._json,
692
+ AdditionalLaunchArgs: smithy_client_1._json,
693
+ ApplicationArn: smithy_client_1.expectString,
694
+ Arn: smithy_client_1.expectString,
695
+ ConnectionTimeoutSeconds: smithy_client_1.expectInt32,
696
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
697
+ Description: smithy_client_1.expectString,
698
+ ExportFilesMetadata: smithy_client_1._json,
699
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
700
+ Location: smithy_client_1.expectString,
701
+ LogFileLocationUri: smithy_client_1.expectString,
702
+ Protocol: smithy_client_1.expectString,
703
+ SessionLengthSeconds: smithy_client_1.expectInt32,
704
+ SignalRequest: smithy_client_1.expectString,
705
+ SignalResponse: smithy_client_1.expectString,
706
+ Status: smithy_client_1.expectString,
707
+ StatusReason: smithy_client_1.expectString,
708
+ StreamGroupId: smithy_client_1.expectString,
709
+ UserId: smithy_client_1.expectString,
710
+ WebSdkProtocolUrl: smithy_client_1.expectString,
711
+ });
712
+ Object.assign(contents, doc);
713
+ return contents;
714
+ };
715
+ exports.de_StartStreamSessionCommand = de_StartStreamSessionCommand;
716
+ const de_TagResourceCommand = async (output, context) => {
717
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
718
+ return de_CommandError(output, context);
719
+ }
720
+ const contents = (0, smithy_client_1.map)({
721
+ $metadata: deserializeMetadata(output),
722
+ });
723
+ await (0, smithy_client_1.collectBody)(output.body, context);
724
+ return contents;
725
+ };
726
+ exports.de_TagResourceCommand = de_TagResourceCommand;
727
+ const de_TerminateStreamSessionCommand = async (output, context) => {
728
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
729
+ return de_CommandError(output, context);
730
+ }
731
+ const contents = (0, smithy_client_1.map)({
732
+ $metadata: deserializeMetadata(output),
733
+ });
734
+ await (0, smithy_client_1.collectBody)(output.body, context);
735
+ return contents;
736
+ };
737
+ exports.de_TerminateStreamSessionCommand = de_TerminateStreamSessionCommand;
738
+ const de_UntagResourceCommand = async (output, context) => {
739
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
740
+ return de_CommandError(output, context);
741
+ }
742
+ const contents = (0, smithy_client_1.map)({
743
+ $metadata: deserializeMetadata(output),
744
+ });
745
+ await (0, smithy_client_1.collectBody)(output.body, context);
746
+ return contents;
747
+ };
748
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
749
+ const de_UpdateApplicationCommand = async (output, context) => {
750
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const contents = (0, smithy_client_1.map)({
754
+ $metadata: deserializeMetadata(output),
755
+ });
756
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
757
+ const doc = (0, smithy_client_1.take)(data, {
758
+ ApplicationLogOutputUri: smithy_client_1.expectString,
759
+ ApplicationLogPaths: smithy_client_1._json,
760
+ ApplicationSourceUri: smithy_client_1.expectString,
761
+ Arn: smithy_client_1.expectString,
762
+ AssociatedStreamGroups: smithy_client_1._json,
763
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
764
+ Description: smithy_client_1.expectString,
765
+ ExecutablePath: smithy_client_1.expectString,
766
+ Id: smithy_client_1.expectString,
767
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
768
+ ReplicationStatuses: smithy_client_1._json,
769
+ RuntimeEnvironment: smithy_client_1._json,
770
+ Status: smithy_client_1.expectString,
771
+ StatusReason: smithy_client_1.expectString,
772
+ });
773
+ Object.assign(contents, doc);
774
+ return contents;
775
+ };
776
+ exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
777
+ const de_UpdateStreamGroupCommand = async (output, context) => {
778
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
779
+ return de_CommandError(output, context);
780
+ }
781
+ const contents = (0, smithy_client_1.map)({
782
+ $metadata: deserializeMetadata(output),
783
+ });
784
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
785
+ const doc = (0, smithy_client_1.take)(data, {
786
+ Arn: smithy_client_1.expectString,
787
+ AssociatedApplications: smithy_client_1._json,
788
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
789
+ DefaultApplication: smithy_client_1._json,
790
+ Description: smithy_client_1.expectString,
791
+ Id: smithy_client_1.expectString,
792
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
793
+ LocationStates: smithy_client_1._json,
794
+ Status: smithy_client_1.expectString,
795
+ StatusReason: smithy_client_1.expectString,
796
+ StreamClass: smithy_client_1.expectString,
797
+ });
798
+ Object.assign(contents, doc);
799
+ return contents;
800
+ };
801
+ exports.de_UpdateStreamGroupCommand = de_UpdateStreamGroupCommand;
802
+ const de_CommandError = async (output, context) => {
803
+ const parsedOutput = {
804
+ ...output,
805
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
806
+ };
807
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
808
+ switch (errorCode) {
809
+ case "AccessDeniedException":
810
+ case "com.amazonaws.gameliftstreams#AccessDeniedException":
811
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
812
+ case "InternalServerException":
813
+ case "com.amazonaws.gameliftstreams#InternalServerException":
814
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
815
+ case "ResourceNotFoundException":
816
+ case "com.amazonaws.gameliftstreams#ResourceNotFoundException":
817
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
818
+ case "ServiceQuotaExceededException":
819
+ case "com.amazonaws.gameliftstreams#ServiceQuotaExceededException":
820
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
821
+ case "ThrottlingException":
822
+ case "com.amazonaws.gameliftstreams#ThrottlingException":
823
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
824
+ case "ValidationException":
825
+ case "com.amazonaws.gameliftstreams#ValidationException":
826
+ throw await de_ValidationExceptionRes(parsedOutput, context);
827
+ case "ConflictException":
828
+ case "com.amazonaws.gameliftstreams#ConflictException":
829
+ throw await de_ConflictExceptionRes(parsedOutput, context);
830
+ default:
831
+ const parsedBody = parsedOutput.body;
832
+ return throwDefaultError({
833
+ output,
834
+ parsedBody,
835
+ errorCode,
836
+ });
837
+ }
838
+ };
839
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(GameLiftStreamsServiceException_1.GameLiftStreamsServiceException);
840
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
841
+ const contents = (0, smithy_client_1.map)({});
842
+ const data = parsedOutput.body;
843
+ const doc = (0, smithy_client_1.take)(data, {
844
+ Message: smithy_client_1.expectString,
845
+ });
846
+ Object.assign(contents, doc);
847
+ const exception = new models_0_1.AccessDeniedException({
848
+ $metadata: deserializeMetadata(parsedOutput),
849
+ ...contents,
850
+ });
851
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
852
+ };
853
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
854
+ const contents = (0, smithy_client_1.map)({});
855
+ const data = parsedOutput.body;
856
+ const doc = (0, smithy_client_1.take)(data, {
857
+ Message: smithy_client_1.expectString,
858
+ });
859
+ Object.assign(contents, doc);
860
+ const exception = new models_0_1.ConflictException({
861
+ $metadata: deserializeMetadata(parsedOutput),
862
+ ...contents,
863
+ });
864
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
865
+ };
866
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
867
+ const contents = (0, smithy_client_1.map)({});
868
+ const data = parsedOutput.body;
869
+ const doc = (0, smithy_client_1.take)(data, {
870
+ Message: smithy_client_1.expectString,
871
+ });
872
+ Object.assign(contents, doc);
873
+ const exception = new models_0_1.InternalServerException({
874
+ $metadata: deserializeMetadata(parsedOutput),
875
+ ...contents,
876
+ });
877
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
878
+ };
879
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
880
+ const contents = (0, smithy_client_1.map)({});
881
+ const data = parsedOutput.body;
882
+ const doc = (0, smithy_client_1.take)(data, {
883
+ Message: smithy_client_1.expectString,
884
+ });
885
+ Object.assign(contents, doc);
886
+ const exception = new models_0_1.ResourceNotFoundException({
887
+ $metadata: deserializeMetadata(parsedOutput),
888
+ ...contents,
889
+ });
890
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
891
+ };
892
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
893
+ const contents = (0, smithy_client_1.map)({});
894
+ const data = parsedOutput.body;
895
+ const doc = (0, smithy_client_1.take)(data, {
896
+ Message: smithy_client_1.expectString,
897
+ });
898
+ Object.assign(contents, doc);
899
+ const exception = new models_0_1.ServiceQuotaExceededException({
900
+ $metadata: deserializeMetadata(parsedOutput),
901
+ ...contents,
902
+ });
903
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
904
+ };
905
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
906
+ const contents = (0, smithy_client_1.map)({});
907
+ const data = parsedOutput.body;
908
+ const doc = (0, smithy_client_1.take)(data, {
909
+ Message: smithy_client_1.expectString,
910
+ });
911
+ Object.assign(contents, doc);
912
+ const exception = new models_0_1.ThrottlingException({
913
+ $metadata: deserializeMetadata(parsedOutput),
914
+ ...contents,
915
+ });
916
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
917
+ };
918
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
919
+ const contents = (0, smithy_client_1.map)({});
920
+ const data = parsedOutput.body;
921
+ const doc = (0, smithy_client_1.take)(data, {
922
+ Message: smithy_client_1.expectString,
923
+ });
924
+ Object.assign(contents, doc);
925
+ const exception = new models_0_1.ValidationException({
926
+ $metadata: deserializeMetadata(parsedOutput),
927
+ ...contents,
928
+ });
929
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
930
+ };
931
+ const de_ApplicationSummary = (output, context) => {
932
+ return (0, smithy_client_1.take)(output, {
933
+ Arn: smithy_client_1.expectString,
934
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
935
+ Description: smithy_client_1.expectString,
936
+ Id: smithy_client_1.expectString,
937
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
938
+ RuntimeEnvironment: smithy_client_1._json,
939
+ Status: smithy_client_1.expectString,
940
+ });
941
+ };
942
+ const de_ApplicationSummaryList = (output, context) => {
943
+ const retVal = (output || [])
944
+ .filter((e) => e != null)
945
+ .map((entry) => {
946
+ return de_ApplicationSummary(entry, context);
947
+ });
948
+ return retVal;
949
+ };
950
+ const de_StreamGroupSummary = (output, context) => {
951
+ return (0, smithy_client_1.take)(output, {
952
+ Arn: smithy_client_1.expectString,
953
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
954
+ DefaultApplication: smithy_client_1._json,
955
+ Description: smithy_client_1.expectString,
956
+ Id: smithy_client_1.expectString,
957
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
958
+ Status: smithy_client_1.expectString,
959
+ StreamClass: smithy_client_1.expectString,
960
+ });
961
+ };
962
+ const de_StreamGroupSummaryList = (output, context) => {
963
+ const retVal = (output || [])
964
+ .filter((e) => e != null)
965
+ .map((entry) => {
966
+ return de_StreamGroupSummary(entry, context);
967
+ });
968
+ return retVal;
969
+ };
970
+ const de_StreamSessionSummary = (output, context) => {
971
+ return (0, smithy_client_1.take)(output, {
972
+ ApplicationArn: smithy_client_1.expectString,
973
+ Arn: smithy_client_1.expectString,
974
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
975
+ ExportFilesMetadata: smithy_client_1._json,
976
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
977
+ Location: smithy_client_1.expectString,
978
+ Protocol: smithy_client_1.expectString,
979
+ Status: smithy_client_1.expectString,
980
+ UserId: smithy_client_1.expectString,
981
+ });
982
+ };
983
+ const de_StreamSessionSummaryList = (output, context) => {
984
+ const retVal = (output || [])
985
+ .filter((e) => e != null)
986
+ .map((entry) => {
987
+ return de_StreamSessionSummary(entry, context);
988
+ });
989
+ return retVal;
990
+ };
991
+ const deserializeMetadata = (output) => ({
992
+ httpStatusCode: output.statusCode,
993
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
994
+ extendedRequestId: output.headers["x-amz-id-2"],
995
+ cfId: output.headers["x-amz-cf-id"],
996
+ });
997
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
998
+ const _EFS = "ExportFilesStatus";
999
+ const _L = "Locations";
1000
+ const _MR = "MaxResults";
1001
+ const _NT = "NextToken";
1002
+ const _S = "Status";
1003
+ const _TK = "TagKeys";
1004
+ const _l = "locations";
1005
+ const _tK = "tagKeys";