@aws-sdk/client-workspaces-web 3.341.0 → 3.343.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 (63) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/WorkSpacesWeb.js +14 -0
  3. package/dist-cjs/commands/AssociateIpAccessSettingsCommand.js +46 -0
  4. package/dist-cjs/commands/CreateIpAccessSettingsCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteIpAccessSettingsCommand.js +46 -0
  6. package/dist-cjs/commands/DisassociateIpAccessSettingsCommand.js +46 -0
  7. package/dist-cjs/commands/GetIpAccessSettingsCommand.js +47 -0
  8. package/dist-cjs/commands/ListIpAccessSettingsCommand.js +47 -0
  9. package/dist-cjs/commands/UpdateIpAccessSettingsCommand.js +47 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoint/ruleset.js +3 -3
  12. package/dist-cjs/models/models_0.js +52 -1
  13. package/dist-cjs/pagination/ListIpAccessSettingsPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +498 -3
  16. package/dist-es/WorkSpacesWeb.js +14 -0
  17. package/dist-es/commands/AssociateIpAccessSettingsCommand.js +42 -0
  18. package/dist-es/commands/CreateIpAccessSettingsCommand.js +43 -0
  19. package/dist-es/commands/DeleteIpAccessSettingsCommand.js +42 -0
  20. package/dist-es/commands/DisassociateIpAccessSettingsCommand.js +42 -0
  21. package/dist-es/commands/GetIpAccessSettingsCommand.js +43 -0
  22. package/dist-es/commands/ListIpAccessSettingsCommand.js +43 -0
  23. package/dist-es/commands/UpdateIpAccessSettingsCommand.js +43 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/endpoint/ruleset.js +3 -3
  26. package/dist-es/models/models_0.js +43 -0
  27. package/dist-es/pagination/ListIpAccessSettingsPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_restJson1.js +481 -0
  30. package/dist-types/WorkSpacesWeb.d.ts +49 -0
  31. package/dist-types/WorkSpacesWebClient.d.ts +9 -2
  32. package/dist-types/commands/AssociateIpAccessSettingsCommand.d.ts +93 -0
  33. package/dist-types/commands/CreateIpAccessSettingsCommand.d.ts +109 -0
  34. package/dist-types/commands/DeleteIpAccessSettingsCommand.d.ts +86 -0
  35. package/dist-types/commands/DisassociateIpAccessSettingsCommand.d.ts +86 -0
  36. package/dist-types/commands/GetIpAccessSettingsCommand.d.ts +102 -0
  37. package/dist-types/commands/GetPortalCommand.d.ts +1 -0
  38. package/dist-types/commands/ListIpAccessSettingsCommand.d.ts +94 -0
  39. package/dist-types/commands/ListPortalsCommand.d.ts +1 -0
  40. package/dist-types/commands/UpdateIpAccessSettingsCommand.d.ts +111 -0
  41. package/dist-types/commands/UpdatePortalCommand.d.ts +4 -0
  42. package/dist-types/commands/index.d.ts +7 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  44. package/dist-types/models/models_0.d.ts +290 -0
  45. package/dist-types/pagination/ListIpAccessSettingsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +1 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  48. package/dist-types/ts3.4/WorkSpacesWeb.d.ts +119 -0
  49. package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/AssociateIpAccessSettingsCommand.d.ts +42 -0
  51. package/dist-types/ts3.4/commands/CreateIpAccessSettingsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/DeleteIpAccessSettingsCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/DisassociateIpAccessSettingsCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/GetIpAccessSettingsCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/ListIpAccessSettingsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/UpdateIpAccessSettingsCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  58. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  59. package/dist-types/ts3.4/models/models_0.d.ts +94 -0
  60. package/dist-types/ts3.4/pagination/ListIpAccessSettingsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  62. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  63. package/package.json +28 -28
@@ -23,6 +23,26 @@ export const se_AssociateBrowserSettingsCommand = async (input, context) => {
23
23
  body,
24
24
  });
25
25
  };
26
+ export const se_AssociateIpAccessSettingsCommand = async (input, context) => {
27
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const headers = {};
29
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings";
30
+ resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
31
+ const query = map({
32
+ ipAccessSettingsArn: [, __expectNonNull(input.ipAccessSettingsArn, `ipAccessSettingsArn`)],
33
+ });
34
+ let body;
35
+ return new __HttpRequest({
36
+ protocol,
37
+ hostname,
38
+ port,
39
+ method: "PUT",
40
+ headers,
41
+ path: resolvedPath,
42
+ query,
43
+ body,
44
+ });
45
+ };
26
46
  export const se_AssociateNetworkSettingsCommand = async (input, context) => {
27
47
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
48
  const headers = {};
@@ -155,6 +175,32 @@ export const se_CreateIdentityProviderCommand = async (input, context) => {
155
175
  body,
156
176
  });
157
177
  };
178
+ export const se_CreateIpAccessSettingsCommand = async (input, context) => {
179
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
+ const headers = {
181
+ "content-type": "application/json",
182
+ };
183
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings";
184
+ let body;
185
+ body = JSON.stringify(take(input, {
186
+ additionalEncryptionContext: (_) => _json(_),
187
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
188
+ customerManagedKey: [],
189
+ description: [],
190
+ displayName: [],
191
+ ipRules: (_) => _json(_),
192
+ tags: (_) => _json(_),
193
+ }));
194
+ return new __HttpRequest({
195
+ protocol,
196
+ hostname,
197
+ port,
198
+ method: "POST",
199
+ headers,
200
+ path: resolvedPath,
201
+ body,
202
+ });
203
+ };
158
204
  export const se_CreateNetworkSettingsCommand = async (input, context) => {
159
205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
206
  const headers = {
@@ -308,6 +354,22 @@ export const se_DeleteIdentityProviderCommand = async (input, context) => {
308
354
  body,
309
355
  });
310
356
  };
357
+ export const se_DeleteIpAccessSettingsCommand = async (input, context) => {
358
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
359
+ const headers = {};
360
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
361
+ resolvedPath = __resolvedPath(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
362
+ let body;
363
+ return new __HttpRequest({
364
+ protocol,
365
+ hostname,
366
+ port,
367
+ method: "DELETE",
368
+ headers,
369
+ path: resolvedPath,
370
+ body,
371
+ });
372
+ };
311
373
  export const se_DeleteNetworkSettingsCommand = async (input, context) => {
312
374
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
375
  const headers = {};
@@ -405,6 +467,22 @@ export const se_DisassociateBrowserSettingsCommand = async (input, context) => {
405
467
  body,
406
468
  });
407
469
  };
470
+ export const se_DisassociateIpAccessSettingsCommand = async (input, context) => {
471
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
472
+ const headers = {};
473
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings";
474
+ resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
475
+ let body;
476
+ return new __HttpRequest({
477
+ protocol,
478
+ hostname,
479
+ port,
480
+ method: "DELETE",
481
+ headers,
482
+ path: resolvedPath,
483
+ body,
484
+ });
485
+ };
408
486
  export const se_DisassociateNetworkSettingsCommand = async (input, context) => {
409
487
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
410
488
  const headers = {};
@@ -502,6 +580,22 @@ export const se_GetIdentityProviderCommand = async (input, context) => {
502
580
  body,
503
581
  });
504
582
  };
583
+ export const se_GetIpAccessSettingsCommand = async (input, context) => {
584
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
585
+ const headers = {};
586
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
587
+ resolvedPath = __resolvedPath(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
588
+ let body;
589
+ return new __HttpRequest({
590
+ protocol,
591
+ hostname,
592
+ port,
593
+ method: "GET",
594
+ headers,
595
+ path: resolvedPath,
596
+ body,
597
+ });
598
+ };
505
599
  export const se_GetNetworkSettingsCommand = async (input, context) => {
506
600
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
601
  const headers = {};
@@ -660,6 +754,26 @@ export const se_ListIdentityProvidersCommand = async (input, context) => {
660
754
  body,
661
755
  });
662
756
  };
757
+ export const se_ListIpAccessSettingsCommand = async (input, context) => {
758
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const headers = {};
760
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings";
761
+ const query = map({
762
+ nextToken: [, input.nextToken],
763
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
764
+ });
765
+ let body;
766
+ return new __HttpRequest({
767
+ protocol,
768
+ hostname,
769
+ port,
770
+ method: "GET",
771
+ headers,
772
+ path: resolvedPath,
773
+ query,
774
+ body,
775
+ });
776
+ };
663
777
  export const se_ListNetworkSettingsCommand = async (input, context) => {
664
778
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
779
  const headers = {};
@@ -889,6 +1003,30 @@ export const se_UpdateIdentityProviderCommand = async (input, context) => {
889
1003
  body,
890
1004
  });
891
1005
  };
1006
+ export const se_UpdateIpAccessSettingsCommand = async (input, context) => {
1007
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1008
+ const headers = {
1009
+ "content-type": "application/json",
1010
+ };
1011
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
1012
+ resolvedPath = __resolvedPath(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
1013
+ let body;
1014
+ body = JSON.stringify(take(input, {
1015
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1016
+ description: [],
1017
+ displayName: [],
1018
+ ipRules: (_) => _json(_),
1019
+ }));
1020
+ return new __HttpRequest({
1021
+ protocol,
1022
+ hostname,
1023
+ port,
1024
+ method: "PATCH",
1025
+ headers,
1026
+ path: resolvedPath,
1027
+ body,
1028
+ });
1029
+ };
892
1030
  export const se_UpdateNetworkSettingsCommand = async (input, context) => {
893
1031
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
894
1032
  const headers = {
@@ -1058,6 +1196,55 @@ const de_AssociateBrowserSettingsCommandError = async (output, context) => {
1058
1196
  });
1059
1197
  }
1060
1198
  };
1199
+ export const de_AssociateIpAccessSettingsCommand = async (output, context) => {
1200
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1201
+ return de_AssociateIpAccessSettingsCommandError(output, context);
1202
+ }
1203
+ const contents = map({
1204
+ $metadata: deserializeMetadata(output),
1205
+ });
1206
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1207
+ const doc = take(data, {
1208
+ ipAccessSettingsArn: __expectString,
1209
+ portalArn: __expectString,
1210
+ });
1211
+ Object.assign(contents, doc);
1212
+ return contents;
1213
+ };
1214
+ const de_AssociateIpAccessSettingsCommandError = async (output, context) => {
1215
+ const parsedOutput = {
1216
+ ...output,
1217
+ body: await parseErrorBody(output.body, context),
1218
+ };
1219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1220
+ switch (errorCode) {
1221
+ case "AccessDeniedException":
1222
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1223
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1224
+ case "ConflictException":
1225
+ case "com.amazonaws.workspacesweb#ConflictException":
1226
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1227
+ case "InternalServerException":
1228
+ case "com.amazonaws.workspacesweb#InternalServerException":
1229
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1230
+ case "ResourceNotFoundException":
1231
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1232
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1233
+ case "ThrottlingException":
1234
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1235
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1236
+ case "ValidationException":
1237
+ case "com.amazonaws.workspacesweb#ValidationException":
1238
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1239
+ default:
1240
+ const parsedBody = parsedOutput.body;
1241
+ return throwDefaultError({
1242
+ output,
1243
+ parsedBody,
1244
+ errorCode,
1245
+ });
1246
+ }
1247
+ };
1061
1248
  export const de_AssociateNetworkSettingsCommand = async (output, context) => {
1062
1249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1063
1250
  return de_AssociateNetworkSettingsCommandError(output, context);
@@ -1353,6 +1540,54 @@ const de_CreateIdentityProviderCommandError = async (output, context) => {
1353
1540
  });
1354
1541
  }
1355
1542
  };
1543
+ export const de_CreateIpAccessSettingsCommand = async (output, context) => {
1544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
+ return de_CreateIpAccessSettingsCommandError(output, context);
1546
+ }
1547
+ const contents = map({
1548
+ $metadata: deserializeMetadata(output),
1549
+ });
1550
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1551
+ const doc = take(data, {
1552
+ ipAccessSettingsArn: __expectString,
1553
+ });
1554
+ Object.assign(contents, doc);
1555
+ return contents;
1556
+ };
1557
+ const de_CreateIpAccessSettingsCommandError = async (output, context) => {
1558
+ const parsedOutput = {
1559
+ ...output,
1560
+ body: await parseErrorBody(output.body, context),
1561
+ };
1562
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
+ switch (errorCode) {
1564
+ case "AccessDeniedException":
1565
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1566
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1567
+ case "ConflictException":
1568
+ case "com.amazonaws.workspacesweb#ConflictException":
1569
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1570
+ case "InternalServerException":
1571
+ case "com.amazonaws.workspacesweb#InternalServerException":
1572
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1573
+ case "ServiceQuotaExceededException":
1574
+ case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1575
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1576
+ case "ThrottlingException":
1577
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1578
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1579
+ case "ValidationException":
1580
+ case "com.amazonaws.workspacesweb#ValidationException":
1581
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1582
+ default:
1583
+ const parsedBody = parsedOutput.body;
1584
+ return throwDefaultError({
1585
+ output,
1586
+ parsedBody,
1587
+ errorCode,
1588
+ });
1589
+ }
1590
+ };
1356
1591
  export const de_CreateNetworkSettingsCommand = async (output, context) => {
1357
1592
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1358
1593
  return de_CreateNetworkSettingsCommandError(output, context);
@@ -1679,6 +1914,47 @@ const de_DeleteIdentityProviderCommandError = async (output, context) => {
1679
1914
  });
1680
1915
  }
1681
1916
  };
1917
+ export const de_DeleteIpAccessSettingsCommand = async (output, context) => {
1918
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1919
+ return de_DeleteIpAccessSettingsCommandError(output, context);
1920
+ }
1921
+ const contents = map({
1922
+ $metadata: deserializeMetadata(output),
1923
+ });
1924
+ await collectBody(output.body, context);
1925
+ return contents;
1926
+ };
1927
+ const de_DeleteIpAccessSettingsCommandError = async (output, context) => {
1928
+ const parsedOutput = {
1929
+ ...output,
1930
+ body: await parseErrorBody(output.body, context),
1931
+ };
1932
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1933
+ switch (errorCode) {
1934
+ case "AccessDeniedException":
1935
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
1936
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1937
+ case "ConflictException":
1938
+ case "com.amazonaws.workspacesweb#ConflictException":
1939
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1940
+ case "InternalServerException":
1941
+ case "com.amazonaws.workspacesweb#InternalServerException":
1942
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1943
+ case "ThrottlingException":
1944
+ case "com.amazonaws.workspacesweb#ThrottlingException":
1945
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1946
+ case "ValidationException":
1947
+ case "com.amazonaws.workspacesweb#ValidationException":
1948
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1949
+ default:
1950
+ const parsedBody = parsedOutput.body;
1951
+ return throwDefaultError({
1952
+ output,
1953
+ parsedBody,
1954
+ errorCode,
1955
+ });
1956
+ }
1957
+ };
1682
1958
  export const de_DeleteNetworkSettingsCommand = async (output, context) => {
1683
1959
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
1960
  return de_DeleteNetworkSettingsCommandError(output, context);
@@ -1925,6 +2201,47 @@ const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
1925
2201
  });
1926
2202
  }
1927
2203
  };
2204
+ export const de_DisassociateIpAccessSettingsCommand = async (output, context) => {
2205
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2206
+ return de_DisassociateIpAccessSettingsCommandError(output, context);
2207
+ }
2208
+ const contents = map({
2209
+ $metadata: deserializeMetadata(output),
2210
+ });
2211
+ await collectBody(output.body, context);
2212
+ return contents;
2213
+ };
2214
+ const de_DisassociateIpAccessSettingsCommandError = async (output, context) => {
2215
+ const parsedOutput = {
2216
+ ...output,
2217
+ body: await parseErrorBody(output.body, context),
2218
+ };
2219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2220
+ switch (errorCode) {
2221
+ case "AccessDeniedException":
2222
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2223
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2224
+ case "InternalServerException":
2225
+ case "com.amazonaws.workspacesweb#InternalServerException":
2226
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2227
+ case "ResourceNotFoundException":
2228
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2229
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2230
+ case "ThrottlingException":
2231
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2232
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2233
+ case "ValidationException":
2234
+ case "com.amazonaws.workspacesweb#ValidationException":
2235
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2236
+ default:
2237
+ const parsedBody = parsedOutput.body;
2238
+ return throwDefaultError({
2239
+ output,
2240
+ parsedBody,
2241
+ errorCode,
2242
+ });
2243
+ }
2244
+ };
1928
2245
  export const de_DisassociateNetworkSettingsCommand = async (output, context) => {
1929
2246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1930
2247
  return de_DisassociateNetworkSettingsCommandError(output, context);
@@ -2179,6 +2496,51 @@ const de_GetIdentityProviderCommandError = async (output, context) => {
2179
2496
  });
2180
2497
  }
2181
2498
  };
2499
+ export const de_GetIpAccessSettingsCommand = async (output, context) => {
2500
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2501
+ return de_GetIpAccessSettingsCommandError(output, context);
2502
+ }
2503
+ const contents = map({
2504
+ $metadata: deserializeMetadata(output),
2505
+ });
2506
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2507
+ const doc = take(data, {
2508
+ ipAccessSettings: (_) => de_IpAccessSettings(_, context),
2509
+ });
2510
+ Object.assign(contents, doc);
2511
+ return contents;
2512
+ };
2513
+ const de_GetIpAccessSettingsCommandError = async (output, context) => {
2514
+ const parsedOutput = {
2515
+ ...output,
2516
+ body: await parseErrorBody(output.body, context),
2517
+ };
2518
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2519
+ switch (errorCode) {
2520
+ case "AccessDeniedException":
2521
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2522
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2523
+ case "InternalServerException":
2524
+ case "com.amazonaws.workspacesweb#InternalServerException":
2525
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2526
+ case "ResourceNotFoundException":
2527
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2528
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2529
+ case "ThrottlingException":
2530
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2531
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2532
+ case "ValidationException":
2533
+ case "com.amazonaws.workspacesweb#ValidationException":
2534
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2535
+ default:
2536
+ const parsedBody = parsedOutput.body;
2537
+ return throwDefaultError({
2538
+ output,
2539
+ parsedBody,
2540
+ errorCode,
2541
+ });
2542
+ }
2543
+ };
2182
2544
  export const de_GetNetworkSettingsCommand = async (output, context) => {
2183
2545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2184
2546
  return de_GetNetworkSettingsCommandError(output, context);
@@ -2582,6 +2944,49 @@ const de_ListIdentityProvidersCommandError = async (output, context) => {
2582
2944
  });
2583
2945
  }
2584
2946
  };
2947
+ export const de_ListIpAccessSettingsCommand = async (output, context) => {
2948
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2949
+ return de_ListIpAccessSettingsCommandError(output, context);
2950
+ }
2951
+ const contents = map({
2952
+ $metadata: deserializeMetadata(output),
2953
+ });
2954
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2955
+ const doc = take(data, {
2956
+ ipAccessSettings: (_) => de_IpAccessSettingsList(_, context),
2957
+ nextToken: __expectString,
2958
+ });
2959
+ Object.assign(contents, doc);
2960
+ return contents;
2961
+ };
2962
+ const de_ListIpAccessSettingsCommandError = async (output, context) => {
2963
+ const parsedOutput = {
2964
+ ...output,
2965
+ body: await parseErrorBody(output.body, context),
2966
+ };
2967
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2968
+ switch (errorCode) {
2969
+ case "AccessDeniedException":
2970
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
2971
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2972
+ case "InternalServerException":
2973
+ case "com.amazonaws.workspacesweb#InternalServerException":
2974
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2975
+ case "ThrottlingException":
2976
+ case "com.amazonaws.workspacesweb#ThrottlingException":
2977
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2978
+ case "ValidationException":
2979
+ case "com.amazonaws.workspacesweb#ValidationException":
2980
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2981
+ default:
2982
+ const parsedBody = parsedOutput.body;
2983
+ return throwDefaultError({
2984
+ output,
2985
+ parsedBody,
2986
+ errorCode,
2987
+ });
2988
+ }
2989
+ };
2585
2990
  export const de_ListNetworkSettingsCommand = async (output, context) => {
2586
2991
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2587
2992
  return de_ListNetworkSettingsCommandError(output, context);
@@ -3064,6 +3469,51 @@ const de_UpdateIdentityProviderCommandError = async (output, context) => {
3064
3469
  });
3065
3470
  }
3066
3471
  };
3472
+ export const de_UpdateIpAccessSettingsCommand = async (output, context) => {
3473
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3474
+ return de_UpdateIpAccessSettingsCommandError(output, context);
3475
+ }
3476
+ const contents = map({
3477
+ $metadata: deserializeMetadata(output),
3478
+ });
3479
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3480
+ const doc = take(data, {
3481
+ ipAccessSettings: (_) => de_IpAccessSettings(_, context),
3482
+ });
3483
+ Object.assign(contents, doc);
3484
+ return contents;
3485
+ };
3486
+ const de_UpdateIpAccessSettingsCommandError = async (output, context) => {
3487
+ const parsedOutput = {
3488
+ ...output,
3489
+ body: await parseErrorBody(output.body, context),
3490
+ };
3491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3492
+ switch (errorCode) {
3493
+ case "AccessDeniedException":
3494
+ case "com.amazonaws.workspacesweb#AccessDeniedException":
3495
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3496
+ case "InternalServerException":
3497
+ case "com.amazonaws.workspacesweb#InternalServerException":
3498
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3499
+ case "ResourceNotFoundException":
3500
+ case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3501
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3502
+ case "ThrottlingException":
3503
+ case "com.amazonaws.workspacesweb#ThrottlingException":
3504
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3505
+ case "ValidationException":
3506
+ case "com.amazonaws.workspacesweb#ValidationException":
3507
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3508
+ default:
3509
+ const parsedBody = parsedOutput.body;
3510
+ return throwDefaultError({
3511
+ output,
3512
+ parsedBody,
3513
+ errorCode,
3514
+ });
3515
+ }
3516
+ };
3067
3517
  export const de_UpdateNetworkSettingsCommand = async (output, context) => {
3068
3518
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3069
3519
  return de_UpdateNetworkSettingsCommandError(output, context);
@@ -3133,6 +3583,9 @@ const de_UpdatePortalCommandError = async (output, context) => {
3133
3583
  case "AccessDeniedException":
3134
3584
  case "com.amazonaws.workspacesweb#AccessDeniedException":
3135
3585
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3586
+ case "ConflictException":
3587
+ case "com.amazonaws.workspacesweb#ConflictException":
3588
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3136
3589
  case "InternalServerException":
3137
3590
  case "com.amazonaws.workspacesweb#InternalServerException":
3138
3591
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -3454,6 +3907,32 @@ const de_CertificateSummaryList = (output, context) => {
3454
3907
  });
3455
3908
  return retVal;
3456
3909
  };
3910
+ const de_IpAccessSettings = (output, context) => {
3911
+ return take(output, {
3912
+ associatedPortalArns: _json,
3913
+ creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3914
+ description: __expectString,
3915
+ displayName: __expectString,
3916
+ ipAccessSettingsArn: __expectString,
3917
+ ipRules: _json,
3918
+ });
3919
+ };
3920
+ const de_IpAccessSettingsList = (output, context) => {
3921
+ const retVal = (output || [])
3922
+ .filter((e) => e != null)
3923
+ .map((entry) => {
3924
+ return de_IpAccessSettingsSummary(entry, context);
3925
+ });
3926
+ return retVal;
3927
+ };
3928
+ const de_IpAccessSettingsSummary = (output, context) => {
3929
+ return take(output, {
3930
+ creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3931
+ description: __expectString,
3932
+ displayName: __expectString,
3933
+ ipAccessSettingsArn: __expectString,
3934
+ });
3935
+ };
3457
3936
  const de_Portal = (output, context) => {
3458
3937
  return take(output, {
3459
3938
  authenticationType: __expectString,
@@ -3461,6 +3940,7 @@ const de_Portal = (output, context) => {
3461
3940
  browserType: __expectString,
3462
3941
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3463
3942
  displayName: __expectString,
3943
+ ipAccessSettingsArn: __expectString,
3464
3944
  networkSettingsArn: __expectString,
3465
3945
  portalArn: __expectString,
3466
3946
  portalEndpoint: __expectString,
@@ -3487,6 +3967,7 @@ const de_PortalSummary = (output, context) => {
3487
3967
  browserType: __expectString,
3488
3968
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3489
3969
  displayName: __expectString,
3970
+ ipAccessSettingsArn: __expectString,
3490
3971
  networkSettingsArn: __expectString,
3491
3972
  portalArn: __expectString,
3492
3973
  portalEndpoint: __expectString,