@aws-sdk/client-controltower 3.306.0 → 3.310.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.
@@ -36,10 +36,10 @@ class DisableControlCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1DisableControlCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_DisableControlCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1DisableControlCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_DisableControlCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.DisableControlCommand = DisableControlCommand;
@@ -36,10 +36,10 @@ class EnableControlCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1EnableControlCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_EnableControlCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1EnableControlCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_EnableControlCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.EnableControlCommand = EnableControlCommand;
@@ -36,10 +36,10 @@ class GetControlOperationCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1GetControlOperationCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_GetControlOperationCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetControlOperationCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_GetControlOperationCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetControlOperationCommand = GetControlOperationCommand;
@@ -36,10 +36,10 @@ class ListEnabledControlsCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListEnabledControlsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListEnabledControlsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListEnabledControlsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListEnabledControlsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListEnabledControlsCommand = ListEnabledControlsCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListEnabledControlsCommand = exports.deserializeAws_restJson1GetControlOperationCommand = exports.deserializeAws_restJson1EnableControlCommand = exports.deserializeAws_restJson1DisableControlCommand = exports.serializeAws_restJson1ListEnabledControlsCommand = exports.serializeAws_restJson1GetControlOperationCommand = exports.serializeAws_restJson1EnableControlCommand = exports.serializeAws_restJson1DisableControlCommand = void 0;
3
+ exports.de_ListEnabledControlsCommand = exports.de_GetControlOperationCommand = exports.de_EnableControlCommand = exports.de_DisableControlCommand = exports.se_ListEnabledControlsCommand = exports.se_GetControlOperationCommand = exports.se_EnableControlCommand = exports.se_DisableControlCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ControlTowerServiceException_1 = require("../models/ControlTowerServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1DisableControlCommand = async (input, context) => {
8
+ const se_DisableControlCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -26,8 +26,8 @@ const serializeAws_restJson1DisableControlCommand = async (input, context) => {
26
26
  body,
27
27
  });
28
28
  };
29
- exports.serializeAws_restJson1DisableControlCommand = serializeAws_restJson1DisableControlCommand;
30
- const serializeAws_restJson1EnableControlCommand = async (input, context) => {
29
+ exports.se_DisableControlCommand = se_DisableControlCommand;
30
+ const se_EnableControlCommand = async (input, context) => {
31
31
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
32
  const headers = {
33
33
  "content-type": "application/json",
@@ -48,8 +48,8 @@ const serializeAws_restJson1EnableControlCommand = async (input, context) => {
48
48
  body,
49
49
  });
50
50
  };
51
- exports.serializeAws_restJson1EnableControlCommand = serializeAws_restJson1EnableControlCommand;
52
- const serializeAws_restJson1GetControlOperationCommand = async (input, context) => {
51
+ exports.se_EnableControlCommand = se_EnableControlCommand;
52
+ const se_GetControlOperationCommand = async (input, context) => {
53
53
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
54
  const headers = {
55
55
  "content-type": "application/json",
@@ -69,8 +69,8 @@ const serializeAws_restJson1GetControlOperationCommand = async (input, context)
69
69
  body,
70
70
  });
71
71
  };
72
- exports.serializeAws_restJson1GetControlOperationCommand = serializeAws_restJson1GetControlOperationCommand;
73
- const serializeAws_restJson1ListEnabledControlsCommand = async (input, context) => {
72
+ exports.se_GetControlOperationCommand = se_GetControlOperationCommand;
73
+ const se_ListEnabledControlsCommand = async (input, context) => {
74
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
75
  const headers = {
76
76
  "content-type": "application/json",
@@ -92,10 +92,10 @@ const serializeAws_restJson1ListEnabledControlsCommand = async (input, context)
92
92
  body,
93
93
  });
94
94
  };
95
- exports.serializeAws_restJson1ListEnabledControlsCommand = serializeAws_restJson1ListEnabledControlsCommand;
96
- const deserializeAws_restJson1DisableControlCommand = async (output, context) => {
95
+ exports.se_ListEnabledControlsCommand = se_ListEnabledControlsCommand;
96
+ const de_DisableControlCommand = async (output, context) => {
97
97
  if (output.statusCode !== 200 && output.statusCode >= 300) {
98
- return deserializeAws_restJson1DisableControlCommandError(output, context);
98
+ return de_DisableControlCommandError(output, context);
99
99
  }
100
100
  const contents = map({
101
101
  $metadata: deserializeMetadata(output),
@@ -106,8 +106,8 @@ const deserializeAws_restJson1DisableControlCommand = async (output, context) =>
106
106
  }
107
107
  return contents;
108
108
  };
109
- exports.deserializeAws_restJson1DisableControlCommand = deserializeAws_restJson1DisableControlCommand;
110
- const deserializeAws_restJson1DisableControlCommandError = async (output, context) => {
109
+ exports.de_DisableControlCommand = de_DisableControlCommand;
110
+ const de_DisableControlCommandError = async (output, context) => {
111
111
  const parsedOutput = {
112
112
  ...output,
113
113
  body: await parseErrorBody(output.body, context),
@@ -116,25 +116,25 @@ const deserializeAws_restJson1DisableControlCommandError = async (output, contex
116
116
  switch (errorCode) {
117
117
  case "AccessDeniedException":
118
118
  case "com.amazonaws.controltower#AccessDeniedException":
119
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
119
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
120
120
  case "ConflictException":
121
121
  case "com.amazonaws.controltower#ConflictException":
122
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
122
+ throw await de_ConflictExceptionRes(parsedOutput, context);
123
123
  case "InternalServerException":
124
124
  case "com.amazonaws.controltower#InternalServerException":
125
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
125
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
126
126
  case "ResourceNotFoundException":
127
127
  case "com.amazonaws.controltower#ResourceNotFoundException":
128
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
128
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
129
129
  case "ServiceQuotaExceededException":
130
130
  case "com.amazonaws.controltower#ServiceQuotaExceededException":
131
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
131
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
132
132
  case "ThrottlingException":
133
133
  case "com.amazonaws.controltower#ThrottlingException":
134
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
134
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
135
135
  case "ValidationException":
136
136
  case "com.amazonaws.controltower#ValidationException":
137
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
137
+ throw await de_ValidationExceptionRes(parsedOutput, context);
138
138
  default:
139
139
  const parsedBody = parsedOutput.body;
140
140
  (0, smithy_client_1.throwDefaultError)({
@@ -145,9 +145,9 @@ const deserializeAws_restJson1DisableControlCommandError = async (output, contex
145
145
  });
146
146
  }
147
147
  };
148
- const deserializeAws_restJson1EnableControlCommand = async (output, context) => {
148
+ const de_EnableControlCommand = async (output, context) => {
149
149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
150
- return deserializeAws_restJson1EnableControlCommandError(output, context);
150
+ return de_EnableControlCommandError(output, context);
151
151
  }
152
152
  const contents = map({
153
153
  $metadata: deserializeMetadata(output),
@@ -158,8 +158,8 @@ const deserializeAws_restJson1EnableControlCommand = async (output, context) =>
158
158
  }
159
159
  return contents;
160
160
  };
161
- exports.deserializeAws_restJson1EnableControlCommand = deserializeAws_restJson1EnableControlCommand;
162
- const deserializeAws_restJson1EnableControlCommandError = async (output, context) => {
161
+ exports.de_EnableControlCommand = de_EnableControlCommand;
162
+ const de_EnableControlCommandError = async (output, context) => {
163
163
  const parsedOutput = {
164
164
  ...output,
165
165
  body: await parseErrorBody(output.body, context),
@@ -168,25 +168,25 @@ const deserializeAws_restJson1EnableControlCommandError = async (output, context
168
168
  switch (errorCode) {
169
169
  case "AccessDeniedException":
170
170
  case "com.amazonaws.controltower#AccessDeniedException":
171
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
171
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
172
172
  case "ConflictException":
173
173
  case "com.amazonaws.controltower#ConflictException":
174
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
174
+ throw await de_ConflictExceptionRes(parsedOutput, context);
175
175
  case "InternalServerException":
176
176
  case "com.amazonaws.controltower#InternalServerException":
177
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
177
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
178
178
  case "ResourceNotFoundException":
179
179
  case "com.amazonaws.controltower#ResourceNotFoundException":
180
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
180
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
181
181
  case "ServiceQuotaExceededException":
182
182
  case "com.amazonaws.controltower#ServiceQuotaExceededException":
183
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
183
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
184
184
  case "ThrottlingException":
185
185
  case "com.amazonaws.controltower#ThrottlingException":
186
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
186
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
187
187
  case "ValidationException":
188
188
  case "com.amazonaws.controltower#ValidationException":
189
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
189
+ throw await de_ValidationExceptionRes(parsedOutput, context);
190
190
  default:
191
191
  const parsedBody = parsedOutput.body;
192
192
  (0, smithy_client_1.throwDefaultError)({
@@ -197,21 +197,21 @@ const deserializeAws_restJson1EnableControlCommandError = async (output, context
197
197
  });
198
198
  }
199
199
  };
200
- const deserializeAws_restJson1GetControlOperationCommand = async (output, context) => {
200
+ const de_GetControlOperationCommand = async (output, context) => {
201
201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return deserializeAws_restJson1GetControlOperationCommandError(output, context);
202
+ return de_GetControlOperationCommandError(output, context);
203
203
  }
204
204
  const contents = map({
205
205
  $metadata: deserializeMetadata(output),
206
206
  });
207
207
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
208
208
  if (data.controlOperation != null) {
209
- contents.controlOperation = deserializeAws_restJson1ControlOperation(data.controlOperation, context);
209
+ contents.controlOperation = de_ControlOperation(data.controlOperation, context);
210
210
  }
211
211
  return contents;
212
212
  };
213
- exports.deserializeAws_restJson1GetControlOperationCommand = deserializeAws_restJson1GetControlOperationCommand;
214
- const deserializeAws_restJson1GetControlOperationCommandError = async (output, context) => {
213
+ exports.de_GetControlOperationCommand = de_GetControlOperationCommand;
214
+ const de_GetControlOperationCommandError = async (output, context) => {
215
215
  const parsedOutput = {
216
216
  ...output,
217
217
  body: await parseErrorBody(output.body, context),
@@ -220,19 +220,19 @@ const deserializeAws_restJson1GetControlOperationCommandError = async (output, c
220
220
  switch (errorCode) {
221
221
  case "AccessDeniedException":
222
222
  case "com.amazonaws.controltower#AccessDeniedException":
223
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
223
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
224
224
  case "InternalServerException":
225
225
  case "com.amazonaws.controltower#InternalServerException":
226
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
226
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
227
227
  case "ResourceNotFoundException":
228
228
  case "com.amazonaws.controltower#ResourceNotFoundException":
229
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
229
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
230
230
  case "ThrottlingException":
231
231
  case "com.amazonaws.controltower#ThrottlingException":
232
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
232
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
233
233
  case "ValidationException":
234
234
  case "com.amazonaws.controltower#ValidationException":
235
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
235
+ throw await de_ValidationExceptionRes(parsedOutput, context);
236
236
  default:
237
237
  const parsedBody = parsedOutput.body;
238
238
  (0, smithy_client_1.throwDefaultError)({
@@ -243,24 +243,24 @@ const deserializeAws_restJson1GetControlOperationCommandError = async (output, c
243
243
  });
244
244
  }
245
245
  };
246
- const deserializeAws_restJson1ListEnabledControlsCommand = async (output, context) => {
246
+ const de_ListEnabledControlsCommand = async (output, context) => {
247
247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
248
- return deserializeAws_restJson1ListEnabledControlsCommandError(output, context);
248
+ return de_ListEnabledControlsCommandError(output, context);
249
249
  }
250
250
  const contents = map({
251
251
  $metadata: deserializeMetadata(output),
252
252
  });
253
253
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
254
254
  if (data.enabledControls != null) {
255
- contents.enabledControls = deserializeAws_restJson1EnabledControls(data.enabledControls, context);
255
+ contents.enabledControls = de_EnabledControls(data.enabledControls, context);
256
256
  }
257
257
  if (data.nextToken != null) {
258
258
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
259
259
  }
260
260
  return contents;
261
261
  };
262
- exports.deserializeAws_restJson1ListEnabledControlsCommand = deserializeAws_restJson1ListEnabledControlsCommand;
263
- const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, context) => {
262
+ exports.de_ListEnabledControlsCommand = de_ListEnabledControlsCommand;
263
+ const de_ListEnabledControlsCommandError = async (output, context) => {
264
264
  const parsedOutput = {
265
265
  ...output,
266
266
  body: await parseErrorBody(output.body, context),
@@ -269,19 +269,19 @@ const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, c
269
269
  switch (errorCode) {
270
270
  case "AccessDeniedException":
271
271
  case "com.amazonaws.controltower#AccessDeniedException":
272
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
272
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
273
273
  case "InternalServerException":
274
274
  case "com.amazonaws.controltower#InternalServerException":
275
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
275
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
276
276
  case "ResourceNotFoundException":
277
277
  case "com.amazonaws.controltower#ResourceNotFoundException":
278
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
278
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
279
279
  case "ThrottlingException":
280
280
  case "com.amazonaws.controltower#ThrottlingException":
281
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
281
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
282
282
  case "ValidationException":
283
283
  case "com.amazonaws.controltower#ValidationException":
284
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
284
+ throw await de_ValidationExceptionRes(parsedOutput, context);
285
285
  default:
286
286
  const parsedBody = parsedOutput.body;
287
287
  (0, smithy_client_1.throwDefaultError)({
@@ -293,7 +293,7 @@ const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, c
293
293
  }
294
294
  };
295
295
  const map = smithy_client_1.map;
296
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
296
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
297
297
  const contents = map({});
298
298
  const data = parsedOutput.body;
299
299
  if (data.message != null) {
@@ -305,7 +305,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
305
305
  });
306
306
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
307
307
  };
308
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
308
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
309
309
  const contents = map({});
310
310
  const data = parsedOutput.body;
311
311
  if (data.message != null) {
@@ -317,7 +317,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
317
317
  });
318
318
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
319
319
  };
320
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
320
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
321
321
  const contents = map({});
322
322
  const data = parsedOutput.body;
323
323
  if (data.message != null) {
@@ -329,7 +329,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
329
329
  });
330
330
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
331
331
  };
332
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
332
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
333
333
  const contents = map({});
334
334
  const data = parsedOutput.body;
335
335
  if (data.message != null) {
@@ -341,7 +341,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
341
341
  });
342
342
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
343
343
  };
344
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
344
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
345
345
  const contents = map({});
346
346
  const data = parsedOutput.body;
347
347
  if (data.message != null) {
@@ -353,7 +353,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
353
353
  });
354
354
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
355
355
  };
356
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
356
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
357
357
  const contents = map({
358
358
  retryAfterSeconds: [
359
359
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -376,7 +376,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
376
376
  });
377
377
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
378
378
  };
379
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
379
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
380
380
  const contents = map({});
381
381
  const data = parsedOutput.body;
382
382
  if (data.message != null) {
@@ -388,7 +388,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
388
388
  });
389
389
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
390
390
  };
391
- const deserializeAws_restJson1ControlOperation = (output, context) => {
391
+ const de_ControlOperation = (output, context) => {
392
392
  return {
393
393
  endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.endTime)) : undefined,
394
394
  operationType: (0, smithy_client_1.expectString)(output.operationType),
@@ -397,18 +397,18 @@ const deserializeAws_restJson1ControlOperation = (output, context) => {
397
397
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
398
398
  };
399
399
  };
400
- const deserializeAws_restJson1EnabledControls = (output, context) => {
400
+ const de_EnabledControls = (output, context) => {
401
401
  const retVal = (output || [])
402
402
  .filter((e) => e != null)
403
403
  .map((entry) => {
404
404
  if (entry === null) {
405
405
  return null;
406
406
  }
407
- return deserializeAws_restJson1EnabledControlSummary(entry, context);
407
+ return de_EnabledControlSummary(entry, context);
408
408
  });
409
409
  return retVal;
410
410
  };
411
- const deserializeAws_restJson1EnabledControlSummary = (output, context) => {
411
+ const de_EnabledControlSummary = (output, context) => {
412
412
  return {
413
413
  controlIdentifier: (0, smithy_client_1.expectString)(output.controlIdentifier),
414
414
  };
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1DisableControlCommand, serializeAws_restJson1DisableControlCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_DisableControlCommand, se_DisableControlCommand } from "../protocols/Aws_restJson1";
5
5
  export class DisableControlCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DisableControlCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1DisableControlCommand(input, context);
36
+ return se_DisableControlCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1DisableControlCommand(output, context);
39
+ return de_DisableControlCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1EnableControlCommand, serializeAws_restJson1EnableControlCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_EnableControlCommand, se_EnableControlCommand } from "../protocols/Aws_restJson1";
5
5
  export class EnableControlCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class EnableControlCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1EnableControlCommand(input, context);
36
+ return se_EnableControlCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1EnableControlCommand(output, context);
39
+ return de_EnableControlCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1GetControlOperationCommand, serializeAws_restJson1GetControlOperationCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_GetControlOperationCommand, se_GetControlOperationCommand } from "../protocols/Aws_restJson1";
5
5
  export class GetControlOperationCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetControlOperationCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1GetControlOperationCommand(input, context);
36
+ return se_GetControlOperationCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1GetControlOperationCommand(output, context);
39
+ return de_GetControlOperationCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1ListEnabledControlsCommand, serializeAws_restJson1ListEnabledControlsCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ListEnabledControlsCommand, se_ListEnabledControlsCommand } from "../protocols/Aws_restJson1";
5
5
  export class ListEnabledControlsCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListEnabledControlsCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListEnabledControlsCommand(input, context);
36
+ return se_ListEnabledControlsCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListEnabledControlsCommand(output, context);
39
+ return de_ListEnabledControlsCommand(output, context);
40
40
  }
41
41
  }
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ControlTowerServiceException as __BaseException } from "../models/ControlTowerServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1DisableControlCommand = async (input, context) => {
5
+ export const se_DisableControlCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -23,7 +23,7 @@ export const serializeAws_restJson1DisableControlCommand = async (input, context
23
23
  body,
24
24
  });
25
25
  };
26
- export const serializeAws_restJson1EnableControlCommand = async (input, context) => {
26
+ export const se_EnableControlCommand = async (input, context) => {
27
27
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
28
  const headers = {
29
29
  "content-type": "application/json",
@@ -44,7 +44,7 @@ export const serializeAws_restJson1EnableControlCommand = async (input, context)
44
44
  body,
45
45
  });
46
46
  };
47
- export const serializeAws_restJson1GetControlOperationCommand = async (input, context) => {
47
+ export const se_GetControlOperationCommand = async (input, context) => {
48
48
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
49
  const headers = {
50
50
  "content-type": "application/json",
@@ -64,7 +64,7 @@ export const serializeAws_restJson1GetControlOperationCommand = async (input, co
64
64
  body,
65
65
  });
66
66
  };
67
- export const serializeAws_restJson1ListEnabledControlsCommand = async (input, context) => {
67
+ export const se_ListEnabledControlsCommand = async (input, context) => {
68
68
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
69
  const headers = {
70
70
  "content-type": "application/json",
@@ -86,9 +86,9 @@ export const serializeAws_restJson1ListEnabledControlsCommand = async (input, co
86
86
  body,
87
87
  });
88
88
  };
89
- export const deserializeAws_restJson1DisableControlCommand = async (output, context) => {
89
+ export const de_DisableControlCommand = async (output, context) => {
90
90
  if (output.statusCode !== 200 && output.statusCode >= 300) {
91
- return deserializeAws_restJson1DisableControlCommandError(output, context);
91
+ return de_DisableControlCommandError(output, context);
92
92
  }
93
93
  const contents = map({
94
94
  $metadata: deserializeMetadata(output),
@@ -99,7 +99,7 @@ export const deserializeAws_restJson1DisableControlCommand = async (output, cont
99
99
  }
100
100
  return contents;
101
101
  };
102
- const deserializeAws_restJson1DisableControlCommandError = async (output, context) => {
102
+ const de_DisableControlCommandError = async (output, context) => {
103
103
  const parsedOutput = {
104
104
  ...output,
105
105
  body: await parseErrorBody(output.body, context),
@@ -108,25 +108,25 @@ const deserializeAws_restJson1DisableControlCommandError = async (output, contex
108
108
  switch (errorCode) {
109
109
  case "AccessDeniedException":
110
110
  case "com.amazonaws.controltower#AccessDeniedException":
111
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
111
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
112
112
  case "ConflictException":
113
113
  case "com.amazonaws.controltower#ConflictException":
114
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
114
+ throw await de_ConflictExceptionRes(parsedOutput, context);
115
115
  case "InternalServerException":
116
116
  case "com.amazonaws.controltower#InternalServerException":
117
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
117
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
118
118
  case "ResourceNotFoundException":
119
119
  case "com.amazonaws.controltower#ResourceNotFoundException":
120
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
120
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
121
121
  case "ServiceQuotaExceededException":
122
122
  case "com.amazonaws.controltower#ServiceQuotaExceededException":
123
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
123
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
124
124
  case "ThrottlingException":
125
125
  case "com.amazonaws.controltower#ThrottlingException":
126
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
126
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
127
127
  case "ValidationException":
128
128
  case "com.amazonaws.controltower#ValidationException":
129
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
129
+ throw await de_ValidationExceptionRes(parsedOutput, context);
130
130
  default:
131
131
  const parsedBody = parsedOutput.body;
132
132
  throwDefaultError({
@@ -137,9 +137,9 @@ const deserializeAws_restJson1DisableControlCommandError = async (output, contex
137
137
  });
138
138
  }
139
139
  };
140
- export const deserializeAws_restJson1EnableControlCommand = async (output, context) => {
140
+ export const de_EnableControlCommand = async (output, context) => {
141
141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
142
- return deserializeAws_restJson1EnableControlCommandError(output, context);
142
+ return de_EnableControlCommandError(output, context);
143
143
  }
144
144
  const contents = map({
145
145
  $metadata: deserializeMetadata(output),
@@ -150,7 +150,7 @@ export const deserializeAws_restJson1EnableControlCommand = async (output, conte
150
150
  }
151
151
  return contents;
152
152
  };
153
- const deserializeAws_restJson1EnableControlCommandError = async (output, context) => {
153
+ const de_EnableControlCommandError = async (output, context) => {
154
154
  const parsedOutput = {
155
155
  ...output,
156
156
  body: await parseErrorBody(output.body, context),
@@ -159,25 +159,25 @@ const deserializeAws_restJson1EnableControlCommandError = async (output, context
159
159
  switch (errorCode) {
160
160
  case "AccessDeniedException":
161
161
  case "com.amazonaws.controltower#AccessDeniedException":
162
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
162
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
163
163
  case "ConflictException":
164
164
  case "com.amazonaws.controltower#ConflictException":
165
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
165
+ throw await de_ConflictExceptionRes(parsedOutput, context);
166
166
  case "InternalServerException":
167
167
  case "com.amazonaws.controltower#InternalServerException":
168
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
168
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
169
169
  case "ResourceNotFoundException":
170
170
  case "com.amazonaws.controltower#ResourceNotFoundException":
171
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
171
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
172
172
  case "ServiceQuotaExceededException":
173
173
  case "com.amazonaws.controltower#ServiceQuotaExceededException":
174
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
174
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
175
175
  case "ThrottlingException":
176
176
  case "com.amazonaws.controltower#ThrottlingException":
177
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
177
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
178
178
  case "ValidationException":
179
179
  case "com.amazonaws.controltower#ValidationException":
180
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
180
+ throw await de_ValidationExceptionRes(parsedOutput, context);
181
181
  default:
182
182
  const parsedBody = parsedOutput.body;
183
183
  throwDefaultError({
@@ -188,20 +188,20 @@ const deserializeAws_restJson1EnableControlCommandError = async (output, context
188
188
  });
189
189
  }
190
190
  };
191
- export const deserializeAws_restJson1GetControlOperationCommand = async (output, context) => {
191
+ export const de_GetControlOperationCommand = async (output, context) => {
192
192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
193
- return deserializeAws_restJson1GetControlOperationCommandError(output, context);
193
+ return de_GetControlOperationCommandError(output, context);
194
194
  }
195
195
  const contents = map({
196
196
  $metadata: deserializeMetadata(output),
197
197
  });
198
198
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
199
199
  if (data.controlOperation != null) {
200
- contents.controlOperation = deserializeAws_restJson1ControlOperation(data.controlOperation, context);
200
+ contents.controlOperation = de_ControlOperation(data.controlOperation, context);
201
201
  }
202
202
  return contents;
203
203
  };
204
- const deserializeAws_restJson1GetControlOperationCommandError = async (output, context) => {
204
+ const de_GetControlOperationCommandError = async (output, context) => {
205
205
  const parsedOutput = {
206
206
  ...output,
207
207
  body: await parseErrorBody(output.body, context),
@@ -210,19 +210,19 @@ const deserializeAws_restJson1GetControlOperationCommandError = async (output, c
210
210
  switch (errorCode) {
211
211
  case "AccessDeniedException":
212
212
  case "com.amazonaws.controltower#AccessDeniedException":
213
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
213
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
214
214
  case "InternalServerException":
215
215
  case "com.amazonaws.controltower#InternalServerException":
216
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
216
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
217
217
  case "ResourceNotFoundException":
218
218
  case "com.amazonaws.controltower#ResourceNotFoundException":
219
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
219
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
220
220
  case "ThrottlingException":
221
221
  case "com.amazonaws.controltower#ThrottlingException":
222
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
222
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
223
223
  case "ValidationException":
224
224
  case "com.amazonaws.controltower#ValidationException":
225
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
225
+ throw await de_ValidationExceptionRes(parsedOutput, context);
226
226
  default:
227
227
  const parsedBody = parsedOutput.body;
228
228
  throwDefaultError({
@@ -233,23 +233,23 @@ const deserializeAws_restJson1GetControlOperationCommandError = async (output, c
233
233
  });
234
234
  }
235
235
  };
236
- export const deserializeAws_restJson1ListEnabledControlsCommand = async (output, context) => {
236
+ export const de_ListEnabledControlsCommand = async (output, context) => {
237
237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
238
- return deserializeAws_restJson1ListEnabledControlsCommandError(output, context);
238
+ return de_ListEnabledControlsCommandError(output, context);
239
239
  }
240
240
  const contents = map({
241
241
  $metadata: deserializeMetadata(output),
242
242
  });
243
243
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
244
244
  if (data.enabledControls != null) {
245
- contents.enabledControls = deserializeAws_restJson1EnabledControls(data.enabledControls, context);
245
+ contents.enabledControls = de_EnabledControls(data.enabledControls, context);
246
246
  }
247
247
  if (data.nextToken != null) {
248
248
  contents.nextToken = __expectString(data.nextToken);
249
249
  }
250
250
  return contents;
251
251
  };
252
- const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, context) => {
252
+ const de_ListEnabledControlsCommandError = async (output, context) => {
253
253
  const parsedOutput = {
254
254
  ...output,
255
255
  body: await parseErrorBody(output.body, context),
@@ -258,19 +258,19 @@ const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, c
258
258
  switch (errorCode) {
259
259
  case "AccessDeniedException":
260
260
  case "com.amazonaws.controltower#AccessDeniedException":
261
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
261
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
262
262
  case "InternalServerException":
263
263
  case "com.amazonaws.controltower#InternalServerException":
264
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
264
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
265
265
  case "ResourceNotFoundException":
266
266
  case "com.amazonaws.controltower#ResourceNotFoundException":
267
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
267
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
268
268
  case "ThrottlingException":
269
269
  case "com.amazonaws.controltower#ThrottlingException":
270
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
270
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
271
271
  case "ValidationException":
272
272
  case "com.amazonaws.controltower#ValidationException":
273
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
273
+ throw await de_ValidationExceptionRes(parsedOutput, context);
274
274
  default:
275
275
  const parsedBody = parsedOutput.body;
276
276
  throwDefaultError({
@@ -282,7 +282,7 @@ const deserializeAws_restJson1ListEnabledControlsCommandError = async (output, c
282
282
  }
283
283
  };
284
284
  const map = __map;
285
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
285
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
286
286
  const contents = map({});
287
287
  const data = parsedOutput.body;
288
288
  if (data.message != null) {
@@ -294,7 +294,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
294
294
  });
295
295
  return __decorateServiceException(exception, parsedOutput.body);
296
296
  };
297
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
297
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
298
298
  const contents = map({});
299
299
  const data = parsedOutput.body;
300
300
  if (data.message != null) {
@@ -306,7 +306,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
306
306
  });
307
307
  return __decorateServiceException(exception, parsedOutput.body);
308
308
  };
309
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
309
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
310
310
  const contents = map({});
311
311
  const data = parsedOutput.body;
312
312
  if (data.message != null) {
@@ -318,7 +318,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
318
318
  });
319
319
  return __decorateServiceException(exception, parsedOutput.body);
320
320
  };
321
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
321
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
322
322
  const contents = map({});
323
323
  const data = parsedOutput.body;
324
324
  if (data.message != null) {
@@ -330,7 +330,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
330
330
  });
331
331
  return __decorateServiceException(exception, parsedOutput.body);
332
332
  };
333
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
333
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
334
334
  const contents = map({});
335
335
  const data = parsedOutput.body;
336
336
  if (data.message != null) {
@@ -342,7 +342,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
342
342
  });
343
343
  return __decorateServiceException(exception, parsedOutput.body);
344
344
  };
345
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
345
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
346
346
  const contents = map({
347
347
  retryAfterSeconds: [
348
348
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -365,7 +365,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
365
365
  });
366
366
  return __decorateServiceException(exception, parsedOutput.body);
367
367
  };
368
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
368
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
369
369
  const contents = map({});
370
370
  const data = parsedOutput.body;
371
371
  if (data.message != null) {
@@ -377,7 +377,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
377
377
  });
378
378
  return __decorateServiceException(exception, parsedOutput.body);
379
379
  };
380
- const deserializeAws_restJson1ControlOperation = (output, context) => {
380
+ const de_ControlOperation = (output, context) => {
381
381
  return {
382
382
  endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
383
383
  operationType: __expectString(output.operationType),
@@ -386,18 +386,18 @@ const deserializeAws_restJson1ControlOperation = (output, context) => {
386
386
  statusMessage: __expectString(output.statusMessage),
387
387
  };
388
388
  };
389
- const deserializeAws_restJson1EnabledControls = (output, context) => {
389
+ const de_EnabledControls = (output, context) => {
390
390
  const retVal = (output || [])
391
391
  .filter((e) => e != null)
392
392
  .map((entry) => {
393
393
  if (entry === null) {
394
394
  return null;
395
395
  }
396
- return deserializeAws_restJson1EnabledControlSummary(entry, context);
396
+ return de_EnabledControlSummary(entry, context);
397
397
  });
398
398
  return retVal;
399
399
  };
400
- const deserializeAws_restJson1EnabledControlSummary = (output, context) => {
400
+ const de_EnabledControlSummary = (output, context) => {
401
401
  return {
402
402
  controlIdentifier: __expectString(output.controlIdentifier),
403
403
  };
@@ -4,11 +4,35 @@ import { DisableControlCommandInput, DisableControlCommandOutput } from "../comm
4
4
  import { EnableControlCommandInput, EnableControlCommandOutput } from "../commands/EnableControlCommand";
5
5
  import { GetControlOperationCommandInput, GetControlOperationCommandOutput } from "../commands/GetControlOperationCommand";
6
6
  import { ListEnabledControlsCommandInput, ListEnabledControlsCommandOutput } from "../commands/ListEnabledControlsCommand";
7
- export declare const serializeAws_restJson1DisableControlCommand: (input: DisableControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
- export declare const serializeAws_restJson1EnableControlCommand: (input: EnableControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
- export declare const serializeAws_restJson1GetControlOperationCommand: (input: GetControlOperationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
- export declare const serializeAws_restJson1ListEnabledControlsCommand: (input: ListEnabledControlsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
- export declare const deserializeAws_restJson1DisableControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableControlCommandOutput>;
12
- export declare const deserializeAws_restJson1EnableControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableControlCommandOutput>;
13
- export declare const deserializeAws_restJson1GetControlOperationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetControlOperationCommandOutput>;
14
- export declare const deserializeAws_restJson1ListEnabledControlsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEnabledControlsCommandOutput>;
7
+ /**
8
+ * serializeAws_restJson1DisableControlCommand
9
+ */
10
+ export declare const se_DisableControlCommand: (input: DisableControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
+ /**
12
+ * serializeAws_restJson1EnableControlCommand
13
+ */
14
+ export declare const se_EnableControlCommand: (input: EnableControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
+ /**
16
+ * serializeAws_restJson1GetControlOperationCommand
17
+ */
18
+ export declare const se_GetControlOperationCommand: (input: GetControlOperationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
+ /**
20
+ * serializeAws_restJson1ListEnabledControlsCommand
21
+ */
22
+ export declare const se_ListEnabledControlsCommand: (input: ListEnabledControlsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ /**
24
+ * deserializeAws_restJson1DisableControlCommand
25
+ */
26
+ export declare const de_DisableControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableControlCommandOutput>;
27
+ /**
28
+ * deserializeAws_restJson1EnableControlCommand
29
+ */
30
+ export declare const de_EnableControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableControlCommandOutput>;
31
+ /**
32
+ * deserializeAws_restJson1GetControlOperationCommand
33
+ */
34
+ export declare const de_GetControlOperationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetControlOperationCommandOutput>;
35
+ /**
36
+ * deserializeAws_restJson1ListEnabledControlsCommand
37
+ */
38
+ export declare const de_ListEnabledControlsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEnabledControlsCommandOutput>;
@@ -19,35 +19,35 @@ import {
19
19
  ListEnabledControlsCommandInput,
20
20
  ListEnabledControlsCommandOutput,
21
21
  } from "../commands/ListEnabledControlsCommand";
22
- export declare const serializeAws_restJson1DisableControlCommand: (
22
+ export declare const se_DisableControlCommand: (
23
23
  input: DisableControlCommandInput,
24
24
  context: __SerdeContext
25
25
  ) => Promise<__HttpRequest>;
26
- export declare const serializeAws_restJson1EnableControlCommand: (
26
+ export declare const se_EnableControlCommand: (
27
27
  input: EnableControlCommandInput,
28
28
  context: __SerdeContext
29
29
  ) => Promise<__HttpRequest>;
30
- export declare const serializeAws_restJson1GetControlOperationCommand: (
30
+ export declare const se_GetControlOperationCommand: (
31
31
  input: GetControlOperationCommandInput,
32
32
  context: __SerdeContext
33
33
  ) => Promise<__HttpRequest>;
34
- export declare const serializeAws_restJson1ListEnabledControlsCommand: (
34
+ export declare const se_ListEnabledControlsCommand: (
35
35
  input: ListEnabledControlsCommandInput,
36
36
  context: __SerdeContext
37
37
  ) => Promise<__HttpRequest>;
38
- export declare const deserializeAws_restJson1DisableControlCommand: (
38
+ export declare const de_DisableControlCommand: (
39
39
  output: __HttpResponse,
40
40
  context: __SerdeContext
41
41
  ) => Promise<DisableControlCommandOutput>;
42
- export declare const deserializeAws_restJson1EnableControlCommand: (
42
+ export declare const de_EnableControlCommand: (
43
43
  output: __HttpResponse,
44
44
  context: __SerdeContext
45
45
  ) => Promise<EnableControlCommandOutput>;
46
- export declare const deserializeAws_restJson1GetControlOperationCommand: (
46
+ export declare const de_GetControlOperationCommand: (
47
47
  output: __HttpResponse,
48
48
  context: __SerdeContext
49
49
  ) => Promise<GetControlOperationCommandOutput>;
50
- export declare const deserializeAws_restJson1ListEnabledControlsCommand: (
50
+ export declare const de_ListEnabledControlsCommand: (
51
51
  output: __HttpResponse,
52
52
  context: __SerdeContext
53
53
  ) => Promise<ListEnabledControlsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-controltower",
3
3
  "description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
4
- "version": "3.306.0",
4
+ "version": "3.310.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.306.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.306.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.306.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.310.0",
25
+ "@aws-sdk/config-resolver": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.310.0",
27
+ "@aws-sdk/fetch-http-handler": "3.310.0",
28
+ "@aws-sdk/hash-node": "3.310.0",
29
+ "@aws-sdk/invalid-dependency": "3.310.0",
30
+ "@aws-sdk/middleware-content-length": "3.310.0",
31
+ "@aws-sdk/middleware-endpoint": "3.310.0",
32
+ "@aws-sdk/middleware-host-header": "3.310.0",
33
+ "@aws-sdk/middleware-logger": "3.310.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
+ "@aws-sdk/middleware-retry": "3.310.0",
36
+ "@aws-sdk/middleware-serde": "3.310.0",
37
+ "@aws-sdk/middleware-signing": "3.310.0",
38
+ "@aws-sdk/middleware-stack": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/node-config-provider": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.310.0",
42
+ "@aws-sdk/protocol-http": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.310.0",
44
+ "@aws-sdk/types": "3.310.0",
45
+ "@aws-sdk/url-parser": "3.310.0",
46
+ "@aws-sdk/util-base64": "3.310.0",
47
+ "@aws-sdk/util-body-length-browser": "3.310.0",
48
+ "@aws-sdk/util-body-length-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-retry": "3.310.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.310.0",
54
+ "@aws-sdk/util-user-agent-node": "3.310.0",
55
+ "@aws-sdk/util-utf8": "3.310.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "files": [
79
- "dist-*"
79
+ "dist-*/**"
80
80
  ],
81
81
  "author": {
82
82
  "name": "AWS SDK for JavaScript Team",