@aws-sdk/client-controlcatalog 3.928.0 → 3.929.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/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class ControlCatalogClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class ControlCatalogClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class ControlCatalogServiceException extends smithyClient.ServiceException {
113
+ let ControlCatalogServiceException$1 = class ControlCatalogServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, ControlCatalogServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends ControlCatalogServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends ControlCatalogServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,8 +130,8 @@ class AccessDeniedException extends ControlCatalogServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
134
- class InternalServerException extends ControlCatalogServiceException {
133
+ };
134
+ let InternalServerException$1 = class InternalServerException extends ControlCatalogServiceException$1 {
135
135
  name = "InternalServerException";
136
136
  $fault = "server";
137
137
  $retryable = {};
@@ -145,8 +145,8 @@ class InternalServerException extends ControlCatalogServiceException {
145
145
  Object.setPrototypeOf(this, InternalServerException.prototype);
146
146
  this.Message = opts.Message;
147
147
  }
148
- }
149
- class ThrottlingException extends ControlCatalogServiceException {
148
+ };
149
+ let ThrottlingException$1 = class ThrottlingException extends ControlCatalogServiceException$1 {
150
150
  name = "ThrottlingException";
151
151
  $fault = "client";
152
152
  $retryable = {
@@ -162,8 +162,8 @@ class ThrottlingException extends ControlCatalogServiceException {
162
162
  Object.setPrototypeOf(this, ThrottlingException.prototype);
163
163
  this.Message = opts.Message;
164
164
  }
165
- }
166
- class ValidationException extends ControlCatalogServiceException {
165
+ };
166
+ let ValidationException$1 = class ValidationException extends ControlCatalogServiceException$1 {
167
167
  name = "ValidationException";
168
168
  $fault = "client";
169
169
  Message;
@@ -176,7 +176,7 @@ class ValidationException extends ControlCatalogServiceException {
176
176
  Object.setPrototypeOf(this, ValidationException.prototype);
177
177
  this.Message = opts.Message;
178
178
  }
179
- }
179
+ };
180
180
  const ControlBehavior = {
181
181
  DETECTIVE: "DETECTIVE",
182
182
  PREVENTIVE: "PREVENTIVE",
@@ -192,7 +192,7 @@ const ControlSeverity = {
192
192
  LOW: "LOW",
193
193
  MEDIUM: "MEDIUM",
194
194
  };
195
- class ResourceNotFoundException extends ControlCatalogServiceException {
195
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends ControlCatalogServiceException$1 {
196
196
  name = "ResourceNotFoundException";
197
197
  $fault = "client";
198
198
  Message;
@@ -205,7 +205,7 @@ class ResourceNotFoundException extends ControlCatalogServiceException {
205
205
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
206
206
  this.Message = opts.Message;
207
207
  }
208
- }
208
+ };
209
209
  const MappingType = {
210
210
  COMMON_CONTROL: "COMMON_CONTROL",
211
211
  FRAMEWORK: "FRAMEWORK",
@@ -221,395 +221,444 @@ exports.Mapping = void 0;
221
221
  };
222
222
  })(exports.Mapping || (exports.Mapping = {}));
223
223
 
224
- const se_GetControlCommand = async (input, context) => {
225
- const b = core.requestBuilder(input, context);
226
- const headers = {
227
- "content-type": "application/json",
228
- };
229
- b.bp("/get-control");
230
- let body;
231
- body = JSON.stringify(smithyClient.take(input, {
232
- ControlArn: [],
233
- }));
234
- b.m("POST").h(headers).b(body);
235
- return b.build();
236
- };
237
- const se_ListCommonControlsCommand = async (input, context) => {
238
- const b = core.requestBuilder(input, context);
239
- const headers = {
240
- "content-type": "application/json",
241
- };
242
- b.bp("/common-controls");
243
- const query = smithyClient.map({
244
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
245
- [_nT]: [, input[_NT]],
246
- });
247
- let body;
248
- body = JSON.stringify(smithyClient.take(input, {
249
- CommonControlFilter: (_) => smithyClient._json(_),
250
- }));
251
- b.m("POST").h(headers).q(query).b(body);
252
- return b.build();
253
- };
254
- const se_ListControlMappingsCommand = async (input, context) => {
255
- const b = core.requestBuilder(input, context);
256
- const headers = {
257
- "content-type": "application/json",
258
- };
259
- b.bp("/list-control-mappings");
260
- const query = smithyClient.map({
261
- [_nT]: [, input[_NT]],
262
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
263
- });
264
- let body;
265
- body = JSON.stringify(smithyClient.take(input, {
266
- Filter: (_) => smithyClient._json(_),
267
- }));
268
- b.m("POST").h(headers).q(query).b(body);
269
- return b.build();
270
- };
271
- const se_ListControlsCommand = async (input, context) => {
272
- const b = core.requestBuilder(input, context);
273
- const headers = {
274
- "content-type": "application/json",
275
- };
276
- b.bp("/list-controls");
277
- const query = smithyClient.map({
278
- [_nT]: [, input[_NT]],
279
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
280
- });
281
- let body;
282
- body = JSON.stringify(smithyClient.take(input, {
283
- Filter: (_) => smithyClient._json(_),
284
- }));
285
- b.m("POST").h(headers).q(query).b(body);
286
- return b.build();
287
- };
288
- const se_ListDomainsCommand = async (input, context) => {
289
- const b = core.requestBuilder(input, context);
290
- const headers = {};
291
- b.bp("/domains");
292
- const query = smithyClient.map({
293
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
294
- [_nT]: [, input[_NT]],
295
- });
296
- let body;
297
- b.m("POST").h(headers).q(query).b(body);
298
- return b.build();
299
- };
300
- const se_ListObjectivesCommand = async (input, context) => {
301
- const b = core.requestBuilder(input, context);
302
- const headers = {
303
- "content-type": "application/json",
304
- };
305
- b.bp("/objectives");
306
- const query = smithyClient.map({
307
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
308
- [_nT]: [, input[_NT]],
309
- });
310
- let body;
311
- body = JSON.stringify(smithyClient.take(input, {
312
- ObjectiveFilter: (_) => smithyClient._json(_),
313
- }));
314
- b.m("POST").h(headers).q(query).b(body);
315
- return b.build();
316
- };
317
- const de_GetControlCommand = async (output, context) => {
318
- if (output.statusCode !== 200 && output.statusCode >= 300) {
319
- return de_CommandError(output, context);
320
- }
321
- const contents = smithyClient.map({
322
- $metadata: deserializeMetadata(output),
323
- });
324
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
325
- const doc = smithyClient.take(data, {
326
- Aliases: smithyClient._json,
327
- Arn: smithyClient.expectString,
328
- Behavior: smithyClient.expectString,
329
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
330
- Description: smithyClient.expectString,
331
- GovernedResources: smithyClient._json,
332
- Implementation: smithyClient._json,
333
- Name: smithyClient.expectString,
334
- Parameters: smithyClient._json,
335
- RegionConfiguration: smithyClient._json,
336
- Severity: smithyClient.expectString,
337
- });
338
- Object.assign(contents, doc);
339
- return contents;
340
- };
341
- const de_ListCommonControlsCommand = async (output, context) => {
342
- if (output.statusCode !== 200 && output.statusCode >= 300) {
343
- return de_CommandError(output, context);
344
- }
345
- const contents = smithyClient.map({
346
- $metadata: deserializeMetadata(output),
347
- });
348
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
349
- const doc = smithyClient.take(data, {
350
- CommonControls: (_) => de_CommonControlSummaryList(_),
351
- NextToken: smithyClient.expectString,
352
- });
353
- Object.assign(contents, doc);
354
- return contents;
355
- };
356
- const de_ListControlMappingsCommand = async (output, context) => {
357
- if (output.statusCode !== 200 && output.statusCode >= 300) {
358
- return de_CommandError(output, context);
359
- }
360
- const contents = smithyClient.map({
361
- $metadata: deserializeMetadata(output),
362
- });
363
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
364
- const doc = smithyClient.take(data, {
365
- ControlMappings: smithyClient._json,
366
- NextToken: smithyClient.expectString,
367
- });
368
- Object.assign(contents, doc);
369
- return contents;
370
- };
371
- const de_ListControlsCommand = async (output, context) => {
372
- if (output.statusCode !== 200 && output.statusCode >= 300) {
373
- return de_CommandError(output, context);
374
- }
375
- const contents = smithyClient.map({
376
- $metadata: deserializeMetadata(output),
377
- });
378
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
379
- const doc = smithyClient.take(data, {
380
- Controls: (_) => de_Controls(_),
381
- NextToken: smithyClient.expectString,
382
- });
383
- Object.assign(contents, doc);
384
- return contents;
385
- };
386
- const de_ListDomainsCommand = async (output, context) => {
387
- if (output.statusCode !== 200 && output.statusCode >= 300) {
388
- return de_CommandError(output, context);
389
- }
390
- const contents = smithyClient.map({
391
- $metadata: deserializeMetadata(output),
392
- });
393
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
394
- const doc = smithyClient.take(data, {
395
- Domains: (_) => de_DomainSummaryList(_),
396
- NextToken: smithyClient.expectString,
397
- });
398
- Object.assign(contents, doc);
399
- return contents;
400
- };
401
- const de_ListObjectivesCommand = async (output, context) => {
402
- if (output.statusCode !== 200 && output.statusCode >= 300) {
403
- return de_CommandError(output, context);
404
- }
405
- const contents = smithyClient.map({
406
- $metadata: deserializeMetadata(output),
407
- });
408
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
409
- const doc = smithyClient.take(data, {
410
- NextToken: smithyClient.expectString,
411
- Objectives: (_) => de_ObjectiveSummaryList(_),
412
- });
413
- Object.assign(contents, doc);
414
- return contents;
415
- };
416
- const de_CommandError = async (output, context) => {
417
- const parsedOutput = {
418
- ...output,
419
- body: await core$1.parseJsonErrorBody(output.body, context),
420
- };
421
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
422
- switch (errorCode) {
423
- case "AccessDeniedException":
424
- case "com.amazonaws.controlcatalog#AccessDeniedException":
425
- throw await de_AccessDeniedExceptionRes(parsedOutput);
426
- case "InternalServerException":
427
- case "com.amazonaws.controlcatalog#InternalServerException":
428
- throw await de_InternalServerExceptionRes(parsedOutput);
429
- case "ResourceNotFoundException":
430
- case "com.amazonaws.controlcatalog#ResourceNotFoundException":
431
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
432
- case "ThrottlingException":
433
- case "com.amazonaws.controlcatalog#ThrottlingException":
434
- throw await de_ThrottlingExceptionRes(parsedOutput);
435
- case "ValidationException":
436
- case "com.amazonaws.controlcatalog#ValidationException":
437
- throw await de_ValidationExceptionRes(parsedOutput);
438
- default:
439
- const parsedBody = parsedOutput.body;
440
- return throwDefaultError({
441
- output,
442
- parsedBody,
443
- errorCode,
444
- });
445
- }
446
- };
447
- const throwDefaultError = smithyClient.withBaseException(ControlCatalogServiceException);
448
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
449
- const contents = smithyClient.map({});
450
- const data = parsedOutput.body;
451
- const doc = smithyClient.take(data, {
452
- Message: smithyClient.expectString,
453
- });
454
- Object.assign(contents, doc);
455
- const exception = new AccessDeniedException({
456
- $metadata: deserializeMetadata(parsedOutput),
457
- ...contents,
458
- });
459
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
460
- };
461
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
462
- const contents = smithyClient.map({});
463
- const data = parsedOutput.body;
464
- const doc = smithyClient.take(data, {
465
- Message: smithyClient.expectString,
466
- });
467
- Object.assign(contents, doc);
468
- const exception = new InternalServerException({
469
- $metadata: deserializeMetadata(parsedOutput),
470
- ...contents,
471
- });
472
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
473
- };
474
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
475
- const contents = smithyClient.map({});
476
- const data = parsedOutput.body;
477
- const doc = smithyClient.take(data, {
478
- Message: smithyClient.expectString,
479
- });
480
- Object.assign(contents, doc);
481
- const exception = new ResourceNotFoundException({
482
- $metadata: deserializeMetadata(parsedOutput),
483
- ...contents,
484
- });
485
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
486
- };
487
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
488
- const contents = smithyClient.map({});
489
- const data = parsedOutput.body;
490
- const doc = smithyClient.take(data, {
491
- Message: smithyClient.expectString,
492
- });
493
- Object.assign(contents, doc);
494
- const exception = new ThrottlingException({
495
- $metadata: deserializeMetadata(parsedOutput),
496
- ...contents,
497
- });
498
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
499
- };
500
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
501
- const contents = smithyClient.map({});
502
- const data = parsedOutput.body;
503
- const doc = smithyClient.take(data, {
504
- Message: smithyClient.expectString,
505
- });
506
- Object.assign(contents, doc);
507
- const exception = new ValidationException({
508
- $metadata: deserializeMetadata(parsedOutput),
509
- ...contents,
510
- });
511
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
512
- };
513
- const de_CommonControlSummary = (output, context) => {
514
- return smithyClient.take(output, {
515
- Arn: smithyClient.expectString,
516
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
517
- Description: smithyClient.expectString,
518
- Domain: smithyClient._json,
519
- LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
520
- Name: smithyClient.expectString,
521
- Objective: smithyClient._json,
522
- });
523
- };
524
- const de_CommonControlSummaryList = (output, context) => {
525
- const retVal = (output || [])
526
- .filter((e) => e != null)
527
- .map((entry) => {
528
- return de_CommonControlSummary(entry);
529
- });
530
- return retVal;
531
- };
532
- const de_Controls = (output, context) => {
533
- const retVal = (output || [])
534
- .filter((e) => e != null)
535
- .map((entry) => {
536
- return de_ControlSummary(entry);
537
- });
538
- return retVal;
539
- };
540
- const de_ControlSummary = (output, context) => {
541
- return smithyClient.take(output, {
542
- Aliases: smithyClient._json,
543
- Arn: smithyClient.expectString,
544
- Behavior: smithyClient.expectString,
545
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
546
- Description: smithyClient.expectString,
547
- GovernedResources: smithyClient._json,
548
- Implementation: smithyClient._json,
549
- Name: smithyClient.expectString,
550
- Severity: smithyClient.expectString,
551
- });
552
- };
553
- const de_DomainSummary = (output, context) => {
554
- return smithyClient.take(output, {
555
- Arn: smithyClient.expectString,
556
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
557
- Description: smithyClient.expectString,
558
- LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
559
- Name: smithyClient.expectString,
560
- });
561
- };
562
- const de_DomainSummaryList = (output, context) => {
563
- const retVal = (output || [])
564
- .filter((e) => e != null)
565
- .map((entry) => {
566
- return de_DomainSummary(entry);
567
- });
568
- return retVal;
569
- };
570
- const de_ObjectiveSummary = (output, context) => {
571
- return smithyClient.take(output, {
572
- Arn: smithyClient.expectString,
573
- CreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
574
- Description: smithyClient.expectString,
575
- Domain: smithyClient._json,
576
- LastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
577
- Name: smithyClient.expectString,
578
- });
579
- };
580
- const de_ObjectiveSummaryList = (output, context) => {
581
- const retVal = (output || [])
582
- .filter((e) => e != null)
583
- .map((entry) => {
584
- return de_ObjectiveSummary(entry);
585
- });
586
- return retVal;
587
- };
588
- const deserializeMetadata = (output) => ({
589
- httpStatusCode: output.statusCode,
590
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
591
- extendedRequestId: output.headers["x-amz-id-2"],
592
- cfId: output.headers["x-amz-cf-id"],
593
- });
224
+ const _A = "Arn";
225
+ const _ADE = "AccessDeniedException";
226
+ const _ADS = "AssociatedDomainSummary";
227
+ const _AOS = "AssociatedObjectiveSummary";
228
+ const _Al = "Aliases";
229
+ const _B = "Behavior";
230
+ const _C = "Controls";
231
+ const _CA = "ControlArn";
232
+ const _CAo = "ControlArns";
233
+ const _CC = "CommonControls";
234
+ const _CCA = "CommonControlArn";
235
+ const _CCAo = "CommonControlArns";
236
+ const _CCF = "CommonControlFilter";
237
+ const _CCMD = "CommonControlMappingDetails";
238
+ const _CCS = "CommonControlSummary";
239
+ const _CCSL = "CommonControlSummaryList";
240
+ const _CCo = "CommonControl";
241
+ const _CF = "ControlFilter";
242
+ const _CM = "ControlMapping";
243
+ const _CMF = "ControlMappingFilter";
244
+ const _CMo = "ControlMappings";
245
+ const _CP = "ControlParameter";
246
+ const _CPo = "ControlParameters";
247
+ const _CS = "ControlSummary";
248
+ const _CT = "CreateTime";
249
+ const _D = "Description";
250
+ const _DR = "DeployableRegions";
251
+ const _DRF = "DomainResourceFilter";
252
+ const _DRFL = "DomainResourceFilterList";
253
+ const _DS = "DomainSummary";
254
+ const _DSL = "DomainSummaryList";
255
+ const _Do = "Domain";
256
+ const _Dom = "Domains";
257
+ const _F = "Filter";
258
+ const _FMD = "FrameworkMappingDetails";
259
+ const _Fr = "Framework";
260
+ const _GC = "GetControl";
261
+ const _GCR = "GetControlRequest";
262
+ const _GCRe = "GetControlResponse";
263
+ const _GR = "GovernedResources";
264
+ const _I = "Implementations";
265
+ const _ID = "ImplementationDetails";
266
+ const _IF = "ImplementationFilter";
267
+ const _IS = "ImplementationSummary";
268
+ const _ISE = "InternalServerException";
269
+ const _Id = "Identifier";
270
+ const _Ide = "Identifiers";
271
+ const _Im = "Implementation";
272
+ const _It = "Item";
273
+ const _LC = "ListControls";
274
+ const _LCC = "ListCommonControls";
275
+ const _LCCR = "ListCommonControlsRequest";
276
+ const _LCCRi = "ListCommonControlsResponse";
277
+ const _LCM = "ListControlMappings";
278
+ const _LCMR = "ListControlMappingsRequest";
279
+ const _LCMRi = "ListControlMappingsResponse";
280
+ const _LCR = "ListControlsRequest";
281
+ const _LCRi = "ListControlsResponse";
282
+ const _LD = "ListDomains";
283
+ const _LDR = "ListDomainsRequest";
284
+ const _LDRi = "ListDomainsResponse";
285
+ const _LO = "ListObjectives";
286
+ const _LOR = "ListObjectivesRequest";
287
+ const _LORi = "ListObjectivesResponse";
288
+ const _LUT = "LastUpdateTime";
289
+ const _M = "Message";
594
290
  const _MR = "MaxResults";
291
+ const _MT = "MappingType";
292
+ const _MTa = "MappingTypes";
293
+ const _Ma = "Mapping";
294
+ const _N = "Name";
595
295
  const _NT = "NextToken";
296
+ const _O = "Objectives";
297
+ const _OF = "ObjectiveFilter";
298
+ const _ORF = "ObjectiveResourceFilter";
299
+ const _ORFL = "ObjectiveResourceFilterList";
300
+ const _OS = "ObjectiveSummary";
301
+ const _OSL = "ObjectiveSummaryList";
302
+ const _Ob = "Objective";
303
+ const _P = "Parameters";
304
+ const _RC = "RegionConfiguration";
305
+ const _RNFE = "ResourceNotFoundException";
306
+ const _S = "Severity";
307
+ const _Sc = "Scope";
308
+ const _T = "Type";
309
+ const _TE = "ThrottlingException";
310
+ const _Ty = "Types";
311
+ const _VE = "ValidationException";
312
+ const _c = "client";
313
+ const _e = "error";
314
+ const _h = "http";
315
+ const _hE = "httpError";
316
+ const _hQ = "httpQuery";
596
317
  const _mR = "maxResults";
597
318
  const _nT = "nextToken";
319
+ const _s = "server";
320
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.controlcatalog";
321
+ const n0 = "com.amazonaws.controlcatalog";
322
+ var AccessDeniedException = [
323
+ -3,
324
+ n0,
325
+ _ADE,
326
+ {
327
+ [_e]: _c,
328
+ [_hE]: 403,
329
+ },
330
+ [_M],
331
+ [0],
332
+ ];
333
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
334
+ var AssociatedDomainSummary = [3, n0, _ADS, 0, [_A, _N], [0, 0]];
335
+ var AssociatedObjectiveSummary = [3, n0, _AOS, 0, [_A, _N], [0, 0]];
336
+ var CommonControlFilter = [3, n0, _CCF, 0, [_O], [() => ObjectiveResourceFilterList]];
337
+ var CommonControlMappingDetails = [3, n0, _CCMD, 0, [_CCA], [0]];
338
+ var CommonControlSummary = [
339
+ 3,
340
+ n0,
341
+ _CCS,
342
+ 0,
343
+ [_A, _N, _D, _Do, _Ob, _CT, _LUT],
344
+ [0, 0, 0, () => AssociatedDomainSummary, () => AssociatedObjectiveSummary, 4, 4],
345
+ ];
346
+ var ControlFilter = [3, n0, _CF, 0, [_I], [() => ImplementationFilter]];
347
+ var ControlMapping = [3, n0, _CM, 0, [_CA, _MT, _Ma], [0, 0, () => Mapping]];
348
+ var ControlMappingFilter = [
349
+ 3,
350
+ n0,
351
+ _CMF,
352
+ 0,
353
+ [_CAo, _CCAo, _MTa],
354
+ [64 | 0, 64 | 0, 64 | 0],
355
+ ];
356
+ var ControlParameter = [3, n0, _CP, 0, [_N], [0]];
357
+ var ControlSummary = [
358
+ 3,
359
+ n0,
360
+ _CS,
361
+ 0,
362
+ [_A, _Al, _N, _D, _B, _S, _Im, _CT, _GR],
363
+ [0, 64 | 0, 0, 0, 0, 0, () => ImplementationSummary, 4, 64 | 0],
364
+ ];
365
+ var DomainResourceFilter = [3, n0, _DRF, 0, [_A], [0]];
366
+ var DomainSummary = [3, n0, _DS, 0, [_A, _N, _D, _CT, _LUT], [0, 0, 0, 4, 4]];
367
+ var FrameworkMappingDetails = [3, n0, _FMD, 0, [_N, _It], [0, 0]];
368
+ var GetControlRequest = [3, n0, _GCR, 0, [_CA], [0]];
369
+ var GetControlResponse = [
370
+ 3,
371
+ n0,
372
+ _GCRe,
373
+ 0,
374
+ [_A, _Al, _N, _D, _B, _S, _RC, _Im, _P, _CT, _GR],
375
+ [0, 64 | 0, 0, 0, 0, 0, () => RegionConfiguration, () => ImplementationDetails, () => ControlParameters, 4, 64 | 0],
376
+ ];
377
+ var ImplementationDetails = [3, n0, _ID, 0, [_T, _Id], [0, 0]];
378
+ var ImplementationFilter = [3, n0, _IF, 0, [_Ty, _Ide], [64 | 0, 64 | 0]];
379
+ var ImplementationSummary = [3, n0, _IS, 0, [_T, _Id], [0, 0]];
380
+ var InternalServerException = [
381
+ -3,
382
+ n0,
383
+ _ISE,
384
+ {
385
+ [_e]: _s,
386
+ [_hE]: 500,
387
+ },
388
+ [_M],
389
+ [0],
390
+ ];
391
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
392
+ var ListCommonControlsRequest = [
393
+ 3,
394
+ n0,
395
+ _LCCR,
396
+ 0,
397
+ [_MR, _NT, _CCF],
398
+ [
399
+ [
400
+ 1,
401
+ {
402
+ [_hQ]: _mR,
403
+ },
404
+ ],
405
+ [
406
+ 0,
407
+ {
408
+ [_hQ]: _nT,
409
+ },
410
+ ],
411
+ () => CommonControlFilter,
412
+ ],
413
+ ];
414
+ var ListCommonControlsResponse = [
415
+ 3,
416
+ n0,
417
+ _LCCRi,
418
+ 0,
419
+ [_CC, _NT],
420
+ [() => CommonControlSummaryList, 0],
421
+ ];
422
+ var ListControlMappingsRequest = [
423
+ 3,
424
+ n0,
425
+ _LCMR,
426
+ 0,
427
+ [_NT, _MR, _F],
428
+ [
429
+ [
430
+ 0,
431
+ {
432
+ [_hQ]: _nT,
433
+ },
434
+ ],
435
+ [
436
+ 1,
437
+ {
438
+ [_hQ]: _mR,
439
+ },
440
+ ],
441
+ () => ControlMappingFilter,
442
+ ],
443
+ ];
444
+ var ListControlMappingsResponse = [
445
+ 3,
446
+ n0,
447
+ _LCMRi,
448
+ 0,
449
+ [_CMo, _NT],
450
+ [() => ControlMappings, 0],
451
+ ];
452
+ var ListControlsRequest = [
453
+ 3,
454
+ n0,
455
+ _LCR,
456
+ 0,
457
+ [_NT, _MR, _F],
458
+ [
459
+ [
460
+ 0,
461
+ {
462
+ [_hQ]: _nT,
463
+ },
464
+ ],
465
+ [
466
+ 1,
467
+ {
468
+ [_hQ]: _mR,
469
+ },
470
+ ],
471
+ () => ControlFilter,
472
+ ],
473
+ ];
474
+ var ListControlsResponse = [3, n0, _LCRi, 0, [_C, _NT], [() => Controls, 0]];
475
+ var ListDomainsRequest = [
476
+ 3,
477
+ n0,
478
+ _LDR,
479
+ 0,
480
+ [_MR, _NT],
481
+ [
482
+ [
483
+ 1,
484
+ {
485
+ [_hQ]: _mR,
486
+ },
487
+ ],
488
+ [
489
+ 0,
490
+ {
491
+ [_hQ]: _nT,
492
+ },
493
+ ],
494
+ ],
495
+ ];
496
+ var ListDomainsResponse = [3, n0, _LDRi, 0, [_Dom, _NT], [() => DomainSummaryList, 0]];
497
+ var ListObjectivesRequest = [
498
+ 3,
499
+ n0,
500
+ _LOR,
501
+ 0,
502
+ [_MR, _NT, _OF],
503
+ [
504
+ [
505
+ 1,
506
+ {
507
+ [_hQ]: _mR,
508
+ },
509
+ ],
510
+ [
511
+ 0,
512
+ {
513
+ [_hQ]: _nT,
514
+ },
515
+ ],
516
+ () => ObjectiveFilter,
517
+ ],
518
+ ];
519
+ var ListObjectivesResponse = [
520
+ 3,
521
+ n0,
522
+ _LORi,
523
+ 0,
524
+ [_O, _NT],
525
+ [() => ObjectiveSummaryList, 0],
526
+ ];
527
+ var ObjectiveFilter = [3, n0, _OF, 0, [_Dom], [() => DomainResourceFilterList]];
528
+ var ObjectiveResourceFilter = [3, n0, _ORF, 0, [_A], [0]];
529
+ var ObjectiveSummary = [
530
+ 3,
531
+ n0,
532
+ _OS,
533
+ 0,
534
+ [_A, _N, _D, _Do, _CT, _LUT],
535
+ [0, 0, 0, () => AssociatedDomainSummary, 4, 4],
536
+ ];
537
+ var RegionConfiguration = [3, n0, _RC, 0, [_Sc, _DR], [0, 64 | 0]];
538
+ var ResourceNotFoundException = [
539
+ -3,
540
+ n0,
541
+ _RNFE,
542
+ {
543
+ [_e]: _c,
544
+ [_hE]: 404,
545
+ },
546
+ [_M],
547
+ [0],
548
+ ];
549
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
550
+ var ThrottlingException = [
551
+ -3,
552
+ n0,
553
+ _TE,
554
+ {
555
+ [_e]: _c,
556
+ [_hE]: 429,
557
+ },
558
+ [_M],
559
+ [0],
560
+ ];
561
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
562
+ var ValidationException = [
563
+ -3,
564
+ n0,
565
+ _VE,
566
+ {
567
+ [_e]: _c,
568
+ [_hE]: 400,
569
+ },
570
+ [_M],
571
+ [0],
572
+ ];
573
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
574
+ var ControlCatalogServiceException = [-3, _sm, "ControlCatalogServiceException", 0, [], []];
575
+ schema.TypeRegistry.for(_sm).registerError(ControlCatalogServiceException, ControlCatalogServiceException$1);
576
+ var CommonControlSummaryList = [1, n0, _CCSL, 0, () => CommonControlSummary];
577
+ var ControlMappings = [1, n0, _CMo, 0, () => ControlMapping];
578
+ var ControlParameters = [1, n0, _CPo, 0, () => ControlParameter];
579
+ var Controls = [1, n0, _C, 0, () => ControlSummary];
580
+ var DomainResourceFilterList = [1, n0, _DRFL, 0, () => DomainResourceFilter];
581
+ var DomainSummaryList = [1, n0, _DSL, 0, () => DomainSummary];
582
+ var ObjectiveResourceFilterList = [1, n0, _ORFL, 0, () => ObjectiveResourceFilter];
583
+ var ObjectiveSummaryList = [1, n0, _OSL, 0, () => ObjectiveSummary];
584
+ var Mapping = [
585
+ 3,
586
+ n0,
587
+ _Ma,
588
+ 0,
589
+ [_Fr, _CCo],
590
+ [() => FrameworkMappingDetails, () => CommonControlMappingDetails],
591
+ ];
592
+ var GetControl = [
593
+ 9,
594
+ n0,
595
+ _GC,
596
+ {
597
+ [_h]: ["POST", "/get-control", 200],
598
+ },
599
+ () => GetControlRequest,
600
+ () => GetControlResponse,
601
+ ];
602
+ var ListCommonControls = [
603
+ 9,
604
+ n0,
605
+ _LCC,
606
+ {
607
+ [_h]: ["POST", "/common-controls", 200],
608
+ },
609
+ () => ListCommonControlsRequest,
610
+ () => ListCommonControlsResponse,
611
+ ];
612
+ var ListControlMappings = [
613
+ 9,
614
+ n0,
615
+ _LCM,
616
+ {
617
+ [_h]: ["POST", "/list-control-mappings", 200],
618
+ },
619
+ () => ListControlMappingsRequest,
620
+ () => ListControlMappingsResponse,
621
+ ];
622
+ var ListControls = [
623
+ 9,
624
+ n0,
625
+ _LC,
626
+ {
627
+ [_h]: ["POST", "/list-controls", 200],
628
+ },
629
+ () => ListControlsRequest,
630
+ () => ListControlsResponse,
631
+ ];
632
+ var ListDomains = [
633
+ 9,
634
+ n0,
635
+ _LD,
636
+ {
637
+ [_h]: ["POST", "/domains", 200],
638
+ },
639
+ () => ListDomainsRequest,
640
+ () => ListDomainsResponse,
641
+ ];
642
+ var ListObjectives = [
643
+ 9,
644
+ n0,
645
+ _LO,
646
+ {
647
+ [_h]: ["POST", "/objectives", 200],
648
+ },
649
+ () => ListObjectivesRequest,
650
+ () => ListObjectivesResponse,
651
+ ];
598
652
 
599
653
  class GetControlCommand extends smithyClient.Command
600
654
  .classBuilder()
601
655
  .ep(commonParams)
602
656
  .m(function (Command, cs, config, o) {
603
- return [
604
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
605
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
606
- ];
657
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
607
658
  })
608
659
  .s("ControlCatalog", "GetControl", {})
609
660
  .n("ControlCatalogClient", "GetControlCommand")
610
- .f(void 0, void 0)
611
- .ser(se_GetControlCommand)
612
- .de(de_GetControlCommand)
661
+ .sc(GetControl)
613
662
  .build() {
614
663
  }
615
664
 
@@ -617,16 +666,11 @@ class ListCommonControlsCommand extends smithyClient.Command
617
666
  .classBuilder()
618
667
  .ep(commonParams)
619
668
  .m(function (Command, cs, config, o) {
620
- return [
621
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
622
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
623
- ];
669
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
624
670
  })
625
671
  .s("ControlCatalog", "ListCommonControls", {})
626
672
  .n("ControlCatalogClient", "ListCommonControlsCommand")
627
- .f(void 0, void 0)
628
- .ser(se_ListCommonControlsCommand)
629
- .de(de_ListCommonControlsCommand)
673
+ .sc(ListCommonControls)
630
674
  .build() {
631
675
  }
632
676
 
@@ -634,16 +678,11 @@ class ListControlMappingsCommand extends smithyClient.Command
634
678
  .classBuilder()
635
679
  .ep(commonParams)
636
680
  .m(function (Command, cs, config, o) {
637
- return [
638
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
639
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
640
- ];
681
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
641
682
  })
642
683
  .s("ControlCatalog", "ListControlMappings", {})
643
684
  .n("ControlCatalogClient", "ListControlMappingsCommand")
644
- .f(void 0, void 0)
645
- .ser(se_ListControlMappingsCommand)
646
- .de(de_ListControlMappingsCommand)
685
+ .sc(ListControlMappings)
647
686
  .build() {
648
687
  }
649
688
 
@@ -651,16 +690,11 @@ class ListControlsCommand extends smithyClient.Command
651
690
  .classBuilder()
652
691
  .ep(commonParams)
653
692
  .m(function (Command, cs, config, o) {
654
- return [
655
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
656
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
657
- ];
693
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
658
694
  })
659
695
  .s("ControlCatalog", "ListControls", {})
660
696
  .n("ControlCatalogClient", "ListControlsCommand")
661
- .f(void 0, void 0)
662
- .ser(se_ListControlsCommand)
663
- .de(de_ListControlsCommand)
697
+ .sc(ListControls)
664
698
  .build() {
665
699
  }
666
700
 
@@ -668,16 +702,11 @@ class ListDomainsCommand extends smithyClient.Command
668
702
  .classBuilder()
669
703
  .ep(commonParams)
670
704
  .m(function (Command, cs, config, o) {
671
- return [
672
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
673
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
674
- ];
705
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
675
706
  })
676
707
  .s("ControlCatalog", "ListDomains", {})
677
708
  .n("ControlCatalogClient", "ListDomainsCommand")
678
- .f(void 0, void 0)
679
- .ser(se_ListDomainsCommand)
680
- .de(de_ListDomainsCommand)
709
+ .sc(ListDomains)
681
710
  .build() {
682
711
  }
683
712
 
@@ -685,16 +714,11 @@ class ListObjectivesCommand extends smithyClient.Command
685
714
  .classBuilder()
686
715
  .ep(commonParams)
687
716
  .m(function (Command, cs, config, o) {
688
- return [
689
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
690
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
691
- ];
717
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
692
718
  })
693
719
  .s("ControlCatalog", "ListObjectives", {})
694
720
  .n("ControlCatalogClient", "ListObjectivesCommand")
695
- .f(void 0, void 0)
696
- .ser(se_ListObjectivesCommand)
697
- .de(de_ListObjectivesCommand)
721
+ .sc(ListObjectives)
698
722
  .build() {
699
723
  }
700
724
 
@@ -728,24 +752,24 @@ Object.defineProperty(exports, "__Client", {
728
752
  enumerable: true,
729
753
  get: function () { return smithyClient.Client; }
730
754
  });
731
- exports.AccessDeniedException = AccessDeniedException;
755
+ exports.AccessDeniedException = AccessDeniedException$1;
732
756
  exports.ControlBehavior = ControlBehavior;
733
757
  exports.ControlCatalog = ControlCatalog;
734
758
  exports.ControlCatalogClient = ControlCatalogClient;
735
- exports.ControlCatalogServiceException = ControlCatalogServiceException;
759
+ exports.ControlCatalogServiceException = ControlCatalogServiceException$1;
736
760
  exports.ControlScope = ControlScope;
737
761
  exports.ControlSeverity = ControlSeverity;
738
762
  exports.GetControlCommand = GetControlCommand;
739
- exports.InternalServerException = InternalServerException;
763
+ exports.InternalServerException = InternalServerException$1;
740
764
  exports.ListCommonControlsCommand = ListCommonControlsCommand;
741
765
  exports.ListControlMappingsCommand = ListControlMappingsCommand;
742
766
  exports.ListControlsCommand = ListControlsCommand;
743
767
  exports.ListDomainsCommand = ListDomainsCommand;
744
768
  exports.ListObjectivesCommand = ListObjectivesCommand;
745
769
  exports.MappingType = MappingType;
746
- exports.ResourceNotFoundException = ResourceNotFoundException;
747
- exports.ThrottlingException = ThrottlingException;
748
- exports.ValidationException = ValidationException;
770
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
771
+ exports.ThrottlingException = ThrottlingException$1;
772
+ exports.ValidationException = ValidationException$1;
749
773
  exports.paginateListCommonControls = paginateListCommonControls;
750
774
  exports.paginateListControlMappings = paginateListControlMappings;
751
775
  exports.paginateListControls = paginateListControls;