@aws-sdk/client-controltower 3.451.0 → 3.458.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 +86 -30
- package/dist-cjs/ControlTower.js +14 -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/UpdateLandingZoneCommand.js +51 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +21 -1
- package/dist-cjs/pagination/ListLandingZonesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +508 -1
- package/dist-es/ControlTower.js +14 -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/UpdateLandingZoneCommand.js +47 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/pagination/ListLandingZonesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +493 -0
- package/dist-types/ControlTower.d.ts +64 -15
- package/dist-types/ControlTowerClient.d.ts +24 -17
- 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 +5 -5
- package/dist-types/commands/EnableControlCommand.d.ts +5 -5
- package/dist-types/commands/GetControlOperationCommand.d.ts +4 -4
- package/dist-types/commands/GetEnabledControlCommand.d.ts +6 -6
- 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 +7 -7
- package/dist-types/commands/ListLandingZonesCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/ResetLandingZoneCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateLandingZoneCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +15 -15
- package/dist-types/models/models_0.d.ts +400 -12
- 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 +63 -0
- package/dist-types/ts3.4/ControlTower.d.ts +119 -0
- package/dist-types/ts3.4/ControlTowerClient.d.ts +44 -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/UpdateLandingZoneCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +99 -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 +84 -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 = {
|
|
@@ -85,6 +127,46 @@ export const se_GetEnabledControlCommand = async (input, context) => {
|
|
|
85
127
|
body,
|
|
86
128
|
});
|
|
87
129
|
};
|
|
130
|
+
export const se_GetLandingZoneCommand = async (input, context) => {
|
|
131
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/json",
|
|
134
|
+
};
|
|
135
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone";
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(take(input, {
|
|
138
|
+
landingZoneIdentifier: [],
|
|
139
|
+
}));
|
|
140
|
+
return new __HttpRequest({
|
|
141
|
+
protocol,
|
|
142
|
+
hostname,
|
|
143
|
+
port,
|
|
144
|
+
method: "POST",
|
|
145
|
+
headers,
|
|
146
|
+
path: resolvedPath,
|
|
147
|
+
body,
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
export const se_GetLandingZoneOperationCommand = async (input, context) => {
|
|
151
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
|
+
const headers = {
|
|
153
|
+
"content-type": "application/json",
|
|
154
|
+
};
|
|
155
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone-operation";
|
|
156
|
+
let body;
|
|
157
|
+
body = JSON.stringify(take(input, {
|
|
158
|
+
operationIdentifier: [],
|
|
159
|
+
}));
|
|
160
|
+
return new __HttpRequest({
|
|
161
|
+
protocol,
|
|
162
|
+
hostname,
|
|
163
|
+
port,
|
|
164
|
+
method: "POST",
|
|
165
|
+
headers,
|
|
166
|
+
path: resolvedPath,
|
|
167
|
+
body,
|
|
168
|
+
});
|
|
169
|
+
};
|
|
88
170
|
export const se_ListEnabledControlsCommand = async (input, context) => {
|
|
89
171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
172
|
const headers = {
|
|
@@ -107,6 +189,27 @@ export const se_ListEnabledControlsCommand = async (input, context) => {
|
|
|
107
189
|
body,
|
|
108
190
|
});
|
|
109
191
|
};
|
|
192
|
+
export const se_ListLandingZonesCommand = async (input, context) => {
|
|
193
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
194
|
+
const headers = {
|
|
195
|
+
"content-type": "application/json",
|
|
196
|
+
};
|
|
197
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-landingzones";
|
|
198
|
+
let body;
|
|
199
|
+
body = JSON.stringify(take(input, {
|
|
200
|
+
maxResults: [],
|
|
201
|
+
nextToken: [],
|
|
202
|
+
}));
|
|
203
|
+
return new __HttpRequest({
|
|
204
|
+
protocol,
|
|
205
|
+
hostname,
|
|
206
|
+
port,
|
|
207
|
+
method: "POST",
|
|
208
|
+
headers,
|
|
209
|
+
path: resolvedPath,
|
|
210
|
+
body,
|
|
211
|
+
});
|
|
212
|
+
};
|
|
110
213
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
111
214
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
215
|
const headers = {};
|
|
@@ -123,6 +226,26 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
123
226
|
body,
|
|
124
227
|
});
|
|
125
228
|
};
|
|
229
|
+
export const se_ResetLandingZoneCommand = async (input, context) => {
|
|
230
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/json",
|
|
233
|
+
};
|
|
234
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-landingzone";
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(take(input, {
|
|
237
|
+
landingZoneIdentifier: [],
|
|
238
|
+
}));
|
|
239
|
+
return new __HttpRequest({
|
|
240
|
+
protocol,
|
|
241
|
+
hostname,
|
|
242
|
+
port,
|
|
243
|
+
method: "POST",
|
|
244
|
+
headers,
|
|
245
|
+
path: resolvedPath,
|
|
246
|
+
body,
|
|
247
|
+
});
|
|
248
|
+
};
|
|
126
249
|
export const se_TagResourceCommand = async (input, context) => {
|
|
127
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
128
251
|
const headers = {
|
|
@@ -167,6 +290,122 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
167
290
|
body,
|
|
168
291
|
});
|
|
169
292
|
};
|
|
293
|
+
export const se_UpdateLandingZoneCommand = async (input, context) => {
|
|
294
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
295
|
+
const headers = {
|
|
296
|
+
"content-type": "application/json",
|
|
297
|
+
};
|
|
298
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-landingzone";
|
|
299
|
+
let body;
|
|
300
|
+
body = JSON.stringify(take(input, {
|
|
301
|
+
landingZoneIdentifier: [],
|
|
302
|
+
manifest: (_) => se_Manifest(_, context),
|
|
303
|
+
version: [],
|
|
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 de_CreateLandingZoneCommand = async (output, context) => {
|
|
316
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
+
return de_CreateLandingZoneCommandError(output, context);
|
|
318
|
+
}
|
|
319
|
+
const contents = map({
|
|
320
|
+
$metadata: deserializeMetadata(output),
|
|
321
|
+
});
|
|
322
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
323
|
+
const doc = take(data, {
|
|
324
|
+
arn: __expectString,
|
|
325
|
+
operationIdentifier: __expectString,
|
|
326
|
+
});
|
|
327
|
+
Object.assign(contents, doc);
|
|
328
|
+
return contents;
|
|
329
|
+
};
|
|
330
|
+
const de_CreateLandingZoneCommandError = async (output, context) => {
|
|
331
|
+
const parsedOutput = {
|
|
332
|
+
...output,
|
|
333
|
+
body: await parseErrorBody(output.body, context),
|
|
334
|
+
};
|
|
335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
|
+
switch (errorCode) {
|
|
337
|
+
case "AccessDeniedException":
|
|
338
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
339
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
340
|
+
case "ConflictException":
|
|
341
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
342
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
343
|
+
case "InternalServerException":
|
|
344
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
345
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
346
|
+
case "ThrottlingException":
|
|
347
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
348
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
349
|
+
case "ValidationException":
|
|
350
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
351
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
352
|
+
default:
|
|
353
|
+
const parsedBody = parsedOutput.body;
|
|
354
|
+
return throwDefaultError({
|
|
355
|
+
output,
|
|
356
|
+
parsedBody,
|
|
357
|
+
errorCode,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
export const de_DeleteLandingZoneCommand = async (output, context) => {
|
|
362
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
+
return de_DeleteLandingZoneCommandError(output, context);
|
|
364
|
+
}
|
|
365
|
+
const contents = map({
|
|
366
|
+
$metadata: deserializeMetadata(output),
|
|
367
|
+
});
|
|
368
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
369
|
+
const doc = take(data, {
|
|
370
|
+
operationIdentifier: __expectString,
|
|
371
|
+
});
|
|
372
|
+
Object.assign(contents, doc);
|
|
373
|
+
return contents;
|
|
374
|
+
};
|
|
375
|
+
const de_DeleteLandingZoneCommandError = async (output, context) => {
|
|
376
|
+
const parsedOutput = {
|
|
377
|
+
...output,
|
|
378
|
+
body: await parseErrorBody(output.body, context),
|
|
379
|
+
};
|
|
380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
+
switch (errorCode) {
|
|
382
|
+
case "AccessDeniedException":
|
|
383
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
384
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
385
|
+
case "ConflictException":
|
|
386
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
387
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
388
|
+
case "InternalServerException":
|
|
389
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
390
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
391
|
+
case "ResourceNotFoundException":
|
|
392
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
393
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
394
|
+
case "ThrottlingException":
|
|
395
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
396
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
397
|
+
case "ValidationException":
|
|
398
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
399
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
400
|
+
default:
|
|
401
|
+
const parsedBody = parsedOutput.body;
|
|
402
|
+
return throwDefaultError({
|
|
403
|
+
output,
|
|
404
|
+
parsedBody,
|
|
405
|
+
errorCode,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
};
|
|
170
409
|
export const de_DisableControlCommand = async (output, context) => {
|
|
171
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
172
411
|
return de_DisableControlCommandError(output, context);
|
|
@@ -360,6 +599,96 @@ const de_GetEnabledControlCommandError = async (output, context) => {
|
|
|
360
599
|
});
|
|
361
600
|
}
|
|
362
601
|
};
|
|
602
|
+
export const de_GetLandingZoneCommand = async (output, context) => {
|
|
603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
+
return de_GetLandingZoneCommandError(output, context);
|
|
605
|
+
}
|
|
606
|
+
const contents = map({
|
|
607
|
+
$metadata: deserializeMetadata(output),
|
|
608
|
+
});
|
|
609
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
+
const doc = take(data, {
|
|
611
|
+
landingZone: (_) => de_LandingZoneDetail(_, context),
|
|
612
|
+
});
|
|
613
|
+
Object.assign(contents, doc);
|
|
614
|
+
return contents;
|
|
615
|
+
};
|
|
616
|
+
const de_GetLandingZoneCommandError = async (output, context) => {
|
|
617
|
+
const parsedOutput = {
|
|
618
|
+
...output,
|
|
619
|
+
body: await parseErrorBody(output.body, context),
|
|
620
|
+
};
|
|
621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
+
switch (errorCode) {
|
|
623
|
+
case "AccessDeniedException":
|
|
624
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
625
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
626
|
+
case "InternalServerException":
|
|
627
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
628
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
629
|
+
case "ResourceNotFoundException":
|
|
630
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
631
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
|
+
case "ThrottlingException":
|
|
633
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
634
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
635
|
+
case "ValidationException":
|
|
636
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
637
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
|
+
default:
|
|
639
|
+
const parsedBody = parsedOutput.body;
|
|
640
|
+
return throwDefaultError({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody,
|
|
643
|
+
errorCode,
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
export const de_GetLandingZoneOperationCommand = async (output, context) => {
|
|
648
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
+
return de_GetLandingZoneOperationCommandError(output, context);
|
|
650
|
+
}
|
|
651
|
+
const contents = map({
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
});
|
|
654
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
655
|
+
const doc = take(data, {
|
|
656
|
+
operationDetails: (_) => de_LandingZoneOperationDetail(_, context),
|
|
657
|
+
});
|
|
658
|
+
Object.assign(contents, doc);
|
|
659
|
+
return contents;
|
|
660
|
+
};
|
|
661
|
+
const de_GetLandingZoneOperationCommandError = async (output, context) => {
|
|
662
|
+
const parsedOutput = {
|
|
663
|
+
...output,
|
|
664
|
+
body: await parseErrorBody(output.body, context),
|
|
665
|
+
};
|
|
666
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
|
+
switch (errorCode) {
|
|
668
|
+
case "AccessDeniedException":
|
|
669
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
670
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
671
|
+
case "InternalServerException":
|
|
672
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
673
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
|
+
case "ResourceNotFoundException":
|
|
675
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
676
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
|
+
case "ThrottlingException":
|
|
678
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
679
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
680
|
+
case "ValidationException":
|
|
681
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
682
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
683
|
+
default:
|
|
684
|
+
const parsedBody = parsedOutput.body;
|
|
685
|
+
return throwDefaultError({
|
|
686
|
+
output,
|
|
687
|
+
parsedBody,
|
|
688
|
+
errorCode,
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
};
|
|
363
692
|
export const de_ListEnabledControlsCommand = async (output, context) => {
|
|
364
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
694
|
return de_ListEnabledControlsCommandError(output, context);
|
|
@@ -406,6 +735,49 @@ const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
|
406
735
|
});
|
|
407
736
|
}
|
|
408
737
|
};
|
|
738
|
+
export const de_ListLandingZonesCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
+
return de_ListLandingZonesCommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const contents = map({
|
|
743
|
+
$metadata: deserializeMetadata(output),
|
|
744
|
+
});
|
|
745
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
746
|
+
const doc = take(data, {
|
|
747
|
+
landingZones: _json,
|
|
748
|
+
nextToken: __expectString,
|
|
749
|
+
});
|
|
750
|
+
Object.assign(contents, doc);
|
|
751
|
+
return contents;
|
|
752
|
+
};
|
|
753
|
+
const de_ListLandingZonesCommandError = async (output, context) => {
|
|
754
|
+
const parsedOutput = {
|
|
755
|
+
...output,
|
|
756
|
+
body: await parseErrorBody(output.body, context),
|
|
757
|
+
};
|
|
758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "AccessDeniedException":
|
|
761
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
762
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
763
|
+
case "InternalServerException":
|
|
764
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
+
case "ThrottlingException":
|
|
767
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
769
|
+
case "ValidationException":
|
|
770
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
772
|
+
default:
|
|
773
|
+
const parsedBody = parsedOutput.body;
|
|
774
|
+
return throwDefaultError({
|
|
775
|
+
output,
|
|
776
|
+
parsedBody,
|
|
777
|
+
errorCode,
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
};
|
|
409
781
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
410
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
783
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -445,6 +817,54 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
445
817
|
});
|
|
446
818
|
}
|
|
447
819
|
};
|
|
820
|
+
export const de_ResetLandingZoneCommand = async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_ResetLandingZoneCommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = map({
|
|
825
|
+
$metadata: deserializeMetadata(output),
|
|
826
|
+
});
|
|
827
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
828
|
+
const doc = take(data, {
|
|
829
|
+
operationIdentifier: __expectString,
|
|
830
|
+
});
|
|
831
|
+
Object.assign(contents, doc);
|
|
832
|
+
return contents;
|
|
833
|
+
};
|
|
834
|
+
const de_ResetLandingZoneCommandError = async (output, context) => {
|
|
835
|
+
const parsedOutput = {
|
|
836
|
+
...output,
|
|
837
|
+
body: await parseErrorBody(output.body, context),
|
|
838
|
+
};
|
|
839
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
+
switch (errorCode) {
|
|
841
|
+
case "AccessDeniedException":
|
|
842
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
843
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
844
|
+
case "ConflictException":
|
|
845
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
846
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
847
|
+
case "InternalServerException":
|
|
848
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
849
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
850
|
+
case "ResourceNotFoundException":
|
|
851
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
852
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
853
|
+
case "ThrottlingException":
|
|
854
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
855
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
856
|
+
case "ValidationException":
|
|
857
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
858
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
859
|
+
default:
|
|
860
|
+
const parsedBody = parsedOutput.body;
|
|
861
|
+
return throwDefaultError({
|
|
862
|
+
output,
|
|
863
|
+
parsedBody,
|
|
864
|
+
errorCode,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
};
|
|
448
868
|
export const de_TagResourceCommand = async (output, context) => {
|
|
449
869
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
450
870
|
return de_TagResourceCommandError(output, context);
|
|
@@ -515,6 +935,54 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
515
935
|
});
|
|
516
936
|
}
|
|
517
937
|
};
|
|
938
|
+
export const de_UpdateLandingZoneCommand = async (output, context) => {
|
|
939
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
|
+
return de_UpdateLandingZoneCommandError(output, context);
|
|
941
|
+
}
|
|
942
|
+
const contents = map({
|
|
943
|
+
$metadata: deserializeMetadata(output),
|
|
944
|
+
});
|
|
945
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
946
|
+
const doc = take(data, {
|
|
947
|
+
operationIdentifier: __expectString,
|
|
948
|
+
});
|
|
949
|
+
Object.assign(contents, doc);
|
|
950
|
+
return contents;
|
|
951
|
+
};
|
|
952
|
+
const de_UpdateLandingZoneCommandError = async (output, context) => {
|
|
953
|
+
const parsedOutput = {
|
|
954
|
+
...output,
|
|
955
|
+
body: await parseErrorBody(output.body, context),
|
|
956
|
+
};
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
switch (errorCode) {
|
|
959
|
+
case "AccessDeniedException":
|
|
960
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
961
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ConflictException":
|
|
963
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
964
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
965
|
+
case "InternalServerException":
|
|
966
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
967
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ResourceNotFoundException":
|
|
969
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
970
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ThrottlingException":
|
|
972
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
973
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ValidationException":
|
|
975
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
976
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
977
|
+
default:
|
|
978
|
+
const parsedBody = parsedOutput.body;
|
|
979
|
+
return throwDefaultError({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
errorCode,
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
};
|
|
518
986
|
const throwDefaultError = withBaseException(__BaseException);
|
|
519
987
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
520
988
|
const contents = map({});
|
|
@@ -614,6 +1082,9 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
614
1082
|
});
|
|
615
1083
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
616
1084
|
};
|
|
1085
|
+
const se_Manifest = (input, context) => {
|
|
1086
|
+
return input;
|
|
1087
|
+
};
|
|
617
1088
|
const de_ControlOperation = (output, context) => {
|
|
618
1089
|
return take(output, {
|
|
619
1090
|
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -623,6 +1094,28 @@ const de_ControlOperation = (output, context) => {
|
|
|
623
1094
|
statusMessage: __expectString,
|
|
624
1095
|
});
|
|
625
1096
|
};
|
|
1097
|
+
const de_LandingZoneDetail = (output, context) => {
|
|
1098
|
+
return take(output, {
|
|
1099
|
+
arn: __expectString,
|
|
1100
|
+
driftStatus: _json,
|
|
1101
|
+
latestAvailableVersion: __expectString,
|
|
1102
|
+
manifest: (_) => de_Manifest(_, context),
|
|
1103
|
+
status: __expectString,
|
|
1104
|
+
version: __expectString,
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
const de_LandingZoneOperationDetail = (output, context) => {
|
|
1108
|
+
return take(output, {
|
|
1109
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1110
|
+
operationType: __expectString,
|
|
1111
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1112
|
+
status: __expectString,
|
|
1113
|
+
statusMessage: __expectString,
|
|
1114
|
+
});
|
|
1115
|
+
};
|
|
1116
|
+
const de_Manifest = (output, context) => {
|
|
1117
|
+
return output;
|
|
1118
|
+
};
|
|
626
1119
|
const deserializeMetadata = (output) => ({
|
|
627
1120
|
httpStatusCode: output.statusCode,
|
|
628
1121
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|