@aws-sdk/client-controltower 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ControlTower.js +1 -43
- package/dist-cjs/ControlTowerClient.js +1 -43
- package/dist-cjs/commands/CreateLandingZoneCommand.js +1 -28
- package/dist-cjs/commands/DeleteLandingZoneCommand.js +1 -28
- package/dist-cjs/commands/DisableControlCommand.js +1 -28
- package/dist-cjs/commands/EnableControlCommand.js +1 -28
- package/dist-cjs/commands/GetControlOperationCommand.js +1 -28
- package/dist-cjs/commands/GetEnabledControlCommand.js +1 -28
- package/dist-cjs/commands/GetLandingZoneCommand.js +1 -28
- package/dist-cjs/commands/GetLandingZoneOperationCommand.js +1 -28
- package/dist-cjs/commands/ListEnabledControlsCommand.js +1 -28
- package/dist-cjs/commands/ListLandingZonesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ResetLandingZoneCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateEnabledControlCommand.js +1 -28
- package/dist-cjs/commands/UpdateLandingZoneCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -19
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1877 -11
- package/dist-cjs/models/ControlTowerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -143
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEnabledControlsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLandingZonesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1209
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1878 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ConflictException: () => ConflictException,
|
|
26
|
+
ControlOperationStatus: () => ControlOperationStatus,
|
|
27
|
+
ControlOperationType: () => ControlOperationType,
|
|
28
|
+
ControlTower: () => ControlTower,
|
|
29
|
+
ControlTowerClient: () => ControlTowerClient,
|
|
30
|
+
ControlTowerServiceException: () => ControlTowerServiceException,
|
|
31
|
+
CreateLandingZoneCommand: () => CreateLandingZoneCommand,
|
|
32
|
+
DeleteLandingZoneCommand: () => DeleteLandingZoneCommand,
|
|
33
|
+
DisableControlCommand: () => DisableControlCommand,
|
|
34
|
+
DriftStatus: () => DriftStatus,
|
|
35
|
+
EnableControlCommand: () => EnableControlCommand,
|
|
36
|
+
EnablementStatus: () => EnablementStatus,
|
|
37
|
+
GetControlOperationCommand: () => GetControlOperationCommand,
|
|
38
|
+
GetEnabledControlCommand: () => GetEnabledControlCommand,
|
|
39
|
+
GetLandingZoneCommand: () => GetLandingZoneCommand,
|
|
40
|
+
GetLandingZoneOperationCommand: () => GetLandingZoneOperationCommand,
|
|
41
|
+
InternalServerException: () => InternalServerException,
|
|
42
|
+
LandingZoneDriftStatus: () => LandingZoneDriftStatus,
|
|
43
|
+
LandingZoneOperationStatus: () => LandingZoneOperationStatus,
|
|
44
|
+
LandingZoneOperationType: () => LandingZoneOperationType,
|
|
45
|
+
LandingZoneStatus: () => LandingZoneStatus,
|
|
46
|
+
ListEnabledControlsCommand: () => ListEnabledControlsCommand,
|
|
47
|
+
ListLandingZonesCommand: () => ListLandingZonesCommand,
|
|
48
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
49
|
+
ResetLandingZoneCommand: () => ResetLandingZoneCommand,
|
|
50
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
51
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
52
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
53
|
+
ThrottlingException: () => ThrottlingException,
|
|
54
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
55
|
+
UpdateEnabledControlCommand: () => UpdateEnabledControlCommand,
|
|
56
|
+
UpdateLandingZoneCommand: () => UpdateLandingZoneCommand,
|
|
57
|
+
ValidationException: () => ValidationException,
|
|
58
|
+
__Client: () => import_smithy_client.Client,
|
|
59
|
+
paginateListEnabledControls: () => paginateListEnabledControls,
|
|
60
|
+
paginateListLandingZones: () => paginateListLandingZones
|
|
61
|
+
});
|
|
62
|
+
module.exports = __toCommonJS(src_exports);
|
|
63
|
+
|
|
64
|
+
// src/ControlTowerClient.ts
|
|
65
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
66
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
67
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
68
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
69
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
70
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
71
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
72
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
73
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// src/endpoint/EndpointParameters.ts
|
|
77
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
78
|
+
return {
|
|
79
|
+
...options,
|
|
80
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
81
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
82
|
+
defaultSigningName: "controltower"
|
|
83
|
+
};
|
|
84
|
+
}, "resolveClientEndpointParameters");
|
|
85
|
+
var commonParams = {
|
|
86
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
87
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
88
|
+
Region: { type: "builtInParams", name: "region" },
|
|
89
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// src/ControlTowerClient.ts
|
|
93
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
94
|
+
|
|
95
|
+
// src/runtimeExtensions.ts
|
|
96
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
97
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
98
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
99
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
100
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
101
|
+
const extensionConfiguration = {
|
|
102
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
103
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
104
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
105
|
+
};
|
|
106
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
107
|
+
return {
|
|
108
|
+
...runtimeConfig,
|
|
109
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
110
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
111
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
112
|
+
};
|
|
113
|
+
}, "resolveRuntimeExtensions");
|
|
114
|
+
|
|
115
|
+
// src/ControlTowerClient.ts
|
|
116
|
+
var _ControlTowerClient = class _ControlTowerClient extends import_smithy_client.Client {
|
|
117
|
+
constructor(...[configuration]) {
|
|
118
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
119
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
120
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
121
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
122
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
123
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
124
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
125
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
126
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
127
|
+
super(_config_8);
|
|
128
|
+
this.config = _config_8;
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
134
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
139
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
140
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
141
|
+
*/
|
|
142
|
+
destroy() {
|
|
143
|
+
super.destroy();
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
__name(_ControlTowerClient, "ControlTowerClient");
|
|
147
|
+
var ControlTowerClient = _ControlTowerClient;
|
|
148
|
+
|
|
149
|
+
// src/ControlTower.ts
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// src/commands/CreateLandingZoneCommand.ts
|
|
153
|
+
|
|
154
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
155
|
+
|
|
156
|
+
var import_types = require("@smithy/types");
|
|
157
|
+
|
|
158
|
+
// src/protocols/Aws_restJson1.ts
|
|
159
|
+
var import_core = require("@smithy/core");
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
// src/models/ControlTowerServiceException.ts
|
|
163
|
+
|
|
164
|
+
var _ControlTowerServiceException = class _ControlTowerServiceException extends import_smithy_client.ServiceException {
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
constructor(options) {
|
|
169
|
+
super(options);
|
|
170
|
+
Object.setPrototypeOf(this, _ControlTowerServiceException.prototype);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
__name(_ControlTowerServiceException, "ControlTowerServiceException");
|
|
174
|
+
var ControlTowerServiceException = _ControlTowerServiceException;
|
|
175
|
+
|
|
176
|
+
// src/models/models_0.ts
|
|
177
|
+
var _AccessDeniedException = class _AccessDeniedException extends ControlTowerServiceException {
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "AccessDeniedException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts
|
|
186
|
+
});
|
|
187
|
+
this.name = "AccessDeniedException";
|
|
188
|
+
this.$fault = "client";
|
|
189
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
193
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
194
|
+
var _ConflictException = class _ConflictException extends ControlTowerServiceException {
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
constructor(opts) {
|
|
199
|
+
super({
|
|
200
|
+
name: "ConflictException",
|
|
201
|
+
$fault: "client",
|
|
202
|
+
...opts
|
|
203
|
+
});
|
|
204
|
+
this.name = "ConflictException";
|
|
205
|
+
this.$fault = "client";
|
|
206
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
__name(_ConflictException, "ConflictException");
|
|
210
|
+
var ConflictException = _ConflictException;
|
|
211
|
+
var _InternalServerException = class _InternalServerException extends ControlTowerServiceException {
|
|
212
|
+
/**
|
|
213
|
+
* @internal
|
|
214
|
+
*/
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "InternalServerException",
|
|
218
|
+
$fault: "server",
|
|
219
|
+
...opts
|
|
220
|
+
});
|
|
221
|
+
this.name = "InternalServerException";
|
|
222
|
+
this.$fault = "server";
|
|
223
|
+
this.$retryable = {};
|
|
224
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
__name(_InternalServerException, "InternalServerException");
|
|
228
|
+
var InternalServerException = _InternalServerException;
|
|
229
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ControlTowerServiceException {
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
*/
|
|
233
|
+
constructor(opts) {
|
|
234
|
+
super({
|
|
235
|
+
name: "ResourceNotFoundException",
|
|
236
|
+
$fault: "client",
|
|
237
|
+
...opts
|
|
238
|
+
});
|
|
239
|
+
this.name = "ResourceNotFoundException";
|
|
240
|
+
this.$fault = "client";
|
|
241
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
245
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
246
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ControlTowerServiceException {
|
|
247
|
+
/**
|
|
248
|
+
* @internal
|
|
249
|
+
*/
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "ServiceQuotaExceededException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts
|
|
255
|
+
});
|
|
256
|
+
this.name = "ServiceQuotaExceededException";
|
|
257
|
+
this.$fault = "client";
|
|
258
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
262
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
263
|
+
var _ThrottlingException = class _ThrottlingException extends ControlTowerServiceException {
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
constructor(opts) {
|
|
268
|
+
super({
|
|
269
|
+
name: "ThrottlingException",
|
|
270
|
+
$fault: "client",
|
|
271
|
+
...opts
|
|
272
|
+
});
|
|
273
|
+
this.name = "ThrottlingException";
|
|
274
|
+
this.$fault = "client";
|
|
275
|
+
this.$retryable = {
|
|
276
|
+
throttling: true
|
|
277
|
+
};
|
|
278
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
279
|
+
this.serviceCode = opts.serviceCode;
|
|
280
|
+
this.quotaCode = opts.quotaCode;
|
|
281
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
285
|
+
var ThrottlingException = _ThrottlingException;
|
|
286
|
+
var _ValidationException = class _ValidationException extends ControlTowerServiceException {
|
|
287
|
+
/**
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
constructor(opts) {
|
|
291
|
+
super({
|
|
292
|
+
name: "ValidationException",
|
|
293
|
+
$fault: "client",
|
|
294
|
+
...opts
|
|
295
|
+
});
|
|
296
|
+
this.name = "ValidationException";
|
|
297
|
+
this.$fault = "client";
|
|
298
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
__name(_ValidationException, "ValidationException");
|
|
302
|
+
var ValidationException = _ValidationException;
|
|
303
|
+
var ControlOperationType = {
|
|
304
|
+
DISABLE_CONTROL: "DISABLE_CONTROL",
|
|
305
|
+
ENABLE_CONTROL: "ENABLE_CONTROL",
|
|
306
|
+
UPDATE_ENABLED_CONTROL: "UPDATE_ENABLED_CONTROL"
|
|
307
|
+
};
|
|
308
|
+
var ControlOperationStatus = {
|
|
309
|
+
FAILED: "FAILED",
|
|
310
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
311
|
+
SUCCEEDED: "SUCCEEDED"
|
|
312
|
+
};
|
|
313
|
+
var DriftStatus = {
|
|
314
|
+
DRIFTED: "DRIFTED",
|
|
315
|
+
IN_SYNC: "IN_SYNC",
|
|
316
|
+
NOT_CHECKING: "NOT_CHECKING",
|
|
317
|
+
UNKNOWN: "UNKNOWN"
|
|
318
|
+
};
|
|
319
|
+
var EnablementStatus = {
|
|
320
|
+
FAILED: "FAILED",
|
|
321
|
+
SUCCEEDED: "SUCCEEDED",
|
|
322
|
+
UNDER_CHANGE: "UNDER_CHANGE"
|
|
323
|
+
};
|
|
324
|
+
var LandingZoneDriftStatus = {
|
|
325
|
+
DRIFTED: "DRIFTED",
|
|
326
|
+
IN_SYNC: "IN_SYNC"
|
|
327
|
+
};
|
|
328
|
+
var LandingZoneStatus = {
|
|
329
|
+
ACTIVE: "ACTIVE",
|
|
330
|
+
FAILED: "FAILED",
|
|
331
|
+
PROCESSING: "PROCESSING"
|
|
332
|
+
};
|
|
333
|
+
var LandingZoneOperationType = {
|
|
334
|
+
CREATE: "CREATE",
|
|
335
|
+
DELETE: "DELETE",
|
|
336
|
+
RESET: "RESET",
|
|
337
|
+
UPDATE: "UPDATE"
|
|
338
|
+
};
|
|
339
|
+
var LandingZoneOperationStatus = {
|
|
340
|
+
FAILED: "FAILED",
|
|
341
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
342
|
+
SUCCEEDED: "SUCCEEDED"
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// src/protocols/Aws_restJson1.ts
|
|
346
|
+
var se_CreateLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
347
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
348
|
+
const headers = {
|
|
349
|
+
"content-type": "application/json"
|
|
350
|
+
};
|
|
351
|
+
b.bp("/create-landingzone");
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify(
|
|
354
|
+
(0, import_smithy_client.take)(input, {
|
|
355
|
+
manifest: (_) => se_Manifest(_, context),
|
|
356
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
357
|
+
version: []
|
|
358
|
+
})
|
|
359
|
+
);
|
|
360
|
+
b.m("POST").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
362
|
+
}, "se_CreateLandingZoneCommand");
|
|
363
|
+
var se_DeleteLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
364
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
365
|
+
const headers = {
|
|
366
|
+
"content-type": "application/json"
|
|
367
|
+
};
|
|
368
|
+
b.bp("/delete-landingzone");
|
|
369
|
+
let body;
|
|
370
|
+
body = JSON.stringify(
|
|
371
|
+
(0, import_smithy_client.take)(input, {
|
|
372
|
+
landingZoneIdentifier: []
|
|
373
|
+
})
|
|
374
|
+
);
|
|
375
|
+
b.m("POST").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
377
|
+
}, "se_DeleteLandingZoneCommand");
|
|
378
|
+
var se_DisableControlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
379
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
380
|
+
const headers = {
|
|
381
|
+
"content-type": "application/json"
|
|
382
|
+
};
|
|
383
|
+
b.bp("/disable-control");
|
|
384
|
+
let body;
|
|
385
|
+
body = JSON.stringify(
|
|
386
|
+
(0, import_smithy_client.take)(input, {
|
|
387
|
+
controlIdentifier: [],
|
|
388
|
+
targetIdentifier: []
|
|
389
|
+
})
|
|
390
|
+
);
|
|
391
|
+
b.m("POST").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
393
|
+
}, "se_DisableControlCommand");
|
|
394
|
+
var se_EnableControlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
395
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
396
|
+
const headers = {
|
|
397
|
+
"content-type": "application/json"
|
|
398
|
+
};
|
|
399
|
+
b.bp("/enable-control");
|
|
400
|
+
let body;
|
|
401
|
+
body = JSON.stringify(
|
|
402
|
+
(0, import_smithy_client.take)(input, {
|
|
403
|
+
controlIdentifier: [],
|
|
404
|
+
parameters: (_) => se_EnabledControlParameters(_, context),
|
|
405
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
406
|
+
targetIdentifier: []
|
|
407
|
+
})
|
|
408
|
+
);
|
|
409
|
+
b.m("POST").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
411
|
+
}, "se_EnableControlCommand");
|
|
412
|
+
var se_GetControlOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
414
|
+
const headers = {
|
|
415
|
+
"content-type": "application/json"
|
|
416
|
+
};
|
|
417
|
+
b.bp("/get-control-operation");
|
|
418
|
+
let body;
|
|
419
|
+
body = JSON.stringify(
|
|
420
|
+
(0, import_smithy_client.take)(input, {
|
|
421
|
+
operationIdentifier: []
|
|
422
|
+
})
|
|
423
|
+
);
|
|
424
|
+
b.m("POST").h(headers).b(body);
|
|
425
|
+
return b.build();
|
|
426
|
+
}, "se_GetControlOperationCommand");
|
|
427
|
+
var se_GetEnabledControlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
428
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
429
|
+
const headers = {
|
|
430
|
+
"content-type": "application/json"
|
|
431
|
+
};
|
|
432
|
+
b.bp("/get-enabled-control");
|
|
433
|
+
let body;
|
|
434
|
+
body = JSON.stringify(
|
|
435
|
+
(0, import_smithy_client.take)(input, {
|
|
436
|
+
enabledControlIdentifier: []
|
|
437
|
+
})
|
|
438
|
+
);
|
|
439
|
+
b.m("POST").h(headers).b(body);
|
|
440
|
+
return b.build();
|
|
441
|
+
}, "se_GetEnabledControlCommand");
|
|
442
|
+
var se_GetLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
443
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
444
|
+
const headers = {
|
|
445
|
+
"content-type": "application/json"
|
|
446
|
+
};
|
|
447
|
+
b.bp("/get-landingzone");
|
|
448
|
+
let body;
|
|
449
|
+
body = JSON.stringify(
|
|
450
|
+
(0, import_smithy_client.take)(input, {
|
|
451
|
+
landingZoneIdentifier: []
|
|
452
|
+
})
|
|
453
|
+
);
|
|
454
|
+
b.m("POST").h(headers).b(body);
|
|
455
|
+
return b.build();
|
|
456
|
+
}, "se_GetLandingZoneCommand");
|
|
457
|
+
var se_GetLandingZoneOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
458
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
459
|
+
const headers = {
|
|
460
|
+
"content-type": "application/json"
|
|
461
|
+
};
|
|
462
|
+
b.bp("/get-landingzone-operation");
|
|
463
|
+
let body;
|
|
464
|
+
body = JSON.stringify(
|
|
465
|
+
(0, import_smithy_client.take)(input, {
|
|
466
|
+
operationIdentifier: []
|
|
467
|
+
})
|
|
468
|
+
);
|
|
469
|
+
b.m("POST").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
471
|
+
}, "se_GetLandingZoneOperationCommand");
|
|
472
|
+
var se_ListEnabledControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
473
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
474
|
+
const headers = {
|
|
475
|
+
"content-type": "application/json"
|
|
476
|
+
};
|
|
477
|
+
b.bp("/list-enabled-controls");
|
|
478
|
+
let body;
|
|
479
|
+
body = JSON.stringify(
|
|
480
|
+
(0, import_smithy_client.take)(input, {
|
|
481
|
+
maxResults: [],
|
|
482
|
+
nextToken: [],
|
|
483
|
+
targetIdentifier: []
|
|
484
|
+
})
|
|
485
|
+
);
|
|
486
|
+
b.m("POST").h(headers).b(body);
|
|
487
|
+
return b.build();
|
|
488
|
+
}, "se_ListEnabledControlsCommand");
|
|
489
|
+
var se_ListLandingZonesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
491
|
+
const headers = {
|
|
492
|
+
"content-type": "application/json"
|
|
493
|
+
};
|
|
494
|
+
b.bp("/list-landingzones");
|
|
495
|
+
let body;
|
|
496
|
+
body = JSON.stringify(
|
|
497
|
+
(0, import_smithy_client.take)(input, {
|
|
498
|
+
maxResults: [],
|
|
499
|
+
nextToken: []
|
|
500
|
+
})
|
|
501
|
+
);
|
|
502
|
+
b.m("POST").h(headers).b(body);
|
|
503
|
+
return b.build();
|
|
504
|
+
}, "se_ListLandingZonesCommand");
|
|
505
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
507
|
+
const headers = {};
|
|
508
|
+
b.bp("/tags/{resourceArn}");
|
|
509
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
510
|
+
let body;
|
|
511
|
+
b.m("GET").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
513
|
+
}, "se_ListTagsForResourceCommand");
|
|
514
|
+
var se_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json"
|
|
518
|
+
};
|
|
519
|
+
b.bp("/reset-landingzone");
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(
|
|
522
|
+
(0, import_smithy_client.take)(input, {
|
|
523
|
+
landingZoneIdentifier: []
|
|
524
|
+
})
|
|
525
|
+
);
|
|
526
|
+
b.m("POST").h(headers).b(body);
|
|
527
|
+
return b.build();
|
|
528
|
+
}, "se_ResetLandingZoneCommand");
|
|
529
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
530
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
531
|
+
const headers = {
|
|
532
|
+
"content-type": "application/json"
|
|
533
|
+
};
|
|
534
|
+
b.bp("/tags/{resourceArn}");
|
|
535
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
536
|
+
let body;
|
|
537
|
+
body = JSON.stringify(
|
|
538
|
+
(0, import_smithy_client.take)(input, {
|
|
539
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
540
|
+
})
|
|
541
|
+
);
|
|
542
|
+
b.m("POST").h(headers).b(body);
|
|
543
|
+
return b.build();
|
|
544
|
+
}, "se_TagResourceCommand");
|
|
545
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
546
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
547
|
+
const headers = {};
|
|
548
|
+
b.bp("/tags/{resourceArn}");
|
|
549
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
550
|
+
const query = (0, import_smithy_client.map)({
|
|
551
|
+
[_tK]: [
|
|
552
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
553
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
554
|
+
]
|
|
555
|
+
});
|
|
556
|
+
let body;
|
|
557
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
558
|
+
return b.build();
|
|
559
|
+
}, "se_UntagResourceCommand");
|
|
560
|
+
var se_UpdateEnabledControlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
561
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
562
|
+
const headers = {
|
|
563
|
+
"content-type": "application/json"
|
|
564
|
+
};
|
|
565
|
+
b.bp("/update-enabled-control");
|
|
566
|
+
let body;
|
|
567
|
+
body = JSON.stringify(
|
|
568
|
+
(0, import_smithy_client.take)(input, {
|
|
569
|
+
enabledControlIdentifier: [],
|
|
570
|
+
parameters: (_) => se_EnabledControlParameters(_, context)
|
|
571
|
+
})
|
|
572
|
+
);
|
|
573
|
+
b.m("POST").h(headers).b(body);
|
|
574
|
+
return b.build();
|
|
575
|
+
}, "se_UpdateEnabledControlCommand");
|
|
576
|
+
var se_UpdateLandingZoneCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
578
|
+
const headers = {
|
|
579
|
+
"content-type": "application/json"
|
|
580
|
+
};
|
|
581
|
+
b.bp("/update-landingzone");
|
|
582
|
+
let body;
|
|
583
|
+
body = JSON.stringify(
|
|
584
|
+
(0, import_smithy_client.take)(input, {
|
|
585
|
+
landingZoneIdentifier: [],
|
|
586
|
+
manifest: (_) => se_Manifest(_, context),
|
|
587
|
+
version: []
|
|
588
|
+
})
|
|
589
|
+
);
|
|
590
|
+
b.m("POST").h(headers).b(body);
|
|
591
|
+
return b.build();
|
|
592
|
+
}, "se_UpdateLandingZoneCommand");
|
|
593
|
+
var de_CreateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
594
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
+
return de_CreateLandingZoneCommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const contents = (0, import_smithy_client.map)({
|
|
598
|
+
$metadata: deserializeMetadata(output)
|
|
599
|
+
});
|
|
600
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
601
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
602
|
+
arn: import_smithy_client.expectString,
|
|
603
|
+
operationIdentifier: import_smithy_client.expectString
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
return contents;
|
|
607
|
+
}, "de_CreateLandingZoneCommand");
|
|
608
|
+
var de_CreateLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
|
+
const parsedOutput = {
|
|
610
|
+
...output,
|
|
611
|
+
body: await parseErrorBody(output.body, context)
|
|
612
|
+
};
|
|
613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
switch (errorCode) {
|
|
615
|
+
case "AccessDeniedException":
|
|
616
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
+
case "ConflictException":
|
|
619
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
620
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
|
+
case "InternalServerException":
|
|
622
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
623
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
+
case "ThrottlingException":
|
|
625
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
626
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
627
|
+
case "ValidationException":
|
|
628
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
629
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
|
+
default:
|
|
631
|
+
const parsedBody = parsedOutput.body;
|
|
632
|
+
return throwDefaultError({
|
|
633
|
+
output,
|
|
634
|
+
parsedBody,
|
|
635
|
+
errorCode
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
}, "de_CreateLandingZoneCommandError");
|
|
639
|
+
var de_DeleteLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
640
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
+
return de_DeleteLandingZoneCommandError(output, context);
|
|
642
|
+
}
|
|
643
|
+
const contents = (0, import_smithy_client.map)({
|
|
644
|
+
$metadata: deserializeMetadata(output)
|
|
645
|
+
});
|
|
646
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
647
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
648
|
+
operationIdentifier: import_smithy_client.expectString
|
|
649
|
+
});
|
|
650
|
+
Object.assign(contents, doc);
|
|
651
|
+
return contents;
|
|
652
|
+
}, "de_DeleteLandingZoneCommand");
|
|
653
|
+
var de_DeleteLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
+
const parsedOutput = {
|
|
655
|
+
...output,
|
|
656
|
+
body: await parseErrorBody(output.body, context)
|
|
657
|
+
};
|
|
658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
+
switch (errorCode) {
|
|
660
|
+
case "AccessDeniedException":
|
|
661
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
662
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
663
|
+
case "ConflictException":
|
|
664
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
665
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
666
|
+
case "InternalServerException":
|
|
667
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
668
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
669
|
+
case "ResourceNotFoundException":
|
|
670
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
671
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
672
|
+
case "ThrottlingException":
|
|
673
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
674
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ValidationException":
|
|
676
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
677
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
678
|
+
default:
|
|
679
|
+
const parsedBody = parsedOutput.body;
|
|
680
|
+
return throwDefaultError({
|
|
681
|
+
output,
|
|
682
|
+
parsedBody,
|
|
683
|
+
errorCode
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
}, "de_DeleteLandingZoneCommandError");
|
|
687
|
+
var de_DisableControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
688
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
|
+
return de_DisableControlCommandError(output, context);
|
|
690
|
+
}
|
|
691
|
+
const contents = (0, import_smithy_client.map)({
|
|
692
|
+
$metadata: deserializeMetadata(output)
|
|
693
|
+
});
|
|
694
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
695
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
696
|
+
operationIdentifier: import_smithy_client.expectString
|
|
697
|
+
});
|
|
698
|
+
Object.assign(contents, doc);
|
|
699
|
+
return contents;
|
|
700
|
+
}, "de_DisableControlCommand");
|
|
701
|
+
var de_DisableControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
+
const parsedOutput = {
|
|
703
|
+
...output,
|
|
704
|
+
body: await parseErrorBody(output.body, context)
|
|
705
|
+
};
|
|
706
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
+
switch (errorCode) {
|
|
708
|
+
case "AccessDeniedException":
|
|
709
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
710
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ConflictException":
|
|
712
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
713
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
|
+
case "InternalServerException":
|
|
715
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
716
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
+
case "ResourceNotFoundException":
|
|
718
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
719
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
+
case "ServiceQuotaExceededException":
|
|
721
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
722
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
723
|
+
case "ThrottlingException":
|
|
724
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
725
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
726
|
+
case "ValidationException":
|
|
727
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
728
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
729
|
+
default:
|
|
730
|
+
const parsedBody = parsedOutput.body;
|
|
731
|
+
return throwDefaultError({
|
|
732
|
+
output,
|
|
733
|
+
parsedBody,
|
|
734
|
+
errorCode
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
}, "de_DisableControlCommandError");
|
|
738
|
+
var de_EnableControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
+
return de_EnableControlCommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const contents = (0, import_smithy_client.map)({
|
|
743
|
+
$metadata: deserializeMetadata(output)
|
|
744
|
+
});
|
|
745
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
746
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
747
|
+
arn: import_smithy_client.expectString,
|
|
748
|
+
operationIdentifier: import_smithy_client.expectString
|
|
749
|
+
});
|
|
750
|
+
Object.assign(contents, doc);
|
|
751
|
+
return contents;
|
|
752
|
+
}, "de_EnableControlCommand");
|
|
753
|
+
var de_EnableControlCommandError = /* @__PURE__ */ __name(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 "ConflictException":
|
|
764
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
765
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
766
|
+
case "InternalServerException":
|
|
767
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
768
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
769
|
+
case "ResourceNotFoundException":
|
|
770
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
771
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
+
case "ServiceQuotaExceededException":
|
|
773
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
774
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
775
|
+
case "ThrottlingException":
|
|
776
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
777
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
778
|
+
case "ValidationException":
|
|
779
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
780
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
+
default:
|
|
782
|
+
const parsedBody = parsedOutput.body;
|
|
783
|
+
return throwDefaultError({
|
|
784
|
+
output,
|
|
785
|
+
parsedBody,
|
|
786
|
+
errorCode
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}, "de_EnableControlCommandError");
|
|
790
|
+
var de_GetControlOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
+
return de_GetControlOperationCommandError(output, context);
|
|
793
|
+
}
|
|
794
|
+
const contents = (0, import_smithy_client.map)({
|
|
795
|
+
$metadata: deserializeMetadata(output)
|
|
796
|
+
});
|
|
797
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
799
|
+
controlOperation: (_) => de_ControlOperation(_, context)
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
802
|
+
return contents;
|
|
803
|
+
}, "de_GetControlOperationCommand");
|
|
804
|
+
var de_GetControlOperationCommandError = /* @__PURE__ */ __name(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 "ResourceNotFoundException":
|
|
818
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
819
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ThrottlingException":
|
|
821
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
822
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
|
+
case "ValidationException":
|
|
824
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
825
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
+
default:
|
|
827
|
+
const parsedBody = parsedOutput.body;
|
|
828
|
+
return throwDefaultError({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
errorCode
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}, "de_GetControlOperationCommandError");
|
|
835
|
+
var de_GetEnabledControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
+
return de_GetEnabledControlCommandError(output, context);
|
|
838
|
+
}
|
|
839
|
+
const contents = (0, import_smithy_client.map)({
|
|
840
|
+
$metadata: deserializeMetadata(output)
|
|
841
|
+
});
|
|
842
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
843
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
844
|
+
enabledControlDetails: (_) => de_EnabledControlDetails(_, context)
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
847
|
+
return contents;
|
|
848
|
+
}, "de_GetEnabledControlCommand");
|
|
849
|
+
var de_GetEnabledControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
+
const parsedOutput = {
|
|
851
|
+
...output,
|
|
852
|
+
body: await parseErrorBody(output.body, context)
|
|
853
|
+
};
|
|
854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
+
switch (errorCode) {
|
|
856
|
+
case "AccessDeniedException":
|
|
857
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
858
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
+
case "InternalServerException":
|
|
860
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
861
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
|
+
case "ResourceNotFoundException":
|
|
863
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
864
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
|
+
case "ThrottlingException":
|
|
866
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
867
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
|
+
case "ValidationException":
|
|
869
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
870
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
871
|
+
default:
|
|
872
|
+
const parsedBody = parsedOutput.body;
|
|
873
|
+
return throwDefaultError({
|
|
874
|
+
output,
|
|
875
|
+
parsedBody,
|
|
876
|
+
errorCode
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
}, "de_GetEnabledControlCommandError");
|
|
880
|
+
var de_GetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
882
|
+
return de_GetLandingZoneCommandError(output, context);
|
|
883
|
+
}
|
|
884
|
+
const contents = (0, import_smithy_client.map)({
|
|
885
|
+
$metadata: deserializeMetadata(output)
|
|
886
|
+
});
|
|
887
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
888
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
889
|
+
landingZone: (_) => de_LandingZoneDetail(_, context)
|
|
890
|
+
});
|
|
891
|
+
Object.assign(contents, doc);
|
|
892
|
+
return contents;
|
|
893
|
+
}, "de_GetLandingZoneCommand");
|
|
894
|
+
var de_GetLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
895
|
+
const parsedOutput = {
|
|
896
|
+
...output,
|
|
897
|
+
body: await parseErrorBody(output.body, context)
|
|
898
|
+
};
|
|
899
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
+
switch (errorCode) {
|
|
901
|
+
case "AccessDeniedException":
|
|
902
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
903
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
904
|
+
case "InternalServerException":
|
|
905
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
906
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
+
case "ResourceNotFoundException":
|
|
908
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
909
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
+
case "ThrottlingException":
|
|
911
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
912
|
+
throw await de_ThrottlingExceptionRes(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
|
+
}, "de_GetLandingZoneCommandError");
|
|
925
|
+
var de_GetLandingZoneOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
+
return de_GetLandingZoneOperationCommandError(output, context);
|
|
928
|
+
}
|
|
929
|
+
const contents = (0, import_smithy_client.map)({
|
|
930
|
+
$metadata: deserializeMetadata(output)
|
|
931
|
+
});
|
|
932
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
933
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
934
|
+
operationDetails: (_) => de_LandingZoneOperationDetail(_, context)
|
|
935
|
+
});
|
|
936
|
+
Object.assign(contents, doc);
|
|
937
|
+
return contents;
|
|
938
|
+
}, "de_GetLandingZoneOperationCommand");
|
|
939
|
+
var de_GetLandingZoneOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
940
|
+
const parsedOutput = {
|
|
941
|
+
...output,
|
|
942
|
+
body: await parseErrorBody(output.body, context)
|
|
943
|
+
};
|
|
944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
+
switch (errorCode) {
|
|
946
|
+
case "AccessDeniedException":
|
|
947
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
948
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
949
|
+
case "InternalServerException":
|
|
950
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
951
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
952
|
+
case "ResourceNotFoundException":
|
|
953
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ThrottlingException":
|
|
956
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
957
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
958
|
+
case "ValidationException":
|
|
959
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
961
|
+
default:
|
|
962
|
+
const parsedBody = parsedOutput.body;
|
|
963
|
+
return throwDefaultError({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
errorCode
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
}, "de_GetLandingZoneOperationCommandError");
|
|
970
|
+
var de_ListEnabledControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
|
+
return de_ListEnabledControlsCommandError(output, context);
|
|
973
|
+
}
|
|
974
|
+
const contents = (0, import_smithy_client.map)({
|
|
975
|
+
$metadata: deserializeMetadata(output)
|
|
976
|
+
});
|
|
977
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
978
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
979
|
+
enabledControls: import_smithy_client._json,
|
|
980
|
+
nextToken: import_smithy_client.expectString
|
|
981
|
+
});
|
|
982
|
+
Object.assign(contents, doc);
|
|
983
|
+
return contents;
|
|
984
|
+
}, "de_ListEnabledControlsCommand");
|
|
985
|
+
var de_ListEnabledControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
986
|
+
const parsedOutput = {
|
|
987
|
+
...output,
|
|
988
|
+
body: await parseErrorBody(output.body, context)
|
|
989
|
+
};
|
|
990
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
+
switch (errorCode) {
|
|
992
|
+
case "AccessDeniedException":
|
|
993
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
994
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
995
|
+
case "InternalServerException":
|
|
996
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
997
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
|
+
case "ResourceNotFoundException":
|
|
999
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1000
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "ThrottlingException":
|
|
1002
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1003
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "ValidationException":
|
|
1005
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1006
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
|
+
default:
|
|
1008
|
+
const parsedBody = parsedOutput.body;
|
|
1009
|
+
return throwDefaultError({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
errorCode
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
}, "de_ListEnabledControlsCommandError");
|
|
1016
|
+
var de_ListLandingZonesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
+
return de_ListLandingZonesCommandError(output, context);
|
|
1019
|
+
}
|
|
1020
|
+
const contents = (0, import_smithy_client.map)({
|
|
1021
|
+
$metadata: deserializeMetadata(output)
|
|
1022
|
+
});
|
|
1023
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1024
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1025
|
+
landingZones: import_smithy_client._json,
|
|
1026
|
+
nextToken: import_smithy_client.expectString
|
|
1027
|
+
});
|
|
1028
|
+
Object.assign(contents, doc);
|
|
1029
|
+
return contents;
|
|
1030
|
+
}, "de_ListLandingZonesCommand");
|
|
1031
|
+
var de_ListLandingZonesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
+
const parsedOutput = {
|
|
1033
|
+
...output,
|
|
1034
|
+
body: await parseErrorBody(output.body, context)
|
|
1035
|
+
};
|
|
1036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
+
switch (errorCode) {
|
|
1038
|
+
case "AccessDeniedException":
|
|
1039
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1040
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "InternalServerException":
|
|
1042
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1043
|
+
throw await de_InternalServerExceptionRes(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
|
+
}, "de_ListLandingZonesCommandError");
|
|
1059
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1062
|
+
}
|
|
1063
|
+
const contents = (0, import_smithy_client.map)({
|
|
1064
|
+
$metadata: deserializeMetadata(output)
|
|
1065
|
+
});
|
|
1066
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1067
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1068
|
+
tags: import_smithy_client._json
|
|
1069
|
+
});
|
|
1070
|
+
Object.assign(contents, doc);
|
|
1071
|
+
return contents;
|
|
1072
|
+
}, "de_ListTagsForResourceCommand");
|
|
1073
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1074
|
+
const parsedOutput = {
|
|
1075
|
+
...output,
|
|
1076
|
+
body: await parseErrorBody(output.body, context)
|
|
1077
|
+
};
|
|
1078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
+
switch (errorCode) {
|
|
1080
|
+
case "InternalServerException":
|
|
1081
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1082
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "ResourceNotFoundException":
|
|
1084
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1085
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1086
|
+
case "ValidationException":
|
|
1087
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1088
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
|
+
default:
|
|
1090
|
+
const parsedBody = parsedOutput.body;
|
|
1091
|
+
return throwDefaultError({
|
|
1092
|
+
output,
|
|
1093
|
+
parsedBody,
|
|
1094
|
+
errorCode
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1098
|
+
var de_ResetLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
+
return de_ResetLandingZoneCommandError(output, context);
|
|
1101
|
+
}
|
|
1102
|
+
const contents = (0, import_smithy_client.map)({
|
|
1103
|
+
$metadata: deserializeMetadata(output)
|
|
1104
|
+
});
|
|
1105
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1106
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1107
|
+
operationIdentifier: import_smithy_client.expectString
|
|
1108
|
+
});
|
|
1109
|
+
Object.assign(contents, doc);
|
|
1110
|
+
return contents;
|
|
1111
|
+
}, "de_ResetLandingZoneCommand");
|
|
1112
|
+
var de_ResetLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
+
const parsedOutput = {
|
|
1114
|
+
...output,
|
|
1115
|
+
body: await parseErrorBody(output.body, context)
|
|
1116
|
+
};
|
|
1117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
+
switch (errorCode) {
|
|
1119
|
+
case "AccessDeniedException":
|
|
1120
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1121
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1122
|
+
case "ConflictException":
|
|
1123
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1124
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1125
|
+
case "InternalServerException":
|
|
1126
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1127
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1128
|
+
case "ResourceNotFoundException":
|
|
1129
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
+
case "ThrottlingException":
|
|
1132
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "ValidationException":
|
|
1135
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1136
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1137
|
+
default:
|
|
1138
|
+
const parsedBody = parsedOutput.body;
|
|
1139
|
+
return throwDefaultError({
|
|
1140
|
+
output,
|
|
1141
|
+
parsedBody,
|
|
1142
|
+
errorCode
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
}, "de_ResetLandingZoneCommandError");
|
|
1146
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1148
|
+
return de_TagResourceCommandError(output, context);
|
|
1149
|
+
}
|
|
1150
|
+
const contents = (0, import_smithy_client.map)({
|
|
1151
|
+
$metadata: deserializeMetadata(output)
|
|
1152
|
+
});
|
|
1153
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1154
|
+
return contents;
|
|
1155
|
+
}, "de_TagResourceCommand");
|
|
1156
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
+
const parsedOutput = {
|
|
1158
|
+
...output,
|
|
1159
|
+
body: await parseErrorBody(output.body, context)
|
|
1160
|
+
};
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
+
switch (errorCode) {
|
|
1163
|
+
case "InternalServerException":
|
|
1164
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1165
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "ResourceNotFoundException":
|
|
1167
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1168
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
+
case "ValidationException":
|
|
1170
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1171
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1172
|
+
default:
|
|
1173
|
+
const parsedBody = parsedOutput.body;
|
|
1174
|
+
return throwDefaultError({
|
|
1175
|
+
output,
|
|
1176
|
+
parsedBody,
|
|
1177
|
+
errorCode
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
}, "de_TagResourceCommandError");
|
|
1181
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1182
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1183
|
+
return de_UntagResourceCommandError(output, context);
|
|
1184
|
+
}
|
|
1185
|
+
const contents = (0, import_smithy_client.map)({
|
|
1186
|
+
$metadata: deserializeMetadata(output)
|
|
1187
|
+
});
|
|
1188
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1189
|
+
return contents;
|
|
1190
|
+
}, "de_UntagResourceCommand");
|
|
1191
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
+
const parsedOutput = {
|
|
1193
|
+
...output,
|
|
1194
|
+
body: await parseErrorBody(output.body, context)
|
|
1195
|
+
};
|
|
1196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
+
switch (errorCode) {
|
|
1198
|
+
case "InternalServerException":
|
|
1199
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1200
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
+
case "ResourceNotFoundException":
|
|
1202
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1203
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
+
case "ValidationException":
|
|
1205
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1206
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1207
|
+
default:
|
|
1208
|
+
const parsedBody = parsedOutput.body;
|
|
1209
|
+
return throwDefaultError({
|
|
1210
|
+
output,
|
|
1211
|
+
parsedBody,
|
|
1212
|
+
errorCode
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
}, "de_UntagResourceCommandError");
|
|
1216
|
+
var de_UpdateEnabledControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1217
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
+
return de_UpdateEnabledControlCommandError(output, context);
|
|
1219
|
+
}
|
|
1220
|
+
const contents = (0, import_smithy_client.map)({
|
|
1221
|
+
$metadata: deserializeMetadata(output)
|
|
1222
|
+
});
|
|
1223
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1224
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1225
|
+
operationIdentifier: import_smithy_client.expectString
|
|
1226
|
+
});
|
|
1227
|
+
Object.assign(contents, doc);
|
|
1228
|
+
return contents;
|
|
1229
|
+
}, "de_UpdateEnabledControlCommand");
|
|
1230
|
+
var de_UpdateEnabledControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
|
+
const parsedOutput = {
|
|
1232
|
+
...output,
|
|
1233
|
+
body: await parseErrorBody(output.body, context)
|
|
1234
|
+
};
|
|
1235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
+
switch (errorCode) {
|
|
1237
|
+
case "AccessDeniedException":
|
|
1238
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1239
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1240
|
+
case "ConflictException":
|
|
1241
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1242
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1243
|
+
case "InternalServerException":
|
|
1244
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1245
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
+
case "ResourceNotFoundException":
|
|
1247
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1248
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1249
|
+
case "ServiceQuotaExceededException":
|
|
1250
|
+
case "com.amazonaws.controltower#ServiceQuotaExceededException":
|
|
1251
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1252
|
+
case "ThrottlingException":
|
|
1253
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1254
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "ValidationException":
|
|
1256
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1257
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1258
|
+
default:
|
|
1259
|
+
const parsedBody = parsedOutput.body;
|
|
1260
|
+
return throwDefaultError({
|
|
1261
|
+
output,
|
|
1262
|
+
parsedBody,
|
|
1263
|
+
errorCode
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
}, "de_UpdateEnabledControlCommandError");
|
|
1267
|
+
var de_UpdateLandingZoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1269
|
+
return de_UpdateLandingZoneCommandError(output, context);
|
|
1270
|
+
}
|
|
1271
|
+
const contents = (0, import_smithy_client.map)({
|
|
1272
|
+
$metadata: deserializeMetadata(output)
|
|
1273
|
+
});
|
|
1274
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1275
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1276
|
+
operationIdentifier: import_smithy_client.expectString
|
|
1277
|
+
});
|
|
1278
|
+
Object.assign(contents, doc);
|
|
1279
|
+
return contents;
|
|
1280
|
+
}, "de_UpdateLandingZoneCommand");
|
|
1281
|
+
var de_UpdateLandingZoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
+
const parsedOutput = {
|
|
1283
|
+
...output,
|
|
1284
|
+
body: await parseErrorBody(output.body, context)
|
|
1285
|
+
};
|
|
1286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
+
switch (errorCode) {
|
|
1288
|
+
case "AccessDeniedException":
|
|
1289
|
+
case "com.amazonaws.controltower#AccessDeniedException":
|
|
1290
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "ConflictException":
|
|
1292
|
+
case "com.amazonaws.controltower#ConflictException":
|
|
1293
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "InternalServerException":
|
|
1295
|
+
case "com.amazonaws.controltower#InternalServerException":
|
|
1296
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ResourceNotFoundException":
|
|
1298
|
+
case "com.amazonaws.controltower#ResourceNotFoundException":
|
|
1299
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "ThrottlingException":
|
|
1301
|
+
case "com.amazonaws.controltower#ThrottlingException":
|
|
1302
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "ValidationException":
|
|
1304
|
+
case "com.amazonaws.controltower#ValidationException":
|
|
1305
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1306
|
+
default:
|
|
1307
|
+
const parsedBody = parsedOutput.body;
|
|
1308
|
+
return throwDefaultError({
|
|
1309
|
+
output,
|
|
1310
|
+
parsedBody,
|
|
1311
|
+
errorCode
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
}, "de_UpdateLandingZoneCommandError");
|
|
1315
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ControlTowerServiceException);
|
|
1316
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1317
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1318
|
+
const data = parsedOutput.body;
|
|
1319
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1320
|
+
message: import_smithy_client.expectString
|
|
1321
|
+
});
|
|
1322
|
+
Object.assign(contents, doc);
|
|
1323
|
+
const exception = new AccessDeniedException({
|
|
1324
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1325
|
+
...contents
|
|
1326
|
+
});
|
|
1327
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1328
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1329
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1330
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1331
|
+
const data = parsedOutput.body;
|
|
1332
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1333
|
+
message: import_smithy_client.expectString
|
|
1334
|
+
});
|
|
1335
|
+
Object.assign(contents, doc);
|
|
1336
|
+
const exception = new ConflictException({
|
|
1337
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1338
|
+
...contents
|
|
1339
|
+
});
|
|
1340
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1341
|
+
}, "de_ConflictExceptionRes");
|
|
1342
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1343
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1344
|
+
const data = parsedOutput.body;
|
|
1345
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1346
|
+
message: import_smithy_client.expectString
|
|
1347
|
+
});
|
|
1348
|
+
Object.assign(contents, doc);
|
|
1349
|
+
const exception = new InternalServerException({
|
|
1350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
|
+
...contents
|
|
1352
|
+
});
|
|
1353
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1354
|
+
}, "de_InternalServerExceptionRes");
|
|
1355
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1356
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1357
|
+
const data = parsedOutput.body;
|
|
1358
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1359
|
+
message: import_smithy_client.expectString
|
|
1360
|
+
});
|
|
1361
|
+
Object.assign(contents, doc);
|
|
1362
|
+
const exception = new ResourceNotFoundException({
|
|
1363
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
|
+
...contents
|
|
1365
|
+
});
|
|
1366
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1367
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1368
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1369
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1370
|
+
const data = parsedOutput.body;
|
|
1371
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1372
|
+
message: import_smithy_client.expectString
|
|
1373
|
+
});
|
|
1374
|
+
Object.assign(contents, doc);
|
|
1375
|
+
const exception = new ServiceQuotaExceededException({
|
|
1376
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1377
|
+
...contents
|
|
1378
|
+
});
|
|
1379
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1380
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1381
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1382
|
+
const contents = (0, import_smithy_client.map)({
|
|
1383
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1384
|
+
});
|
|
1385
|
+
const data = parsedOutput.body;
|
|
1386
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1387
|
+
message: import_smithy_client.expectString,
|
|
1388
|
+
quotaCode: import_smithy_client.expectString,
|
|
1389
|
+
serviceCode: import_smithy_client.expectString
|
|
1390
|
+
});
|
|
1391
|
+
Object.assign(contents, doc);
|
|
1392
|
+
const exception = new ThrottlingException({
|
|
1393
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1394
|
+
...contents
|
|
1395
|
+
});
|
|
1396
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1397
|
+
}, "de_ThrottlingExceptionRes");
|
|
1398
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1399
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1400
|
+
const data = parsedOutput.body;
|
|
1401
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1402
|
+
message: import_smithy_client.expectString
|
|
1403
|
+
});
|
|
1404
|
+
Object.assign(contents, doc);
|
|
1405
|
+
const exception = new ValidationException({
|
|
1406
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
|
+
...contents
|
|
1408
|
+
});
|
|
1409
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1410
|
+
}, "de_ValidationExceptionRes");
|
|
1411
|
+
var se_EnabledControlParameter = /* @__PURE__ */ __name((input, context) => {
|
|
1412
|
+
return (0, import_smithy_client.take)(input, {
|
|
1413
|
+
key: [],
|
|
1414
|
+
value: (_) => se_Document(_, context)
|
|
1415
|
+
});
|
|
1416
|
+
}, "se_EnabledControlParameter");
|
|
1417
|
+
var se_EnabledControlParameters = /* @__PURE__ */ __name((input, context) => {
|
|
1418
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1419
|
+
return se_EnabledControlParameter(entry, context);
|
|
1420
|
+
});
|
|
1421
|
+
}, "se_EnabledControlParameters");
|
|
1422
|
+
var se_Manifest = /* @__PURE__ */ __name((input, context) => {
|
|
1423
|
+
return input;
|
|
1424
|
+
}, "se_Manifest");
|
|
1425
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1426
|
+
return input;
|
|
1427
|
+
}, "se_Document");
|
|
1428
|
+
var de_ControlOperation = /* @__PURE__ */ __name((output, context) => {
|
|
1429
|
+
return (0, import_smithy_client.take)(output, {
|
|
1430
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1431
|
+
operationType: import_smithy_client.expectString,
|
|
1432
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1433
|
+
status: import_smithy_client.expectString,
|
|
1434
|
+
statusMessage: import_smithy_client.expectString
|
|
1435
|
+
});
|
|
1436
|
+
}, "de_ControlOperation");
|
|
1437
|
+
var de_EnabledControlDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1438
|
+
return (0, import_smithy_client.take)(output, {
|
|
1439
|
+
arn: import_smithy_client.expectString,
|
|
1440
|
+
controlIdentifier: import_smithy_client.expectString,
|
|
1441
|
+
driftStatusSummary: import_smithy_client._json,
|
|
1442
|
+
parameters: (_) => de_EnabledControlParameterSummaries(_, context),
|
|
1443
|
+
statusSummary: import_smithy_client._json,
|
|
1444
|
+
targetIdentifier: import_smithy_client.expectString,
|
|
1445
|
+
targetRegions: import_smithy_client._json
|
|
1446
|
+
});
|
|
1447
|
+
}, "de_EnabledControlDetails");
|
|
1448
|
+
var de_EnabledControlParameterSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1449
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1450
|
+
return de_EnabledControlParameterSummary(entry, context);
|
|
1451
|
+
});
|
|
1452
|
+
return retVal;
|
|
1453
|
+
}, "de_EnabledControlParameterSummaries");
|
|
1454
|
+
var de_EnabledControlParameterSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1455
|
+
return (0, import_smithy_client.take)(output, {
|
|
1456
|
+
key: import_smithy_client.expectString,
|
|
1457
|
+
value: (_) => de_Document(_, context)
|
|
1458
|
+
});
|
|
1459
|
+
}, "de_EnabledControlParameterSummary");
|
|
1460
|
+
var de_LandingZoneDetail = /* @__PURE__ */ __name((output, context) => {
|
|
1461
|
+
return (0, import_smithy_client.take)(output, {
|
|
1462
|
+
arn: import_smithy_client.expectString,
|
|
1463
|
+
driftStatus: import_smithy_client._json,
|
|
1464
|
+
latestAvailableVersion: import_smithy_client.expectString,
|
|
1465
|
+
manifest: (_) => de_Manifest(_, context),
|
|
1466
|
+
status: import_smithy_client.expectString,
|
|
1467
|
+
version: import_smithy_client.expectString
|
|
1468
|
+
});
|
|
1469
|
+
}, "de_LandingZoneDetail");
|
|
1470
|
+
var de_LandingZoneOperationDetail = /* @__PURE__ */ __name((output, context) => {
|
|
1471
|
+
return (0, import_smithy_client.take)(output, {
|
|
1472
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1473
|
+
operationType: import_smithy_client.expectString,
|
|
1474
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1475
|
+
status: import_smithy_client.expectString,
|
|
1476
|
+
statusMessage: import_smithy_client.expectString
|
|
1477
|
+
});
|
|
1478
|
+
}, "de_LandingZoneOperationDetail");
|
|
1479
|
+
var de_Manifest = /* @__PURE__ */ __name((output, context) => {
|
|
1480
|
+
return output;
|
|
1481
|
+
}, "de_Manifest");
|
|
1482
|
+
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
1483
|
+
return output;
|
|
1484
|
+
}, "de_Document");
|
|
1485
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1486
|
+
httpStatusCode: output.statusCode,
|
|
1487
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1488
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1489
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1490
|
+
}), "deserializeMetadata");
|
|
1491
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1492
|
+
var _rAS = "retryAfterSeconds";
|
|
1493
|
+
var _ra = "retry-after";
|
|
1494
|
+
var _tK = "tagKeys";
|
|
1495
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1496
|
+
if (encoded.length) {
|
|
1497
|
+
return JSON.parse(encoded);
|
|
1498
|
+
}
|
|
1499
|
+
return {};
|
|
1500
|
+
}), "parseBody");
|
|
1501
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1502
|
+
const value = await parseBody(errorBody, context);
|
|
1503
|
+
value.message = value.message ?? value.Message;
|
|
1504
|
+
return value;
|
|
1505
|
+
}, "parseErrorBody");
|
|
1506
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1507
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1508
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1509
|
+
let cleanValue = rawValue;
|
|
1510
|
+
if (typeof cleanValue === "number") {
|
|
1511
|
+
cleanValue = cleanValue.toString();
|
|
1512
|
+
}
|
|
1513
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1514
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1515
|
+
}
|
|
1516
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1517
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1518
|
+
}
|
|
1519
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1520
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1521
|
+
}
|
|
1522
|
+
return cleanValue;
|
|
1523
|
+
}, "sanitizeErrorCode");
|
|
1524
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1525
|
+
if (headerKey !== void 0) {
|
|
1526
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1527
|
+
}
|
|
1528
|
+
if (data.code !== void 0) {
|
|
1529
|
+
return sanitizeErrorCode(data.code);
|
|
1530
|
+
}
|
|
1531
|
+
if (data["__type"] !== void 0) {
|
|
1532
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1533
|
+
}
|
|
1534
|
+
}, "loadRestJsonErrorCode");
|
|
1535
|
+
|
|
1536
|
+
// src/commands/CreateLandingZoneCommand.ts
|
|
1537
|
+
var _CreateLandingZoneCommand = class _CreateLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1538
|
+
...commonParams
|
|
1539
|
+
}).m(function(Command, cs, config, o) {
|
|
1540
|
+
return [
|
|
1541
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1542
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1543
|
+
];
|
|
1544
|
+
}).s("AWSControlTowerApis", "CreateLandingZone", {}).n("ControlTowerClient", "CreateLandingZoneCommand").f(void 0, void 0).ser(se_CreateLandingZoneCommand).de(de_CreateLandingZoneCommand).build() {
|
|
1545
|
+
};
|
|
1546
|
+
__name(_CreateLandingZoneCommand, "CreateLandingZoneCommand");
|
|
1547
|
+
var CreateLandingZoneCommand = _CreateLandingZoneCommand;
|
|
1548
|
+
|
|
1549
|
+
// src/commands/DeleteLandingZoneCommand.ts
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
var _DeleteLandingZoneCommand = class _DeleteLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1555
|
+
...commonParams
|
|
1556
|
+
}).m(function(Command, cs, config, o) {
|
|
1557
|
+
return [
|
|
1558
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1559
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1560
|
+
];
|
|
1561
|
+
}).s("AWSControlTowerApis", "DeleteLandingZone", {}).n("ControlTowerClient", "DeleteLandingZoneCommand").f(void 0, void 0).ser(se_DeleteLandingZoneCommand).de(de_DeleteLandingZoneCommand).build() {
|
|
1562
|
+
};
|
|
1563
|
+
__name(_DeleteLandingZoneCommand, "DeleteLandingZoneCommand");
|
|
1564
|
+
var DeleteLandingZoneCommand = _DeleteLandingZoneCommand;
|
|
1565
|
+
|
|
1566
|
+
// src/commands/DisableControlCommand.ts
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
var _DisableControlCommand = class _DisableControlCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1572
|
+
...commonParams
|
|
1573
|
+
}).m(function(Command, cs, config, o) {
|
|
1574
|
+
return [
|
|
1575
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1576
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1577
|
+
];
|
|
1578
|
+
}).s("AWSControlTowerApis", "DisableControl", {}).n("ControlTowerClient", "DisableControlCommand").f(void 0, void 0).ser(se_DisableControlCommand).de(de_DisableControlCommand).build() {
|
|
1579
|
+
};
|
|
1580
|
+
__name(_DisableControlCommand, "DisableControlCommand");
|
|
1581
|
+
var DisableControlCommand = _DisableControlCommand;
|
|
1582
|
+
|
|
1583
|
+
// src/commands/EnableControlCommand.ts
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
var _EnableControlCommand = class _EnableControlCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1589
|
+
...commonParams
|
|
1590
|
+
}).m(function(Command, cs, config, o) {
|
|
1591
|
+
return [
|
|
1592
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1593
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1594
|
+
];
|
|
1595
|
+
}).s("AWSControlTowerApis", "EnableControl", {}).n("ControlTowerClient", "EnableControlCommand").f(void 0, void 0).ser(se_EnableControlCommand).de(de_EnableControlCommand).build() {
|
|
1596
|
+
};
|
|
1597
|
+
__name(_EnableControlCommand, "EnableControlCommand");
|
|
1598
|
+
var EnableControlCommand = _EnableControlCommand;
|
|
1599
|
+
|
|
1600
|
+
// src/commands/GetControlOperationCommand.ts
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
var _GetControlOperationCommand = class _GetControlOperationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1606
|
+
...commonParams
|
|
1607
|
+
}).m(function(Command, cs, config, o) {
|
|
1608
|
+
return [
|
|
1609
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1610
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1611
|
+
];
|
|
1612
|
+
}).s("AWSControlTowerApis", "GetControlOperation", {}).n("ControlTowerClient", "GetControlOperationCommand").f(void 0, void 0).ser(se_GetControlOperationCommand).de(de_GetControlOperationCommand).build() {
|
|
1613
|
+
};
|
|
1614
|
+
__name(_GetControlOperationCommand, "GetControlOperationCommand");
|
|
1615
|
+
var GetControlOperationCommand = _GetControlOperationCommand;
|
|
1616
|
+
|
|
1617
|
+
// src/commands/GetEnabledControlCommand.ts
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
var _GetEnabledControlCommand = class _GetEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1623
|
+
...commonParams
|
|
1624
|
+
}).m(function(Command, cs, config, o) {
|
|
1625
|
+
return [
|
|
1626
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1627
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1628
|
+
];
|
|
1629
|
+
}).s("AWSControlTowerApis", "GetEnabledControl", {}).n("ControlTowerClient", "GetEnabledControlCommand").f(void 0, void 0).ser(se_GetEnabledControlCommand).de(de_GetEnabledControlCommand).build() {
|
|
1630
|
+
};
|
|
1631
|
+
__name(_GetEnabledControlCommand, "GetEnabledControlCommand");
|
|
1632
|
+
var GetEnabledControlCommand = _GetEnabledControlCommand;
|
|
1633
|
+
|
|
1634
|
+
// src/commands/GetLandingZoneCommand.ts
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
var _GetLandingZoneCommand = class _GetLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1640
|
+
...commonParams
|
|
1641
|
+
}).m(function(Command, cs, config, o) {
|
|
1642
|
+
return [
|
|
1643
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1644
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1645
|
+
];
|
|
1646
|
+
}).s("AWSControlTowerApis", "GetLandingZone", {}).n("ControlTowerClient", "GetLandingZoneCommand").f(void 0, void 0).ser(se_GetLandingZoneCommand).de(de_GetLandingZoneCommand).build() {
|
|
1647
|
+
};
|
|
1648
|
+
__name(_GetLandingZoneCommand, "GetLandingZoneCommand");
|
|
1649
|
+
var GetLandingZoneCommand = _GetLandingZoneCommand;
|
|
1650
|
+
|
|
1651
|
+
// src/commands/GetLandingZoneOperationCommand.ts
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
var _GetLandingZoneOperationCommand = class _GetLandingZoneOperationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1657
|
+
...commonParams
|
|
1658
|
+
}).m(function(Command, cs, config, o) {
|
|
1659
|
+
return [
|
|
1660
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1661
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1662
|
+
];
|
|
1663
|
+
}).s("AWSControlTowerApis", "GetLandingZoneOperation", {}).n("ControlTowerClient", "GetLandingZoneOperationCommand").f(void 0, void 0).ser(se_GetLandingZoneOperationCommand).de(de_GetLandingZoneOperationCommand).build() {
|
|
1664
|
+
};
|
|
1665
|
+
__name(_GetLandingZoneOperationCommand, "GetLandingZoneOperationCommand");
|
|
1666
|
+
var GetLandingZoneOperationCommand = _GetLandingZoneOperationCommand;
|
|
1667
|
+
|
|
1668
|
+
// src/commands/ListEnabledControlsCommand.ts
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
var _ListEnabledControlsCommand = class _ListEnabledControlsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1674
|
+
...commonParams
|
|
1675
|
+
}).m(function(Command, cs, config, o) {
|
|
1676
|
+
return [
|
|
1677
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1678
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1679
|
+
];
|
|
1680
|
+
}).s("AWSControlTowerApis", "ListEnabledControls", {}).n("ControlTowerClient", "ListEnabledControlsCommand").f(void 0, void 0).ser(se_ListEnabledControlsCommand).de(de_ListEnabledControlsCommand).build() {
|
|
1681
|
+
};
|
|
1682
|
+
__name(_ListEnabledControlsCommand, "ListEnabledControlsCommand");
|
|
1683
|
+
var ListEnabledControlsCommand = _ListEnabledControlsCommand;
|
|
1684
|
+
|
|
1685
|
+
// src/commands/ListLandingZonesCommand.ts
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
var _ListLandingZonesCommand = class _ListLandingZonesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1691
|
+
...commonParams
|
|
1692
|
+
}).m(function(Command, cs, config, o) {
|
|
1693
|
+
return [
|
|
1694
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1695
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1696
|
+
];
|
|
1697
|
+
}).s("AWSControlTowerApis", "ListLandingZones", {}).n("ControlTowerClient", "ListLandingZonesCommand").f(void 0, void 0).ser(se_ListLandingZonesCommand).de(de_ListLandingZonesCommand).build() {
|
|
1698
|
+
};
|
|
1699
|
+
__name(_ListLandingZonesCommand, "ListLandingZonesCommand");
|
|
1700
|
+
var ListLandingZonesCommand = _ListLandingZonesCommand;
|
|
1701
|
+
|
|
1702
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1708
|
+
...commonParams
|
|
1709
|
+
}).m(function(Command, cs, config, o) {
|
|
1710
|
+
return [
|
|
1711
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1712
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1713
|
+
];
|
|
1714
|
+
}).s("AWSControlTowerApis", "ListTagsForResource", {}).n("ControlTowerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1715
|
+
};
|
|
1716
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1717
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1718
|
+
|
|
1719
|
+
// src/commands/ResetLandingZoneCommand.ts
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
var _ResetLandingZoneCommand = class _ResetLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1725
|
+
...commonParams
|
|
1726
|
+
}).m(function(Command, cs, config, o) {
|
|
1727
|
+
return [
|
|
1728
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1729
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1730
|
+
];
|
|
1731
|
+
}).s("AWSControlTowerApis", "ResetLandingZone", {}).n("ControlTowerClient", "ResetLandingZoneCommand").f(void 0, void 0).ser(se_ResetLandingZoneCommand).de(de_ResetLandingZoneCommand).build() {
|
|
1732
|
+
};
|
|
1733
|
+
__name(_ResetLandingZoneCommand, "ResetLandingZoneCommand");
|
|
1734
|
+
var ResetLandingZoneCommand = _ResetLandingZoneCommand;
|
|
1735
|
+
|
|
1736
|
+
// src/commands/TagResourceCommand.ts
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1742
|
+
...commonParams
|
|
1743
|
+
}).m(function(Command, cs, config, o) {
|
|
1744
|
+
return [
|
|
1745
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1746
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1747
|
+
];
|
|
1748
|
+
}).s("AWSControlTowerApis", "TagResource", {}).n("ControlTowerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1749
|
+
};
|
|
1750
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1751
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1752
|
+
|
|
1753
|
+
// src/commands/UntagResourceCommand.ts
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1759
|
+
...commonParams
|
|
1760
|
+
}).m(function(Command, cs, config, o) {
|
|
1761
|
+
return [
|
|
1762
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1763
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1764
|
+
];
|
|
1765
|
+
}).s("AWSControlTowerApis", "UntagResource", {}).n("ControlTowerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1766
|
+
};
|
|
1767
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1768
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1769
|
+
|
|
1770
|
+
// src/commands/UpdateEnabledControlCommand.ts
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
var _UpdateEnabledControlCommand = class _UpdateEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1776
|
+
...commonParams
|
|
1777
|
+
}).m(function(Command, cs, config, o) {
|
|
1778
|
+
return [
|
|
1779
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1780
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1781
|
+
];
|
|
1782
|
+
}).s("AWSControlTowerApis", "UpdateEnabledControl", {}).n("ControlTowerClient", "UpdateEnabledControlCommand").f(void 0, void 0).ser(se_UpdateEnabledControlCommand).de(de_UpdateEnabledControlCommand).build() {
|
|
1783
|
+
};
|
|
1784
|
+
__name(_UpdateEnabledControlCommand, "UpdateEnabledControlCommand");
|
|
1785
|
+
var UpdateEnabledControlCommand = _UpdateEnabledControlCommand;
|
|
1786
|
+
|
|
1787
|
+
// src/commands/UpdateLandingZoneCommand.ts
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
var _UpdateLandingZoneCommand = class _UpdateLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1793
|
+
...commonParams
|
|
1794
|
+
}).m(function(Command, cs, config, o) {
|
|
1795
|
+
return [
|
|
1796
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1797
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1798
|
+
];
|
|
1799
|
+
}).s("AWSControlTowerApis", "UpdateLandingZone", {}).n("ControlTowerClient", "UpdateLandingZoneCommand").f(void 0, void 0).ser(se_UpdateLandingZoneCommand).de(de_UpdateLandingZoneCommand).build() {
|
|
1800
|
+
};
|
|
1801
|
+
__name(_UpdateLandingZoneCommand, "UpdateLandingZoneCommand");
|
|
1802
|
+
var UpdateLandingZoneCommand = _UpdateLandingZoneCommand;
|
|
1803
|
+
|
|
1804
|
+
// src/ControlTower.ts
|
|
1805
|
+
var commands = {
|
|
1806
|
+
CreateLandingZoneCommand,
|
|
1807
|
+
DeleteLandingZoneCommand,
|
|
1808
|
+
DisableControlCommand,
|
|
1809
|
+
EnableControlCommand,
|
|
1810
|
+
GetControlOperationCommand,
|
|
1811
|
+
GetEnabledControlCommand,
|
|
1812
|
+
GetLandingZoneCommand,
|
|
1813
|
+
GetLandingZoneOperationCommand,
|
|
1814
|
+
ListEnabledControlsCommand,
|
|
1815
|
+
ListLandingZonesCommand,
|
|
1816
|
+
ListTagsForResourceCommand,
|
|
1817
|
+
ResetLandingZoneCommand,
|
|
1818
|
+
TagResourceCommand,
|
|
1819
|
+
UntagResourceCommand,
|
|
1820
|
+
UpdateEnabledControlCommand,
|
|
1821
|
+
UpdateLandingZoneCommand
|
|
1822
|
+
};
|
|
1823
|
+
var _ControlTower = class _ControlTower extends ControlTowerClient {
|
|
1824
|
+
};
|
|
1825
|
+
__name(_ControlTower, "ControlTower");
|
|
1826
|
+
var ControlTower = _ControlTower;
|
|
1827
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ControlTower);
|
|
1828
|
+
|
|
1829
|
+
// src/pagination/ListEnabledControlsPaginator.ts
|
|
1830
|
+
|
|
1831
|
+
var paginateListEnabledControls = (0, import_core.createPaginator)(ControlTowerClient, ListEnabledControlsCommand, "nextToken", "nextToken", "maxResults");
|
|
1832
|
+
|
|
1833
|
+
// src/pagination/ListLandingZonesPaginator.ts
|
|
1834
|
+
|
|
1835
|
+
var paginateListLandingZones = (0, import_core.createPaginator)(ControlTowerClient, ListLandingZonesCommand, "nextToken", "nextToken", "maxResults");
|
|
1836
|
+
|
|
1837
|
+
// src/index.ts
|
|
1838
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1839
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1840
|
+
0 && (module.exports = {
|
|
1841
|
+
AccessDeniedException,
|
|
1842
|
+
ConflictException,
|
|
1843
|
+
ControlOperationStatus,
|
|
1844
|
+
ControlOperationType,
|
|
1845
|
+
ControlTower,
|
|
1846
|
+
ControlTowerClient,
|
|
1847
|
+
ControlTowerServiceException,
|
|
1848
|
+
CreateLandingZoneCommand,
|
|
1849
|
+
DeleteLandingZoneCommand,
|
|
1850
|
+
DisableControlCommand,
|
|
1851
|
+
DriftStatus,
|
|
1852
|
+
EnableControlCommand,
|
|
1853
|
+
EnablementStatus,
|
|
1854
|
+
GetControlOperationCommand,
|
|
1855
|
+
GetEnabledControlCommand,
|
|
1856
|
+
GetLandingZoneCommand,
|
|
1857
|
+
GetLandingZoneOperationCommand,
|
|
1858
|
+
InternalServerException,
|
|
1859
|
+
LandingZoneDriftStatus,
|
|
1860
|
+
LandingZoneOperationStatus,
|
|
1861
|
+
LandingZoneOperationType,
|
|
1862
|
+
LandingZoneStatus,
|
|
1863
|
+
ListEnabledControlsCommand,
|
|
1864
|
+
ListLandingZonesCommand,
|
|
1865
|
+
ListTagsForResourceCommand,
|
|
1866
|
+
ResetLandingZoneCommand,
|
|
1867
|
+
ResourceNotFoundException,
|
|
1868
|
+
ServiceQuotaExceededException,
|
|
1869
|
+
TagResourceCommand,
|
|
1870
|
+
ThrottlingException,
|
|
1871
|
+
UntagResourceCommand,
|
|
1872
|
+
UpdateEnabledControlCommand,
|
|
1873
|
+
UpdateLandingZoneCommand,
|
|
1874
|
+
ValidationException,
|
|
1875
|
+
__Client,
|
|
1876
|
+
paginateListEnabledControls,
|
|
1877
|
+
paginateListLandingZones
|
|
1878
|
+
});
|