@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_UpdateCrlCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTrustAnchorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubjectsCommand = exports.de_ListProfilesCommand = exports.de_ListCrlsCommand = exports.de_ImportCrlCommand = exports.de_GetTrustAnchorCommand = exports.de_GetSubjectCommand = exports.de_GetProfileCommand = exports.de_GetCrlCommand = exports.de_EnableTrustAnchorCommand = exports.de_EnableProfileCommand = exports.de_EnableCrlCommand = exports.de_DisableTrustAnchorCommand = exports.de_DisableProfileCommand = exports.de_DisableCrlCommand = exports.de_DeleteTrustAnchorCommand = exports.de_DeleteProfileCommand = exports.de_DeleteCrlCommand = exports.de_CreateTrustAnchorCommand = exports.de_CreateProfileCommand = exports.se_UpdateTrustAnchorCommand = exports.se_UpdateProfileCommand = exports.se_UpdateCrlCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTrustAnchorsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubjectsCommand = exports.se_ListProfilesCommand = exports.se_ListCrlsCommand = exports.se_ImportCrlCommand = exports.se_GetTrustAnchorCommand = exports.se_GetSubjectCommand = exports.se_GetProfileCommand = exports.se_GetCrlCommand = exports.se_EnableTrustAnchorCommand = exports.se_EnableProfileCommand = exports.se_EnableCrlCommand = exports.se_DisableTrustAnchorCommand = exports.se_DisableProfileCommand = exports.se_DisableCrlCommand = exports.se_DeleteTrustAnchorCommand = exports.se_DeleteProfileCommand = exports.se_DeleteCrlCommand = exports.se_CreateTrustAnchorCommand = exports.se_CreateProfileCommand = void 0;
|
|
4
|
+
exports.de_UpdateTrustAnchorCommand = exports.de_UpdateProfileCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const RolesAnywhereServiceException_1 = require("../models/RolesAnywhereServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateProfileCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -17,13 +17,13 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
17
17
|
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
18
18
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
19
19
|
...(input.managedPolicyArns != null && {
|
|
20
|
-
managedPolicyArns:
|
|
20
|
+
managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
|
|
21
21
|
}),
|
|
22
22
|
...(input.name != null && { name: input.name }),
|
|
23
23
|
...(input.requireInstanceProperties != null && { requireInstanceProperties: input.requireInstanceProperties }),
|
|
24
|
-
...(input.roleArns != null && { roleArns:
|
|
24
|
+
...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
|
|
25
25
|
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
26
|
-
...(input.tags != null && { tags:
|
|
26
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
27
27
|
});
|
|
28
28
|
return new protocol_http_1.HttpRequest({
|
|
29
29
|
protocol,
|
|
@@ -35,8 +35,8 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
35
35
|
body,
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
39
|
+
const se_CreateTrustAnchorCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
41
|
const headers = {
|
|
42
42
|
"content-type": "application/json",
|
|
@@ -46,8 +46,8 @@ const serializeAws_restJson1CreateTrustAnchorCommand = async (input, context) =>
|
|
|
46
46
|
body = JSON.stringify({
|
|
47
47
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
48
48
|
...(input.name != null && { name: input.name }),
|
|
49
|
-
...(input.source != null && { source:
|
|
50
|
-
...(input.tags != null && { tags:
|
|
49
|
+
...(input.source != null && { source: se_Source(input.source, context) }),
|
|
50
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
51
51
|
});
|
|
52
52
|
return new protocol_http_1.HttpRequest({
|
|
53
53
|
protocol,
|
|
@@ -59,8 +59,8 @@ const serializeAws_restJson1CreateTrustAnchorCommand = async (input, context) =>
|
|
|
59
59
|
body,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
exports.
|
|
63
|
-
const
|
|
62
|
+
exports.se_CreateTrustAnchorCommand = se_CreateTrustAnchorCommand;
|
|
63
|
+
const se_DeleteCrlCommand = async (input, context) => {
|
|
64
64
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
65
65
|
const headers = {};
|
|
66
66
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
@@ -76,8 +76,8 @@ const serializeAws_restJson1DeleteCrlCommand = async (input, context) => {
|
|
|
76
76
|
body,
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
|
-
exports.
|
|
80
|
-
const
|
|
79
|
+
exports.se_DeleteCrlCommand = se_DeleteCrlCommand;
|
|
80
|
+
const se_DeleteProfileCommand = async (input, context) => {
|
|
81
81
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
82
82
|
const headers = {};
|
|
83
83
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
|
|
@@ -93,8 +93,8 @@ const serializeAws_restJson1DeleteProfileCommand = async (input, context) => {
|
|
|
93
93
|
body,
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
exports.
|
|
97
|
-
const
|
|
96
|
+
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
97
|
+
const se_DeleteTrustAnchorCommand = async (input, context) => {
|
|
98
98
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
99
|
const headers = {};
|
|
100
100
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
@@ -110,8 +110,8 @@ const serializeAws_restJson1DeleteTrustAnchorCommand = async (input, context) =>
|
|
|
110
110
|
body,
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
exports.
|
|
114
|
-
const
|
|
113
|
+
exports.se_DeleteTrustAnchorCommand = se_DeleteTrustAnchorCommand;
|
|
114
|
+
const se_DisableCrlCommand = async (input, context) => {
|
|
115
115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
116
116
|
const headers = {};
|
|
117
117
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/disable";
|
|
@@ -127,8 +127,8 @@ const serializeAws_restJson1DisableCrlCommand = async (input, context) => {
|
|
|
127
127
|
body,
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
-
exports.
|
|
131
|
-
const
|
|
130
|
+
exports.se_DisableCrlCommand = se_DisableCrlCommand;
|
|
131
|
+
const se_DisableProfileCommand = async (input, context) => {
|
|
132
132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
133
|
const headers = {};
|
|
134
134
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/disable";
|
|
@@ -144,8 +144,8 @@ const serializeAws_restJson1DisableProfileCommand = async (input, context) => {
|
|
|
144
144
|
body,
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_DisableProfileCommand = se_DisableProfileCommand;
|
|
148
|
+
const se_DisableTrustAnchorCommand = async (input, context) => {
|
|
149
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
150
|
const headers = {};
|
|
151
151
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/disable";
|
|
@@ -161,8 +161,8 @@ const serializeAws_restJson1DisableTrustAnchorCommand = async (input, context) =
|
|
|
161
161
|
body,
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
|
-
exports.
|
|
165
|
-
const
|
|
164
|
+
exports.se_DisableTrustAnchorCommand = se_DisableTrustAnchorCommand;
|
|
165
|
+
const se_EnableCrlCommand = async (input, context) => {
|
|
166
166
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
167
|
const headers = {};
|
|
168
168
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/enable";
|
|
@@ -178,8 +178,8 @@ const serializeAws_restJson1EnableCrlCommand = async (input, context) => {
|
|
|
178
178
|
body,
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
exports.
|
|
182
|
-
const
|
|
181
|
+
exports.se_EnableCrlCommand = se_EnableCrlCommand;
|
|
182
|
+
const se_EnableProfileCommand = async (input, context) => {
|
|
183
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
184
184
|
const headers = {};
|
|
185
185
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/enable";
|
|
@@ -195,8 +195,8 @@ const serializeAws_restJson1EnableProfileCommand = async (input, context) => {
|
|
|
195
195
|
body,
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_EnableProfileCommand = se_EnableProfileCommand;
|
|
199
|
+
const se_EnableTrustAnchorCommand = async (input, context) => {
|
|
200
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
201
|
const headers = {};
|
|
202
202
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/enable";
|
|
@@ -212,8 +212,8 @@ const serializeAws_restJson1EnableTrustAnchorCommand = async (input, context) =>
|
|
|
212
212
|
body,
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
-
exports.
|
|
216
|
-
const
|
|
215
|
+
exports.se_EnableTrustAnchorCommand = se_EnableTrustAnchorCommand;
|
|
216
|
+
const se_GetCrlCommand = async (input, context) => {
|
|
217
217
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
218
|
const headers = {};
|
|
219
219
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
@@ -229,8 +229,8 @@ const serializeAws_restJson1GetCrlCommand = async (input, context) => {
|
|
|
229
229
|
body,
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
exports.
|
|
233
|
-
const
|
|
232
|
+
exports.se_GetCrlCommand = se_GetCrlCommand;
|
|
233
|
+
const se_GetProfileCommand = 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 || ""}` + "/profile/{profileId}";
|
|
@@ -246,8 +246,8 @@ const serializeAws_restJson1GetProfileCommand = async (input, context) => {
|
|
|
246
246
|
body,
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
|
-
exports.
|
|
250
|
-
const
|
|
249
|
+
exports.se_GetProfileCommand = se_GetProfileCommand;
|
|
250
|
+
const se_GetSubjectCommand = async (input, context) => {
|
|
251
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
252
|
const headers = {};
|
|
253
253
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subject/{subjectId}";
|
|
@@ -263,8 +263,8 @@ const serializeAws_restJson1GetSubjectCommand = async (input, context) => {
|
|
|
263
263
|
body,
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
exports.
|
|
267
|
-
const
|
|
266
|
+
exports.se_GetSubjectCommand = se_GetSubjectCommand;
|
|
267
|
+
const se_GetTrustAnchorCommand = async (input, context) => {
|
|
268
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
269
|
const headers = {};
|
|
270
270
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
@@ -280,8 +280,8 @@ const serializeAws_restJson1GetTrustAnchorCommand = async (input, context) => {
|
|
|
280
280
|
body,
|
|
281
281
|
});
|
|
282
282
|
};
|
|
283
|
-
exports.
|
|
284
|
-
const
|
|
283
|
+
exports.se_GetTrustAnchorCommand = se_GetTrustAnchorCommand;
|
|
284
|
+
const se_ImportCrlCommand = async (input, context) => {
|
|
285
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
286
|
const headers = {
|
|
287
287
|
"content-type": "application/json",
|
|
@@ -292,7 +292,7 @@ const serializeAws_restJson1ImportCrlCommand = async (input, context) => {
|
|
|
292
292
|
...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
|
|
293
293
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
294
294
|
...(input.name != null && { name: input.name }),
|
|
295
|
-
...(input.tags != null && { tags:
|
|
295
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
296
296
|
...(input.trustAnchorArn != null && { trustAnchorArn: input.trustAnchorArn }),
|
|
297
297
|
});
|
|
298
298
|
return new protocol_http_1.HttpRequest({
|
|
@@ -305,8 +305,8 @@ const serializeAws_restJson1ImportCrlCommand = async (input, context) => {
|
|
|
305
305
|
body,
|
|
306
306
|
});
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_ImportCrlCommand = se_ImportCrlCommand;
|
|
309
|
+
const se_ListCrlsCommand = 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 || ""}` + "/crls";
|
|
@@ -326,8 +326,8 @@ const serializeAws_restJson1ListCrlsCommand = async (input, context) => {
|
|
|
326
326
|
body,
|
|
327
327
|
});
|
|
328
328
|
};
|
|
329
|
-
exports.
|
|
330
|
-
const
|
|
329
|
+
exports.se_ListCrlsCommand = se_ListCrlsCommand;
|
|
330
|
+
const se_ListProfilesCommand = async (input, context) => {
|
|
331
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
332
332
|
const headers = {};
|
|
333
333
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
@@ -347,8 +347,8 @@ const serializeAws_restJson1ListProfilesCommand = async (input, context) => {
|
|
|
347
347
|
body,
|
|
348
348
|
});
|
|
349
349
|
};
|
|
350
|
-
exports.
|
|
351
|
-
const
|
|
350
|
+
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
351
|
+
const se_ListSubjectsCommand = async (input, context) => {
|
|
352
352
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
353
|
const headers = {};
|
|
354
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects";
|
|
@@ -368,8 +368,8 @@ const serializeAws_restJson1ListSubjectsCommand = async (input, context) => {
|
|
|
368
368
|
body,
|
|
369
369
|
});
|
|
370
370
|
};
|
|
371
|
-
exports.
|
|
372
|
-
const
|
|
371
|
+
exports.se_ListSubjectsCommand = se_ListSubjectsCommand;
|
|
372
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
373
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
374
|
const headers = {};
|
|
375
375
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
|
|
@@ -388,8 +388,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
388
388
|
body,
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
exports.
|
|
392
|
-
const
|
|
391
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
392
|
+
const se_ListTrustAnchorsCommand = async (input, context) => {
|
|
393
393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
394
|
const headers = {};
|
|
395
395
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
@@ -409,8 +409,8 @@ const serializeAws_restJson1ListTrustAnchorsCommand = async (input, context) =>
|
|
|
409
409
|
body,
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
412
|
+
exports.se_ListTrustAnchorsCommand = se_ListTrustAnchorsCommand;
|
|
413
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
414
414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
415
|
const headers = {
|
|
416
416
|
"content-type": "application/json",
|
|
@@ -419,7 +419,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
419
419
|
let body;
|
|
420
420
|
body = JSON.stringify({
|
|
421
421
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
422
|
-
...(input.tags != null && { tags:
|
|
422
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
423
423
|
});
|
|
424
424
|
return new protocol_http_1.HttpRequest({
|
|
425
425
|
protocol,
|
|
@@ -431,8 +431,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
431
431
|
body,
|
|
432
432
|
});
|
|
433
433
|
};
|
|
434
|
-
exports.
|
|
435
|
-
const
|
|
434
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
435
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
436
436
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
437
437
|
const headers = {
|
|
438
438
|
"content-type": "application/json",
|
|
@@ -441,7 +441,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
441
441
|
let body;
|
|
442
442
|
body = JSON.stringify({
|
|
443
443
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
444
|
-
...(input.tagKeys != null && { tagKeys:
|
|
444
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
445
445
|
});
|
|
446
446
|
return new protocol_http_1.HttpRequest({
|
|
447
447
|
protocol,
|
|
@@ -453,8 +453,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
453
453
|
body,
|
|
454
454
|
});
|
|
455
455
|
};
|
|
456
|
-
exports.
|
|
457
|
-
const
|
|
456
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
457
|
+
const se_UpdateCrlCommand = async (input, context) => {
|
|
458
458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
459
|
const headers = {
|
|
460
460
|
"content-type": "application/json",
|
|
@@ -476,8 +476,8 @@ const serializeAws_restJson1UpdateCrlCommand = async (input, context) => {
|
|
|
476
476
|
body,
|
|
477
477
|
});
|
|
478
478
|
};
|
|
479
|
-
exports.
|
|
480
|
-
const
|
|
479
|
+
exports.se_UpdateCrlCommand = se_UpdateCrlCommand;
|
|
480
|
+
const se_UpdateProfileCommand = async (input, context) => {
|
|
481
481
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
482
482
|
const headers = {
|
|
483
483
|
"content-type": "application/json",
|
|
@@ -488,10 +488,10 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
488
488
|
body = JSON.stringify({
|
|
489
489
|
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
490
490
|
...(input.managedPolicyArns != null && {
|
|
491
|
-
managedPolicyArns:
|
|
491
|
+
managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
|
|
492
492
|
}),
|
|
493
493
|
...(input.name != null && { name: input.name }),
|
|
494
|
-
...(input.roleArns != null && { roleArns:
|
|
494
|
+
...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
|
|
495
495
|
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
496
496
|
});
|
|
497
497
|
return new protocol_http_1.HttpRequest({
|
|
@@ -504,8 +504,8 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
504
504
|
body,
|
|
505
505
|
});
|
|
506
506
|
};
|
|
507
|
-
exports.
|
|
508
|
-
const
|
|
507
|
+
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
508
|
+
const se_UpdateTrustAnchorCommand = async (input, context) => {
|
|
509
509
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
510
|
const headers = {
|
|
511
511
|
"content-type": "application/json",
|
|
@@ -515,7 +515,7 @@ const serializeAws_restJson1UpdateTrustAnchorCommand = async (input, context) =>
|
|
|
515
515
|
let body;
|
|
516
516
|
body = JSON.stringify({
|
|
517
517
|
...(input.name != null && { name: input.name }),
|
|
518
|
-
...(input.source != null && { source:
|
|
518
|
+
...(input.source != null && { source: se_Source(input.source, context) }),
|
|
519
519
|
});
|
|
520
520
|
return new protocol_http_1.HttpRequest({
|
|
521
521
|
protocol,
|
|
@@ -527,22 +527,22 @@ const serializeAws_restJson1UpdateTrustAnchorCommand = async (input, context) =>
|
|
|
527
527
|
body,
|
|
528
528
|
});
|
|
529
529
|
};
|
|
530
|
-
exports.
|
|
531
|
-
const
|
|
530
|
+
exports.se_UpdateTrustAnchorCommand = se_UpdateTrustAnchorCommand;
|
|
531
|
+
const de_CreateProfileCommand = async (output, context) => {
|
|
532
532
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
533
|
-
return
|
|
533
|
+
return de_CreateProfileCommandError(output, context);
|
|
534
534
|
}
|
|
535
535
|
const contents = map({
|
|
536
536
|
$metadata: deserializeMetadata(output),
|
|
537
537
|
});
|
|
538
538
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
539
539
|
if (data.profile != null) {
|
|
540
|
-
contents.profile =
|
|
540
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
541
541
|
}
|
|
542
542
|
return contents;
|
|
543
543
|
};
|
|
544
|
-
exports.
|
|
545
|
-
const
|
|
544
|
+
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
545
|
+
const de_CreateProfileCommandError = async (output, context) => {
|
|
546
546
|
const parsedOutput = {
|
|
547
547
|
...output,
|
|
548
548
|
body: await parseErrorBody(output.body, context),
|
|
@@ -551,10 +551,10 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
551
551
|
switch (errorCode) {
|
|
552
552
|
case "AccessDeniedException":
|
|
553
553
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
555
555
|
case "ValidationException":
|
|
556
556
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
558
558
|
default:
|
|
559
559
|
const parsedBody = parsedOutput.body;
|
|
560
560
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -565,21 +565,21 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
|
-
const
|
|
568
|
+
const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
569
569
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
570
|
-
return
|
|
570
|
+
return de_CreateTrustAnchorCommandError(output, context);
|
|
571
571
|
}
|
|
572
572
|
const contents = map({
|
|
573
573
|
$metadata: deserializeMetadata(output),
|
|
574
574
|
});
|
|
575
575
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
576
576
|
if (data.trustAnchor != null) {
|
|
577
|
-
contents.trustAnchor =
|
|
577
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
578
578
|
}
|
|
579
579
|
return contents;
|
|
580
580
|
};
|
|
581
|
-
exports.
|
|
582
|
-
const
|
|
581
|
+
exports.de_CreateTrustAnchorCommand = de_CreateTrustAnchorCommand;
|
|
582
|
+
const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -588,10 +588,10 @@ const deserializeAws_restJson1CreateTrustAnchorCommandError = async (output, con
|
|
|
588
588
|
switch (errorCode) {
|
|
589
589
|
case "AccessDeniedException":
|
|
590
590
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
592
592
|
case "ValidationException":
|
|
593
593
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
595
595
|
default:
|
|
596
596
|
const parsedBody = parsedOutput.body;
|
|
597
597
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -602,21 +602,21 @@ const deserializeAws_restJson1CreateTrustAnchorCommandError = async (output, con
|
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
const
|
|
605
|
+
const de_DeleteCrlCommand = async (output, context) => {
|
|
606
606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
-
return
|
|
607
|
+
return de_DeleteCrlCommandError(output, context);
|
|
608
608
|
}
|
|
609
609
|
const contents = map({
|
|
610
610
|
$metadata: deserializeMetadata(output),
|
|
611
611
|
});
|
|
612
612
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
613
613
|
if (data.crl != null) {
|
|
614
|
-
contents.crl =
|
|
614
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
615
615
|
}
|
|
616
616
|
return contents;
|
|
617
617
|
};
|
|
618
|
-
exports.
|
|
619
|
-
const
|
|
618
|
+
exports.de_DeleteCrlCommand = de_DeleteCrlCommand;
|
|
619
|
+
const de_DeleteCrlCommandError = async (output, context) => {
|
|
620
620
|
const parsedOutput = {
|
|
621
621
|
...output,
|
|
622
622
|
body: await parseErrorBody(output.body, context),
|
|
@@ -625,10 +625,10 @@ const deserializeAws_restJson1DeleteCrlCommandError = async (output, context) =>
|
|
|
625
625
|
switch (errorCode) {
|
|
626
626
|
case "AccessDeniedException":
|
|
627
627
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
629
629
|
case "ResourceNotFoundException":
|
|
630
630
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
632
|
default:
|
|
633
633
|
const parsedBody = parsedOutput.body;
|
|
634
634
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -639,21 +639,21 @@ const deserializeAws_restJson1DeleteCrlCommandError = async (output, context) =>
|
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
|
-
const
|
|
642
|
+
const de_DeleteProfileCommand = async (output, context) => {
|
|
643
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return
|
|
644
|
+
return de_DeleteProfileCommandError(output, context);
|
|
645
645
|
}
|
|
646
646
|
const contents = map({
|
|
647
647
|
$metadata: deserializeMetadata(output),
|
|
648
648
|
});
|
|
649
649
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
650
650
|
if (data.profile != null) {
|
|
651
|
-
contents.profile =
|
|
651
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
652
652
|
}
|
|
653
653
|
return contents;
|
|
654
654
|
};
|
|
655
|
-
exports.
|
|
656
|
-
const
|
|
655
|
+
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
656
|
+
const de_DeleteProfileCommandError = async (output, context) => {
|
|
657
657
|
const parsedOutput = {
|
|
658
658
|
...output,
|
|
659
659
|
body: await parseErrorBody(output.body, context),
|
|
@@ -662,10 +662,10 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
662
662
|
switch (errorCode) {
|
|
663
663
|
case "AccessDeniedException":
|
|
664
664
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
665
|
-
throw await
|
|
665
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
666
666
|
case "ResourceNotFoundException":
|
|
667
667
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
668
|
-
throw await
|
|
668
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
669
669
|
default:
|
|
670
670
|
const parsedBody = parsedOutput.body;
|
|
671
671
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -676,21 +676,21 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
const
|
|
679
|
+
const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
680
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
-
return
|
|
681
|
+
return de_DeleteTrustAnchorCommandError(output, context);
|
|
682
682
|
}
|
|
683
683
|
const contents = map({
|
|
684
684
|
$metadata: deserializeMetadata(output),
|
|
685
685
|
});
|
|
686
686
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
687
687
|
if (data.trustAnchor != null) {
|
|
688
|
-
contents.trustAnchor =
|
|
688
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
689
689
|
}
|
|
690
690
|
return contents;
|
|
691
691
|
};
|
|
692
|
-
exports.
|
|
693
|
-
const
|
|
692
|
+
exports.de_DeleteTrustAnchorCommand = de_DeleteTrustAnchorCommand;
|
|
693
|
+
const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
694
694
|
const parsedOutput = {
|
|
695
695
|
...output,
|
|
696
696
|
body: await parseErrorBody(output.body, context),
|
|
@@ -699,10 +699,10 @@ const deserializeAws_restJson1DeleteTrustAnchorCommandError = async (output, con
|
|
|
699
699
|
switch (errorCode) {
|
|
700
700
|
case "AccessDeniedException":
|
|
701
701
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
703
703
|
case "ResourceNotFoundException":
|
|
704
704
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
705
|
-
throw await
|
|
705
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
706
706
|
default:
|
|
707
707
|
const parsedBody = parsedOutput.body;
|
|
708
708
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -713,21 +713,21 @@ const deserializeAws_restJson1DeleteTrustAnchorCommandError = async (output, con
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
|
-
const
|
|
716
|
+
const de_DisableCrlCommand = async (output, context) => {
|
|
717
717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
-
return
|
|
718
|
+
return de_DisableCrlCommandError(output, context);
|
|
719
719
|
}
|
|
720
720
|
const contents = map({
|
|
721
721
|
$metadata: deserializeMetadata(output),
|
|
722
722
|
});
|
|
723
723
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
724
724
|
if (data.crl != null) {
|
|
725
|
-
contents.crl =
|
|
725
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
726
726
|
}
|
|
727
727
|
return contents;
|
|
728
728
|
};
|
|
729
|
-
exports.
|
|
730
|
-
const
|
|
729
|
+
exports.de_DisableCrlCommand = de_DisableCrlCommand;
|
|
730
|
+
const de_DisableCrlCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
733
|
body: await parseErrorBody(output.body, context),
|
|
@@ -736,10 +736,10 @@ const deserializeAws_restJson1DisableCrlCommandError = async (output, context) =
|
|
|
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
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -750,21 +750,21 @@ const deserializeAws_restJson1DisableCrlCommandError = async (output, context) =
|
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
|
-
const
|
|
753
|
+
const de_DisableProfileCommand = async (output, context) => {
|
|
754
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
755
|
+
return de_DisableProfileCommandError(output, context);
|
|
756
756
|
}
|
|
757
757
|
const contents = map({
|
|
758
758
|
$metadata: deserializeMetadata(output),
|
|
759
759
|
});
|
|
760
760
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
761
|
if (data.profile != null) {
|
|
762
|
-
contents.profile =
|
|
762
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
763
763
|
}
|
|
764
764
|
return contents;
|
|
765
765
|
};
|
|
766
|
-
exports.
|
|
767
|
-
const
|
|
766
|
+
exports.de_DisableProfileCommand = de_DisableProfileCommand;
|
|
767
|
+
const de_DisableProfileCommandError = async (output, context) => {
|
|
768
768
|
const parsedOutput = {
|
|
769
769
|
...output,
|
|
770
770
|
body: await parseErrorBody(output.body, context),
|
|
@@ -773,10 +773,10 @@ const deserializeAws_restJson1DisableProfileCommandError = async (output, contex
|
|
|
773
773
|
switch (errorCode) {
|
|
774
774
|
case "AccessDeniedException":
|
|
775
775
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
776
|
-
throw await
|
|
776
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
777
777
|
case "ResourceNotFoundException":
|
|
778
778
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
779
|
-
throw await
|
|
779
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
780
|
default:
|
|
781
781
|
const parsedBody = parsedOutput.body;
|
|
782
782
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -787,21 +787,21 @@ const deserializeAws_restJson1DisableProfileCommandError = async (output, contex
|
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
const
|
|
790
|
+
const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
791
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
792
|
+
return de_DisableTrustAnchorCommandError(output, context);
|
|
793
793
|
}
|
|
794
794
|
const contents = map({
|
|
795
795
|
$metadata: deserializeMetadata(output),
|
|
796
796
|
});
|
|
797
797
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
798
|
if (data.trustAnchor != null) {
|
|
799
|
-
contents.trustAnchor =
|
|
799
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
800
800
|
}
|
|
801
801
|
return contents;
|
|
802
802
|
};
|
|
803
|
-
exports.
|
|
804
|
-
const
|
|
803
|
+
exports.de_DisableTrustAnchorCommand = de_DisableTrustAnchorCommand;
|
|
804
|
+
const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
807
|
body: await parseErrorBody(output.body, context),
|
|
@@ -810,10 +810,10 @@ const deserializeAws_restJson1DisableTrustAnchorCommandError = async (output, co
|
|
|
810
810
|
switch (errorCode) {
|
|
811
811
|
case "AccessDeniedException":
|
|
812
812
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
814
|
case "ResourceNotFoundException":
|
|
815
815
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
817
817
|
default:
|
|
818
818
|
const parsedBody = parsedOutput.body;
|
|
819
819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -824,21 +824,21 @@ const deserializeAws_restJson1DisableTrustAnchorCommandError = async (output, co
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
-
const
|
|
827
|
+
const de_EnableCrlCommand = async (output, context) => {
|
|
828
828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
829
|
+
return de_EnableCrlCommandError(output, context);
|
|
830
830
|
}
|
|
831
831
|
const contents = map({
|
|
832
832
|
$metadata: deserializeMetadata(output),
|
|
833
833
|
});
|
|
834
834
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
835
835
|
if (data.crl != null) {
|
|
836
|
-
contents.crl =
|
|
836
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
837
837
|
}
|
|
838
838
|
return contents;
|
|
839
839
|
};
|
|
840
|
-
exports.
|
|
841
|
-
const
|
|
840
|
+
exports.de_EnableCrlCommand = de_EnableCrlCommand;
|
|
841
|
+
const de_EnableCrlCommandError = async (output, context) => {
|
|
842
842
|
const parsedOutput = {
|
|
843
843
|
...output,
|
|
844
844
|
body: await parseErrorBody(output.body, context),
|
|
@@ -847,10 +847,10 @@ const deserializeAws_restJson1EnableCrlCommandError = async (output, context) =>
|
|
|
847
847
|
switch (errorCode) {
|
|
848
848
|
case "AccessDeniedException":
|
|
849
849
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
851
851
|
case "ResourceNotFoundException":
|
|
852
852
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
853
|
-
throw await
|
|
853
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
854
854
|
default:
|
|
855
855
|
const parsedBody = parsedOutput.body;
|
|
856
856
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -861,21 +861,21 @@ const deserializeAws_restJson1EnableCrlCommandError = async (output, context) =>
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
const
|
|
864
|
+
const de_EnableProfileCommand = async (output, context) => {
|
|
865
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return
|
|
866
|
+
return de_EnableProfileCommandError(output, context);
|
|
867
867
|
}
|
|
868
868
|
const contents = map({
|
|
869
869
|
$metadata: deserializeMetadata(output),
|
|
870
870
|
});
|
|
871
871
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
872
|
if (data.profile != null) {
|
|
873
|
-
contents.profile =
|
|
873
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
874
874
|
}
|
|
875
875
|
return contents;
|
|
876
876
|
};
|
|
877
|
-
exports.
|
|
878
|
-
const
|
|
877
|
+
exports.de_EnableProfileCommand = de_EnableProfileCommand;
|
|
878
|
+
const de_EnableProfileCommandError = async (output, context) => {
|
|
879
879
|
const parsedOutput = {
|
|
880
880
|
...output,
|
|
881
881
|
body: await parseErrorBody(output.body, context),
|
|
@@ -884,10 +884,10 @@ const deserializeAws_restJson1EnableProfileCommandError = async (output, context
|
|
|
884
884
|
switch (errorCode) {
|
|
885
885
|
case "AccessDeniedException":
|
|
886
886
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
887
|
-
throw await
|
|
887
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
888
888
|
case "ResourceNotFoundException":
|
|
889
889
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
890
|
-
throw await
|
|
890
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
891
891
|
default:
|
|
892
892
|
const parsedBody = parsedOutput.body;
|
|
893
893
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -898,21 +898,21 @@ const deserializeAws_restJson1EnableProfileCommandError = async (output, context
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
902
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return
|
|
903
|
+
return de_EnableTrustAnchorCommandError(output, context);
|
|
904
904
|
}
|
|
905
905
|
const contents = map({
|
|
906
906
|
$metadata: deserializeMetadata(output),
|
|
907
907
|
});
|
|
908
908
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
909
909
|
if (data.trustAnchor != null) {
|
|
910
|
-
contents.trustAnchor =
|
|
910
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
911
911
|
}
|
|
912
912
|
return contents;
|
|
913
913
|
};
|
|
914
|
-
exports.
|
|
915
|
-
const
|
|
914
|
+
exports.de_EnableTrustAnchorCommand = de_EnableTrustAnchorCommand;
|
|
915
|
+
const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
916
916
|
const parsedOutput = {
|
|
917
917
|
...output,
|
|
918
918
|
body: await parseErrorBody(output.body, context),
|
|
@@ -921,10 +921,10 @@ const deserializeAws_restJson1EnableTrustAnchorCommandError = async (output, con
|
|
|
921
921
|
switch (errorCode) {
|
|
922
922
|
case "AccessDeniedException":
|
|
923
923
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
925
|
case "ResourceNotFoundException":
|
|
926
926
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
928
|
default:
|
|
929
929
|
const parsedBody = parsedOutput.body;
|
|
930
930
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -935,21 +935,21 @@ const deserializeAws_restJson1EnableTrustAnchorCommandError = async (output, con
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
const
|
|
938
|
+
const de_GetCrlCommand = async (output, context) => {
|
|
939
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
940
|
+
return de_GetCrlCommandError(output, context);
|
|
941
941
|
}
|
|
942
942
|
const contents = map({
|
|
943
943
|
$metadata: deserializeMetadata(output),
|
|
944
944
|
});
|
|
945
945
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
946
946
|
if (data.crl != null) {
|
|
947
|
-
contents.crl =
|
|
947
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
948
948
|
}
|
|
949
949
|
return contents;
|
|
950
950
|
};
|
|
951
|
-
exports.
|
|
952
|
-
const
|
|
951
|
+
exports.de_GetCrlCommand = de_GetCrlCommand;
|
|
952
|
+
const de_GetCrlCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
955
|
body: await parseErrorBody(output.body, context),
|
|
@@ -958,7 +958,7 @@ const deserializeAws_restJson1GetCrlCommandError = async (output, context) => {
|
|
|
958
958
|
switch (errorCode) {
|
|
959
959
|
case "ResourceNotFoundException":
|
|
960
960
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
961
|
-
throw await
|
|
961
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
962
|
default:
|
|
963
963
|
const parsedBody = parsedOutput.body;
|
|
964
964
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -969,21 +969,21 @@ const deserializeAws_restJson1GetCrlCommandError = async (output, context) => {
|
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
};
|
|
972
|
-
const
|
|
972
|
+
const de_GetProfileCommand = async (output, context) => {
|
|
973
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return
|
|
974
|
+
return de_GetProfileCommandError(output, context);
|
|
975
975
|
}
|
|
976
976
|
const contents = map({
|
|
977
977
|
$metadata: deserializeMetadata(output),
|
|
978
978
|
});
|
|
979
979
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
980
980
|
if (data.profile != null) {
|
|
981
|
-
contents.profile =
|
|
981
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
982
982
|
}
|
|
983
983
|
return contents;
|
|
984
984
|
};
|
|
985
|
-
exports.
|
|
986
|
-
const
|
|
985
|
+
exports.de_GetProfileCommand = de_GetProfileCommand;
|
|
986
|
+
const de_GetProfileCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
989
|
body: await parseErrorBody(output.body, context),
|
|
@@ -992,10 +992,10 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
992
992
|
switch (errorCode) {
|
|
993
993
|
case "AccessDeniedException":
|
|
994
994
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
995
|
-
throw await
|
|
995
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
996
996
|
case "ResourceNotFoundException":
|
|
997
997
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
999
|
default:
|
|
1000
1000
|
const parsedBody = parsedOutput.body;
|
|
1001
1001
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1006,21 +1006,21 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
1006
1006
|
});
|
|
1007
1007
|
}
|
|
1008
1008
|
};
|
|
1009
|
-
const
|
|
1009
|
+
const de_GetSubjectCommand = async (output, context) => {
|
|
1010
1010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
1011
|
+
return de_GetSubjectCommandError(output, context);
|
|
1012
1012
|
}
|
|
1013
1013
|
const contents = map({
|
|
1014
1014
|
$metadata: deserializeMetadata(output),
|
|
1015
1015
|
});
|
|
1016
1016
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
1017
|
if (data.subject != null) {
|
|
1018
|
-
contents.subject =
|
|
1018
|
+
contents.subject = de_SubjectDetail(data.subject, context);
|
|
1019
1019
|
}
|
|
1020
1020
|
return contents;
|
|
1021
1021
|
};
|
|
1022
|
-
exports.
|
|
1023
|
-
const
|
|
1022
|
+
exports.de_GetSubjectCommand = de_GetSubjectCommand;
|
|
1023
|
+
const de_GetSubjectCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1029,10 +1029,10 @@ const deserializeAws_restJson1GetSubjectCommandError = async (output, context) =
|
|
|
1029
1029
|
switch (errorCode) {
|
|
1030
1030
|
case "AccessDeniedException":
|
|
1031
1031
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "ResourceNotFoundException":
|
|
1034
1034
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
1036
|
default:
|
|
1037
1037
|
const parsedBody = parsedOutput.body;
|
|
1038
1038
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1043,21 +1043,21 @@ const deserializeAws_restJson1GetSubjectCommandError = async (output, context) =
|
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
const
|
|
1046
|
+
const de_GetTrustAnchorCommand = async (output, context) => {
|
|
1047
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
1048
|
+
return de_GetTrustAnchorCommandError(output, context);
|
|
1049
1049
|
}
|
|
1050
1050
|
const contents = map({
|
|
1051
1051
|
$metadata: deserializeMetadata(output),
|
|
1052
1052
|
});
|
|
1053
1053
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1054
1054
|
if (data.trustAnchor != null) {
|
|
1055
|
-
contents.trustAnchor =
|
|
1055
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
1056
1056
|
}
|
|
1057
1057
|
return contents;
|
|
1058
1058
|
};
|
|
1059
|
-
exports.
|
|
1060
|
-
const
|
|
1059
|
+
exports.de_GetTrustAnchorCommand = de_GetTrustAnchorCommand;
|
|
1060
|
+
const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
1063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1066,13 +1066,13 @@ const deserializeAws_restJson1GetTrustAnchorCommandError = async (output, contex
|
|
|
1066
1066
|
switch (errorCode) {
|
|
1067
1067
|
case "AccessDeniedException":
|
|
1068
1068
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1069
|
-
throw await
|
|
1069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
1070
|
case "ResourceNotFoundException":
|
|
1071
1071
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1072
|
-
throw await
|
|
1072
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1073
1073
|
case "ValidationException":
|
|
1074
1074
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
1076
|
default:
|
|
1077
1077
|
const parsedBody = parsedOutput.body;
|
|
1078
1078
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1083,21 +1083,21 @@ const deserializeAws_restJson1GetTrustAnchorCommandError = async (output, contex
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
const
|
|
1086
|
+
const de_ImportCrlCommand = async (output, context) => {
|
|
1087
1087
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
1088
|
+
return de_ImportCrlCommandError(output, context);
|
|
1089
1089
|
}
|
|
1090
1090
|
const contents = map({
|
|
1091
1091
|
$metadata: deserializeMetadata(output),
|
|
1092
1092
|
});
|
|
1093
1093
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1094
1094
|
if (data.crl != null) {
|
|
1095
|
-
contents.crl =
|
|
1095
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
1096
1096
|
}
|
|
1097
1097
|
return contents;
|
|
1098
1098
|
};
|
|
1099
|
-
exports.
|
|
1100
|
-
const
|
|
1099
|
+
exports.de_ImportCrlCommand = de_ImportCrlCommand;
|
|
1100
|
+
const de_ImportCrlCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
1103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1106,10 +1106,10 @@ const deserializeAws_restJson1ImportCrlCommandError = async (output, context) =>
|
|
|
1106
1106
|
switch (errorCode) {
|
|
1107
1107
|
case "AccessDeniedException":
|
|
1108
1108
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "ValidationException":
|
|
1111
1111
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1113
1113
|
default:
|
|
1114
1114
|
const parsedBody = parsedOutput.body;
|
|
1115
1115
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1120,24 +1120,24 @@ const deserializeAws_restJson1ImportCrlCommandError = async (output, context) =>
|
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
|
-
const
|
|
1123
|
+
const de_ListCrlsCommand = async (output, context) => {
|
|
1124
1124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
|
-
return
|
|
1125
|
+
return de_ListCrlsCommandError(output, context);
|
|
1126
1126
|
}
|
|
1127
1127
|
const contents = map({
|
|
1128
1128
|
$metadata: deserializeMetadata(output),
|
|
1129
1129
|
});
|
|
1130
1130
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1131
1131
|
if (data.crls != null) {
|
|
1132
|
-
contents.crls =
|
|
1132
|
+
contents.crls = de_CrlDetails(data.crls, context);
|
|
1133
1133
|
}
|
|
1134
1134
|
if (data.nextToken != null) {
|
|
1135
1135
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1136
1136
|
}
|
|
1137
1137
|
return contents;
|
|
1138
1138
|
};
|
|
1139
|
-
exports.
|
|
1140
|
-
const
|
|
1139
|
+
exports.de_ListCrlsCommand = de_ListCrlsCommand;
|
|
1140
|
+
const de_ListCrlsCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
1143
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1146,10 +1146,10 @@ const deserializeAws_restJson1ListCrlsCommandError = async (output, context) =>
|
|
|
1146
1146
|
switch (errorCode) {
|
|
1147
1147
|
case "AccessDeniedException":
|
|
1148
1148
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1149
|
-
throw await
|
|
1149
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
1150
|
case "ValidationException":
|
|
1151
1151
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1152
|
-
throw await
|
|
1152
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
1153
|
default:
|
|
1154
1154
|
const parsedBody = parsedOutput.body;
|
|
1155
1155
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1160,9 +1160,9 @@ const deserializeAws_restJson1ListCrlsCommandError = async (output, context) =>
|
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
|
-
const
|
|
1163
|
+
const de_ListProfilesCommand = async (output, context) => {
|
|
1164
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
|
-
return
|
|
1165
|
+
return de_ListProfilesCommandError(output, context);
|
|
1166
1166
|
}
|
|
1167
1167
|
const contents = map({
|
|
1168
1168
|
$metadata: deserializeMetadata(output),
|
|
@@ -1172,12 +1172,12 @@ const deserializeAws_restJson1ListProfilesCommand = async (output, context) => {
|
|
|
1172
1172
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1173
1173
|
}
|
|
1174
1174
|
if (data.profiles != null) {
|
|
1175
|
-
contents.profiles =
|
|
1175
|
+
contents.profiles = de_ProfileDetails(data.profiles, context);
|
|
1176
1176
|
}
|
|
1177
1177
|
return contents;
|
|
1178
1178
|
};
|
|
1179
|
-
exports.
|
|
1180
|
-
const
|
|
1179
|
+
exports.de_ListProfilesCommand = de_ListProfilesCommand;
|
|
1180
|
+
const de_ListProfilesCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
1183
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1186,10 +1186,10 @@ const deserializeAws_restJson1ListProfilesCommandError = async (output, context)
|
|
|
1186
1186
|
switch (errorCode) {
|
|
1187
1187
|
case "AccessDeniedException":
|
|
1188
1188
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1189
|
-
throw await
|
|
1189
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1190
1190
|
case "ValidationException":
|
|
1191
1191
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1192
|
-
throw await
|
|
1192
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
1193
|
default:
|
|
1194
1194
|
const parsedBody = parsedOutput.body;
|
|
1195
1195
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1200,9 +1200,9 @@ const deserializeAws_restJson1ListProfilesCommandError = async (output, context)
|
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
|
-
const
|
|
1203
|
+
const de_ListSubjectsCommand = async (output, context) => {
|
|
1204
1204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
1205
|
+
return de_ListSubjectsCommandError(output, context);
|
|
1206
1206
|
}
|
|
1207
1207
|
const contents = map({
|
|
1208
1208
|
$metadata: deserializeMetadata(output),
|
|
@@ -1212,12 +1212,12 @@ const deserializeAws_restJson1ListSubjectsCommand = async (output, context) => {
|
|
|
1212
1212
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1213
1213
|
}
|
|
1214
1214
|
if (data.subjects != null) {
|
|
1215
|
-
contents.subjects =
|
|
1215
|
+
contents.subjects = de_SubjectSummaries(data.subjects, context);
|
|
1216
1216
|
}
|
|
1217
1217
|
return contents;
|
|
1218
1218
|
};
|
|
1219
|
-
exports.
|
|
1220
|
-
const
|
|
1219
|
+
exports.de_ListSubjectsCommand = de_ListSubjectsCommand;
|
|
1220
|
+
const de_ListSubjectsCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
1223
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1226,10 +1226,10 @@ const deserializeAws_restJson1ListSubjectsCommandError = async (output, context)
|
|
|
1226
1226
|
switch (errorCode) {
|
|
1227
1227
|
case "AccessDeniedException":
|
|
1228
1228
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1229
|
-
throw await
|
|
1229
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1230
1230
|
case "ValidationException":
|
|
1231
1231
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1232
|
-
throw await
|
|
1232
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1233
1233
|
default:
|
|
1234
1234
|
const parsedBody = parsedOutput.body;
|
|
1235
1235
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1240,21 +1240,21 @@ const deserializeAws_restJson1ListSubjectsCommandError = async (output, context)
|
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
1242
|
};
|
|
1243
|
-
const
|
|
1243
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1244
1244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
-
return
|
|
1245
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1246
1246
|
}
|
|
1247
1247
|
const contents = map({
|
|
1248
1248
|
$metadata: deserializeMetadata(output),
|
|
1249
1249
|
});
|
|
1250
1250
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1251
1251
|
if (data.tags != null) {
|
|
1252
|
-
contents.tags =
|
|
1252
|
+
contents.tags = de_TagList(data.tags, context);
|
|
1253
1253
|
}
|
|
1254
1254
|
return contents;
|
|
1255
1255
|
};
|
|
1256
|
-
exports.
|
|
1257
|
-
const
|
|
1256
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1257
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
1260
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1263,13 +1263,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1263
1263
|
switch (errorCode) {
|
|
1264
1264
|
case "AccessDeniedException":
|
|
1265
1265
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1266
|
-
throw await
|
|
1266
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1267
1267
|
case "ResourceNotFoundException":
|
|
1268
1268
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1269
|
-
throw await
|
|
1269
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
1270
|
case "ValidationException":
|
|
1271
1271
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1272
|
-
throw await
|
|
1272
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1273
1273
|
default:
|
|
1274
1274
|
const parsedBody = parsedOutput.body;
|
|
1275
1275
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1280,9 +1280,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1280
1280
|
});
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
|
-
const
|
|
1283
|
+
const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
1284
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
|
-
return
|
|
1285
|
+
return de_ListTrustAnchorsCommandError(output, context);
|
|
1286
1286
|
}
|
|
1287
1287
|
const contents = map({
|
|
1288
1288
|
$metadata: deserializeMetadata(output),
|
|
@@ -1292,12 +1292,12 @@ const deserializeAws_restJson1ListTrustAnchorsCommand = async (output, context)
|
|
|
1292
1292
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1293
1293
|
}
|
|
1294
1294
|
if (data.trustAnchors != null) {
|
|
1295
|
-
contents.trustAnchors =
|
|
1295
|
+
contents.trustAnchors = de_TrustAnchorDetails(data.trustAnchors, context);
|
|
1296
1296
|
}
|
|
1297
1297
|
return contents;
|
|
1298
1298
|
};
|
|
1299
|
-
exports.
|
|
1300
|
-
const
|
|
1299
|
+
exports.de_ListTrustAnchorsCommand = de_ListTrustAnchorsCommand;
|
|
1300
|
+
const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
1301
1301
|
const parsedOutput = {
|
|
1302
1302
|
...output,
|
|
1303
1303
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1306,10 +1306,10 @@ const deserializeAws_restJson1ListTrustAnchorsCommandError = async (output, cont
|
|
|
1306
1306
|
switch (errorCode) {
|
|
1307
1307
|
case "AccessDeniedException":
|
|
1308
1308
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1309
|
-
throw await
|
|
1309
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1310
1310
|
case "ValidationException":
|
|
1311
1311
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1312
|
-
throw await
|
|
1312
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1313
1313
|
default:
|
|
1314
1314
|
const parsedBody = parsedOutput.body;
|
|
1315
1315
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1320,9 +1320,9 @@ const deserializeAws_restJson1ListTrustAnchorsCommandError = async (output, cont
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
1323
|
-
const
|
|
1323
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1324
1324
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
1325
|
+
return de_TagResourceCommandError(output, context);
|
|
1326
1326
|
}
|
|
1327
1327
|
const contents = map({
|
|
1328
1328
|
$metadata: deserializeMetadata(output),
|
|
@@ -1330,8 +1330,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1330
1330
|
await collectBody(output.body, context);
|
|
1331
1331
|
return contents;
|
|
1332
1332
|
};
|
|
1333
|
-
exports.
|
|
1334
|
-
const
|
|
1333
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1334
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1335
1335
|
const parsedOutput = {
|
|
1336
1336
|
...output,
|
|
1337
1337
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1340,16 +1340,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1340
1340
|
switch (errorCode) {
|
|
1341
1341
|
case "AccessDeniedException":
|
|
1342
1342
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1343
|
-
throw await
|
|
1343
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1344
1344
|
case "ResourceNotFoundException":
|
|
1345
1345
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1346
|
-
throw await
|
|
1346
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1347
1347
|
case "TooManyTagsException":
|
|
1348
1348
|
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
1349
|
-
throw await
|
|
1349
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1350
1350
|
case "ValidationException":
|
|
1351
1351
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1352
|
-
throw await
|
|
1352
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
1353
|
default:
|
|
1354
1354
|
const parsedBody = parsedOutput.body;
|
|
1355
1355
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1360,9 +1360,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
|
-
const
|
|
1363
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1364
1364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
1365
|
+
return de_UntagResourceCommandError(output, context);
|
|
1366
1366
|
}
|
|
1367
1367
|
const contents = map({
|
|
1368
1368
|
$metadata: deserializeMetadata(output),
|
|
@@ -1370,8 +1370,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1370
1370
|
await collectBody(output.body, context);
|
|
1371
1371
|
return contents;
|
|
1372
1372
|
};
|
|
1373
|
-
exports.
|
|
1374
|
-
const
|
|
1373
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1374
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
1377
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1380,13 +1380,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1380
1380
|
switch (errorCode) {
|
|
1381
1381
|
case "AccessDeniedException":
|
|
1382
1382
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1383
|
-
throw await
|
|
1383
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
1384
|
case "ResourceNotFoundException":
|
|
1385
1385
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1386
|
-
throw await
|
|
1386
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1387
1387
|
case "ValidationException":
|
|
1388
1388
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1389
|
-
throw await
|
|
1389
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
1390
|
default:
|
|
1391
1391
|
const parsedBody = parsedOutput.body;
|
|
1392
1392
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1397,21 +1397,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}
|
|
1399
1399
|
};
|
|
1400
|
-
const
|
|
1400
|
+
const de_UpdateCrlCommand = async (output, context) => {
|
|
1401
1401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
|
-
return
|
|
1402
|
+
return de_UpdateCrlCommandError(output, context);
|
|
1403
1403
|
}
|
|
1404
1404
|
const contents = map({
|
|
1405
1405
|
$metadata: deserializeMetadata(output),
|
|
1406
1406
|
});
|
|
1407
1407
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1408
1408
|
if (data.crl != null) {
|
|
1409
|
-
contents.crl =
|
|
1409
|
+
contents.crl = de_CrlDetail(data.crl, context);
|
|
1410
1410
|
}
|
|
1411
1411
|
return contents;
|
|
1412
1412
|
};
|
|
1413
|
-
exports.
|
|
1414
|
-
const
|
|
1413
|
+
exports.de_UpdateCrlCommand = de_UpdateCrlCommand;
|
|
1414
|
+
const de_UpdateCrlCommandError = async (output, context) => {
|
|
1415
1415
|
const parsedOutput = {
|
|
1416
1416
|
...output,
|
|
1417
1417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1420,13 +1420,13 @@ const deserializeAws_restJson1UpdateCrlCommandError = async (output, context) =>
|
|
|
1420
1420
|
switch (errorCode) {
|
|
1421
1421
|
case "AccessDeniedException":
|
|
1422
1422
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1423
|
-
throw await
|
|
1423
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1424
1424
|
case "ResourceNotFoundException":
|
|
1425
1425
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1426
|
-
throw await
|
|
1426
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1427
1427
|
case "ValidationException":
|
|
1428
1428
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1429
|
-
throw await
|
|
1429
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
1430
|
default:
|
|
1431
1431
|
const parsedBody = parsedOutput.body;
|
|
1432
1432
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1437,21 +1437,21 @@ const deserializeAws_restJson1UpdateCrlCommandError = async (output, context) =>
|
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
1439
|
};
|
|
1440
|
-
const
|
|
1440
|
+
const de_UpdateProfileCommand = async (output, context) => {
|
|
1441
1441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
|
-
return
|
|
1442
|
+
return de_UpdateProfileCommandError(output, context);
|
|
1443
1443
|
}
|
|
1444
1444
|
const contents = map({
|
|
1445
1445
|
$metadata: deserializeMetadata(output),
|
|
1446
1446
|
});
|
|
1447
1447
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1448
1448
|
if (data.profile != null) {
|
|
1449
|
-
contents.profile =
|
|
1449
|
+
contents.profile = de_ProfileDetail(data.profile, context);
|
|
1450
1450
|
}
|
|
1451
1451
|
return contents;
|
|
1452
1452
|
};
|
|
1453
|
-
exports.
|
|
1454
|
-
const
|
|
1453
|
+
exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
|
|
1454
|
+
const de_UpdateProfileCommandError = async (output, context) => {
|
|
1455
1455
|
const parsedOutput = {
|
|
1456
1456
|
...output,
|
|
1457
1457
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1460,13 +1460,13 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
1460
1460
|
switch (errorCode) {
|
|
1461
1461
|
case "AccessDeniedException":
|
|
1462
1462
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1463
|
-
throw await
|
|
1463
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1464
1464
|
case "ResourceNotFoundException":
|
|
1465
1465
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1466
|
-
throw await
|
|
1466
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1467
1467
|
case "ValidationException":
|
|
1468
1468
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1469
|
-
throw await
|
|
1469
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
1470
|
default:
|
|
1471
1471
|
const parsedBody = parsedOutput.body;
|
|
1472
1472
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1477,21 +1477,21 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
|
-
const
|
|
1480
|
+
const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
1481
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
1482
|
+
return de_UpdateTrustAnchorCommandError(output, context);
|
|
1483
1483
|
}
|
|
1484
1484
|
const contents = map({
|
|
1485
1485
|
$metadata: deserializeMetadata(output),
|
|
1486
1486
|
});
|
|
1487
1487
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1488
1488
|
if (data.trustAnchor != null) {
|
|
1489
|
-
contents.trustAnchor =
|
|
1489
|
+
contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
|
|
1490
1490
|
}
|
|
1491
1491
|
return contents;
|
|
1492
1492
|
};
|
|
1493
|
-
exports.
|
|
1494
|
-
const
|
|
1493
|
+
exports.de_UpdateTrustAnchorCommand = de_UpdateTrustAnchorCommand;
|
|
1494
|
+
const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
1495
1495
|
const parsedOutput = {
|
|
1496
1496
|
...output,
|
|
1497
1497
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1500,13 +1500,13 @@ const deserializeAws_restJson1UpdateTrustAnchorCommandError = async (output, con
|
|
|
1500
1500
|
switch (errorCode) {
|
|
1501
1501
|
case "AccessDeniedException":
|
|
1502
1502
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1503
|
-
throw await
|
|
1503
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
1504
|
case "ResourceNotFoundException":
|
|
1505
1505
|
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1506
|
-
throw await
|
|
1506
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1507
1507
|
case "ValidationException":
|
|
1508
1508
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1509
|
-
throw await
|
|
1509
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1510
1510
|
default:
|
|
1511
1511
|
const parsedBody = parsedOutput.body;
|
|
1512
1512
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1518,7 +1518,7 @@ const deserializeAws_restJson1UpdateTrustAnchorCommandError = async (output, con
|
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
1520
|
const map = smithy_client_1.map;
|
|
1521
|
-
const
|
|
1521
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1522
1522
|
const contents = map({});
|
|
1523
1523
|
const data = parsedOutput.body;
|
|
1524
1524
|
if (data.message != null) {
|
|
@@ -1530,7 +1530,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1530
1530
|
});
|
|
1531
1531
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1532
1532
|
};
|
|
1533
|
-
const
|
|
1533
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1534
1534
|
const contents = map({});
|
|
1535
1535
|
const data = parsedOutput.body;
|
|
1536
1536
|
if (data.message != null) {
|
|
@@ -1542,7 +1542,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1542
1542
|
});
|
|
1543
1543
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1544
1544
|
};
|
|
1545
|
-
const
|
|
1545
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1546
1546
|
const contents = map({});
|
|
1547
1547
|
const data = parsedOutput.body;
|
|
1548
1548
|
if (data.message != null) {
|
|
@@ -1554,7 +1554,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
1554
1554
|
});
|
|
1555
1555
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1556
1556
|
};
|
|
1557
|
-
const
|
|
1557
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1558
1558
|
const contents = map({});
|
|
1559
1559
|
const data = parsedOutput.body;
|
|
1560
1560
|
if (data.message != null) {
|
|
@@ -1566,65 +1566,65 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1566
1566
|
});
|
|
1567
1567
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1568
1568
|
};
|
|
1569
|
-
const
|
|
1569
|
+
const se_ManagedPolicyList = (input, context) => {
|
|
1570
1570
|
return input
|
|
1571
1571
|
.filter((e) => e != null)
|
|
1572
1572
|
.map((entry) => {
|
|
1573
1573
|
return entry;
|
|
1574
1574
|
});
|
|
1575
1575
|
};
|
|
1576
|
-
const
|
|
1576
|
+
const se_RoleArnList = (input, context) => {
|
|
1577
1577
|
return input
|
|
1578
1578
|
.filter((e) => e != null)
|
|
1579
1579
|
.map((entry) => {
|
|
1580
1580
|
return entry;
|
|
1581
1581
|
});
|
|
1582
1582
|
};
|
|
1583
|
-
const
|
|
1583
|
+
const se_Source = (input, context) => {
|
|
1584
1584
|
return {
|
|
1585
|
-
...(input.sourceData != null && { sourceData:
|
|
1585
|
+
...(input.sourceData != null && { sourceData: se_SourceData(input.sourceData, context) }),
|
|
1586
1586
|
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
1587
1587
|
};
|
|
1588
1588
|
};
|
|
1589
|
-
const
|
|
1589
|
+
const se_SourceData = (input, context) => {
|
|
1590
1590
|
return models_0_1.SourceData.visit(input, {
|
|
1591
1591
|
acmPcaArn: (value) => ({ acmPcaArn: value }),
|
|
1592
1592
|
x509CertificateData: (value) => ({ x509CertificateData: value }),
|
|
1593
1593
|
_: (name, value) => ({ name: value }),
|
|
1594
1594
|
});
|
|
1595
1595
|
};
|
|
1596
|
-
const
|
|
1596
|
+
const se_Tag = (input, context) => {
|
|
1597
1597
|
return {
|
|
1598
1598
|
...(input.key != null && { key: input.key }),
|
|
1599
1599
|
...(input.value != null && { value: input.value }),
|
|
1600
1600
|
};
|
|
1601
1601
|
};
|
|
1602
|
-
const
|
|
1602
|
+
const se_TagKeyList = (input, context) => {
|
|
1603
1603
|
return input
|
|
1604
1604
|
.filter((e) => e != null)
|
|
1605
1605
|
.map((entry) => {
|
|
1606
1606
|
return entry;
|
|
1607
1607
|
});
|
|
1608
1608
|
};
|
|
1609
|
-
const
|
|
1609
|
+
const se_TagList = (input, context) => {
|
|
1610
1610
|
return input
|
|
1611
1611
|
.filter((e) => e != null)
|
|
1612
1612
|
.map((entry) => {
|
|
1613
|
-
return
|
|
1613
|
+
return se_Tag(entry, context);
|
|
1614
1614
|
});
|
|
1615
1615
|
};
|
|
1616
|
-
const
|
|
1616
|
+
const de_CredentialSummaries = (output, context) => {
|
|
1617
1617
|
const retVal = (output || [])
|
|
1618
1618
|
.filter((e) => e != null)
|
|
1619
1619
|
.map((entry) => {
|
|
1620
1620
|
if (entry === null) {
|
|
1621
1621
|
return null;
|
|
1622
1622
|
}
|
|
1623
|
-
return
|
|
1623
|
+
return de_CredentialSummary(entry, context);
|
|
1624
1624
|
});
|
|
1625
1625
|
return retVal;
|
|
1626
1626
|
};
|
|
1627
|
-
const
|
|
1627
|
+
const de_CredentialSummary = (output, context) => {
|
|
1628
1628
|
return {
|
|
1629
1629
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1630
1630
|
failed: (0, smithy_client_1.expectBoolean)(output.failed),
|
|
@@ -1634,7 +1634,7 @@ const deserializeAws_restJson1CredentialSummary = (output, context) => {
|
|
|
1634
1634
|
x509CertificateData: (0, smithy_client_1.expectString)(output.x509CertificateData),
|
|
1635
1635
|
};
|
|
1636
1636
|
};
|
|
1637
|
-
const
|
|
1637
|
+
const de_CrlDetail = (output, context) => {
|
|
1638
1638
|
return {
|
|
1639
1639
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1640
1640
|
crlArn: (0, smithy_client_1.expectString)(output.crlArn),
|
|
@@ -1646,36 +1646,36 @@ const deserializeAws_restJson1CrlDetail = (output, context) => {
|
|
|
1646
1646
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
|
|
1647
1647
|
};
|
|
1648
1648
|
};
|
|
1649
|
-
const
|
|
1649
|
+
const de_CrlDetails = (output, context) => {
|
|
1650
1650
|
const retVal = (output || [])
|
|
1651
1651
|
.filter((e) => e != null)
|
|
1652
1652
|
.map((entry) => {
|
|
1653
1653
|
if (entry === null) {
|
|
1654
1654
|
return null;
|
|
1655
1655
|
}
|
|
1656
|
-
return
|
|
1656
|
+
return de_CrlDetail(entry, context);
|
|
1657
1657
|
});
|
|
1658
1658
|
return retVal;
|
|
1659
1659
|
};
|
|
1660
|
-
const
|
|
1660
|
+
const de_InstanceProperties = (output, context) => {
|
|
1661
1661
|
const retVal = (output || [])
|
|
1662
1662
|
.filter((e) => e != null)
|
|
1663
1663
|
.map((entry) => {
|
|
1664
1664
|
if (entry === null) {
|
|
1665
1665
|
return null;
|
|
1666
1666
|
}
|
|
1667
|
-
return
|
|
1667
|
+
return de_InstanceProperty(entry, context);
|
|
1668
1668
|
});
|
|
1669
1669
|
return retVal;
|
|
1670
1670
|
};
|
|
1671
|
-
const
|
|
1671
|
+
const de_InstanceProperty = (output, context) => {
|
|
1672
1672
|
return {
|
|
1673
1673
|
failed: (0, smithy_client_1.expectBoolean)(output.failed),
|
|
1674
|
-
properties: output.properties != null ?
|
|
1674
|
+
properties: output.properties != null ? de_InstancePropertyMap(output.properties, context) : undefined,
|
|
1675
1675
|
seenAt: output.seenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.seenAt)) : undefined,
|
|
1676
1676
|
};
|
|
1677
1677
|
};
|
|
1678
|
-
const
|
|
1678
|
+
const de_InstancePropertyMap = (output, context) => {
|
|
1679
1679
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1680
1680
|
if (value === null) {
|
|
1681
1681
|
return acc;
|
|
@@ -1684,7 +1684,7 @@ const deserializeAws_restJson1InstancePropertyMap = (output, context) => {
|
|
|
1684
1684
|
return acc;
|
|
1685
1685
|
}, {});
|
|
1686
1686
|
};
|
|
1687
|
-
const
|
|
1687
|
+
const de_ManagedPolicyList = (output, context) => {
|
|
1688
1688
|
const retVal = (output || [])
|
|
1689
1689
|
.filter((e) => e != null)
|
|
1690
1690
|
.map((entry) => {
|
|
@@ -1695,36 +1695,34 @@ const deserializeAws_restJson1ManagedPolicyList = (output, context) => {
|
|
|
1695
1695
|
});
|
|
1696
1696
|
return retVal;
|
|
1697
1697
|
};
|
|
1698
|
-
const
|
|
1698
|
+
const de_ProfileDetail = (output, context) => {
|
|
1699
1699
|
return {
|
|
1700
1700
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1701
1701
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1702
1702
|
durationSeconds: (0, smithy_client_1.expectInt32)(output.durationSeconds),
|
|
1703
1703
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1704
|
-
managedPolicyArns: output.managedPolicyArns != null
|
|
1705
|
-
? deserializeAws_restJson1ManagedPolicyList(output.managedPolicyArns, context)
|
|
1706
|
-
: undefined,
|
|
1704
|
+
managedPolicyArns: output.managedPolicyArns != null ? de_ManagedPolicyList(output.managedPolicyArns, context) : undefined,
|
|
1707
1705
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1708
1706
|
profileArn: (0, smithy_client_1.expectString)(output.profileArn),
|
|
1709
1707
|
profileId: (0, smithy_client_1.expectString)(output.profileId),
|
|
1710
1708
|
requireInstanceProperties: (0, smithy_client_1.expectBoolean)(output.requireInstanceProperties),
|
|
1711
|
-
roleArns: output.roleArns != null ?
|
|
1709
|
+
roleArns: output.roleArns != null ? de_RoleArnList(output.roleArns, context) : undefined,
|
|
1712
1710
|
sessionPolicy: (0, smithy_client_1.expectString)(output.sessionPolicy),
|
|
1713
1711
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
|
|
1714
1712
|
};
|
|
1715
1713
|
};
|
|
1716
|
-
const
|
|
1714
|
+
const de_ProfileDetails = (output, context) => {
|
|
1717
1715
|
const retVal = (output || [])
|
|
1718
1716
|
.filter((e) => e != null)
|
|
1719
1717
|
.map((entry) => {
|
|
1720
1718
|
if (entry === null) {
|
|
1721
1719
|
return null;
|
|
1722
1720
|
}
|
|
1723
|
-
return
|
|
1721
|
+
return de_ProfileDetail(entry, context);
|
|
1724
1722
|
});
|
|
1725
1723
|
return retVal;
|
|
1726
1724
|
};
|
|
1727
|
-
const
|
|
1725
|
+
const de_RoleArnList = (output, context) => {
|
|
1728
1726
|
const retVal = (output || [])
|
|
1729
1727
|
.filter((e) => e != null)
|
|
1730
1728
|
.map((entry) => {
|
|
@@ -1735,15 +1733,13 @@ const deserializeAws_restJson1RoleArnList = (output, context) => {
|
|
|
1735
1733
|
});
|
|
1736
1734
|
return retVal;
|
|
1737
1735
|
};
|
|
1738
|
-
const
|
|
1736
|
+
const de_Source = (output, context) => {
|
|
1739
1737
|
return {
|
|
1740
|
-
sourceData: output.sourceData != null
|
|
1741
|
-
? deserializeAws_restJson1SourceData((0, smithy_client_1.expectUnion)(output.sourceData), context)
|
|
1742
|
-
: undefined,
|
|
1738
|
+
sourceData: output.sourceData != null ? de_SourceData((0, smithy_client_1.expectUnion)(output.sourceData), context) : undefined,
|
|
1743
1739
|
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
1744
1740
|
};
|
|
1745
1741
|
};
|
|
1746
|
-
const
|
|
1742
|
+
const de_SourceData = (output, context) => {
|
|
1747
1743
|
if ((0, smithy_client_1.expectString)(output.acmPcaArn) !== undefined) {
|
|
1748
1744
|
return { acmPcaArn: (0, smithy_client_1.expectString)(output.acmPcaArn) };
|
|
1749
1745
|
}
|
|
@@ -1752,14 +1748,12 @@ const deserializeAws_restJson1SourceData = (output, context) => {
|
|
|
1752
1748
|
}
|
|
1753
1749
|
return { $unknown: Object.entries(output)[0] };
|
|
1754
1750
|
};
|
|
1755
|
-
const
|
|
1751
|
+
const de_SubjectDetail = (output, context) => {
|
|
1756
1752
|
return {
|
|
1757
1753
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1758
|
-
credentials: output.credentials != null ?
|
|
1754
|
+
credentials: output.credentials != null ? de_CredentialSummaries(output.credentials, context) : undefined,
|
|
1759
1755
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1760
|
-
instanceProperties: output.instanceProperties != null
|
|
1761
|
-
? deserializeAws_restJson1InstanceProperties(output.instanceProperties, context)
|
|
1762
|
-
: undefined,
|
|
1756
|
+
instanceProperties: output.instanceProperties != null ? de_InstanceProperties(output.instanceProperties, context) : undefined,
|
|
1763
1757
|
lastSeenAt: output.lastSeenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastSeenAt)) : undefined,
|
|
1764
1758
|
subjectArn: (0, smithy_client_1.expectString)(output.subjectArn),
|
|
1765
1759
|
subjectId: (0, smithy_client_1.expectString)(output.subjectId),
|
|
@@ -1767,18 +1761,18 @@ const deserializeAws_restJson1SubjectDetail = (output, context) => {
|
|
|
1767
1761
|
x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
|
|
1768
1762
|
};
|
|
1769
1763
|
};
|
|
1770
|
-
const
|
|
1764
|
+
const de_SubjectSummaries = (output, context) => {
|
|
1771
1765
|
const retVal = (output || [])
|
|
1772
1766
|
.filter((e) => e != null)
|
|
1773
1767
|
.map((entry) => {
|
|
1774
1768
|
if (entry === null) {
|
|
1775
1769
|
return null;
|
|
1776
1770
|
}
|
|
1777
|
-
return
|
|
1771
|
+
return de_SubjectSummary(entry, context);
|
|
1778
1772
|
});
|
|
1779
1773
|
return retVal;
|
|
1780
1774
|
};
|
|
1781
|
-
const
|
|
1775
|
+
const de_SubjectSummary = (output, context) => {
|
|
1782
1776
|
return {
|
|
1783
1777
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1784
1778
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
@@ -1789,42 +1783,42 @@ const deserializeAws_restJson1SubjectSummary = (output, context) => {
|
|
|
1789
1783
|
x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
|
|
1790
1784
|
};
|
|
1791
1785
|
};
|
|
1792
|
-
const
|
|
1786
|
+
const de_Tag = (output, context) => {
|
|
1793
1787
|
return {
|
|
1794
1788
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
1795
1789
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
1796
1790
|
};
|
|
1797
1791
|
};
|
|
1798
|
-
const
|
|
1792
|
+
const de_TagList = (output, context) => {
|
|
1799
1793
|
const retVal = (output || [])
|
|
1800
1794
|
.filter((e) => e != null)
|
|
1801
1795
|
.map((entry) => {
|
|
1802
1796
|
if (entry === null) {
|
|
1803
1797
|
return null;
|
|
1804
1798
|
}
|
|
1805
|
-
return
|
|
1799
|
+
return de_Tag(entry, context);
|
|
1806
1800
|
});
|
|
1807
1801
|
return retVal;
|
|
1808
1802
|
};
|
|
1809
|
-
const
|
|
1803
|
+
const de_TrustAnchorDetail = (output, context) => {
|
|
1810
1804
|
return {
|
|
1811
1805
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1812
1806
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1813
1807
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1814
|
-
source: output.source != null ?
|
|
1808
|
+
source: output.source != null ? de_Source(output.source, context) : undefined,
|
|
1815
1809
|
trustAnchorArn: (0, smithy_client_1.expectString)(output.trustAnchorArn),
|
|
1816
1810
|
trustAnchorId: (0, smithy_client_1.expectString)(output.trustAnchorId),
|
|
1817
1811
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
|
|
1818
1812
|
};
|
|
1819
1813
|
};
|
|
1820
|
-
const
|
|
1814
|
+
const de_TrustAnchorDetails = (output, context) => {
|
|
1821
1815
|
const retVal = (output || [])
|
|
1822
1816
|
.filter((e) => e != null)
|
|
1823
1817
|
.map((entry) => {
|
|
1824
1818
|
if (entry === null) {
|
|
1825
1819
|
return null;
|
|
1826
1820
|
}
|
|
1827
|
-
return
|
|
1821
|
+
return de_TrustAnchorDetail(entry, context);
|
|
1828
1822
|
});
|
|
1829
1823
|
return retVal;
|
|
1830
1824
|
};
|