@aws-sdk/client-controltower 3.454.0 → 3.459.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -31
- package/dist-cjs/ControlTower.js +16 -0
- package/dist-cjs/commands/CreateLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/DeleteLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/GetLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/GetLandingZoneOperationCommand.js +51 -0
- package/dist-cjs/commands/ListLandingZonesCommand.js +51 -0
- package/dist-cjs/commands/ResetLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/UpdateEnabledControlCommand.js +51 -0
- package/dist-cjs/commands/UpdateLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +22 -1
- package/dist-cjs/pagination/ListLandingZonesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +682 -56
- package/dist-es/ControlTower.js +16 -0
- package/dist-es/commands/CreateLandingZoneCommand.js +47 -0
- package/dist-es/commands/DeleteLandingZoneCommand.js +47 -0
- package/dist-es/commands/GetLandingZoneCommand.js +47 -0
- package/dist-es/commands/GetLandingZoneOperationCommand.js +47 -0
- package/dist-es/commands/ListLandingZonesCommand.js +47 -0
- package/dist-es/commands/ResetLandingZoneCommand.js +47 -0
- package/dist-es/commands/UpdateEnabledControlCommand.js +47 -0
- package/dist-es/commands/UpdateLandingZoneCommand.js +47 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/pagination/ListLandingZonesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +659 -49
- package/dist-types/ControlTower.d.ts +72 -16
- package/dist-types/ControlTowerClient.d.ts +26 -18
- package/dist-types/commands/CreateLandingZoneCommand.d.ts +94 -0
- package/dist-types/commands/DeleteLandingZoneCommand.d.ts +92 -0
- package/dist-types/commands/DisableControlCommand.d.ts +9 -9
- package/dist-types/commands/EnableControlCommand.d.ts +15 -9
- package/dist-types/commands/GetControlOperationCommand.d.ts +6 -6
- package/dist-types/commands/GetEnabledControlCommand.d.ts +14 -8
- package/dist-types/commands/GetLandingZoneCommand.d.ts +97 -0
- package/dist-types/commands/GetLandingZoneOperationCommand.d.ts +95 -0
- package/dist-types/commands/ListEnabledControlsCommand.d.ts +9 -9
- package/dist-types/commands/ListLandingZonesCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -4
- package/dist-types/commands/ResetLandingZoneCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
- package/dist-types/commands/UpdateEnabledControlCommand.d.ts +107 -0
- package/dist-types/commands/UpdateLandingZoneCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/index.d.ts +16 -16
- package/dist-types/models/models_0.d.ts +472 -29
- package/dist-types/pagination/ListLandingZonesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/ControlTower.d.ts +136 -0
- package/dist-types/ts3.4/ControlTowerClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/CreateLandingZoneCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteLandingZoneCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetLandingZoneCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetLandingZoneOperationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLandingZonesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ResetLandingZoneCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateEnabledControlCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateLandingZoneCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +117 -0
- package/dist-types/ts3.4/pagination/ListLandingZonesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +3 -3
|
@@ -2,6 +2,48 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { ControlTowerServiceException as __BaseException } from "../models/ControlTowerServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
export const se_CreateLandingZoneCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-landingzone";
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
manifest: (_) => se_Manifest(_, context),
|
|
14
|
+
tags: (_) => _json(_),
|
|
15
|
+
version: [],
|
|
16
|
+
}));
|
|
17
|
+
return new __HttpRequest({
|
|
18
|
+
protocol,
|
|
19
|
+
hostname,
|
|
20
|
+
port,
|
|
21
|
+
method: "POST",
|
|
22
|
+
headers,
|
|
23
|
+
path: resolvedPath,
|
|
24
|
+
body,
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export const se_DeleteLandingZoneCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-landingzone";
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
landingZoneIdentifier: [],
|
|
36
|
+
}));
|
|
37
|
+
return new __HttpRequest({
|
|
38
|
+
protocol,
|
|
39
|
+
hostname,
|
|
40
|
+
port,
|
|
41
|
+
method: "POST",
|
|
42
|
+
headers,
|
|
43
|
+
path: resolvedPath,
|
|
44
|
+
body,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
5
47
|
export const se_DisableControlCommand = async (input, context) => {
|
|
6
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
49
|
const headers = {
|
|
@@ -32,6 +74,7 @@ export const se_EnableControlCommand = async (input, context) => {
|
|
|
32
74
|
let body;
|
|
33
75
|
body = JSON.stringify(take(input, {
|
|
34
76
|
controlIdentifier: [],
|
|
77
|
+
parameters: (_) => se_EnabledControlParameters(_, context),
|
|
35
78
|
tags: (_) => _json(_),
|
|
36
79
|
targetIdentifier: [],
|
|
37
80
|
}));
|
|
@@ -85,6 +128,46 @@ export const se_GetEnabledControlCommand = async (input, context) => {
|
|
|
85
128
|
body,
|
|
86
129
|
});
|
|
87
130
|
};
|
|
131
|
+
export const se_GetLandingZoneCommand = async (input, context) => {
|
|
132
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/json",
|
|
135
|
+
};
|
|
136
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone";
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(take(input, {
|
|
139
|
+
landingZoneIdentifier: [],
|
|
140
|
+
}));
|
|
141
|
+
return new __HttpRequest({
|
|
142
|
+
protocol,
|
|
143
|
+
hostname,
|
|
144
|
+
port,
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
export const se_GetLandingZoneOperationCommand = async (input, context) => {
|
|
152
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
|
+
const headers = {
|
|
154
|
+
"content-type": "application/json",
|
|
155
|
+
};
|
|
156
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone-operation";
|
|
157
|
+
let body;
|
|
158
|
+
body = JSON.stringify(take(input, {
|
|
159
|
+
operationIdentifier: [],
|
|
160
|
+
}));
|
|
161
|
+
return new __HttpRequest({
|
|
162
|
+
protocol,
|
|
163
|
+
hostname,
|
|
164
|
+
port,
|
|
165
|
+
method: "POST",
|
|
166
|
+
headers,
|
|
167
|
+
path: resolvedPath,
|
|
168
|
+
body,
|
|
169
|
+
});
|
|
170
|
+
};
|
|
88
171
|
export const se_ListEnabledControlsCommand = async (input, context) => {
|
|
89
172
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
173
|
const headers = {
|
|
@@ -107,6 +190,27 @@ export const se_ListEnabledControlsCommand = async (input, context) => {
|
|
|
107
190
|
body,
|
|
108
191
|
});
|
|
109
192
|
};
|
|
193
|
+
export const se_ListLandingZonesCommand = async (input, context) => {
|
|
194
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
|
+
const headers = {
|
|
196
|
+
"content-type": "application/json",
|
|
197
|
+
};
|
|
198
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-landingzones";
|
|
199
|
+
let body;
|
|
200
|
+
body = JSON.stringify(take(input, {
|
|
201
|
+
maxResults: [],
|
|
202
|
+
nextToken: [],
|
|
203
|
+
}));
|
|
204
|
+
return new __HttpRequest({
|
|
205
|
+
protocol,
|
|
206
|
+
hostname,
|
|
207
|
+
port,
|
|
208
|
+
method: "POST",
|
|
209
|
+
headers,
|
|
210
|
+
path: resolvedPath,
|
|
211
|
+
body,
|
|
212
|
+
});
|
|
213
|
+
};
|
|
110
214
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
111
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
216
|
const headers = {};
|
|
@@ -123,6 +227,26 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
123
227
|
body,
|
|
124
228
|
});
|
|
125
229
|
};
|
|
230
|
+
export const se_ResetLandingZoneCommand = async (input, context) => {
|
|
231
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/json",
|
|
234
|
+
};
|
|
235
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-landingzone";
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(take(input, {
|
|
238
|
+
landingZoneIdentifier: [],
|
|
239
|
+
}));
|
|
240
|
+
return new __HttpRequest({
|
|
241
|
+
protocol,
|
|
242
|
+
hostname,
|
|
243
|
+
port,
|
|
244
|
+
method: "POST",
|
|
245
|
+
headers,
|
|
246
|
+
path: resolvedPath,
|
|
247
|
+
body,
|
|
248
|
+
});
|
|
249
|
+
};
|
|
126
250
|
export const se_TagResourceCommand = async (input, context) => {
|
|
127
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
128
252
|
const headers = {
|
|
@@ -167,21 +291,65 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
167
291
|
body,
|
|
168
292
|
});
|
|
169
293
|
};
|
|
170
|
-
export const
|
|
294
|
+
export const se_UpdateEnabledControlCommand = async (input, context) => {
|
|
295
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
296
|
+
const headers = {
|
|
297
|
+
"content-type": "application/json",
|
|
298
|
+
};
|
|
299
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-enabled-control";
|
|
300
|
+
let body;
|
|
301
|
+
body = JSON.stringify(take(input, {
|
|
302
|
+
enabledControlIdentifier: [],
|
|
303
|
+
parameters: (_) => se_EnabledControlParameters(_, context),
|
|
304
|
+
}));
|
|
305
|
+
return new __HttpRequest({
|
|
306
|
+
protocol,
|
|
307
|
+
hostname,
|
|
308
|
+
port,
|
|
309
|
+
method: "POST",
|
|
310
|
+
headers,
|
|
311
|
+
path: resolvedPath,
|
|
312
|
+
body,
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
export const se_UpdateLandingZoneCommand = async (input, context) => {
|
|
316
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
317
|
+
const headers = {
|
|
318
|
+
"content-type": "application/json",
|
|
319
|
+
};
|
|
320
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-landingzone";
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(take(input, {
|
|
323
|
+
landingZoneIdentifier: [],
|
|
324
|
+
manifest: (_) => se_Manifest(_, context),
|
|
325
|
+
version: [],
|
|
326
|
+
}));
|
|
327
|
+
return new __HttpRequest({
|
|
328
|
+
protocol,
|
|
329
|
+
hostname,
|
|
330
|
+
port,
|
|
331
|
+
method: "POST",
|
|
332
|
+
headers,
|
|
333
|
+
path: resolvedPath,
|
|
334
|
+
body,
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
export const de_CreateLandingZoneCommand = async (output, context) => {
|
|
171
338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
172
|
-
return
|
|
339
|
+
return de_CreateLandingZoneCommandError(output, context);
|
|
173
340
|
}
|
|
174
341
|
const contents = map({
|
|
175
342
|
$metadata: deserializeMetadata(output),
|
|
176
343
|
});
|
|
177
344
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
178
345
|
const doc = take(data, {
|
|
346
|
+
arn: __expectString,
|
|
179
347
|
operationIdentifier: __expectString,
|
|
180
348
|
});
|
|
181
349
|
Object.assign(contents, doc);
|
|
182
350
|
return contents;
|
|
183
351
|
};
|
|
184
|
-
const
|
|
352
|
+
const de_CreateLandingZoneCommandError = async (output, context) => {
|
|
185
353
|
const parsedOutput = {
|
|
186
354
|
...output,
|
|
187
355
|
body: await parseErrorBody(output.body, context),
|
|
@@ -197,12 +365,6 @@ const de_DisableControlCommandError = async (output, context) => {
|
|
|
197
365
|
case "InternalServerException":
|
|
198
366
|
case "com.amazonaws.controltower#InternalServerException":
|
|
199
367
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
200
|
-
case "ResourceNotFoundException":
|
|
201
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
203
|
-
case "ServiceQuotaExceededException":
|
|
204
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
205
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
206
368
|
case "ThrottlingException":
|
|
207
369
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
208
370
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -218,22 +380,21 @@ const de_DisableControlCommandError = async (output, context) => {
|
|
|
218
380
|
});
|
|
219
381
|
}
|
|
220
382
|
};
|
|
221
|
-
export const
|
|
383
|
+
export const de_DeleteLandingZoneCommand = async (output, context) => {
|
|
222
384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
223
|
-
return
|
|
385
|
+
return de_DeleteLandingZoneCommandError(output, context);
|
|
224
386
|
}
|
|
225
387
|
const contents = map({
|
|
226
388
|
$metadata: deserializeMetadata(output),
|
|
227
389
|
});
|
|
228
390
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
229
391
|
const doc = take(data, {
|
|
230
|
-
arn: __expectString,
|
|
231
392
|
operationIdentifier: __expectString,
|
|
232
393
|
});
|
|
233
394
|
Object.assign(contents, doc);
|
|
234
395
|
return contents;
|
|
235
396
|
};
|
|
236
|
-
const
|
|
397
|
+
const de_DeleteLandingZoneCommandError = async (output, context) => {
|
|
237
398
|
const parsedOutput = {
|
|
238
399
|
...output,
|
|
239
400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -252,9 +413,6 @@ const de_EnableControlCommandError = async (output, context) => {
|
|
|
252
413
|
case "ResourceNotFoundException":
|
|
253
414
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
254
415
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ServiceQuotaExceededException":
|
|
256
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
257
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
258
416
|
case "ThrottlingException":
|
|
259
417
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
260
418
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -270,21 +428,21 @@ const de_EnableControlCommandError = async (output, context) => {
|
|
|
270
428
|
});
|
|
271
429
|
}
|
|
272
430
|
};
|
|
273
|
-
export const
|
|
431
|
+
export const de_DisableControlCommand = async (output, context) => {
|
|
274
432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
275
|
-
return
|
|
433
|
+
return de_DisableControlCommandError(output, context);
|
|
276
434
|
}
|
|
277
435
|
const contents = map({
|
|
278
436
|
$metadata: deserializeMetadata(output),
|
|
279
437
|
});
|
|
280
438
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
281
439
|
const doc = take(data, {
|
|
282
|
-
|
|
440
|
+
operationIdentifier: __expectString,
|
|
283
441
|
});
|
|
284
442
|
Object.assign(contents, doc);
|
|
285
443
|
return contents;
|
|
286
444
|
};
|
|
287
|
-
const
|
|
445
|
+
const de_DisableControlCommandError = async (output, context) => {
|
|
288
446
|
const parsedOutput = {
|
|
289
447
|
...output,
|
|
290
448
|
body: await parseErrorBody(output.body, context),
|
|
@@ -294,12 +452,18 @@ const de_GetControlOperationCommandError = async (output, context) => {
|
|
|
294
452
|
case "AccessDeniedException":
|
|
295
453
|
case "com.amazonaws.controltower#AccessDeniedException":
|
|
296
454
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
455
|
+
case "ConflictException":
|
|
456
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
457
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
297
458
|
case "InternalServerException":
|
|
298
459
|
case "com.amazonaws.controltower#InternalServerException":
|
|
299
460
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
300
461
|
case "ResourceNotFoundException":
|
|
301
462
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
302
463
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
464
|
+
case "ServiceQuotaExceededException":
|
|
465
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
466
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
303
467
|
case "ThrottlingException":
|
|
304
468
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
305
469
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -315,21 +479,22 @@ const de_GetControlOperationCommandError = async (output, context) => {
|
|
|
315
479
|
});
|
|
316
480
|
}
|
|
317
481
|
};
|
|
318
|
-
export const
|
|
482
|
+
export const de_EnableControlCommand = async (output, context) => {
|
|
319
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
320
|
-
return
|
|
484
|
+
return de_EnableControlCommandError(output, context);
|
|
321
485
|
}
|
|
322
486
|
const contents = map({
|
|
323
487
|
$metadata: deserializeMetadata(output),
|
|
324
488
|
});
|
|
325
489
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
326
490
|
const doc = take(data, {
|
|
327
|
-
|
|
491
|
+
arn: __expectString,
|
|
492
|
+
operationIdentifier: __expectString,
|
|
328
493
|
});
|
|
329
494
|
Object.assign(contents, doc);
|
|
330
495
|
return contents;
|
|
331
496
|
};
|
|
332
|
-
const
|
|
497
|
+
const de_EnableControlCommandError = async (output, context) => {
|
|
333
498
|
const parsedOutput = {
|
|
334
499
|
...output,
|
|
335
500
|
body: await parseErrorBody(output.body, context),
|
|
@@ -339,12 +504,18 @@ const de_GetEnabledControlCommandError = async (output, context) => {
|
|
|
339
504
|
case "AccessDeniedException":
|
|
340
505
|
case "com.amazonaws.controltower#AccessDeniedException":
|
|
341
506
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
+
case "ConflictException":
|
|
508
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
509
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
342
510
|
case "InternalServerException":
|
|
343
511
|
case "com.amazonaws.controltower#InternalServerException":
|
|
344
512
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
345
513
|
case "ResourceNotFoundException":
|
|
346
514
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
347
515
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
516
|
+
case "ServiceQuotaExceededException":
|
|
517
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
518
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
348
519
|
case "ThrottlingException":
|
|
349
520
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
350
521
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -360,22 +531,21 @@ const de_GetEnabledControlCommandError = async (output, context) => {
|
|
|
360
531
|
});
|
|
361
532
|
}
|
|
362
533
|
};
|
|
363
|
-
export const
|
|
534
|
+
export const de_GetControlOperationCommand = async (output, context) => {
|
|
364
535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return
|
|
536
|
+
return de_GetControlOperationCommandError(output, context);
|
|
366
537
|
}
|
|
367
538
|
const contents = map({
|
|
368
539
|
$metadata: deserializeMetadata(output),
|
|
369
540
|
});
|
|
370
541
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
371
542
|
const doc = take(data, {
|
|
372
|
-
|
|
373
|
-
nextToken: __expectString,
|
|
543
|
+
controlOperation: (_) => de_ControlOperation(_, context),
|
|
374
544
|
});
|
|
375
545
|
Object.assign(contents, doc);
|
|
376
546
|
return contents;
|
|
377
547
|
};
|
|
378
|
-
const
|
|
548
|
+
const de_GetControlOperationCommandError = async (output, context) => {
|
|
379
549
|
const parsedOutput = {
|
|
380
550
|
...output,
|
|
381
551
|
body: await parseErrorBody(output.body, context),
|
|
@@ -406,33 +576,39 @@ const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
|
406
576
|
});
|
|
407
577
|
}
|
|
408
578
|
};
|
|
409
|
-
export const
|
|
579
|
+
export const de_GetEnabledControlCommand = async (output, context) => {
|
|
410
580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
|
-
return
|
|
581
|
+
return de_GetEnabledControlCommandError(output, context);
|
|
412
582
|
}
|
|
413
583
|
const contents = map({
|
|
414
584
|
$metadata: deserializeMetadata(output),
|
|
415
585
|
});
|
|
416
586
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
417
587
|
const doc = take(data, {
|
|
418
|
-
|
|
588
|
+
enabledControlDetails: (_) => de_EnabledControlDetails(_, context),
|
|
419
589
|
});
|
|
420
590
|
Object.assign(contents, doc);
|
|
421
591
|
return contents;
|
|
422
592
|
};
|
|
423
|
-
const
|
|
593
|
+
const de_GetEnabledControlCommandError = async (output, context) => {
|
|
424
594
|
const parsedOutput = {
|
|
425
595
|
...output,
|
|
426
596
|
body: await parseErrorBody(output.body, context),
|
|
427
597
|
};
|
|
428
598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
599
|
switch (errorCode) {
|
|
600
|
+
case "AccessDeniedException":
|
|
601
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
602
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
430
603
|
case "InternalServerException":
|
|
431
604
|
case "com.amazonaws.controltower#InternalServerException":
|
|
432
605
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
606
|
case "ResourceNotFoundException":
|
|
434
607
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
435
608
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
|
+
case "ThrottlingException":
|
|
610
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
611
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
436
612
|
case "ValidationException":
|
|
437
613
|
case "com.amazonaws.controltower#ValidationException":
|
|
438
614
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -445,29 +621,39 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
445
621
|
});
|
|
446
622
|
}
|
|
447
623
|
};
|
|
448
|
-
export const
|
|
449
|
-
if (output.statusCode !==
|
|
450
|
-
return
|
|
624
|
+
export const de_GetLandingZoneCommand = async (output, context) => {
|
|
625
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
+
return de_GetLandingZoneCommandError(output, context);
|
|
451
627
|
}
|
|
452
628
|
const contents = map({
|
|
453
629
|
$metadata: deserializeMetadata(output),
|
|
454
630
|
});
|
|
455
|
-
await
|
|
631
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
632
|
+
const doc = take(data, {
|
|
633
|
+
landingZone: (_) => de_LandingZoneDetail(_, context),
|
|
634
|
+
});
|
|
635
|
+
Object.assign(contents, doc);
|
|
456
636
|
return contents;
|
|
457
637
|
};
|
|
458
|
-
const
|
|
638
|
+
const de_GetLandingZoneCommandError = async (output, context) => {
|
|
459
639
|
const parsedOutput = {
|
|
460
640
|
...output,
|
|
461
641
|
body: await parseErrorBody(output.body, context),
|
|
462
642
|
};
|
|
463
643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
644
|
switch (errorCode) {
|
|
645
|
+
case "AccessDeniedException":
|
|
646
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
647
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
465
648
|
case "InternalServerException":
|
|
466
649
|
case "com.amazonaws.controltower#InternalServerException":
|
|
467
650
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
468
651
|
case "ResourceNotFoundException":
|
|
469
652
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
470
653
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
654
|
+
case "ThrottlingException":
|
|
655
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
656
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
657
|
case "ValidationException":
|
|
472
658
|
case "com.amazonaws.controltower#ValidationException":
|
|
473
659
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -480,29 +666,39 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
480
666
|
});
|
|
481
667
|
}
|
|
482
668
|
};
|
|
483
|
-
export const
|
|
484
|
-
if (output.statusCode !==
|
|
485
|
-
return
|
|
669
|
+
export const de_GetLandingZoneOperationCommand = async (output, context) => {
|
|
670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
671
|
+
return de_GetLandingZoneOperationCommandError(output, context);
|
|
486
672
|
}
|
|
487
673
|
const contents = map({
|
|
488
674
|
$metadata: deserializeMetadata(output),
|
|
489
675
|
});
|
|
490
|
-
await
|
|
676
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
677
|
+
const doc = take(data, {
|
|
678
|
+
operationDetails: (_) => de_LandingZoneOperationDetail(_, context),
|
|
679
|
+
});
|
|
680
|
+
Object.assign(contents, doc);
|
|
491
681
|
return contents;
|
|
492
682
|
};
|
|
493
|
-
const
|
|
683
|
+
const de_GetLandingZoneOperationCommandError = async (output, context) => {
|
|
494
684
|
const parsedOutput = {
|
|
495
685
|
...output,
|
|
496
686
|
body: await parseErrorBody(output.body, context),
|
|
497
687
|
};
|
|
498
688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
689
|
switch (errorCode) {
|
|
690
|
+
case "AccessDeniedException":
|
|
691
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
692
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
500
693
|
case "InternalServerException":
|
|
501
694
|
case "com.amazonaws.controltower#InternalServerException":
|
|
502
695
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
503
696
|
case "ResourceNotFoundException":
|
|
504
697
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
505
698
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
699
|
+
case "ThrottlingException":
|
|
700
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
506
702
|
case "ValidationException":
|
|
507
703
|
case "com.amazonaws.controltower#ValidationException":
|
|
508
704
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -515,15 +711,360 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
515
711
|
});
|
|
516
712
|
}
|
|
517
713
|
};
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
714
|
+
export const de_ListEnabledControlsCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_ListEnabledControlsCommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
522
722
|
const doc = take(data, {
|
|
523
|
-
|
|
723
|
+
enabledControls: _json,
|
|
724
|
+
nextToken: __expectString,
|
|
524
725
|
});
|
|
525
726
|
Object.assign(contents, doc);
|
|
526
|
-
|
|
727
|
+
return contents;
|
|
728
|
+
};
|
|
729
|
+
const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "AccessDeniedException":
|
|
737
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
738
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
+
case "InternalServerException":
|
|
740
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
741
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
742
|
+
case "ResourceNotFoundException":
|
|
743
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
744
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
745
|
+
case "ThrottlingException":
|
|
746
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
747
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ValidationException":
|
|
749
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
750
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
|
+
default:
|
|
752
|
+
const parsedBody = parsedOutput.body;
|
|
753
|
+
return throwDefaultError({
|
|
754
|
+
output,
|
|
755
|
+
parsedBody,
|
|
756
|
+
errorCode,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
export const de_ListLandingZonesCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
+
return de_ListLandingZonesCommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const contents = map({
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
});
|
|
767
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
768
|
+
const doc = take(data, {
|
|
769
|
+
landingZones: _json,
|
|
770
|
+
nextToken: __expectString,
|
|
771
|
+
});
|
|
772
|
+
Object.assign(contents, doc);
|
|
773
|
+
return contents;
|
|
774
|
+
};
|
|
775
|
+
const de_ListLandingZonesCommandError = async (output, context) => {
|
|
776
|
+
const parsedOutput = {
|
|
777
|
+
...output,
|
|
778
|
+
body: await parseErrorBody(output.body, context),
|
|
779
|
+
};
|
|
780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
|
+
switch (errorCode) {
|
|
782
|
+
case "AccessDeniedException":
|
|
783
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
784
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
785
|
+
case "InternalServerException":
|
|
786
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
787
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
788
|
+
case "ThrottlingException":
|
|
789
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
790
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
791
|
+
case "ValidationException":
|
|
792
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
793
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
|
+
default:
|
|
795
|
+
const parsedBody = parsedOutput.body;
|
|
796
|
+
return throwDefaultError({
|
|
797
|
+
output,
|
|
798
|
+
parsedBody,
|
|
799
|
+
errorCode,
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
804
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
806
|
+
}
|
|
807
|
+
const contents = map({
|
|
808
|
+
$metadata: deserializeMetadata(output),
|
|
809
|
+
});
|
|
810
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
811
|
+
const doc = take(data, {
|
|
812
|
+
tags: _json,
|
|
813
|
+
});
|
|
814
|
+
Object.assign(contents, doc);
|
|
815
|
+
return contents;
|
|
816
|
+
};
|
|
817
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
818
|
+
const parsedOutput = {
|
|
819
|
+
...output,
|
|
820
|
+
body: await parseErrorBody(output.body, context),
|
|
821
|
+
};
|
|
822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
|
+
switch (errorCode) {
|
|
824
|
+
case "InternalServerException":
|
|
825
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
826
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
827
|
+
case "ResourceNotFoundException":
|
|
828
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
829
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ValidationException":
|
|
831
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
832
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
|
+
default:
|
|
834
|
+
const parsedBody = parsedOutput.body;
|
|
835
|
+
return throwDefaultError({
|
|
836
|
+
output,
|
|
837
|
+
parsedBody,
|
|
838
|
+
errorCode,
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
export const de_ResetLandingZoneCommand = async (output, context) => {
|
|
843
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
+
return de_ResetLandingZoneCommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const contents = map({
|
|
847
|
+
$metadata: deserializeMetadata(output),
|
|
848
|
+
});
|
|
849
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
850
|
+
const doc = take(data, {
|
|
851
|
+
operationIdentifier: __expectString,
|
|
852
|
+
});
|
|
853
|
+
Object.assign(contents, doc);
|
|
854
|
+
return contents;
|
|
855
|
+
};
|
|
856
|
+
const de_ResetLandingZoneCommandError = async (output, context) => {
|
|
857
|
+
const parsedOutput = {
|
|
858
|
+
...output,
|
|
859
|
+
body: await parseErrorBody(output.body, context),
|
|
860
|
+
};
|
|
861
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
+
switch (errorCode) {
|
|
863
|
+
case "AccessDeniedException":
|
|
864
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
865
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
|
+
case "ConflictException":
|
|
867
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
868
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
869
|
+
case "InternalServerException":
|
|
870
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
871
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
872
|
+
case "ResourceNotFoundException":
|
|
873
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
874
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ThrottlingException":
|
|
876
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
877
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ValidationException":
|
|
879
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
880
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
+
default:
|
|
882
|
+
const parsedBody = parsedOutput.body;
|
|
883
|
+
return throwDefaultError({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
errorCode,
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
891
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
892
|
+
return de_TagResourceCommandError(output, context);
|
|
893
|
+
}
|
|
894
|
+
const contents = map({
|
|
895
|
+
$metadata: deserializeMetadata(output),
|
|
896
|
+
});
|
|
897
|
+
await collectBody(output.body, context);
|
|
898
|
+
return contents;
|
|
899
|
+
};
|
|
900
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
901
|
+
const parsedOutput = {
|
|
902
|
+
...output,
|
|
903
|
+
body: await parseErrorBody(output.body, context),
|
|
904
|
+
};
|
|
905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
+
switch (errorCode) {
|
|
907
|
+
case "InternalServerException":
|
|
908
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
909
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
910
|
+
case "ResourceNotFoundException":
|
|
911
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
912
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
913
|
+
case "ValidationException":
|
|
914
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
915
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
+
default:
|
|
917
|
+
const parsedBody = parsedOutput.body;
|
|
918
|
+
return throwDefaultError({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
errorCode,
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
926
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
927
|
+
return de_UntagResourceCommandError(output, context);
|
|
928
|
+
}
|
|
929
|
+
const contents = map({
|
|
930
|
+
$metadata: deserializeMetadata(output),
|
|
931
|
+
});
|
|
932
|
+
await collectBody(output.body, context);
|
|
933
|
+
return contents;
|
|
934
|
+
};
|
|
935
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
936
|
+
const parsedOutput = {
|
|
937
|
+
...output,
|
|
938
|
+
body: await parseErrorBody(output.body, context),
|
|
939
|
+
};
|
|
940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
+
switch (errorCode) {
|
|
942
|
+
case "InternalServerException":
|
|
943
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
944
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
945
|
+
case "ResourceNotFoundException":
|
|
946
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
947
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
948
|
+
case "ValidationException":
|
|
949
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
950
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
|
+
default:
|
|
952
|
+
const parsedBody = parsedOutput.body;
|
|
953
|
+
return throwDefaultError({
|
|
954
|
+
output,
|
|
955
|
+
parsedBody,
|
|
956
|
+
errorCode,
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
export const de_UpdateEnabledControlCommand = async (output, context) => {
|
|
961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
+
return de_UpdateEnabledControlCommandError(output, context);
|
|
963
|
+
}
|
|
964
|
+
const contents = map({
|
|
965
|
+
$metadata: deserializeMetadata(output),
|
|
966
|
+
});
|
|
967
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
968
|
+
const doc = take(data, {
|
|
969
|
+
operationIdentifier: __expectString,
|
|
970
|
+
});
|
|
971
|
+
Object.assign(contents, doc);
|
|
972
|
+
return contents;
|
|
973
|
+
};
|
|
974
|
+
const de_UpdateEnabledControlCommandError = async (output, context) => {
|
|
975
|
+
const parsedOutput = {
|
|
976
|
+
...output,
|
|
977
|
+
body: await parseErrorBody(output.body, context),
|
|
978
|
+
};
|
|
979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
+
switch (errorCode) {
|
|
981
|
+
case "AccessDeniedException":
|
|
982
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
983
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
984
|
+
case "ConflictException":
|
|
985
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
986
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
987
|
+
case "InternalServerException":
|
|
988
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
989
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
990
|
+
case "ResourceNotFoundException":
|
|
991
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
992
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
993
|
+
case "ServiceQuotaExceededException":
|
|
994
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
995
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
996
|
+
case "ThrottlingException":
|
|
997
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
998
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
999
|
+
case "ValidationException":
|
|
1000
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1001
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1002
|
+
default:
|
|
1003
|
+
const parsedBody = parsedOutput.body;
|
|
1004
|
+
return throwDefaultError({
|
|
1005
|
+
output,
|
|
1006
|
+
parsedBody,
|
|
1007
|
+
errorCode,
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
export const de_UpdateLandingZoneCommand = async (output, context) => {
|
|
1012
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1013
|
+
return de_UpdateLandingZoneCommandError(output, context);
|
|
1014
|
+
}
|
|
1015
|
+
const contents = map({
|
|
1016
|
+
$metadata: deserializeMetadata(output),
|
|
1017
|
+
});
|
|
1018
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1019
|
+
const doc = take(data, {
|
|
1020
|
+
operationIdentifier: __expectString,
|
|
1021
|
+
});
|
|
1022
|
+
Object.assign(contents, doc);
|
|
1023
|
+
return contents;
|
|
1024
|
+
};
|
|
1025
|
+
const de_UpdateLandingZoneCommandError = async (output, context) => {
|
|
1026
|
+
const parsedOutput = {
|
|
1027
|
+
...output,
|
|
1028
|
+
body: await parseErrorBody(output.body, context),
|
|
1029
|
+
};
|
|
1030
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
+
switch (errorCode) {
|
|
1032
|
+
case "AccessDeniedException":
|
|
1033
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1034
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1035
|
+
case "ConflictException":
|
|
1036
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1037
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1038
|
+
case "InternalServerException":
|
|
1039
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1040
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "ResourceNotFoundException":
|
|
1042
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1043
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
+
case "ThrottlingException":
|
|
1045
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1046
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ValidationException":
|
|
1048
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1049
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
+
default:
|
|
1051
|
+
const parsedBody = parsedOutput.body;
|
|
1052
|
+
return throwDefaultError({
|
|
1053
|
+
output,
|
|
1054
|
+
parsedBody,
|
|
1055
|
+
errorCode,
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1060
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1061
|
+
const contents = map({});
|
|
1062
|
+
const data = parsedOutput.body;
|
|
1063
|
+
const doc = take(data, {
|
|
1064
|
+
message: __expectString,
|
|
1065
|
+
});
|
|
1066
|
+
Object.assign(contents, doc);
|
|
1067
|
+
const exception = new AccessDeniedException({
|
|
527
1068
|
$metadata: deserializeMetadata(parsedOutput),
|
|
528
1069
|
...contents,
|
|
529
1070
|
});
|
|
@@ -614,6 +1155,25 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
614
1155
|
});
|
|
615
1156
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
616
1157
|
};
|
|
1158
|
+
const se_EnabledControlParameter = (input, context) => {
|
|
1159
|
+
return take(input, {
|
|
1160
|
+
key: [],
|
|
1161
|
+
value: (_) => se_Document(_, context),
|
|
1162
|
+
});
|
|
1163
|
+
};
|
|
1164
|
+
const se_EnabledControlParameters = (input, context) => {
|
|
1165
|
+
return input
|
|
1166
|
+
.filter((e) => e != null)
|
|
1167
|
+
.map((entry) => {
|
|
1168
|
+
return se_EnabledControlParameter(entry, context);
|
|
1169
|
+
});
|
|
1170
|
+
};
|
|
1171
|
+
const se_Manifest = (input, context) => {
|
|
1172
|
+
return input;
|
|
1173
|
+
};
|
|
1174
|
+
const se_Document = (input, context) => {
|
|
1175
|
+
return input;
|
|
1176
|
+
};
|
|
617
1177
|
const de_ControlOperation = (output, context) => {
|
|
618
1178
|
return take(output, {
|
|
619
1179
|
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -623,6 +1183,56 @@ const de_ControlOperation = (output, context) => {
|
|
|
623
1183
|
statusMessage: __expectString,
|
|
624
1184
|
});
|
|
625
1185
|
};
|
|
1186
|
+
const de_EnabledControlDetails = (output, context) => {
|
|
1187
|
+
return take(output, {
|
|
1188
|
+
arn: __expectString,
|
|
1189
|
+
controlIdentifier: __expectString,
|
|
1190
|
+
driftStatusSummary: _json,
|
|
1191
|
+
parameters: (_) => de_EnabledControlParameterSummaries(_, context),
|
|
1192
|
+
statusSummary: _json,
|
|
1193
|
+
targetIdentifier: __expectString,
|
|
1194
|
+
targetRegions: _json,
|
|
1195
|
+
});
|
|
1196
|
+
};
|
|
1197
|
+
const de_EnabledControlParameterSummaries = (output, context) => {
|
|
1198
|
+
const retVal = (output || [])
|
|
1199
|
+
.filter((e) => e != null)
|
|
1200
|
+
.map((entry) => {
|
|
1201
|
+
return de_EnabledControlParameterSummary(entry, context);
|
|
1202
|
+
});
|
|
1203
|
+
return retVal;
|
|
1204
|
+
};
|
|
1205
|
+
const de_EnabledControlParameterSummary = (output, context) => {
|
|
1206
|
+
return take(output, {
|
|
1207
|
+
key: __expectString,
|
|
1208
|
+
value: (_) => de_Document(_, context),
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1211
|
+
const de_LandingZoneDetail = (output, context) => {
|
|
1212
|
+
return take(output, {
|
|
1213
|
+
arn: __expectString,
|
|
1214
|
+
driftStatus: _json,
|
|
1215
|
+
latestAvailableVersion: __expectString,
|
|
1216
|
+
manifest: (_) => de_Manifest(_, context),
|
|
1217
|
+
status: __expectString,
|
|
1218
|
+
version: __expectString,
|
|
1219
|
+
});
|
|
1220
|
+
};
|
|
1221
|
+
const de_LandingZoneOperationDetail = (output, context) => {
|
|
1222
|
+
return take(output, {
|
|
1223
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1224
|
+
operationType: __expectString,
|
|
1225
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1226
|
+
status: __expectString,
|
|
1227
|
+
statusMessage: __expectString,
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
const de_Manifest = (output, context) => {
|
|
1231
|
+
return output;
|
|
1232
|
+
};
|
|
1233
|
+
const de_Document = (output, context) => {
|
|
1234
|
+
return output;
|
|
1235
|
+
};
|
|
626
1236
|
const deserializeMetadata = (output) => ({
|
|
627
1237
|
httpStatusCode: output.statusCode,
|
|
628
1238
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|