@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
|
@@ -1,10 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnabledControlsCommand = exports.de_GetEnabledControlCommand = exports.de_GetControlOperationCommand = exports.de_EnableControlCommand = exports.de_DisableControlCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnabledControlsCommand = exports.se_GetEnabledControlCommand = exports.se_GetControlOperationCommand = exports.se_EnableControlCommand = exports.se_DisableControlCommand = void 0;
|
|
3
|
+
exports.de_UpdateLandingZoneCommand = exports.de_UpdateEnabledControlCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetLandingZoneCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLandingZonesCommand = exports.de_ListEnabledControlsCommand = exports.de_GetLandingZoneOperationCommand = exports.de_GetLandingZoneCommand = exports.de_GetEnabledControlCommand = exports.de_GetControlOperationCommand = exports.de_EnableControlCommand = exports.de_DisableControlCommand = exports.de_DeleteLandingZoneCommand = exports.de_CreateLandingZoneCommand = exports.se_UpdateLandingZoneCommand = exports.se_UpdateEnabledControlCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetLandingZoneCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLandingZonesCommand = exports.se_ListEnabledControlsCommand = exports.se_GetLandingZoneOperationCommand = exports.se_GetLandingZoneCommand = exports.se_GetEnabledControlCommand = exports.se_GetControlOperationCommand = exports.se_EnableControlCommand = exports.se_DisableControlCommand = exports.se_DeleteLandingZoneCommand = exports.se_CreateLandingZoneCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const ControlTowerServiceException_1 = require("../models/ControlTowerServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const se_CreateLandingZoneCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-landingzone";
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
manifest: (_) => se_Manifest(_, context),
|
|
17
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
version: [],
|
|
19
|
+
}));
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.se_CreateLandingZoneCommand = se_CreateLandingZoneCommand;
|
|
31
|
+
const se_DeleteLandingZoneCommand = async (input, context) => {
|
|
32
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/json",
|
|
35
|
+
};
|
|
36
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-landingzone";
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
+
landingZoneIdentifier: [],
|
|
40
|
+
}));
|
|
41
|
+
return new protocol_http_1.HttpRequest({
|
|
42
|
+
protocol,
|
|
43
|
+
hostname,
|
|
44
|
+
port,
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers,
|
|
47
|
+
path: resolvedPath,
|
|
48
|
+
body,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.se_DeleteLandingZoneCommand = se_DeleteLandingZoneCommand;
|
|
8
52
|
const se_DisableControlCommand = async (input, context) => {
|
|
9
53
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
54
|
const headers = {
|
|
@@ -36,6 +80,7 @@ const se_EnableControlCommand = async (input, context) => {
|
|
|
36
80
|
let body;
|
|
37
81
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
82
|
controlIdentifier: [],
|
|
83
|
+
parameters: (_) => se_EnabledControlParameters(_, context),
|
|
39
84
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
40
85
|
targetIdentifier: [],
|
|
41
86
|
}));
|
|
@@ -92,6 +137,48 @@ const se_GetEnabledControlCommand = async (input, context) => {
|
|
|
92
137
|
});
|
|
93
138
|
};
|
|
94
139
|
exports.se_GetEnabledControlCommand = se_GetEnabledControlCommand;
|
|
140
|
+
const se_GetLandingZoneCommand = async (input, context) => {
|
|
141
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/json",
|
|
144
|
+
};
|
|
145
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone";
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
148
|
+
landingZoneIdentifier: [],
|
|
149
|
+
}));
|
|
150
|
+
return new protocol_http_1.HttpRequest({
|
|
151
|
+
protocol,
|
|
152
|
+
hostname,
|
|
153
|
+
port,
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers,
|
|
156
|
+
path: resolvedPath,
|
|
157
|
+
body,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
exports.se_GetLandingZoneCommand = se_GetLandingZoneCommand;
|
|
161
|
+
const se_GetLandingZoneOperationCommand = async (input, context) => {
|
|
162
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
|
+
const headers = {
|
|
164
|
+
"content-type": "application/json",
|
|
165
|
+
};
|
|
166
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone-operation";
|
|
167
|
+
let body;
|
|
168
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
169
|
+
operationIdentifier: [],
|
|
170
|
+
}));
|
|
171
|
+
return new protocol_http_1.HttpRequest({
|
|
172
|
+
protocol,
|
|
173
|
+
hostname,
|
|
174
|
+
port,
|
|
175
|
+
method: "POST",
|
|
176
|
+
headers,
|
|
177
|
+
path: resolvedPath,
|
|
178
|
+
body,
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
exports.se_GetLandingZoneOperationCommand = se_GetLandingZoneOperationCommand;
|
|
95
182
|
const se_ListEnabledControlsCommand = async (input, context) => {
|
|
96
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
97
184
|
const headers = {
|
|
@@ -115,6 +202,28 @@ const se_ListEnabledControlsCommand = async (input, context) => {
|
|
|
115
202
|
});
|
|
116
203
|
};
|
|
117
204
|
exports.se_ListEnabledControlsCommand = se_ListEnabledControlsCommand;
|
|
205
|
+
const se_ListLandingZonesCommand = async (input, context) => {
|
|
206
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
207
|
+
const headers = {
|
|
208
|
+
"content-type": "application/json",
|
|
209
|
+
};
|
|
210
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-landingzones";
|
|
211
|
+
let body;
|
|
212
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
213
|
+
maxResults: [],
|
|
214
|
+
nextToken: [],
|
|
215
|
+
}));
|
|
216
|
+
return new protocol_http_1.HttpRequest({
|
|
217
|
+
protocol,
|
|
218
|
+
hostname,
|
|
219
|
+
port,
|
|
220
|
+
method: "POST",
|
|
221
|
+
headers,
|
|
222
|
+
path: resolvedPath,
|
|
223
|
+
body,
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
exports.se_ListLandingZonesCommand = se_ListLandingZonesCommand;
|
|
118
227
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
119
228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
229
|
const headers = {};
|
|
@@ -132,6 +241,27 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
132
241
|
});
|
|
133
242
|
};
|
|
134
243
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
244
|
+
const se_ResetLandingZoneCommand = async (input, context) => {
|
|
245
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
|
+
const headers = {
|
|
247
|
+
"content-type": "application/json",
|
|
248
|
+
};
|
|
249
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-landingzone";
|
|
250
|
+
let body;
|
|
251
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
252
|
+
landingZoneIdentifier: [],
|
|
253
|
+
}));
|
|
254
|
+
return new protocol_http_1.HttpRequest({
|
|
255
|
+
protocol,
|
|
256
|
+
hostname,
|
|
257
|
+
port,
|
|
258
|
+
method: "POST",
|
|
259
|
+
headers,
|
|
260
|
+
path: resolvedPath,
|
|
261
|
+
body,
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
exports.se_ResetLandingZoneCommand = se_ResetLandingZoneCommand;
|
|
135
265
|
const se_TagResourceCommand = async (input, context) => {
|
|
136
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
137
267
|
const headers = {
|
|
@@ -178,22 +308,68 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
178
308
|
});
|
|
179
309
|
};
|
|
180
310
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
181
|
-
const
|
|
311
|
+
const se_UpdateEnabledControlCommand = async (input, context) => {
|
|
312
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
|
+
const headers = {
|
|
314
|
+
"content-type": "application/json",
|
|
315
|
+
};
|
|
316
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-enabled-control";
|
|
317
|
+
let body;
|
|
318
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
319
|
+
enabledControlIdentifier: [],
|
|
320
|
+
parameters: (_) => se_EnabledControlParameters(_, context),
|
|
321
|
+
}));
|
|
322
|
+
return new protocol_http_1.HttpRequest({
|
|
323
|
+
protocol,
|
|
324
|
+
hostname,
|
|
325
|
+
port,
|
|
326
|
+
method: "POST",
|
|
327
|
+
headers,
|
|
328
|
+
path: resolvedPath,
|
|
329
|
+
body,
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
exports.se_UpdateEnabledControlCommand = se_UpdateEnabledControlCommand;
|
|
333
|
+
const se_UpdateLandingZoneCommand = async (input, context) => {
|
|
334
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
|
+
const headers = {
|
|
336
|
+
"content-type": "application/json",
|
|
337
|
+
};
|
|
338
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-landingzone";
|
|
339
|
+
let body;
|
|
340
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
341
|
+
landingZoneIdentifier: [],
|
|
342
|
+
manifest: (_) => se_Manifest(_, context),
|
|
343
|
+
version: [],
|
|
344
|
+
}));
|
|
345
|
+
return new protocol_http_1.HttpRequest({
|
|
346
|
+
protocol,
|
|
347
|
+
hostname,
|
|
348
|
+
port,
|
|
349
|
+
method: "POST",
|
|
350
|
+
headers,
|
|
351
|
+
path: resolvedPath,
|
|
352
|
+
body,
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
exports.se_UpdateLandingZoneCommand = se_UpdateLandingZoneCommand;
|
|
356
|
+
const de_CreateLandingZoneCommand = async (output, context) => {
|
|
182
357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
183
|
-
return
|
|
358
|
+
return de_CreateLandingZoneCommandError(output, context);
|
|
184
359
|
}
|
|
185
360
|
const contents = (0, smithy_client_1.map)({
|
|
186
361
|
$metadata: deserializeMetadata(output),
|
|
187
362
|
});
|
|
188
363
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
189
364
|
const doc = (0, smithy_client_1.take)(data, {
|
|
365
|
+
arn: smithy_client_1.expectString,
|
|
190
366
|
operationIdentifier: smithy_client_1.expectString,
|
|
191
367
|
});
|
|
192
368
|
Object.assign(contents, doc);
|
|
193
369
|
return contents;
|
|
194
370
|
};
|
|
195
|
-
exports.
|
|
196
|
-
const
|
|
371
|
+
exports.de_CreateLandingZoneCommand = de_CreateLandingZoneCommand;
|
|
372
|
+
const de_CreateLandingZoneCommandError = async (output, context) => {
|
|
197
373
|
const parsedOutput = {
|
|
198
374
|
...output,
|
|
199
375
|
body: await parseErrorBody(output.body, context),
|
|
@@ -209,12 +385,6 @@ const de_DisableControlCommandError = async (output, context) => {
|
|
|
209
385
|
case "InternalServerException":
|
|
210
386
|
case "com.amazonaws.controltower#InternalServerException":
|
|
211
387
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
212
|
-
case "ResourceNotFoundException":
|
|
213
|
-
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
214
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
215
|
-
case "ServiceQuotaExceededException":
|
|
216
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
217
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
218
388
|
case "ThrottlingException":
|
|
219
389
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
220
390
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -230,23 +400,22 @@ const de_DisableControlCommandError = async (output, context) => {
|
|
|
230
400
|
});
|
|
231
401
|
}
|
|
232
402
|
};
|
|
233
|
-
const
|
|
403
|
+
const de_DeleteLandingZoneCommand = async (output, context) => {
|
|
234
404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
235
|
-
return
|
|
405
|
+
return de_DeleteLandingZoneCommandError(output, context);
|
|
236
406
|
}
|
|
237
407
|
const contents = (0, smithy_client_1.map)({
|
|
238
408
|
$metadata: deserializeMetadata(output),
|
|
239
409
|
});
|
|
240
410
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
241
411
|
const doc = (0, smithy_client_1.take)(data, {
|
|
242
|
-
arn: smithy_client_1.expectString,
|
|
243
412
|
operationIdentifier: smithy_client_1.expectString,
|
|
244
413
|
});
|
|
245
414
|
Object.assign(contents, doc);
|
|
246
415
|
return contents;
|
|
247
416
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
417
|
+
exports.de_DeleteLandingZoneCommand = de_DeleteLandingZoneCommand;
|
|
418
|
+
const de_DeleteLandingZoneCommandError = async (output, context) => {
|
|
250
419
|
const parsedOutput = {
|
|
251
420
|
...output,
|
|
252
421
|
body: await parseErrorBody(output.body, context),
|
|
@@ -265,9 +434,6 @@ const de_EnableControlCommandError = async (output, context) => {
|
|
|
265
434
|
case "ResourceNotFoundException":
|
|
266
435
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
267
436
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
268
|
-
case "ServiceQuotaExceededException":
|
|
269
|
-
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
270
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
271
437
|
case "ThrottlingException":
|
|
272
438
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
273
439
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -283,22 +449,22 @@ const de_EnableControlCommandError = async (output, context) => {
|
|
|
283
449
|
});
|
|
284
450
|
}
|
|
285
451
|
};
|
|
286
|
-
const
|
|
452
|
+
const de_DisableControlCommand = async (output, context) => {
|
|
287
453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
-
return
|
|
454
|
+
return de_DisableControlCommandError(output, context);
|
|
289
455
|
}
|
|
290
456
|
const contents = (0, smithy_client_1.map)({
|
|
291
457
|
$metadata: deserializeMetadata(output),
|
|
292
458
|
});
|
|
293
459
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
294
460
|
const doc = (0, smithy_client_1.take)(data, {
|
|
295
|
-
|
|
461
|
+
operationIdentifier: smithy_client_1.expectString,
|
|
296
462
|
});
|
|
297
463
|
Object.assign(contents, doc);
|
|
298
464
|
return contents;
|
|
299
465
|
};
|
|
300
|
-
exports.
|
|
301
|
-
const
|
|
466
|
+
exports.de_DisableControlCommand = de_DisableControlCommand;
|
|
467
|
+
const de_DisableControlCommandError = async (output, context) => {
|
|
302
468
|
const parsedOutput = {
|
|
303
469
|
...output,
|
|
304
470
|
body: await parseErrorBody(output.body, context),
|
|
@@ -308,12 +474,18 @@ const de_GetControlOperationCommandError = async (output, context) => {
|
|
|
308
474
|
case "AccessDeniedException":
|
|
309
475
|
case "com.amazonaws.controltower#AccessDeniedException":
|
|
310
476
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
477
|
+
case "ConflictException":
|
|
478
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
479
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
311
480
|
case "InternalServerException":
|
|
312
481
|
case "com.amazonaws.controltower#InternalServerException":
|
|
313
482
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
314
483
|
case "ResourceNotFoundException":
|
|
315
484
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
316
485
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
486
|
+
case "ServiceQuotaExceededException":
|
|
487
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
488
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
317
489
|
case "ThrottlingException":
|
|
318
490
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
319
491
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -329,22 +501,23 @@ const de_GetControlOperationCommandError = async (output, context) => {
|
|
|
329
501
|
});
|
|
330
502
|
}
|
|
331
503
|
};
|
|
332
|
-
const
|
|
504
|
+
const de_EnableControlCommand = async (output, context) => {
|
|
333
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
334
|
-
return
|
|
506
|
+
return de_EnableControlCommandError(output, context);
|
|
335
507
|
}
|
|
336
508
|
const contents = (0, smithy_client_1.map)({
|
|
337
509
|
$metadata: deserializeMetadata(output),
|
|
338
510
|
});
|
|
339
511
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
340
512
|
const doc = (0, smithy_client_1.take)(data, {
|
|
341
|
-
|
|
513
|
+
arn: smithy_client_1.expectString,
|
|
514
|
+
operationIdentifier: smithy_client_1.expectString,
|
|
342
515
|
});
|
|
343
516
|
Object.assign(contents, doc);
|
|
344
517
|
return contents;
|
|
345
518
|
};
|
|
346
|
-
exports.
|
|
347
|
-
const
|
|
519
|
+
exports.de_EnableControlCommand = de_EnableControlCommand;
|
|
520
|
+
const de_EnableControlCommandError = async (output, context) => {
|
|
348
521
|
const parsedOutput = {
|
|
349
522
|
...output,
|
|
350
523
|
body: await parseErrorBody(output.body, context),
|
|
@@ -354,12 +527,18 @@ const de_GetEnabledControlCommandError = async (output, context) => {
|
|
|
354
527
|
case "AccessDeniedException":
|
|
355
528
|
case "com.amazonaws.controltower#AccessDeniedException":
|
|
356
529
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
530
|
+
case "ConflictException":
|
|
531
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
532
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
357
533
|
case "InternalServerException":
|
|
358
534
|
case "com.amazonaws.controltower#InternalServerException":
|
|
359
535
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
360
536
|
case "ResourceNotFoundException":
|
|
361
537
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
362
538
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
539
|
+
case "ServiceQuotaExceededException":
|
|
540
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
541
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
363
542
|
case "ThrottlingException":
|
|
364
543
|
case "com.amazonaws.controltower#ThrottlingException":
|
|
365
544
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -375,23 +554,22 @@ const de_GetEnabledControlCommandError = async (output, context) => {
|
|
|
375
554
|
});
|
|
376
555
|
}
|
|
377
556
|
};
|
|
378
|
-
const
|
|
557
|
+
const de_GetControlOperationCommand = async (output, context) => {
|
|
379
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
-
return
|
|
559
|
+
return de_GetControlOperationCommandError(output, context);
|
|
381
560
|
}
|
|
382
561
|
const contents = (0, smithy_client_1.map)({
|
|
383
562
|
$metadata: deserializeMetadata(output),
|
|
384
563
|
});
|
|
385
564
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
386
565
|
const doc = (0, smithy_client_1.take)(data, {
|
|
387
|
-
|
|
388
|
-
nextToken: smithy_client_1.expectString,
|
|
566
|
+
controlOperation: (_) => de_ControlOperation(_, context),
|
|
389
567
|
});
|
|
390
568
|
Object.assign(contents, doc);
|
|
391
569
|
return contents;
|
|
392
570
|
};
|
|
393
|
-
exports.
|
|
394
|
-
const
|
|
571
|
+
exports.de_GetControlOperationCommand = de_GetControlOperationCommand;
|
|
572
|
+
const de_GetControlOperationCommandError = async (output, context) => {
|
|
395
573
|
const parsedOutput = {
|
|
396
574
|
...output,
|
|
397
575
|
body: await parseErrorBody(output.body, context),
|
|
@@ -422,34 +600,40 @@ const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
|
422
600
|
});
|
|
423
601
|
}
|
|
424
602
|
};
|
|
425
|
-
const
|
|
603
|
+
const de_GetEnabledControlCommand = async (output, context) => {
|
|
426
604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
427
|
-
return
|
|
605
|
+
return de_GetEnabledControlCommandError(output, context);
|
|
428
606
|
}
|
|
429
607
|
const contents = (0, smithy_client_1.map)({
|
|
430
608
|
$metadata: deserializeMetadata(output),
|
|
431
609
|
});
|
|
432
610
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
433
611
|
const doc = (0, smithy_client_1.take)(data, {
|
|
434
|
-
|
|
612
|
+
enabledControlDetails: (_) => de_EnabledControlDetails(_, context),
|
|
435
613
|
});
|
|
436
614
|
Object.assign(contents, doc);
|
|
437
615
|
return contents;
|
|
438
616
|
};
|
|
439
|
-
exports.
|
|
440
|
-
const
|
|
617
|
+
exports.de_GetEnabledControlCommand = de_GetEnabledControlCommand;
|
|
618
|
+
const de_GetEnabledControlCommandError = async (output, context) => {
|
|
441
619
|
const parsedOutput = {
|
|
442
620
|
...output,
|
|
443
621
|
body: await parseErrorBody(output.body, context),
|
|
444
622
|
};
|
|
445
623
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
624
|
switch (errorCode) {
|
|
625
|
+
case "AccessDeniedException":
|
|
626
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
627
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
447
628
|
case "InternalServerException":
|
|
448
629
|
case "com.amazonaws.controltower#InternalServerException":
|
|
449
630
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
450
631
|
case "ResourceNotFoundException":
|
|
451
632
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
452
633
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
+
case "ThrottlingException":
|
|
635
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
636
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
453
637
|
case "ValidationException":
|
|
454
638
|
case "com.amazonaws.controltower#ValidationException":
|
|
455
639
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -462,30 +646,40 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
462
646
|
});
|
|
463
647
|
}
|
|
464
648
|
};
|
|
465
|
-
const
|
|
466
|
-
if (output.statusCode !==
|
|
467
|
-
return
|
|
649
|
+
const de_GetLandingZoneCommand = async (output, context) => {
|
|
650
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
651
|
+
return de_GetLandingZoneCommandError(output, context);
|
|
468
652
|
}
|
|
469
653
|
const contents = (0, smithy_client_1.map)({
|
|
470
654
|
$metadata: deserializeMetadata(output),
|
|
471
655
|
});
|
|
472
|
-
|
|
656
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
657
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
658
|
+
landingZone: (_) => de_LandingZoneDetail(_, context),
|
|
659
|
+
});
|
|
660
|
+
Object.assign(contents, doc);
|
|
473
661
|
return contents;
|
|
474
662
|
};
|
|
475
|
-
exports.
|
|
476
|
-
const
|
|
663
|
+
exports.de_GetLandingZoneCommand = de_GetLandingZoneCommand;
|
|
664
|
+
const de_GetLandingZoneCommandError = async (output, context) => {
|
|
477
665
|
const parsedOutput = {
|
|
478
666
|
...output,
|
|
479
667
|
body: await parseErrorBody(output.body, context),
|
|
480
668
|
};
|
|
481
669
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
670
|
switch (errorCode) {
|
|
671
|
+
case "AccessDeniedException":
|
|
672
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
673
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
483
674
|
case "InternalServerException":
|
|
484
675
|
case "com.amazonaws.controltower#InternalServerException":
|
|
485
676
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
486
677
|
case "ResourceNotFoundException":
|
|
487
678
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
488
679
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
+
case "ThrottlingException":
|
|
681
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
682
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
489
683
|
case "ValidationException":
|
|
490
684
|
case "com.amazonaws.controltower#ValidationException":
|
|
491
685
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -498,30 +692,40 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
498
692
|
});
|
|
499
693
|
}
|
|
500
694
|
};
|
|
501
|
-
const
|
|
502
|
-
if (output.statusCode !==
|
|
503
|
-
return
|
|
695
|
+
const de_GetLandingZoneOperationCommand = async (output, context) => {
|
|
696
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
|
+
return de_GetLandingZoneOperationCommandError(output, context);
|
|
504
698
|
}
|
|
505
699
|
const contents = (0, smithy_client_1.map)({
|
|
506
700
|
$metadata: deserializeMetadata(output),
|
|
507
701
|
});
|
|
508
|
-
|
|
702
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
703
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
704
|
+
operationDetails: (_) => de_LandingZoneOperationDetail(_, context),
|
|
705
|
+
});
|
|
706
|
+
Object.assign(contents, doc);
|
|
509
707
|
return contents;
|
|
510
708
|
};
|
|
511
|
-
exports.
|
|
512
|
-
const
|
|
709
|
+
exports.de_GetLandingZoneOperationCommand = de_GetLandingZoneOperationCommand;
|
|
710
|
+
const de_GetLandingZoneOperationCommandError = async (output, context) => {
|
|
513
711
|
const parsedOutput = {
|
|
514
712
|
...output,
|
|
515
713
|
body: await parseErrorBody(output.body, context),
|
|
516
714
|
};
|
|
517
715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
716
|
switch (errorCode) {
|
|
717
|
+
case "AccessDeniedException":
|
|
718
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
719
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
519
720
|
case "InternalServerException":
|
|
520
721
|
case "com.amazonaws.controltower#InternalServerException":
|
|
521
722
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
723
|
case "ResourceNotFoundException":
|
|
523
724
|
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
524
725
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
726
|
+
case "ThrottlingException":
|
|
727
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
728
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
525
729
|
case "ValidationException":
|
|
526
730
|
case "com.amazonaws.controltower#ValidationException":
|
|
527
731
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -534,10 +738,363 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
534
738
|
});
|
|
535
739
|
}
|
|
536
740
|
};
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
741
|
+
const de_ListEnabledControlsCommand = async (output, context) => {
|
|
742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
+
return de_ListEnabledControlsCommandError(output, context);
|
|
744
|
+
}
|
|
745
|
+
const contents = (0, smithy_client_1.map)({
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
});
|
|
748
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
749
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
750
|
+
enabledControls: smithy_client_1._json,
|
|
751
|
+
nextToken: smithy_client_1.expectString,
|
|
752
|
+
});
|
|
753
|
+
Object.assign(contents, doc);
|
|
754
|
+
return contents;
|
|
755
|
+
};
|
|
756
|
+
exports.de_ListEnabledControlsCommand = de_ListEnabledControlsCommand;
|
|
757
|
+
const de_ListEnabledControlsCommandError = async (output, context) => {
|
|
758
|
+
const parsedOutput = {
|
|
759
|
+
...output,
|
|
760
|
+
body: await parseErrorBody(output.body, context),
|
|
761
|
+
};
|
|
762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
+
switch (errorCode) {
|
|
764
|
+
case "AccessDeniedException":
|
|
765
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
766
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
+
case "InternalServerException":
|
|
768
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
769
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
+
case "ResourceNotFoundException":
|
|
771
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
772
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ThrottlingException":
|
|
774
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
775
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
+
case "ValidationException":
|
|
777
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
778
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
+
default:
|
|
780
|
+
const parsedBody = parsedOutput.body;
|
|
781
|
+
return throwDefaultError({
|
|
782
|
+
output,
|
|
783
|
+
parsedBody,
|
|
784
|
+
errorCode,
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
const de_ListLandingZonesCommand = async (output, context) => {
|
|
789
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
+
return de_ListLandingZonesCommandError(output, context);
|
|
791
|
+
}
|
|
792
|
+
const contents = (0, smithy_client_1.map)({
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
});
|
|
795
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
796
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
+
landingZones: smithy_client_1._json,
|
|
798
|
+
nextToken: smithy_client_1.expectString,
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
801
|
+
return contents;
|
|
802
|
+
};
|
|
803
|
+
exports.de_ListLandingZonesCommand = de_ListLandingZonesCommand;
|
|
804
|
+
const de_ListLandingZonesCommandError = async (output, context) => {
|
|
805
|
+
const parsedOutput = {
|
|
806
|
+
...output,
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
|
+
};
|
|
809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
+
switch (errorCode) {
|
|
811
|
+
case "AccessDeniedException":
|
|
812
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
813
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
814
|
+
case "InternalServerException":
|
|
815
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
816
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
+
case "ThrottlingException":
|
|
818
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
819
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ValidationException":
|
|
821
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
822
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
return throwDefaultError({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
errorCode,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
835
|
+
}
|
|
836
|
+
const contents = (0, smithy_client_1.map)({
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
});
|
|
839
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
840
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
841
|
+
tags: smithy_client_1._json,
|
|
842
|
+
});
|
|
843
|
+
Object.assign(contents, doc);
|
|
844
|
+
return contents;
|
|
845
|
+
};
|
|
846
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
847
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
848
|
+
const parsedOutput = {
|
|
849
|
+
...output,
|
|
850
|
+
body: await parseErrorBody(output.body, context),
|
|
851
|
+
};
|
|
852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
+
switch (errorCode) {
|
|
854
|
+
case "InternalServerException":
|
|
855
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
856
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
+
case "ResourceNotFoundException":
|
|
858
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
859
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
|
+
case "ValidationException":
|
|
861
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
862
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
863
|
+
default:
|
|
864
|
+
const parsedBody = parsedOutput.body;
|
|
865
|
+
return throwDefaultError({
|
|
866
|
+
output,
|
|
867
|
+
parsedBody,
|
|
868
|
+
errorCode,
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
const de_ResetLandingZoneCommand = async (output, context) => {
|
|
873
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
+
return de_ResetLandingZoneCommandError(output, context);
|
|
875
|
+
}
|
|
876
|
+
const contents = (0, smithy_client_1.map)({
|
|
877
|
+
$metadata: deserializeMetadata(output),
|
|
878
|
+
});
|
|
879
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
880
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
881
|
+
operationIdentifier: smithy_client_1.expectString,
|
|
882
|
+
});
|
|
883
|
+
Object.assign(contents, doc);
|
|
884
|
+
return contents;
|
|
885
|
+
};
|
|
886
|
+
exports.de_ResetLandingZoneCommand = de_ResetLandingZoneCommand;
|
|
887
|
+
const de_ResetLandingZoneCommandError = async (output, context) => {
|
|
888
|
+
const parsedOutput = {
|
|
889
|
+
...output,
|
|
890
|
+
body: await parseErrorBody(output.body, context),
|
|
891
|
+
};
|
|
892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
switch (errorCode) {
|
|
894
|
+
case "AccessDeniedException":
|
|
895
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
896
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
897
|
+
case "ConflictException":
|
|
898
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
899
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
900
|
+
case "InternalServerException":
|
|
901
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
902
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
903
|
+
case "ResourceNotFoundException":
|
|
904
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
905
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
906
|
+
case "ThrottlingException":
|
|
907
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
908
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
909
|
+
case "ValidationException":
|
|
910
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
911
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
912
|
+
default:
|
|
913
|
+
const parsedBody = parsedOutput.body;
|
|
914
|
+
return throwDefaultError({
|
|
915
|
+
output,
|
|
916
|
+
parsedBody,
|
|
917
|
+
errorCode,
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
922
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
923
|
+
return de_TagResourceCommandError(output, context);
|
|
924
|
+
}
|
|
925
|
+
const contents = (0, smithy_client_1.map)({
|
|
926
|
+
$metadata: deserializeMetadata(output),
|
|
927
|
+
});
|
|
928
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
929
|
+
return contents;
|
|
930
|
+
};
|
|
931
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
932
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
933
|
+
const parsedOutput = {
|
|
934
|
+
...output,
|
|
935
|
+
body: await parseErrorBody(output.body, context),
|
|
936
|
+
};
|
|
937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
+
switch (errorCode) {
|
|
939
|
+
case "InternalServerException":
|
|
940
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
941
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
+
case "ResourceNotFoundException":
|
|
943
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
944
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
945
|
+
case "ValidationException":
|
|
946
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
947
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
|
+
default:
|
|
949
|
+
const parsedBody = parsedOutput.body;
|
|
950
|
+
return throwDefaultError({
|
|
951
|
+
output,
|
|
952
|
+
parsedBody,
|
|
953
|
+
errorCode,
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
958
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
959
|
+
return de_UntagResourceCommandError(output, context);
|
|
960
|
+
}
|
|
961
|
+
const contents = (0, smithy_client_1.map)({
|
|
962
|
+
$metadata: deserializeMetadata(output),
|
|
963
|
+
});
|
|
964
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
965
|
+
return contents;
|
|
966
|
+
};
|
|
967
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
968
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
969
|
+
const parsedOutput = {
|
|
970
|
+
...output,
|
|
971
|
+
body: await parseErrorBody(output.body, context),
|
|
972
|
+
};
|
|
973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
|
+
switch (errorCode) {
|
|
975
|
+
case "InternalServerException":
|
|
976
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
977
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
978
|
+
case "ResourceNotFoundException":
|
|
979
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
+
case "ValidationException":
|
|
982
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
983
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
+
default:
|
|
985
|
+
const parsedBody = parsedOutput.body;
|
|
986
|
+
return throwDefaultError({
|
|
987
|
+
output,
|
|
988
|
+
parsedBody,
|
|
989
|
+
errorCode,
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
const de_UpdateEnabledControlCommand = async (output, context) => {
|
|
994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
+
return de_UpdateEnabledControlCommandError(output, context);
|
|
996
|
+
}
|
|
997
|
+
const contents = (0, smithy_client_1.map)({
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
});
|
|
1000
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1001
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1002
|
+
operationIdentifier: smithy_client_1.expectString,
|
|
1003
|
+
});
|
|
1004
|
+
Object.assign(contents, doc);
|
|
1005
|
+
return contents;
|
|
1006
|
+
};
|
|
1007
|
+
exports.de_UpdateEnabledControlCommand = de_UpdateEnabledControlCommand;
|
|
1008
|
+
const de_UpdateEnabledControlCommandError = async (output, context) => {
|
|
1009
|
+
const parsedOutput = {
|
|
1010
|
+
...output,
|
|
1011
|
+
body: await parseErrorBody(output.body, context),
|
|
1012
|
+
};
|
|
1013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
+
switch (errorCode) {
|
|
1015
|
+
case "AccessDeniedException":
|
|
1016
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1017
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "ConflictException":
|
|
1019
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1020
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1021
|
+
case "InternalServerException":
|
|
1022
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1023
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1024
|
+
case "ResourceNotFoundException":
|
|
1025
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1026
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1027
|
+
case "ServiceQuotaExceededException":
|
|
1028
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
1029
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1030
|
+
case "ThrottlingException":
|
|
1031
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1032
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1033
|
+
case "ValidationException":
|
|
1034
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1035
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1036
|
+
default:
|
|
1037
|
+
const parsedBody = parsedOutput.body;
|
|
1038
|
+
return throwDefaultError({
|
|
1039
|
+
output,
|
|
1040
|
+
parsedBody,
|
|
1041
|
+
errorCode,
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
const de_UpdateLandingZoneCommand = async (output, context) => {
|
|
1046
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
+
return de_UpdateLandingZoneCommandError(output, context);
|
|
1048
|
+
}
|
|
1049
|
+
const contents = (0, smithy_client_1.map)({
|
|
1050
|
+
$metadata: deserializeMetadata(output),
|
|
1051
|
+
});
|
|
1052
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1054
|
+
operationIdentifier: smithy_client_1.expectString,
|
|
1055
|
+
});
|
|
1056
|
+
Object.assign(contents, doc);
|
|
1057
|
+
return contents;
|
|
1058
|
+
};
|
|
1059
|
+
exports.de_UpdateLandingZoneCommand = de_UpdateLandingZoneCommand;
|
|
1060
|
+
const de_UpdateLandingZoneCommandError = async (output, context) => {
|
|
1061
|
+
const parsedOutput = {
|
|
1062
|
+
...output,
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
|
+
};
|
|
1065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
switch (errorCode) {
|
|
1067
|
+
case "AccessDeniedException":
|
|
1068
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "ConflictException":
|
|
1071
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1072
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "InternalServerException":
|
|
1074
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1075
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ResourceNotFoundException":
|
|
1077
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1078
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "ThrottlingException":
|
|
1080
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1081
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "ValidationException":
|
|
1083
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1084
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1085
|
+
default:
|
|
1086
|
+
const parsedBody = parsedOutput.body;
|
|
1087
|
+
return throwDefaultError({
|
|
1088
|
+
output,
|
|
1089
|
+
parsedBody,
|
|
1090
|
+
errorCode,
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ControlTowerServiceException_1.ControlTowerServiceException);
|
|
1095
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1096
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1097
|
+
const data = parsedOutput.body;
|
|
541
1098
|
const doc = (0, smithy_client_1.take)(data, {
|
|
542
1099
|
message: smithy_client_1.expectString,
|
|
543
1100
|
});
|
|
@@ -633,6 +1190,25 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
633
1190
|
});
|
|
634
1191
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
635
1192
|
};
|
|
1193
|
+
const se_EnabledControlParameter = (input, context) => {
|
|
1194
|
+
return (0, smithy_client_1.take)(input, {
|
|
1195
|
+
key: [],
|
|
1196
|
+
value: (_) => se_Document(_, context),
|
|
1197
|
+
});
|
|
1198
|
+
};
|
|
1199
|
+
const se_EnabledControlParameters = (input, context) => {
|
|
1200
|
+
return input
|
|
1201
|
+
.filter((e) => e != null)
|
|
1202
|
+
.map((entry) => {
|
|
1203
|
+
return se_EnabledControlParameter(entry, context);
|
|
1204
|
+
});
|
|
1205
|
+
};
|
|
1206
|
+
const se_Manifest = (input, context) => {
|
|
1207
|
+
return input;
|
|
1208
|
+
};
|
|
1209
|
+
const se_Document = (input, context) => {
|
|
1210
|
+
return input;
|
|
1211
|
+
};
|
|
636
1212
|
const de_ControlOperation = (output, context) => {
|
|
637
1213
|
return (0, smithy_client_1.take)(output, {
|
|
638
1214
|
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -642,6 +1218,56 @@ const de_ControlOperation = (output, context) => {
|
|
|
642
1218
|
statusMessage: smithy_client_1.expectString,
|
|
643
1219
|
});
|
|
644
1220
|
};
|
|
1221
|
+
const de_EnabledControlDetails = (output, context) => {
|
|
1222
|
+
return (0, smithy_client_1.take)(output, {
|
|
1223
|
+
arn: smithy_client_1.expectString,
|
|
1224
|
+
controlIdentifier: smithy_client_1.expectString,
|
|
1225
|
+
driftStatusSummary: smithy_client_1._json,
|
|
1226
|
+
parameters: (_) => de_EnabledControlParameterSummaries(_, context),
|
|
1227
|
+
statusSummary: smithy_client_1._json,
|
|
1228
|
+
targetIdentifier: smithy_client_1.expectString,
|
|
1229
|
+
targetRegions: smithy_client_1._json,
|
|
1230
|
+
});
|
|
1231
|
+
};
|
|
1232
|
+
const de_EnabledControlParameterSummaries = (output, context) => {
|
|
1233
|
+
const retVal = (output || [])
|
|
1234
|
+
.filter((e) => e != null)
|
|
1235
|
+
.map((entry) => {
|
|
1236
|
+
return de_EnabledControlParameterSummary(entry, context);
|
|
1237
|
+
});
|
|
1238
|
+
return retVal;
|
|
1239
|
+
};
|
|
1240
|
+
const de_EnabledControlParameterSummary = (output, context) => {
|
|
1241
|
+
return (0, smithy_client_1.take)(output, {
|
|
1242
|
+
key: smithy_client_1.expectString,
|
|
1243
|
+
value: (_) => de_Document(_, context),
|
|
1244
|
+
});
|
|
1245
|
+
};
|
|
1246
|
+
const de_LandingZoneDetail = (output, context) => {
|
|
1247
|
+
return (0, smithy_client_1.take)(output, {
|
|
1248
|
+
arn: smithy_client_1.expectString,
|
|
1249
|
+
driftStatus: smithy_client_1._json,
|
|
1250
|
+
latestAvailableVersion: smithy_client_1.expectString,
|
|
1251
|
+
manifest: (_) => de_Manifest(_, context),
|
|
1252
|
+
status: smithy_client_1.expectString,
|
|
1253
|
+
version: smithy_client_1.expectString,
|
|
1254
|
+
});
|
|
1255
|
+
};
|
|
1256
|
+
const de_LandingZoneOperationDetail = (output, context) => {
|
|
1257
|
+
return (0, smithy_client_1.take)(output, {
|
|
1258
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1259
|
+
operationType: smithy_client_1.expectString,
|
|
1260
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1261
|
+
status: smithy_client_1.expectString,
|
|
1262
|
+
statusMessage: smithy_client_1.expectString,
|
|
1263
|
+
});
|
|
1264
|
+
};
|
|
1265
|
+
const de_Manifest = (output, context) => {
|
|
1266
|
+
return output;
|
|
1267
|
+
};
|
|
1268
|
+
const de_Document = (output, context) => {
|
|
1269
|
+
return output;
|
|
1270
|
+
};
|
|
645
1271
|
const deserializeMetadata = (output) => ({
|
|
646
1272
|
httpStatusCode: output.statusCode,
|
|
647
1273
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|