@aws-sdk/client-workspaces-web 3.188.0 → 3.192.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 (260) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/WorkSpacesWeb.js +105 -0
  3. package/dist-cjs/WorkSpacesWebClient.js +11 -8
  4. package/dist-cjs/commands/AssociateBrowserSettingsCommand.js +10 -0
  5. package/dist-cjs/commands/AssociateNetworkSettingsCommand.js +10 -0
  6. package/dist-cjs/commands/AssociateTrustStoreCommand.js +10 -0
  7. package/dist-cjs/commands/AssociateUserAccessLoggingSettingsCommand.js +46 -0
  8. package/dist-cjs/commands/AssociateUserSettingsCommand.js +10 -0
  9. package/dist-cjs/commands/CreateBrowserSettingsCommand.js +10 -0
  10. package/dist-cjs/commands/CreateIdentityProviderCommand.js +10 -0
  11. package/dist-cjs/commands/CreateNetworkSettingsCommand.js +10 -0
  12. package/dist-cjs/commands/CreatePortalCommand.js +10 -0
  13. package/dist-cjs/commands/CreateTrustStoreCommand.js +10 -0
  14. package/dist-cjs/commands/CreateUserAccessLoggingSettingsCommand.js +46 -0
  15. package/dist-cjs/commands/CreateUserSettingsCommand.js +10 -0
  16. package/dist-cjs/commands/DeleteBrowserSettingsCommand.js +10 -0
  17. package/dist-cjs/commands/DeleteIdentityProviderCommand.js +10 -0
  18. package/dist-cjs/commands/DeleteNetworkSettingsCommand.js +10 -0
  19. package/dist-cjs/commands/DeletePortalCommand.js +10 -0
  20. package/dist-cjs/commands/DeleteTrustStoreCommand.js +10 -0
  21. package/dist-cjs/commands/DeleteUserAccessLoggingSettingsCommand.js +46 -0
  22. package/dist-cjs/commands/DeleteUserSettingsCommand.js +10 -0
  23. package/dist-cjs/commands/DisassociateBrowserSettingsCommand.js +10 -0
  24. package/dist-cjs/commands/DisassociateNetworkSettingsCommand.js +10 -0
  25. package/dist-cjs/commands/DisassociateTrustStoreCommand.js +10 -0
  26. package/dist-cjs/commands/DisassociateUserAccessLoggingSettingsCommand.js +46 -0
  27. package/dist-cjs/commands/DisassociateUserSettingsCommand.js +10 -0
  28. package/dist-cjs/commands/GetBrowserSettingsCommand.js +10 -0
  29. package/dist-cjs/commands/GetIdentityProviderCommand.js +10 -0
  30. package/dist-cjs/commands/GetNetworkSettingsCommand.js +10 -0
  31. package/dist-cjs/commands/GetPortalCommand.js +10 -0
  32. package/dist-cjs/commands/GetPortalServiceProviderMetadataCommand.js +10 -0
  33. package/dist-cjs/commands/GetTrustStoreCertificateCommand.js +10 -0
  34. package/dist-cjs/commands/GetTrustStoreCommand.js +10 -0
  35. package/dist-cjs/commands/GetUserAccessLoggingSettingsCommand.js +46 -0
  36. package/dist-cjs/commands/GetUserSettingsCommand.js +10 -0
  37. package/dist-cjs/commands/ListBrowserSettingsCommand.js +10 -0
  38. package/dist-cjs/commands/ListIdentityProvidersCommand.js +10 -0
  39. package/dist-cjs/commands/ListNetworkSettingsCommand.js +10 -0
  40. package/dist-cjs/commands/ListPortalsCommand.js +10 -0
  41. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  42. package/dist-cjs/commands/ListTrustStoreCertificatesCommand.js +10 -0
  43. package/dist-cjs/commands/ListTrustStoresCommand.js +10 -0
  44. package/dist-cjs/commands/ListUserAccessLoggingSettingsCommand.js +46 -0
  45. package/dist-cjs/commands/ListUserSettingsCommand.js +10 -0
  46. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  47. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  48. package/dist-cjs/commands/UpdateBrowserSettingsCommand.js +10 -0
  49. package/dist-cjs/commands/UpdateIdentityProviderCommand.js +10 -0
  50. package/dist-cjs/commands/UpdateNetworkSettingsCommand.js +10 -0
  51. package/dist-cjs/commands/UpdatePortalCommand.js +10 -0
  52. package/dist-cjs/commands/UpdateTrustStoreCommand.js +10 -0
  53. package/dist-cjs/commands/UpdateUserAccessLoggingSettingsCommand.js +46 -0
  54. package/dist-cjs/commands/UpdateUserSettingsCommand.js +10 -0
  55. package/dist-cjs/commands/index.js +7 -0
  56. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  57. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  58. package/dist-cjs/endpoint/ruleset.js +318 -0
  59. package/dist-cjs/models/models_0.js +68 -3
  60. package/dist-cjs/pagination/ListUserAccessLoggingSettingsPaginator.js +36 -0
  61. package/dist-cjs/pagination/index.js +1 -0
  62. package/dist-cjs/protocols/Aws_restJson1.js +502 -2
  63. package/dist-cjs/runtimeConfig.shared.js +3 -3
  64. package/dist-es/WorkSpacesWeb.js +105 -0
  65. package/dist-es/WorkSpacesWebClient.js +12 -9
  66. package/dist-es/commands/AssociateBrowserSettingsCommand.js +10 -0
  67. package/dist-es/commands/AssociateNetworkSettingsCommand.js +10 -0
  68. package/dist-es/commands/AssociateTrustStoreCommand.js +10 -0
  69. package/dist-es/commands/AssociateUserAccessLoggingSettingsCommand.js +42 -0
  70. package/dist-es/commands/AssociateUserSettingsCommand.js +10 -0
  71. package/dist-es/commands/CreateBrowserSettingsCommand.js +10 -0
  72. package/dist-es/commands/CreateIdentityProviderCommand.js +10 -0
  73. package/dist-es/commands/CreateNetworkSettingsCommand.js +10 -0
  74. package/dist-es/commands/CreatePortalCommand.js +10 -0
  75. package/dist-es/commands/CreateTrustStoreCommand.js +10 -0
  76. package/dist-es/commands/CreateUserAccessLoggingSettingsCommand.js +42 -0
  77. package/dist-es/commands/CreateUserSettingsCommand.js +10 -0
  78. package/dist-es/commands/DeleteBrowserSettingsCommand.js +10 -0
  79. package/dist-es/commands/DeleteIdentityProviderCommand.js +10 -0
  80. package/dist-es/commands/DeleteNetworkSettingsCommand.js +10 -0
  81. package/dist-es/commands/DeletePortalCommand.js +10 -0
  82. package/dist-es/commands/DeleteTrustStoreCommand.js +10 -0
  83. package/dist-es/commands/DeleteUserAccessLoggingSettingsCommand.js +42 -0
  84. package/dist-es/commands/DeleteUserSettingsCommand.js +10 -0
  85. package/dist-es/commands/DisassociateBrowserSettingsCommand.js +10 -0
  86. package/dist-es/commands/DisassociateNetworkSettingsCommand.js +10 -0
  87. package/dist-es/commands/DisassociateTrustStoreCommand.js +10 -0
  88. package/dist-es/commands/DisassociateUserAccessLoggingSettingsCommand.js +42 -0
  89. package/dist-es/commands/DisassociateUserSettingsCommand.js +10 -0
  90. package/dist-es/commands/GetBrowserSettingsCommand.js +10 -0
  91. package/dist-es/commands/GetIdentityProviderCommand.js +10 -0
  92. package/dist-es/commands/GetNetworkSettingsCommand.js +10 -0
  93. package/dist-es/commands/GetPortalCommand.js +10 -0
  94. package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +10 -0
  95. package/dist-es/commands/GetTrustStoreCertificateCommand.js +10 -0
  96. package/dist-es/commands/GetTrustStoreCommand.js +10 -0
  97. package/dist-es/commands/GetUserAccessLoggingSettingsCommand.js +42 -0
  98. package/dist-es/commands/GetUserSettingsCommand.js +10 -0
  99. package/dist-es/commands/ListBrowserSettingsCommand.js +10 -0
  100. package/dist-es/commands/ListIdentityProvidersCommand.js +10 -0
  101. package/dist-es/commands/ListNetworkSettingsCommand.js +10 -0
  102. package/dist-es/commands/ListPortalsCommand.js +10 -0
  103. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  104. package/dist-es/commands/ListTrustStoreCertificatesCommand.js +10 -0
  105. package/dist-es/commands/ListTrustStoresCommand.js +10 -0
  106. package/dist-es/commands/ListUserAccessLoggingSettingsCommand.js +42 -0
  107. package/dist-es/commands/ListUserSettingsCommand.js +10 -0
  108. package/dist-es/commands/TagResourceCommand.js +10 -0
  109. package/dist-es/commands/UntagResourceCommand.js +10 -0
  110. package/dist-es/commands/UpdateBrowserSettingsCommand.js +10 -0
  111. package/dist-es/commands/UpdateIdentityProviderCommand.js +10 -0
  112. package/dist-es/commands/UpdateNetworkSettingsCommand.js +10 -0
  113. package/dist-es/commands/UpdatePortalCommand.js +10 -0
  114. package/dist-es/commands/UpdateTrustStoreCommand.js +10 -0
  115. package/dist-es/commands/UpdateUserAccessLoggingSettingsCommand.js +42 -0
  116. package/dist-es/commands/UpdateUserSettingsCommand.js +10 -0
  117. package/dist-es/commands/index.js +7 -0
  118. package/dist-es/endpoint/EndpointParameters.js +8 -0
  119. package/dist-es/endpoint/endpointResolver.js +8 -0
  120. package/dist-es/endpoint/ruleset.js +315 -0
  121. package/dist-es/models/models_0.js +49 -0
  122. package/dist-es/pagination/ListUserAccessLoggingSettingsPaginator.js +32 -0
  123. package/dist-es/pagination/index.js +1 -0
  124. package/dist-es/protocols/Aws_restJson1.js +483 -0
  125. package/dist-es/runtimeConfig.shared.js +2 -2
  126. package/dist-types/WorkSpacesWeb.d.ts +49 -0
  127. package/dist-types/WorkSpacesWebClient.d.ts +15 -11
  128. package/dist-types/commands/AssociateBrowserSettingsCommand.d.ts +2 -0
  129. package/dist-types/commands/AssociateNetworkSettingsCommand.d.ts +2 -0
  130. package/dist-types/commands/AssociateTrustStoreCommand.d.ts +2 -0
  131. package/dist-types/commands/AssociateUserAccessLoggingSettingsCommand.d.ts +37 -0
  132. package/dist-types/commands/AssociateUserSettingsCommand.d.ts +2 -0
  133. package/dist-types/commands/CreateBrowserSettingsCommand.d.ts +2 -0
  134. package/dist-types/commands/CreateIdentityProviderCommand.d.ts +2 -0
  135. package/dist-types/commands/CreateNetworkSettingsCommand.d.ts +2 -0
  136. package/dist-types/commands/CreatePortalCommand.d.ts +2 -0
  137. package/dist-types/commands/CreateTrustStoreCommand.d.ts +2 -0
  138. package/dist-types/commands/CreateUserAccessLoggingSettingsCommand.d.ts +37 -0
  139. package/dist-types/commands/CreateUserSettingsCommand.d.ts +2 -0
  140. package/dist-types/commands/DeleteBrowserSettingsCommand.d.ts +2 -0
  141. package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +2 -0
  142. package/dist-types/commands/DeleteNetworkSettingsCommand.d.ts +2 -0
  143. package/dist-types/commands/DeletePortalCommand.d.ts +2 -0
  144. package/dist-types/commands/DeleteTrustStoreCommand.d.ts +2 -0
  145. package/dist-types/commands/DeleteUserAccessLoggingSettingsCommand.d.ts +37 -0
  146. package/dist-types/commands/DeleteUserSettingsCommand.d.ts +2 -0
  147. package/dist-types/commands/DisassociateBrowserSettingsCommand.d.ts +2 -0
  148. package/dist-types/commands/DisassociateNetworkSettingsCommand.d.ts +2 -0
  149. package/dist-types/commands/DisassociateTrustStoreCommand.d.ts +2 -0
  150. package/dist-types/commands/DisassociateUserAccessLoggingSettingsCommand.d.ts +37 -0
  151. package/dist-types/commands/DisassociateUserSettingsCommand.d.ts +2 -0
  152. package/dist-types/commands/GetBrowserSettingsCommand.d.ts +2 -0
  153. package/dist-types/commands/GetIdentityProviderCommand.d.ts +2 -0
  154. package/dist-types/commands/GetNetworkSettingsCommand.d.ts +2 -0
  155. package/dist-types/commands/GetPortalCommand.d.ts +2 -0
  156. package/dist-types/commands/GetPortalServiceProviderMetadataCommand.d.ts +2 -0
  157. package/dist-types/commands/GetTrustStoreCertificateCommand.d.ts +2 -0
  158. package/dist-types/commands/GetTrustStoreCommand.d.ts +2 -0
  159. package/dist-types/commands/GetUserAccessLoggingSettingsCommand.d.ts +37 -0
  160. package/dist-types/commands/GetUserSettingsCommand.d.ts +2 -0
  161. package/dist-types/commands/ListBrowserSettingsCommand.d.ts +2 -0
  162. package/dist-types/commands/ListIdentityProvidersCommand.d.ts +2 -0
  163. package/dist-types/commands/ListNetworkSettingsCommand.d.ts +2 -0
  164. package/dist-types/commands/ListPortalsCommand.d.ts +2 -0
  165. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  166. package/dist-types/commands/ListTrustStoreCertificatesCommand.d.ts +2 -0
  167. package/dist-types/commands/ListTrustStoresCommand.d.ts +2 -0
  168. package/dist-types/commands/ListUserAccessLoggingSettingsCommand.d.ts +37 -0
  169. package/dist-types/commands/ListUserSettingsCommand.d.ts +2 -0
  170. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  171. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  172. package/dist-types/commands/UpdateBrowserSettingsCommand.d.ts +2 -0
  173. package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +2 -0
  174. package/dist-types/commands/UpdateNetworkSettingsCommand.d.ts +2 -0
  175. package/dist-types/commands/UpdatePortalCommand.d.ts +2 -0
  176. package/dist-types/commands/UpdateTrustStoreCommand.d.ts +2 -0
  177. package/dist-types/commands/UpdateUserAccessLoggingSettingsCommand.d.ts +37 -0
  178. package/dist-types/commands/UpdateUserSettingsCommand.d.ts +2 -0
  179. package/dist-types/commands/index.d.ts +7 -0
  180. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  181. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  182. package/dist-types/endpoint/ruleset.d.ts +2 -0
  183. package/dist-types/models/models_0.d.ts +221 -1
  184. package/dist-types/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +4 -0
  185. package/dist-types/pagination/index.d.ts +1 -0
  186. package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
  187. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  188. package/dist-types/runtimeConfig.d.ts +4 -2
  189. package/dist-types/runtimeConfig.native.d.ts +4 -2
  190. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  191. package/dist-types/ts3.4/WorkSpacesWeb.d.ts +131 -0
  192. package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +57 -8
  193. package/dist-types/ts3.4/commands/AssociateBrowserSettingsCommand.d.ts +2 -0
  194. package/dist-types/ts3.4/commands/AssociateNetworkSettingsCommand.d.ts +2 -0
  195. package/dist-types/ts3.4/commands/AssociateTrustStoreCommand.d.ts +2 -0
  196. package/dist-types/ts3.4/commands/AssociateUserAccessLoggingSettingsCommand.d.ts +41 -0
  197. package/dist-types/ts3.4/commands/AssociateUserSettingsCommand.d.ts +2 -0
  198. package/dist-types/ts3.4/commands/CreateBrowserSettingsCommand.d.ts +2 -0
  199. package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -0
  200. package/dist-types/ts3.4/commands/CreateNetworkSettingsCommand.d.ts +2 -0
  201. package/dist-types/ts3.4/commands/CreatePortalCommand.d.ts +2 -0
  202. package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +2 -0
  203. package/dist-types/ts3.4/commands/CreateUserAccessLoggingSettingsCommand.d.ts +41 -0
  204. package/dist-types/ts3.4/commands/CreateUserSettingsCommand.d.ts +2 -0
  205. package/dist-types/ts3.4/commands/DeleteBrowserSettingsCommand.d.ts +2 -0
  206. package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -0
  207. package/dist-types/ts3.4/commands/DeleteNetworkSettingsCommand.d.ts +2 -0
  208. package/dist-types/ts3.4/commands/DeletePortalCommand.d.ts +2 -0
  209. package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +2 -0
  210. package/dist-types/ts3.4/commands/DeleteUserAccessLoggingSettingsCommand.d.ts +41 -0
  211. package/dist-types/ts3.4/commands/DeleteUserSettingsCommand.d.ts +2 -0
  212. package/dist-types/ts3.4/commands/DisassociateBrowserSettingsCommand.d.ts +2 -0
  213. package/dist-types/ts3.4/commands/DisassociateNetworkSettingsCommand.d.ts +2 -0
  214. package/dist-types/ts3.4/commands/DisassociateTrustStoreCommand.d.ts +2 -0
  215. package/dist-types/ts3.4/commands/DisassociateUserAccessLoggingSettingsCommand.d.ts +41 -0
  216. package/dist-types/ts3.4/commands/DisassociateUserSettingsCommand.d.ts +2 -0
  217. package/dist-types/ts3.4/commands/GetBrowserSettingsCommand.d.ts +2 -0
  218. package/dist-types/ts3.4/commands/GetIdentityProviderCommand.d.ts +2 -0
  219. package/dist-types/ts3.4/commands/GetNetworkSettingsCommand.d.ts +2 -0
  220. package/dist-types/ts3.4/commands/GetPortalCommand.d.ts +2 -0
  221. package/dist-types/ts3.4/commands/GetPortalServiceProviderMetadataCommand.d.ts +2 -0
  222. package/dist-types/ts3.4/commands/GetTrustStoreCertificateCommand.d.ts +2 -0
  223. package/dist-types/ts3.4/commands/GetTrustStoreCommand.d.ts +2 -0
  224. package/dist-types/ts3.4/commands/GetUserAccessLoggingSettingsCommand.d.ts +41 -0
  225. package/dist-types/ts3.4/commands/GetUserSettingsCommand.d.ts +2 -0
  226. package/dist-types/ts3.4/commands/ListBrowserSettingsCommand.d.ts +2 -0
  227. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -0
  228. package/dist-types/ts3.4/commands/ListNetworkSettingsCommand.d.ts +2 -0
  229. package/dist-types/ts3.4/commands/ListPortalsCommand.d.ts +2 -0
  230. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  231. package/dist-types/ts3.4/commands/ListTrustStoreCertificatesCommand.d.ts +2 -0
  232. package/dist-types/ts3.4/commands/ListTrustStoresCommand.d.ts +2 -0
  233. package/dist-types/ts3.4/commands/ListUserAccessLoggingSettingsCommand.d.ts +41 -0
  234. package/dist-types/ts3.4/commands/ListUserSettingsCommand.d.ts +2 -0
  235. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  236. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  237. package/dist-types/ts3.4/commands/UpdateBrowserSettingsCommand.d.ts +2 -0
  238. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -0
  239. package/dist-types/ts3.4/commands/UpdateNetworkSettingsCommand.d.ts +2 -0
  240. package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +2 -0
  241. package/dist-types/ts3.4/commands/UpdateTrustStoreCommand.d.ts +2 -0
  242. package/dist-types/ts3.4/commands/UpdateUserAccessLoggingSettingsCommand.d.ts +41 -0
  243. package/dist-types/ts3.4/commands/UpdateUserSettingsCommand.d.ts +2 -0
  244. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  245. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  246. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  247. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  248. package/dist-types/ts3.4/models/models_0.d.ts +105 -0
  249. package/dist-types/ts3.4/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +11 -0
  250. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  251. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  252. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  253. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  254. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  255. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  256. package/package.json +27 -26
  257. package/dist-cjs/endpoints.js +0 -132
  258. package/dist-es/endpoints.js +0 -128
  259. package/dist-types/endpoints.d.ts +0 -2
  260. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -63,6 +63,27 @@ export const serializeAws_restJson1AssociateTrustStoreCommand = async (input, co
63
63
  body,
64
64
  });
65
65
  };
66
+ export const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
67
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const headers = {};
69
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
70
+ "/portals/{portalArn+}/userAccessLoggingSettings";
71
+ resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
72
+ const query = map({
73
+ userAccessLoggingSettingsArn: [, input.userAccessLoggingSettingsArn],
74
+ });
75
+ let body;
76
+ return new __HttpRequest({
77
+ protocol,
78
+ hostname,
79
+ port,
80
+ method: "PUT",
81
+ headers,
82
+ path: resolvedPath,
83
+ query,
84
+ body,
85
+ });
86
+ };
66
87
  export const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context) => {
67
88
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
89
  const headers = {};
@@ -211,6 +232,28 @@ export const serializeAws_restJson1CreateTrustStoreCommand = async (input, conte
211
232
  body,
212
233
  });
213
234
  };
235
+ export const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (input, context) => {
236
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const headers = {
238
+ "content-type": "application/json",
239
+ };
240
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
241
+ let body;
242
+ body = JSON.stringify({
243
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
244
+ ...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
245
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
246
+ });
247
+ return new __HttpRequest({
248
+ protocol,
249
+ hostname,
250
+ port,
251
+ method: "POST",
252
+ headers,
253
+ path: resolvedPath,
254
+ body,
255
+ });
256
+ };
214
257
  export const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) => {
215
258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
259
  const headers = {
@@ -321,6 +364,23 @@ export const serializeAws_restJson1DeleteTrustStoreCommand = async (input, conte
321
364
  body,
322
365
  });
323
366
  };
367
+ export const serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (input, context) => {
368
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
369
+ const headers = {};
370
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
371
+ "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
372
+ resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
373
+ let body;
374
+ return new __HttpRequest({
375
+ protocol,
376
+ hostname,
377
+ port,
378
+ method: "DELETE",
379
+ headers,
380
+ path: resolvedPath,
381
+ body,
382
+ });
383
+ };
324
384
  export const serializeAws_restJson1DeleteUserSettingsCommand = async (input, context) => {
325
385
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
386
  const headers = {};
@@ -385,6 +445,23 @@ export const serializeAws_restJson1DisassociateTrustStoreCommand = async (input,
385
445
  body,
386
446
  });
387
447
  };
448
+ export const serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async (input, context) => {
449
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
+ const headers = {};
451
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
452
+ "/portals/{portalArn+}/userAccessLoggingSettings";
453
+ resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
454
+ let body;
455
+ return new __HttpRequest({
456
+ protocol,
457
+ hostname,
458
+ port,
459
+ method: "DELETE",
460
+ headers,
461
+ path: resolvedPath,
462
+ body,
463
+ });
464
+ };
388
465
  export const serializeAws_restJson1DisassociateUserSettingsCommand = async (input, context) => {
389
466
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
467
  const headers = {};
@@ -517,6 +594,23 @@ export const serializeAws_restJson1GetTrustStoreCertificateCommand = async (inpu
517
594
  body,
518
595
  });
519
596
  };
597
+ export const serializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (input, context) => {
598
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
599
+ const headers = {};
600
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
601
+ "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
602
+ resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
603
+ let body;
604
+ return new __HttpRequest({
605
+ protocol,
606
+ hostname,
607
+ port,
608
+ method: "GET",
609
+ headers,
610
+ path: resolvedPath,
611
+ body,
612
+ });
613
+ };
520
614
  export const serializeAws_restJson1GetUserSettingsCommand = async (input, context) => {
521
615
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
616
  const headers = {};
@@ -672,6 +766,26 @@ export const serializeAws_restJson1ListTrustStoresCommand = async (input, contex
672
766
  body,
673
767
  });
674
768
  };
769
+ export const serializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (input, context) => {
770
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
771
+ const headers = {};
772
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
773
+ const query = map({
774
+ nextToken: [, input.nextToken],
775
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
776
+ });
777
+ let body;
778
+ return new __HttpRequest({
779
+ protocol,
780
+ hostname,
781
+ port,
782
+ method: "GET",
783
+ headers,
784
+ path: resolvedPath,
785
+ query,
786
+ body,
787
+ });
788
+ };
675
789
  export const serializeAws_restJson1ListUserSettingsCommand = async (input, context) => {
676
790
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
677
791
  const headers = {};
@@ -856,6 +970,29 @@ export const serializeAws_restJson1UpdateTrustStoreCommand = async (input, conte
856
970
  body,
857
971
  });
858
972
  };
973
+ export const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
974
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
975
+ const headers = {
976
+ "content-type": "application/json",
977
+ };
978
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
979
+ "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
980
+ resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
981
+ let body;
982
+ body = JSON.stringify({
983
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
984
+ ...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
985
+ });
986
+ return new __HttpRequest({
987
+ protocol,
988
+ hostname,
989
+ port,
990
+ method: "PATCH",
991
+ headers,
992
+ path: resolvedPath,
993
+ body,
994
+ });
995
+ };
859
996
  export const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) => {
860
997
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
861
998
  const headers = {
@@ -1036,6 +1173,57 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
1036
1173
  });
1037
1174
  }
1038
1175
  };
1176
+ export const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (output, context) => {
1177
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1178
+ return deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError(output, context);
1179
+ }
1180
+ const contents = map({
1181
+ $metadata: deserializeMetadata(output),
1182
+ });
1183
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1184
+ if (data.portalArn != null) {
1185
+ contents.portalArn = __expectString(data.portalArn);
1186
+ }
1187
+ if (data.userAccessLoggingSettingsArn != null) {
1188
+ contents.userAccessLoggingSettingsArn = __expectString(data.userAccessLoggingSettingsArn);
1189
+ }
1190
+ return contents;
1191
+ };
1192
+ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = async (output, context) => {
1193
+ const parsedOutput = {
1194
+ ...output,
1195
+ body: await parseErrorBody(output.body, context),
1196
+ };
1197
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1198
+ switch (errorCode) {
1199
+ case "AccessDeniedException":
1200
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1201
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1202
+ case "ConflictException":
1203
+ case "com.amazonaws.workspacesweb#ConflictException":
1204
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1205
+ case "InternalServerException":
1206
+ case "com.amazonaws.workspacesweb#InternalServerException":
1207
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1208
+ case "ResourceNotFoundException":
1209
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1210
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1211
+ case "ThrottlingException":
1212
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1213
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1214
+ case "ValidationException":
1215
+ case "com.amazonaws.workspacesweb#ValidationException":
1216
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1217
+ default:
1218
+ const parsedBody = parsedOutput.body;
1219
+ throwDefaultError({
1220
+ output,
1221
+ parsedBody,
1222
+ exceptionCtor: __BaseException,
1223
+ errorCode,
1224
+ });
1225
+ }
1226
+ };
1039
1227
  export const deserializeAws_restJson1AssociateUserSettingsCommand = async (output, context) => {
1040
1228
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
1229
  return deserializeAws_restJson1AssociateUserSettingsCommandError(output, context);
@@ -1339,6 +1527,54 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
1339
1527
  });
1340
1528
  }
1341
1529
  };
1530
+ export const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (output, context) => {
1531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1532
+ return deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError(output, context);
1533
+ }
1534
+ const contents = map({
1535
+ $metadata: deserializeMetadata(output),
1536
+ });
1537
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1538
+ if (data.userAccessLoggingSettingsArn != null) {
1539
+ contents.userAccessLoggingSettingsArn = __expectString(data.userAccessLoggingSettingsArn);
1540
+ }
1541
+ return contents;
1542
+ };
1543
+ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = async (output, context) => {
1544
+ const parsedOutput = {
1545
+ ...output,
1546
+ body: await parseErrorBody(output.body, context),
1547
+ };
1548
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1549
+ switch (errorCode) {
1550
+ case "AccessDeniedException":
1551
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1552
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1553
+ case "ConflictException":
1554
+ case "com.amazonaws.workspacesweb#ConflictException":
1555
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1556
+ case "InternalServerException":
1557
+ case "com.amazonaws.workspacesweb#InternalServerException":
1558
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1559
+ case "ServiceQuotaExceededException":
1560
+ case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1561
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1562
+ case "ThrottlingException":
1563
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1564
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1565
+ case "ValidationException":
1566
+ case "com.amazonaws.workspacesweb#ValidationException":
1567
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1568
+ default:
1569
+ const parsedBody = parsedOutput.body;
1570
+ throwDefaultError({
1571
+ output,
1572
+ parsedBody,
1573
+ exceptionCtor: __BaseException,
1574
+ errorCode,
1575
+ });
1576
+ }
1577
+ };
1342
1578
  export const deserializeAws_restJson1CreateUserSettingsCommand = async (output, context) => {
1343
1579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
1580
  return deserializeAws_restJson1CreateUserSettingsCommandError(output, context);
@@ -1597,6 +1833,48 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
1597
1833
  });
1598
1834
  }
1599
1835
  };
1836
+ export const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
1837
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1838
+ return deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError(output, context);
1839
+ }
1840
+ const contents = map({
1841
+ $metadata: deserializeMetadata(output),
1842
+ });
1843
+ await collectBody(output.body, context);
1844
+ return contents;
1845
+ };
1846
+ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = async (output, context) => {
1847
+ const parsedOutput = {
1848
+ ...output,
1849
+ body: await parseErrorBody(output.body, context),
1850
+ };
1851
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
+ switch (errorCode) {
1853
+ case "AccessDeniedException":
1854
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1855
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1856
+ case "ConflictException":
1857
+ case "com.amazonaws.workspacesweb#ConflictException":
1858
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1859
+ case "InternalServerException":
1860
+ case "com.amazonaws.workspacesweb#InternalServerException":
1861
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1862
+ case "ThrottlingException":
1863
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1864
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1865
+ case "ValidationException":
1866
+ case "com.amazonaws.workspacesweb#ValidationException":
1867
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1868
+ default:
1869
+ const parsedBody = parsedOutput.body;
1870
+ throwDefaultError({
1871
+ output,
1872
+ parsedBody,
1873
+ exceptionCtor: __BaseException,
1874
+ errorCode,
1875
+ });
1876
+ }
1877
+ };
1600
1878
  export const deserializeAws_restJson1DeleteUserSettingsCommand = async (output, context) => {
1601
1879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
1880
  return deserializeAws_restJson1DeleteUserSettingsCommandError(output, context);
@@ -1765,6 +2043,48 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
1765
2043
  });
1766
2044
  }
1767
2045
  };
2046
+ export const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
2047
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2048
+ return deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError(output, context);
2049
+ }
2050
+ const contents = map({
2051
+ $metadata: deserializeMetadata(output),
2052
+ });
2053
+ await collectBody(output.body, context);
2054
+ return contents;
2055
+ };
2056
+ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError = async (output, context) => {
2057
+ const parsedOutput = {
2058
+ ...output,
2059
+ body: await parseErrorBody(output.body, context),
2060
+ };
2061
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2062
+ switch (errorCode) {
2063
+ case "AccessDeniedException":
2064
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2065
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2066
+ case "InternalServerException":
2067
+ case "com.amazonaws.workspacesweb#InternalServerException":
2068
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2069
+ case "ResourceNotFoundException":
2070
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2071
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2072
+ case "ThrottlingException":
2073
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2074
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2075
+ case "ValidationException":
2076
+ case "com.amazonaws.workspacesweb#ValidationException":
2077
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2078
+ default:
2079
+ const parsedBody = parsedOutput.body;
2080
+ throwDefaultError({
2081
+ output,
2082
+ parsedBody,
2083
+ exceptionCtor: __BaseException,
2084
+ errorCode,
2085
+ });
2086
+ }
2087
+ };
1768
2088
  export const deserializeAws_restJson1DisassociateUserSettingsCommand = async (output, context) => {
1769
2089
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1770
2090
  return deserializeAws_restJson1DisassociateUserSettingsCommandError(output, context);
@@ -2128,6 +2448,51 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
2128
2448
  });
2129
2449
  }
2130
2450
  };
2451
+ export const deserializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (output, context) => {
2452
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2453
+ return deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError(output, context);
2454
+ }
2455
+ const contents = map({
2456
+ $metadata: deserializeMetadata(output),
2457
+ });
2458
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2459
+ if (data.userAccessLoggingSettings != null) {
2460
+ contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
2461
+ }
2462
+ return contents;
2463
+ };
2464
+ const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (output, context) => {
2465
+ const parsedOutput = {
2466
+ ...output,
2467
+ body: await parseErrorBody(output.body, context),
2468
+ };
2469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2470
+ switch (errorCode) {
2471
+ case "AccessDeniedException":
2472
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2473
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2474
+ case "InternalServerException":
2475
+ case "com.amazonaws.workspacesweb#InternalServerException":
2476
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2477
+ case "ResourceNotFoundException":
2478
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2479
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2480
+ case "ThrottlingException":
2481
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2482
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2483
+ case "ValidationException":
2484
+ case "com.amazonaws.workspacesweb#ValidationException":
2485
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2486
+ default:
2487
+ const parsedBody = parsedOutput.body;
2488
+ throwDefaultError({
2489
+ output,
2490
+ parsedBody,
2491
+ exceptionCtor: __BaseException,
2492
+ errorCode,
2493
+ });
2494
+ }
2495
+ };
2131
2496
  export const deserializeAws_restJson1GetUserSettingsCommand = async (output, context) => {
2132
2497
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2133
2498
  return deserializeAws_restJson1GetUserSettingsCommandError(output, context);
@@ -2494,6 +2859,51 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
2494
2859
  });
2495
2860
  }
2496
2861
  };
2862
+ export const deserializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (output, context) => {
2863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2864
+ return deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError(output, context);
2865
+ }
2866
+ const contents = map({
2867
+ $metadata: deserializeMetadata(output),
2868
+ });
2869
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2870
+ if (data.nextToken != null) {
2871
+ contents.nextToken = __expectString(data.nextToken);
2872
+ }
2873
+ if (data.userAccessLoggingSettings != null) {
2874
+ contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettingsList(data.userAccessLoggingSettings, context);
2875
+ }
2876
+ return contents;
2877
+ };
2878
+ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async (output, context) => {
2879
+ const parsedOutput = {
2880
+ ...output,
2881
+ body: await parseErrorBody(output.body, context),
2882
+ };
2883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2884
+ switch (errorCode) {
2885
+ case "AccessDeniedException":
2886
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2887
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2888
+ case "InternalServerException":
2889
+ case "com.amazonaws.workspacesweb#InternalServerException":
2890
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2891
+ case "ThrottlingException":
2892
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2893
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2894
+ case "ValidationException":
2895
+ case "com.amazonaws.workspacesweb#ValidationException":
2896
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2897
+ default:
2898
+ const parsedBody = parsedOutput.body;
2899
+ throwDefaultError({
2900
+ output,
2901
+ parsedBody,
2902
+ exceptionCtor: __BaseException,
2903
+ errorCode,
2904
+ });
2905
+ }
2906
+ };
2497
2907
  export const deserializeAws_restJson1ListUserSettingsCommand = async (output, context) => {
2498
2908
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2499
2909
  return deserializeAws_restJson1ListUserSettingsCommandError(output, context);
@@ -2854,6 +3264,51 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
2854
3264
  });
2855
3265
  }
2856
3266
  };
3267
+ export const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
3268
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3269
+ return deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError(output, context);
3270
+ }
3271
+ const contents = map({
3272
+ $metadata: deserializeMetadata(output),
3273
+ });
3274
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3275
+ if (data.userAccessLoggingSettings != null) {
3276
+ contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
3277
+ }
3278
+ return contents;
3279
+ };
3280
+ const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = async (output, context) => {
3281
+ const parsedOutput = {
3282
+ ...output,
3283
+ body: await parseErrorBody(output.body, context),
3284
+ };
3285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3286
+ switch (errorCode) {
3287
+ case "AccessDeniedException":
3288
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
3289
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3290
+ case "InternalServerException":
3291
+ case "com.amazonaws.workspacesweb#InternalServerException":
3292
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3293
+ case "ResourceNotFoundException":
3294
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3295
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3296
+ case "ThrottlingException":
3297
+ case "com.amazonaws.workspacesweb#ThrottlingException":
3298
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3299
+ case "ValidationException":
3300
+ case "com.amazonaws.workspacesweb#ValidationException":
3301
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3302
+ default:
3303
+ const parsedBody = parsedOutput.body;
3304
+ throwDefaultError({
3305
+ output,
3306
+ parsedBody,
3307
+ exceptionCtor: __BaseException,
3308
+ errorCode,
3309
+ });
3310
+ }
3311
+ };
2857
3312
  export const deserializeAws_restJson1UpdateUserSettingsCommand = async (output, context) => {
2858
3313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2859
3314
  return deserializeAws_restJson1UpdateUserSettingsCommandError(output, context);
@@ -3266,6 +3721,7 @@ const deserializeAws_restJson1Portal = (output, context) => {
3266
3721
  rendererType: __expectString(output.rendererType),
3267
3722
  statusReason: __expectString(output.statusReason),
3268
3723
  trustStoreArn: __expectString(output.trustStoreArn),
3724
+ userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
3269
3725
  userSettingsArn: __expectString(output.userSettingsArn),
3270
3726
  };
3271
3727
  };
@@ -3294,6 +3750,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
3294
3750
  portalStatus: __expectString(output.portalStatus),
3295
3751
  rendererType: __expectString(output.rendererType),
3296
3752
  trustStoreArn: __expectString(output.trustStoreArn),
3753
+ userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
3297
3754
  userSettingsArn: __expectString(output.userSettingsArn),
3298
3755
  };
3299
3756
  };
@@ -3360,6 +3817,32 @@ const deserializeAws_restJson1TrustStoreSummaryList = (output, context) => {
3360
3817
  });
3361
3818
  return retVal;
3362
3819
  };
3820
+ const deserializeAws_restJson1UserAccessLoggingSettings = (output, context) => {
3821
+ return {
3822
+ associatedPortalArns: output.associatedPortalArns != null
3823
+ ? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
3824
+ : undefined,
3825
+ kinesisStreamArn: __expectString(output.kinesisStreamArn),
3826
+ userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
3827
+ };
3828
+ };
3829
+ const deserializeAws_restJson1UserAccessLoggingSettingsList = (output, context) => {
3830
+ const retVal = (output || [])
3831
+ .filter((e) => e != null)
3832
+ .map((entry) => {
3833
+ if (entry === null) {
3834
+ return null;
3835
+ }
3836
+ return deserializeAws_restJson1UserAccessLoggingSettingsSummary(entry, context);
3837
+ });
3838
+ return retVal;
3839
+ };
3840
+ const deserializeAws_restJson1UserAccessLoggingSettingsSummary = (output, context) => {
3841
+ return {
3842
+ kinesisStreamArn: __expectString(output.kinesisStreamArn),
3843
+ userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
3844
+ };
3845
+ };
3363
3846
  const deserializeAws_restJson1UserSettings = (output, context) => {
3364
3847
  return {
3365
3848
  associatedPortalArns: output.associatedPortalArns != null
@@ -1,10 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
- import { defaultRegionInfoProvider } from "./endpoints";
2
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
3
3
  export const getRuntimeConfig = (config) => ({
4
4
  apiVersion: "2020-07-08",
5
5
  disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
6
7
  logger: config?.logger ?? {},
7
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
8
  serviceId: config?.serviceId ?? "WorkSpaces Web",
9
9
  urlParser: config?.urlParser ?? parseUrl,
10
10
  });