@aws-sdk/client-workspaces-web 3.303.0 → 3.309.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/dist-cjs/commands/AssociateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/AssociateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/CreateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreatePortalCommand.js +2 -2
- package/dist-cjs/commands/CreateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/CreateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/DeleteNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeletePortalCommand.js +2 -2
- package/dist-cjs/commands/DeleteTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/DisassociateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/GetNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetPortalCommand.js +2 -2
- package/dist-cjs/commands/GetPortalServiceProviderMetadataCommand.js +2 -2
- package/dist-cjs/commands/GetTrustStoreCertificateCommand.js +2 -2
- package/dist-cjs/commands/GetTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/GetUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +2 -2
- package/dist-cjs/commands/ListNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListPortalsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTrustStoreCertificatesCommand.js +2 -2
- package/dist-cjs/commands/ListTrustStoresCommand.js +2 -2
- package/dist-cjs/commands/ListUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/UpdateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdatePortalCommand.js +2 -2
- package/dist-cjs/commands/UpdateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserSettingsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +682 -698
- package/dist-es/commands/AssociateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateTrustStoreCommand.js +3 -3
- package/dist-es/commands/AssociateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateUserSettingsCommand.js +3 -3
- package/dist-es/commands/CreateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/CreateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/CreateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/CreatePortalCommand.js +3 -3
- package/dist-es/commands/CreateTrustStoreCommand.js +3 -3
- package/dist-es/commands/CreateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/CreateUserSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteIdentityProviderCommand.js +3 -3
- package/dist-es/commands/DeleteNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/DeletePortalCommand.js +3 -3
- package/dist-es/commands/DeleteTrustStoreCommand.js +3 -3
- package/dist-es/commands/DeleteUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteUserSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateTrustStoreCommand.js +3 -3
- package/dist-es/commands/DisassociateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateUserSettingsCommand.js +3 -3
- package/dist-es/commands/GetBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/GetIdentityProviderCommand.js +3 -3
- package/dist-es/commands/GetNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/GetPortalCommand.js +3 -3
- package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +3 -3
- package/dist-es/commands/GetTrustStoreCertificateCommand.js +3 -3
- package/dist-es/commands/GetTrustStoreCommand.js +3 -3
- package/dist-es/commands/GetUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/GetUserSettingsCommand.js +3 -3
- package/dist-es/commands/ListBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/ListIdentityProvidersCommand.js +3 -3
- package/dist-es/commands/ListNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/ListPortalsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTrustStoreCertificatesCommand.js +3 -3
- package/dist-es/commands/ListTrustStoresCommand.js +3 -3
- package/dist-es/commands/ListUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/ListUserSettingsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/UpdatePortalCommand.js +3 -3
- package/dist-es/commands/UpdateTrustStoreCommand.js +3 -3
- package/dist-es/commands/UpdateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateUserSettingsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +577 -593
- package/dist-types/protocols/Aws_restJson1.d.ts +408 -102
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +102 -102
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { WorkSpacesWebServiceException as __BaseException } from "../models/WorkSpacesWebServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateBrowserSettingsCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
9
9
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
@@ -23,7 +23,7 @@ export const serializeAws_restJson1AssociateBrowserSettingsCommand = async (inpu
|
|
|
23
23
|
body,
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const se_AssociateNetworkSettingsCommand = async (input, context) => {
|
|
27
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
28
|
const headers = {};
|
|
29
29
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
@@ -43,7 +43,7 @@ export const serializeAws_restJson1AssociateNetworkSettingsCommand = async (inpu
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
export const
|
|
46
|
+
export const se_AssociateTrustStoreCommand = async (input, context) => {
|
|
47
47
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
48
|
const headers = {};
|
|
49
49
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
@@ -63,7 +63,7 @@ export const serializeAws_restJson1AssociateTrustStoreCommand = async (input, co
|
|
|
63
63
|
body,
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
export const
|
|
66
|
+
export const se_AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
67
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
68
|
const headers = {};
|
|
69
69
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -87,7 +87,7 @@ export const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = a
|
|
|
87
87
|
body,
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
export const
|
|
90
|
+
export const se_AssociateUserSettingsCommand = async (input, context) => {
|
|
91
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
92
|
const headers = {};
|
|
93
93
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
@@ -107,7 +107,7 @@ export const serializeAws_restJson1AssociateUserSettingsCommand = async (input,
|
|
|
107
107
|
body,
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
|
-
export const
|
|
110
|
+
export const se_CreateBrowserSettingsCommand = async (input, context) => {
|
|
111
111
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
112
|
const headers = {
|
|
113
113
|
"content-type": "application/json",
|
|
@@ -116,12 +116,12 @@ export const serializeAws_restJson1CreateBrowserSettingsCommand = async (input,
|
|
|
116
116
|
let body;
|
|
117
117
|
body = JSON.stringify({
|
|
118
118
|
...(input.additionalEncryptionContext != null && {
|
|
119
|
-
additionalEncryptionContext:
|
|
119
|
+
additionalEncryptionContext: se_EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
120
120
|
}),
|
|
121
121
|
...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
|
|
122
122
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
123
123
|
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
124
|
-
...(input.tags != null && { tags:
|
|
124
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
125
125
|
});
|
|
126
126
|
return new __HttpRequest({
|
|
127
127
|
protocol,
|
|
@@ -133,7 +133,7 @@ export const serializeAws_restJson1CreateBrowserSettingsCommand = async (input,
|
|
|
133
133
|
body,
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
export const
|
|
136
|
+
export const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
137
137
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
138
138
|
const headers = {
|
|
139
139
|
"content-type": "application/json",
|
|
@@ -143,7 +143,7 @@ export const serializeAws_restJson1CreateIdentityProviderCommand = async (input,
|
|
|
143
143
|
body = JSON.stringify({
|
|
144
144
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
145
145
|
...(input.identityProviderDetails != null && {
|
|
146
|
-
identityProviderDetails:
|
|
146
|
+
identityProviderDetails: se_IdentityProviderDetails(input.identityProviderDetails, context),
|
|
147
147
|
}),
|
|
148
148
|
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
149
149
|
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
@@ -159,7 +159,7 @@ export const serializeAws_restJson1CreateIdentityProviderCommand = async (input,
|
|
|
159
159
|
body,
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
|
-
export const
|
|
162
|
+
export const se_CreateNetworkSettingsCommand = async (input, context) => {
|
|
163
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
164
|
const headers = {
|
|
165
165
|
"content-type": "application/json",
|
|
@@ -169,10 +169,10 @@ export const serializeAws_restJson1CreateNetworkSettingsCommand = async (input,
|
|
|
169
169
|
body = JSON.stringify({
|
|
170
170
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
171
171
|
...(input.securityGroupIds != null && {
|
|
172
|
-
securityGroupIds:
|
|
172
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
173
173
|
}),
|
|
174
|
-
...(input.subnetIds != null && { subnetIds:
|
|
175
|
-
...(input.tags != null && { tags:
|
|
174
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
175
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
176
176
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
177
177
|
});
|
|
178
178
|
return new __HttpRequest({
|
|
@@ -185,7 +185,7 @@ export const serializeAws_restJson1CreateNetworkSettingsCommand = async (input,
|
|
|
185
185
|
body,
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
-
export const
|
|
188
|
+
export const se_CreatePortalCommand = async (input, context) => {
|
|
189
189
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/json",
|
|
@@ -194,13 +194,13 @@ export const serializeAws_restJson1CreatePortalCommand = async (input, context)
|
|
|
194
194
|
let body;
|
|
195
195
|
body = JSON.stringify({
|
|
196
196
|
...(input.additionalEncryptionContext != null && {
|
|
197
|
-
additionalEncryptionContext:
|
|
197
|
+
additionalEncryptionContext: se_EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
198
198
|
}),
|
|
199
199
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
200
200
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
201
201
|
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
202
202
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
203
|
-
...(input.tags != null && { tags:
|
|
203
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
204
204
|
});
|
|
205
205
|
return new __HttpRequest({
|
|
206
206
|
protocol,
|
|
@@ -212,7 +212,7 @@ export const serializeAws_restJson1CreatePortalCommand = async (input, context)
|
|
|
212
212
|
body,
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
-
export const
|
|
215
|
+
export const se_CreateTrustStoreCommand = async (input, context) => {
|
|
216
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
217
217
|
const headers = {
|
|
218
218
|
"content-type": "application/json",
|
|
@@ -220,11 +220,9 @@ export const serializeAws_restJson1CreateTrustStoreCommand = async (input, conte
|
|
|
220
220
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
221
221
|
let body;
|
|
222
222
|
body = JSON.stringify({
|
|
223
|
-
...(input.certificateList != null && {
|
|
224
|
-
certificateList: serializeAws_restJson1CertificateList(input.certificateList, context),
|
|
225
|
-
}),
|
|
223
|
+
...(input.certificateList != null && { certificateList: se_CertificateList(input.certificateList, context) }),
|
|
226
224
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
227
|
-
...(input.tags != null && { tags:
|
|
225
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
228
226
|
});
|
|
229
227
|
return new __HttpRequest({
|
|
230
228
|
protocol,
|
|
@@ -236,7 +234,7 @@ export const serializeAws_restJson1CreateTrustStoreCommand = async (input, conte
|
|
|
236
234
|
body,
|
|
237
235
|
});
|
|
238
236
|
};
|
|
239
|
-
export const
|
|
237
|
+
export const se_CreateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
240
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
239
|
const headers = {
|
|
242
240
|
"content-type": "application/json",
|
|
@@ -246,7 +244,7 @@ export const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = asyn
|
|
|
246
244
|
body = JSON.stringify({
|
|
247
245
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
248
246
|
...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
|
|
249
|
-
...(input.tags != null && { tags:
|
|
247
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
250
248
|
});
|
|
251
249
|
return new __HttpRequest({
|
|
252
250
|
protocol,
|
|
@@ -258,7 +256,7 @@ export const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = asyn
|
|
|
258
256
|
body,
|
|
259
257
|
});
|
|
260
258
|
};
|
|
261
|
-
export const
|
|
259
|
+
export const se_CreateUserSettingsCommand = async (input, context) => {
|
|
262
260
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
263
261
|
const headers = {
|
|
264
262
|
"content-type": "application/json",
|
|
@@ -275,7 +273,7 @@ export const serializeAws_restJson1CreateUserSettingsCommand = async (input, con
|
|
|
275
273
|
}),
|
|
276
274
|
...(input.pasteAllowed != null && { pasteAllowed: input.pasteAllowed }),
|
|
277
275
|
...(input.printAllowed != null && { printAllowed: input.printAllowed }),
|
|
278
|
-
...(input.tags != null && { tags:
|
|
276
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
279
277
|
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
280
278
|
});
|
|
281
279
|
return new __HttpRequest({
|
|
@@ -288,7 +286,7 @@ export const serializeAws_restJson1CreateUserSettingsCommand = async (input, con
|
|
|
288
286
|
body,
|
|
289
287
|
});
|
|
290
288
|
};
|
|
291
|
-
export const
|
|
289
|
+
export const se_DeleteBrowserSettingsCommand = async (input, context) => {
|
|
292
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
291
|
const headers = {};
|
|
294
292
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
@@ -304,7 +302,7 @@ export const serializeAws_restJson1DeleteBrowserSettingsCommand = async (input,
|
|
|
304
302
|
body,
|
|
305
303
|
});
|
|
306
304
|
};
|
|
307
|
-
export const
|
|
305
|
+
export const se_DeleteIdentityProviderCommand = async (input, context) => {
|
|
308
306
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
307
|
const headers = {};
|
|
310
308
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
@@ -320,7 +318,7 @@ export const serializeAws_restJson1DeleteIdentityProviderCommand = async (input,
|
|
|
320
318
|
body,
|
|
321
319
|
});
|
|
322
320
|
};
|
|
323
|
-
export const
|
|
321
|
+
export const se_DeleteNetworkSettingsCommand = async (input, context) => {
|
|
324
322
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
323
|
const headers = {};
|
|
326
324
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
@@ -336,7 +334,7 @@ export const serializeAws_restJson1DeleteNetworkSettingsCommand = async (input,
|
|
|
336
334
|
body,
|
|
337
335
|
});
|
|
338
336
|
};
|
|
339
|
-
export const
|
|
337
|
+
export const se_DeletePortalCommand = async (input, context) => {
|
|
340
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
339
|
const headers = {};
|
|
342
340
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
@@ -352,7 +350,7 @@ export const serializeAws_restJson1DeletePortalCommand = async (input, context)
|
|
|
352
350
|
body,
|
|
353
351
|
});
|
|
354
352
|
};
|
|
355
|
-
export const
|
|
353
|
+
export const se_DeleteTrustStoreCommand = async (input, context) => {
|
|
356
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
355
|
const headers = {};
|
|
358
356
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
@@ -368,7 +366,7 @@ export const serializeAws_restJson1DeleteTrustStoreCommand = async (input, conte
|
|
|
368
366
|
body,
|
|
369
367
|
});
|
|
370
368
|
};
|
|
371
|
-
export const
|
|
369
|
+
export const se_DeleteUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
372
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
371
|
const headers = {};
|
|
374
372
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -385,7 +383,7 @@ export const serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = asyn
|
|
|
385
383
|
body,
|
|
386
384
|
});
|
|
387
385
|
};
|
|
388
|
-
export const
|
|
386
|
+
export const se_DeleteUserSettingsCommand = async (input, context) => {
|
|
389
387
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
388
|
const headers = {};
|
|
391
389
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
@@ -401,7 +399,7 @@ export const serializeAws_restJson1DeleteUserSettingsCommand = async (input, con
|
|
|
401
399
|
body,
|
|
402
400
|
});
|
|
403
401
|
};
|
|
404
|
-
export const
|
|
402
|
+
export const se_DisassociateBrowserSettingsCommand = async (input, context) => {
|
|
405
403
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
406
404
|
const headers = {};
|
|
407
405
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
@@ -417,7 +415,7 @@ export const serializeAws_restJson1DisassociateBrowserSettingsCommand = async (i
|
|
|
417
415
|
body,
|
|
418
416
|
});
|
|
419
417
|
};
|
|
420
|
-
export const
|
|
418
|
+
export const se_DisassociateNetworkSettingsCommand = async (input, context) => {
|
|
421
419
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
420
|
const headers = {};
|
|
423
421
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
@@ -433,7 +431,7 @@ export const serializeAws_restJson1DisassociateNetworkSettingsCommand = async (i
|
|
|
433
431
|
body,
|
|
434
432
|
});
|
|
435
433
|
};
|
|
436
|
-
export const
|
|
434
|
+
export const se_DisassociateTrustStoreCommand = async (input, context) => {
|
|
437
435
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
438
436
|
const headers = {};
|
|
439
437
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
@@ -449,7 +447,7 @@ export const serializeAws_restJson1DisassociateTrustStoreCommand = async (input,
|
|
|
449
447
|
body,
|
|
450
448
|
});
|
|
451
449
|
};
|
|
452
|
-
export const
|
|
450
|
+
export const se_DisassociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
453
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
454
452
|
const headers = {};
|
|
455
453
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -466,7 +464,7 @@ export const serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand
|
|
|
466
464
|
body,
|
|
467
465
|
});
|
|
468
466
|
};
|
|
469
|
-
export const
|
|
467
|
+
export const se_DisassociateUserSettingsCommand = async (input, context) => {
|
|
470
468
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
469
|
const headers = {};
|
|
472
470
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
@@ -482,7 +480,7 @@ export const serializeAws_restJson1DisassociateUserSettingsCommand = async (inpu
|
|
|
482
480
|
body,
|
|
483
481
|
});
|
|
484
482
|
};
|
|
485
|
-
export const
|
|
483
|
+
export const se_GetBrowserSettingsCommand = async (input, context) => {
|
|
486
484
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
487
485
|
const headers = {};
|
|
488
486
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
@@ -498,7 +496,7 @@ export const serializeAws_restJson1GetBrowserSettingsCommand = async (input, con
|
|
|
498
496
|
body,
|
|
499
497
|
});
|
|
500
498
|
};
|
|
501
|
-
export const
|
|
499
|
+
export const se_GetIdentityProviderCommand = async (input, context) => {
|
|
502
500
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
501
|
const headers = {};
|
|
504
502
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
@@ -514,7 +512,7 @@ export const serializeAws_restJson1GetIdentityProviderCommand = async (input, co
|
|
|
514
512
|
body,
|
|
515
513
|
});
|
|
516
514
|
};
|
|
517
|
-
export const
|
|
515
|
+
export const se_GetNetworkSettingsCommand = async (input, context) => {
|
|
518
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
519
517
|
const headers = {};
|
|
520
518
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
@@ -530,7 +528,7 @@ export const serializeAws_restJson1GetNetworkSettingsCommand = async (input, con
|
|
|
530
528
|
body,
|
|
531
529
|
});
|
|
532
530
|
};
|
|
533
|
-
export const
|
|
531
|
+
export const se_GetPortalCommand = async (input, context) => {
|
|
534
532
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
533
|
const headers = {};
|
|
536
534
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
@@ -546,7 +544,7 @@ export const serializeAws_restJson1GetPortalCommand = async (input, context) =>
|
|
|
546
544
|
body,
|
|
547
545
|
});
|
|
548
546
|
};
|
|
549
|
-
export const
|
|
547
|
+
export const se_GetPortalServiceProviderMetadataCommand = async (input, context) => {
|
|
550
548
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
551
549
|
const headers = {};
|
|
552
550
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}";
|
|
@@ -562,7 +560,7 @@ export const serializeAws_restJson1GetPortalServiceProviderMetadataCommand = asy
|
|
|
562
560
|
body,
|
|
563
561
|
});
|
|
564
562
|
};
|
|
565
|
-
export const
|
|
563
|
+
export const se_GetTrustStoreCommand = async (input, context) => {
|
|
566
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
567
565
|
const headers = {};
|
|
568
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
@@ -578,7 +576,7 @@ export const serializeAws_restJson1GetTrustStoreCommand = async (input, context)
|
|
|
578
576
|
body,
|
|
579
577
|
});
|
|
580
578
|
};
|
|
581
|
-
export const
|
|
579
|
+
export const se_GetTrustStoreCertificateCommand = async (input, context) => {
|
|
582
580
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
583
581
|
const headers = {};
|
|
584
582
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
|
|
@@ -598,7 +596,7 @@ export const serializeAws_restJson1GetTrustStoreCertificateCommand = async (inpu
|
|
|
598
596
|
body,
|
|
599
597
|
});
|
|
600
598
|
};
|
|
601
|
-
export const
|
|
599
|
+
export const se_GetUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
602
600
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
603
601
|
const headers = {};
|
|
604
602
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -615,7 +613,7 @@ export const serializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (
|
|
|
615
613
|
body,
|
|
616
614
|
});
|
|
617
615
|
};
|
|
618
|
-
export const
|
|
616
|
+
export const se_GetUserSettingsCommand = async (input, context) => {
|
|
619
617
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
620
618
|
const headers = {};
|
|
621
619
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
@@ -631,7 +629,7 @@ export const serializeAws_restJson1GetUserSettingsCommand = async (input, contex
|
|
|
631
629
|
body,
|
|
632
630
|
});
|
|
633
631
|
};
|
|
634
|
-
export const
|
|
632
|
+
export const se_ListBrowserSettingsCommand = async (input, context) => {
|
|
635
633
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
636
634
|
const headers = {};
|
|
637
635
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
@@ -651,7 +649,7 @@ export const serializeAws_restJson1ListBrowserSettingsCommand = async (input, co
|
|
|
651
649
|
body,
|
|
652
650
|
});
|
|
653
651
|
};
|
|
654
|
-
export const
|
|
652
|
+
export const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
655
653
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
656
654
|
const headers = {};
|
|
657
655
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
|
|
@@ -672,7 +670,7 @@ export const serializeAws_restJson1ListIdentityProvidersCommand = async (input,
|
|
|
672
670
|
body,
|
|
673
671
|
});
|
|
674
672
|
};
|
|
675
|
-
export const
|
|
673
|
+
export const se_ListNetworkSettingsCommand = async (input, context) => {
|
|
676
674
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
675
|
const headers = {};
|
|
678
676
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
|
|
@@ -692,7 +690,7 @@ export const serializeAws_restJson1ListNetworkSettingsCommand = async (input, co
|
|
|
692
690
|
body,
|
|
693
691
|
});
|
|
694
692
|
};
|
|
695
|
-
export const
|
|
693
|
+
export const se_ListPortalsCommand = async (input, context) => {
|
|
696
694
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
697
695
|
const headers = {};
|
|
698
696
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
@@ -712,7 +710,7 @@ export const serializeAws_restJson1ListPortalsCommand = async (input, context) =
|
|
|
712
710
|
body,
|
|
713
711
|
});
|
|
714
712
|
};
|
|
715
|
-
export const
|
|
713
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
716
714
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
717
715
|
const headers = {};
|
|
718
716
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
@@ -728,7 +726,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
728
726
|
body,
|
|
729
727
|
});
|
|
730
728
|
};
|
|
731
|
-
export const
|
|
729
|
+
export const se_ListTrustStoreCertificatesCommand = async (input, context) => {
|
|
732
730
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
733
731
|
const headers = {};
|
|
734
732
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -750,7 +748,7 @@ export const serializeAws_restJson1ListTrustStoreCertificatesCommand = async (in
|
|
|
750
748
|
body,
|
|
751
749
|
});
|
|
752
750
|
};
|
|
753
|
-
export const
|
|
751
|
+
export const se_ListTrustStoresCommand = async (input, context) => {
|
|
754
752
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
755
753
|
const headers = {};
|
|
756
754
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
@@ -770,7 +768,7 @@ export const serializeAws_restJson1ListTrustStoresCommand = async (input, contex
|
|
|
770
768
|
body,
|
|
771
769
|
});
|
|
772
770
|
};
|
|
773
|
-
export const
|
|
771
|
+
export const se_ListUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
774
772
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
775
773
|
const headers = {};
|
|
776
774
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
@@ -790,7 +788,7 @@ export const serializeAws_restJson1ListUserAccessLoggingSettingsCommand = async
|
|
|
790
788
|
body,
|
|
791
789
|
});
|
|
792
790
|
};
|
|
793
|
-
export const
|
|
791
|
+
export const se_ListUserSettingsCommand = async (input, context) => {
|
|
794
792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
795
793
|
const headers = {};
|
|
796
794
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
|
|
@@ -810,7 +808,7 @@ export const serializeAws_restJson1ListUserSettingsCommand = async (input, conte
|
|
|
810
808
|
body,
|
|
811
809
|
});
|
|
812
810
|
};
|
|
813
|
-
export const
|
|
811
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
814
812
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
815
813
|
const headers = {
|
|
816
814
|
"content-type": "application/json",
|
|
@@ -820,7 +818,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
820
818
|
let body;
|
|
821
819
|
body = JSON.stringify({
|
|
822
820
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
823
|
-
...(input.tags != null && { tags:
|
|
821
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
824
822
|
});
|
|
825
823
|
return new __HttpRequest({
|
|
826
824
|
protocol,
|
|
@@ -832,7 +830,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
832
830
|
body,
|
|
833
831
|
});
|
|
834
832
|
};
|
|
835
|
-
export const
|
|
833
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
836
834
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
837
835
|
const headers = {};
|
|
838
836
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
@@ -855,7 +853,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
855
853
|
body,
|
|
856
854
|
});
|
|
857
855
|
};
|
|
858
|
-
export const
|
|
856
|
+
export const se_UpdateBrowserSettingsCommand = async (input, context) => {
|
|
859
857
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
860
858
|
const headers = {
|
|
861
859
|
"content-type": "application/json",
|
|
@@ -877,7 +875,7 @@ export const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input,
|
|
|
877
875
|
body,
|
|
878
876
|
});
|
|
879
877
|
};
|
|
880
|
-
export const
|
|
878
|
+
export const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
881
879
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
882
880
|
const headers = {
|
|
883
881
|
"content-type": "application/json",
|
|
@@ -888,7 +886,7 @@ export const serializeAws_restJson1UpdateIdentityProviderCommand = async (input,
|
|
|
888
886
|
body = JSON.stringify({
|
|
889
887
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
890
888
|
...(input.identityProviderDetails != null && {
|
|
891
|
-
identityProviderDetails:
|
|
889
|
+
identityProviderDetails: se_IdentityProviderDetails(input.identityProviderDetails, context),
|
|
892
890
|
}),
|
|
893
891
|
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
894
892
|
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
@@ -903,7 +901,7 @@ export const serializeAws_restJson1UpdateIdentityProviderCommand = async (input,
|
|
|
903
901
|
body,
|
|
904
902
|
});
|
|
905
903
|
};
|
|
906
|
-
export const
|
|
904
|
+
export const se_UpdateNetworkSettingsCommand = async (input, context) => {
|
|
907
905
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
908
906
|
const headers = {
|
|
909
907
|
"content-type": "application/json",
|
|
@@ -914,9 +912,9 @@ export const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input,
|
|
|
914
912
|
body = JSON.stringify({
|
|
915
913
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
916
914
|
...(input.securityGroupIds != null && {
|
|
917
|
-
securityGroupIds:
|
|
915
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
918
916
|
}),
|
|
919
|
-
...(input.subnetIds != null && { subnetIds:
|
|
917
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
920
918
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
921
919
|
});
|
|
922
920
|
return new __HttpRequest({
|
|
@@ -929,7 +927,7 @@ export const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input,
|
|
|
929
927
|
body,
|
|
930
928
|
});
|
|
931
929
|
};
|
|
932
|
-
export const
|
|
930
|
+
export const se_UpdatePortalCommand = async (input, context) => {
|
|
933
931
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
934
932
|
const headers = {
|
|
935
933
|
"content-type": "application/json",
|
|
@@ -951,7 +949,7 @@ export const serializeAws_restJson1UpdatePortalCommand = async (input, context)
|
|
|
951
949
|
body,
|
|
952
950
|
});
|
|
953
951
|
};
|
|
954
|
-
export const
|
|
952
|
+
export const se_UpdateTrustStoreCommand = async (input, context) => {
|
|
955
953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
956
954
|
const headers = {
|
|
957
955
|
"content-type": "application/json",
|
|
@@ -960,11 +958,9 @@ export const serializeAws_restJson1UpdateTrustStoreCommand = async (input, conte
|
|
|
960
958
|
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
961
959
|
let body;
|
|
962
960
|
body = JSON.stringify({
|
|
963
|
-
...(input.certificatesToAdd != null && {
|
|
964
|
-
certificatesToAdd: serializeAws_restJson1CertificateList(input.certificatesToAdd, context),
|
|
965
|
-
}),
|
|
961
|
+
...(input.certificatesToAdd != null && { certificatesToAdd: se_CertificateList(input.certificatesToAdd, context) }),
|
|
966
962
|
...(input.certificatesToDelete != null && {
|
|
967
|
-
certificatesToDelete:
|
|
963
|
+
certificatesToDelete: se_CertificateThumbprintList(input.certificatesToDelete, context),
|
|
968
964
|
}),
|
|
969
965
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
970
966
|
});
|
|
@@ -978,7 +974,7 @@ export const serializeAws_restJson1UpdateTrustStoreCommand = async (input, conte
|
|
|
978
974
|
body,
|
|
979
975
|
});
|
|
980
976
|
};
|
|
981
|
-
export const
|
|
977
|
+
export const se_UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
982
978
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
983
979
|
const headers = {
|
|
984
980
|
"content-type": "application/json",
|
|
@@ -1001,7 +997,7 @@ export const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = asyn
|
|
|
1001
997
|
body,
|
|
1002
998
|
});
|
|
1003
999
|
};
|
|
1004
|
-
export const
|
|
1000
|
+
export const se_UpdateUserSettingsCommand = async (input, context) => {
|
|
1005
1001
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1006
1002
|
const headers = {
|
|
1007
1003
|
"content-type": "application/json",
|
|
@@ -1031,9 +1027,9 @@ export const serializeAws_restJson1UpdateUserSettingsCommand = async (input, con
|
|
|
1031
1027
|
body,
|
|
1032
1028
|
});
|
|
1033
1029
|
};
|
|
1034
|
-
export const
|
|
1030
|
+
export const de_AssociateBrowserSettingsCommand = async (output, context) => {
|
|
1035
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
1032
|
+
return de_AssociateBrowserSettingsCommandError(output, context);
|
|
1037
1033
|
}
|
|
1038
1034
|
const contents = map({
|
|
1039
1035
|
$metadata: deserializeMetadata(output),
|
|
@@ -1047,7 +1043,7 @@ export const deserializeAws_restJson1AssociateBrowserSettingsCommand = async (ou
|
|
|
1047
1043
|
}
|
|
1048
1044
|
return contents;
|
|
1049
1045
|
};
|
|
1050
|
-
const
|
|
1046
|
+
const de_AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
1051
1047
|
const parsedOutput = {
|
|
1052
1048
|
...output,
|
|
1053
1049
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1056,22 +1052,22 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1056
1052
|
switch (errorCode) {
|
|
1057
1053
|
case "AccessDeniedException":
|
|
1058
1054
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1059
|
-
throw await
|
|
1055
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1060
1056
|
case "ConflictException":
|
|
1061
1057
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1062
|
-
throw await
|
|
1058
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1063
1059
|
case "InternalServerException":
|
|
1064
1060
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1065
|
-
throw await
|
|
1061
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1066
1062
|
case "ResourceNotFoundException":
|
|
1067
1063
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1068
|
-
throw await
|
|
1064
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1069
1065
|
case "ThrottlingException":
|
|
1070
1066
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1071
|
-
throw await
|
|
1067
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
1068
|
case "ValidationException":
|
|
1073
1069
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1074
|
-
throw await
|
|
1070
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1075
1071
|
default:
|
|
1076
1072
|
const parsedBody = parsedOutput.body;
|
|
1077
1073
|
throwDefaultError({
|
|
@@ -1082,9 +1078,9 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1082
1078
|
});
|
|
1083
1079
|
}
|
|
1084
1080
|
};
|
|
1085
|
-
export const
|
|
1081
|
+
export const de_AssociateNetworkSettingsCommand = async (output, context) => {
|
|
1086
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
1083
|
+
return de_AssociateNetworkSettingsCommandError(output, context);
|
|
1088
1084
|
}
|
|
1089
1085
|
const contents = map({
|
|
1090
1086
|
$metadata: deserializeMetadata(output),
|
|
@@ -1098,7 +1094,7 @@ export const deserializeAws_restJson1AssociateNetworkSettingsCommand = async (ou
|
|
|
1098
1094
|
}
|
|
1099
1095
|
return contents;
|
|
1100
1096
|
};
|
|
1101
|
-
const
|
|
1097
|
+
const de_AssociateNetworkSettingsCommandError = async (output, context) => {
|
|
1102
1098
|
const parsedOutput = {
|
|
1103
1099
|
...output,
|
|
1104
1100
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1107,22 +1103,22 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1107
1103
|
switch (errorCode) {
|
|
1108
1104
|
case "AccessDeniedException":
|
|
1109
1105
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1110
|
-
throw await
|
|
1106
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1111
1107
|
case "ConflictException":
|
|
1112
1108
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1113
|
-
throw await
|
|
1109
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1114
1110
|
case "InternalServerException":
|
|
1115
1111
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1116
|
-
throw await
|
|
1112
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1117
1113
|
case "ResourceNotFoundException":
|
|
1118
1114
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1119
|
-
throw await
|
|
1115
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
1116
|
case "ThrottlingException":
|
|
1121
1117
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1122
|
-
throw await
|
|
1118
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1123
1119
|
case "ValidationException":
|
|
1124
1120
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1125
|
-
throw await
|
|
1121
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1126
1122
|
default:
|
|
1127
1123
|
const parsedBody = parsedOutput.body;
|
|
1128
1124
|
throwDefaultError({
|
|
@@ -1133,9 +1129,9 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1133
1129
|
});
|
|
1134
1130
|
}
|
|
1135
1131
|
};
|
|
1136
|
-
export const
|
|
1132
|
+
export const de_AssociateTrustStoreCommand = async (output, context) => {
|
|
1137
1133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
1134
|
+
return de_AssociateTrustStoreCommandError(output, context);
|
|
1139
1135
|
}
|
|
1140
1136
|
const contents = map({
|
|
1141
1137
|
$metadata: deserializeMetadata(output),
|
|
@@ -1149,7 +1145,7 @@ export const deserializeAws_restJson1AssociateTrustStoreCommand = async (output,
|
|
|
1149
1145
|
}
|
|
1150
1146
|
return contents;
|
|
1151
1147
|
};
|
|
1152
|
-
const
|
|
1148
|
+
const de_AssociateTrustStoreCommandError = async (output, context) => {
|
|
1153
1149
|
const parsedOutput = {
|
|
1154
1150
|
...output,
|
|
1155
1151
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1158,19 +1154,19 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1158
1154
|
switch (errorCode) {
|
|
1159
1155
|
case "AccessDeniedException":
|
|
1160
1156
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1161
|
-
throw await
|
|
1157
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1162
1158
|
case "InternalServerException":
|
|
1163
1159
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1164
|
-
throw await
|
|
1160
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1165
1161
|
case "ResourceNotFoundException":
|
|
1166
1162
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1167
|
-
throw await
|
|
1163
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
1164
|
case "ThrottlingException":
|
|
1169
1165
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1170
|
-
throw await
|
|
1166
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1171
1167
|
case "ValidationException":
|
|
1172
1168
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1173
|
-
throw await
|
|
1169
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1174
1170
|
default:
|
|
1175
1171
|
const parsedBody = parsedOutput.body;
|
|
1176
1172
|
throwDefaultError({
|
|
@@ -1181,9 +1177,9 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1181
1177
|
});
|
|
1182
1178
|
}
|
|
1183
1179
|
};
|
|
1184
|
-
export const
|
|
1180
|
+
export const de_AssociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1185
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
1182
|
+
return de_AssociateUserAccessLoggingSettingsCommandError(output, context);
|
|
1187
1183
|
}
|
|
1188
1184
|
const contents = map({
|
|
1189
1185
|
$metadata: deserializeMetadata(output),
|
|
@@ -1197,7 +1193,7 @@ export const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommand =
|
|
|
1197
1193
|
}
|
|
1198
1194
|
return contents;
|
|
1199
1195
|
};
|
|
1200
|
-
const
|
|
1196
|
+
const de_AssociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1201
1197
|
const parsedOutput = {
|
|
1202
1198
|
...output,
|
|
1203
1199
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1206,22 +1202,22 @@ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = a
|
|
|
1206
1202
|
switch (errorCode) {
|
|
1207
1203
|
case "AccessDeniedException":
|
|
1208
1204
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1209
|
-
throw await
|
|
1205
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
1206
|
case "ConflictException":
|
|
1211
1207
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1212
|
-
throw await
|
|
1208
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1213
1209
|
case "InternalServerException":
|
|
1214
1210
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1215
|
-
throw await
|
|
1211
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1216
1212
|
case "ResourceNotFoundException":
|
|
1217
1213
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1218
|
-
throw await
|
|
1214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1219
1215
|
case "ThrottlingException":
|
|
1220
1216
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1221
|
-
throw await
|
|
1217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1222
1218
|
case "ValidationException":
|
|
1223
1219
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1224
|
-
throw await
|
|
1220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1225
1221
|
default:
|
|
1226
1222
|
const parsedBody = parsedOutput.body;
|
|
1227
1223
|
throwDefaultError({
|
|
@@ -1232,9 +1228,9 @@ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = a
|
|
|
1232
1228
|
});
|
|
1233
1229
|
}
|
|
1234
1230
|
};
|
|
1235
|
-
export const
|
|
1231
|
+
export const de_AssociateUserSettingsCommand = async (output, context) => {
|
|
1236
1232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
|
-
return
|
|
1233
|
+
return de_AssociateUserSettingsCommandError(output, context);
|
|
1238
1234
|
}
|
|
1239
1235
|
const contents = map({
|
|
1240
1236
|
$metadata: deserializeMetadata(output),
|
|
@@ -1248,7 +1244,7 @@ export const deserializeAws_restJson1AssociateUserSettingsCommand = async (outpu
|
|
|
1248
1244
|
}
|
|
1249
1245
|
return contents;
|
|
1250
1246
|
};
|
|
1251
|
-
const
|
|
1247
|
+
const de_AssociateUserSettingsCommandError = async (output, context) => {
|
|
1252
1248
|
const parsedOutput = {
|
|
1253
1249
|
...output,
|
|
1254
1250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1257,22 +1253,22 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1257
1253
|
switch (errorCode) {
|
|
1258
1254
|
case "AccessDeniedException":
|
|
1259
1255
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1260
|
-
throw await
|
|
1256
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1261
1257
|
case "ConflictException":
|
|
1262
1258
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1263
|
-
throw await
|
|
1259
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1264
1260
|
case "InternalServerException":
|
|
1265
1261
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1266
|
-
throw await
|
|
1262
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1267
1263
|
case "ResourceNotFoundException":
|
|
1268
1264
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1269
|
-
throw await
|
|
1265
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
1266
|
case "ThrottlingException":
|
|
1271
1267
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1272
|
-
throw await
|
|
1268
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1273
1269
|
case "ValidationException":
|
|
1274
1270
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1275
|
-
throw await
|
|
1271
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1276
1272
|
default:
|
|
1277
1273
|
const parsedBody = parsedOutput.body;
|
|
1278
1274
|
throwDefaultError({
|
|
@@ -1283,9 +1279,9 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1283
1279
|
});
|
|
1284
1280
|
}
|
|
1285
1281
|
};
|
|
1286
|
-
export const
|
|
1282
|
+
export const de_CreateBrowserSettingsCommand = async (output, context) => {
|
|
1287
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
1284
|
+
return de_CreateBrowserSettingsCommandError(output, context);
|
|
1289
1285
|
}
|
|
1290
1286
|
const contents = map({
|
|
1291
1287
|
$metadata: deserializeMetadata(output),
|
|
@@ -1296,7 +1292,7 @@ export const deserializeAws_restJson1CreateBrowserSettingsCommand = async (outpu
|
|
|
1296
1292
|
}
|
|
1297
1293
|
return contents;
|
|
1298
1294
|
};
|
|
1299
|
-
const
|
|
1295
|
+
const de_CreateBrowserSettingsCommandError = async (output, context) => {
|
|
1300
1296
|
const parsedOutput = {
|
|
1301
1297
|
...output,
|
|
1302
1298
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1305,25 +1301,25 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1305
1301
|
switch (errorCode) {
|
|
1306
1302
|
case "AccessDeniedException":
|
|
1307
1303
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1308
|
-
throw await
|
|
1304
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1309
1305
|
case "ConflictException":
|
|
1310
1306
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1311
|
-
throw await
|
|
1307
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1312
1308
|
case "InternalServerException":
|
|
1313
1309
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1314
|
-
throw await
|
|
1310
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1315
1311
|
case "ResourceNotFoundException":
|
|
1316
1312
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1317
|
-
throw await
|
|
1313
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
1314
|
case "ServiceQuotaExceededException":
|
|
1319
1315
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1320
|
-
throw await
|
|
1316
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1321
1317
|
case "ThrottlingException":
|
|
1322
1318
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1323
|
-
throw await
|
|
1319
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1324
1320
|
case "ValidationException":
|
|
1325
1321
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1326
|
-
throw await
|
|
1322
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1327
1323
|
default:
|
|
1328
1324
|
const parsedBody = parsedOutput.body;
|
|
1329
1325
|
throwDefaultError({
|
|
@@ -1334,9 +1330,9 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1334
1330
|
});
|
|
1335
1331
|
}
|
|
1336
1332
|
};
|
|
1337
|
-
export const
|
|
1333
|
+
export const de_CreateIdentityProviderCommand = async (output, context) => {
|
|
1338
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
1335
|
+
return de_CreateIdentityProviderCommandError(output, context);
|
|
1340
1336
|
}
|
|
1341
1337
|
const contents = map({
|
|
1342
1338
|
$metadata: deserializeMetadata(output),
|
|
@@ -1347,7 +1343,7 @@ export const deserializeAws_restJson1CreateIdentityProviderCommand = async (outp
|
|
|
1347
1343
|
}
|
|
1348
1344
|
return contents;
|
|
1349
1345
|
};
|
|
1350
|
-
const
|
|
1346
|
+
const de_CreateIdentityProviderCommandError = async (output, context) => {
|
|
1351
1347
|
const parsedOutput = {
|
|
1352
1348
|
...output,
|
|
1353
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1356,25 +1352,25 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1356
1352
|
switch (errorCode) {
|
|
1357
1353
|
case "AccessDeniedException":
|
|
1358
1354
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1359
|
-
throw await
|
|
1355
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1360
1356
|
case "ConflictException":
|
|
1361
1357
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1362
|
-
throw await
|
|
1358
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1363
1359
|
case "InternalServerException":
|
|
1364
1360
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1365
|
-
throw await
|
|
1361
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1366
1362
|
case "ResourceNotFoundException":
|
|
1367
1363
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1368
|
-
throw await
|
|
1364
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
1365
|
case "ServiceQuotaExceededException":
|
|
1370
1366
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1371
|
-
throw await
|
|
1367
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1372
1368
|
case "ThrottlingException":
|
|
1373
1369
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1374
|
-
throw await
|
|
1370
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1375
1371
|
case "ValidationException":
|
|
1376
1372
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1377
|
-
throw await
|
|
1373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1378
1374
|
default:
|
|
1379
1375
|
const parsedBody = parsedOutput.body;
|
|
1380
1376
|
throwDefaultError({
|
|
@@ -1385,9 +1381,9 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1385
1381
|
});
|
|
1386
1382
|
}
|
|
1387
1383
|
};
|
|
1388
|
-
export const
|
|
1384
|
+
export const de_CreateNetworkSettingsCommand = async (output, context) => {
|
|
1389
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
|
-
return
|
|
1386
|
+
return de_CreateNetworkSettingsCommandError(output, context);
|
|
1391
1387
|
}
|
|
1392
1388
|
const contents = map({
|
|
1393
1389
|
$metadata: deserializeMetadata(output),
|
|
@@ -1398,7 +1394,7 @@ export const deserializeAws_restJson1CreateNetworkSettingsCommand = async (outpu
|
|
|
1398
1394
|
}
|
|
1399
1395
|
return contents;
|
|
1400
1396
|
};
|
|
1401
|
-
const
|
|
1397
|
+
const de_CreateNetworkSettingsCommandError = async (output, context) => {
|
|
1402
1398
|
const parsedOutput = {
|
|
1403
1399
|
...output,
|
|
1404
1400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1407,22 +1403,22 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1407
1403
|
switch (errorCode) {
|
|
1408
1404
|
case "AccessDeniedException":
|
|
1409
1405
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1410
|
-
throw await
|
|
1406
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1411
1407
|
case "ConflictException":
|
|
1412
1408
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1413
|
-
throw await
|
|
1409
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1414
1410
|
case "InternalServerException":
|
|
1415
1411
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1416
|
-
throw await
|
|
1412
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
1413
|
case "ServiceQuotaExceededException":
|
|
1418
1414
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1419
|
-
throw await
|
|
1415
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1420
1416
|
case "ThrottlingException":
|
|
1421
1417
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1422
|
-
throw await
|
|
1418
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1423
1419
|
case "ValidationException":
|
|
1424
1420
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1425
|
-
throw await
|
|
1421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
1422
|
default:
|
|
1427
1423
|
const parsedBody = parsedOutput.body;
|
|
1428
1424
|
throwDefaultError({
|
|
@@ -1433,9 +1429,9 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1433
1429
|
});
|
|
1434
1430
|
}
|
|
1435
1431
|
};
|
|
1436
|
-
export const
|
|
1432
|
+
export const de_CreatePortalCommand = async (output, context) => {
|
|
1437
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1438
|
-
return
|
|
1434
|
+
return de_CreatePortalCommandError(output, context);
|
|
1439
1435
|
}
|
|
1440
1436
|
const contents = map({
|
|
1441
1437
|
$metadata: deserializeMetadata(output),
|
|
@@ -1449,7 +1445,7 @@ export const deserializeAws_restJson1CreatePortalCommand = async (output, contex
|
|
|
1449
1445
|
}
|
|
1450
1446
|
return contents;
|
|
1451
1447
|
};
|
|
1452
|
-
const
|
|
1448
|
+
const de_CreatePortalCommandError = async (output, context) => {
|
|
1453
1449
|
const parsedOutput = {
|
|
1454
1450
|
...output,
|
|
1455
1451
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1458,25 +1454,25 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1458
1454
|
switch (errorCode) {
|
|
1459
1455
|
case "AccessDeniedException":
|
|
1460
1456
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1461
|
-
throw await
|
|
1457
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1462
1458
|
case "ConflictException":
|
|
1463
1459
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1464
|
-
throw await
|
|
1460
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1465
1461
|
case "InternalServerException":
|
|
1466
1462
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1467
|
-
throw await
|
|
1463
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1468
1464
|
case "ResourceNotFoundException":
|
|
1469
1465
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1470
|
-
throw await
|
|
1466
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
1467
|
case "ServiceQuotaExceededException":
|
|
1472
1468
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1473
|
-
throw await
|
|
1469
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1474
1470
|
case "ThrottlingException":
|
|
1475
1471
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1476
|
-
throw await
|
|
1472
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1477
1473
|
case "ValidationException":
|
|
1478
1474
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1479
|
-
throw await
|
|
1475
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1480
1476
|
default:
|
|
1481
1477
|
const parsedBody = parsedOutput.body;
|
|
1482
1478
|
throwDefaultError({
|
|
@@ -1487,9 +1483,9 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1487
1483
|
});
|
|
1488
1484
|
}
|
|
1489
1485
|
};
|
|
1490
|
-
export const
|
|
1486
|
+
export const de_CreateTrustStoreCommand = async (output, context) => {
|
|
1491
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
1488
|
+
return de_CreateTrustStoreCommandError(output, context);
|
|
1493
1489
|
}
|
|
1494
1490
|
const contents = map({
|
|
1495
1491
|
$metadata: deserializeMetadata(output),
|
|
@@ -1500,7 +1496,7 @@ export const deserializeAws_restJson1CreateTrustStoreCommand = async (output, co
|
|
|
1500
1496
|
}
|
|
1501
1497
|
return contents;
|
|
1502
1498
|
};
|
|
1503
|
-
const
|
|
1499
|
+
const de_CreateTrustStoreCommandError = async (output, context) => {
|
|
1504
1500
|
const parsedOutput = {
|
|
1505
1501
|
...output,
|
|
1506
1502
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1509,22 +1505,22 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1509
1505
|
switch (errorCode) {
|
|
1510
1506
|
case "AccessDeniedException":
|
|
1511
1507
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1512
|
-
throw await
|
|
1508
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1513
1509
|
case "ConflictException":
|
|
1514
1510
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1515
|
-
throw await
|
|
1511
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1516
1512
|
case "InternalServerException":
|
|
1517
1513
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1518
|
-
throw await
|
|
1514
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1519
1515
|
case "ServiceQuotaExceededException":
|
|
1520
1516
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1521
|
-
throw await
|
|
1517
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1522
1518
|
case "ThrottlingException":
|
|
1523
1519
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1524
|
-
throw await
|
|
1520
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1525
1521
|
case "ValidationException":
|
|
1526
1522
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1527
|
-
throw await
|
|
1523
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1528
1524
|
default:
|
|
1529
1525
|
const parsedBody = parsedOutput.body;
|
|
1530
1526
|
throwDefaultError({
|
|
@@ -1535,9 +1531,9 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1535
1531
|
});
|
|
1536
1532
|
}
|
|
1537
1533
|
};
|
|
1538
|
-
export const
|
|
1534
|
+
export const de_CreateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1539
1535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
-
return
|
|
1536
|
+
return de_CreateUserAccessLoggingSettingsCommandError(output, context);
|
|
1541
1537
|
}
|
|
1542
1538
|
const contents = map({
|
|
1543
1539
|
$metadata: deserializeMetadata(output),
|
|
@@ -1548,7 +1544,7 @@ export const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommand = as
|
|
|
1548
1544
|
}
|
|
1549
1545
|
return contents;
|
|
1550
1546
|
};
|
|
1551
|
-
const
|
|
1547
|
+
const de_CreateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1552
1548
|
const parsedOutput = {
|
|
1553
1549
|
...output,
|
|
1554
1550
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1557,22 +1553,22 @@ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = asyn
|
|
|
1557
1553
|
switch (errorCode) {
|
|
1558
1554
|
case "AccessDeniedException":
|
|
1559
1555
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1560
|
-
throw await
|
|
1556
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1561
1557
|
case "ConflictException":
|
|
1562
1558
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1563
|
-
throw await
|
|
1559
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1564
1560
|
case "InternalServerException":
|
|
1565
1561
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1566
|
-
throw await
|
|
1562
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1567
1563
|
case "ServiceQuotaExceededException":
|
|
1568
1564
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1569
|
-
throw await
|
|
1565
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1570
1566
|
case "ThrottlingException":
|
|
1571
1567
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1572
|
-
throw await
|
|
1568
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
1569
|
case "ValidationException":
|
|
1574
1570
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1575
|
-
throw await
|
|
1571
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
1572
|
default:
|
|
1577
1573
|
const parsedBody = parsedOutput.body;
|
|
1578
1574
|
throwDefaultError({
|
|
@@ -1583,9 +1579,9 @@ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = asyn
|
|
|
1583
1579
|
});
|
|
1584
1580
|
}
|
|
1585
1581
|
};
|
|
1586
|
-
export const
|
|
1582
|
+
export const de_CreateUserSettingsCommand = async (output, context) => {
|
|
1587
1583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
|
-
return
|
|
1584
|
+
return de_CreateUserSettingsCommandError(output, context);
|
|
1589
1585
|
}
|
|
1590
1586
|
const contents = map({
|
|
1591
1587
|
$metadata: deserializeMetadata(output),
|
|
@@ -1596,7 +1592,7 @@ export const deserializeAws_restJson1CreateUserSettingsCommand = async (output,
|
|
|
1596
1592
|
}
|
|
1597
1593
|
return contents;
|
|
1598
1594
|
};
|
|
1599
|
-
const
|
|
1595
|
+
const de_CreateUserSettingsCommandError = async (output, context) => {
|
|
1600
1596
|
const parsedOutput = {
|
|
1601
1597
|
...output,
|
|
1602
1598
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1605,22 +1601,22 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1605
1601
|
switch (errorCode) {
|
|
1606
1602
|
case "AccessDeniedException":
|
|
1607
1603
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1608
|
-
throw await
|
|
1604
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1609
1605
|
case "ConflictException":
|
|
1610
1606
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1611
|
-
throw await
|
|
1607
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1612
1608
|
case "InternalServerException":
|
|
1613
1609
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1614
|
-
throw await
|
|
1610
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1615
1611
|
case "ServiceQuotaExceededException":
|
|
1616
1612
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1617
|
-
throw await
|
|
1613
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1618
1614
|
case "ThrottlingException":
|
|
1619
1615
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1620
|
-
throw await
|
|
1616
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1621
1617
|
case "ValidationException":
|
|
1622
1618
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1623
|
-
throw await
|
|
1619
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1624
1620
|
default:
|
|
1625
1621
|
const parsedBody = parsedOutput.body;
|
|
1626
1622
|
throwDefaultError({
|
|
@@ -1631,9 +1627,9 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1631
1627
|
});
|
|
1632
1628
|
}
|
|
1633
1629
|
};
|
|
1634
|
-
export const
|
|
1630
|
+
export const de_DeleteBrowserSettingsCommand = async (output, context) => {
|
|
1635
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1636
|
-
return
|
|
1632
|
+
return de_DeleteBrowserSettingsCommandError(output, context);
|
|
1637
1633
|
}
|
|
1638
1634
|
const contents = map({
|
|
1639
1635
|
$metadata: deserializeMetadata(output),
|
|
@@ -1641,7 +1637,7 @@ export const deserializeAws_restJson1DeleteBrowserSettingsCommand = async (outpu
|
|
|
1641
1637
|
await collectBody(output.body, context);
|
|
1642
1638
|
return contents;
|
|
1643
1639
|
};
|
|
1644
|
-
const
|
|
1640
|
+
const de_DeleteBrowserSettingsCommandError = async (output, context) => {
|
|
1645
1641
|
const parsedOutput = {
|
|
1646
1642
|
...output,
|
|
1647
1643
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1650,19 +1646,19 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1650
1646
|
switch (errorCode) {
|
|
1651
1647
|
case "AccessDeniedException":
|
|
1652
1648
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1653
|
-
throw await
|
|
1649
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1654
1650
|
case "ConflictException":
|
|
1655
1651
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1656
|
-
throw await
|
|
1652
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1657
1653
|
case "InternalServerException":
|
|
1658
1654
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1659
|
-
throw await
|
|
1655
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1660
1656
|
case "ThrottlingException":
|
|
1661
1657
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1662
|
-
throw await
|
|
1658
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1663
1659
|
case "ValidationException":
|
|
1664
1660
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1665
|
-
throw await
|
|
1661
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1666
1662
|
default:
|
|
1667
1663
|
const parsedBody = parsedOutput.body;
|
|
1668
1664
|
throwDefaultError({
|
|
@@ -1673,9 +1669,9 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1673
1669
|
});
|
|
1674
1670
|
}
|
|
1675
1671
|
};
|
|
1676
|
-
export const
|
|
1672
|
+
export const de_DeleteIdentityProviderCommand = async (output, context) => {
|
|
1677
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1678
|
-
return
|
|
1674
|
+
return de_DeleteIdentityProviderCommandError(output, context);
|
|
1679
1675
|
}
|
|
1680
1676
|
const contents = map({
|
|
1681
1677
|
$metadata: deserializeMetadata(output),
|
|
@@ -1683,7 +1679,7 @@ export const deserializeAws_restJson1DeleteIdentityProviderCommand = async (outp
|
|
|
1683
1679
|
await collectBody(output.body, context);
|
|
1684
1680
|
return contents;
|
|
1685
1681
|
};
|
|
1686
|
-
const
|
|
1682
|
+
const de_DeleteIdentityProviderCommandError = async (output, context) => {
|
|
1687
1683
|
const parsedOutput = {
|
|
1688
1684
|
...output,
|
|
1689
1685
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1692,19 +1688,19 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1692
1688
|
switch (errorCode) {
|
|
1693
1689
|
case "AccessDeniedException":
|
|
1694
1690
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1695
|
-
throw await
|
|
1691
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1696
1692
|
case "ConflictException":
|
|
1697
1693
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1698
|
-
throw await
|
|
1694
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1699
1695
|
case "InternalServerException":
|
|
1700
1696
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1701
|
-
throw await
|
|
1697
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1702
1698
|
case "ThrottlingException":
|
|
1703
1699
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1704
|
-
throw await
|
|
1700
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1705
1701
|
case "ValidationException":
|
|
1706
1702
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1707
|
-
throw await
|
|
1703
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1708
1704
|
default:
|
|
1709
1705
|
const parsedBody = parsedOutput.body;
|
|
1710
1706
|
throwDefaultError({
|
|
@@ -1715,9 +1711,9 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1715
1711
|
});
|
|
1716
1712
|
}
|
|
1717
1713
|
};
|
|
1718
|
-
export const
|
|
1714
|
+
export const de_DeleteNetworkSettingsCommand = async (output, context) => {
|
|
1719
1715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1720
|
-
return
|
|
1716
|
+
return de_DeleteNetworkSettingsCommandError(output, context);
|
|
1721
1717
|
}
|
|
1722
1718
|
const contents = map({
|
|
1723
1719
|
$metadata: deserializeMetadata(output),
|
|
@@ -1725,7 +1721,7 @@ export const deserializeAws_restJson1DeleteNetworkSettingsCommand = async (outpu
|
|
|
1725
1721
|
await collectBody(output.body, context);
|
|
1726
1722
|
return contents;
|
|
1727
1723
|
};
|
|
1728
|
-
const
|
|
1724
|
+
const de_DeleteNetworkSettingsCommandError = async (output, context) => {
|
|
1729
1725
|
const parsedOutput = {
|
|
1730
1726
|
...output,
|
|
1731
1727
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1734,19 +1730,19 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
1734
1730
|
switch (errorCode) {
|
|
1735
1731
|
case "AccessDeniedException":
|
|
1736
1732
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1737
|
-
throw await
|
|
1733
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1738
1734
|
case "ConflictException":
|
|
1739
1735
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1740
|
-
throw await
|
|
1736
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1741
1737
|
case "InternalServerException":
|
|
1742
1738
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1743
|
-
throw await
|
|
1739
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1744
1740
|
case "ThrottlingException":
|
|
1745
1741
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1746
|
-
throw await
|
|
1742
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1747
1743
|
case "ValidationException":
|
|
1748
1744
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1749
|
-
throw await
|
|
1745
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1750
1746
|
default:
|
|
1751
1747
|
const parsedBody = parsedOutput.body;
|
|
1752
1748
|
throwDefaultError({
|
|
@@ -1757,9 +1753,9 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
1757
1753
|
});
|
|
1758
1754
|
}
|
|
1759
1755
|
};
|
|
1760
|
-
export const
|
|
1756
|
+
export const de_DeletePortalCommand = async (output, context) => {
|
|
1761
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1762
|
-
return
|
|
1758
|
+
return de_DeletePortalCommandError(output, context);
|
|
1763
1759
|
}
|
|
1764
1760
|
const contents = map({
|
|
1765
1761
|
$metadata: deserializeMetadata(output),
|
|
@@ -1767,7 +1763,7 @@ export const deserializeAws_restJson1DeletePortalCommand = async (output, contex
|
|
|
1767
1763
|
await collectBody(output.body, context);
|
|
1768
1764
|
return contents;
|
|
1769
1765
|
};
|
|
1770
|
-
const
|
|
1766
|
+
const de_DeletePortalCommandError = async (output, context) => {
|
|
1771
1767
|
const parsedOutput = {
|
|
1772
1768
|
...output,
|
|
1773
1769
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1776,19 +1772,19 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
1776
1772
|
switch (errorCode) {
|
|
1777
1773
|
case "AccessDeniedException":
|
|
1778
1774
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1779
|
-
throw await
|
|
1775
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1780
1776
|
case "ConflictException":
|
|
1781
1777
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1782
|
-
throw await
|
|
1778
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1783
1779
|
case "InternalServerException":
|
|
1784
1780
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1785
|
-
throw await
|
|
1781
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1786
1782
|
case "ThrottlingException":
|
|
1787
1783
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1788
|
-
throw await
|
|
1784
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1789
1785
|
case "ValidationException":
|
|
1790
1786
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1791
|
-
throw await
|
|
1787
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1792
1788
|
default:
|
|
1793
1789
|
const parsedBody = parsedOutput.body;
|
|
1794
1790
|
throwDefaultError({
|
|
@@ -1799,9 +1795,9 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
1799
1795
|
});
|
|
1800
1796
|
}
|
|
1801
1797
|
};
|
|
1802
|
-
export const
|
|
1798
|
+
export const de_DeleteTrustStoreCommand = async (output, context) => {
|
|
1803
1799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
-
return
|
|
1800
|
+
return de_DeleteTrustStoreCommandError(output, context);
|
|
1805
1801
|
}
|
|
1806
1802
|
const contents = map({
|
|
1807
1803
|
$metadata: deserializeMetadata(output),
|
|
@@ -1809,7 +1805,7 @@ export const deserializeAws_restJson1DeleteTrustStoreCommand = async (output, co
|
|
|
1809
1805
|
await collectBody(output.body, context);
|
|
1810
1806
|
return contents;
|
|
1811
1807
|
};
|
|
1812
|
-
const
|
|
1808
|
+
const de_DeleteTrustStoreCommandError = async (output, context) => {
|
|
1813
1809
|
const parsedOutput = {
|
|
1814
1810
|
...output,
|
|
1815
1811
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1818,19 +1814,19 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
1818
1814
|
switch (errorCode) {
|
|
1819
1815
|
case "AccessDeniedException":
|
|
1820
1816
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1821
|
-
throw await
|
|
1817
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
1818
|
case "ConflictException":
|
|
1823
1819
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1824
|
-
throw await
|
|
1820
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1825
1821
|
case "InternalServerException":
|
|
1826
1822
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1827
|
-
throw await
|
|
1823
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1828
1824
|
case "ThrottlingException":
|
|
1829
1825
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1830
|
-
throw await
|
|
1826
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1831
1827
|
case "ValidationException":
|
|
1832
1828
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1833
|
-
throw await
|
|
1829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
1830
|
default:
|
|
1835
1831
|
const parsedBody = parsedOutput.body;
|
|
1836
1832
|
throwDefaultError({
|
|
@@ -1841,9 +1837,9 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
1841
1837
|
});
|
|
1842
1838
|
}
|
|
1843
1839
|
};
|
|
1844
|
-
export const
|
|
1840
|
+
export const de_DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1845
1841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return
|
|
1842
|
+
return de_DeleteUserAccessLoggingSettingsCommandError(output, context);
|
|
1847
1843
|
}
|
|
1848
1844
|
const contents = map({
|
|
1849
1845
|
$metadata: deserializeMetadata(output),
|
|
@@ -1851,7 +1847,7 @@ export const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = as
|
|
|
1851
1847
|
await collectBody(output.body, context);
|
|
1852
1848
|
return contents;
|
|
1853
1849
|
};
|
|
1854
|
-
const
|
|
1850
|
+
const de_DeleteUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1855
1851
|
const parsedOutput = {
|
|
1856
1852
|
...output,
|
|
1857
1853
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1860,19 +1856,19 @@ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = asyn
|
|
|
1860
1856
|
switch (errorCode) {
|
|
1861
1857
|
case "AccessDeniedException":
|
|
1862
1858
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1863
|
-
throw await
|
|
1859
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1864
1860
|
case "ConflictException":
|
|
1865
1861
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1866
|
-
throw await
|
|
1862
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1867
1863
|
case "InternalServerException":
|
|
1868
1864
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1869
|
-
throw await
|
|
1865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1870
1866
|
case "ThrottlingException":
|
|
1871
1867
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1872
|
-
throw await
|
|
1868
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1873
1869
|
case "ValidationException":
|
|
1874
1870
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1875
|
-
throw await
|
|
1871
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1876
1872
|
default:
|
|
1877
1873
|
const parsedBody = parsedOutput.body;
|
|
1878
1874
|
throwDefaultError({
|
|
@@ -1883,9 +1879,9 @@ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = asyn
|
|
|
1883
1879
|
});
|
|
1884
1880
|
}
|
|
1885
1881
|
};
|
|
1886
|
-
export const
|
|
1882
|
+
export const de_DeleteUserSettingsCommand = async (output, context) => {
|
|
1887
1883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
|
-
return
|
|
1884
|
+
return de_DeleteUserSettingsCommandError(output, context);
|
|
1889
1885
|
}
|
|
1890
1886
|
const contents = map({
|
|
1891
1887
|
$metadata: deserializeMetadata(output),
|
|
@@ -1893,7 +1889,7 @@ export const deserializeAws_restJson1DeleteUserSettingsCommand = async (output,
|
|
|
1893
1889
|
await collectBody(output.body, context);
|
|
1894
1890
|
return contents;
|
|
1895
1891
|
};
|
|
1896
|
-
const
|
|
1892
|
+
const de_DeleteUserSettingsCommandError = async (output, context) => {
|
|
1897
1893
|
const parsedOutput = {
|
|
1898
1894
|
...output,
|
|
1899
1895
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1902,19 +1898,19 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
1902
1898
|
switch (errorCode) {
|
|
1903
1899
|
case "AccessDeniedException":
|
|
1904
1900
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1905
|
-
throw await
|
|
1901
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1906
1902
|
case "ConflictException":
|
|
1907
1903
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1908
|
-
throw await
|
|
1904
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1909
1905
|
case "InternalServerException":
|
|
1910
1906
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1911
|
-
throw await
|
|
1907
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
1908
|
case "ThrottlingException":
|
|
1913
1909
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1914
|
-
throw await
|
|
1910
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1915
1911
|
case "ValidationException":
|
|
1916
1912
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1917
|
-
throw await
|
|
1913
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1918
1914
|
default:
|
|
1919
1915
|
const parsedBody = parsedOutput.body;
|
|
1920
1916
|
throwDefaultError({
|
|
@@ -1925,9 +1921,9 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
1925
1921
|
});
|
|
1926
1922
|
}
|
|
1927
1923
|
};
|
|
1928
|
-
export const
|
|
1924
|
+
export const de_DisassociateBrowserSettingsCommand = async (output, context) => {
|
|
1929
1925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1930
|
-
return
|
|
1926
|
+
return de_DisassociateBrowserSettingsCommandError(output, context);
|
|
1931
1927
|
}
|
|
1932
1928
|
const contents = map({
|
|
1933
1929
|
$metadata: deserializeMetadata(output),
|
|
@@ -1935,7 +1931,7 @@ export const deserializeAws_restJson1DisassociateBrowserSettingsCommand = async
|
|
|
1935
1931
|
await collectBody(output.body, context);
|
|
1936
1932
|
return contents;
|
|
1937
1933
|
};
|
|
1938
|
-
const
|
|
1934
|
+
const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
|
|
1939
1935
|
const parsedOutput = {
|
|
1940
1936
|
...output,
|
|
1941
1937
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1944,19 +1940,19 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
1944
1940
|
switch (errorCode) {
|
|
1945
1941
|
case "AccessDeniedException":
|
|
1946
1942
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1947
|
-
throw await
|
|
1943
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1948
1944
|
case "InternalServerException":
|
|
1949
1945
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1950
|
-
throw await
|
|
1946
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1951
1947
|
case "ResourceNotFoundException":
|
|
1952
1948
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1953
|
-
throw await
|
|
1949
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1954
1950
|
case "ThrottlingException":
|
|
1955
1951
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1956
|
-
throw await
|
|
1952
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1957
1953
|
case "ValidationException":
|
|
1958
1954
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1959
|
-
throw await
|
|
1955
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
1956
|
default:
|
|
1961
1957
|
const parsedBody = parsedOutput.body;
|
|
1962
1958
|
throwDefaultError({
|
|
@@ -1967,9 +1963,9 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
1967
1963
|
});
|
|
1968
1964
|
}
|
|
1969
1965
|
};
|
|
1970
|
-
export const
|
|
1966
|
+
export const de_DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
1971
1967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return
|
|
1968
|
+
return de_DisassociateNetworkSettingsCommandError(output, context);
|
|
1973
1969
|
}
|
|
1974
1970
|
const contents = map({
|
|
1975
1971
|
$metadata: deserializeMetadata(output),
|
|
@@ -1977,7 +1973,7 @@ export const deserializeAws_restJson1DisassociateNetworkSettingsCommand = async
|
|
|
1977
1973
|
await collectBody(output.body, context);
|
|
1978
1974
|
return contents;
|
|
1979
1975
|
};
|
|
1980
|
-
const
|
|
1976
|
+
const de_DisassociateNetworkSettingsCommandError = async (output, context) => {
|
|
1981
1977
|
const parsedOutput = {
|
|
1982
1978
|
...output,
|
|
1983
1979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1986,19 +1982,19 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
1986
1982
|
switch (errorCode) {
|
|
1987
1983
|
case "AccessDeniedException":
|
|
1988
1984
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1989
|
-
throw await
|
|
1985
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1990
1986
|
case "InternalServerException":
|
|
1991
1987
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1992
|
-
throw await
|
|
1988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1993
1989
|
case "ResourceNotFoundException":
|
|
1994
1990
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1995
|
-
throw await
|
|
1991
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1996
1992
|
case "ThrottlingException":
|
|
1997
1993
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1998
|
-
throw await
|
|
1994
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1999
1995
|
case "ValidationException":
|
|
2000
1996
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2001
|
-
throw await
|
|
1997
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2002
1998
|
default:
|
|
2003
1999
|
const parsedBody = parsedOutput.body;
|
|
2004
2000
|
throwDefaultError({
|
|
@@ -2009,9 +2005,9 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2009
2005
|
});
|
|
2010
2006
|
}
|
|
2011
2007
|
};
|
|
2012
|
-
export const
|
|
2008
|
+
export const de_DisassociateTrustStoreCommand = async (output, context) => {
|
|
2013
2009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
2010
|
+
return de_DisassociateTrustStoreCommandError(output, context);
|
|
2015
2011
|
}
|
|
2016
2012
|
const contents = map({
|
|
2017
2013
|
$metadata: deserializeMetadata(output),
|
|
@@ -2019,7 +2015,7 @@ export const deserializeAws_restJson1DisassociateTrustStoreCommand = async (outp
|
|
|
2019
2015
|
await collectBody(output.body, context);
|
|
2020
2016
|
return contents;
|
|
2021
2017
|
};
|
|
2022
|
-
const
|
|
2018
|
+
const de_DisassociateTrustStoreCommandError = async (output, context) => {
|
|
2023
2019
|
const parsedOutput = {
|
|
2024
2020
|
...output,
|
|
2025
2021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2028,19 +2024,19 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2028
2024
|
switch (errorCode) {
|
|
2029
2025
|
case "AccessDeniedException":
|
|
2030
2026
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2031
|
-
throw await
|
|
2027
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2032
2028
|
case "InternalServerException":
|
|
2033
2029
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2034
|
-
throw await
|
|
2030
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2035
2031
|
case "ResourceNotFoundException":
|
|
2036
2032
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2037
|
-
throw await
|
|
2033
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2038
2034
|
case "ThrottlingException":
|
|
2039
2035
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2040
|
-
throw await
|
|
2036
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2041
2037
|
case "ValidationException":
|
|
2042
2038
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2043
|
-
throw await
|
|
2039
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2044
2040
|
default:
|
|
2045
2041
|
const parsedBody = parsedOutput.body;
|
|
2046
2042
|
throwDefaultError({
|
|
@@ -2051,9 +2047,9 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2051
2047
|
});
|
|
2052
2048
|
}
|
|
2053
2049
|
};
|
|
2054
|
-
export const
|
|
2050
|
+
export const de_DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2055
2051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
2052
|
+
return de_DisassociateUserAccessLoggingSettingsCommandError(output, context);
|
|
2057
2053
|
}
|
|
2058
2054
|
const contents = map({
|
|
2059
2055
|
$metadata: deserializeMetadata(output),
|
|
@@ -2061,7 +2057,7 @@ export const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsComman
|
|
|
2061
2057
|
await collectBody(output.body, context);
|
|
2062
2058
|
return contents;
|
|
2063
2059
|
};
|
|
2064
|
-
const
|
|
2060
|
+
const de_DisassociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2065
2061
|
const parsedOutput = {
|
|
2066
2062
|
...output,
|
|
2067
2063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2070,19 +2066,19 @@ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError
|
|
|
2070
2066
|
switch (errorCode) {
|
|
2071
2067
|
case "AccessDeniedException":
|
|
2072
2068
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2073
|
-
throw await
|
|
2069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2074
2070
|
case "InternalServerException":
|
|
2075
2071
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2076
|
-
throw await
|
|
2072
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2077
2073
|
case "ResourceNotFoundException":
|
|
2078
2074
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2079
|
-
throw await
|
|
2075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2080
2076
|
case "ThrottlingException":
|
|
2081
2077
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2082
|
-
throw await
|
|
2078
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2083
2079
|
case "ValidationException":
|
|
2084
2080
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2085
|
-
throw await
|
|
2081
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2086
2082
|
default:
|
|
2087
2083
|
const parsedBody = parsedOutput.body;
|
|
2088
2084
|
throwDefaultError({
|
|
@@ -2093,9 +2089,9 @@ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError
|
|
|
2093
2089
|
});
|
|
2094
2090
|
}
|
|
2095
2091
|
};
|
|
2096
|
-
export const
|
|
2092
|
+
export const de_DisassociateUserSettingsCommand = async (output, context) => {
|
|
2097
2093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2098
|
-
return
|
|
2094
|
+
return de_DisassociateUserSettingsCommandError(output, context);
|
|
2099
2095
|
}
|
|
2100
2096
|
const contents = map({
|
|
2101
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2103,7 +2099,7 @@ export const deserializeAws_restJson1DisassociateUserSettingsCommand = async (ou
|
|
|
2103
2099
|
await collectBody(output.body, context);
|
|
2104
2100
|
return contents;
|
|
2105
2101
|
};
|
|
2106
|
-
const
|
|
2102
|
+
const de_DisassociateUserSettingsCommandError = async (output, context) => {
|
|
2107
2103
|
const parsedOutput = {
|
|
2108
2104
|
...output,
|
|
2109
2105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2112,19 +2108,19 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2112
2108
|
switch (errorCode) {
|
|
2113
2109
|
case "AccessDeniedException":
|
|
2114
2110
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2115
|
-
throw await
|
|
2111
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2116
2112
|
case "InternalServerException":
|
|
2117
2113
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2118
|
-
throw await
|
|
2114
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2119
2115
|
case "ResourceNotFoundException":
|
|
2120
2116
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2121
|
-
throw await
|
|
2117
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2122
2118
|
case "ThrottlingException":
|
|
2123
2119
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2124
|
-
throw await
|
|
2120
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2125
2121
|
case "ValidationException":
|
|
2126
2122
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2127
|
-
throw await
|
|
2123
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2128
2124
|
default:
|
|
2129
2125
|
const parsedBody = parsedOutput.body;
|
|
2130
2126
|
throwDefaultError({
|
|
@@ -2135,20 +2131,20 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2135
2131
|
});
|
|
2136
2132
|
}
|
|
2137
2133
|
};
|
|
2138
|
-
export const
|
|
2134
|
+
export const de_GetBrowserSettingsCommand = async (output, context) => {
|
|
2139
2135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
-
return
|
|
2136
|
+
return de_GetBrowserSettingsCommandError(output, context);
|
|
2141
2137
|
}
|
|
2142
2138
|
const contents = map({
|
|
2143
2139
|
$metadata: deserializeMetadata(output),
|
|
2144
2140
|
});
|
|
2145
2141
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2146
2142
|
if (data.browserSettings != null) {
|
|
2147
|
-
contents.browserSettings =
|
|
2143
|
+
contents.browserSettings = de_BrowserSettings(data.browserSettings, context);
|
|
2148
2144
|
}
|
|
2149
2145
|
return contents;
|
|
2150
2146
|
};
|
|
2151
|
-
const
|
|
2147
|
+
const de_GetBrowserSettingsCommandError = async (output, context) => {
|
|
2152
2148
|
const parsedOutput = {
|
|
2153
2149
|
...output,
|
|
2154
2150
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2157,19 +2153,19 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2157
2153
|
switch (errorCode) {
|
|
2158
2154
|
case "AccessDeniedException":
|
|
2159
2155
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2160
|
-
throw await
|
|
2156
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2161
2157
|
case "InternalServerException":
|
|
2162
2158
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2163
|
-
throw await
|
|
2159
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2164
2160
|
case "ResourceNotFoundException":
|
|
2165
2161
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2166
|
-
throw await
|
|
2162
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2167
2163
|
case "ThrottlingException":
|
|
2168
2164
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2169
|
-
throw await
|
|
2165
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2170
2166
|
case "ValidationException":
|
|
2171
2167
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2172
|
-
throw await
|
|
2168
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2173
2169
|
default:
|
|
2174
2170
|
const parsedBody = parsedOutput.body;
|
|
2175
2171
|
throwDefaultError({
|
|
@@ -2180,20 +2176,20 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2180
2176
|
});
|
|
2181
2177
|
}
|
|
2182
2178
|
};
|
|
2183
|
-
export const
|
|
2179
|
+
export const de_GetIdentityProviderCommand = async (output, context) => {
|
|
2184
2180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2185
|
-
return
|
|
2181
|
+
return de_GetIdentityProviderCommandError(output, context);
|
|
2186
2182
|
}
|
|
2187
2183
|
const contents = map({
|
|
2188
2184
|
$metadata: deserializeMetadata(output),
|
|
2189
2185
|
});
|
|
2190
2186
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2191
2187
|
if (data.identityProvider != null) {
|
|
2192
|
-
contents.identityProvider =
|
|
2188
|
+
contents.identityProvider = de_IdentityProvider(data.identityProvider, context);
|
|
2193
2189
|
}
|
|
2194
2190
|
return contents;
|
|
2195
2191
|
};
|
|
2196
|
-
const
|
|
2192
|
+
const de_GetIdentityProviderCommandError = async (output, context) => {
|
|
2197
2193
|
const parsedOutput = {
|
|
2198
2194
|
...output,
|
|
2199
2195
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2202,19 +2198,19 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2202
2198
|
switch (errorCode) {
|
|
2203
2199
|
case "AccessDeniedException":
|
|
2204
2200
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2205
|
-
throw await
|
|
2201
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2206
2202
|
case "InternalServerException":
|
|
2207
2203
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2208
|
-
throw await
|
|
2204
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2209
2205
|
case "ResourceNotFoundException":
|
|
2210
2206
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2211
|
-
throw await
|
|
2207
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2212
2208
|
case "ThrottlingException":
|
|
2213
2209
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2214
|
-
throw await
|
|
2210
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2215
2211
|
case "ValidationException":
|
|
2216
2212
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2217
|
-
throw await
|
|
2213
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2218
2214
|
default:
|
|
2219
2215
|
const parsedBody = parsedOutput.body;
|
|
2220
2216
|
throwDefaultError({
|
|
@@ -2225,20 +2221,20 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2225
2221
|
});
|
|
2226
2222
|
}
|
|
2227
2223
|
};
|
|
2228
|
-
export const
|
|
2224
|
+
export const de_GetNetworkSettingsCommand = async (output, context) => {
|
|
2229
2225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
2226
|
+
return de_GetNetworkSettingsCommandError(output, context);
|
|
2231
2227
|
}
|
|
2232
2228
|
const contents = map({
|
|
2233
2229
|
$metadata: deserializeMetadata(output),
|
|
2234
2230
|
});
|
|
2235
2231
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2236
2232
|
if (data.networkSettings != null) {
|
|
2237
|
-
contents.networkSettings =
|
|
2233
|
+
contents.networkSettings = de_NetworkSettings(data.networkSettings, context);
|
|
2238
2234
|
}
|
|
2239
2235
|
return contents;
|
|
2240
2236
|
};
|
|
2241
|
-
const
|
|
2237
|
+
const de_GetNetworkSettingsCommandError = async (output, context) => {
|
|
2242
2238
|
const parsedOutput = {
|
|
2243
2239
|
...output,
|
|
2244
2240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2247,19 +2243,19 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2247
2243
|
switch (errorCode) {
|
|
2248
2244
|
case "AccessDeniedException":
|
|
2249
2245
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2250
|
-
throw await
|
|
2246
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2251
2247
|
case "InternalServerException":
|
|
2252
2248
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2253
|
-
throw await
|
|
2249
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2254
2250
|
case "ResourceNotFoundException":
|
|
2255
2251
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2256
|
-
throw await
|
|
2252
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2257
2253
|
case "ThrottlingException":
|
|
2258
2254
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2259
|
-
throw await
|
|
2255
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2260
2256
|
case "ValidationException":
|
|
2261
2257
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2262
|
-
throw await
|
|
2258
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2263
2259
|
default:
|
|
2264
2260
|
const parsedBody = parsedOutput.body;
|
|
2265
2261
|
throwDefaultError({
|
|
@@ -2270,20 +2266,20 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2270
2266
|
});
|
|
2271
2267
|
}
|
|
2272
2268
|
};
|
|
2273
|
-
export const
|
|
2269
|
+
export const de_GetPortalCommand = async (output, context) => {
|
|
2274
2270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2275
|
-
return
|
|
2271
|
+
return de_GetPortalCommandError(output, context);
|
|
2276
2272
|
}
|
|
2277
2273
|
const contents = map({
|
|
2278
2274
|
$metadata: deserializeMetadata(output),
|
|
2279
2275
|
});
|
|
2280
2276
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2281
2277
|
if (data.portal != null) {
|
|
2282
|
-
contents.portal =
|
|
2278
|
+
contents.portal = de_Portal(data.portal, context);
|
|
2283
2279
|
}
|
|
2284
2280
|
return contents;
|
|
2285
2281
|
};
|
|
2286
|
-
const
|
|
2282
|
+
const de_GetPortalCommandError = async (output, context) => {
|
|
2287
2283
|
const parsedOutput = {
|
|
2288
2284
|
...output,
|
|
2289
2285
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2292,19 +2288,19 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2292
2288
|
switch (errorCode) {
|
|
2293
2289
|
case "AccessDeniedException":
|
|
2294
2290
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2295
|
-
throw await
|
|
2291
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2296
2292
|
case "InternalServerException":
|
|
2297
2293
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2298
|
-
throw await
|
|
2294
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2299
2295
|
case "ResourceNotFoundException":
|
|
2300
2296
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2301
|
-
throw await
|
|
2297
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2302
2298
|
case "ThrottlingException":
|
|
2303
2299
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2304
|
-
throw await
|
|
2300
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2305
2301
|
case "ValidationException":
|
|
2306
2302
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2307
|
-
throw await
|
|
2303
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2308
2304
|
default:
|
|
2309
2305
|
const parsedBody = parsedOutput.body;
|
|
2310
2306
|
throwDefaultError({
|
|
@@ -2315,9 +2311,9 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2315
2311
|
});
|
|
2316
2312
|
}
|
|
2317
2313
|
};
|
|
2318
|
-
export const
|
|
2314
|
+
export const de_GetPortalServiceProviderMetadataCommand = async (output, context) => {
|
|
2319
2315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
|
-
return
|
|
2316
|
+
return de_GetPortalServiceProviderMetadataCommandError(output, context);
|
|
2321
2317
|
}
|
|
2322
2318
|
const contents = map({
|
|
2323
2319
|
$metadata: deserializeMetadata(output),
|
|
@@ -2331,7 +2327,7 @@ export const deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = a
|
|
|
2331
2327
|
}
|
|
2332
2328
|
return contents;
|
|
2333
2329
|
};
|
|
2334
|
-
const
|
|
2330
|
+
const de_GetPortalServiceProviderMetadataCommandError = async (output, context) => {
|
|
2335
2331
|
const parsedOutput = {
|
|
2336
2332
|
...output,
|
|
2337
2333
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2340,19 +2336,19 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2340
2336
|
switch (errorCode) {
|
|
2341
2337
|
case "AccessDeniedException":
|
|
2342
2338
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2343
|
-
throw await
|
|
2339
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2344
2340
|
case "InternalServerException":
|
|
2345
2341
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2346
|
-
throw await
|
|
2342
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
2343
|
case "ResourceNotFoundException":
|
|
2348
2344
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2349
|
-
throw await
|
|
2345
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2350
2346
|
case "ThrottlingException":
|
|
2351
2347
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2352
|
-
throw await
|
|
2348
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2353
2349
|
case "ValidationException":
|
|
2354
2350
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2355
|
-
throw await
|
|
2351
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2356
2352
|
default:
|
|
2357
2353
|
const parsedBody = parsedOutput.body;
|
|
2358
2354
|
throwDefaultError({
|
|
@@ -2363,20 +2359,20 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2363
2359
|
});
|
|
2364
2360
|
}
|
|
2365
2361
|
};
|
|
2366
|
-
export const
|
|
2362
|
+
export const de_GetTrustStoreCommand = async (output, context) => {
|
|
2367
2363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2368
|
-
return
|
|
2364
|
+
return de_GetTrustStoreCommandError(output, context);
|
|
2369
2365
|
}
|
|
2370
2366
|
const contents = map({
|
|
2371
2367
|
$metadata: deserializeMetadata(output),
|
|
2372
2368
|
});
|
|
2373
2369
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2374
2370
|
if (data.trustStore != null) {
|
|
2375
|
-
contents.trustStore =
|
|
2371
|
+
contents.trustStore = de_TrustStore(data.trustStore, context);
|
|
2376
2372
|
}
|
|
2377
2373
|
return contents;
|
|
2378
2374
|
};
|
|
2379
|
-
const
|
|
2375
|
+
const de_GetTrustStoreCommandError = async (output, context) => {
|
|
2380
2376
|
const parsedOutput = {
|
|
2381
2377
|
...output,
|
|
2382
2378
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2385,19 +2381,19 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2385
2381
|
switch (errorCode) {
|
|
2386
2382
|
case "AccessDeniedException":
|
|
2387
2383
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2388
|
-
throw await
|
|
2384
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2389
2385
|
case "InternalServerException":
|
|
2390
2386
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2391
|
-
throw await
|
|
2387
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2392
2388
|
case "ResourceNotFoundException":
|
|
2393
2389
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2394
|
-
throw await
|
|
2390
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2395
2391
|
case "ThrottlingException":
|
|
2396
2392
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2397
|
-
throw await
|
|
2393
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2398
2394
|
case "ValidationException":
|
|
2399
2395
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2400
|
-
throw await
|
|
2396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2401
2397
|
default:
|
|
2402
2398
|
const parsedBody = parsedOutput.body;
|
|
2403
2399
|
throwDefaultError({
|
|
@@ -2408,23 +2404,23 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2408
2404
|
});
|
|
2409
2405
|
}
|
|
2410
2406
|
};
|
|
2411
|
-
export const
|
|
2407
|
+
export const de_GetTrustStoreCertificateCommand = async (output, context) => {
|
|
2412
2408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2413
|
-
return
|
|
2409
|
+
return de_GetTrustStoreCertificateCommandError(output, context);
|
|
2414
2410
|
}
|
|
2415
2411
|
const contents = map({
|
|
2416
2412
|
$metadata: deserializeMetadata(output),
|
|
2417
2413
|
});
|
|
2418
2414
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2419
2415
|
if (data.certificate != null) {
|
|
2420
|
-
contents.certificate =
|
|
2416
|
+
contents.certificate = de_Certificate(data.certificate, context);
|
|
2421
2417
|
}
|
|
2422
2418
|
if (data.trustStoreArn != null) {
|
|
2423
2419
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
2424
2420
|
}
|
|
2425
2421
|
return contents;
|
|
2426
2422
|
};
|
|
2427
|
-
const
|
|
2423
|
+
const de_GetTrustStoreCertificateCommandError = async (output, context) => {
|
|
2428
2424
|
const parsedOutput = {
|
|
2429
2425
|
...output,
|
|
2430
2426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2433,19 +2429,19 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2433
2429
|
switch (errorCode) {
|
|
2434
2430
|
case "AccessDeniedException":
|
|
2435
2431
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2436
|
-
throw await
|
|
2432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2437
2433
|
case "InternalServerException":
|
|
2438
2434
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2439
|
-
throw await
|
|
2435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2440
2436
|
case "ResourceNotFoundException":
|
|
2441
2437
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2442
|
-
throw await
|
|
2438
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2443
2439
|
case "ThrottlingException":
|
|
2444
2440
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2445
|
-
throw await
|
|
2441
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2446
2442
|
case "ValidationException":
|
|
2447
2443
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2448
|
-
throw await
|
|
2444
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2449
2445
|
default:
|
|
2450
2446
|
const parsedBody = parsedOutput.body;
|
|
2451
2447
|
throwDefaultError({
|
|
@@ -2456,20 +2452,20 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2456
2452
|
});
|
|
2457
2453
|
}
|
|
2458
2454
|
};
|
|
2459
|
-
export const
|
|
2455
|
+
export const de_GetUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2460
2456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2461
|
-
return
|
|
2457
|
+
return de_GetUserAccessLoggingSettingsCommandError(output, context);
|
|
2462
2458
|
}
|
|
2463
2459
|
const contents = map({
|
|
2464
2460
|
$metadata: deserializeMetadata(output),
|
|
2465
2461
|
});
|
|
2466
2462
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2467
2463
|
if (data.userAccessLoggingSettings != null) {
|
|
2468
|
-
contents.userAccessLoggingSettings =
|
|
2464
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
2469
2465
|
}
|
|
2470
2466
|
return contents;
|
|
2471
2467
|
};
|
|
2472
|
-
const
|
|
2468
|
+
const de_GetUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2473
2469
|
const parsedOutput = {
|
|
2474
2470
|
...output,
|
|
2475
2471
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2478,19 +2474,19 @@ const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (
|
|
|
2478
2474
|
switch (errorCode) {
|
|
2479
2475
|
case "AccessDeniedException":
|
|
2480
2476
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2481
|
-
throw await
|
|
2477
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2482
2478
|
case "InternalServerException":
|
|
2483
2479
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2484
|
-
throw await
|
|
2480
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2485
2481
|
case "ResourceNotFoundException":
|
|
2486
2482
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2487
|
-
throw await
|
|
2483
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2488
2484
|
case "ThrottlingException":
|
|
2489
2485
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2490
|
-
throw await
|
|
2486
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2491
2487
|
case "ValidationException":
|
|
2492
2488
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2493
|
-
throw await
|
|
2489
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2494
2490
|
default:
|
|
2495
2491
|
const parsedBody = parsedOutput.body;
|
|
2496
2492
|
throwDefaultError({
|
|
@@ -2501,20 +2497,20 @@ const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (
|
|
|
2501
2497
|
});
|
|
2502
2498
|
}
|
|
2503
2499
|
};
|
|
2504
|
-
export const
|
|
2500
|
+
export const de_GetUserSettingsCommand = async (output, context) => {
|
|
2505
2501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2506
|
-
return
|
|
2502
|
+
return de_GetUserSettingsCommandError(output, context);
|
|
2507
2503
|
}
|
|
2508
2504
|
const contents = map({
|
|
2509
2505
|
$metadata: deserializeMetadata(output),
|
|
2510
2506
|
});
|
|
2511
2507
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2512
2508
|
if (data.userSettings != null) {
|
|
2513
|
-
contents.userSettings =
|
|
2509
|
+
contents.userSettings = de_UserSettings(data.userSettings, context);
|
|
2514
2510
|
}
|
|
2515
2511
|
return contents;
|
|
2516
2512
|
};
|
|
2517
|
-
const
|
|
2513
|
+
const de_GetUserSettingsCommandError = async (output, context) => {
|
|
2518
2514
|
const parsedOutput = {
|
|
2519
2515
|
...output,
|
|
2520
2516
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2523,19 +2519,19 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2523
2519
|
switch (errorCode) {
|
|
2524
2520
|
case "AccessDeniedException":
|
|
2525
2521
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2526
|
-
throw await
|
|
2522
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2527
2523
|
case "InternalServerException":
|
|
2528
2524
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2529
|
-
throw await
|
|
2525
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2530
2526
|
case "ResourceNotFoundException":
|
|
2531
2527
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2532
|
-
throw await
|
|
2528
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2533
2529
|
case "ThrottlingException":
|
|
2534
2530
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2535
|
-
throw await
|
|
2531
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2536
2532
|
case "ValidationException":
|
|
2537
2533
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2538
|
-
throw await
|
|
2534
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2539
2535
|
default:
|
|
2540
2536
|
const parsedBody = parsedOutput.body;
|
|
2541
2537
|
throwDefaultError({
|
|
@@ -2546,23 +2542,23 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2546
2542
|
});
|
|
2547
2543
|
}
|
|
2548
2544
|
};
|
|
2549
|
-
export const
|
|
2545
|
+
export const de_ListBrowserSettingsCommand = async (output, context) => {
|
|
2550
2546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2551
|
-
return
|
|
2547
|
+
return de_ListBrowserSettingsCommandError(output, context);
|
|
2552
2548
|
}
|
|
2553
2549
|
const contents = map({
|
|
2554
2550
|
$metadata: deserializeMetadata(output),
|
|
2555
2551
|
});
|
|
2556
2552
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2557
2553
|
if (data.browserSettings != null) {
|
|
2558
|
-
contents.browserSettings =
|
|
2554
|
+
contents.browserSettings = de_BrowserSettingsList(data.browserSettings, context);
|
|
2559
2555
|
}
|
|
2560
2556
|
if (data.nextToken != null) {
|
|
2561
2557
|
contents.nextToken = __expectString(data.nextToken);
|
|
2562
2558
|
}
|
|
2563
2559
|
return contents;
|
|
2564
2560
|
};
|
|
2565
|
-
const
|
|
2561
|
+
const de_ListBrowserSettingsCommandError = async (output, context) => {
|
|
2566
2562
|
const parsedOutput = {
|
|
2567
2563
|
...output,
|
|
2568
2564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2571,16 +2567,16 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2571
2567
|
switch (errorCode) {
|
|
2572
2568
|
case "AccessDeniedException":
|
|
2573
2569
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2574
|
-
throw await
|
|
2570
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2575
2571
|
case "InternalServerException":
|
|
2576
2572
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2577
|
-
throw await
|
|
2573
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2578
2574
|
case "ThrottlingException":
|
|
2579
2575
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2580
|
-
throw await
|
|
2576
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2581
2577
|
case "ValidationException":
|
|
2582
2578
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2583
|
-
throw await
|
|
2579
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2584
2580
|
default:
|
|
2585
2581
|
const parsedBody = parsedOutput.body;
|
|
2586
2582
|
throwDefaultError({
|
|
@@ -2591,23 +2587,23 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2591
2587
|
});
|
|
2592
2588
|
}
|
|
2593
2589
|
};
|
|
2594
|
-
export const
|
|
2590
|
+
export const de_ListIdentityProvidersCommand = async (output, context) => {
|
|
2595
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2596
|
-
return
|
|
2592
|
+
return de_ListIdentityProvidersCommandError(output, context);
|
|
2597
2593
|
}
|
|
2598
2594
|
const contents = map({
|
|
2599
2595
|
$metadata: deserializeMetadata(output),
|
|
2600
2596
|
});
|
|
2601
2597
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2602
2598
|
if (data.identityProviders != null) {
|
|
2603
|
-
contents.identityProviders =
|
|
2599
|
+
contents.identityProviders = de_IdentityProviderList(data.identityProviders, context);
|
|
2604
2600
|
}
|
|
2605
2601
|
if (data.nextToken != null) {
|
|
2606
2602
|
contents.nextToken = __expectString(data.nextToken);
|
|
2607
2603
|
}
|
|
2608
2604
|
return contents;
|
|
2609
2605
|
};
|
|
2610
|
-
const
|
|
2606
|
+
const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
2611
2607
|
const parsedOutput = {
|
|
2612
2608
|
...output,
|
|
2613
2609
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2616,16 +2612,16 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2616
2612
|
switch (errorCode) {
|
|
2617
2613
|
case "AccessDeniedException":
|
|
2618
2614
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2619
|
-
throw await
|
|
2615
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2620
2616
|
case "InternalServerException":
|
|
2621
2617
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2622
|
-
throw await
|
|
2618
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2623
2619
|
case "ThrottlingException":
|
|
2624
2620
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2625
|
-
throw await
|
|
2621
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2626
2622
|
case "ValidationException":
|
|
2627
2623
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2628
|
-
throw await
|
|
2624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2629
2625
|
default:
|
|
2630
2626
|
const parsedBody = parsedOutput.body;
|
|
2631
2627
|
throwDefaultError({
|
|
@@ -2636,23 +2632,23 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2636
2632
|
});
|
|
2637
2633
|
}
|
|
2638
2634
|
};
|
|
2639
|
-
export const
|
|
2635
|
+
export const de_ListNetworkSettingsCommand = async (output, context) => {
|
|
2640
2636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2641
|
-
return
|
|
2637
|
+
return de_ListNetworkSettingsCommandError(output, context);
|
|
2642
2638
|
}
|
|
2643
2639
|
const contents = map({
|
|
2644
2640
|
$metadata: deserializeMetadata(output),
|
|
2645
2641
|
});
|
|
2646
2642
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2647
2643
|
if (data.networkSettings != null) {
|
|
2648
|
-
contents.networkSettings =
|
|
2644
|
+
contents.networkSettings = de_NetworkSettingsList(data.networkSettings, context);
|
|
2649
2645
|
}
|
|
2650
2646
|
if (data.nextToken != null) {
|
|
2651
2647
|
contents.nextToken = __expectString(data.nextToken);
|
|
2652
2648
|
}
|
|
2653
2649
|
return contents;
|
|
2654
2650
|
};
|
|
2655
|
-
const
|
|
2651
|
+
const de_ListNetworkSettingsCommandError = async (output, context) => {
|
|
2656
2652
|
const parsedOutput = {
|
|
2657
2653
|
...output,
|
|
2658
2654
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2661,16 +2657,16 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2661
2657
|
switch (errorCode) {
|
|
2662
2658
|
case "AccessDeniedException":
|
|
2663
2659
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2664
|
-
throw await
|
|
2660
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2665
2661
|
case "InternalServerException":
|
|
2666
2662
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2667
|
-
throw await
|
|
2663
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2668
2664
|
case "ThrottlingException":
|
|
2669
2665
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2670
|
-
throw await
|
|
2666
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2671
2667
|
case "ValidationException":
|
|
2672
2668
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2673
|
-
throw await
|
|
2669
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2674
2670
|
default:
|
|
2675
2671
|
const parsedBody = parsedOutput.body;
|
|
2676
2672
|
throwDefaultError({
|
|
@@ -2681,9 +2677,9 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2681
2677
|
});
|
|
2682
2678
|
}
|
|
2683
2679
|
};
|
|
2684
|
-
export const
|
|
2680
|
+
export const de_ListPortalsCommand = async (output, context) => {
|
|
2685
2681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2686
|
-
return
|
|
2682
|
+
return de_ListPortalsCommandError(output, context);
|
|
2687
2683
|
}
|
|
2688
2684
|
const contents = map({
|
|
2689
2685
|
$metadata: deserializeMetadata(output),
|
|
@@ -2693,11 +2689,11 @@ export const deserializeAws_restJson1ListPortalsCommand = async (output, context
|
|
|
2693
2689
|
contents.nextToken = __expectString(data.nextToken);
|
|
2694
2690
|
}
|
|
2695
2691
|
if (data.portals != null) {
|
|
2696
|
-
contents.portals =
|
|
2692
|
+
contents.portals = de_PortalList(data.portals, context);
|
|
2697
2693
|
}
|
|
2698
2694
|
return contents;
|
|
2699
2695
|
};
|
|
2700
|
-
const
|
|
2696
|
+
const de_ListPortalsCommandError = async (output, context) => {
|
|
2701
2697
|
const parsedOutput = {
|
|
2702
2698
|
...output,
|
|
2703
2699
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2706,16 +2702,16 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2706
2702
|
switch (errorCode) {
|
|
2707
2703
|
case "AccessDeniedException":
|
|
2708
2704
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2709
|
-
throw await
|
|
2705
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2710
2706
|
case "InternalServerException":
|
|
2711
2707
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2712
|
-
throw await
|
|
2708
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2713
2709
|
case "ThrottlingException":
|
|
2714
2710
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2715
|
-
throw await
|
|
2711
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2716
2712
|
case "ValidationException":
|
|
2717
2713
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2718
|
-
throw await
|
|
2714
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2719
2715
|
default:
|
|
2720
2716
|
const parsedBody = parsedOutput.body;
|
|
2721
2717
|
throwDefaultError({
|
|
@@ -2726,20 +2722,20 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2726
2722
|
});
|
|
2727
2723
|
}
|
|
2728
2724
|
};
|
|
2729
|
-
export const
|
|
2725
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2730
2726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2731
|
-
return
|
|
2727
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2732
2728
|
}
|
|
2733
2729
|
const contents = map({
|
|
2734
2730
|
$metadata: deserializeMetadata(output),
|
|
2735
2731
|
});
|
|
2736
2732
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2737
2733
|
if (data.tags != null) {
|
|
2738
|
-
contents.tags =
|
|
2734
|
+
contents.tags = de_TagList(data.tags, context);
|
|
2739
2735
|
}
|
|
2740
2736
|
return contents;
|
|
2741
2737
|
};
|
|
2742
|
-
const
|
|
2738
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2743
2739
|
const parsedOutput = {
|
|
2744
2740
|
...output,
|
|
2745
2741
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2748,19 +2744,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2748
2744
|
switch (errorCode) {
|
|
2749
2745
|
case "AccessDeniedException":
|
|
2750
2746
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2751
|
-
throw await
|
|
2747
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2752
2748
|
case "InternalServerException":
|
|
2753
2749
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2754
|
-
throw await
|
|
2750
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2755
2751
|
case "ResourceNotFoundException":
|
|
2756
2752
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2757
|
-
throw await
|
|
2753
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2758
2754
|
case "ThrottlingException":
|
|
2759
2755
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2760
|
-
throw await
|
|
2756
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2761
2757
|
case "ValidationException":
|
|
2762
2758
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2763
|
-
throw await
|
|
2759
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2764
2760
|
default:
|
|
2765
2761
|
const parsedBody = parsedOutput.body;
|
|
2766
2762
|
throwDefaultError({
|
|
@@ -2771,16 +2767,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2771
2767
|
});
|
|
2772
2768
|
}
|
|
2773
2769
|
};
|
|
2774
|
-
export const
|
|
2770
|
+
export const de_ListTrustStoreCertificatesCommand = async (output, context) => {
|
|
2775
2771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2776
|
-
return
|
|
2772
|
+
return de_ListTrustStoreCertificatesCommandError(output, context);
|
|
2777
2773
|
}
|
|
2778
2774
|
const contents = map({
|
|
2779
2775
|
$metadata: deserializeMetadata(output),
|
|
2780
2776
|
});
|
|
2781
2777
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2782
2778
|
if (data.certificateList != null) {
|
|
2783
|
-
contents.certificateList =
|
|
2779
|
+
contents.certificateList = de_CertificateSummaryList(data.certificateList, context);
|
|
2784
2780
|
}
|
|
2785
2781
|
if (data.nextToken != null) {
|
|
2786
2782
|
contents.nextToken = __expectString(data.nextToken);
|
|
@@ -2790,7 +2786,7 @@ export const deserializeAws_restJson1ListTrustStoreCertificatesCommand = async (
|
|
|
2790
2786
|
}
|
|
2791
2787
|
return contents;
|
|
2792
2788
|
};
|
|
2793
|
-
const
|
|
2789
|
+
const de_ListTrustStoreCertificatesCommandError = async (output, context) => {
|
|
2794
2790
|
const parsedOutput = {
|
|
2795
2791
|
...output,
|
|
2796
2792
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2799,19 +2795,19 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
2799
2795
|
switch (errorCode) {
|
|
2800
2796
|
case "AccessDeniedException":
|
|
2801
2797
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2802
|
-
throw await
|
|
2798
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2803
2799
|
case "InternalServerException":
|
|
2804
2800
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2805
|
-
throw await
|
|
2801
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2806
2802
|
case "ResourceNotFoundException":
|
|
2807
2803
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2808
|
-
throw await
|
|
2804
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2809
2805
|
case "ThrottlingException":
|
|
2810
2806
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2811
|
-
throw await
|
|
2807
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2812
2808
|
case "ValidationException":
|
|
2813
2809
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2814
|
-
throw await
|
|
2810
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2815
2811
|
default:
|
|
2816
2812
|
const parsedBody = parsedOutput.body;
|
|
2817
2813
|
throwDefaultError({
|
|
@@ -2822,9 +2818,9 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
2822
2818
|
});
|
|
2823
2819
|
}
|
|
2824
2820
|
};
|
|
2825
|
-
export const
|
|
2821
|
+
export const de_ListTrustStoresCommand = async (output, context) => {
|
|
2826
2822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2827
|
-
return
|
|
2823
|
+
return de_ListTrustStoresCommandError(output, context);
|
|
2828
2824
|
}
|
|
2829
2825
|
const contents = map({
|
|
2830
2826
|
$metadata: deserializeMetadata(output),
|
|
@@ -2834,11 +2830,11 @@ export const deserializeAws_restJson1ListTrustStoresCommand = async (output, con
|
|
|
2834
2830
|
contents.nextToken = __expectString(data.nextToken);
|
|
2835
2831
|
}
|
|
2836
2832
|
if (data.trustStores != null) {
|
|
2837
|
-
contents.trustStores =
|
|
2833
|
+
contents.trustStores = de_TrustStoreSummaryList(data.trustStores, context);
|
|
2838
2834
|
}
|
|
2839
2835
|
return contents;
|
|
2840
2836
|
};
|
|
2841
|
-
const
|
|
2837
|
+
const de_ListTrustStoresCommandError = async (output, context) => {
|
|
2842
2838
|
const parsedOutput = {
|
|
2843
2839
|
...output,
|
|
2844
2840
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2847,16 +2843,16 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
2847
2843
|
switch (errorCode) {
|
|
2848
2844
|
case "AccessDeniedException":
|
|
2849
2845
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2850
|
-
throw await
|
|
2846
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2851
2847
|
case "InternalServerException":
|
|
2852
2848
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2853
|
-
throw await
|
|
2849
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2854
2850
|
case "ThrottlingException":
|
|
2855
2851
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2856
|
-
throw await
|
|
2852
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2857
2853
|
case "ValidationException":
|
|
2858
2854
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2859
|
-
throw await
|
|
2855
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2860
2856
|
default:
|
|
2861
2857
|
const parsedBody = parsedOutput.body;
|
|
2862
2858
|
throwDefaultError({
|
|
@@ -2867,9 +2863,9 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
2867
2863
|
});
|
|
2868
2864
|
}
|
|
2869
2865
|
};
|
|
2870
|
-
export const
|
|
2866
|
+
export const de_ListUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2871
2867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2872
|
-
return
|
|
2868
|
+
return de_ListUserAccessLoggingSettingsCommandError(output, context);
|
|
2873
2869
|
}
|
|
2874
2870
|
const contents = map({
|
|
2875
2871
|
$metadata: deserializeMetadata(output),
|
|
@@ -2879,11 +2875,11 @@ export const deserializeAws_restJson1ListUserAccessLoggingSettingsCommand = asyn
|
|
|
2879
2875
|
contents.nextToken = __expectString(data.nextToken);
|
|
2880
2876
|
}
|
|
2881
2877
|
if (data.userAccessLoggingSettings != null) {
|
|
2882
|
-
contents.userAccessLoggingSettings =
|
|
2878
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettingsList(data.userAccessLoggingSettings, context);
|
|
2883
2879
|
}
|
|
2884
2880
|
return contents;
|
|
2885
2881
|
};
|
|
2886
|
-
const
|
|
2882
|
+
const de_ListUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2887
2883
|
const parsedOutput = {
|
|
2888
2884
|
...output,
|
|
2889
2885
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2892,16 +2888,16 @@ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async
|
|
|
2892
2888
|
switch (errorCode) {
|
|
2893
2889
|
case "AccessDeniedException":
|
|
2894
2890
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2895
|
-
throw await
|
|
2891
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2896
2892
|
case "InternalServerException":
|
|
2897
2893
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2898
|
-
throw await
|
|
2894
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2899
2895
|
case "ThrottlingException":
|
|
2900
2896
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2901
|
-
throw await
|
|
2897
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2902
2898
|
case "ValidationException":
|
|
2903
2899
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2904
|
-
throw await
|
|
2900
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2905
2901
|
default:
|
|
2906
2902
|
const parsedBody = parsedOutput.body;
|
|
2907
2903
|
throwDefaultError({
|
|
@@ -2912,9 +2908,9 @@ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async
|
|
|
2912
2908
|
});
|
|
2913
2909
|
}
|
|
2914
2910
|
};
|
|
2915
|
-
export const
|
|
2911
|
+
export const de_ListUserSettingsCommand = async (output, context) => {
|
|
2916
2912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2917
|
-
return
|
|
2913
|
+
return de_ListUserSettingsCommandError(output, context);
|
|
2918
2914
|
}
|
|
2919
2915
|
const contents = map({
|
|
2920
2916
|
$metadata: deserializeMetadata(output),
|
|
@@ -2924,11 +2920,11 @@ export const deserializeAws_restJson1ListUserSettingsCommand = async (output, co
|
|
|
2924
2920
|
contents.nextToken = __expectString(data.nextToken);
|
|
2925
2921
|
}
|
|
2926
2922
|
if (data.userSettings != null) {
|
|
2927
|
-
contents.userSettings =
|
|
2923
|
+
contents.userSettings = de_UserSettingsList(data.userSettings, context);
|
|
2928
2924
|
}
|
|
2929
2925
|
return contents;
|
|
2930
2926
|
};
|
|
2931
|
-
const
|
|
2927
|
+
const de_ListUserSettingsCommandError = async (output, context) => {
|
|
2932
2928
|
const parsedOutput = {
|
|
2933
2929
|
...output,
|
|
2934
2930
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2937,16 +2933,16 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
2937
2933
|
switch (errorCode) {
|
|
2938
2934
|
case "AccessDeniedException":
|
|
2939
2935
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2940
|
-
throw await
|
|
2936
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2941
2937
|
case "InternalServerException":
|
|
2942
2938
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2943
|
-
throw await
|
|
2939
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2944
2940
|
case "ThrottlingException":
|
|
2945
2941
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2946
|
-
throw await
|
|
2942
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2947
2943
|
case "ValidationException":
|
|
2948
2944
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2949
|
-
throw await
|
|
2945
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2950
2946
|
default:
|
|
2951
2947
|
const parsedBody = parsedOutput.body;
|
|
2952
2948
|
throwDefaultError({
|
|
@@ -2957,9 +2953,9 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
2957
2953
|
});
|
|
2958
2954
|
}
|
|
2959
2955
|
};
|
|
2960
|
-
export const
|
|
2956
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2961
2957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
2958
|
+
return de_TagResourceCommandError(output, context);
|
|
2963
2959
|
}
|
|
2964
2960
|
const contents = map({
|
|
2965
2961
|
$metadata: deserializeMetadata(output),
|
|
@@ -2967,7 +2963,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2967
2963
|
await collectBody(output.body, context);
|
|
2968
2964
|
return contents;
|
|
2969
2965
|
};
|
|
2970
|
-
const
|
|
2966
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2971
2967
|
const parsedOutput = {
|
|
2972
2968
|
...output,
|
|
2973
2969
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2976,22 +2972,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2976
2972
|
switch (errorCode) {
|
|
2977
2973
|
case "AccessDeniedException":
|
|
2978
2974
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2979
|
-
throw await
|
|
2975
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2980
2976
|
case "InternalServerException":
|
|
2981
2977
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2982
|
-
throw await
|
|
2978
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2983
2979
|
case "ResourceNotFoundException":
|
|
2984
2980
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2985
|
-
throw await
|
|
2981
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2986
2982
|
case "ThrottlingException":
|
|
2987
2983
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2988
|
-
throw await
|
|
2984
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2989
2985
|
case "TooManyTagsException":
|
|
2990
2986
|
case "com.amazonaws.workspacesweb#TooManyTagsException":
|
|
2991
|
-
throw await
|
|
2987
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2992
2988
|
case "ValidationException":
|
|
2993
2989
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2994
|
-
throw await
|
|
2990
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2995
2991
|
default:
|
|
2996
2992
|
const parsedBody = parsedOutput.body;
|
|
2997
2993
|
throwDefaultError({
|
|
@@ -3002,9 +2998,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3002
2998
|
});
|
|
3003
2999
|
}
|
|
3004
3000
|
};
|
|
3005
|
-
export const
|
|
3001
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
3006
3002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3007
|
-
return
|
|
3003
|
+
return de_UntagResourceCommandError(output, context);
|
|
3008
3004
|
}
|
|
3009
3005
|
const contents = map({
|
|
3010
3006
|
$metadata: deserializeMetadata(output),
|
|
@@ -3012,7 +3008,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
3012
3008
|
await collectBody(output.body, context);
|
|
3013
3009
|
return contents;
|
|
3014
3010
|
};
|
|
3015
|
-
const
|
|
3011
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
3016
3012
|
const parsedOutput = {
|
|
3017
3013
|
...output,
|
|
3018
3014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3021,19 +3017,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3021
3017
|
switch (errorCode) {
|
|
3022
3018
|
case "AccessDeniedException":
|
|
3023
3019
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3024
|
-
throw await
|
|
3020
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3025
3021
|
case "InternalServerException":
|
|
3026
3022
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3027
|
-
throw await
|
|
3023
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3028
3024
|
case "ResourceNotFoundException":
|
|
3029
3025
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3030
|
-
throw await
|
|
3026
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3031
3027
|
case "ThrottlingException":
|
|
3032
3028
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3033
|
-
throw await
|
|
3029
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3034
3030
|
case "ValidationException":
|
|
3035
3031
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3036
|
-
throw await
|
|
3032
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3037
3033
|
default:
|
|
3038
3034
|
const parsedBody = parsedOutput.body;
|
|
3039
3035
|
throwDefaultError({
|
|
@@ -3044,20 +3040,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3044
3040
|
});
|
|
3045
3041
|
}
|
|
3046
3042
|
};
|
|
3047
|
-
export const
|
|
3043
|
+
export const de_UpdateBrowserSettingsCommand = async (output, context) => {
|
|
3048
3044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3049
|
-
return
|
|
3045
|
+
return de_UpdateBrowserSettingsCommandError(output, context);
|
|
3050
3046
|
}
|
|
3051
3047
|
const contents = map({
|
|
3052
3048
|
$metadata: deserializeMetadata(output),
|
|
3053
3049
|
});
|
|
3054
3050
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3055
3051
|
if (data.browserSettings != null) {
|
|
3056
|
-
contents.browserSettings =
|
|
3052
|
+
contents.browserSettings = de_BrowserSettings(data.browserSettings, context);
|
|
3057
3053
|
}
|
|
3058
3054
|
return contents;
|
|
3059
3055
|
};
|
|
3060
|
-
const
|
|
3056
|
+
const de_UpdateBrowserSettingsCommandError = async (output, context) => {
|
|
3061
3057
|
const parsedOutput = {
|
|
3062
3058
|
...output,
|
|
3063
3059
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3066,19 +3062,19 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3066
3062
|
switch (errorCode) {
|
|
3067
3063
|
case "AccessDeniedException":
|
|
3068
3064
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3069
|
-
throw await
|
|
3065
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3070
3066
|
case "InternalServerException":
|
|
3071
3067
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3072
|
-
throw await
|
|
3068
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3073
3069
|
case "ResourceNotFoundException":
|
|
3074
3070
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3075
|
-
throw await
|
|
3071
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3076
3072
|
case "ThrottlingException":
|
|
3077
3073
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3078
|
-
throw await
|
|
3074
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3079
3075
|
case "ValidationException":
|
|
3080
3076
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3081
|
-
throw await
|
|
3077
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3082
3078
|
default:
|
|
3083
3079
|
const parsedBody = parsedOutput.body;
|
|
3084
3080
|
throwDefaultError({
|
|
@@ -3089,20 +3085,20 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3089
3085
|
});
|
|
3090
3086
|
}
|
|
3091
3087
|
};
|
|
3092
|
-
export const
|
|
3088
|
+
export const de_UpdateIdentityProviderCommand = async (output, context) => {
|
|
3093
3089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3094
|
-
return
|
|
3090
|
+
return de_UpdateIdentityProviderCommandError(output, context);
|
|
3095
3091
|
}
|
|
3096
3092
|
const contents = map({
|
|
3097
3093
|
$metadata: deserializeMetadata(output),
|
|
3098
3094
|
});
|
|
3099
3095
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3100
3096
|
if (data.identityProvider != null) {
|
|
3101
|
-
contents.identityProvider =
|
|
3097
|
+
contents.identityProvider = de_IdentityProvider(data.identityProvider, context);
|
|
3102
3098
|
}
|
|
3103
3099
|
return contents;
|
|
3104
3100
|
};
|
|
3105
|
-
const
|
|
3101
|
+
const de_UpdateIdentityProviderCommandError = async (output, context) => {
|
|
3106
3102
|
const parsedOutput = {
|
|
3107
3103
|
...output,
|
|
3108
3104
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3111,19 +3107,19 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3111
3107
|
switch (errorCode) {
|
|
3112
3108
|
case "AccessDeniedException":
|
|
3113
3109
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3114
|
-
throw await
|
|
3110
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3115
3111
|
case "InternalServerException":
|
|
3116
3112
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3117
|
-
throw await
|
|
3113
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3118
3114
|
case "ResourceNotFoundException":
|
|
3119
3115
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3120
|
-
throw await
|
|
3116
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3121
3117
|
case "ThrottlingException":
|
|
3122
3118
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3123
|
-
throw await
|
|
3119
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3124
3120
|
case "ValidationException":
|
|
3125
3121
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3126
|
-
throw await
|
|
3122
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3127
3123
|
default:
|
|
3128
3124
|
const parsedBody = parsedOutput.body;
|
|
3129
3125
|
throwDefaultError({
|
|
@@ -3134,20 +3130,20 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3134
3130
|
});
|
|
3135
3131
|
}
|
|
3136
3132
|
};
|
|
3137
|
-
export const
|
|
3133
|
+
export const de_UpdateNetworkSettingsCommand = async (output, context) => {
|
|
3138
3134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3139
|
-
return
|
|
3135
|
+
return de_UpdateNetworkSettingsCommandError(output, context);
|
|
3140
3136
|
}
|
|
3141
3137
|
const contents = map({
|
|
3142
3138
|
$metadata: deserializeMetadata(output),
|
|
3143
3139
|
});
|
|
3144
3140
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3145
3141
|
if (data.networkSettings != null) {
|
|
3146
|
-
contents.networkSettings =
|
|
3142
|
+
contents.networkSettings = de_NetworkSettings(data.networkSettings, context);
|
|
3147
3143
|
}
|
|
3148
3144
|
return contents;
|
|
3149
3145
|
};
|
|
3150
|
-
const
|
|
3146
|
+
const de_UpdateNetworkSettingsCommandError = async (output, context) => {
|
|
3151
3147
|
const parsedOutput = {
|
|
3152
3148
|
...output,
|
|
3153
3149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3156,19 +3152,19 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3156
3152
|
switch (errorCode) {
|
|
3157
3153
|
case "AccessDeniedException":
|
|
3158
3154
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3159
|
-
throw await
|
|
3155
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3160
3156
|
case "InternalServerException":
|
|
3161
3157
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3162
|
-
throw await
|
|
3158
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3163
3159
|
case "ResourceNotFoundException":
|
|
3164
3160
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3165
|
-
throw await
|
|
3161
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3166
3162
|
case "ThrottlingException":
|
|
3167
3163
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3168
|
-
throw await
|
|
3164
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3169
3165
|
case "ValidationException":
|
|
3170
3166
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3171
|
-
throw await
|
|
3167
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3172
3168
|
default:
|
|
3173
3169
|
const parsedBody = parsedOutput.body;
|
|
3174
3170
|
throwDefaultError({
|
|
@@ -3179,20 +3175,20 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3179
3175
|
});
|
|
3180
3176
|
}
|
|
3181
3177
|
};
|
|
3182
|
-
export const
|
|
3178
|
+
export const de_UpdatePortalCommand = async (output, context) => {
|
|
3183
3179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3184
|
-
return
|
|
3180
|
+
return de_UpdatePortalCommandError(output, context);
|
|
3185
3181
|
}
|
|
3186
3182
|
const contents = map({
|
|
3187
3183
|
$metadata: deserializeMetadata(output),
|
|
3188
3184
|
});
|
|
3189
3185
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3190
3186
|
if (data.portal != null) {
|
|
3191
|
-
contents.portal =
|
|
3187
|
+
contents.portal = de_Portal(data.portal, context);
|
|
3192
3188
|
}
|
|
3193
3189
|
return contents;
|
|
3194
3190
|
};
|
|
3195
|
-
const
|
|
3191
|
+
const de_UpdatePortalCommandError = async (output, context) => {
|
|
3196
3192
|
const parsedOutput = {
|
|
3197
3193
|
...output,
|
|
3198
3194
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3201,19 +3197,19 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3201
3197
|
switch (errorCode) {
|
|
3202
3198
|
case "AccessDeniedException":
|
|
3203
3199
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3204
|
-
throw await
|
|
3200
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3205
3201
|
case "InternalServerException":
|
|
3206
3202
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3207
|
-
throw await
|
|
3203
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3208
3204
|
case "ResourceNotFoundException":
|
|
3209
3205
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3210
|
-
throw await
|
|
3206
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3211
3207
|
case "ThrottlingException":
|
|
3212
3208
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3213
|
-
throw await
|
|
3209
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3214
3210
|
case "ValidationException":
|
|
3215
3211
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3216
|
-
throw await
|
|
3212
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3217
3213
|
default:
|
|
3218
3214
|
const parsedBody = parsedOutput.body;
|
|
3219
3215
|
throwDefaultError({
|
|
@@ -3224,9 +3220,9 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3224
3220
|
});
|
|
3225
3221
|
}
|
|
3226
3222
|
};
|
|
3227
|
-
export const
|
|
3223
|
+
export const de_UpdateTrustStoreCommand = async (output, context) => {
|
|
3228
3224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3229
|
-
return
|
|
3225
|
+
return de_UpdateTrustStoreCommandError(output, context);
|
|
3230
3226
|
}
|
|
3231
3227
|
const contents = map({
|
|
3232
3228
|
$metadata: deserializeMetadata(output),
|
|
@@ -3237,7 +3233,7 @@ export const deserializeAws_restJson1UpdateTrustStoreCommand = async (output, co
|
|
|
3237
3233
|
}
|
|
3238
3234
|
return contents;
|
|
3239
3235
|
};
|
|
3240
|
-
const
|
|
3236
|
+
const de_UpdateTrustStoreCommandError = async (output, context) => {
|
|
3241
3237
|
const parsedOutput = {
|
|
3242
3238
|
...output,
|
|
3243
3239
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3246,22 +3242,22 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3246
3242
|
switch (errorCode) {
|
|
3247
3243
|
case "AccessDeniedException":
|
|
3248
3244
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3249
|
-
throw await
|
|
3245
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3250
3246
|
case "InternalServerException":
|
|
3251
3247
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3252
|
-
throw await
|
|
3248
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3253
3249
|
case "ResourceNotFoundException":
|
|
3254
3250
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3255
|
-
throw await
|
|
3251
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3256
3252
|
case "ServiceQuotaExceededException":
|
|
3257
3253
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
3258
|
-
throw await
|
|
3254
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3259
3255
|
case "ThrottlingException":
|
|
3260
3256
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3261
|
-
throw await
|
|
3257
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3262
3258
|
case "ValidationException":
|
|
3263
3259
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3264
|
-
throw await
|
|
3260
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3265
3261
|
default:
|
|
3266
3262
|
const parsedBody = parsedOutput.body;
|
|
3267
3263
|
throwDefaultError({
|
|
@@ -3272,20 +3268,20 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3272
3268
|
});
|
|
3273
3269
|
}
|
|
3274
3270
|
};
|
|
3275
|
-
export const
|
|
3271
|
+
export const de_UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
3276
3272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3277
|
-
return
|
|
3273
|
+
return de_UpdateUserAccessLoggingSettingsCommandError(output, context);
|
|
3278
3274
|
}
|
|
3279
3275
|
const contents = map({
|
|
3280
3276
|
$metadata: deserializeMetadata(output),
|
|
3281
3277
|
});
|
|
3282
3278
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3283
3279
|
if (data.userAccessLoggingSettings != null) {
|
|
3284
|
-
contents.userAccessLoggingSettings =
|
|
3280
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
3285
3281
|
}
|
|
3286
3282
|
return contents;
|
|
3287
3283
|
};
|
|
3288
|
-
const
|
|
3284
|
+
const de_UpdateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
3289
3285
|
const parsedOutput = {
|
|
3290
3286
|
...output,
|
|
3291
3287
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3294,19 +3290,19 @@ const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = asyn
|
|
|
3294
3290
|
switch (errorCode) {
|
|
3295
3291
|
case "AccessDeniedException":
|
|
3296
3292
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3297
|
-
throw await
|
|
3293
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3298
3294
|
case "InternalServerException":
|
|
3299
3295
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3300
|
-
throw await
|
|
3296
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3301
3297
|
case "ResourceNotFoundException":
|
|
3302
3298
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3303
|
-
throw await
|
|
3299
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3304
3300
|
case "ThrottlingException":
|
|
3305
3301
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3306
|
-
throw await
|
|
3302
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3307
3303
|
case "ValidationException":
|
|
3308
3304
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3309
|
-
throw await
|
|
3305
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3310
3306
|
default:
|
|
3311
3307
|
const parsedBody = parsedOutput.body;
|
|
3312
3308
|
throwDefaultError({
|
|
@@ -3317,20 +3313,20 @@ const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = asyn
|
|
|
3317
3313
|
});
|
|
3318
3314
|
}
|
|
3319
3315
|
};
|
|
3320
|
-
export const
|
|
3316
|
+
export const de_UpdateUserSettingsCommand = async (output, context) => {
|
|
3321
3317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3322
|
-
return
|
|
3318
|
+
return de_UpdateUserSettingsCommandError(output, context);
|
|
3323
3319
|
}
|
|
3324
3320
|
const contents = map({
|
|
3325
3321
|
$metadata: deserializeMetadata(output),
|
|
3326
3322
|
});
|
|
3327
3323
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3328
3324
|
if (data.userSettings != null) {
|
|
3329
|
-
contents.userSettings =
|
|
3325
|
+
contents.userSettings = de_UserSettings(data.userSettings, context);
|
|
3330
3326
|
}
|
|
3331
3327
|
return contents;
|
|
3332
3328
|
};
|
|
3333
|
-
const
|
|
3329
|
+
const de_UpdateUserSettingsCommandError = async (output, context) => {
|
|
3334
3330
|
const parsedOutput = {
|
|
3335
3331
|
...output,
|
|
3336
3332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3339,19 +3335,19 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3339
3335
|
switch (errorCode) {
|
|
3340
3336
|
case "AccessDeniedException":
|
|
3341
3337
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3342
|
-
throw await
|
|
3338
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3343
3339
|
case "InternalServerException":
|
|
3344
3340
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3345
|
-
throw await
|
|
3341
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3346
3342
|
case "ResourceNotFoundException":
|
|
3347
3343
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3348
|
-
throw await
|
|
3344
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3349
3345
|
case "ThrottlingException":
|
|
3350
3346
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3351
|
-
throw await
|
|
3347
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3352
3348
|
case "ValidationException":
|
|
3353
3349
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3354
|
-
throw await
|
|
3350
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3355
3351
|
default:
|
|
3356
3352
|
const parsedBody = parsedOutput.body;
|
|
3357
3353
|
throwDefaultError({
|
|
@@ -3363,7 +3359,7 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3363
3359
|
}
|
|
3364
3360
|
};
|
|
3365
3361
|
const map = __map;
|
|
3366
|
-
const
|
|
3362
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3367
3363
|
const contents = map({});
|
|
3368
3364
|
const data = parsedOutput.body;
|
|
3369
3365
|
if (data.message != null) {
|
|
@@ -3375,7 +3371,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3375
3371
|
});
|
|
3376
3372
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3377
3373
|
};
|
|
3378
|
-
const
|
|
3374
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3379
3375
|
const contents = map({});
|
|
3380
3376
|
const data = parsedOutput.body;
|
|
3381
3377
|
if (data.message != null) {
|
|
@@ -3393,7 +3389,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3393
3389
|
});
|
|
3394
3390
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3395
3391
|
};
|
|
3396
|
-
const
|
|
3392
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3397
3393
|
const contents = map({
|
|
3398
3394
|
retryAfterSeconds: [
|
|
3399
3395
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -3410,7 +3406,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3410
3406
|
});
|
|
3411
3407
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3412
3408
|
};
|
|
3413
|
-
const
|
|
3409
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3414
3410
|
const contents = map({});
|
|
3415
3411
|
const data = parsedOutput.body;
|
|
3416
3412
|
if (data.message != null) {
|
|
@@ -3428,7 +3424,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3428
3424
|
});
|
|
3429
3425
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3430
3426
|
};
|
|
3431
|
-
const
|
|
3427
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3432
3428
|
const contents = map({});
|
|
3433
3429
|
const data = parsedOutput.body;
|
|
3434
3430
|
if (data.message != null) {
|
|
@@ -3452,7 +3448,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3452
3448
|
});
|
|
3453
3449
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3454
3450
|
};
|
|
3455
|
-
const
|
|
3451
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3456
3452
|
const contents = map({
|
|
3457
3453
|
retryAfterSeconds: [
|
|
3458
3454
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -3475,7 +3471,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3475
3471
|
});
|
|
3476
3472
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3477
3473
|
};
|
|
3478
|
-
const
|
|
3474
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3479
3475
|
const contents = map({});
|
|
3480
3476
|
const data = parsedOutput.body;
|
|
3481
3477
|
if (data.message != null) {
|
|
@@ -3490,11 +3486,11 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
3490
3486
|
});
|
|
3491
3487
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3492
3488
|
};
|
|
3493
|
-
const
|
|
3489
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3494
3490
|
const contents = map({});
|
|
3495
3491
|
const data = parsedOutput.body;
|
|
3496
3492
|
if (data.fieldList != null) {
|
|
3497
|
-
contents.fieldList =
|
|
3493
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
3498
3494
|
}
|
|
3499
3495
|
if (data.message != null) {
|
|
3500
3496
|
contents.message = __expectString(data.message);
|
|
@@ -3508,21 +3504,21 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3508
3504
|
});
|
|
3509
3505
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3510
3506
|
};
|
|
3511
|
-
const
|
|
3507
|
+
const se_CertificateList = (input, context) => {
|
|
3512
3508
|
return input
|
|
3513
3509
|
.filter((e) => e != null)
|
|
3514
3510
|
.map((entry) => {
|
|
3515
3511
|
return context.base64Encoder(entry);
|
|
3516
3512
|
});
|
|
3517
3513
|
};
|
|
3518
|
-
const
|
|
3514
|
+
const se_CertificateThumbprintList = (input, context) => {
|
|
3519
3515
|
return input
|
|
3520
3516
|
.filter((e) => e != null)
|
|
3521
3517
|
.map((entry) => {
|
|
3522
3518
|
return entry;
|
|
3523
3519
|
});
|
|
3524
3520
|
};
|
|
3525
|
-
const
|
|
3521
|
+
const se_EncryptionContextMap = (input, context) => {
|
|
3526
3522
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3527
3523
|
if (value === null) {
|
|
3528
3524
|
return acc;
|
|
@@ -3531,7 +3527,7 @@ const serializeAws_restJson1EncryptionContextMap = (input, context) => {
|
|
|
3531
3527
|
return acc;
|
|
3532
3528
|
}, {});
|
|
3533
3529
|
};
|
|
3534
|
-
const
|
|
3530
|
+
const se_IdentityProviderDetails = (input, context) => {
|
|
3535
3531
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3536
3532
|
if (value === null) {
|
|
3537
3533
|
return acc;
|
|
@@ -3540,34 +3536,34 @@ const serializeAws_restJson1IdentityProviderDetails = (input, context) => {
|
|
|
3540
3536
|
return acc;
|
|
3541
3537
|
}, {});
|
|
3542
3538
|
};
|
|
3543
|
-
const
|
|
3539
|
+
const se_SecurityGroupIdList = (input, context) => {
|
|
3544
3540
|
return input
|
|
3545
3541
|
.filter((e) => e != null)
|
|
3546
3542
|
.map((entry) => {
|
|
3547
3543
|
return entry;
|
|
3548
3544
|
});
|
|
3549
3545
|
};
|
|
3550
|
-
const
|
|
3546
|
+
const se_SubnetIdList = (input, context) => {
|
|
3551
3547
|
return input
|
|
3552
3548
|
.filter((e) => e != null)
|
|
3553
3549
|
.map((entry) => {
|
|
3554
3550
|
return entry;
|
|
3555
3551
|
});
|
|
3556
3552
|
};
|
|
3557
|
-
const
|
|
3553
|
+
const se_Tag = (input, context) => {
|
|
3558
3554
|
return {
|
|
3559
3555
|
...(input.Key != null && { Key: input.Key }),
|
|
3560
3556
|
...(input.Value != null && { Value: input.Value }),
|
|
3561
3557
|
};
|
|
3562
3558
|
};
|
|
3563
|
-
const
|
|
3559
|
+
const se_TagList = (input, context) => {
|
|
3564
3560
|
return input
|
|
3565
3561
|
.filter((e) => e != null)
|
|
3566
3562
|
.map((entry) => {
|
|
3567
|
-
return
|
|
3563
|
+
return se_Tag(entry, context);
|
|
3568
3564
|
});
|
|
3569
3565
|
};
|
|
3570
|
-
const
|
|
3566
|
+
const de_ArnList = (output, context) => {
|
|
3571
3567
|
const retVal = (output || [])
|
|
3572
3568
|
.filter((e) => e != null)
|
|
3573
3569
|
.map((entry) => {
|
|
@@ -3578,32 +3574,30 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
3578
3574
|
});
|
|
3579
3575
|
return retVal;
|
|
3580
3576
|
};
|
|
3581
|
-
const
|
|
3577
|
+
const de_BrowserSettings = (output, context) => {
|
|
3582
3578
|
return {
|
|
3583
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3584
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3585
|
-
: undefined,
|
|
3579
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3586
3580
|
browserPolicy: __expectString(output.browserPolicy),
|
|
3587
3581
|
browserSettingsArn: __expectString(output.browserSettingsArn),
|
|
3588
3582
|
};
|
|
3589
3583
|
};
|
|
3590
|
-
const
|
|
3584
|
+
const de_BrowserSettingsList = (output, context) => {
|
|
3591
3585
|
const retVal = (output || [])
|
|
3592
3586
|
.filter((e) => e != null)
|
|
3593
3587
|
.map((entry) => {
|
|
3594
3588
|
if (entry === null) {
|
|
3595
3589
|
return null;
|
|
3596
3590
|
}
|
|
3597
|
-
return
|
|
3591
|
+
return de_BrowserSettingsSummary(entry, context);
|
|
3598
3592
|
});
|
|
3599
3593
|
return retVal;
|
|
3600
3594
|
};
|
|
3601
|
-
const
|
|
3595
|
+
const de_BrowserSettingsSummary = (output, context) => {
|
|
3602
3596
|
return {
|
|
3603
3597
|
browserSettingsArn: __expectString(output.browserSettingsArn),
|
|
3604
3598
|
};
|
|
3605
3599
|
};
|
|
3606
|
-
const
|
|
3600
|
+
const de_Certificate = (output, context) => {
|
|
3607
3601
|
return {
|
|
3608
3602
|
body: output.body != null ? context.base64Decoder(output.body) : undefined,
|
|
3609
3603
|
issuer: __expectString(output.issuer),
|
|
@@ -3617,7 +3611,7 @@ const deserializeAws_restJson1Certificate = (output, context) => {
|
|
|
3617
3611
|
thumbprint: __expectString(output.thumbprint),
|
|
3618
3612
|
};
|
|
3619
3613
|
};
|
|
3620
|
-
const
|
|
3614
|
+
const de_CertificateSummary = (output, context) => {
|
|
3621
3615
|
return {
|
|
3622
3616
|
issuer: __expectString(output.issuer),
|
|
3623
3617
|
notValidAfter: output.notValidAfter != null
|
|
@@ -3630,28 +3624,28 @@ const deserializeAws_restJson1CertificateSummary = (output, context) => {
|
|
|
3630
3624
|
thumbprint: __expectString(output.thumbprint),
|
|
3631
3625
|
};
|
|
3632
3626
|
};
|
|
3633
|
-
const
|
|
3627
|
+
const de_CertificateSummaryList = (output, context) => {
|
|
3634
3628
|
const retVal = (output || [])
|
|
3635
3629
|
.filter((e) => e != null)
|
|
3636
3630
|
.map((entry) => {
|
|
3637
3631
|
if (entry === null) {
|
|
3638
3632
|
return null;
|
|
3639
3633
|
}
|
|
3640
|
-
return
|
|
3634
|
+
return de_CertificateSummary(entry, context);
|
|
3641
3635
|
});
|
|
3642
3636
|
return retVal;
|
|
3643
3637
|
};
|
|
3644
|
-
const
|
|
3638
|
+
const de_IdentityProvider = (output, context) => {
|
|
3645
3639
|
return {
|
|
3646
3640
|
identityProviderArn: __expectString(output.identityProviderArn),
|
|
3647
3641
|
identityProviderDetails: output.identityProviderDetails != null
|
|
3648
|
-
?
|
|
3642
|
+
? de_IdentityProviderDetails(output.identityProviderDetails, context)
|
|
3649
3643
|
: undefined,
|
|
3650
3644
|
identityProviderName: __expectString(output.identityProviderName),
|
|
3651
3645
|
identityProviderType: __expectString(output.identityProviderType),
|
|
3652
3646
|
};
|
|
3653
3647
|
};
|
|
3654
|
-
const
|
|
3648
|
+
const de_IdentityProviderDetails = (output, context) => {
|
|
3655
3649
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3656
3650
|
if (value === null) {
|
|
3657
3651
|
return acc;
|
|
@@ -3660,55 +3654,51 @@ const deserializeAws_restJson1IdentityProviderDetails = (output, context) => {
|
|
|
3660
3654
|
return acc;
|
|
3661
3655
|
}, {});
|
|
3662
3656
|
};
|
|
3663
|
-
const
|
|
3657
|
+
const de_IdentityProviderList = (output, context) => {
|
|
3664
3658
|
const retVal = (output || [])
|
|
3665
3659
|
.filter((e) => e != null)
|
|
3666
3660
|
.map((entry) => {
|
|
3667
3661
|
if (entry === null) {
|
|
3668
3662
|
return null;
|
|
3669
3663
|
}
|
|
3670
|
-
return
|
|
3664
|
+
return de_IdentityProviderSummary(entry, context);
|
|
3671
3665
|
});
|
|
3672
3666
|
return retVal;
|
|
3673
3667
|
};
|
|
3674
|
-
const
|
|
3668
|
+
const de_IdentityProviderSummary = (output, context) => {
|
|
3675
3669
|
return {
|
|
3676
3670
|
identityProviderArn: __expectString(output.identityProviderArn),
|
|
3677
3671
|
identityProviderName: __expectString(output.identityProviderName),
|
|
3678
3672
|
identityProviderType: __expectString(output.identityProviderType),
|
|
3679
3673
|
};
|
|
3680
3674
|
};
|
|
3681
|
-
const
|
|
3675
|
+
const de_NetworkSettings = (output, context) => {
|
|
3682
3676
|
return {
|
|
3683
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3684
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3685
|
-
: undefined,
|
|
3677
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3686
3678
|
networkSettingsArn: __expectString(output.networkSettingsArn),
|
|
3687
|
-
securityGroupIds: output.securityGroupIds != null
|
|
3688
|
-
|
|
3689
|
-
: undefined,
|
|
3690
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3679
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3680
|
+
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3691
3681
|
vpcId: __expectString(output.vpcId),
|
|
3692
3682
|
};
|
|
3693
3683
|
};
|
|
3694
|
-
const
|
|
3684
|
+
const de_NetworkSettingsList = (output, context) => {
|
|
3695
3685
|
const retVal = (output || [])
|
|
3696
3686
|
.filter((e) => e != null)
|
|
3697
3687
|
.map((entry) => {
|
|
3698
3688
|
if (entry === null) {
|
|
3699
3689
|
return null;
|
|
3700
3690
|
}
|
|
3701
|
-
return
|
|
3691
|
+
return de_NetworkSettingsSummary(entry, context);
|
|
3702
3692
|
});
|
|
3703
3693
|
return retVal;
|
|
3704
3694
|
};
|
|
3705
|
-
const
|
|
3695
|
+
const de_NetworkSettingsSummary = (output, context) => {
|
|
3706
3696
|
return {
|
|
3707
3697
|
networkSettingsArn: __expectString(output.networkSettingsArn),
|
|
3708
3698
|
vpcId: __expectString(output.vpcId),
|
|
3709
3699
|
};
|
|
3710
3700
|
};
|
|
3711
|
-
const
|
|
3701
|
+
const de_Portal = (output, context) => {
|
|
3712
3702
|
return {
|
|
3713
3703
|
authenticationType: __expectString(output.authenticationType),
|
|
3714
3704
|
browserSettingsArn: __expectString(output.browserSettingsArn),
|
|
@@ -3728,18 +3718,18 @@ const deserializeAws_restJson1Portal = (output, context) => {
|
|
|
3728
3718
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3729
3719
|
};
|
|
3730
3720
|
};
|
|
3731
|
-
const
|
|
3721
|
+
const de_PortalList = (output, context) => {
|
|
3732
3722
|
const retVal = (output || [])
|
|
3733
3723
|
.filter((e) => e != null)
|
|
3734
3724
|
.map((entry) => {
|
|
3735
3725
|
if (entry === null) {
|
|
3736
3726
|
return null;
|
|
3737
3727
|
}
|
|
3738
|
-
return
|
|
3728
|
+
return de_PortalSummary(entry, context);
|
|
3739
3729
|
});
|
|
3740
3730
|
return retVal;
|
|
3741
3731
|
};
|
|
3742
|
-
const
|
|
3732
|
+
const de_PortalSummary = (output, context) => {
|
|
3743
3733
|
return {
|
|
3744
3734
|
authenticationType: __expectString(output.authenticationType),
|
|
3745
3735
|
browserSettingsArn: __expectString(output.browserSettingsArn),
|
|
@@ -3758,7 +3748,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
3758
3748
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3759
3749
|
};
|
|
3760
3750
|
};
|
|
3761
|
-
const
|
|
3751
|
+
const de_SecurityGroupIdList = (output, context) => {
|
|
3762
3752
|
const retVal = (output || [])
|
|
3763
3753
|
.filter((e) => e != null)
|
|
3764
3754
|
.map((entry) => {
|
|
@@ -3769,7 +3759,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
|
3769
3759
|
});
|
|
3770
3760
|
return retVal;
|
|
3771
3761
|
};
|
|
3772
|
-
const
|
|
3762
|
+
const de_SubnetIdList = (output, context) => {
|
|
3773
3763
|
const retVal = (output || [])
|
|
3774
3764
|
.filter((e) => e != null)
|
|
3775
3765
|
.map((entry) => {
|
|
@@ -3780,78 +3770,72 @@ const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
|
3780
3770
|
});
|
|
3781
3771
|
return retVal;
|
|
3782
3772
|
};
|
|
3783
|
-
const
|
|
3773
|
+
const de_Tag = (output, context) => {
|
|
3784
3774
|
return {
|
|
3785
3775
|
Key: __expectString(output.Key),
|
|
3786
3776
|
Value: __expectString(output.Value),
|
|
3787
3777
|
};
|
|
3788
3778
|
};
|
|
3789
|
-
const
|
|
3779
|
+
const de_TagList = (output, context) => {
|
|
3790
3780
|
const retVal = (output || [])
|
|
3791
3781
|
.filter((e) => e != null)
|
|
3792
3782
|
.map((entry) => {
|
|
3793
3783
|
if (entry === null) {
|
|
3794
3784
|
return null;
|
|
3795
3785
|
}
|
|
3796
|
-
return
|
|
3786
|
+
return de_Tag(entry, context);
|
|
3797
3787
|
});
|
|
3798
3788
|
return retVal;
|
|
3799
3789
|
};
|
|
3800
|
-
const
|
|
3790
|
+
const de_TrustStore = (output, context) => {
|
|
3801
3791
|
return {
|
|
3802
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3803
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3804
|
-
: undefined,
|
|
3792
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3805
3793
|
trustStoreArn: __expectString(output.trustStoreArn),
|
|
3806
3794
|
};
|
|
3807
3795
|
};
|
|
3808
|
-
const
|
|
3796
|
+
const de_TrustStoreSummary = (output, context) => {
|
|
3809
3797
|
return {
|
|
3810
3798
|
trustStoreArn: __expectString(output.trustStoreArn),
|
|
3811
3799
|
};
|
|
3812
3800
|
};
|
|
3813
|
-
const
|
|
3801
|
+
const de_TrustStoreSummaryList = (output, context) => {
|
|
3814
3802
|
const retVal = (output || [])
|
|
3815
3803
|
.filter((e) => e != null)
|
|
3816
3804
|
.map((entry) => {
|
|
3817
3805
|
if (entry === null) {
|
|
3818
3806
|
return null;
|
|
3819
3807
|
}
|
|
3820
|
-
return
|
|
3808
|
+
return de_TrustStoreSummary(entry, context);
|
|
3821
3809
|
});
|
|
3822
3810
|
return retVal;
|
|
3823
3811
|
};
|
|
3824
|
-
const
|
|
3812
|
+
const de_UserAccessLoggingSettings = (output, context) => {
|
|
3825
3813
|
return {
|
|
3826
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3827
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3828
|
-
: undefined,
|
|
3814
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3829
3815
|
kinesisStreamArn: __expectString(output.kinesisStreamArn),
|
|
3830
3816
|
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3831
3817
|
};
|
|
3832
3818
|
};
|
|
3833
|
-
const
|
|
3819
|
+
const de_UserAccessLoggingSettingsList = (output, context) => {
|
|
3834
3820
|
const retVal = (output || [])
|
|
3835
3821
|
.filter((e) => e != null)
|
|
3836
3822
|
.map((entry) => {
|
|
3837
3823
|
if (entry === null) {
|
|
3838
3824
|
return null;
|
|
3839
3825
|
}
|
|
3840
|
-
return
|
|
3826
|
+
return de_UserAccessLoggingSettingsSummary(entry, context);
|
|
3841
3827
|
});
|
|
3842
3828
|
return retVal;
|
|
3843
3829
|
};
|
|
3844
|
-
const
|
|
3830
|
+
const de_UserAccessLoggingSettingsSummary = (output, context) => {
|
|
3845
3831
|
return {
|
|
3846
3832
|
kinesisStreamArn: __expectString(output.kinesisStreamArn),
|
|
3847
3833
|
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3848
3834
|
};
|
|
3849
3835
|
};
|
|
3850
|
-
const
|
|
3836
|
+
const de_UserSettings = (output, context) => {
|
|
3851
3837
|
return {
|
|
3852
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3853
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3854
|
-
: undefined,
|
|
3838
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3855
3839
|
copyAllowed: __expectString(output.copyAllowed),
|
|
3856
3840
|
disconnectTimeoutInMinutes: __expectInt32(output.disconnectTimeoutInMinutes),
|
|
3857
3841
|
downloadAllowed: __expectString(output.downloadAllowed),
|
|
@@ -3862,18 +3846,18 @@ const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
|
3862
3846
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3863
3847
|
};
|
|
3864
3848
|
};
|
|
3865
|
-
const
|
|
3849
|
+
const de_UserSettingsList = (output, context) => {
|
|
3866
3850
|
const retVal = (output || [])
|
|
3867
3851
|
.filter((e) => e != null)
|
|
3868
3852
|
.map((entry) => {
|
|
3869
3853
|
if (entry === null) {
|
|
3870
3854
|
return null;
|
|
3871
3855
|
}
|
|
3872
|
-
return
|
|
3856
|
+
return de_UserSettingsSummary(entry, context);
|
|
3873
3857
|
});
|
|
3874
3858
|
return retVal;
|
|
3875
3859
|
};
|
|
3876
|
-
const
|
|
3860
|
+
const de_UserSettingsSummary = (output, context) => {
|
|
3877
3861
|
return {
|
|
3878
3862
|
copyAllowed: __expectString(output.copyAllowed),
|
|
3879
3863
|
disconnectTimeoutInMinutes: __expectInt32(output.disconnectTimeoutInMinutes),
|
|
@@ -3885,20 +3869,20 @@ const deserializeAws_restJson1UserSettingsSummary = (output, context) => {
|
|
|
3885
3869
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3886
3870
|
};
|
|
3887
3871
|
};
|
|
3888
|
-
const
|
|
3872
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3889
3873
|
return {
|
|
3890
3874
|
message: __expectString(output.message),
|
|
3891
3875
|
name: __expectString(output.name),
|
|
3892
3876
|
};
|
|
3893
3877
|
};
|
|
3894
|
-
const
|
|
3878
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3895
3879
|
const retVal = (output || [])
|
|
3896
3880
|
.filter((e) => e != null)
|
|
3897
3881
|
.map((entry) => {
|
|
3898
3882
|
if (entry === null) {
|
|
3899
3883
|
return null;
|
|
3900
3884
|
}
|
|
3901
|
-
return
|
|
3885
|
+
return de_ValidationExceptionField(entry, context);
|
|
3902
3886
|
});
|
|
3903
3887
|
return retVal;
|
|
3904
3888
|
};
|