@aws-sdk/client-rolesanywhere 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/CreateProfileCommand.js +2 -2
- package/dist-cjs/commands/CreateTrustAnchorCommand.js +2 -2
- package/dist-cjs/commands/DeleteCrlCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteTrustAnchorCommand.js +2 -2
- package/dist-cjs/commands/DisableCrlCommand.js +2 -2
- package/dist-cjs/commands/DisableProfileCommand.js +2 -2
- package/dist-cjs/commands/DisableTrustAnchorCommand.js +2 -2
- package/dist-cjs/commands/EnableCrlCommand.js +2 -2
- package/dist-cjs/commands/EnableProfileCommand.js +2 -2
- package/dist-cjs/commands/EnableTrustAnchorCommand.js +2 -2
- package/dist-cjs/commands/GetCrlCommand.js +2 -2
- package/dist-cjs/commands/GetProfileCommand.js +2 -2
- package/dist-cjs/commands/GetSubjectCommand.js +2 -2
- package/dist-cjs/commands/GetTrustAnchorCommand.js +2 -2
- package/dist-cjs/commands/ImportCrlCommand.js +2 -2
- package/dist-cjs/commands/ListCrlsCommand.js +2 -2
- package/dist-cjs/commands/ListProfilesCommand.js +2 -2
- package/dist-cjs/commands/ListSubjectsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTrustAnchorsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateCrlCommand.js +2 -2
- package/dist-cjs/commands/UpdateProfileCommand.js +2 -2
- package/dist-cjs/commands/UpdateTrustAnchorCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +299 -305
- package/dist-es/commands/CreateProfileCommand.js +3 -3
- package/dist-es/commands/CreateTrustAnchorCommand.js +3 -3
- package/dist-es/commands/DeleteCrlCommand.js +3 -3
- package/dist-es/commands/DeleteProfileCommand.js +3 -3
- package/dist-es/commands/DeleteTrustAnchorCommand.js +3 -3
- package/dist-es/commands/DisableCrlCommand.js +3 -3
- package/dist-es/commands/DisableProfileCommand.js +3 -3
- package/dist-es/commands/DisableTrustAnchorCommand.js +3 -3
- package/dist-es/commands/EnableCrlCommand.js +3 -3
- package/dist-es/commands/EnableProfileCommand.js +3 -3
- package/dist-es/commands/EnableTrustAnchorCommand.js +3 -3
- package/dist-es/commands/GetCrlCommand.js +3 -3
- package/dist-es/commands/GetProfileCommand.js +3 -3
- package/dist-es/commands/GetSubjectCommand.js +3 -3
- package/dist-es/commands/GetTrustAnchorCommand.js +3 -3
- package/dist-es/commands/ImportCrlCommand.js +3 -3
- package/dist-es/commands/ListCrlsCommand.js +3 -3
- package/dist-es/commands/ListProfilesCommand.js +3 -3
- package/dist-es/commands/ListSubjectsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTrustAnchorsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateCrlCommand.js +3 -3
- package/dist-es/commands/UpdateProfileCommand.js +3 -3
- package/dist-es/commands/UpdateTrustAnchorCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +245 -251
- package/dist-types/protocols/Aws_restJson1.d.ts +208 -52
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +52 -52
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ResourceNotFoundException, SourceData, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RolesAnywhereServiceException as __BaseException } from "../models/RolesAnywhereServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateProfileCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -13,13 +13,13 @@ export const serializeAws_restJson1CreateProfileCommand = async (input, context)
|
|
|
13
13
|
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
14
14
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
15
15
|
...(input.managedPolicyArns != null && {
|
|
16
|
-
managedPolicyArns:
|
|
16
|
+
managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
|
|
17
17
|
}),
|
|
18
18
|
...(input.name != null && { name: input.name }),
|
|
19
19
|
...(input.requireInstanceProperties != null && { requireInstanceProperties: input.requireInstanceProperties }),
|
|
20
|
-
...(input.roleArns != null && { roleArns:
|
|
20
|
+
...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
|
|
21
21
|
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
22
|
-
...(input.tags != null && { tags:
|
|
22
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
23
23
|
});
|
|
24
24
|
return new __HttpRequest({
|
|
25
25
|
protocol,
|
|
@@ -31,7 +31,7 @@ export const serializeAws_restJson1CreateProfileCommand = async (input, context)
|
|
|
31
31
|
body,
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
export const
|
|
34
|
+
export const se_CreateTrustAnchorCommand = async (input, context) => {
|
|
35
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/json",
|
|
@@ -41,8 +41,8 @@ export const serializeAws_restJson1CreateTrustAnchorCommand = async (input, cont
|
|
|
41
41
|
body = JSON.stringify({
|
|
42
42
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
43
43
|
...(input.name != null && { name: input.name }),
|
|
44
|
-
...(input.source != null && { source:
|
|
45
|
-
...(input.tags != null && { tags:
|
|
44
|
+
...(input.source != null && { source: se_Source(input.source, context) }),
|
|
45
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
46
46
|
});
|
|
47
47
|
return new __HttpRequest({
|
|
48
48
|
protocol,
|
|
@@ -54,7 +54,7 @@ export const serializeAws_restJson1CreateTrustAnchorCommand = async (input, cont
|
|
|
54
54
|
body,
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
export const
|
|
57
|
+
export const se_DeleteCrlCommand = async (input, context) => {
|
|
58
58
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
59
|
const headers = {};
|
|
60
60
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
@@ -70,7 +70,7 @@ export const serializeAws_restJson1DeleteCrlCommand = async (input, context) =>
|
|
|
70
70
|
body,
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
export const
|
|
73
|
+
export const se_DeleteProfileCommand = async (input, context) => {
|
|
74
74
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
75
|
const headers = {};
|
|
76
76
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
|
|
@@ -86,7 +86,7 @@ export const serializeAws_restJson1DeleteProfileCommand = async (input, context)
|
|
|
86
86
|
body,
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
export const
|
|
89
|
+
export const se_DeleteTrustAnchorCommand = async (input, context) => {
|
|
90
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
91
|
const headers = {};
|
|
92
92
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
@@ -102,7 +102,7 @@ export const serializeAws_restJson1DeleteTrustAnchorCommand = async (input, cont
|
|
|
102
102
|
body,
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_DisableCrlCommand = async (input, context) => {
|
|
106
106
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
107
|
const headers = {};
|
|
108
108
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/disable";
|
|
@@ -118,7 +118,7 @@ export const serializeAws_restJson1DisableCrlCommand = async (input, context) =>
|
|
|
118
118
|
body,
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
export const
|
|
121
|
+
export const se_DisableProfileCommand = async (input, context) => {
|
|
122
122
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
123
123
|
const headers = {};
|
|
124
124
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/disable";
|
|
@@ -134,7 +134,7 @@ export const serializeAws_restJson1DisableProfileCommand = async (input, context
|
|
|
134
134
|
body,
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
export const
|
|
137
|
+
export const se_DisableTrustAnchorCommand = async (input, context) => {
|
|
138
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
139
|
const headers = {};
|
|
140
140
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/disable";
|
|
@@ -150,7 +150,7 @@ export const serializeAws_restJson1DisableTrustAnchorCommand = async (input, con
|
|
|
150
150
|
body,
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
export const
|
|
153
|
+
export const se_EnableCrlCommand = async (input, context) => {
|
|
154
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
155
|
const headers = {};
|
|
156
156
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/enable";
|
|
@@ -166,7 +166,7 @@ export const serializeAws_restJson1EnableCrlCommand = async (input, context) =>
|
|
|
166
166
|
body,
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
-
export const
|
|
169
|
+
export const se_EnableProfileCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {};
|
|
172
172
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/enable";
|
|
@@ -182,7 +182,7 @@ export const serializeAws_restJson1EnableProfileCommand = async (input, context)
|
|
|
182
182
|
body,
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_EnableTrustAnchorCommand = async (input, context) => {
|
|
186
186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
187
|
const headers = {};
|
|
188
188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/enable";
|
|
@@ -198,7 +198,7 @@ export const serializeAws_restJson1EnableTrustAnchorCommand = async (input, cont
|
|
|
198
198
|
body,
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
|
-
export const
|
|
201
|
+
export const se_GetCrlCommand = async (input, context) => {
|
|
202
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
203
|
const headers = {};
|
|
204
204
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
@@ -214,7 +214,7 @@ export const serializeAws_restJson1GetCrlCommand = async (input, context) => {
|
|
|
214
214
|
body,
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
|
-
export const
|
|
217
|
+
export const se_GetProfileCommand = async (input, context) => {
|
|
218
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
219
|
const headers = {};
|
|
220
220
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
|
|
@@ -230,7 +230,7 @@ export const serializeAws_restJson1GetProfileCommand = async (input, context) =>
|
|
|
230
230
|
body,
|
|
231
231
|
});
|
|
232
232
|
};
|
|
233
|
-
export const
|
|
233
|
+
export const se_GetSubjectCommand = async (input, context) => {
|
|
234
234
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
235
|
const headers = {};
|
|
236
236
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subject/{subjectId}";
|
|
@@ -246,7 +246,7 @@ export const serializeAws_restJson1GetSubjectCommand = async (input, context) =>
|
|
|
246
246
|
body,
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
|
-
export const
|
|
249
|
+
export const se_GetTrustAnchorCommand = async (input, context) => {
|
|
250
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
251
|
const headers = {};
|
|
252
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
@@ -262,7 +262,7 @@ export const serializeAws_restJson1GetTrustAnchorCommand = async (input, context
|
|
|
262
262
|
body,
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
|
-
export const
|
|
265
|
+
export const se_ImportCrlCommand = async (input, context) => {
|
|
266
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
267
|
const headers = {
|
|
268
268
|
"content-type": "application/json",
|
|
@@ -273,7 +273,7 @@ export const serializeAws_restJson1ImportCrlCommand = async (input, context) =>
|
|
|
273
273
|
...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
|
|
274
274
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
275
275
|
...(input.name != null && { name: input.name }),
|
|
276
|
-
...(input.tags != null && { tags:
|
|
276
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
277
277
|
...(input.trustAnchorArn != null && { trustAnchorArn: input.trustAnchorArn }),
|
|
278
278
|
});
|
|
279
279
|
return new __HttpRequest({
|
|
@@ -286,7 +286,7 @@ export const serializeAws_restJson1ImportCrlCommand = async (input, context) =>
|
|
|
286
286
|
body,
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
export const
|
|
289
|
+
export const se_ListCrlsCommand = async (input, context) => {
|
|
290
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
291
|
const headers = {};
|
|
292
292
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
|
|
@@ -306,7 +306,7 @@ export const serializeAws_restJson1ListCrlsCommand = async (input, context) => {
|
|
|
306
306
|
body,
|
|
307
307
|
});
|
|
308
308
|
};
|
|
309
|
-
export const
|
|
309
|
+
export const se_ListProfilesCommand = async (input, context) => {
|
|
310
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
311
|
const headers = {};
|
|
312
312
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
@@ -326,7 +326,7 @@ export const serializeAws_restJson1ListProfilesCommand = async (input, context)
|
|
|
326
326
|
body,
|
|
327
327
|
});
|
|
328
328
|
};
|
|
329
|
-
export const
|
|
329
|
+
export const se_ListSubjectsCommand = async (input, context) => {
|
|
330
330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
331
331
|
const headers = {};
|
|
332
332
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects";
|
|
@@ -346,7 +346,7 @@ export const serializeAws_restJson1ListSubjectsCommand = async (input, context)
|
|
|
346
346
|
body,
|
|
347
347
|
});
|
|
348
348
|
};
|
|
349
|
-
export const
|
|
349
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
350
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
351
351
|
const headers = {};
|
|
352
352
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
|
|
@@ -365,7 +365,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
365
365
|
body,
|
|
366
366
|
});
|
|
367
367
|
};
|
|
368
|
-
export const
|
|
368
|
+
export const se_ListTrustAnchorsCommand = async (input, context) => {
|
|
369
369
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
370
370
|
const headers = {};
|
|
371
371
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
@@ -385,7 +385,7 @@ export const serializeAws_restJson1ListTrustAnchorsCommand = async (input, conte
|
|
|
385
385
|
body,
|
|
386
386
|
});
|
|
387
387
|
};
|
|
388
|
-
export const
|
|
388
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
389
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
390
|
const headers = {
|
|
391
391
|
"content-type": "application/json",
|
|
@@ -394,7 +394,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
394
394
|
let body;
|
|
395
395
|
body = JSON.stringify({
|
|
396
396
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
397
|
-
...(input.tags != null && { tags:
|
|
397
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
398
398
|
});
|
|
399
399
|
return new __HttpRequest({
|
|
400
400
|
protocol,
|
|
@@ -406,7 +406,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
406
406
|
body,
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
|
-
export const
|
|
409
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
410
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
411
|
const headers = {
|
|
412
412
|
"content-type": "application/json",
|
|
@@ -415,7 +415,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
415
415
|
let body;
|
|
416
416
|
body = JSON.stringify({
|
|
417
417
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
418
|
-
...(input.tagKeys != null && { tagKeys:
|
|
418
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
419
419
|
});
|
|
420
420
|
return new __HttpRequest({
|
|
421
421
|
protocol,
|
|
@@ -427,7 +427,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
427
427
|
body,
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
|
-
export const
|
|
430
|
+
export const se_UpdateCrlCommand = async (input, context) => {
|
|
431
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
432
|
const headers = {
|
|
433
433
|
"content-type": "application/json",
|
|
@@ -449,7 +449,7 @@ export const serializeAws_restJson1UpdateCrlCommand = async (input, context) =>
|
|
|
449
449
|
body,
|
|
450
450
|
});
|
|
451
451
|
};
|
|
452
|
-
export const
|
|
452
|
+
export const se_UpdateProfileCommand = async (input, context) => {
|
|
453
453
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
454
454
|
const headers = {
|
|
455
455
|
"content-type": "application/json",
|
|
@@ -460,10 +460,10 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
460
460
|
body = JSON.stringify({
|
|
461
461
|
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
462
462
|
...(input.managedPolicyArns != null && {
|
|
463
|
-
managedPolicyArns:
|
|
463
|
+
managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
|
|
464
464
|
}),
|
|
465
465
|
...(input.name != null && { name: input.name }),
|
|
466
|
-
...(input.roleArns != null && { roleArns:
|
|
466
|
+
...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
|
|
467
467
|
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
468
468
|
});
|
|
469
469
|
return new __HttpRequest({
|
|
@@ -476,7 +476,7 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
476
476
|
body,
|
|
477
477
|
});
|
|
478
478
|
};
|
|
479
|
-
export const
|
|
479
|
+
export const se_UpdateTrustAnchorCommand = async (input, context) => {
|
|
480
480
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
481
|
const headers = {
|
|
482
482
|
"content-type": "application/json",
|
|
@@ -486,7 +486,7 @@ export const serializeAws_restJson1UpdateTrustAnchorCommand = async (input, cont
|
|
|
486
486
|
let body;
|
|
487
487
|
body = JSON.stringify({
|
|
488
488
|
...(input.name != null && { name: input.name }),
|
|
489
|
-
...(input.source != null && { source:
|
|
489
|
+
...(input.source != null && { source: se_Source(input.source, context) }),
|
|
490
490
|
});
|
|
491
491
|
return new __HttpRequest({
|
|
492
492
|
protocol,
|
|
@@ -498,20 +498,20 @@ export const serializeAws_restJson1UpdateTrustAnchorCommand = async (input, cont
|
|
|
498
498
|
body,
|
|
499
499
|
});
|
|
500
500
|
};
|
|
501
|
-
export const
|
|
501
|
+
export const de_CreateProfileCommand = async (output, context) => {
|
|
502
502
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
503
|
-
return
|
|
503
|
+
return de_CreateProfileCommandError(output, context);
|
|
504
504
|
}
|
|
505
505
|
const contents = map({
|
|
506
506
|
$metadata: deserializeMetadata(output),
|
|
507
507
|
});
|
|
508
508
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
509
509
|
if (data.profile != null) {
|
|
510
|
-
contents.profile =
|
|
510
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
511
511
|
}
|
|
512
512
|
return contents;
|
|
513
513
|
};
|
|
514
|
-
const
|
|
514
|
+
const de_CreateProfileCommandError = async (output, context) => {
|
|
515
515
|
const parsedOutput = {
|
|
516
516
|
...output,
|
|
517
517
|
body: await parseErrorBody(output.body, context),
|
|
@@ -520,10 +520,10 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
520
520
|
switch (errorCode) {
|
|
521
521
|
case "AccessDeniedException":
|
|
522
522
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
523
|
-
throw await
|
|
523
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
524
524
|
case "ValidationException":
|
|
525
525
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
526
|
-
throw await
|
|
526
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
527
527
|
default:
|
|
528
528
|
const parsedBody = parsedOutput.body;
|
|
529
529
|
throwDefaultError({
|
|
@@ -534,20 +534,20 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
|
-
export const
|
|
537
|
+
export const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
538
538
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
539
|
-
return
|
|
539
|
+
return de_CreateTrustAnchorCommandError(output, context);
|
|
540
540
|
}
|
|
541
541
|
const contents = map({
|
|
542
542
|
$metadata: deserializeMetadata(output),
|
|
543
543
|
});
|
|
544
544
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
545
545
|
if (data.trustAnchor != null) {
|
|
546
|
-
contents.trustAnchor =
|
|
546
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
547
547
|
}
|
|
548
548
|
return contents;
|
|
549
549
|
};
|
|
550
|
-
const
|
|
550
|
+
const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
551
551
|
const parsedOutput = {
|
|
552
552
|
...output,
|
|
553
553
|
body: await parseErrorBody(output.body, context),
|
|
@@ -556,10 +556,10 @@ const deserializeAws_restJson1CreateTrustAnchorCommandError = async (output, con
|
|
|
556
556
|
switch (errorCode) {
|
|
557
557
|
case "AccessDeniedException":
|
|
558
558
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
559
|
-
throw await
|
|
559
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
560
|
case "ValidationException":
|
|
561
561
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
562
|
-
throw await
|
|
562
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
563
|
default:
|
|
564
564
|
const parsedBody = parsedOutput.body;
|
|
565
565
|
throwDefaultError({
|
|
@@ -570,20 +570,20 @@ const deserializeAws_restJson1CreateTrustAnchorCommandError = async (output, con
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
|
-
export const
|
|
573
|
+
export const de_DeleteCrlCommand = async (output, context) => {
|
|
574
574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return
|
|
575
|
+
return de_DeleteCrlCommandError(output, context);
|
|
576
576
|
}
|
|
577
577
|
const contents = map({
|
|
578
578
|
$metadata: deserializeMetadata(output),
|
|
579
579
|
});
|
|
580
580
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
581
581
|
if (data.crl != null) {
|
|
582
|
-
contents.crl =
|
|
582
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
583
583
|
}
|
|
584
584
|
return contents;
|
|
585
585
|
};
|
|
586
|
-
const
|
|
586
|
+
const de_DeleteCrlCommandError = async (output, context) => {
|
|
587
587
|
const parsedOutput = {
|
|
588
588
|
...output,
|
|
589
589
|
body: await parseErrorBody(output.body, context),
|
|
@@ -592,10 +592,10 @@ const deserializeAws_restJson1DeleteCrlCommandError = async (output, context) =>
|
|
|
592
592
|
switch (errorCode) {
|
|
593
593
|
case "AccessDeniedException":
|
|
594
594
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
596
596
|
case "ResourceNotFoundException":
|
|
597
597
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
598
|
-
throw await
|
|
598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
599
599
|
default:
|
|
600
600
|
const parsedBody = parsedOutput.body;
|
|
601
601
|
throwDefaultError({
|
|
@@ -606,20 +606,20 @@ const deserializeAws_restJson1DeleteCrlCommandError = async (output, context) =>
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
|
-
export const
|
|
609
|
+
export const de_DeleteProfileCommand = async (output, context) => {
|
|
610
610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return
|
|
611
|
+
return de_DeleteProfileCommandError(output, context);
|
|
612
612
|
}
|
|
613
613
|
const contents = map({
|
|
614
614
|
$metadata: deserializeMetadata(output),
|
|
615
615
|
});
|
|
616
616
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
617
617
|
if (data.profile != null) {
|
|
618
|
-
contents.profile =
|
|
618
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
619
619
|
}
|
|
620
620
|
return contents;
|
|
621
621
|
};
|
|
622
|
-
const
|
|
622
|
+
const de_DeleteProfileCommandError = async (output, context) => {
|
|
623
623
|
const parsedOutput = {
|
|
624
624
|
...output,
|
|
625
625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -628,10 +628,10 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
628
628
|
switch (errorCode) {
|
|
629
629
|
case "AccessDeniedException":
|
|
630
630
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
632
|
case "ResourceNotFoundException":
|
|
633
633
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
635
635
|
default:
|
|
636
636
|
const parsedBody = parsedOutput.body;
|
|
637
637
|
throwDefaultError({
|
|
@@ -642,20 +642,20 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
|
-
export const
|
|
645
|
+
export const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
646
646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
-
return
|
|
647
|
+
return de_DeleteTrustAnchorCommandError(output, context);
|
|
648
648
|
}
|
|
649
649
|
const contents = map({
|
|
650
650
|
$metadata: deserializeMetadata(output),
|
|
651
651
|
});
|
|
652
652
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
653
653
|
if (data.trustAnchor != null) {
|
|
654
|
-
contents.trustAnchor =
|
|
654
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
655
655
|
}
|
|
656
656
|
return contents;
|
|
657
657
|
};
|
|
658
|
-
const
|
|
658
|
+
const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
659
659
|
const parsedOutput = {
|
|
660
660
|
...output,
|
|
661
661
|
body: await parseErrorBody(output.body, context),
|
|
@@ -664,10 +664,10 @@ const deserializeAws_restJson1DeleteTrustAnchorCommandError = async (output, con
|
|
|
664
664
|
switch (errorCode) {
|
|
665
665
|
case "AccessDeniedException":
|
|
666
666
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
667
|
-
throw await
|
|
667
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
668
668
|
case "ResourceNotFoundException":
|
|
669
669
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
670
|
-
throw await
|
|
670
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
671
|
default:
|
|
672
672
|
const parsedBody = parsedOutput.body;
|
|
673
673
|
throwDefaultError({
|
|
@@ -678,20 +678,20 @@ const deserializeAws_restJson1DeleteTrustAnchorCommandError = async (output, con
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
|
-
export const
|
|
681
|
+
export const de_DisableCrlCommand = async (output, context) => {
|
|
682
682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
683
|
+
return de_DisableCrlCommandError(output, context);
|
|
684
684
|
}
|
|
685
685
|
const contents = map({
|
|
686
686
|
$metadata: deserializeMetadata(output),
|
|
687
687
|
});
|
|
688
688
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
689
689
|
if (data.crl != null) {
|
|
690
|
-
contents.crl =
|
|
690
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
691
691
|
}
|
|
692
692
|
return contents;
|
|
693
693
|
};
|
|
694
|
-
const
|
|
694
|
+
const de_DisableCrlCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
697
|
body: await parseErrorBody(output.body, context),
|
|
@@ -700,10 +700,10 @@ const deserializeAws_restJson1DisableCrlCommandError = async (output, context) =
|
|
|
700
700
|
switch (errorCode) {
|
|
701
701
|
case "AccessDeniedException":
|
|
702
702
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
703
|
-
throw await
|
|
703
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
704
704
|
case "ResourceNotFoundException":
|
|
705
705
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
706
|
-
throw await
|
|
706
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
707
707
|
default:
|
|
708
708
|
const parsedBody = parsedOutput.body;
|
|
709
709
|
throwDefaultError({
|
|
@@ -714,20 +714,20 @@ const deserializeAws_restJson1DisableCrlCommandError = async (output, context) =
|
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
export const
|
|
717
|
+
export const de_DisableProfileCommand = async (output, context) => {
|
|
718
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
-
return
|
|
719
|
+
return de_DisableProfileCommandError(output, context);
|
|
720
720
|
}
|
|
721
721
|
const contents = map({
|
|
722
722
|
$metadata: deserializeMetadata(output),
|
|
723
723
|
});
|
|
724
724
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
725
725
|
if (data.profile != null) {
|
|
726
|
-
contents.profile =
|
|
726
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
727
727
|
}
|
|
728
728
|
return contents;
|
|
729
729
|
};
|
|
730
|
-
const
|
|
730
|
+
const de_DisableProfileCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
733
|
body: await parseErrorBody(output.body, context),
|
|
@@ -736,10 +736,10 @@ const deserializeAws_restJson1DisableProfileCommandError = async (output, contex
|
|
|
736
736
|
switch (errorCode) {
|
|
737
737
|
case "AccessDeniedException":
|
|
738
738
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
739
|
-
throw await
|
|
739
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
740
740
|
case "ResourceNotFoundException":
|
|
741
741
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
742
|
-
throw await
|
|
742
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
743
|
default:
|
|
744
744
|
const parsedBody = parsedOutput.body;
|
|
745
745
|
throwDefaultError({
|
|
@@ -750,20 +750,20 @@ const deserializeAws_restJson1DisableProfileCommandError = async (output, contex
|
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
|
-
export const
|
|
753
|
+
export const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
754
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
755
|
+
return de_DisableTrustAnchorCommandError(output, context);
|
|
756
756
|
}
|
|
757
757
|
const contents = map({
|
|
758
758
|
$metadata: deserializeMetadata(output),
|
|
759
759
|
});
|
|
760
760
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
761
|
if (data.trustAnchor != null) {
|
|
762
|
-
contents.trustAnchor =
|
|
762
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
763
763
|
}
|
|
764
764
|
return contents;
|
|
765
765
|
};
|
|
766
|
-
const
|
|
766
|
+
const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
767
767
|
const parsedOutput = {
|
|
768
768
|
...output,
|
|
769
769
|
body: await parseErrorBody(output.body, context),
|
|
@@ -772,10 +772,10 @@ const deserializeAws_restJson1DisableTrustAnchorCommandError = async (output, co
|
|
|
772
772
|
switch (errorCode) {
|
|
773
773
|
case "AccessDeniedException":
|
|
774
774
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
775
|
-
throw await
|
|
775
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
776
|
case "ResourceNotFoundException":
|
|
777
777
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
778
|
-
throw await
|
|
778
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
779
|
default:
|
|
780
780
|
const parsedBody = parsedOutput.body;
|
|
781
781
|
throwDefaultError({
|
|
@@ -786,20 +786,20 @@ const deserializeAws_restJson1DisableTrustAnchorCommandError = async (output, co
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
|
-
export const
|
|
789
|
+
export const de_EnableCrlCommand = async (output, context) => {
|
|
790
790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return
|
|
791
|
+
return de_EnableCrlCommandError(output, context);
|
|
792
792
|
}
|
|
793
793
|
const contents = map({
|
|
794
794
|
$metadata: deserializeMetadata(output),
|
|
795
795
|
});
|
|
796
796
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
797
797
|
if (data.crl != null) {
|
|
798
|
-
contents.crl =
|
|
798
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
799
799
|
}
|
|
800
800
|
return contents;
|
|
801
801
|
};
|
|
802
|
-
const
|
|
802
|
+
const de_EnableCrlCommandError = async (output, context) => {
|
|
803
803
|
const parsedOutput = {
|
|
804
804
|
...output,
|
|
805
805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -808,10 +808,10 @@ const deserializeAws_restJson1EnableCrlCommandError = async (output, context) =>
|
|
|
808
808
|
switch (errorCode) {
|
|
809
809
|
case "AccessDeniedException":
|
|
810
810
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
811
|
-
throw await
|
|
811
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
812
|
case "ResourceNotFoundException":
|
|
813
813
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
814
|
-
throw await
|
|
814
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
815
815
|
default:
|
|
816
816
|
const parsedBody = parsedOutput.body;
|
|
817
817
|
throwDefaultError({
|
|
@@ -822,20 +822,20 @@ const deserializeAws_restJson1EnableCrlCommandError = async (output, context) =>
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
|
-
export const
|
|
825
|
+
export const de_EnableProfileCommand = async (output, context) => {
|
|
826
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
827
|
-
return
|
|
827
|
+
return de_EnableProfileCommandError(output, context);
|
|
828
828
|
}
|
|
829
829
|
const contents = map({
|
|
830
830
|
$metadata: deserializeMetadata(output),
|
|
831
831
|
});
|
|
832
832
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
833
833
|
if (data.profile != null) {
|
|
834
|
-
contents.profile =
|
|
834
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
835
835
|
}
|
|
836
836
|
return contents;
|
|
837
837
|
};
|
|
838
|
-
const
|
|
838
|
+
const de_EnableProfileCommandError = async (output, context) => {
|
|
839
839
|
const parsedOutput = {
|
|
840
840
|
...output,
|
|
841
841
|
body: await parseErrorBody(output.body, context),
|
|
@@ -844,10 +844,10 @@ const deserializeAws_restJson1EnableProfileCommandError = async (output, context
|
|
|
844
844
|
switch (errorCode) {
|
|
845
845
|
case "AccessDeniedException":
|
|
846
846
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
848
848
|
case "ResourceNotFoundException":
|
|
849
849
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
851
|
default:
|
|
852
852
|
const parsedBody = parsedOutput.body;
|
|
853
853
|
throwDefaultError({
|
|
@@ -858,20 +858,20 @@ const deserializeAws_restJson1EnableProfileCommandError = async (output, context
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
|
-
export const
|
|
861
|
+
export const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
862
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
-
return
|
|
863
|
+
return de_EnableTrustAnchorCommandError(output, context);
|
|
864
864
|
}
|
|
865
865
|
const contents = map({
|
|
866
866
|
$metadata: deserializeMetadata(output),
|
|
867
867
|
});
|
|
868
868
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
869
869
|
if (data.trustAnchor != null) {
|
|
870
|
-
contents.trustAnchor =
|
|
870
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
871
871
|
}
|
|
872
872
|
return contents;
|
|
873
873
|
};
|
|
874
|
-
const
|
|
874
|
+
const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
875
875
|
const parsedOutput = {
|
|
876
876
|
...output,
|
|
877
877
|
body: await parseErrorBody(output.body, context),
|
|
@@ -880,10 +880,10 @@ const deserializeAws_restJson1EnableTrustAnchorCommandError = async (output, con
|
|
|
880
880
|
switch (errorCode) {
|
|
881
881
|
case "AccessDeniedException":
|
|
882
882
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
883
|
-
throw await
|
|
883
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
884
884
|
case "ResourceNotFoundException":
|
|
885
885
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
886
|
-
throw await
|
|
886
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
887
|
default:
|
|
888
888
|
const parsedBody = parsedOutput.body;
|
|
889
889
|
throwDefaultError({
|
|
@@ -894,20 +894,20 @@ const deserializeAws_restJson1EnableTrustAnchorCommandError = async (output, con
|
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
|
-
export const
|
|
897
|
+
export const de_GetCrlCommand = async (output, context) => {
|
|
898
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
899
|
-
return
|
|
899
|
+
return de_GetCrlCommandError(output, context);
|
|
900
900
|
}
|
|
901
901
|
const contents = map({
|
|
902
902
|
$metadata: deserializeMetadata(output),
|
|
903
903
|
});
|
|
904
904
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
905
905
|
if (data.crl != null) {
|
|
906
|
-
contents.crl =
|
|
906
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
907
907
|
}
|
|
908
908
|
return contents;
|
|
909
909
|
};
|
|
910
|
-
const
|
|
910
|
+
const de_GetCrlCommandError = async (output, context) => {
|
|
911
911
|
const parsedOutput = {
|
|
912
912
|
...output,
|
|
913
913
|
body: await parseErrorBody(output.body, context),
|
|
@@ -916,7 +916,7 @@ const deserializeAws_restJson1GetCrlCommandError = async (output, context) => {
|
|
|
916
916
|
switch (errorCode) {
|
|
917
917
|
case "ResourceNotFoundException":
|
|
918
918
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
919
|
-
throw await
|
|
919
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
920
920
|
default:
|
|
921
921
|
const parsedBody = parsedOutput.body;
|
|
922
922
|
throwDefaultError({
|
|
@@ -927,20 +927,20 @@ const deserializeAws_restJson1GetCrlCommandError = async (output, context) => {
|
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
|
-
export const
|
|
930
|
+
export const de_GetProfileCommand = async (output, context) => {
|
|
931
931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
-
return
|
|
932
|
+
return de_GetProfileCommandError(output, context);
|
|
933
933
|
}
|
|
934
934
|
const contents = map({
|
|
935
935
|
$metadata: deserializeMetadata(output),
|
|
936
936
|
});
|
|
937
937
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
938
938
|
if (data.profile != null) {
|
|
939
|
-
contents.profile =
|
|
939
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
940
940
|
}
|
|
941
941
|
return contents;
|
|
942
942
|
};
|
|
943
|
-
const
|
|
943
|
+
const de_GetProfileCommandError = async (output, context) => {
|
|
944
944
|
const parsedOutput = {
|
|
945
945
|
...output,
|
|
946
946
|
body: await parseErrorBody(output.body, context),
|
|
@@ -949,10 +949,10 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
949
949
|
switch (errorCode) {
|
|
950
950
|
case "AccessDeniedException":
|
|
951
951
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
952
|
-
throw await
|
|
952
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
953
953
|
case "ResourceNotFoundException":
|
|
954
954
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
956
|
default:
|
|
957
957
|
const parsedBody = parsedOutput.body;
|
|
958
958
|
throwDefaultError({
|
|
@@ -963,20 +963,20 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
|
-
export const
|
|
966
|
+
export const de_GetSubjectCommand = async (output, context) => {
|
|
967
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
|
-
return
|
|
968
|
+
return de_GetSubjectCommandError(output, context);
|
|
969
969
|
}
|
|
970
970
|
const contents = map({
|
|
971
971
|
$metadata: deserializeMetadata(output),
|
|
972
972
|
});
|
|
973
973
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
974
974
|
if (data.subject != null) {
|
|
975
|
-
contents.subject =
|
|
975
|
+
contents.subject = de_SubjectDetail(data.subject, context);
|
|
976
976
|
}
|
|
977
977
|
return contents;
|
|
978
978
|
};
|
|
979
|
-
const
|
|
979
|
+
const de_GetSubjectCommandError = async (output, context) => {
|
|
980
980
|
const parsedOutput = {
|
|
981
981
|
...output,
|
|
982
982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -985,10 +985,10 @@ const deserializeAws_restJson1GetSubjectCommandError = async (output, context) =
|
|
|
985
985
|
switch (errorCode) {
|
|
986
986
|
case "AccessDeniedException":
|
|
987
987
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
989
989
|
case "ResourceNotFoundException":
|
|
990
990
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
991
|
-
throw await
|
|
991
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
992
992
|
default:
|
|
993
993
|
const parsedBody = parsedOutput.body;
|
|
994
994
|
throwDefaultError({
|
|
@@ -999,20 +999,20 @@ const deserializeAws_restJson1GetSubjectCommandError = async (output, context) =
|
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
export const
|
|
1002
|
+
export const de_GetTrustAnchorCommand = async (output, context) => {
|
|
1003
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1004
|
-
return
|
|
1004
|
+
return de_GetTrustAnchorCommandError(output, context);
|
|
1005
1005
|
}
|
|
1006
1006
|
const contents = map({
|
|
1007
1007
|
$metadata: deserializeMetadata(output),
|
|
1008
1008
|
});
|
|
1009
1009
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1010
1010
|
if (data.trustAnchor != null) {
|
|
1011
|
-
contents.trustAnchor =
|
|
1011
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
1012
1012
|
}
|
|
1013
1013
|
return contents;
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
1016
1016
|
const parsedOutput = {
|
|
1017
1017
|
...output,
|
|
1018
1018
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1021,13 +1021,13 @@ const deserializeAws_restJson1GetTrustAnchorCommandError = async (output, contex
|
|
|
1021
1021
|
switch (errorCode) {
|
|
1022
1022
|
case "AccessDeniedException":
|
|
1023
1023
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1024
|
-
throw await
|
|
1024
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1025
1025
|
case "ResourceNotFoundException":
|
|
1026
1026
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1027
|
-
throw await
|
|
1027
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1028
1028
|
case "ValidationException":
|
|
1029
1029
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1030
|
-
throw await
|
|
1030
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
1031
|
default:
|
|
1032
1032
|
const parsedBody = parsedOutput.body;
|
|
1033
1033
|
throwDefaultError({
|
|
@@ -1038,20 +1038,20 @@ const deserializeAws_restJson1GetTrustAnchorCommandError = async (output, contex
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
};
|
|
1041
|
-
export const
|
|
1041
|
+
export const de_ImportCrlCommand = async (output, context) => {
|
|
1042
1042
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
1043
|
+
return de_ImportCrlCommandError(output, context);
|
|
1044
1044
|
}
|
|
1045
1045
|
const contents = map({
|
|
1046
1046
|
$metadata: deserializeMetadata(output),
|
|
1047
1047
|
});
|
|
1048
1048
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1049
1049
|
if (data.crl != null) {
|
|
1050
|
-
contents.crl =
|
|
1050
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
1051
1051
|
}
|
|
1052
1052
|
return contents;
|
|
1053
1053
|
};
|
|
1054
|
-
const
|
|
1054
|
+
const de_ImportCrlCommandError = async (output, context) => {
|
|
1055
1055
|
const parsedOutput = {
|
|
1056
1056
|
...output,
|
|
1057
1057
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1060,10 +1060,10 @@ const deserializeAws_restJson1ImportCrlCommandError = async (output, context) =>
|
|
|
1060
1060
|
switch (errorCode) {
|
|
1061
1061
|
case "AccessDeniedException":
|
|
1062
1062
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1063
|
-
throw await
|
|
1063
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1064
1064
|
case "ValidationException":
|
|
1065
1065
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1066
|
-
throw await
|
|
1066
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
1067
|
default:
|
|
1068
1068
|
const parsedBody = parsedOutput.body;
|
|
1069
1069
|
throwDefaultError({
|
|
@@ -1074,23 +1074,23 @@ const deserializeAws_restJson1ImportCrlCommandError = async (output, context) =>
|
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
1077
|
-
export const
|
|
1077
|
+
export const de_ListCrlsCommand = async (output, context) => {
|
|
1078
1078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
1079
|
+
return de_ListCrlsCommandError(output, context);
|
|
1080
1080
|
}
|
|
1081
1081
|
const contents = map({
|
|
1082
1082
|
$metadata: deserializeMetadata(output),
|
|
1083
1083
|
});
|
|
1084
1084
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1085
1085
|
if (data.crls != null) {
|
|
1086
|
-
contents.crls =
|
|
1086
|
+
contents.crls = de_CrlDetails(data.crls, context);
|
|
1087
1087
|
}
|
|
1088
1088
|
if (data.nextToken != null) {
|
|
1089
1089
|
contents.nextToken = __expectString(data.nextToken);
|
|
1090
1090
|
}
|
|
1091
1091
|
return contents;
|
|
1092
1092
|
};
|
|
1093
|
-
const
|
|
1093
|
+
const de_ListCrlsCommandError = async (output, context) => {
|
|
1094
1094
|
const parsedOutput = {
|
|
1095
1095
|
...output,
|
|
1096
1096
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1099,10 +1099,10 @@ const deserializeAws_restJson1ListCrlsCommandError = async (output, context) =>
|
|
|
1099
1099
|
switch (errorCode) {
|
|
1100
1100
|
case "AccessDeniedException":
|
|
1101
1101
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1102
|
-
throw await
|
|
1102
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1103
1103
|
case "ValidationException":
|
|
1104
1104
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1105
|
-
throw await
|
|
1105
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
1106
|
default:
|
|
1107
1107
|
const parsedBody = parsedOutput.body;
|
|
1108
1108
|
throwDefaultError({
|
|
@@ -1113,9 +1113,9 @@ const deserializeAws_restJson1ListCrlsCommandError = async (output, context) =>
|
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
|
-
export const
|
|
1116
|
+
export const de_ListProfilesCommand = async (output, context) => {
|
|
1117
1117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
1118
|
+
return de_ListProfilesCommandError(output, context);
|
|
1119
1119
|
}
|
|
1120
1120
|
const contents = map({
|
|
1121
1121
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,11 +1125,11 @@ export const deserializeAws_restJson1ListProfilesCommand = async (output, contex
|
|
|
1125
1125
|
contents.nextToken = __expectString(data.nextToken);
|
|
1126
1126
|
}
|
|
1127
1127
|
if (data.profiles != null) {
|
|
1128
|
-
contents.profiles =
|
|
1128
|
+
contents.profiles = de_ProfileDetails(data.profiles, context);
|
|
1129
1129
|
}
|
|
1130
1130
|
return contents;
|
|
1131
1131
|
};
|
|
1132
|
-
const
|
|
1132
|
+
const de_ListProfilesCommandError = async (output, context) => {
|
|
1133
1133
|
const parsedOutput = {
|
|
1134
1134
|
...output,
|
|
1135
1135
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1138,10 +1138,10 @@ const deserializeAws_restJson1ListProfilesCommandError = async (output, context)
|
|
|
1138
1138
|
switch (errorCode) {
|
|
1139
1139
|
case "AccessDeniedException":
|
|
1140
1140
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1141
|
-
throw await
|
|
1141
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1142
1142
|
case "ValidationException":
|
|
1143
1143
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1144
|
-
throw await
|
|
1144
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1145
|
default:
|
|
1146
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
1147
|
throwDefaultError({
|
|
@@ -1152,9 +1152,9 @@ const deserializeAws_restJson1ListProfilesCommandError = async (output, context)
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
export const
|
|
1155
|
+
export const de_ListSubjectsCommand = async (output, context) => {
|
|
1156
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1157
|
+
return de_ListSubjectsCommandError(output, context);
|
|
1158
1158
|
}
|
|
1159
1159
|
const contents = map({
|
|
1160
1160
|
$metadata: deserializeMetadata(output),
|
|
@@ -1164,11 +1164,11 @@ export const deserializeAws_restJson1ListSubjectsCommand = async (output, contex
|
|
|
1164
1164
|
contents.nextToken = __expectString(data.nextToken);
|
|
1165
1165
|
}
|
|
1166
1166
|
if (data.subjects != null) {
|
|
1167
|
-
contents.subjects =
|
|
1167
|
+
contents.subjects = de_SubjectSummaries(data.subjects, context);
|
|
1168
1168
|
}
|
|
1169
1169
|
return contents;
|
|
1170
1170
|
};
|
|
1171
|
-
const
|
|
1171
|
+
const de_ListSubjectsCommandError = async (output, context) => {
|
|
1172
1172
|
const parsedOutput = {
|
|
1173
1173
|
...output,
|
|
1174
1174
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1177,10 +1177,10 @@ const deserializeAws_restJson1ListSubjectsCommandError = async (output, context)
|
|
|
1177
1177
|
switch (errorCode) {
|
|
1178
1178
|
case "AccessDeniedException":
|
|
1179
1179
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1180
|
-
throw await
|
|
1180
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1181
1181
|
case "ValidationException":
|
|
1182
1182
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1183
|
-
throw await
|
|
1183
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1184
1184
|
default:
|
|
1185
1185
|
const parsedBody = parsedOutput.body;
|
|
1186
1186
|
throwDefaultError({
|
|
@@ -1191,20 +1191,20 @@ const deserializeAws_restJson1ListSubjectsCommandError = async (output, context)
|
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
1194
|
-
export const
|
|
1194
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1195
1195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
1196
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1197
1197
|
}
|
|
1198
1198
|
const contents = map({
|
|
1199
1199
|
$metadata: deserializeMetadata(output),
|
|
1200
1200
|
});
|
|
1201
1201
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1202
1202
|
if (data.tags != null) {
|
|
1203
|
-
contents.tags =
|
|
1203
|
+
contents.tags = de_TagList(data.tags, context);
|
|
1204
1204
|
}
|
|
1205
1205
|
return contents;
|
|
1206
1206
|
};
|
|
1207
|
-
const
|
|
1207
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1208
1208
|
const parsedOutput = {
|
|
1209
1209
|
...output,
|
|
1210
1210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1213,13 +1213,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1213
1213
|
switch (errorCode) {
|
|
1214
1214
|
case "AccessDeniedException":
|
|
1215
1215
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1216
|
-
throw await
|
|
1216
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
1217
|
case "ResourceNotFoundException":
|
|
1218
1218
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1219
|
-
throw await
|
|
1219
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1220
1220
|
case "ValidationException":
|
|
1221
1221
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1222
|
-
throw await
|
|
1222
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
1223
|
default:
|
|
1224
1224
|
const parsedBody = parsedOutput.body;
|
|
1225
1225
|
throwDefaultError({
|
|
@@ -1230,9 +1230,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
1233
|
-
export const
|
|
1233
|
+
export const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
1234
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1235
|
-
return
|
|
1235
|
+
return de_ListTrustAnchorsCommandError(output, context);
|
|
1236
1236
|
}
|
|
1237
1237
|
const contents = map({
|
|
1238
1238
|
$metadata: deserializeMetadata(output),
|
|
@@ -1242,11 +1242,11 @@ export const deserializeAws_restJson1ListTrustAnchorsCommand = async (output, co
|
|
|
1242
1242
|
contents.nextToken = __expectString(data.nextToken);
|
|
1243
1243
|
}
|
|
1244
1244
|
if (data.trustAnchors != null) {
|
|
1245
|
-
contents.trustAnchors =
|
|
1245
|
+
contents.trustAnchors = de_TrustAnchorDetails(data.trustAnchors, context);
|
|
1246
1246
|
}
|
|
1247
1247
|
return contents;
|
|
1248
1248
|
};
|
|
1249
|
-
const
|
|
1249
|
+
const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
1250
1250
|
const parsedOutput = {
|
|
1251
1251
|
...output,
|
|
1252
1252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1255,10 +1255,10 @@ const deserializeAws_restJson1ListTrustAnchorsCommandError = async (output, cont
|
|
|
1255
1255
|
switch (errorCode) {
|
|
1256
1256
|
case "AccessDeniedException":
|
|
1257
1257
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1258
|
-
throw await
|
|
1258
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1259
1259
|
case "ValidationException":
|
|
1260
1260
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1261
|
-
throw await
|
|
1261
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
1262
|
default:
|
|
1263
1263
|
const parsedBody = parsedOutput.body;
|
|
1264
1264
|
throwDefaultError({
|
|
@@ -1269,9 +1269,9 @@ const deserializeAws_restJson1ListTrustAnchorsCommandError = async (output, cont
|
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
export const
|
|
1272
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1273
1273
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1274
|
-
return
|
|
1274
|
+
return de_TagResourceCommandError(output, context);
|
|
1275
1275
|
}
|
|
1276
1276
|
const contents = map({
|
|
1277
1277
|
$metadata: deserializeMetadata(output),
|
|
@@ -1279,7 +1279,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1279
1279
|
await collectBody(output.body, context);
|
|
1280
1280
|
return contents;
|
|
1281
1281
|
};
|
|
1282
|
-
const
|
|
1282
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1283
1283
|
const parsedOutput = {
|
|
1284
1284
|
...output,
|
|
1285
1285
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1288,16 +1288,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1288
1288
|
switch (errorCode) {
|
|
1289
1289
|
case "AccessDeniedException":
|
|
1290
1290
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1291
|
-
throw await
|
|
1291
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1292
1292
|
case "ResourceNotFoundException":
|
|
1293
1293
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1294
|
-
throw await
|
|
1294
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1295
1295
|
case "TooManyTagsException":
|
|
1296
1296
|
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
1297
|
-
throw await
|
|
1297
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1298
1298
|
case "ValidationException":
|
|
1299
1299
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1301
1301
|
default:
|
|
1302
1302
|
const parsedBody = parsedOutput.body;
|
|
1303
1303
|
throwDefaultError({
|
|
@@ -1308,9 +1308,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1308
1308
|
});
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
|
-
export const
|
|
1311
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1312
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
1313
|
+
return de_UntagResourceCommandError(output, context);
|
|
1314
1314
|
}
|
|
1315
1315
|
const contents = map({
|
|
1316
1316
|
$metadata: deserializeMetadata(output),
|
|
@@ -1318,7 +1318,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1318
1318
|
await collectBody(output.body, context);
|
|
1319
1319
|
return contents;
|
|
1320
1320
|
};
|
|
1321
|
-
const
|
|
1321
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1322
1322
|
const parsedOutput = {
|
|
1323
1323
|
...output,
|
|
1324
1324
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1327,13 +1327,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1327
1327
|
switch (errorCode) {
|
|
1328
1328
|
case "AccessDeniedException":
|
|
1329
1329
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1330
|
-
throw await
|
|
1330
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
1331
|
case "ResourceNotFoundException":
|
|
1332
1332
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1333
|
-
throw await
|
|
1333
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1334
1334
|
case "ValidationException":
|
|
1335
1335
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1336
|
-
throw await
|
|
1336
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1337
|
default:
|
|
1338
1338
|
const parsedBody = parsedOutput.body;
|
|
1339
1339
|
throwDefaultError({
|
|
@@ -1344,20 +1344,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1344
1344
|
});
|
|
1345
1345
|
}
|
|
1346
1346
|
};
|
|
1347
|
-
export const
|
|
1347
|
+
export const de_UpdateCrlCommand = async (output, context) => {
|
|
1348
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
-
return
|
|
1349
|
+
return de_UpdateCrlCommandError(output, context);
|
|
1350
1350
|
}
|
|
1351
1351
|
const contents = map({
|
|
1352
1352
|
$metadata: deserializeMetadata(output),
|
|
1353
1353
|
});
|
|
1354
1354
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1355
1355
|
if (data.crl != null) {
|
|
1356
|
-
contents.crl =
|
|
1356
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
1357
1357
|
}
|
|
1358
1358
|
return contents;
|
|
1359
1359
|
};
|
|
1360
|
-
const
|
|
1360
|
+
const de_UpdateCrlCommandError = async (output, context) => {
|
|
1361
1361
|
const parsedOutput = {
|
|
1362
1362
|
...output,
|
|
1363
1363
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1366,13 +1366,13 @@ const deserializeAws_restJson1UpdateCrlCommandError = async (output, context) =>
|
|
|
1366
1366
|
switch (errorCode) {
|
|
1367
1367
|
case "AccessDeniedException":
|
|
1368
1368
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1369
|
-
throw await
|
|
1369
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1370
1370
|
case "ResourceNotFoundException":
|
|
1371
1371
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1372
|
-
throw await
|
|
1372
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1373
1373
|
case "ValidationException":
|
|
1374
1374
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1375
|
-
throw await
|
|
1375
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
1376
|
default:
|
|
1377
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
1378
|
throwDefaultError({
|
|
@@ -1383,20 +1383,20 @@ const deserializeAws_restJson1UpdateCrlCommandError = async (output, context) =>
|
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
|
-
export const
|
|
1386
|
+
export const de_UpdateProfileCommand = async (output, context) => {
|
|
1387
1387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1388
|
+
return de_UpdateProfileCommandError(output, context);
|
|
1389
1389
|
}
|
|
1390
1390
|
const contents = map({
|
|
1391
1391
|
$metadata: deserializeMetadata(output),
|
|
1392
1392
|
});
|
|
1393
1393
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1394
1394
|
if (data.profile != null) {
|
|
1395
|
-
contents.profile =
|
|
1395
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
1396
1396
|
}
|
|
1397
1397
|
return contents;
|
|
1398
1398
|
};
|
|
1399
|
-
const
|
|
1399
|
+
const de_UpdateProfileCommandError = async (output, context) => {
|
|
1400
1400
|
const parsedOutput = {
|
|
1401
1401
|
...output,
|
|
1402
1402
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1405,13 +1405,13 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
1405
1405
|
switch (errorCode) {
|
|
1406
1406
|
case "AccessDeniedException":
|
|
1407
1407
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1408
|
-
throw await
|
|
1408
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1409
1409
|
case "ResourceNotFoundException":
|
|
1410
1410
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1411
|
-
throw await
|
|
1411
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1412
1412
|
case "ValidationException":
|
|
1413
1413
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1414
|
-
throw await
|
|
1414
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
1415
|
default:
|
|
1416
1416
|
const parsedBody = parsedOutput.body;
|
|
1417
1417
|
throwDefaultError({
|
|
@@ -1422,20 +1422,20 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
export const
|
|
1425
|
+
export const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
1426
1426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1427
|
+
return de_UpdateTrustAnchorCommandError(output, context);
|
|
1428
1428
|
}
|
|
1429
1429
|
const contents = map({
|
|
1430
1430
|
$metadata: deserializeMetadata(output),
|
|
1431
1431
|
});
|
|
1432
1432
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1433
1433
|
if (data.trustAnchor != null) {
|
|
1434
|
-
contents.trustAnchor =
|
|
1434
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
1435
1435
|
}
|
|
1436
1436
|
return contents;
|
|
1437
1437
|
};
|
|
1438
|
-
const
|
|
1438
|
+
const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
1439
1439
|
const parsedOutput = {
|
|
1440
1440
|
...output,
|
|
1441
1441
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1444,13 +1444,13 @@ const deserializeAws_restJson1UpdateTrustAnchorCommandError = async (output, con
|
|
|
1444
1444
|
switch (errorCode) {
|
|
1445
1445
|
case "AccessDeniedException":
|
|
1446
1446
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1447
|
-
throw await
|
|
1447
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1448
1448
|
case "ResourceNotFoundException":
|
|
1449
1449
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1450
|
-
throw await
|
|
1450
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1451
1451
|
case "ValidationException":
|
|
1452
1452
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1453
|
-
throw await
|
|
1453
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1454
1454
|
default:
|
|
1455
1455
|
const parsedBody = parsedOutput.body;
|
|
1456
1456
|
throwDefaultError({
|
|
@@ -1462,7 +1462,7 @@ const deserializeAws_restJson1UpdateTrustAnchorCommandError = async (output, con
|
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
const map = __map;
|
|
1465
|
-
const
|
|
1465
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1466
1466
|
const contents = map({});
|
|
1467
1467
|
const data = parsedOutput.body;
|
|
1468
1468
|
if (data.message != null) {
|
|
@@ -1474,7 +1474,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1474
1474
|
});
|
|
1475
1475
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1476
1476
|
};
|
|
1477
|
-
const
|
|
1477
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1478
1478
|
const contents = map({});
|
|
1479
1479
|
const data = parsedOutput.body;
|
|
1480
1480
|
if (data.message != null) {
|
|
@@ -1486,7 +1486,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1486
1486
|
});
|
|
1487
1487
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1488
1488
|
};
|
|
1489
|
-
const
|
|
1489
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1490
1490
|
const contents = map({});
|
|
1491
1491
|
const data = parsedOutput.body;
|
|
1492
1492
|
if (data.message != null) {
|
|
@@ -1498,7 +1498,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
1498
1498
|
});
|
|
1499
1499
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1500
1500
|
};
|
|
1501
|
-
const
|
|
1501
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1502
1502
|
const contents = map({});
|
|
1503
1503
|
const data = parsedOutput.body;
|
|
1504
1504
|
if (data.message != null) {
|
|
@@ -1510,65 +1510,65 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1510
1510
|
});
|
|
1511
1511
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1512
1512
|
};
|
|
1513
|
-
const
|
|
1513
|
+
const se_ManagedPolicyList = (input, context) => {
|
|
1514
1514
|
return input
|
|
1515
1515
|
.filter((e) => e != null)
|
|
1516
1516
|
.map((entry) => {
|
|
1517
1517
|
return entry;
|
|
1518
1518
|
});
|
|
1519
1519
|
};
|
|
1520
|
-
const
|
|
1520
|
+
const se_RoleArnList = (input, context) => {
|
|
1521
1521
|
return input
|
|
1522
1522
|
.filter((e) => e != null)
|
|
1523
1523
|
.map((entry) => {
|
|
1524
1524
|
return entry;
|
|
1525
1525
|
});
|
|
1526
1526
|
};
|
|
1527
|
-
const
|
|
1527
|
+
const se_Source = (input, context) => {
|
|
1528
1528
|
return {
|
|
1529
|
-
...(input.sourceData != null && { sourceData:
|
|
1529
|
+
...(input.sourceData != null && { sourceData: se_SourceData(input.sourceData, context) }),
|
|
1530
1530
|
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
1531
1531
|
};
|
|
1532
1532
|
};
|
|
1533
|
-
const
|
|
1533
|
+
const se_SourceData = (input, context) => {
|
|
1534
1534
|
return SourceData.visit(input, {
|
|
1535
1535
|
acmPcaArn: (value) => ({ acmPcaArn: value }),
|
|
1536
1536
|
x509CertificateData: (value) => ({ x509CertificateData: value }),
|
|
1537
1537
|
_: (name, value) => ({ name: value }),
|
|
1538
1538
|
});
|
|
1539
1539
|
};
|
|
1540
|
-
const
|
|
1540
|
+
const se_Tag = (input, context) => {
|
|
1541
1541
|
return {
|
|
1542
1542
|
...(input.key != null && { key: input.key }),
|
|
1543
1543
|
...(input.value != null && { value: input.value }),
|
|
1544
1544
|
};
|
|
1545
1545
|
};
|
|
1546
|
-
const
|
|
1546
|
+
const se_TagKeyList = (input, context) => {
|
|
1547
1547
|
return input
|
|
1548
1548
|
.filter((e) => e != null)
|
|
1549
1549
|
.map((entry) => {
|
|
1550
1550
|
return entry;
|
|
1551
1551
|
});
|
|
1552
1552
|
};
|
|
1553
|
-
const
|
|
1553
|
+
const se_TagList = (input, context) => {
|
|
1554
1554
|
return input
|
|
1555
1555
|
.filter((e) => e != null)
|
|
1556
1556
|
.map((entry) => {
|
|
1557
|
-
return
|
|
1557
|
+
return se_Tag(entry, context);
|
|
1558
1558
|
});
|
|
1559
1559
|
};
|
|
1560
|
-
const
|
|
1560
|
+
const de_CredentialSummaries = (output, context) => {
|
|
1561
1561
|
const retVal = (output || [])
|
|
1562
1562
|
.filter((e) => e != null)
|
|
1563
1563
|
.map((entry) => {
|
|
1564
1564
|
if (entry === null) {
|
|
1565
1565
|
return null;
|
|
1566
1566
|
}
|
|
1567
|
-
return
|
|
1567
|
+
return de_CredentialSummary(entry, context);
|
|
1568
1568
|
});
|
|
1569
1569
|
return retVal;
|
|
1570
1570
|
};
|
|
1571
|
-
const
|
|
1571
|
+
const de_CredentialSummary = (output, context) => {
|
|
1572
1572
|
return {
|
|
1573
1573
|
enabled: __expectBoolean(output.enabled),
|
|
1574
1574
|
failed: __expectBoolean(output.failed),
|
|
@@ -1578,7 +1578,7 @@ const deserializeAws_restJson1CredentialSummary = (output, context) => {
|
|
|
1578
1578
|
x509CertificateData: __expectString(output.x509CertificateData),
|
|
1579
1579
|
};
|
|
1580
1580
|
};
|
|
1581
|
-
const
|
|
1581
|
+
const de_CrlDetail = (output, context) => {
|
|
1582
1582
|
return {
|
|
1583
1583
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1584
1584
|
crlArn: __expectString(output.crlArn),
|
|
@@ -1590,36 +1590,36 @@ const deserializeAws_restJson1CrlDetail = (output, context) => {
|
|
|
1590
1590
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
1591
1591
|
};
|
|
1592
1592
|
};
|
|
1593
|
-
const
|
|
1593
|
+
const de_CrlDetails = (output, context) => {
|
|
1594
1594
|
const retVal = (output || [])
|
|
1595
1595
|
.filter((e) => e != null)
|
|
1596
1596
|
.map((entry) => {
|
|
1597
1597
|
if (entry === null) {
|
|
1598
1598
|
return null;
|
|
1599
1599
|
}
|
|
1600
|
-
return
|
|
1600
|
+
return de_CrlDetail(entry, context);
|
|
1601
1601
|
});
|
|
1602
1602
|
return retVal;
|
|
1603
1603
|
};
|
|
1604
|
-
const
|
|
1604
|
+
const de_InstanceProperties = (output, context) => {
|
|
1605
1605
|
const retVal = (output || [])
|
|
1606
1606
|
.filter((e) => e != null)
|
|
1607
1607
|
.map((entry) => {
|
|
1608
1608
|
if (entry === null) {
|
|
1609
1609
|
return null;
|
|
1610
1610
|
}
|
|
1611
|
-
return
|
|
1611
|
+
return de_InstanceProperty(entry, context);
|
|
1612
1612
|
});
|
|
1613
1613
|
return retVal;
|
|
1614
1614
|
};
|
|
1615
|
-
const
|
|
1615
|
+
const de_InstanceProperty = (output, context) => {
|
|
1616
1616
|
return {
|
|
1617
1617
|
failed: __expectBoolean(output.failed),
|
|
1618
|
-
properties: output.properties != null ?
|
|
1618
|
+
properties: output.properties != null ? de_InstancePropertyMap(output.properties, context) : undefined,
|
|
1619
1619
|
seenAt: output.seenAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.seenAt)) : undefined,
|
|
1620
1620
|
};
|
|
1621
1621
|
};
|
|
1622
|
-
const
|
|
1622
|
+
const de_InstancePropertyMap = (output, context) => {
|
|
1623
1623
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1624
1624
|
if (value === null) {
|
|
1625
1625
|
return acc;
|
|
@@ -1628,7 +1628,7 @@ const deserializeAws_restJson1InstancePropertyMap = (output, context) => {
|
|
|
1628
1628
|
return acc;
|
|
1629
1629
|
}, {});
|
|
1630
1630
|
};
|
|
1631
|
-
const
|
|
1631
|
+
const de_ManagedPolicyList = (output, context) => {
|
|
1632
1632
|
const retVal = (output || [])
|
|
1633
1633
|
.filter((e) => e != null)
|
|
1634
1634
|
.map((entry) => {
|
|
@@ -1639,36 +1639,34 @@ const deserializeAws_restJson1ManagedPolicyList = (output, context) => {
|
|
|
1639
1639
|
});
|
|
1640
1640
|
return retVal;
|
|
1641
1641
|
};
|
|
1642
|
-
const
|
|
1642
|
+
const de_ProfileDetail = (output, context) => {
|
|
1643
1643
|
return {
|
|
1644
1644
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1645
1645
|
createdBy: __expectString(output.createdBy),
|
|
1646
1646
|
durationSeconds: __expectInt32(output.durationSeconds),
|
|
1647
1647
|
enabled: __expectBoolean(output.enabled),
|
|
1648
|
-
managedPolicyArns: output.managedPolicyArns != null
|
|
1649
|
-
? deserializeAws_restJson1ManagedPolicyList(output.managedPolicyArns, context)
|
|
1650
|
-
: undefined,
|
|
1648
|
+
managedPolicyArns: output.managedPolicyArns != null ? de_ManagedPolicyList(output.managedPolicyArns, context) : undefined,
|
|
1651
1649
|
name: __expectString(output.name),
|
|
1652
1650
|
profileArn: __expectString(output.profileArn),
|
|
1653
1651
|
profileId: __expectString(output.profileId),
|
|
1654
1652
|
requireInstanceProperties: __expectBoolean(output.requireInstanceProperties),
|
|
1655
|
-
roleArns: output.roleArns != null ?
|
|
1653
|
+
roleArns: output.roleArns != null ? de_RoleArnList(output.roleArns, context) : undefined,
|
|
1656
1654
|
sessionPolicy: __expectString(output.sessionPolicy),
|
|
1657
1655
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
1658
1656
|
};
|
|
1659
1657
|
};
|
|
1660
|
-
const
|
|
1658
|
+
const de_ProfileDetails = (output, context) => {
|
|
1661
1659
|
const retVal = (output || [])
|
|
1662
1660
|
.filter((e) => e != null)
|
|
1663
1661
|
.map((entry) => {
|
|
1664
1662
|
if (entry === null) {
|
|
1665
1663
|
return null;
|
|
1666
1664
|
}
|
|
1667
|
-
return
|
|
1665
|
+
return de_ProfileDetail(entry, context);
|
|
1668
1666
|
});
|
|
1669
1667
|
return retVal;
|
|
1670
1668
|
};
|
|
1671
|
-
const
|
|
1669
|
+
const de_RoleArnList = (output, context) => {
|
|
1672
1670
|
const retVal = (output || [])
|
|
1673
1671
|
.filter((e) => e != null)
|
|
1674
1672
|
.map((entry) => {
|
|
@@ -1679,15 +1677,13 @@ const deserializeAws_restJson1RoleArnList = (output, context) => {
|
|
|
1679
1677
|
});
|
|
1680
1678
|
return retVal;
|
|
1681
1679
|
};
|
|
1682
|
-
const
|
|
1680
|
+
const de_Source = (output, context) => {
|
|
1683
1681
|
return {
|
|
1684
|
-
sourceData: output.sourceData != null
|
|
1685
|
-
? deserializeAws_restJson1SourceData(__expectUnion(output.sourceData), context)
|
|
1686
|
-
: undefined,
|
|
1682
|
+
sourceData: output.sourceData != null ? de_SourceData(__expectUnion(output.sourceData), context) : undefined,
|
|
1687
1683
|
sourceType: __expectString(output.sourceType),
|
|
1688
1684
|
};
|
|
1689
1685
|
};
|
|
1690
|
-
const
|
|
1686
|
+
const de_SourceData = (output, context) => {
|
|
1691
1687
|
if (__expectString(output.acmPcaArn) !== undefined) {
|
|
1692
1688
|
return { acmPcaArn: __expectString(output.acmPcaArn) };
|
|
1693
1689
|
}
|
|
@@ -1696,14 +1692,12 @@ const deserializeAws_restJson1SourceData = (output, context) => {
|
|
|
1696
1692
|
}
|
|
1697
1693
|
return { $unknown: Object.entries(output)[0] };
|
|
1698
1694
|
};
|
|
1699
|
-
const
|
|
1695
|
+
const de_SubjectDetail = (output, context) => {
|
|
1700
1696
|
return {
|
|
1701
1697
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1702
|
-
credentials: output.credentials != null ?
|
|
1698
|
+
credentials: output.credentials != null ? de_CredentialSummaries(output.credentials, context) : undefined,
|
|
1703
1699
|
enabled: __expectBoolean(output.enabled),
|
|
1704
|
-
instanceProperties: output.instanceProperties != null
|
|
1705
|
-
? deserializeAws_restJson1InstanceProperties(output.instanceProperties, context)
|
|
1706
|
-
: undefined,
|
|
1700
|
+
instanceProperties: output.instanceProperties != null ? de_InstanceProperties(output.instanceProperties, context) : undefined,
|
|
1707
1701
|
lastSeenAt: output.lastSeenAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.lastSeenAt)) : undefined,
|
|
1708
1702
|
subjectArn: __expectString(output.subjectArn),
|
|
1709
1703
|
subjectId: __expectString(output.subjectId),
|
|
@@ -1711,18 +1705,18 @@ const deserializeAws_restJson1SubjectDetail = (output, context) => {
|
|
|
1711
1705
|
x509Subject: __expectString(output.x509Subject),
|
|
1712
1706
|
};
|
|
1713
1707
|
};
|
|
1714
|
-
const
|
|
1708
|
+
const de_SubjectSummaries = (output, context) => {
|
|
1715
1709
|
const retVal = (output || [])
|
|
1716
1710
|
.filter((e) => e != null)
|
|
1717
1711
|
.map((entry) => {
|
|
1718
1712
|
if (entry === null) {
|
|
1719
1713
|
return null;
|
|
1720
1714
|
}
|
|
1721
|
-
return
|
|
1715
|
+
return de_SubjectSummary(entry, context);
|
|
1722
1716
|
});
|
|
1723
1717
|
return retVal;
|
|
1724
1718
|
};
|
|
1725
|
-
const
|
|
1719
|
+
const de_SubjectSummary = (output, context) => {
|
|
1726
1720
|
return {
|
|
1727
1721
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1728
1722
|
enabled: __expectBoolean(output.enabled),
|
|
@@ -1733,42 +1727,42 @@ const deserializeAws_restJson1SubjectSummary = (output, context) => {
|
|
|
1733
1727
|
x509Subject: __expectString(output.x509Subject),
|
|
1734
1728
|
};
|
|
1735
1729
|
};
|
|
1736
|
-
const
|
|
1730
|
+
const de_Tag = (output, context) => {
|
|
1737
1731
|
return {
|
|
1738
1732
|
key: __expectString(output.key),
|
|
1739
1733
|
value: __expectString(output.value),
|
|
1740
1734
|
};
|
|
1741
1735
|
};
|
|
1742
|
-
const
|
|
1736
|
+
const de_TagList = (output, context) => {
|
|
1743
1737
|
const retVal = (output || [])
|
|
1744
1738
|
.filter((e) => e != null)
|
|
1745
1739
|
.map((entry) => {
|
|
1746
1740
|
if (entry === null) {
|
|
1747
1741
|
return null;
|
|
1748
1742
|
}
|
|
1749
|
-
return
|
|
1743
|
+
return de_Tag(entry, context);
|
|
1750
1744
|
});
|
|
1751
1745
|
return retVal;
|
|
1752
1746
|
};
|
|
1753
|
-
const
|
|
1747
|
+
const de_TrustAnchorDetail = (output, context) => {
|
|
1754
1748
|
return {
|
|
1755
1749
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1756
1750
|
enabled: __expectBoolean(output.enabled),
|
|
1757
1751
|
name: __expectString(output.name),
|
|
1758
|
-
source: output.source != null ?
|
|
1752
|
+
source: output.source != null ? de_Source(output.source, context) : undefined,
|
|
1759
1753
|
trustAnchorArn: __expectString(output.trustAnchorArn),
|
|
1760
1754
|
trustAnchorId: __expectString(output.trustAnchorId),
|
|
1761
1755
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
1762
1756
|
};
|
|
1763
1757
|
};
|
|
1764
|
-
const
|
|
1758
|
+
const de_TrustAnchorDetails = (output, context) => {
|
|
1765
1759
|
const retVal = (output || [])
|
|
1766
1760
|
.filter((e) => e != null)
|
|
1767
1761
|
.map((entry) => {
|
|
1768
1762
|
if (entry === null) {
|
|
1769
1763
|
return null;
|
|
1770
1764
|
}
|
|
1771
|
-
return
|
|
1765
|
+
return de_TrustAnchorDetail(entry, context);
|
|
1772
1766
|
});
|
|
1773
1767
|
return retVal;
|
|
1774
1768
|
};
|