@aws-sdk/client-workspaces-web 3.342.0 → 3.344.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.
- package/README.md +56 -0
- package/dist-cjs/WorkSpacesWeb.js +14 -0
- package/dist-cjs/commands/AssociateIpAccessSettingsCommand.js +46 -0
- package/dist-cjs/commands/CreateIpAccessSettingsCommand.js +47 -0
- package/dist-cjs/commands/DeleteIpAccessSettingsCommand.js +46 -0
- package/dist-cjs/commands/DisassociateIpAccessSettingsCommand.js +46 -0
- package/dist-cjs/commands/GetIpAccessSettingsCommand.js +47 -0
- package/dist-cjs/commands/ListIpAccessSettingsCommand.js +47 -0
- package/dist-cjs/commands/UpdateIpAccessSettingsCommand.js +47 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +52 -1
- package/dist-cjs/pagination/ListIpAccessSettingsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +498 -3
- package/dist-es/WorkSpacesWeb.js +14 -0
- package/dist-es/commands/AssociateIpAccessSettingsCommand.js +42 -0
- package/dist-es/commands/CreateIpAccessSettingsCommand.js +43 -0
- package/dist-es/commands/DeleteIpAccessSettingsCommand.js +42 -0
- package/dist-es/commands/DisassociateIpAccessSettingsCommand.js +42 -0
- package/dist-es/commands/GetIpAccessSettingsCommand.js +43 -0
- package/dist-es/commands/ListIpAccessSettingsCommand.js +43 -0
- package/dist-es/commands/UpdateIpAccessSettingsCommand.js +43 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +43 -0
- package/dist-es/pagination/ListIpAccessSettingsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +481 -0
- package/dist-types/WorkSpacesWeb.d.ts +49 -0
- package/dist-types/WorkSpacesWebClient.d.ts +9 -2
- package/dist-types/commands/AssociateIpAccessSettingsCommand.d.ts +93 -0
- package/dist-types/commands/CreateIpAccessSettingsCommand.d.ts +109 -0
- package/dist-types/commands/DeleteIpAccessSettingsCommand.d.ts +86 -0
- package/dist-types/commands/DisassociateIpAccessSettingsCommand.d.ts +86 -0
- package/dist-types/commands/GetIpAccessSettingsCommand.d.ts +102 -0
- package/dist-types/commands/GetPortalCommand.d.ts +1 -0
- package/dist-types/commands/ListIpAccessSettingsCommand.d.ts +94 -0
- package/dist-types/commands/ListPortalsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateIpAccessSettingsCommand.d.ts +111 -0
- package/dist-types/commands/UpdatePortalCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +290 -0
- package/dist-types/pagination/ListIpAccessSettingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/WorkSpacesWeb.d.ts +119 -0
- package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetIpAccessSettingsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateIpAccessSettingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +94 -0
- package/dist-types/ts3.4/pagination/ListIpAccessSettingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateUserSettingsCommand = exports.de_UpdateUserAccessLoggingSettingsCommand = void 0;
|
|
3
|
+
exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListUserSettingsCommand = exports.se_ListUserAccessLoggingSettingsCommand = exports.se_ListTrustStoresCommand = exports.se_ListTrustStoreCertificatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPortalsCommand = exports.se_ListNetworkSettingsCommand = exports.se_ListIpAccessSettingsCommand = exports.se_ListIdentityProvidersCommand = exports.se_ListBrowserSettingsCommand = exports.se_GetUserSettingsCommand = exports.se_GetUserAccessLoggingSettingsCommand = exports.se_GetTrustStoreCertificateCommand = exports.se_GetTrustStoreCommand = exports.se_GetPortalServiceProviderMetadataCommand = exports.se_GetPortalCommand = exports.se_GetNetworkSettingsCommand = exports.se_GetIpAccessSettingsCommand = exports.se_GetIdentityProviderCommand = exports.se_GetBrowserSettingsCommand = exports.se_DisassociateUserSettingsCommand = exports.se_DisassociateUserAccessLoggingSettingsCommand = exports.se_DisassociateTrustStoreCommand = exports.se_DisassociateNetworkSettingsCommand = exports.se_DisassociateIpAccessSettingsCommand = exports.se_DisassociateBrowserSettingsCommand = exports.se_DeleteUserSettingsCommand = exports.se_DeleteUserAccessLoggingSettingsCommand = exports.se_DeleteTrustStoreCommand = exports.se_DeletePortalCommand = exports.se_DeleteNetworkSettingsCommand = exports.se_DeleteIpAccessSettingsCommand = exports.se_DeleteIdentityProviderCommand = exports.se_DeleteBrowserSettingsCommand = exports.se_CreateUserSettingsCommand = exports.se_CreateUserAccessLoggingSettingsCommand = exports.se_CreateTrustStoreCommand = exports.se_CreatePortalCommand = exports.se_CreateNetworkSettingsCommand = exports.se_CreateIpAccessSettingsCommand = exports.se_CreateIdentityProviderCommand = exports.se_CreateBrowserSettingsCommand = exports.se_AssociateUserSettingsCommand = exports.se_AssociateUserAccessLoggingSettingsCommand = exports.se_AssociateTrustStoreCommand = exports.se_AssociateNetworkSettingsCommand = exports.se_AssociateIpAccessSettingsCommand = exports.se_AssociateBrowserSettingsCommand = void 0;
|
|
4
|
+
exports.de_ListNetworkSettingsCommand = exports.de_ListIpAccessSettingsCommand = exports.de_ListIdentityProvidersCommand = exports.de_ListBrowserSettingsCommand = exports.de_GetUserSettingsCommand = exports.de_GetUserAccessLoggingSettingsCommand = exports.de_GetTrustStoreCertificateCommand = exports.de_GetTrustStoreCommand = exports.de_GetPortalServiceProviderMetadataCommand = exports.de_GetPortalCommand = exports.de_GetNetworkSettingsCommand = exports.de_GetIpAccessSettingsCommand = exports.de_GetIdentityProviderCommand = exports.de_GetBrowserSettingsCommand = exports.de_DisassociateUserSettingsCommand = exports.de_DisassociateUserAccessLoggingSettingsCommand = exports.de_DisassociateTrustStoreCommand = exports.de_DisassociateNetworkSettingsCommand = exports.de_DisassociateIpAccessSettingsCommand = exports.de_DisassociateBrowserSettingsCommand = exports.de_DeleteUserSettingsCommand = exports.de_DeleteUserAccessLoggingSettingsCommand = exports.de_DeleteTrustStoreCommand = exports.de_DeletePortalCommand = exports.de_DeleteNetworkSettingsCommand = exports.de_DeleteIpAccessSettingsCommand = exports.de_DeleteIdentityProviderCommand = exports.de_DeleteBrowserSettingsCommand = exports.de_CreateUserSettingsCommand = exports.de_CreateUserAccessLoggingSettingsCommand = exports.de_CreateTrustStoreCommand = exports.de_CreatePortalCommand = exports.de_CreateNetworkSettingsCommand = exports.de_CreateIpAccessSettingsCommand = exports.de_CreateIdentityProviderCommand = exports.de_CreateBrowserSettingsCommand = exports.de_AssociateUserSettingsCommand = exports.de_AssociateUserAccessLoggingSettingsCommand = exports.de_AssociateTrustStoreCommand = exports.de_AssociateNetworkSettingsCommand = exports.de_AssociateIpAccessSettingsCommand = exports.de_AssociateBrowserSettingsCommand = exports.se_UpdateUserSettingsCommand = exports.se_UpdateUserAccessLoggingSettingsCommand = exports.se_UpdateTrustStoreCommand = exports.se_UpdatePortalCommand = exports.se_UpdateNetworkSettingsCommand = exports.se_UpdateIpAccessSettingsCommand = exports.se_UpdateIdentityProviderCommand = exports.se_UpdateBrowserSettingsCommand = void 0;
|
|
5
|
+
exports.de_UpdateUserSettingsCommand = exports.de_UpdateUserAccessLoggingSettingsCommand = exports.de_UpdateTrustStoreCommand = exports.de_UpdatePortalCommand = exports.de_UpdateNetworkSettingsCommand = exports.de_UpdateIpAccessSettingsCommand = exports.de_UpdateIdentityProviderCommand = exports.de_UpdateBrowserSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListUserSettingsCommand = exports.de_ListUserAccessLoggingSettingsCommand = exports.de_ListTrustStoresCommand = exports.de_ListTrustStoreCertificatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPortalsCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -29,6 +29,27 @@ const se_AssociateBrowserSettingsCommand = async (input, context) => {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
exports.se_AssociateBrowserSettingsCommand = se_AssociateBrowserSettingsCommand;
|
|
32
|
+
const se_AssociateIpAccessSettingsCommand = async (input, context) => {
|
|
33
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
|
+
const headers = {};
|
|
35
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings";
|
|
36
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
37
|
+
const query = (0, smithy_client_1.map)({
|
|
38
|
+
ipAccessSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.ipAccessSettingsArn, `ipAccessSettingsArn`)],
|
|
39
|
+
});
|
|
40
|
+
let body;
|
|
41
|
+
return new protocol_http_1.HttpRequest({
|
|
42
|
+
protocol,
|
|
43
|
+
hostname,
|
|
44
|
+
port,
|
|
45
|
+
method: "PUT",
|
|
46
|
+
headers,
|
|
47
|
+
path: resolvedPath,
|
|
48
|
+
query,
|
|
49
|
+
body,
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.se_AssociateIpAccessSettingsCommand = se_AssociateIpAccessSettingsCommand;
|
|
32
53
|
const se_AssociateNetworkSettingsCommand = async (input, context) => {
|
|
33
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
55
|
const headers = {};
|
|
@@ -167,6 +188,33 @@ const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
|
167
188
|
});
|
|
168
189
|
};
|
|
169
190
|
exports.se_CreateIdentityProviderCommand = se_CreateIdentityProviderCommand;
|
|
191
|
+
const se_CreateIpAccessSettingsCommand = async (input, context) => {
|
|
192
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
|
+
const headers = {
|
|
194
|
+
"content-type": "application/json",
|
|
195
|
+
};
|
|
196
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings";
|
|
197
|
+
let body;
|
|
198
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
|
+
additionalEncryptionContext: (_) => (0, smithy_client_1._json)(_),
|
|
200
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
201
|
+
customerManagedKey: [],
|
|
202
|
+
description: [],
|
|
203
|
+
displayName: [],
|
|
204
|
+
ipRules: (_) => (0, smithy_client_1._json)(_),
|
|
205
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
206
|
+
}));
|
|
207
|
+
return new protocol_http_1.HttpRequest({
|
|
208
|
+
protocol,
|
|
209
|
+
hostname,
|
|
210
|
+
port,
|
|
211
|
+
method: "POST",
|
|
212
|
+
headers,
|
|
213
|
+
path: resolvedPath,
|
|
214
|
+
body,
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
exports.se_CreateIpAccessSettingsCommand = se_CreateIpAccessSettingsCommand;
|
|
170
218
|
const se_CreateNetworkSettingsCommand = async (input, context) => {
|
|
171
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
220
|
const headers = {
|
|
@@ -327,6 +375,23 @@ const se_DeleteIdentityProviderCommand = async (input, context) => {
|
|
|
327
375
|
});
|
|
328
376
|
};
|
|
329
377
|
exports.se_DeleteIdentityProviderCommand = se_DeleteIdentityProviderCommand;
|
|
378
|
+
const se_DeleteIpAccessSettingsCommand = async (input, context) => {
|
|
379
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
|
+
const headers = {};
|
|
381
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
|
|
382
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
|
|
383
|
+
let body;
|
|
384
|
+
return new protocol_http_1.HttpRequest({
|
|
385
|
+
protocol,
|
|
386
|
+
hostname,
|
|
387
|
+
port,
|
|
388
|
+
method: "DELETE",
|
|
389
|
+
headers,
|
|
390
|
+
path: resolvedPath,
|
|
391
|
+
body,
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
exports.se_DeleteIpAccessSettingsCommand = se_DeleteIpAccessSettingsCommand;
|
|
330
395
|
const se_DeleteNetworkSettingsCommand = async (input, context) => {
|
|
331
396
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
332
397
|
const headers = {};
|
|
@@ -430,6 +495,23 @@ const se_DisassociateBrowserSettingsCommand = async (input, context) => {
|
|
|
430
495
|
});
|
|
431
496
|
};
|
|
432
497
|
exports.se_DisassociateBrowserSettingsCommand = se_DisassociateBrowserSettingsCommand;
|
|
498
|
+
const se_DisassociateIpAccessSettingsCommand = async (input, context) => {
|
|
499
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
500
|
+
const headers = {};
|
|
501
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings";
|
|
502
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
503
|
+
let body;
|
|
504
|
+
return new protocol_http_1.HttpRequest({
|
|
505
|
+
protocol,
|
|
506
|
+
hostname,
|
|
507
|
+
port,
|
|
508
|
+
method: "DELETE",
|
|
509
|
+
headers,
|
|
510
|
+
path: resolvedPath,
|
|
511
|
+
body,
|
|
512
|
+
});
|
|
513
|
+
};
|
|
514
|
+
exports.se_DisassociateIpAccessSettingsCommand = se_DisassociateIpAccessSettingsCommand;
|
|
433
515
|
const se_DisassociateNetworkSettingsCommand = async (input, context) => {
|
|
434
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
517
|
const headers = {};
|
|
@@ -533,6 +615,23 @@ const se_GetIdentityProviderCommand = async (input, context) => {
|
|
|
533
615
|
});
|
|
534
616
|
};
|
|
535
617
|
exports.se_GetIdentityProviderCommand = se_GetIdentityProviderCommand;
|
|
618
|
+
const se_GetIpAccessSettingsCommand = async (input, context) => {
|
|
619
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
620
|
+
const headers = {};
|
|
621
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
|
|
622
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
|
|
623
|
+
let body;
|
|
624
|
+
return new protocol_http_1.HttpRequest({
|
|
625
|
+
protocol,
|
|
626
|
+
hostname,
|
|
627
|
+
port,
|
|
628
|
+
method: "GET",
|
|
629
|
+
headers,
|
|
630
|
+
path: resolvedPath,
|
|
631
|
+
body,
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
exports.se_GetIpAccessSettingsCommand = se_GetIpAccessSettingsCommand;
|
|
536
635
|
const se_GetNetworkSettingsCommand = async (input, context) => {
|
|
537
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
538
637
|
const headers = {};
|
|
@@ -700,6 +799,27 @@ const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
|
700
799
|
});
|
|
701
800
|
};
|
|
702
801
|
exports.se_ListIdentityProvidersCommand = se_ListIdentityProvidersCommand;
|
|
802
|
+
const se_ListIpAccessSettingsCommand = async (input, context) => {
|
|
803
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
804
|
+
const headers = {};
|
|
805
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings";
|
|
806
|
+
const query = (0, smithy_client_1.map)({
|
|
807
|
+
nextToken: [, input.nextToken],
|
|
808
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
809
|
+
});
|
|
810
|
+
let body;
|
|
811
|
+
return new protocol_http_1.HttpRequest({
|
|
812
|
+
protocol,
|
|
813
|
+
hostname,
|
|
814
|
+
port,
|
|
815
|
+
method: "GET",
|
|
816
|
+
headers,
|
|
817
|
+
path: resolvedPath,
|
|
818
|
+
query,
|
|
819
|
+
body,
|
|
820
|
+
});
|
|
821
|
+
};
|
|
822
|
+
exports.se_ListIpAccessSettingsCommand = se_ListIpAccessSettingsCommand;
|
|
703
823
|
const se_ListNetworkSettingsCommand = async (input, context) => {
|
|
704
824
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
705
825
|
const headers = {};
|
|
@@ -940,6 +1060,31 @@ const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
|
940
1060
|
});
|
|
941
1061
|
};
|
|
942
1062
|
exports.se_UpdateIdentityProviderCommand = se_UpdateIdentityProviderCommand;
|
|
1063
|
+
const se_UpdateIpAccessSettingsCommand = async (input, context) => {
|
|
1064
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1065
|
+
const headers = {
|
|
1066
|
+
"content-type": "application/json",
|
|
1067
|
+
};
|
|
1068
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}";
|
|
1069
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ipAccessSettingsArn", () => input.ipAccessSettingsArn, "{ipAccessSettingsArn+}", true);
|
|
1070
|
+
let body;
|
|
1071
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1072
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1073
|
+
description: [],
|
|
1074
|
+
displayName: [],
|
|
1075
|
+
ipRules: (_) => (0, smithy_client_1._json)(_),
|
|
1076
|
+
}));
|
|
1077
|
+
return new protocol_http_1.HttpRequest({
|
|
1078
|
+
protocol,
|
|
1079
|
+
hostname,
|
|
1080
|
+
port,
|
|
1081
|
+
method: "PATCH",
|
|
1082
|
+
headers,
|
|
1083
|
+
path: resolvedPath,
|
|
1084
|
+
body,
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1087
|
+
exports.se_UpdateIpAccessSettingsCommand = se_UpdateIpAccessSettingsCommand;
|
|
943
1088
|
const se_UpdateNetworkSettingsCommand = async (input, context) => {
|
|
944
1089
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
945
1090
|
const headers = {
|
|
@@ -1115,6 +1260,56 @@ const de_AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
|
1115
1260
|
});
|
|
1116
1261
|
}
|
|
1117
1262
|
};
|
|
1263
|
+
const de_AssociateIpAccessSettingsCommand = async (output, context) => {
|
|
1264
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
+
return de_AssociateIpAccessSettingsCommandError(output, context);
|
|
1266
|
+
}
|
|
1267
|
+
const contents = (0, smithy_client_1.map)({
|
|
1268
|
+
$metadata: deserializeMetadata(output),
|
|
1269
|
+
});
|
|
1270
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1272
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
1273
|
+
portalArn: smithy_client_1.expectString,
|
|
1274
|
+
});
|
|
1275
|
+
Object.assign(contents, doc);
|
|
1276
|
+
return contents;
|
|
1277
|
+
};
|
|
1278
|
+
exports.de_AssociateIpAccessSettingsCommand = de_AssociateIpAccessSettingsCommand;
|
|
1279
|
+
const de_AssociateIpAccessSettingsCommandError = async (output, context) => {
|
|
1280
|
+
const parsedOutput = {
|
|
1281
|
+
...output,
|
|
1282
|
+
body: await parseErrorBody(output.body, context),
|
|
1283
|
+
};
|
|
1284
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
+
switch (errorCode) {
|
|
1286
|
+
case "AccessDeniedException":
|
|
1287
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1288
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1289
|
+
case "ConflictException":
|
|
1290
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1291
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1292
|
+
case "InternalServerException":
|
|
1293
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1294
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
+
case "ResourceNotFoundException":
|
|
1296
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1297
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1298
|
+
case "ThrottlingException":
|
|
1299
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1300
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1301
|
+
case "ValidationException":
|
|
1302
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1303
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1304
|
+
default:
|
|
1305
|
+
const parsedBody = parsedOutput.body;
|
|
1306
|
+
return throwDefaultError({
|
|
1307
|
+
output,
|
|
1308
|
+
parsedBody,
|
|
1309
|
+
errorCode,
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
};
|
|
1118
1313
|
const de_AssociateNetworkSettingsCommand = async (output, context) => {
|
|
1119
1314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
1315
|
return de_AssociateNetworkSettingsCommandError(output, context);
|
|
@@ -1416,6 +1611,55 @@ const de_CreateIdentityProviderCommandError = async (output, context) => {
|
|
|
1416
1611
|
});
|
|
1417
1612
|
}
|
|
1418
1613
|
};
|
|
1614
|
+
const de_CreateIpAccessSettingsCommand = async (output, context) => {
|
|
1615
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1616
|
+
return de_CreateIpAccessSettingsCommandError(output, context);
|
|
1617
|
+
}
|
|
1618
|
+
const contents = (0, smithy_client_1.map)({
|
|
1619
|
+
$metadata: deserializeMetadata(output),
|
|
1620
|
+
});
|
|
1621
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1622
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1623
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
1624
|
+
});
|
|
1625
|
+
Object.assign(contents, doc);
|
|
1626
|
+
return contents;
|
|
1627
|
+
};
|
|
1628
|
+
exports.de_CreateIpAccessSettingsCommand = de_CreateIpAccessSettingsCommand;
|
|
1629
|
+
const de_CreateIpAccessSettingsCommandError = async (output, context) => {
|
|
1630
|
+
const parsedOutput = {
|
|
1631
|
+
...output,
|
|
1632
|
+
body: await parseErrorBody(output.body, context),
|
|
1633
|
+
};
|
|
1634
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
+
switch (errorCode) {
|
|
1636
|
+
case "AccessDeniedException":
|
|
1637
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1638
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1639
|
+
case "ConflictException":
|
|
1640
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1641
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1642
|
+
case "InternalServerException":
|
|
1643
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1644
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1645
|
+
case "ServiceQuotaExceededException":
|
|
1646
|
+
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1647
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1648
|
+
case "ThrottlingException":
|
|
1649
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1650
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1651
|
+
case "ValidationException":
|
|
1652
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1653
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1654
|
+
default:
|
|
1655
|
+
const parsedBody = parsedOutput.body;
|
|
1656
|
+
return throwDefaultError({
|
|
1657
|
+
output,
|
|
1658
|
+
parsedBody,
|
|
1659
|
+
errorCode,
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
};
|
|
1419
1663
|
const de_CreateNetworkSettingsCommand = async (output, context) => {
|
|
1420
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1421
1665
|
return de_CreateNetworkSettingsCommandError(output, context);
|
|
@@ -1749,6 +1993,48 @@ const de_DeleteIdentityProviderCommandError = async (output, context) => {
|
|
|
1749
1993
|
});
|
|
1750
1994
|
}
|
|
1751
1995
|
};
|
|
1996
|
+
const de_DeleteIpAccessSettingsCommand = async (output, context) => {
|
|
1997
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1998
|
+
return de_DeleteIpAccessSettingsCommandError(output, context);
|
|
1999
|
+
}
|
|
2000
|
+
const contents = (0, smithy_client_1.map)({
|
|
2001
|
+
$metadata: deserializeMetadata(output),
|
|
2002
|
+
});
|
|
2003
|
+
await collectBody(output.body, context);
|
|
2004
|
+
return contents;
|
|
2005
|
+
};
|
|
2006
|
+
exports.de_DeleteIpAccessSettingsCommand = de_DeleteIpAccessSettingsCommand;
|
|
2007
|
+
const de_DeleteIpAccessSettingsCommandError = async (output, context) => {
|
|
2008
|
+
const parsedOutput = {
|
|
2009
|
+
...output,
|
|
2010
|
+
body: await parseErrorBody(output.body, context),
|
|
2011
|
+
};
|
|
2012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
+
switch (errorCode) {
|
|
2014
|
+
case "AccessDeniedException":
|
|
2015
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2016
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2017
|
+
case "ConflictException":
|
|
2018
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2019
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2020
|
+
case "InternalServerException":
|
|
2021
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2022
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2023
|
+
case "ThrottlingException":
|
|
2024
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2025
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2026
|
+
case "ValidationException":
|
|
2027
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2028
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2029
|
+
default:
|
|
2030
|
+
const parsedBody = parsedOutput.body;
|
|
2031
|
+
return throwDefaultError({
|
|
2032
|
+
output,
|
|
2033
|
+
parsedBody,
|
|
2034
|
+
errorCode,
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
1752
2038
|
const de_DeleteNetworkSettingsCommand = async (output, context) => {
|
|
1753
2039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1754
2040
|
return de_DeleteNetworkSettingsCommandError(output, context);
|
|
@@ -2001,6 +2287,48 @@ const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
|
|
|
2001
2287
|
});
|
|
2002
2288
|
}
|
|
2003
2289
|
};
|
|
2290
|
+
const de_DisassociateIpAccessSettingsCommand = async (output, context) => {
|
|
2291
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2292
|
+
return de_DisassociateIpAccessSettingsCommandError(output, context);
|
|
2293
|
+
}
|
|
2294
|
+
const contents = (0, smithy_client_1.map)({
|
|
2295
|
+
$metadata: deserializeMetadata(output),
|
|
2296
|
+
});
|
|
2297
|
+
await collectBody(output.body, context);
|
|
2298
|
+
return contents;
|
|
2299
|
+
};
|
|
2300
|
+
exports.de_DisassociateIpAccessSettingsCommand = de_DisassociateIpAccessSettingsCommand;
|
|
2301
|
+
const de_DisassociateIpAccessSettingsCommandError = async (output, context) => {
|
|
2302
|
+
const parsedOutput = {
|
|
2303
|
+
...output,
|
|
2304
|
+
body: await parseErrorBody(output.body, context),
|
|
2305
|
+
};
|
|
2306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
|
+
switch (errorCode) {
|
|
2308
|
+
case "AccessDeniedException":
|
|
2309
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2310
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2311
|
+
case "InternalServerException":
|
|
2312
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2313
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2314
|
+
case "ResourceNotFoundException":
|
|
2315
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2316
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2317
|
+
case "ThrottlingException":
|
|
2318
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2319
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2320
|
+
case "ValidationException":
|
|
2321
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2322
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2323
|
+
default:
|
|
2324
|
+
const parsedBody = parsedOutput.body;
|
|
2325
|
+
return throwDefaultError({
|
|
2326
|
+
output,
|
|
2327
|
+
parsedBody,
|
|
2328
|
+
errorCode,
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2331
|
+
};
|
|
2004
2332
|
const de_DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
2005
2333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
2334
|
return de_DisassociateNetworkSettingsCommandError(output, context);
|
|
@@ -2261,6 +2589,52 @@ const de_GetIdentityProviderCommandError = async (output, context) => {
|
|
|
2261
2589
|
});
|
|
2262
2590
|
}
|
|
2263
2591
|
};
|
|
2592
|
+
const de_GetIpAccessSettingsCommand = async (output, context) => {
|
|
2593
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2594
|
+
return de_GetIpAccessSettingsCommandError(output, context);
|
|
2595
|
+
}
|
|
2596
|
+
const contents = (0, smithy_client_1.map)({
|
|
2597
|
+
$metadata: deserializeMetadata(output),
|
|
2598
|
+
});
|
|
2599
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2600
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2601
|
+
ipAccessSettings: (_) => de_IpAccessSettings(_, context),
|
|
2602
|
+
});
|
|
2603
|
+
Object.assign(contents, doc);
|
|
2604
|
+
return contents;
|
|
2605
|
+
};
|
|
2606
|
+
exports.de_GetIpAccessSettingsCommand = de_GetIpAccessSettingsCommand;
|
|
2607
|
+
const de_GetIpAccessSettingsCommandError = async (output, context) => {
|
|
2608
|
+
const parsedOutput = {
|
|
2609
|
+
...output,
|
|
2610
|
+
body: await parseErrorBody(output.body, context),
|
|
2611
|
+
};
|
|
2612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2613
|
+
switch (errorCode) {
|
|
2614
|
+
case "AccessDeniedException":
|
|
2615
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2616
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2617
|
+
case "InternalServerException":
|
|
2618
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2619
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2620
|
+
case "ResourceNotFoundException":
|
|
2621
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2622
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2623
|
+
case "ThrottlingException":
|
|
2624
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2625
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2626
|
+
case "ValidationException":
|
|
2627
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2628
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2629
|
+
default:
|
|
2630
|
+
const parsedBody = parsedOutput.body;
|
|
2631
|
+
return throwDefaultError({
|
|
2632
|
+
output,
|
|
2633
|
+
parsedBody,
|
|
2634
|
+
errorCode,
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
};
|
|
2264
2638
|
const de_GetNetworkSettingsCommand = async (output, context) => {
|
|
2265
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2266
2640
|
return de_GetNetworkSettingsCommandError(output, context);
|
|
@@ -2673,6 +3047,50 @@ const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
|
2673
3047
|
});
|
|
2674
3048
|
}
|
|
2675
3049
|
};
|
|
3050
|
+
const de_ListIpAccessSettingsCommand = async (output, context) => {
|
|
3051
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3052
|
+
return de_ListIpAccessSettingsCommandError(output, context);
|
|
3053
|
+
}
|
|
3054
|
+
const contents = (0, smithy_client_1.map)({
|
|
3055
|
+
$metadata: deserializeMetadata(output),
|
|
3056
|
+
});
|
|
3057
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3058
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3059
|
+
ipAccessSettings: (_) => de_IpAccessSettingsList(_, context),
|
|
3060
|
+
nextToken: smithy_client_1.expectString,
|
|
3061
|
+
});
|
|
3062
|
+
Object.assign(contents, doc);
|
|
3063
|
+
return contents;
|
|
3064
|
+
};
|
|
3065
|
+
exports.de_ListIpAccessSettingsCommand = de_ListIpAccessSettingsCommand;
|
|
3066
|
+
const de_ListIpAccessSettingsCommandError = async (output, context) => {
|
|
3067
|
+
const parsedOutput = {
|
|
3068
|
+
...output,
|
|
3069
|
+
body: await parseErrorBody(output.body, context),
|
|
3070
|
+
};
|
|
3071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3072
|
+
switch (errorCode) {
|
|
3073
|
+
case "AccessDeniedException":
|
|
3074
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3075
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3076
|
+
case "InternalServerException":
|
|
3077
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3078
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3079
|
+
case "ThrottlingException":
|
|
3080
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3081
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3082
|
+
case "ValidationException":
|
|
3083
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3084
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3085
|
+
default:
|
|
3086
|
+
const parsedBody = parsedOutput.body;
|
|
3087
|
+
return throwDefaultError({
|
|
3088
|
+
output,
|
|
3089
|
+
parsedBody,
|
|
3090
|
+
errorCode,
|
|
3091
|
+
});
|
|
3092
|
+
}
|
|
3093
|
+
};
|
|
2676
3094
|
const de_ListNetworkSettingsCommand = async (output, context) => {
|
|
2677
3095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2678
3096
|
return de_ListNetworkSettingsCommandError(output, context);
|
|
@@ -3166,6 +3584,52 @@ const de_UpdateIdentityProviderCommandError = async (output, context) => {
|
|
|
3166
3584
|
});
|
|
3167
3585
|
}
|
|
3168
3586
|
};
|
|
3587
|
+
const de_UpdateIpAccessSettingsCommand = async (output, context) => {
|
|
3588
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3589
|
+
return de_UpdateIpAccessSettingsCommandError(output, context);
|
|
3590
|
+
}
|
|
3591
|
+
const contents = (0, smithy_client_1.map)({
|
|
3592
|
+
$metadata: deserializeMetadata(output),
|
|
3593
|
+
});
|
|
3594
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3595
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3596
|
+
ipAccessSettings: (_) => de_IpAccessSettings(_, context),
|
|
3597
|
+
});
|
|
3598
|
+
Object.assign(contents, doc);
|
|
3599
|
+
return contents;
|
|
3600
|
+
};
|
|
3601
|
+
exports.de_UpdateIpAccessSettingsCommand = de_UpdateIpAccessSettingsCommand;
|
|
3602
|
+
const de_UpdateIpAccessSettingsCommandError = async (output, context) => {
|
|
3603
|
+
const parsedOutput = {
|
|
3604
|
+
...output,
|
|
3605
|
+
body: await parseErrorBody(output.body, context),
|
|
3606
|
+
};
|
|
3607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3608
|
+
switch (errorCode) {
|
|
3609
|
+
case "AccessDeniedException":
|
|
3610
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3611
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3612
|
+
case "InternalServerException":
|
|
3613
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3614
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3615
|
+
case "ResourceNotFoundException":
|
|
3616
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3617
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3618
|
+
case "ThrottlingException":
|
|
3619
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3620
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3621
|
+
case "ValidationException":
|
|
3622
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3623
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3624
|
+
default:
|
|
3625
|
+
const parsedBody = parsedOutput.body;
|
|
3626
|
+
return throwDefaultError({
|
|
3627
|
+
output,
|
|
3628
|
+
parsedBody,
|
|
3629
|
+
errorCode,
|
|
3630
|
+
});
|
|
3631
|
+
}
|
|
3632
|
+
};
|
|
3169
3633
|
const de_UpdateNetworkSettingsCommand = async (output, context) => {
|
|
3170
3634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3171
3635
|
return de_UpdateNetworkSettingsCommandError(output, context);
|
|
@@ -3237,6 +3701,9 @@ const de_UpdatePortalCommandError = async (output, context) => {
|
|
|
3237
3701
|
case "AccessDeniedException":
|
|
3238
3702
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3239
3703
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3704
|
+
case "ConflictException":
|
|
3705
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
3706
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3240
3707
|
case "InternalServerException":
|
|
3241
3708
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3242
3709
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -3561,6 +4028,32 @@ const de_CertificateSummaryList = (output, context) => {
|
|
|
3561
4028
|
});
|
|
3562
4029
|
return retVal;
|
|
3563
4030
|
};
|
|
4031
|
+
const de_IpAccessSettings = (output, context) => {
|
|
4032
|
+
return (0, smithy_client_1.take)(output, {
|
|
4033
|
+
associatedPortalArns: smithy_client_1._json,
|
|
4034
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4035
|
+
description: smithy_client_1.expectString,
|
|
4036
|
+
displayName: smithy_client_1.expectString,
|
|
4037
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
4038
|
+
ipRules: smithy_client_1._json,
|
|
4039
|
+
});
|
|
4040
|
+
};
|
|
4041
|
+
const de_IpAccessSettingsList = (output, context) => {
|
|
4042
|
+
const retVal = (output || [])
|
|
4043
|
+
.filter((e) => e != null)
|
|
4044
|
+
.map((entry) => {
|
|
4045
|
+
return de_IpAccessSettingsSummary(entry, context);
|
|
4046
|
+
});
|
|
4047
|
+
return retVal;
|
|
4048
|
+
};
|
|
4049
|
+
const de_IpAccessSettingsSummary = (output, context) => {
|
|
4050
|
+
return (0, smithy_client_1.take)(output, {
|
|
4051
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4052
|
+
description: smithy_client_1.expectString,
|
|
4053
|
+
displayName: smithy_client_1.expectString,
|
|
4054
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
4055
|
+
});
|
|
4056
|
+
};
|
|
3564
4057
|
const de_Portal = (output, context) => {
|
|
3565
4058
|
return (0, smithy_client_1.take)(output, {
|
|
3566
4059
|
authenticationType: smithy_client_1.expectString,
|
|
@@ -3568,6 +4061,7 @@ const de_Portal = (output, context) => {
|
|
|
3568
4061
|
browserType: smithy_client_1.expectString,
|
|
3569
4062
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3570
4063
|
displayName: smithy_client_1.expectString,
|
|
4064
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
3571
4065
|
networkSettingsArn: smithy_client_1.expectString,
|
|
3572
4066
|
portalArn: smithy_client_1.expectString,
|
|
3573
4067
|
portalEndpoint: smithy_client_1.expectString,
|
|
@@ -3594,6 +4088,7 @@ const de_PortalSummary = (output, context) => {
|
|
|
3594
4088
|
browserType: smithy_client_1.expectString,
|
|
3595
4089
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3596
4090
|
displayName: smithy_client_1.expectString,
|
|
4091
|
+
ipAccessSettingsArn: smithy_client_1.expectString,
|
|
3597
4092
|
networkSettingsArn: smithy_client_1.expectString,
|
|
3598
4093
|
portalArn: smithy_client_1.expectString,
|
|
3599
4094
|
portalEndpoint: smithy_client_1.expectString,
|