@aws-sdk/client-inspector 3.926.0 → 3.928.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.
Files changed (58) hide show
  1. package/dist-cjs/index.js +1243 -1407
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/InspectorClient.js +2 -0
  4. package/dist-es/commands/AddAttributesToFindingsCommand.js +3 -9
  5. package/dist-es/commands/CreateAssessmentTargetCommand.js +3 -9
  6. package/dist-es/commands/CreateAssessmentTemplateCommand.js +3 -9
  7. package/dist-es/commands/CreateExclusionsPreviewCommand.js +3 -9
  8. package/dist-es/commands/CreateResourceGroupCommand.js +3 -9
  9. package/dist-es/commands/DeleteAssessmentRunCommand.js +3 -9
  10. package/dist-es/commands/DeleteAssessmentTargetCommand.js +3 -9
  11. package/dist-es/commands/DeleteAssessmentTemplateCommand.js +3 -9
  12. package/dist-es/commands/DescribeAssessmentRunsCommand.js +3 -9
  13. package/dist-es/commands/DescribeAssessmentTargetsCommand.js +3 -9
  14. package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +3 -9
  15. package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +3 -9
  16. package/dist-es/commands/DescribeExclusionsCommand.js +3 -9
  17. package/dist-es/commands/DescribeFindingsCommand.js +3 -9
  18. package/dist-es/commands/DescribeResourceGroupsCommand.js +3 -9
  19. package/dist-es/commands/DescribeRulesPackagesCommand.js +3 -9
  20. package/dist-es/commands/GetAssessmentReportCommand.js +3 -9
  21. package/dist-es/commands/GetExclusionsPreviewCommand.js +3 -9
  22. package/dist-es/commands/GetTelemetryMetadataCommand.js +3 -9
  23. package/dist-es/commands/ListAssessmentRunAgentsCommand.js +3 -9
  24. package/dist-es/commands/ListAssessmentRunsCommand.js +3 -9
  25. package/dist-es/commands/ListAssessmentTargetsCommand.js +3 -9
  26. package/dist-es/commands/ListAssessmentTemplatesCommand.js +3 -9
  27. package/dist-es/commands/ListEventSubscriptionsCommand.js +3 -9
  28. package/dist-es/commands/ListExclusionsCommand.js +3 -9
  29. package/dist-es/commands/ListFindingsCommand.js +3 -9
  30. package/dist-es/commands/ListRulesPackagesCommand.js +3 -9
  31. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  32. package/dist-es/commands/PreviewAgentsCommand.js +3 -9
  33. package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +3 -9
  34. package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +3 -9
  35. package/dist-es/commands/SetTagsForResourceCommand.js +3 -9
  36. package/dist-es/commands/StartAssessmentRunCommand.js +3 -9
  37. package/dist-es/commands/StopAssessmentRunCommand.js +3 -9
  38. package/dist-es/commands/SubscribeToEventCommand.js +3 -9
  39. package/dist-es/commands/UnsubscribeFromEventCommand.js +3 -9
  40. package/dist-es/commands/UpdateAssessmentTargetCommand.js +3 -9
  41. package/dist-es/runtimeConfig.shared.js +7 -0
  42. package/dist-es/schemas/schemas_0.js +1154 -0
  43. package/dist-types/InspectorClient.d.ts +10 -1
  44. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  45. package/dist-types/runtimeConfig.d.ts +1 -0
  46. package/dist-types/runtimeConfig.native.d.ts +1 -0
  47. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  48. package/dist-types/schemas/schemas_0.d.ts +194 -0
  49. package/dist-types/ts3.4/InspectorClient.d.ts +4 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +200 -0
  55. package/package.json +5 -5
  56. package/dist-es/protocols/Aws_json1_1.js +0 -1119
  57. package/dist-types/protocols/Aws_json1_1.d.ts +0 -335
  58. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -449
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 InspectorClient 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,12 +110,12 @@ class InspectorClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class InspectorServiceException extends smithyClient.ServiceException {
113
+ let InspectorServiceException$1 = class InspectorServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, InspectorServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const AccessDeniedErrorCode = {
121
121
  ACCESS_DENIED_TO_ASSESSMENT_RUN: "ACCESS_DENIED_TO_ASSESSMENT_RUN",
@@ -127,7 +127,7 @@ const AccessDeniedErrorCode = {
127
127
  ACCESS_DENIED_TO_RULES_PACKAGE: "ACCESS_DENIED_TO_RULES_PACKAGE",
128
128
  ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC",
129
129
  };
130
- class AccessDeniedException extends InspectorServiceException {
130
+ let AccessDeniedException$1 = class AccessDeniedException extends InspectorServiceException$1 {
131
131
  name = "AccessDeniedException";
132
132
  $fault = "client";
133
133
  errorCode;
@@ -142,7 +142,7 @@ class AccessDeniedException extends InspectorServiceException {
142
142
  this.errorCode = opts.errorCode;
143
143
  this.canRetry = opts.canRetry;
144
144
  }
145
- }
145
+ };
146
146
  const FailedItemErrorCode = {
147
147
  ACCESS_DENIED: "ACCESS_DENIED",
148
148
  DUPLICATE_ARN: "DUPLICATE_ARN",
@@ -151,7 +151,7 @@ const FailedItemErrorCode = {
151
151
  ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
152
152
  LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
153
153
  };
154
- class InternalException extends InspectorServiceException {
154
+ let InternalException$1 = class InternalException extends InspectorServiceException$1 {
155
155
  name = "InternalException";
156
156
  $fault = "server";
157
157
  canRetry;
@@ -164,7 +164,7 @@ class InternalException extends InspectorServiceException {
164
164
  Object.setPrototypeOf(this, InternalException.prototype);
165
165
  this.canRetry = opts.canRetry;
166
166
  }
167
- }
167
+ };
168
168
  const InvalidInputErrorCode = {
169
169
  ASSESSMENT_TARGET_NAME_ALREADY_TAKEN: "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN",
170
170
  ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN: "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN",
@@ -221,7 +221,7 @@ const InvalidInputErrorCode = {
221
221
  INVALID_USER_ATTRIBUTE_KEY: "INVALID_USER_ATTRIBUTE_KEY",
222
222
  INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE",
223
223
  };
224
- class InvalidInputException extends InspectorServiceException {
224
+ let InvalidInputException$1 = class InvalidInputException extends InspectorServiceException$1 {
225
225
  name = "InvalidInputException";
226
226
  $fault = "client";
227
227
  errorCode;
@@ -236,7 +236,7 @@ class InvalidInputException extends InspectorServiceException {
236
236
  this.errorCode = opts.errorCode;
237
237
  this.canRetry = opts.canRetry;
238
238
  }
239
- }
239
+ };
240
240
  const NoSuchEntityErrorCode = {
241
241
  ASSESSMENT_RUN_DOES_NOT_EXIST: "ASSESSMENT_RUN_DOES_NOT_EXIST",
242
242
  ASSESSMENT_TARGET_DOES_NOT_EXIST: "ASSESSMENT_TARGET_DOES_NOT_EXIST",
@@ -247,7 +247,7 @@ const NoSuchEntityErrorCode = {
247
247
  RULES_PACKAGE_DOES_NOT_EXIST: "RULES_PACKAGE_DOES_NOT_EXIST",
248
248
  SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST",
249
249
  };
250
- class NoSuchEntityException extends InspectorServiceException {
250
+ let NoSuchEntityException$1 = class NoSuchEntityException extends InspectorServiceException$1 {
251
251
  name = "NoSuchEntityException";
252
252
  $fault = "client";
253
253
  errorCode;
@@ -262,8 +262,8 @@ class NoSuchEntityException extends InspectorServiceException {
262
262
  this.errorCode = opts.errorCode;
263
263
  this.canRetry = opts.canRetry;
264
264
  }
265
- }
266
- class ServiceTemporarilyUnavailableException extends InspectorServiceException {
265
+ };
266
+ let ServiceTemporarilyUnavailableException$1 = class ServiceTemporarilyUnavailableException extends InspectorServiceException$1 {
267
267
  name = "ServiceTemporarilyUnavailableException";
268
268
  $fault = "server";
269
269
  canRetry;
@@ -276,7 +276,7 @@ class ServiceTemporarilyUnavailableException extends InspectorServiceException {
276
276
  Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
277
277
  this.canRetry = opts.canRetry;
278
278
  }
279
- }
279
+ };
280
280
  const AgentHealthCode = {
281
281
  IDLE: "IDLE",
282
282
  RUNNING: "RUNNING",
@@ -290,7 +290,7 @@ const AgentHealth = {
290
290
  UNHEALTHY: "UNHEALTHY",
291
291
  UNKNOWN: "UNKNOWN",
292
292
  };
293
- class AgentsAlreadyRunningAssessmentException extends InspectorServiceException {
293
+ let AgentsAlreadyRunningAssessmentException$1 = class AgentsAlreadyRunningAssessmentException extends InspectorServiceException$1 {
294
294
  name = "AgentsAlreadyRunningAssessmentException";
295
295
  $fault = "client";
296
296
  agents;
@@ -307,7 +307,7 @@ class AgentsAlreadyRunningAssessmentException extends InspectorServiceException
307
307
  this.agentsTruncated = opts.agentsTruncated;
308
308
  this.canRetry = opts.canRetry;
309
309
  }
310
- }
310
+ };
311
311
  const Severity = {
312
312
  HIGH: "High",
313
313
  INFORMATIONAL: "Informational",
@@ -343,7 +343,7 @@ const AssessmentRunState = {
343
343
  START_EVALUATING_RULES_PENDING: "START_EVALUATING_RULES_PENDING",
344
344
  STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING",
345
345
  };
346
- class AssessmentRunInProgressException extends InspectorServiceException {
346
+ let AssessmentRunInProgressException$1 = class AssessmentRunInProgressException extends InspectorServiceException$1 {
347
347
  name = "AssessmentRunInProgressException";
348
348
  $fault = "client";
349
349
  assessmentRunArns;
@@ -360,7 +360,7 @@ class AssessmentRunInProgressException extends InspectorServiceException {
360
360
  this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
361
361
  this.canRetry = opts.canRetry;
362
362
  }
363
- }
363
+ };
364
364
  const AssetType = {
365
365
  EC2_INSTANCE: "ec2-instance",
366
366
  };
@@ -368,7 +368,7 @@ const InvalidCrossAccountRoleErrorCode = {
368
368
  ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP: "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP",
369
369
  ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY",
370
370
  };
371
- class InvalidCrossAccountRoleException extends InspectorServiceException {
371
+ let InvalidCrossAccountRoleException$1 = class InvalidCrossAccountRoleException extends InspectorServiceException$1 {
372
372
  name = "InvalidCrossAccountRoleException";
373
373
  $fault = "client";
374
374
  errorCode;
@@ -383,7 +383,7 @@ class InvalidCrossAccountRoleException extends InspectorServiceException {
383
383
  this.errorCode = opts.errorCode;
384
384
  this.canRetry = opts.canRetry;
385
385
  }
386
- }
386
+ };
387
387
  const LimitExceededErrorCode = {
388
388
  ASSESSMENT_RUN_LIMIT_EXCEEDED: "ASSESSMENT_RUN_LIMIT_EXCEEDED",
389
389
  ASSESSMENT_TARGET_LIMIT_EXCEEDED: "ASSESSMENT_TARGET_LIMIT_EXCEEDED",
@@ -391,7 +391,7 @@ const LimitExceededErrorCode = {
391
391
  EVENT_SUBSCRIPTION_LIMIT_EXCEEDED: "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED",
392
392
  RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED",
393
393
  };
394
- class LimitExceededException extends InspectorServiceException {
394
+ let LimitExceededException$1 = class LimitExceededException extends InspectorServiceException$1 {
395
395
  name = "LimitExceededException";
396
396
  $fault = "client";
397
397
  errorCode;
@@ -406,8 +406,8 @@ class LimitExceededException extends InspectorServiceException {
406
406
  this.errorCode = opts.errorCode;
407
407
  this.canRetry = opts.canRetry;
408
408
  }
409
- }
410
- class PreviewGenerationInProgressException extends InspectorServiceException {
409
+ };
410
+ let PreviewGenerationInProgressException$1 = class PreviewGenerationInProgressException extends InspectorServiceException$1 {
411
411
  name = "PreviewGenerationInProgressException";
412
412
  $fault = "client";
413
413
  constructor(opts) {
@@ -418,7 +418,7 @@ class PreviewGenerationInProgressException extends InspectorServiceException {
418
418
  });
419
419
  Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
420
420
  }
421
- }
421
+ };
422
422
  const Locale = {
423
423
  EN_US: "EN_US",
424
424
  };
@@ -439,7 +439,7 @@ const ReportStatus = {
439
439
  FAILED: "FAILED",
440
440
  WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
441
441
  };
442
- class UnsupportedFeatureException extends InspectorServiceException {
442
+ let UnsupportedFeatureException$1 = class UnsupportedFeatureException extends InspectorServiceException$1 {
443
443
  name = "UnsupportedFeatureException";
444
444
  $fault = "client";
445
445
  canRetry;
@@ -452,7 +452,7 @@ class UnsupportedFeatureException extends InspectorServiceException {
452
452
  Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
453
453
  this.canRetry = opts.canRetry;
454
454
  }
455
- }
455
+ };
456
456
  const PreviewStatus = {
457
457
  COMPLETED: "COMPLETED",
458
458
  WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
@@ -462,1131 +462,1147 @@ const StopAction = {
462
462
  START_EVALUATION: "START_EVALUATION",
463
463
  };
464
464
 
465
- const se_AddAttributesToFindingsCommand = async (input, context) => {
466
- const headers = sharedHeaders("AddAttributesToFindings");
467
- let body;
468
- body = JSON.stringify(smithyClient._json(input));
469
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
- };
471
- const se_CreateAssessmentTargetCommand = async (input, context) => {
472
- const headers = sharedHeaders("CreateAssessmentTarget");
473
- let body;
474
- body = JSON.stringify(smithyClient._json(input));
475
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
476
- };
477
- const se_CreateAssessmentTemplateCommand = async (input, context) => {
478
- const headers = sharedHeaders("CreateAssessmentTemplate");
479
- let body;
480
- body = JSON.stringify(smithyClient._json(input));
481
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
482
- };
483
- const se_CreateExclusionsPreviewCommand = async (input, context) => {
484
- const headers = sharedHeaders("CreateExclusionsPreview");
485
- let body;
486
- body = JSON.stringify(smithyClient._json(input));
487
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
- };
489
- const se_CreateResourceGroupCommand = async (input, context) => {
490
- const headers = sharedHeaders("CreateResourceGroup");
491
- let body;
492
- body = JSON.stringify(smithyClient._json(input));
493
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
494
- };
495
- const se_DeleteAssessmentRunCommand = async (input, context) => {
496
- const headers = sharedHeaders("DeleteAssessmentRun");
497
- let body;
498
- body = JSON.stringify(smithyClient._json(input));
499
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
500
- };
501
- const se_DeleteAssessmentTargetCommand = async (input, context) => {
502
- const headers = sharedHeaders("DeleteAssessmentTarget");
503
- let body;
504
- body = JSON.stringify(smithyClient._json(input));
505
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
506
- };
507
- const se_DeleteAssessmentTemplateCommand = async (input, context) => {
508
- const headers = sharedHeaders("DeleteAssessmentTemplate");
509
- let body;
510
- body = JSON.stringify(smithyClient._json(input));
511
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
512
- };
513
- const se_DescribeAssessmentRunsCommand = async (input, context) => {
514
- const headers = sharedHeaders("DescribeAssessmentRuns");
515
- let body;
516
- body = JSON.stringify(smithyClient._json(input));
517
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
- };
519
- const se_DescribeAssessmentTargetsCommand = async (input, context) => {
520
- const headers = sharedHeaders("DescribeAssessmentTargets");
521
- let body;
522
- body = JSON.stringify(smithyClient._json(input));
523
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
524
- };
525
- const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
526
- const headers = sharedHeaders("DescribeAssessmentTemplates");
527
- let body;
528
- body = JSON.stringify(smithyClient._json(input));
529
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
530
- };
531
- const se_DescribeCrossAccountAccessRoleCommand = async (input, context) => {
532
- const headers = sharedHeaders("DescribeCrossAccountAccessRole");
533
- const body = "{}";
534
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
535
- };
536
- const se_DescribeExclusionsCommand = async (input, context) => {
537
- const headers = sharedHeaders("DescribeExclusions");
538
- let body;
539
- body = JSON.stringify(smithyClient._json(input));
540
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
541
- };
542
- const se_DescribeFindingsCommand = async (input, context) => {
543
- const headers = sharedHeaders("DescribeFindings");
544
- let body;
545
- body = JSON.stringify(smithyClient._json(input));
546
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
547
- };
548
- const se_DescribeResourceGroupsCommand = async (input, context) => {
549
- const headers = sharedHeaders("DescribeResourceGroups");
550
- let body;
551
- body = JSON.stringify(smithyClient._json(input));
552
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
553
- };
554
- const se_DescribeRulesPackagesCommand = async (input, context) => {
555
- const headers = sharedHeaders("DescribeRulesPackages");
556
- let body;
557
- body = JSON.stringify(smithyClient._json(input));
558
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
559
- };
560
- const se_GetAssessmentReportCommand = async (input, context) => {
561
- const headers = sharedHeaders("GetAssessmentReport");
562
- let body;
563
- body = JSON.stringify(smithyClient._json(input));
564
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
565
- };
566
- const se_GetExclusionsPreviewCommand = async (input, context) => {
567
- const headers = sharedHeaders("GetExclusionsPreview");
568
- let body;
569
- body = JSON.stringify(smithyClient._json(input));
570
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
571
- };
572
- const se_GetTelemetryMetadataCommand = async (input, context) => {
573
- const headers = sharedHeaders("GetTelemetryMetadata");
574
- let body;
575
- body = JSON.stringify(smithyClient._json(input));
576
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
577
- };
578
- const se_ListAssessmentRunAgentsCommand = async (input, context) => {
579
- const headers = sharedHeaders("ListAssessmentRunAgents");
580
- let body;
581
- body = JSON.stringify(smithyClient._json(input));
582
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
583
- };
584
- const se_ListAssessmentRunsCommand = async (input, context) => {
585
- const headers = sharedHeaders("ListAssessmentRuns");
586
- let body;
587
- body = JSON.stringify(se_ListAssessmentRunsRequest(input));
588
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
589
- };
590
- const se_ListAssessmentTargetsCommand = async (input, context) => {
591
- const headers = sharedHeaders("ListAssessmentTargets");
592
- let body;
593
- body = JSON.stringify(smithyClient._json(input));
594
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
595
- };
596
- const se_ListAssessmentTemplatesCommand = async (input, context) => {
597
- const headers = sharedHeaders("ListAssessmentTemplates");
598
- let body;
599
- body = JSON.stringify(smithyClient._json(input));
600
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
601
- };
602
- const se_ListEventSubscriptionsCommand = async (input, context) => {
603
- const headers = sharedHeaders("ListEventSubscriptions");
604
- let body;
605
- body = JSON.stringify(smithyClient._json(input));
606
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
607
- };
608
- const se_ListExclusionsCommand = async (input, context) => {
609
- const headers = sharedHeaders("ListExclusions");
610
- let body;
611
- body = JSON.stringify(smithyClient._json(input));
612
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
613
- };
614
- const se_ListFindingsCommand = async (input, context) => {
615
- const headers = sharedHeaders("ListFindings");
616
- let body;
617
- body = JSON.stringify(se_ListFindingsRequest(input));
618
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
619
- };
620
- const se_ListRulesPackagesCommand = async (input, context) => {
621
- const headers = sharedHeaders("ListRulesPackages");
622
- let body;
623
- body = JSON.stringify(smithyClient._json(input));
624
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
625
- };
626
- const se_ListTagsForResourceCommand = async (input, context) => {
627
- const headers = sharedHeaders("ListTagsForResource");
628
- let body;
629
- body = JSON.stringify(smithyClient._json(input));
630
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
631
- };
632
- const se_PreviewAgentsCommand = async (input, context) => {
633
- const headers = sharedHeaders("PreviewAgents");
634
- let body;
635
- body = JSON.stringify(smithyClient._json(input));
636
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
637
- };
638
- const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
639
- const headers = sharedHeaders("RegisterCrossAccountAccessRole");
640
- let body;
641
- body = JSON.stringify(smithyClient._json(input));
642
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
643
- };
644
- const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
645
- const headers = sharedHeaders("RemoveAttributesFromFindings");
646
- let body;
647
- body = JSON.stringify(smithyClient._json(input));
648
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
649
- };
650
- const se_SetTagsForResourceCommand = async (input, context) => {
651
- const headers = sharedHeaders("SetTagsForResource");
652
- let body;
653
- body = JSON.stringify(smithyClient._json(input));
654
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
655
- };
656
- const se_StartAssessmentRunCommand = async (input, context) => {
657
- const headers = sharedHeaders("StartAssessmentRun");
658
- let body;
659
- body = JSON.stringify(smithyClient._json(input));
660
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
661
- };
662
- const se_StopAssessmentRunCommand = async (input, context) => {
663
- const headers = sharedHeaders("StopAssessmentRun");
664
- let body;
665
- body = JSON.stringify(smithyClient._json(input));
666
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
667
- };
668
- const se_SubscribeToEventCommand = async (input, context) => {
669
- const headers = sharedHeaders("SubscribeToEvent");
670
- let body;
671
- body = JSON.stringify(smithyClient._json(input));
672
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
673
- };
674
- const se_UnsubscribeFromEventCommand = async (input, context) => {
675
- const headers = sharedHeaders("UnsubscribeFromEvent");
676
- let body;
677
- body = JSON.stringify(smithyClient._json(input));
678
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
679
- };
680
- const se_UpdateAssessmentTargetCommand = async (input, context) => {
681
- const headers = sharedHeaders("UpdateAssessmentTarget");
682
- let body;
683
- body = JSON.stringify(smithyClient._json(input));
684
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
685
- };
686
- const de_AddAttributesToFindingsCommand = async (output, context) => {
687
- if (output.statusCode >= 300) {
688
- return de_CommandError(output, context);
689
- }
690
- const data = await core$1.parseJsonBody(output.body, context);
691
- let contents = {};
692
- contents = smithyClient._json(data);
693
- const response = {
694
- $metadata: deserializeMetadata(output),
695
- ...contents,
696
- };
697
- return response;
698
- };
699
- const de_CreateAssessmentTargetCommand = async (output, context) => {
700
- if (output.statusCode >= 300) {
701
- return de_CommandError(output, context);
702
- }
703
- const data = await core$1.parseJsonBody(output.body, context);
704
- let contents = {};
705
- contents = smithyClient._json(data);
706
- const response = {
707
- $metadata: deserializeMetadata(output),
708
- ...contents,
709
- };
710
- return response;
711
- };
712
- const de_CreateAssessmentTemplateCommand = async (output, context) => {
713
- if (output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const data = await core$1.parseJsonBody(output.body, context);
717
- let contents = {};
718
- contents = smithyClient._json(data);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- ...contents,
722
- };
723
- return response;
724
- };
725
- const de_CreateExclusionsPreviewCommand = async (output, context) => {
726
- if (output.statusCode >= 300) {
727
- return de_CommandError(output, context);
728
- }
729
- const data = await core$1.parseJsonBody(output.body, context);
730
- let contents = {};
731
- contents = smithyClient._json(data);
732
- const response = {
733
- $metadata: deserializeMetadata(output),
734
- ...contents,
735
- };
736
- return response;
737
- };
738
- const de_CreateResourceGroupCommand = async (output, context) => {
739
- if (output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const data = await core$1.parseJsonBody(output.body, context);
743
- let contents = {};
744
- contents = smithyClient._json(data);
745
- const response = {
746
- $metadata: deserializeMetadata(output),
747
- ...contents,
748
- };
749
- return response;
750
- };
751
- const de_DeleteAssessmentRunCommand = async (output, context) => {
752
- if (output.statusCode >= 300) {
753
- return de_CommandError(output, context);
754
- }
755
- await smithyClient.collectBody(output.body, context);
756
- const response = {
757
- $metadata: deserializeMetadata(output),
758
- };
759
- return response;
760
- };
761
- const de_DeleteAssessmentTargetCommand = async (output, context) => {
762
- if (output.statusCode >= 300) {
763
- return de_CommandError(output, context);
764
- }
765
- await smithyClient.collectBody(output.body, context);
766
- const response = {
767
- $metadata: deserializeMetadata(output),
768
- };
769
- return response;
770
- };
771
- const de_DeleteAssessmentTemplateCommand = async (output, context) => {
772
- if (output.statusCode >= 300) {
773
- return de_CommandError(output, context);
774
- }
775
- await smithyClient.collectBody(output.body, context);
776
- const response = {
777
- $metadata: deserializeMetadata(output),
778
- };
779
- return response;
780
- };
781
- const de_DescribeAssessmentRunsCommand = async (output, context) => {
782
- if (output.statusCode >= 300) {
783
- return de_CommandError(output, context);
784
- }
785
- const data = await core$1.parseJsonBody(output.body, context);
786
- let contents = {};
787
- contents = de_DescribeAssessmentRunsResponse(data);
788
- const response = {
789
- $metadata: deserializeMetadata(output),
790
- ...contents,
791
- };
792
- return response;
793
- };
794
- const de_DescribeAssessmentTargetsCommand = async (output, context) => {
795
- if (output.statusCode >= 300) {
796
- return de_CommandError(output, context);
797
- }
798
- const data = await core$1.parseJsonBody(output.body, context);
799
- let contents = {};
800
- contents = de_DescribeAssessmentTargetsResponse(data);
801
- const response = {
802
- $metadata: deserializeMetadata(output),
803
- ...contents,
804
- };
805
- return response;
806
- };
807
- const de_DescribeAssessmentTemplatesCommand = async (output, context) => {
808
- if (output.statusCode >= 300) {
809
- return de_CommandError(output, context);
810
- }
811
- const data = await core$1.parseJsonBody(output.body, context);
812
- let contents = {};
813
- contents = de_DescribeAssessmentTemplatesResponse(data);
814
- const response = {
815
- $metadata: deserializeMetadata(output),
816
- ...contents,
817
- };
818
- return response;
819
- };
820
- const de_DescribeCrossAccountAccessRoleCommand = async (output, context) => {
821
- if (output.statusCode >= 300) {
822
- return de_CommandError(output, context);
823
- }
824
- const data = await core$1.parseJsonBody(output.body, context);
825
- let contents = {};
826
- contents = de_DescribeCrossAccountAccessRoleResponse(data);
827
- const response = {
828
- $metadata: deserializeMetadata(output),
829
- ...contents,
830
- };
831
- return response;
832
- };
833
- const de_DescribeExclusionsCommand = async (output, context) => {
834
- if (output.statusCode >= 300) {
835
- return de_CommandError(output, context);
836
- }
837
- const data = await core$1.parseJsonBody(output.body, context);
838
- let contents = {};
839
- contents = smithyClient._json(data);
840
- const response = {
841
- $metadata: deserializeMetadata(output),
842
- ...contents,
843
- };
844
- return response;
845
- };
846
- const de_DescribeFindingsCommand = async (output, context) => {
847
- if (output.statusCode >= 300) {
848
- return de_CommandError(output, context);
849
- }
850
- const data = await core$1.parseJsonBody(output.body, context);
851
- let contents = {};
852
- contents = de_DescribeFindingsResponse(data);
853
- const response = {
854
- $metadata: deserializeMetadata(output),
855
- ...contents,
856
- };
857
- return response;
858
- };
859
- const de_DescribeResourceGroupsCommand = async (output, context) => {
860
- if (output.statusCode >= 300) {
861
- return de_CommandError(output, context);
862
- }
863
- const data = await core$1.parseJsonBody(output.body, context);
864
- let contents = {};
865
- contents = de_DescribeResourceGroupsResponse(data);
866
- const response = {
867
- $metadata: deserializeMetadata(output),
868
- ...contents,
869
- };
870
- return response;
871
- };
872
- const de_DescribeRulesPackagesCommand = async (output, context) => {
873
- if (output.statusCode >= 300) {
874
- return de_CommandError(output, context);
875
- }
876
- const data = await core$1.parseJsonBody(output.body, context);
877
- let contents = {};
878
- contents = smithyClient._json(data);
879
- const response = {
880
- $metadata: deserializeMetadata(output),
881
- ...contents,
882
- };
883
- return response;
884
- };
885
- const de_GetAssessmentReportCommand = async (output, context) => {
886
- if (output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const data = await core$1.parseJsonBody(output.body, context);
890
- let contents = {};
891
- contents = smithyClient._json(data);
892
- const response = {
893
- $metadata: deserializeMetadata(output),
894
- ...contents,
895
- };
896
- return response;
897
- };
898
- const de_GetExclusionsPreviewCommand = async (output, context) => {
899
- if (output.statusCode >= 300) {
900
- return de_CommandError(output, context);
901
- }
902
- const data = await core$1.parseJsonBody(output.body, context);
903
- let contents = {};
904
- contents = smithyClient._json(data);
905
- const response = {
906
- $metadata: deserializeMetadata(output),
907
- ...contents,
908
- };
909
- return response;
910
- };
911
- const de_GetTelemetryMetadataCommand = async (output, context) => {
912
- if (output.statusCode >= 300) {
913
- return de_CommandError(output, context);
914
- }
915
- const data = await core$1.parseJsonBody(output.body, context);
916
- let contents = {};
917
- contents = smithyClient._json(data);
918
- const response = {
919
- $metadata: deserializeMetadata(output),
920
- ...contents,
921
- };
922
- return response;
923
- };
924
- const de_ListAssessmentRunAgentsCommand = async (output, context) => {
925
- if (output.statusCode >= 300) {
926
- return de_CommandError(output, context);
927
- }
928
- const data = await core$1.parseJsonBody(output.body, context);
929
- let contents = {};
930
- contents = smithyClient._json(data);
931
- const response = {
932
- $metadata: deserializeMetadata(output),
933
- ...contents,
934
- };
935
- return response;
936
- };
937
- const de_ListAssessmentRunsCommand = async (output, context) => {
938
- if (output.statusCode >= 300) {
939
- return de_CommandError(output, context);
940
- }
941
- const data = await core$1.parseJsonBody(output.body, context);
942
- let contents = {};
943
- contents = smithyClient._json(data);
944
- const response = {
945
- $metadata: deserializeMetadata(output),
946
- ...contents,
947
- };
948
- return response;
949
- };
950
- const de_ListAssessmentTargetsCommand = async (output, context) => {
951
- if (output.statusCode >= 300) {
952
- return de_CommandError(output, context);
953
- }
954
- const data = await core$1.parseJsonBody(output.body, context);
955
- let contents = {};
956
- contents = smithyClient._json(data);
957
- const response = {
958
- $metadata: deserializeMetadata(output),
959
- ...contents,
960
- };
961
- return response;
962
- };
963
- const de_ListAssessmentTemplatesCommand = async (output, context) => {
964
- if (output.statusCode >= 300) {
965
- return de_CommandError(output, context);
966
- }
967
- const data = await core$1.parseJsonBody(output.body, context);
968
- let contents = {};
969
- contents = smithyClient._json(data);
970
- const response = {
971
- $metadata: deserializeMetadata(output),
972
- ...contents,
973
- };
974
- return response;
975
- };
976
- const de_ListEventSubscriptionsCommand = async (output, context) => {
977
- if (output.statusCode >= 300) {
978
- return de_CommandError(output, context);
979
- }
980
- const data = await core$1.parseJsonBody(output.body, context);
981
- let contents = {};
982
- contents = de_ListEventSubscriptionsResponse(data);
983
- const response = {
984
- $metadata: deserializeMetadata(output),
985
- ...contents,
986
- };
987
- return response;
988
- };
989
- const de_ListExclusionsCommand = async (output, context) => {
990
- if (output.statusCode >= 300) {
991
- return de_CommandError(output, context);
992
- }
993
- const data = await core$1.parseJsonBody(output.body, context);
994
- let contents = {};
995
- contents = smithyClient._json(data);
996
- const response = {
997
- $metadata: deserializeMetadata(output),
998
- ...contents,
999
- };
1000
- return response;
1001
- };
1002
- const de_ListFindingsCommand = async (output, context) => {
1003
- if (output.statusCode >= 300) {
1004
- return de_CommandError(output, context);
1005
- }
1006
- const data = await core$1.parseJsonBody(output.body, context);
1007
- let contents = {};
1008
- contents = smithyClient._json(data);
1009
- const response = {
1010
- $metadata: deserializeMetadata(output),
1011
- ...contents,
1012
- };
1013
- return response;
1014
- };
1015
- const de_ListRulesPackagesCommand = async (output, context) => {
1016
- if (output.statusCode >= 300) {
1017
- return de_CommandError(output, context);
1018
- }
1019
- const data = await core$1.parseJsonBody(output.body, context);
1020
- let contents = {};
1021
- contents = smithyClient._json(data);
1022
- const response = {
1023
- $metadata: deserializeMetadata(output),
1024
- ...contents,
1025
- };
1026
- return response;
1027
- };
1028
- const de_ListTagsForResourceCommand = async (output, context) => {
1029
- if (output.statusCode >= 300) {
1030
- return de_CommandError(output, context);
1031
- }
1032
- const data = await core$1.parseJsonBody(output.body, context);
1033
- let contents = {};
1034
- contents = smithyClient._json(data);
1035
- const response = {
1036
- $metadata: deserializeMetadata(output),
1037
- ...contents,
1038
- };
1039
- return response;
1040
- };
1041
- const de_PreviewAgentsCommand = async (output, context) => {
1042
- if (output.statusCode >= 300) {
1043
- return de_CommandError(output, context);
1044
- }
1045
- const data = await core$1.parseJsonBody(output.body, context);
1046
- let contents = {};
1047
- contents = smithyClient._json(data);
1048
- const response = {
1049
- $metadata: deserializeMetadata(output),
1050
- ...contents,
1051
- };
1052
- return response;
1053
- };
1054
- const de_RegisterCrossAccountAccessRoleCommand = async (output, context) => {
1055
- if (output.statusCode >= 300) {
1056
- return de_CommandError(output, context);
1057
- }
1058
- await smithyClient.collectBody(output.body, context);
1059
- const response = {
1060
- $metadata: deserializeMetadata(output),
1061
- };
1062
- return response;
1063
- };
1064
- const de_RemoveAttributesFromFindingsCommand = async (output, context) => {
1065
- if (output.statusCode >= 300) {
1066
- return de_CommandError(output, context);
1067
- }
1068
- const data = await core$1.parseJsonBody(output.body, context);
1069
- let contents = {};
1070
- contents = smithyClient._json(data);
1071
- const response = {
1072
- $metadata: deserializeMetadata(output),
1073
- ...contents,
1074
- };
1075
- return response;
1076
- };
1077
- const de_SetTagsForResourceCommand = async (output, context) => {
1078
- if (output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- await smithyClient.collectBody(output.body, context);
1082
- const response = {
1083
- $metadata: deserializeMetadata(output),
1084
- };
1085
- return response;
1086
- };
1087
- const de_StartAssessmentRunCommand = async (output, context) => {
1088
- if (output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- const data = await core$1.parseJsonBody(output.body, context);
1092
- let contents = {};
1093
- contents = smithyClient._json(data);
1094
- const response = {
1095
- $metadata: deserializeMetadata(output),
1096
- ...contents,
1097
- };
1098
- return response;
1099
- };
1100
- const de_StopAssessmentRunCommand = async (output, context) => {
1101
- if (output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- await smithyClient.collectBody(output.body, context);
1105
- const response = {
1106
- $metadata: deserializeMetadata(output),
1107
- };
1108
- return response;
1109
- };
1110
- const de_SubscribeToEventCommand = async (output, context) => {
1111
- if (output.statusCode >= 300) {
1112
- return de_CommandError(output, context);
1113
- }
1114
- await smithyClient.collectBody(output.body, context);
1115
- const response = {
1116
- $metadata: deserializeMetadata(output),
1117
- };
1118
- return response;
1119
- };
1120
- const de_UnsubscribeFromEventCommand = async (output, context) => {
1121
- if (output.statusCode >= 300) {
1122
- return de_CommandError(output, context);
1123
- }
1124
- await smithyClient.collectBody(output.body, context);
1125
- const response = {
1126
- $metadata: deserializeMetadata(output),
1127
- };
1128
- return response;
1129
- };
1130
- const de_UpdateAssessmentTargetCommand = async (output, context) => {
1131
- if (output.statusCode >= 300) {
1132
- return de_CommandError(output, context);
1133
- }
1134
- await smithyClient.collectBody(output.body, context);
1135
- const response = {
1136
- $metadata: deserializeMetadata(output),
1137
- };
1138
- return response;
1139
- };
1140
- const de_CommandError = async (output, context) => {
1141
- const parsedOutput = {
1142
- ...output,
1143
- body: await core$1.parseJsonErrorBody(output.body, context),
1144
- };
1145
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1146
- switch (errorCode) {
1147
- case "AccessDeniedException":
1148
- case "com.amazonaws.inspector#AccessDeniedException":
1149
- throw await de_AccessDeniedExceptionRes(parsedOutput);
1150
- case "InternalException":
1151
- case "com.amazonaws.inspector#InternalException":
1152
- throw await de_InternalExceptionRes(parsedOutput);
1153
- case "InvalidInputException":
1154
- case "com.amazonaws.inspector#InvalidInputException":
1155
- throw await de_InvalidInputExceptionRes(parsedOutput);
1156
- case "NoSuchEntityException":
1157
- case "com.amazonaws.inspector#NoSuchEntityException":
1158
- throw await de_NoSuchEntityExceptionRes(parsedOutput);
1159
- case "ServiceTemporarilyUnavailableException":
1160
- case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1161
- throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput);
1162
- case "InvalidCrossAccountRoleException":
1163
- case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
1164
- throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput);
1165
- case "LimitExceededException":
1166
- case "com.amazonaws.inspector#LimitExceededException":
1167
- throw await de_LimitExceededExceptionRes(parsedOutput);
1168
- case "PreviewGenerationInProgressException":
1169
- case "com.amazonaws.inspector#PreviewGenerationInProgressException":
1170
- throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput);
1171
- case "AssessmentRunInProgressException":
1172
- case "com.amazonaws.inspector#AssessmentRunInProgressException":
1173
- throw await de_AssessmentRunInProgressExceptionRes(parsedOutput);
1174
- case "UnsupportedFeatureException":
1175
- case "com.amazonaws.inspector#UnsupportedFeatureException":
1176
- throw await de_UnsupportedFeatureExceptionRes(parsedOutput);
1177
- case "AgentsAlreadyRunningAssessmentException":
1178
- case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
1179
- throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput);
1180
- default:
1181
- const parsedBody = parsedOutput.body;
1182
- return throwDefaultError({
1183
- output,
1184
- parsedBody,
1185
- errorCode,
1186
- });
1187
- }
1188
- };
1189
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1190
- const body = parsedOutput.body;
1191
- const deserialized = smithyClient._json(body);
1192
- const exception = new AccessDeniedException({
1193
- $metadata: deserializeMetadata(parsedOutput),
1194
- ...deserialized,
1195
- });
1196
- return smithyClient.decorateServiceException(exception, body);
1197
- };
1198
- const de_AgentsAlreadyRunningAssessmentExceptionRes = async (parsedOutput, context) => {
1199
- const body = parsedOutput.body;
1200
- const deserialized = smithyClient._json(body);
1201
- const exception = new AgentsAlreadyRunningAssessmentException({
1202
- $metadata: deserializeMetadata(parsedOutput),
1203
- ...deserialized,
1204
- });
1205
- return smithyClient.decorateServiceException(exception, body);
1206
- };
1207
- const de_AssessmentRunInProgressExceptionRes = async (parsedOutput, context) => {
1208
- const body = parsedOutput.body;
1209
- const deserialized = smithyClient._json(body);
1210
- const exception = new AssessmentRunInProgressException({
1211
- $metadata: deserializeMetadata(parsedOutput),
1212
- ...deserialized,
1213
- });
1214
- return smithyClient.decorateServiceException(exception, body);
1215
- };
1216
- const de_InternalExceptionRes = async (parsedOutput, context) => {
1217
- const body = parsedOutput.body;
1218
- const deserialized = smithyClient._json(body);
1219
- const exception = new InternalException({
1220
- $metadata: deserializeMetadata(parsedOutput),
1221
- ...deserialized,
1222
- });
1223
- return smithyClient.decorateServiceException(exception, body);
1224
- };
1225
- const de_InvalidCrossAccountRoleExceptionRes = async (parsedOutput, context) => {
1226
- const body = parsedOutput.body;
1227
- const deserialized = smithyClient._json(body);
1228
- const exception = new InvalidCrossAccountRoleException({
1229
- $metadata: deserializeMetadata(parsedOutput),
1230
- ...deserialized,
1231
- });
1232
- return smithyClient.decorateServiceException(exception, body);
1233
- };
1234
- const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1235
- const body = parsedOutput.body;
1236
- const deserialized = smithyClient._json(body);
1237
- const exception = new InvalidInputException({
1238
- $metadata: deserializeMetadata(parsedOutput),
1239
- ...deserialized,
1240
- });
1241
- return smithyClient.decorateServiceException(exception, body);
1242
- };
1243
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1244
- const body = parsedOutput.body;
1245
- const deserialized = smithyClient._json(body);
1246
- const exception = new LimitExceededException({
1247
- $metadata: deserializeMetadata(parsedOutput),
1248
- ...deserialized,
1249
- });
1250
- return smithyClient.decorateServiceException(exception, body);
1251
- };
1252
- const de_NoSuchEntityExceptionRes = async (parsedOutput, context) => {
1253
- const body = parsedOutput.body;
1254
- const deserialized = smithyClient._json(body);
1255
- const exception = new NoSuchEntityException({
1256
- $metadata: deserializeMetadata(parsedOutput),
1257
- ...deserialized,
1258
- });
1259
- return smithyClient.decorateServiceException(exception, body);
1260
- };
1261
- const de_PreviewGenerationInProgressExceptionRes = async (parsedOutput, context) => {
1262
- const body = parsedOutput.body;
1263
- const deserialized = smithyClient._json(body);
1264
- const exception = new PreviewGenerationInProgressException({
1265
- $metadata: deserializeMetadata(parsedOutput),
1266
- ...deserialized,
1267
- });
1268
- return smithyClient.decorateServiceException(exception, body);
1269
- };
1270
- const de_ServiceTemporarilyUnavailableExceptionRes = async (parsedOutput, context) => {
1271
- const body = parsedOutput.body;
1272
- const deserialized = smithyClient._json(body);
1273
- const exception = new ServiceTemporarilyUnavailableException({
1274
- $metadata: deserializeMetadata(parsedOutput),
1275
- ...deserialized,
1276
- });
1277
- return smithyClient.decorateServiceException(exception, body);
1278
- };
1279
- const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => {
1280
- const body = parsedOutput.body;
1281
- const deserialized = smithyClient._json(body);
1282
- const exception = new UnsupportedFeatureException({
1283
- $metadata: deserializeMetadata(parsedOutput),
1284
- ...deserialized,
1285
- });
1286
- return smithyClient.decorateServiceException(exception, body);
1287
- };
1288
- const se_AssessmentRunFilter = (input, context) => {
1289
- return smithyClient.take(input, {
1290
- completionTimeRange: (_) => se_TimestampRange(_),
1291
- durationRange: smithyClient._json,
1292
- namePattern: [],
1293
- rulesPackageArns: smithyClient._json,
1294
- startTimeRange: (_) => se_TimestampRange(_),
1295
- stateChangeTimeRange: (_) => se_TimestampRange(_),
1296
- states: smithyClient._json,
1297
- });
1298
- };
1299
- const se_FindingFilter = (input, context) => {
1300
- return smithyClient.take(input, {
1301
- agentIds: smithyClient._json,
1302
- attributes: smithyClient._json,
1303
- autoScalingGroups: smithyClient._json,
1304
- creationTimeRange: (_) => se_TimestampRange(_),
1305
- ruleNames: smithyClient._json,
1306
- rulesPackageArns: smithyClient._json,
1307
- severities: smithyClient._json,
1308
- userAttributes: smithyClient._json,
1309
- });
1310
- };
1311
- const se_ListAssessmentRunsRequest = (input, context) => {
1312
- return smithyClient.take(input, {
1313
- assessmentTemplateArns: smithyClient._json,
1314
- filter: (_) => se_AssessmentRunFilter(_),
1315
- maxResults: [],
1316
- nextToken: [],
1317
- });
1318
- };
1319
- const se_ListFindingsRequest = (input, context) => {
1320
- return smithyClient.take(input, {
1321
- assessmentRunArns: smithyClient._json,
1322
- filter: (_) => se_FindingFilter(_),
1323
- maxResults: [],
1324
- nextToken: [],
1325
- });
1326
- };
1327
- const se_TimestampRange = (input, context) => {
1328
- return smithyClient.take(input, {
1329
- beginDate: (_) => _.getTime() / 1_000,
1330
- endDate: (_) => _.getTime() / 1_000,
1331
- });
1332
- };
1333
- const de_AssessmentRun = (output, context) => {
1334
- return smithyClient.take(output, {
1335
- arn: smithyClient.expectString,
1336
- assessmentTemplateArn: smithyClient.expectString,
1337
- completedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1338
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1339
- dataCollected: smithyClient.expectBoolean,
1340
- durationInSeconds: smithyClient.expectInt32,
1341
- findingCounts: smithyClient._json,
1342
- name: smithyClient.expectString,
1343
- notifications: (_) => de_AssessmentRunNotificationList(_),
1344
- rulesPackageArns: smithyClient._json,
1345
- startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1346
- state: smithyClient.expectString,
1347
- stateChangedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1348
- stateChanges: (_) => de_AssessmentRunStateChangeList(_),
1349
- userAttributesForFindings: smithyClient._json,
1350
- });
1351
- };
1352
- const de_AssessmentRunList = (output, context) => {
1353
- const retVal = (output || [])
1354
- .filter((e) => e != null)
1355
- .map((entry) => {
1356
- return de_AssessmentRun(entry);
1357
- });
1358
- return retVal;
1359
- };
1360
- const de_AssessmentRunNotification = (output, context) => {
1361
- return smithyClient.take(output, {
1362
- date: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1363
- error: smithyClient.expectBoolean,
1364
- event: smithyClient.expectString,
1365
- message: smithyClient.expectString,
1366
- snsPublishStatusCode: smithyClient.expectString,
1367
- snsTopicArn: smithyClient.expectString,
1368
- });
1369
- };
1370
- const de_AssessmentRunNotificationList = (output, context) => {
1371
- const retVal = (output || [])
1372
- .filter((e) => e != null)
1373
- .map((entry) => {
1374
- return de_AssessmentRunNotification(entry);
1375
- });
1376
- return retVal;
1377
- };
1378
- const de_AssessmentRunStateChange = (output, context) => {
1379
- return smithyClient.take(output, {
1380
- state: smithyClient.expectString,
1381
- stateChangedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1382
- });
1383
- };
1384
- const de_AssessmentRunStateChangeList = (output, context) => {
1385
- const retVal = (output || [])
1386
- .filter((e) => e != null)
1387
- .map((entry) => {
1388
- return de_AssessmentRunStateChange(entry);
1389
- });
1390
- return retVal;
1391
- };
1392
- const de_AssessmentTarget = (output, context) => {
1393
- return smithyClient.take(output, {
1394
- arn: smithyClient.expectString,
1395
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1396
- name: smithyClient.expectString,
1397
- resourceGroupArn: smithyClient.expectString,
1398
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1399
- });
1400
- };
1401
- const de_AssessmentTargetList = (output, context) => {
1402
- const retVal = (output || [])
1403
- .filter((e) => e != null)
1404
- .map((entry) => {
1405
- return de_AssessmentTarget(entry);
1406
- });
1407
- return retVal;
1408
- };
1409
- const de_AssessmentTemplate = (output, context) => {
1410
- return smithyClient.take(output, {
1411
- arn: smithyClient.expectString,
1412
- assessmentRunCount: smithyClient.expectInt32,
1413
- assessmentTargetArn: smithyClient.expectString,
1414
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1415
- durationInSeconds: smithyClient.expectInt32,
1416
- lastAssessmentRunArn: smithyClient.expectString,
1417
- name: smithyClient.expectString,
1418
- rulesPackageArns: smithyClient._json,
1419
- userAttributesForFindings: smithyClient._json,
1420
- });
1421
- };
1422
- const de_AssessmentTemplateList = (output, context) => {
1423
- const retVal = (output || [])
1424
- .filter((e) => e != null)
1425
- .map((entry) => {
1426
- return de_AssessmentTemplate(entry);
1427
- });
1428
- return retVal;
1429
- };
1430
- const de_DescribeAssessmentRunsResponse = (output, context) => {
1431
- return smithyClient.take(output, {
1432
- assessmentRuns: (_) => de_AssessmentRunList(_),
1433
- failedItems: smithyClient._json,
1434
- });
1435
- };
1436
- const de_DescribeAssessmentTargetsResponse = (output, context) => {
1437
- return smithyClient.take(output, {
1438
- assessmentTargets: (_) => de_AssessmentTargetList(_),
1439
- failedItems: smithyClient._json,
1440
- });
1441
- };
1442
- const de_DescribeAssessmentTemplatesResponse = (output, context) => {
1443
- return smithyClient.take(output, {
1444
- assessmentTemplates: (_) => de_AssessmentTemplateList(_),
1445
- failedItems: smithyClient._json,
1446
- });
1447
- };
1448
- const de_DescribeCrossAccountAccessRoleResponse = (output, context) => {
1449
- return smithyClient.take(output, {
1450
- registeredAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1451
- roleArn: smithyClient.expectString,
1452
- valid: smithyClient.expectBoolean,
1453
- });
1454
- };
1455
- const de_DescribeFindingsResponse = (output, context) => {
1456
- return smithyClient.take(output, {
1457
- failedItems: smithyClient._json,
1458
- findings: (_) => de_FindingList(_),
1459
- });
1460
- };
1461
- const de_DescribeResourceGroupsResponse = (output, context) => {
1462
- return smithyClient.take(output, {
1463
- failedItems: smithyClient._json,
1464
- resourceGroups: (_) => de_ResourceGroupList(_),
1465
- });
1466
- };
1467
- const de_EventSubscription = (output, context) => {
1468
- return smithyClient.take(output, {
1469
- event: smithyClient.expectString,
1470
- subscribedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1471
- });
1472
- };
1473
- const de_EventSubscriptionList = (output, context) => {
1474
- const retVal = (output || [])
1475
- .filter((e) => e != null)
1476
- .map((entry) => {
1477
- return de_EventSubscription(entry);
1478
- });
1479
- return retVal;
1480
- };
1481
- const de_Finding = (output, context) => {
1482
- return smithyClient.take(output, {
1483
- arn: smithyClient.expectString,
1484
- assetAttributes: smithyClient._json,
1485
- assetType: smithyClient.expectString,
1486
- attributes: smithyClient._json,
1487
- confidence: smithyClient.expectInt32,
1488
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1489
- description: smithyClient.expectString,
1490
- id: smithyClient.expectString,
1491
- indicatorOfCompromise: smithyClient.expectBoolean,
1492
- numericSeverity: smithyClient.limitedParseDouble,
1493
- recommendation: smithyClient.expectString,
1494
- schemaVersion: smithyClient.expectInt32,
1495
- service: smithyClient.expectString,
1496
- serviceAttributes: smithyClient._json,
1497
- severity: smithyClient.expectString,
1498
- title: smithyClient.expectString,
1499
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1500
- userAttributes: smithyClient._json,
1501
- });
1502
- };
1503
- const de_FindingList = (output, context) => {
1504
- const retVal = (output || [])
1505
- .filter((e) => e != null)
1506
- .map((entry) => {
1507
- return de_Finding(entry);
1508
- });
1509
- return retVal;
1510
- };
1511
- const de_ListEventSubscriptionsResponse = (output, context) => {
1512
- return smithyClient.take(output, {
1513
- nextToken: smithyClient.expectString,
1514
- subscriptions: (_) => de_SubscriptionList(_),
1515
- });
1516
- };
1517
- const de_ResourceGroup = (output, context) => {
1518
- return smithyClient.take(output, {
1519
- arn: smithyClient.expectString,
1520
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1521
- tags: smithyClient._json,
1522
- });
1523
- };
1524
- const de_ResourceGroupList = (output, context) => {
1525
- const retVal = (output || [])
1526
- .filter((e) => e != null)
1527
- .map((entry) => {
1528
- return de_ResourceGroup(entry);
1529
- });
1530
- return retVal;
1531
- };
1532
- const de_Subscription = (output, context) => {
1533
- return smithyClient.take(output, {
1534
- eventSubscriptions: (_) => de_EventSubscriptionList(_),
1535
- resourceArn: smithyClient.expectString,
1536
- topicArn: smithyClient.expectString,
1537
- });
1538
- };
1539
- const de_SubscriptionList = (output, context) => {
1540
- const retVal = (output || [])
1541
- .filter((e) => e != null)
1542
- .map((entry) => {
1543
- return de_Subscription(entry);
1544
- });
1545
- return retVal;
1546
- };
1547
- const deserializeMetadata = (output) => ({
1548
- httpStatusCode: output.statusCode,
1549
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1550
- extendedRequestId: output.headers["x-amz-id-2"],
1551
- cfId: output.headers["x-amz-cf-id"],
1552
- });
1553
- const throwDefaultError = smithyClient.withBaseException(InspectorServiceException);
1554
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1556
- const contents = {
1557
- protocol,
1558
- hostname,
1559
- port,
1560
- method: "POST",
1561
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1562
- headers,
1563
- };
1564
- if (body !== undefined) {
1565
- contents.body = body;
1566
- }
1567
- return new protocolHttp.HttpRequest(contents);
1568
- };
1569
- function sharedHeaders(operation) {
1570
- return {
1571
- "content-type": "application/x-amz-json-1.1",
1572
- "x-amz-target": `InspectorService.${operation}`,
1573
- };
1574
- }
465
+ const _A = "Attribute";
466
+ const _AA = "AssetAttributes";
467
+ const _AARA = "AgentAlreadyRunningAssessment";
468
+ const _AARAE = "AgentsAlreadyRunningAssessmentException";
469
+ const _AARAL = "AgentAlreadyRunningAssessmentList";
470
+ const _AATF = "AddAttributesToFindings";
471
+ const _AATFR = "AddAttributesToFindingsRequest";
472
+ const _AATFRd = "AddAttributesToFindingsResponse";
473
+ const _ADE = "AccessDeniedException";
474
+ const _AF = "AgentFilter";
475
+ const _AL = "AttributeList";
476
+ const _AP = "AgentPreview";
477
+ const _APL = "AgentPreviewList";
478
+ const _AR = "AssessmentRun";
479
+ const _ARA = "AssessmentRunAgent";
480
+ const _ARAL = "AssessmentRunAgentList";
481
+ const _ARF = "AssessmentRunFilter";
482
+ const _ARIPE = "AssessmentRunInProgressException";
483
+ const _ARL = "AssessmentRunList";
484
+ const _ARN = "AssessmentRunNotification";
485
+ const _ARNL = "AssessmentRunNotificationList";
486
+ const _ARSC = "AssessmentRunStateChange";
487
+ const _ARSCL = "AssessmentRunStateChangeList";
488
+ const _AT = "AssessmentTarget";
489
+ const _ATF = "AssessmentTargetFilter";
490
+ const _ATFs = "AssessmentTemplateFilter";
491
+ const _ATL = "AssessmentTargetList";
492
+ const _ATLs = "AssessmentTemplateList";
493
+ const _ATs = "AssessmentTemplate";
494
+ const _CAT = "CreateAssessmentTarget";
495
+ const _CATR = "CreateAssessmentTargetRequest";
496
+ const _CATRr = "CreateAssessmentTargetResponse";
497
+ const _CATRre = "CreateAssessmentTemplateRequest";
498
+ const _CATRrea = "CreateAssessmentTemplateResponse";
499
+ const _CATr = "CreateAssessmentTemplate";
500
+ const _CEP = "CreateExclusionsPreview";
501
+ const _CEPR = "CreateExclusionsPreviewRequest";
502
+ const _CEPRr = "CreateExclusionsPreviewResponse";
503
+ const _CRG = "CreateResourceGroup";
504
+ const _CRGR = "CreateResourceGroupRequest";
505
+ const _CRGRr = "CreateResourceGroupResponse";
506
+ const _DAR = "DeleteAssessmentRun";
507
+ const _DARR = "DeleteAssessmentRunRequest";
508
+ const _DARRe = "DescribeAssessmentRunsRequest";
509
+ const _DARRes = "DescribeAssessmentRunsResponse";
510
+ const _DARe = "DescribeAssessmentRuns";
511
+ const _DAT = "DeleteAssessmentTarget";
512
+ const _DATR = "DeleteAssessmentTargetRequest";
513
+ const _DATRe = "DeleteAssessmentTemplateRequest";
514
+ const _DATRes = "DescribeAssessmentTargetsRequest";
515
+ const _DATResc = "DescribeAssessmentTargetsResponse";
516
+ const _DATRescr = "DescribeAssessmentTemplatesRequest";
517
+ const _DATRescri = "DescribeAssessmentTemplatesResponse";
518
+ const _DATe = "DeleteAssessmentTemplate";
519
+ const _DATes = "DescribeAssessmentTargets";
520
+ const _DATesc = "DescribeAssessmentTemplates";
521
+ const _DCAAR = "DescribeCrossAccountAccessRole";
522
+ const _DCAARR = "DescribeCrossAccountAccessRoleResponse";
523
+ const _DE = "DescribeExclusions";
524
+ const _DER = "DescribeExclusionsRequest";
525
+ const _DERe = "DescribeExclusionsResponse";
526
+ const _DF = "DescribeFindings";
527
+ const _DFR = "DescribeFindingsRequest";
528
+ const _DFRe = "DescribeFindingsResponse";
529
+ const _DR = "DurationRange";
530
+ const _DRG = "DescribeResourceGroups";
531
+ const _DRGR = "DescribeResourceGroupsRequest";
532
+ const _DRGRe = "DescribeResourceGroupsResponse";
533
+ const _DRP = "DescribeRulesPackages";
534
+ const _DRPR = "DescribeRulesPackagesRequest";
535
+ const _DRPRe = "DescribeRulesPackagesResponse";
536
+ const _E = "Exclusion";
537
+ const _EM = "ExclusionMap";
538
+ const _EP = "ExclusionPreview";
539
+ const _EPL = "ExclusionPreviewList";
540
+ const _ES = "EventSubscription";
541
+ const _ESL = "EventSubscriptionList";
542
+ const _F = "Finding";
543
+ const _FF = "FindingFilter";
544
+ const _FI = "FailedItems";
545
+ const _FID = "FailedItemDetails";
546
+ const _FL = "FindingList";
547
+ const _GAR = "GetAssessmentReport";
548
+ const _GARR = "GetAssessmentReportRequest";
549
+ const _GARRe = "GetAssessmentReportResponse";
550
+ const _GEP = "GetExclusionsPreview";
551
+ const _GEPR = "GetExclusionsPreviewRequest";
552
+ const _GEPRe = "GetExclusionsPreviewResponse";
553
+ const _GTM = "GetTelemetryMetadata";
554
+ const _GTMR = "GetTelemetryMetadataRequest";
555
+ const _GTMRe = "GetTelemetryMetadataResponse";
556
+ const _ICARE = "InvalidCrossAccountRoleException";
557
+ const _IE = "InternalException";
558
+ const _IIE = "InvalidInputException";
559
+ const _ISA = "InspectorServiceAttributes";
560
+ const _LAR = "ListAssessmentRuns";
561
+ const _LARA = "ListAssessmentRunAgents";
562
+ const _LARAR = "ListAssessmentRunAgentsRequest";
563
+ const _LARARi = "ListAssessmentRunAgentsResponse";
564
+ const _LARR = "ListAssessmentRunsRequest";
565
+ const _LARRi = "ListAssessmentRunsResponse";
566
+ const _LAT = "ListAssessmentTargets";
567
+ const _LATR = "ListAssessmentTargetsRequest";
568
+ const _LATRi = "ListAssessmentTargetsResponse";
569
+ const _LATRis = "ListAssessmentTemplatesRequest";
570
+ const _LATRist = "ListAssessmentTemplatesResponse";
571
+ const _LATi = "ListAssessmentTemplates";
572
+ const _LE = "ListExclusions";
573
+ const _LEE = "LimitExceededException";
574
+ const _LER = "ListExclusionsRequest";
575
+ const _LERi = "ListExclusionsResponse";
576
+ const _LES = "ListEventSubscriptions";
577
+ const _LESR = "ListEventSubscriptionsRequest";
578
+ const _LESRi = "ListEventSubscriptionsResponse";
579
+ const _LF = "ListFindings";
580
+ const _LFR = "ListFindingsRequest";
581
+ const _LFRi = "ListFindingsResponse";
582
+ const _LRP = "ListRulesPackages";
583
+ const _LRPR = "ListRulesPackagesRequest";
584
+ const _LRPRi = "ListRulesPackagesResponse";
585
+ const _LTFR = "ListTagsForResource";
586
+ const _LTFRR = "ListTagsForResourceRequest";
587
+ const _LTFRRi = "ListTagsForResourceResponse";
588
+ const _NI = "NetworkInterface";
589
+ const _NIe = "NetworkInterfaces";
590
+ const _NSEE = "NoSuchEntityException";
591
+ const _PA = "PreviewAgents";
592
+ const _PAR = "PreviewAgentsRequest";
593
+ const _PARr = "PreviewAgentsResponse";
594
+ const _PGIPE = "PreviewGenerationInProgressException";
595
+ const _PI = "PrivateIp";
596
+ const _PIA = "PrivateIpAddresses";
597
+ const _RAFF = "RemoveAttributesFromFindings";
598
+ const _RAFFR = "RemoveAttributesFromFindingsRequest";
599
+ const _RAFFRe = "RemoveAttributesFromFindingsResponse";
600
+ const _RCAAR = "RegisterCrossAccountAccessRole";
601
+ const _RCAARR = "RegisterCrossAccountAccessRoleRequest";
602
+ const _RG = "ResourceGroup";
603
+ const _RGL = "ResourceGroupList";
604
+ const _RGT = "ResourceGroupTag";
605
+ const _RGTe = "ResourceGroupTags";
606
+ const _RP = "RulesPackage";
607
+ const _RPL = "RulesPackageList";
608
+ const _S = "Scope";
609
+ const _SAR = "StartAssessmentRun";
610
+ const _SARR = "StartAssessmentRunRequest";
611
+ const _SARRt = "StartAssessmentRunResponse";
612
+ const _SARRto = "StopAssessmentRunRequest";
613
+ const _SARt = "StopAssessmentRun";
614
+ const _SG = "SecurityGroup";
615
+ const _SGe = "SecurityGroups";
616
+ const _SL = "ScopeList";
617
+ const _SLu = "SubscriptionList";
618
+ const _STE = "SubscribeToEvent";
619
+ const _STER = "SubscribeToEventRequest";
620
+ const _STFR = "SetTagsForResource";
621
+ const _STFRR = "SetTagsForResourceRequest";
622
+ const _STUE = "ServiceTemporarilyUnavailableException";
623
+ const _Su = "Subscription";
624
+ const _T = "Tag";
625
+ const _TL = "TagList";
626
+ const _TM = "TelemetryMetadata";
627
+ const _TML = "TelemetryMetadataList";
628
+ const _TR = "TimestampRange";
629
+ const _Ta = "Tags";
630
+ const _UAL = "UserAttributeList";
631
+ const _UAT = "UpdateAssessmentTarget";
632
+ const _UATR = "UpdateAssessmentTargetRequest";
633
+ const _UFE = "UnsupportedFeatureException";
634
+ const _UFER = "UnsubscribeFromEventRequest";
635
+ const _UFEn = "UnsubscribeFromEvent";
636
+ const _a = "attributes";
637
+ const _aA = "assetAttributes";
638
+ const _aH = "agentHealths";
639
+ const _aHC = "agentHealthCodes";
640
+ const _aHCg = "agentHealthCode";
641
+ const _aHD = "agentHealthDetails";
642
+ const _aHg = "agentHealth";
643
+ const _aI = "agentId";
644
+ const _aIg = "agentIds";
645
+ const _aIm = "amiId";
646
+ const _aK = "attributeKeys";
647
+ const _aP = "agentPreviews";
648
+ const _aR = "assessmentRuns";
649
+ const _aRA = "assessmentRunArn";
650
+ const _aRAT = "assessmentRunArnsTruncated";
651
+ const _aRAs = "assessmentRunArns";
652
+ const _aRAss = "assessmentRunAgents";
653
+ const _aRC = "assessmentRunCount";
654
+ const _aRN = "assessmentRunName";
655
+ const _aSG = "autoScalingGroup";
656
+ const _aSGu = "autoScalingGroups";
657
+ const _aT = "agentsTruncated";
658
+ const _aTA = "assessmentTemplateArn";
659
+ const _aTAs = "assessmentTargetArn";
660
+ const _aTAss = "assessmentTargetArns";
661
+ const _aTAsse = "assessmentTemplateArns";
662
+ const _aTN = "assessmentTargetName";
663
+ const _aTNP = "assessmentTargetNamePattern";
664
+ const _aTNs = "assessmentTemplateName";
665
+ const _aTs = "assessmentTargets";
666
+ const _aTss = "assessmentTemplates";
667
+ const _aTsse = "assetType";
668
+ const _aV = "agentVersion";
669
+ const _ag = "agents";
670
+ const _ar = "arn";
671
+ const _bD = "beginDate";
672
+ const _c = "client";
673
+ const _cA = "createdAt";
674
+ const _cAo = "completedAt";
675
+ const _cR = "canRetry";
676
+ const _cTR = "completionTimeRange";
677
+ const _cTRr = "creationTimeRange";
678
+ const _co = "confidence";
679
+ const _cou = "count";
680
+ const _d = "date";
681
+ const _dC = "dataCollected";
682
+ const _dIS = "durationInSeconds";
683
+ const _dR = "durationRange";
684
+ const _dS = "dataSize";
685
+ const _de = "description";
686
+ const _e = "error";
687
+ const _eA = "exclusionArns";
688
+ const _eC = "errorCode";
689
+ const _eD = "endDate";
690
+ const _eP = "exclusionPreviews";
691
+ const _eS = "eventSubscriptions";
692
+ const _ev = "event";
693
+ const _ex = "exclusions";
694
+ const _f = "findings";
695
+ const _fA = "findingArns";
696
+ const _fC = "findingCounts";
697
+ const _fCa = "failureCode";
698
+ const _fI = "failedItems";
699
+ const _fi = "filter";
700
+ const _gI = "groupId";
701
+ const _gN = "groupName";
702
+ const _h = "hostname";
703
+ const _hE = "httpError";
704
+ const _i = "id";
705
+ const _iA = "ipv4Address";
706
+ const _iAp = "ipv4Addresses";
707
+ const _iApv = "ipv6Addresses";
708
+ const _iOC = "indicatorOfCompromise";
709
+ const _k = "key";
710
+ const _kV = "kernelVersion";
711
+ const _l = "locale";
712
+ const _lARA = "lastAssessmentRunArn";
713
+ const _m = "message";
714
+ const _mR = "maxResults";
715
+ const _mS = "minSeconds";
716
+ const _mSa = "maxSeconds";
717
+ const _mT = "messageType";
718
+ const _n = "name";
719
+ const _nI = "networkInterfaces";
720
+ const _nII = "networkInterfaceId";
721
+ const _nP = "namePattern";
722
+ const _nS = "numericSeverity";
723
+ const _nT = "nextToken";
724
+ const _no = "notifications";
725
+ const _oS = "operatingSystem";
726
+ const _p = "provider";
727
+ const _pAA = "previewAgentsArn";
728
+ const _pDN = "privateDnsName";
729
+ const _pDNu = "publicDnsName";
730
+ const _pI = "publicIp";
731
+ const _pIA = "privateIpAddress";
732
+ const _pIAr = "privateIpAddresses";
733
+ const _pS = "previewStatus";
734
+ const _pT = "previewToken";
735
+ const _r = "recommendation";
736
+ const _rA = "roleArn";
737
+ const _rAe = "registeredAt";
738
+ const _rAes = "resourceArn";
739
+ const _rFF = "reportFileFormat";
740
+ const _rG = "resourceGroups";
741
+ const _rGA = "resourceGroupArn";
742
+ const _rGAe = "resourceGroupArns";
743
+ const _rGT = "resourceGroupTags";
744
+ const _rN = "ruleNames";
745
+ const _rP = "rulesPackages";
746
+ const _rPA = "rulesPackageArns";
747
+ const _rPAu = "rulesPackageArn";
748
+ const _rT = "reportType";
749
+ const _re = "retryable";
750
+ const _s = "state";
751
+ const _sA = "startedAt";
752
+ const _sAe = "serviceAttributes";
753
+ const _sAt = "stopAction";
754
+ const _sAu = "subscribedAt";
755
+ const _sC = "stateChanges";
756
+ const _sCA = "stateChangedAt";
757
+ const _sCTR = "stateChangeTimeRange";
758
+ const _sG = "securityGroups";
759
+ const _sI = "subnetId";
760
+ const _sPSC = "snsPublishStatusCode";
761
+ const _sTA = "snsTopicArn";
762
+ const _sTR = "startTimeRange";
763
+ const _sV = "schemaVersion";
764
+ const _sc = "scopes";
765
+ const _se = "service";
766
+ const _ser = "server";
767
+ const _sev = "severity";
768
+ const _seve = "severities";
769
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.inspector";
770
+ const _st = "states";
771
+ const _sta = "status";
772
+ const _su = "subscriptions";
773
+ const _t = "tags";
774
+ const _tA = "topicArn";
775
+ const _tM = "telemetryMetadata";
776
+ const _ti = "title";
777
+ const _u = "url";
778
+ const _uA = "updatedAt";
779
+ const _uAFF = "userAttributesForFindings";
780
+ const _uAs = "userAttributes";
781
+ const _v = "value";
782
+ const _vI = "vpcId";
783
+ const _va = "valid";
784
+ const _ve = "version";
785
+ const n0 = "com.amazonaws.inspector";
786
+ var AccessDeniedException = [
787
+ -3,
788
+ n0,
789
+ _ADE,
790
+ {
791
+ [_e]: _c,
792
+ [_hE]: 403,
793
+ },
794
+ [_m, _eC, _cR],
795
+ [0, 0, 2],
796
+ ];
797
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
798
+ var AddAttributesToFindingsRequest = [
799
+ 3,
800
+ n0,
801
+ _AATFR,
802
+ 0,
803
+ [_fA, _a],
804
+ [64 | 0, () => UserAttributeList],
805
+ ];
806
+ var AddAttributesToFindingsResponse = [3, n0, _AATFRd, 0, [_fI], [() => FailedItems]];
807
+ var AgentAlreadyRunningAssessment = [3, n0, _AARA, 0, [_aI, _aRA], [0, 0]];
808
+ var AgentFilter = [3, n0, _AF, 0, [_aH, _aHC], [64 | 0, 64 | 0]];
809
+ var AgentPreview = [
810
+ 3,
811
+ n0,
812
+ _AP,
813
+ 0,
814
+ [_h, _aI, _aSG, _aHg, _aV, _oS, _kV, _iA],
815
+ [0, 0, 0, 0, 0, 0, 0, 0],
816
+ ];
817
+ var AgentsAlreadyRunningAssessmentException = [
818
+ -3,
819
+ n0,
820
+ _AARAE,
821
+ {
822
+ [_e]: _c,
823
+ },
824
+ [_m, _ag, _aT, _cR],
825
+ [0, () => AgentAlreadyRunningAssessmentList, 2, 2],
826
+ ];
827
+ schema.TypeRegistry.for(n0).registerError(AgentsAlreadyRunningAssessmentException, AgentsAlreadyRunningAssessmentException$1);
828
+ var AssessmentRun = [
829
+ 3,
830
+ n0,
831
+ _AR,
832
+ 0,
833
+ [_ar, _n, _aTA, _s, _dIS, _rPA, _uAFF, _cA, _sA, _cAo, _sCA, _dC, _sC, _no, _fC],
834
+ [
835
+ 0,
836
+ 0,
837
+ 0,
838
+ 0,
839
+ 1,
840
+ 64 | 0,
841
+ () => UserAttributeList,
842
+ 4,
843
+ 4,
844
+ 4,
845
+ 4,
846
+ 2,
847
+ () => AssessmentRunStateChangeList,
848
+ () => AssessmentRunNotificationList,
849
+ 128 | 1,
850
+ ],
851
+ ];
852
+ var AssessmentRunAgent = [
853
+ 3,
854
+ n0,
855
+ _ARA,
856
+ 0,
857
+ [_aI, _aRA, _aHg, _aHCg, _aHD, _aSG, _tM],
858
+ [0, 0, 0, 0, 0, 0, () => TelemetryMetadataList],
859
+ ];
860
+ var AssessmentRunFilter = [
861
+ 3,
862
+ n0,
863
+ _ARF,
864
+ 0,
865
+ [_nP, _st, _dR, _rPA, _sTR, _cTR, _sCTR],
866
+ [0, 64 | 0, () => DurationRange, 64 | 0, () => TimestampRange, () => TimestampRange, () => TimestampRange],
867
+ ];
868
+ var AssessmentRunInProgressException = [
869
+ -3,
870
+ n0,
871
+ _ARIPE,
872
+ {
873
+ [_e]: _c,
874
+ },
875
+ [_m, _aRAs, _aRAT, _cR],
876
+ [0, 64 | 0, 2, 2],
877
+ ];
878
+ schema.TypeRegistry.for(n0).registerError(AssessmentRunInProgressException, AssessmentRunInProgressException$1);
879
+ var AssessmentRunNotification = [
880
+ 3,
881
+ n0,
882
+ _ARN,
883
+ 0,
884
+ [_d, _ev, _m, _e, _sTA, _sPSC],
885
+ [4, 0, 0, 2, 0, 0],
886
+ ];
887
+ var AssessmentRunStateChange = [3, n0, _ARSC, 0, [_sCA, _s], [4, 0]];
888
+ var AssessmentTarget = [3, n0, _AT, 0, [_ar, _n, _rGA, _cA, _uA], [0, 0, 0, 4, 4]];
889
+ var AssessmentTargetFilter = [3, n0, _ATF, 0, [_aTNP], [0]];
890
+ var AssessmentTemplate = [
891
+ 3,
892
+ n0,
893
+ _ATs,
894
+ 0,
895
+ [_ar, _n, _aTAs, _dIS, _rPA, _uAFF, _lARA, _aRC, _cA],
896
+ [0, 0, 0, 1, 64 | 0, () => UserAttributeList, 0, 1, 4],
897
+ ];
898
+ var AssessmentTemplateFilter = [
899
+ 3,
900
+ n0,
901
+ _ATFs,
902
+ 0,
903
+ [_nP, _dR, _rPA],
904
+ [0, () => DurationRange, 64 | 0],
905
+ ];
906
+ var AssetAttributes = [
907
+ 3,
908
+ n0,
909
+ _AA,
910
+ 0,
911
+ [_sV, _aI, _aSG, _aIm, _h, _iAp, _t, _nI],
912
+ [1, 0, 0, 0, 0, 64 | 0, () => Tags, () => NetworkInterfaces],
913
+ ];
914
+ var Attribute = [3, n0, _A, 0, [_k, _v], [0, 0]];
915
+ var CreateAssessmentTargetRequest = [3, n0, _CATR, 0, [_aTN, _rGA], [0, 0]];
916
+ var CreateAssessmentTargetResponse = [3, n0, _CATRr, 0, [_aTAs], [0]];
917
+ var CreateAssessmentTemplateRequest = [
918
+ 3,
919
+ n0,
920
+ _CATRre,
921
+ 0,
922
+ [_aTAs, _aTNs, _dIS, _rPA, _uAFF],
923
+ [0, 0, 1, 64 | 0, () => UserAttributeList],
924
+ ];
925
+ var CreateAssessmentTemplateResponse = [3, n0, _CATRrea, 0, [_aTA], [0]];
926
+ var CreateExclusionsPreviewRequest = [3, n0, _CEPR, 0, [_aTA], [0]];
927
+ var CreateExclusionsPreviewResponse = [3, n0, _CEPRr, 0, [_pT], [0]];
928
+ var CreateResourceGroupRequest = [3, n0, _CRGR, 0, [_rGT], [() => ResourceGroupTags]];
929
+ var CreateResourceGroupResponse = [3, n0, _CRGRr, 0, [_rGA], [0]];
930
+ var DeleteAssessmentRunRequest = [3, n0, _DARR, 0, [_aRA], [0]];
931
+ var DeleteAssessmentTargetRequest = [3, n0, _DATR, 0, [_aTAs], [0]];
932
+ var DeleteAssessmentTemplateRequest = [3, n0, _DATRe, 0, [_aTA], [0]];
933
+ var DescribeAssessmentRunsRequest = [3, n0, _DARRe, 0, [_aRAs], [64 | 0]];
934
+ var DescribeAssessmentRunsResponse = [
935
+ 3,
936
+ n0,
937
+ _DARRes,
938
+ 0,
939
+ [_aR, _fI],
940
+ [() => AssessmentRunList, () => FailedItems],
941
+ ];
942
+ var DescribeAssessmentTargetsRequest = [3, n0, _DATRes, 0, [_aTAss], [64 | 0]];
943
+ var DescribeAssessmentTargetsResponse = [
944
+ 3,
945
+ n0,
946
+ _DATResc,
947
+ 0,
948
+ [_aTs, _fI],
949
+ [() => AssessmentTargetList, () => FailedItems],
950
+ ];
951
+ var DescribeAssessmentTemplatesRequest = [3, n0, _DATRescr, 0, [_aTAsse], [64 | 0]];
952
+ var DescribeAssessmentTemplatesResponse = [
953
+ 3,
954
+ n0,
955
+ _DATRescri,
956
+ 0,
957
+ [_aTss, _fI],
958
+ [() => AssessmentTemplateList, () => FailedItems],
959
+ ];
960
+ var DescribeCrossAccountAccessRoleResponse = [
961
+ 3,
962
+ n0,
963
+ _DCAARR,
964
+ 0,
965
+ [_rA, _va, _rAe],
966
+ [0, 2, 4],
967
+ ];
968
+ var DescribeExclusionsRequest = [3, n0, _DER, 0, [_eA, _l], [64 | 0, 0]];
969
+ var DescribeExclusionsResponse = [
970
+ 3,
971
+ n0,
972
+ _DERe,
973
+ 0,
974
+ [_ex, _fI],
975
+ [() => ExclusionMap, () => FailedItems],
976
+ ];
977
+ var DescribeFindingsRequest = [3, n0, _DFR, 0, [_fA, _l], [64 | 0, 0]];
978
+ var DescribeFindingsResponse = [
979
+ 3,
980
+ n0,
981
+ _DFRe,
982
+ 0,
983
+ [_f, _fI],
984
+ [() => FindingList, () => FailedItems],
985
+ ];
986
+ var DescribeResourceGroupsRequest = [3, n0, _DRGR, 0, [_rGAe], [64 | 0]];
987
+ var DescribeResourceGroupsResponse = [
988
+ 3,
989
+ n0,
990
+ _DRGRe,
991
+ 0,
992
+ [_rG, _fI],
993
+ [() => ResourceGroupList, () => FailedItems],
994
+ ];
995
+ var DescribeRulesPackagesRequest = [3, n0, _DRPR, 0, [_rPA, _l], [64 | 0, 0]];
996
+ var DescribeRulesPackagesResponse = [
997
+ 3,
998
+ n0,
999
+ _DRPRe,
1000
+ 0,
1001
+ [_rP, _fI],
1002
+ [() => RulesPackageList, () => FailedItems],
1003
+ ];
1004
+ var DurationRange = [3, n0, _DR, 0, [_mS, _mSa], [1, 1]];
1005
+ var EventSubscription = [3, n0, _ES, 0, [_ev, _sAu], [0, 4]];
1006
+ var Exclusion = [
1007
+ 3,
1008
+ n0,
1009
+ _E,
1010
+ 0,
1011
+ [_ar, _ti, _de, _r, _sc, _a],
1012
+ [0, 0, 0, 0, () => ScopeList, () => AttributeList],
1013
+ ];
1014
+ var ExclusionPreview = [
1015
+ 3,
1016
+ n0,
1017
+ _EP,
1018
+ 0,
1019
+ [_ti, _de, _r, _sc, _a],
1020
+ [0, 0, 0, () => ScopeList, () => AttributeList],
1021
+ ];
1022
+ var FailedItemDetails = [3, n0, _FID, 0, [_fCa, _re], [0, 2]];
1023
+ var Finding = [
1024
+ 3,
1025
+ n0,
1026
+ _F,
1027
+ 0,
1028
+ [_ar, _sV, _se, _sAe, _aTsse, _aA, _i, _ti, _de, _r, _sev, _nS, _co, _iOC, _a, _uAs, _cA, _uA],
1029
+ [
1030
+ 0,
1031
+ 1,
1032
+ 0,
1033
+ () => InspectorServiceAttributes,
1034
+ 0,
1035
+ () => AssetAttributes,
1036
+ 0,
1037
+ 0,
1038
+ 0,
1039
+ 0,
1040
+ 0,
1041
+ 1,
1042
+ 1,
1043
+ 2,
1044
+ () => AttributeList,
1045
+ () => UserAttributeList,
1046
+ 4,
1047
+ 4,
1048
+ ],
1049
+ ];
1050
+ var FindingFilter = [
1051
+ 3,
1052
+ n0,
1053
+ _FF,
1054
+ 0,
1055
+ [_aIg, _aSGu, _rN, _seve, _rPA, _a, _uAs, _cTRr],
1056
+ [64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => AttributeList, () => AttributeList, () => TimestampRange],
1057
+ ];
1058
+ var GetAssessmentReportRequest = [3, n0, _GARR, 0, [_aRA, _rFF, _rT], [0, 0, 0]];
1059
+ var GetAssessmentReportResponse = [3, n0, _GARRe, 0, [_sta, _u], [0, 0]];
1060
+ var GetExclusionsPreviewRequest = [
1061
+ 3,
1062
+ n0,
1063
+ _GEPR,
1064
+ 0,
1065
+ [_aTA, _pT, _nT, _mR, _l],
1066
+ [0, 0, 0, 1, 0],
1067
+ ];
1068
+ var GetExclusionsPreviewResponse = [
1069
+ 3,
1070
+ n0,
1071
+ _GEPRe,
1072
+ 0,
1073
+ [_pS, _eP, _nT],
1074
+ [0, () => ExclusionPreviewList, 0],
1075
+ ];
1076
+ var GetTelemetryMetadataRequest = [3, n0, _GTMR, 0, [_aRA], [0]];
1077
+ var GetTelemetryMetadataResponse = [
1078
+ 3,
1079
+ n0,
1080
+ _GTMRe,
1081
+ 0,
1082
+ [_tM],
1083
+ [() => TelemetryMetadataList],
1084
+ ];
1085
+ var InspectorServiceAttributes = [3, n0, _ISA, 0, [_sV, _aRA, _rPAu], [1, 0, 0]];
1086
+ var InternalException = [
1087
+ -3,
1088
+ n0,
1089
+ _IE,
1090
+ {
1091
+ [_e]: _ser,
1092
+ },
1093
+ [_m, _cR],
1094
+ [0, 2],
1095
+ ];
1096
+ schema.TypeRegistry.for(n0).registerError(InternalException, InternalException$1);
1097
+ var InvalidCrossAccountRoleException = [
1098
+ -3,
1099
+ n0,
1100
+ _ICARE,
1101
+ {
1102
+ [_e]: _c,
1103
+ },
1104
+ [_m, _eC, _cR],
1105
+ [0, 0, 2],
1106
+ ];
1107
+ schema.TypeRegistry.for(n0).registerError(InvalidCrossAccountRoleException, InvalidCrossAccountRoleException$1);
1108
+ var InvalidInputException = [
1109
+ -3,
1110
+ n0,
1111
+ _IIE,
1112
+ {
1113
+ [_e]: _c,
1114
+ },
1115
+ [_m, _eC, _cR],
1116
+ [0, 0, 2],
1117
+ ];
1118
+ schema.TypeRegistry.for(n0).registerError(InvalidInputException, InvalidInputException$1);
1119
+ var LimitExceededException = [
1120
+ -3,
1121
+ n0,
1122
+ _LEE,
1123
+ {
1124
+ [_e]: _c,
1125
+ },
1126
+ [_m, _eC, _cR],
1127
+ [0, 0, 2],
1128
+ ];
1129
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
1130
+ var ListAssessmentRunAgentsRequest = [
1131
+ 3,
1132
+ n0,
1133
+ _LARAR,
1134
+ 0,
1135
+ [_aRA, _fi, _nT, _mR],
1136
+ [0, () => AgentFilter, 0, 1],
1137
+ ];
1138
+ var ListAssessmentRunAgentsResponse = [
1139
+ 3,
1140
+ n0,
1141
+ _LARARi,
1142
+ 0,
1143
+ [_aRAss, _nT],
1144
+ [() => AssessmentRunAgentList, 0],
1145
+ ];
1146
+ var ListAssessmentRunsRequest = [
1147
+ 3,
1148
+ n0,
1149
+ _LARR,
1150
+ 0,
1151
+ [_aTAsse, _fi, _nT, _mR],
1152
+ [64 | 0, () => AssessmentRunFilter, 0, 1],
1153
+ ];
1154
+ var ListAssessmentRunsResponse = [3, n0, _LARRi, 0, [_aRAs, _nT], [64 | 0, 0]];
1155
+ var ListAssessmentTargetsRequest = [
1156
+ 3,
1157
+ n0,
1158
+ _LATR,
1159
+ 0,
1160
+ [_fi, _nT, _mR],
1161
+ [() => AssessmentTargetFilter, 0, 1],
1162
+ ];
1163
+ var ListAssessmentTargetsResponse = [3, n0, _LATRi, 0, [_aTAss, _nT], [64 | 0, 0]];
1164
+ var ListAssessmentTemplatesRequest = [
1165
+ 3,
1166
+ n0,
1167
+ _LATRis,
1168
+ 0,
1169
+ [_aTAss, _fi, _nT, _mR],
1170
+ [64 | 0, () => AssessmentTemplateFilter, 0, 1],
1171
+ ];
1172
+ var ListAssessmentTemplatesResponse = [3, n0, _LATRist, 0, [_aTAsse, _nT], [64 | 0, 0]];
1173
+ var ListEventSubscriptionsRequest = [3, n0, _LESR, 0, [_rAes, _nT, _mR], [0, 0, 1]];
1174
+ var ListEventSubscriptionsResponse = [
1175
+ 3,
1176
+ n0,
1177
+ _LESRi,
1178
+ 0,
1179
+ [_su, _nT],
1180
+ [() => SubscriptionList, 0],
1181
+ ];
1182
+ var ListExclusionsRequest = [3, n0, _LER, 0, [_aRA, _nT, _mR], [0, 0, 1]];
1183
+ var ListExclusionsResponse = [3, n0, _LERi, 0, [_eA, _nT], [64 | 0, 0]];
1184
+ var ListFindingsRequest = [
1185
+ 3,
1186
+ n0,
1187
+ _LFR,
1188
+ 0,
1189
+ [_aRAs, _fi, _nT, _mR],
1190
+ [64 | 0, () => FindingFilter, 0, 1],
1191
+ ];
1192
+ var ListFindingsResponse = [3, n0, _LFRi, 0, [_fA, _nT], [64 | 0, 0]];
1193
+ var ListRulesPackagesRequest = [3, n0, _LRPR, 0, [_nT, _mR], [0, 1]];
1194
+ var ListRulesPackagesResponse = [3, n0, _LRPRi, 0, [_rPA, _nT], [64 | 0, 0]];
1195
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rAes], [0]];
1196
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [() => TagList]];
1197
+ var NetworkInterface = [
1198
+ 3,
1199
+ n0,
1200
+ _NI,
1201
+ 0,
1202
+ [_nII, _sI, _vI, _pDN, _pIA, _pIAr, _pDNu, _pI, _iApv, _sG],
1203
+ [0, 0, 0, 0, 0, () => PrivateIpAddresses, 0, 0, 64 | 0, () => SecurityGroups],
1204
+ ];
1205
+ var NoSuchEntityException = [
1206
+ -3,
1207
+ n0,
1208
+ _NSEE,
1209
+ {
1210
+ [_e]: _c,
1211
+ },
1212
+ [_m, _eC, _cR],
1213
+ [0, 0, 2],
1214
+ ];
1215
+ schema.TypeRegistry.for(n0).registerError(NoSuchEntityException, NoSuchEntityException$1);
1216
+ var PreviewAgentsRequest = [3, n0, _PAR, 0, [_pAA, _nT, _mR], [0, 0, 1]];
1217
+ var PreviewAgentsResponse = [3, n0, _PARr, 0, [_aP, _nT], [() => AgentPreviewList, 0]];
1218
+ var PreviewGenerationInProgressException = [
1219
+ -3,
1220
+ n0,
1221
+ _PGIPE,
1222
+ {
1223
+ [_e]: _c,
1224
+ },
1225
+ [_m],
1226
+ [0],
1227
+ ];
1228
+ schema.TypeRegistry.for(n0).registerError(PreviewGenerationInProgressException, PreviewGenerationInProgressException$1);
1229
+ var PrivateIp = [3, n0, _PI, 0, [_pDN, _pIA], [0, 0]];
1230
+ var RegisterCrossAccountAccessRoleRequest = [3, n0, _RCAARR, 0, [_rA], [0]];
1231
+ var RemoveAttributesFromFindingsRequest = [
1232
+ 3,
1233
+ n0,
1234
+ _RAFFR,
1235
+ 0,
1236
+ [_fA, _aK],
1237
+ [64 | 0, 64 | 0],
1238
+ ];
1239
+ var RemoveAttributesFromFindingsResponse = [
1240
+ 3,
1241
+ n0,
1242
+ _RAFFRe,
1243
+ 0,
1244
+ [_fI],
1245
+ [() => FailedItems],
1246
+ ];
1247
+ var ResourceGroup = [3, n0, _RG, 0, [_ar, _t, _cA], [0, () => ResourceGroupTags, 4]];
1248
+ var ResourceGroupTag = [3, n0, _RGT, 0, [_k, _v], [0, 0]];
1249
+ var RulesPackage = [3, n0, _RP, 0, [_ar, _n, _ve, _p, _de], [0, 0, 0, 0, 0]];
1250
+ var Scope = [3, n0, _S, 0, [_k, _v], [0, 0]];
1251
+ var SecurityGroup = [3, n0, _SG, 0, [_gN, _gI], [0, 0]];
1252
+ var ServiceTemporarilyUnavailableException = [
1253
+ -3,
1254
+ n0,
1255
+ _STUE,
1256
+ {
1257
+ [_e]: _ser,
1258
+ [_hE]: 503,
1259
+ },
1260
+ [_m, _cR],
1261
+ [0, 2],
1262
+ ];
1263
+ schema.TypeRegistry.for(n0).registerError(ServiceTemporarilyUnavailableException, ServiceTemporarilyUnavailableException$1);
1264
+ var SetTagsForResourceRequest = [3, n0, _STFRR, 0, [_rAes, _t], [0, () => TagList]];
1265
+ var StartAssessmentRunRequest = [3, n0, _SARR, 0, [_aTA, _aRN], [0, 0]];
1266
+ var StartAssessmentRunResponse = [3, n0, _SARRt, 0, [_aRA], [0]];
1267
+ var StopAssessmentRunRequest = [3, n0, _SARRto, 0, [_aRA, _sAt], [0, 0]];
1268
+ var SubscribeToEventRequest = [3, n0, _STER, 0, [_rAes, _ev, _tA], [0, 0, 0]];
1269
+ var Subscription = [
1270
+ 3,
1271
+ n0,
1272
+ _Su,
1273
+ 0,
1274
+ [_rAes, _tA, _eS],
1275
+ [0, 0, () => EventSubscriptionList],
1276
+ ];
1277
+ var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
1278
+ var TelemetryMetadata = [3, n0, _TM, 0, [_mT, _cou, _dS], [0, 1, 1]];
1279
+ var TimestampRange = [3, n0, _TR, 0, [_bD, _eD], [4, 4]];
1280
+ var UnsubscribeFromEventRequest = [3, n0, _UFER, 0, [_rAes, _ev, _tA], [0, 0, 0]];
1281
+ var UnsupportedFeatureException = [
1282
+ -3,
1283
+ n0,
1284
+ _UFE,
1285
+ {
1286
+ [_e]: _c,
1287
+ },
1288
+ [_m, _cR],
1289
+ [0, 2],
1290
+ ];
1291
+ schema.TypeRegistry.for(n0).registerError(UnsupportedFeatureException, UnsupportedFeatureException$1);
1292
+ var UpdateAssessmentTargetRequest = [3, n0, _UATR, 0, [_aTAs, _aTN, _rGA], [0, 0, 0]];
1293
+ var __Unit = "unit";
1294
+ var InspectorServiceException = [-3, _sm, "InspectorServiceException", 0, [], []];
1295
+ schema.TypeRegistry.for(_sm).registerError(InspectorServiceException, InspectorServiceException$1);
1296
+ var AgentAlreadyRunningAssessmentList = [
1297
+ 1,
1298
+ n0,
1299
+ _AARAL,
1300
+ 0,
1301
+ () => AgentAlreadyRunningAssessment,
1302
+ ];
1303
+ var AgentPreviewList = [1, n0, _APL, 0, () => AgentPreview];
1304
+ var AssessmentRunAgentList = [1, n0, _ARAL, 0, () => AssessmentRunAgent];
1305
+ var AssessmentRunList = [1, n0, _ARL, 0, () => AssessmentRun];
1306
+ var AssessmentRunNotificationList = [1, n0, _ARNL, 0, () => AssessmentRunNotification];
1307
+ var AssessmentRunStateChangeList = [1, n0, _ARSCL, 0, () => AssessmentRunStateChange];
1308
+ var AssessmentTargetList = [1, n0, _ATL, 0, () => AssessmentTarget];
1309
+ var AssessmentTemplateList = [1, n0, _ATLs, 0, () => AssessmentTemplate];
1310
+ var AttributeList = [1, n0, _AL, 0, () => Attribute];
1311
+ var EventSubscriptionList = [1, n0, _ESL, 0, () => EventSubscription];
1312
+ var ExclusionPreviewList = [1, n0, _EPL, 0, () => ExclusionPreview];
1313
+ var FindingList = [1, n0, _FL, 0, () => Finding];
1314
+ var NetworkInterfaces = [1, n0, _NIe, 0, () => NetworkInterface];
1315
+ var PrivateIpAddresses = [1, n0, _PIA, 0, () => PrivateIp];
1316
+ var ResourceGroupList = [1, n0, _RGL, 0, () => ResourceGroup];
1317
+ var ResourceGroupTags = [1, n0, _RGTe, 0, () => ResourceGroupTag];
1318
+ var RulesPackageList = [1, n0, _RPL, 0, () => RulesPackage];
1319
+ var ScopeList = [1, n0, _SL, 0, () => Scope];
1320
+ var SecurityGroups = [1, n0, _SGe, 0, () => SecurityGroup];
1321
+ var SubscriptionList = [1, n0, _SLu, 0, () => Subscription];
1322
+ var TagList = [1, n0, _TL, 0, () => Tag];
1323
+ var Tags = [1, n0, _Ta, 0, () => Tag];
1324
+ var TelemetryMetadataList = [1, n0, _TML, 0, () => TelemetryMetadata];
1325
+ var UserAttributeList = [1, n0, _UAL, 0, () => Attribute];
1326
+ var ExclusionMap = [2, n0, _EM, 0, 0, () => Exclusion];
1327
+ var FailedItems = [2, n0, _FI, 0, 0, () => FailedItemDetails];
1328
+ var AddAttributesToFindings = [
1329
+ 9,
1330
+ n0,
1331
+ _AATF,
1332
+ 0,
1333
+ () => AddAttributesToFindingsRequest,
1334
+ () => AddAttributesToFindingsResponse,
1335
+ ];
1336
+ var CreateAssessmentTarget = [
1337
+ 9,
1338
+ n0,
1339
+ _CAT,
1340
+ 0,
1341
+ () => CreateAssessmentTargetRequest,
1342
+ () => CreateAssessmentTargetResponse,
1343
+ ];
1344
+ var CreateAssessmentTemplate = [
1345
+ 9,
1346
+ n0,
1347
+ _CATr,
1348
+ 0,
1349
+ () => CreateAssessmentTemplateRequest,
1350
+ () => CreateAssessmentTemplateResponse,
1351
+ ];
1352
+ var CreateExclusionsPreview = [
1353
+ 9,
1354
+ n0,
1355
+ _CEP,
1356
+ 0,
1357
+ () => CreateExclusionsPreviewRequest,
1358
+ () => CreateExclusionsPreviewResponse,
1359
+ ];
1360
+ var CreateResourceGroup = [
1361
+ 9,
1362
+ n0,
1363
+ _CRG,
1364
+ 0,
1365
+ () => CreateResourceGroupRequest,
1366
+ () => CreateResourceGroupResponse,
1367
+ ];
1368
+ var DeleteAssessmentRun = [
1369
+ 9,
1370
+ n0,
1371
+ _DAR,
1372
+ 0,
1373
+ () => DeleteAssessmentRunRequest,
1374
+ () => __Unit,
1375
+ ];
1376
+ var DeleteAssessmentTarget = [
1377
+ 9,
1378
+ n0,
1379
+ _DAT,
1380
+ 0,
1381
+ () => DeleteAssessmentTargetRequest,
1382
+ () => __Unit,
1383
+ ];
1384
+ var DeleteAssessmentTemplate = [
1385
+ 9,
1386
+ n0,
1387
+ _DATe,
1388
+ 0,
1389
+ () => DeleteAssessmentTemplateRequest,
1390
+ () => __Unit,
1391
+ ];
1392
+ var DescribeAssessmentRuns = [
1393
+ 9,
1394
+ n0,
1395
+ _DARe,
1396
+ 0,
1397
+ () => DescribeAssessmentRunsRequest,
1398
+ () => DescribeAssessmentRunsResponse,
1399
+ ];
1400
+ var DescribeAssessmentTargets = [
1401
+ 9,
1402
+ n0,
1403
+ _DATes,
1404
+ 0,
1405
+ () => DescribeAssessmentTargetsRequest,
1406
+ () => DescribeAssessmentTargetsResponse,
1407
+ ];
1408
+ var DescribeAssessmentTemplates = [
1409
+ 9,
1410
+ n0,
1411
+ _DATesc,
1412
+ 0,
1413
+ () => DescribeAssessmentTemplatesRequest,
1414
+ () => DescribeAssessmentTemplatesResponse,
1415
+ ];
1416
+ var DescribeCrossAccountAccessRole = [
1417
+ 9,
1418
+ n0,
1419
+ _DCAAR,
1420
+ 0,
1421
+ () => __Unit,
1422
+ () => DescribeCrossAccountAccessRoleResponse,
1423
+ ];
1424
+ var DescribeExclusions = [
1425
+ 9,
1426
+ n0,
1427
+ _DE,
1428
+ 0,
1429
+ () => DescribeExclusionsRequest,
1430
+ () => DescribeExclusionsResponse,
1431
+ ];
1432
+ var DescribeFindings = [
1433
+ 9,
1434
+ n0,
1435
+ _DF,
1436
+ 0,
1437
+ () => DescribeFindingsRequest,
1438
+ () => DescribeFindingsResponse,
1439
+ ];
1440
+ var DescribeResourceGroups = [
1441
+ 9,
1442
+ n0,
1443
+ _DRG,
1444
+ 0,
1445
+ () => DescribeResourceGroupsRequest,
1446
+ () => DescribeResourceGroupsResponse,
1447
+ ];
1448
+ var DescribeRulesPackages = [
1449
+ 9,
1450
+ n0,
1451
+ _DRP,
1452
+ 0,
1453
+ () => DescribeRulesPackagesRequest,
1454
+ () => DescribeRulesPackagesResponse,
1455
+ ];
1456
+ var GetAssessmentReport = [
1457
+ 9,
1458
+ n0,
1459
+ _GAR,
1460
+ 0,
1461
+ () => GetAssessmentReportRequest,
1462
+ () => GetAssessmentReportResponse,
1463
+ ];
1464
+ var GetExclusionsPreview = [
1465
+ 9,
1466
+ n0,
1467
+ _GEP,
1468
+ 0,
1469
+ () => GetExclusionsPreviewRequest,
1470
+ () => GetExclusionsPreviewResponse,
1471
+ ];
1472
+ var GetTelemetryMetadata = [
1473
+ 9,
1474
+ n0,
1475
+ _GTM,
1476
+ 0,
1477
+ () => GetTelemetryMetadataRequest,
1478
+ () => GetTelemetryMetadataResponse,
1479
+ ];
1480
+ var ListAssessmentRunAgents = [
1481
+ 9,
1482
+ n0,
1483
+ _LARA,
1484
+ 0,
1485
+ () => ListAssessmentRunAgentsRequest,
1486
+ () => ListAssessmentRunAgentsResponse,
1487
+ ];
1488
+ var ListAssessmentRuns = [
1489
+ 9,
1490
+ n0,
1491
+ _LAR,
1492
+ 0,
1493
+ () => ListAssessmentRunsRequest,
1494
+ () => ListAssessmentRunsResponse,
1495
+ ];
1496
+ var ListAssessmentTargets = [
1497
+ 9,
1498
+ n0,
1499
+ _LAT,
1500
+ 0,
1501
+ () => ListAssessmentTargetsRequest,
1502
+ () => ListAssessmentTargetsResponse,
1503
+ ];
1504
+ var ListAssessmentTemplates = [
1505
+ 9,
1506
+ n0,
1507
+ _LATi,
1508
+ 0,
1509
+ () => ListAssessmentTemplatesRequest,
1510
+ () => ListAssessmentTemplatesResponse,
1511
+ ];
1512
+ var ListEventSubscriptions = [
1513
+ 9,
1514
+ n0,
1515
+ _LES,
1516
+ 0,
1517
+ () => ListEventSubscriptionsRequest,
1518
+ () => ListEventSubscriptionsResponse,
1519
+ ];
1520
+ var ListExclusions = [
1521
+ 9,
1522
+ n0,
1523
+ _LE,
1524
+ 0,
1525
+ () => ListExclusionsRequest,
1526
+ () => ListExclusionsResponse,
1527
+ ];
1528
+ var ListFindings = [9, n0, _LF, 0, () => ListFindingsRequest, () => ListFindingsResponse];
1529
+ var ListRulesPackages = [
1530
+ 9,
1531
+ n0,
1532
+ _LRP,
1533
+ 0,
1534
+ () => ListRulesPackagesRequest,
1535
+ () => ListRulesPackagesResponse,
1536
+ ];
1537
+ var ListTagsForResource = [
1538
+ 9,
1539
+ n0,
1540
+ _LTFR,
1541
+ 0,
1542
+ () => ListTagsForResourceRequest,
1543
+ () => ListTagsForResourceResponse,
1544
+ ];
1545
+ var PreviewAgents = [
1546
+ 9,
1547
+ n0,
1548
+ _PA,
1549
+ 0,
1550
+ () => PreviewAgentsRequest,
1551
+ () => PreviewAgentsResponse,
1552
+ ];
1553
+ var RegisterCrossAccountAccessRole = [
1554
+ 9,
1555
+ n0,
1556
+ _RCAAR,
1557
+ 0,
1558
+ () => RegisterCrossAccountAccessRoleRequest,
1559
+ () => __Unit,
1560
+ ];
1561
+ var RemoveAttributesFromFindings = [
1562
+ 9,
1563
+ n0,
1564
+ _RAFF,
1565
+ 0,
1566
+ () => RemoveAttributesFromFindingsRequest,
1567
+ () => RemoveAttributesFromFindingsResponse,
1568
+ ];
1569
+ var SetTagsForResource = [9, n0, _STFR, 0, () => SetTagsForResourceRequest, () => __Unit];
1570
+ var StartAssessmentRun = [
1571
+ 9,
1572
+ n0,
1573
+ _SAR,
1574
+ 0,
1575
+ () => StartAssessmentRunRequest,
1576
+ () => StartAssessmentRunResponse,
1577
+ ];
1578
+ var StopAssessmentRun = [9, n0, _SARt, 0, () => StopAssessmentRunRequest, () => __Unit];
1579
+ var SubscribeToEvent = [9, n0, _STE, 0, () => SubscribeToEventRequest, () => __Unit];
1580
+ var UnsubscribeFromEvent = [
1581
+ 9,
1582
+ n0,
1583
+ _UFEn,
1584
+ 0,
1585
+ () => UnsubscribeFromEventRequest,
1586
+ () => __Unit,
1587
+ ];
1588
+ var UpdateAssessmentTarget = [
1589
+ 9,
1590
+ n0,
1591
+ _UAT,
1592
+ 0,
1593
+ () => UpdateAssessmentTargetRequest,
1594
+ () => __Unit,
1595
+ ];
1575
1596
 
1576
1597
  class AddAttributesToFindingsCommand extends smithyClient.Command
1577
1598
  .classBuilder()
1578
1599
  .ep(commonParams)
1579
1600
  .m(function (Command, cs, config, o) {
1580
- return [
1581
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1582
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1583
- ];
1601
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1584
1602
  })
1585
1603
  .s("InspectorService", "AddAttributesToFindings", {})
1586
1604
  .n("InspectorClient", "AddAttributesToFindingsCommand")
1587
- .f(void 0, void 0)
1588
- .ser(se_AddAttributesToFindingsCommand)
1589
- .de(de_AddAttributesToFindingsCommand)
1605
+ .sc(AddAttributesToFindings)
1590
1606
  .build() {
1591
1607
  }
1592
1608
 
@@ -1594,16 +1610,11 @@ class CreateAssessmentTargetCommand extends smithyClient.Command
1594
1610
  .classBuilder()
1595
1611
  .ep(commonParams)
1596
1612
  .m(function (Command, cs, config, o) {
1597
- return [
1598
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1599
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1600
- ];
1613
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1601
1614
  })
1602
1615
  .s("InspectorService", "CreateAssessmentTarget", {})
1603
1616
  .n("InspectorClient", "CreateAssessmentTargetCommand")
1604
- .f(void 0, void 0)
1605
- .ser(se_CreateAssessmentTargetCommand)
1606
- .de(de_CreateAssessmentTargetCommand)
1617
+ .sc(CreateAssessmentTarget)
1607
1618
  .build() {
1608
1619
  }
1609
1620
 
@@ -1611,16 +1622,11 @@ class CreateAssessmentTemplateCommand extends smithyClient.Command
1611
1622
  .classBuilder()
1612
1623
  .ep(commonParams)
1613
1624
  .m(function (Command, cs, config, o) {
1614
- return [
1615
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1616
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1617
- ];
1625
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1618
1626
  })
1619
1627
  .s("InspectorService", "CreateAssessmentTemplate", {})
1620
1628
  .n("InspectorClient", "CreateAssessmentTemplateCommand")
1621
- .f(void 0, void 0)
1622
- .ser(se_CreateAssessmentTemplateCommand)
1623
- .de(de_CreateAssessmentTemplateCommand)
1629
+ .sc(CreateAssessmentTemplate)
1624
1630
  .build() {
1625
1631
  }
1626
1632
 
@@ -1628,16 +1634,11 @@ class CreateExclusionsPreviewCommand extends smithyClient.Command
1628
1634
  .classBuilder()
1629
1635
  .ep(commonParams)
1630
1636
  .m(function (Command, cs, config, o) {
1631
- return [
1632
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1633
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1634
- ];
1637
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1635
1638
  })
1636
1639
  .s("InspectorService", "CreateExclusionsPreview", {})
1637
1640
  .n("InspectorClient", "CreateExclusionsPreviewCommand")
1638
- .f(void 0, void 0)
1639
- .ser(se_CreateExclusionsPreviewCommand)
1640
- .de(de_CreateExclusionsPreviewCommand)
1641
+ .sc(CreateExclusionsPreview)
1641
1642
  .build() {
1642
1643
  }
1643
1644
 
@@ -1645,16 +1646,11 @@ class CreateResourceGroupCommand extends smithyClient.Command
1645
1646
  .classBuilder()
1646
1647
  .ep(commonParams)
1647
1648
  .m(function (Command, cs, config, o) {
1648
- return [
1649
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1650
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1651
- ];
1649
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1652
1650
  })
1653
1651
  .s("InspectorService", "CreateResourceGroup", {})
1654
1652
  .n("InspectorClient", "CreateResourceGroupCommand")
1655
- .f(void 0, void 0)
1656
- .ser(se_CreateResourceGroupCommand)
1657
- .de(de_CreateResourceGroupCommand)
1653
+ .sc(CreateResourceGroup)
1658
1654
  .build() {
1659
1655
  }
1660
1656
 
@@ -1662,16 +1658,11 @@ class DeleteAssessmentRunCommand extends smithyClient.Command
1662
1658
  .classBuilder()
1663
1659
  .ep(commonParams)
1664
1660
  .m(function (Command, cs, config, o) {
1665
- return [
1666
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1667
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1668
- ];
1661
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1669
1662
  })
1670
1663
  .s("InspectorService", "DeleteAssessmentRun", {})
1671
1664
  .n("InspectorClient", "DeleteAssessmentRunCommand")
1672
- .f(void 0, void 0)
1673
- .ser(se_DeleteAssessmentRunCommand)
1674
- .de(de_DeleteAssessmentRunCommand)
1665
+ .sc(DeleteAssessmentRun)
1675
1666
  .build() {
1676
1667
  }
1677
1668
 
@@ -1679,16 +1670,11 @@ class DeleteAssessmentTargetCommand extends smithyClient.Command
1679
1670
  .classBuilder()
1680
1671
  .ep(commonParams)
1681
1672
  .m(function (Command, cs, config, o) {
1682
- return [
1683
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1684
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1685
- ];
1673
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1686
1674
  })
1687
1675
  .s("InspectorService", "DeleteAssessmentTarget", {})
1688
1676
  .n("InspectorClient", "DeleteAssessmentTargetCommand")
1689
- .f(void 0, void 0)
1690
- .ser(se_DeleteAssessmentTargetCommand)
1691
- .de(de_DeleteAssessmentTargetCommand)
1677
+ .sc(DeleteAssessmentTarget)
1692
1678
  .build() {
1693
1679
  }
1694
1680
 
@@ -1696,16 +1682,11 @@ class DeleteAssessmentTemplateCommand extends smithyClient.Command
1696
1682
  .classBuilder()
1697
1683
  .ep(commonParams)
1698
1684
  .m(function (Command, cs, config, o) {
1699
- return [
1700
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1701
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1702
- ];
1685
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1703
1686
  })
1704
1687
  .s("InspectorService", "DeleteAssessmentTemplate", {})
1705
1688
  .n("InspectorClient", "DeleteAssessmentTemplateCommand")
1706
- .f(void 0, void 0)
1707
- .ser(se_DeleteAssessmentTemplateCommand)
1708
- .de(de_DeleteAssessmentTemplateCommand)
1689
+ .sc(DeleteAssessmentTemplate)
1709
1690
  .build() {
1710
1691
  }
1711
1692
 
@@ -1713,16 +1694,11 @@ class DescribeAssessmentRunsCommand extends smithyClient.Command
1713
1694
  .classBuilder()
1714
1695
  .ep(commonParams)
1715
1696
  .m(function (Command, cs, config, o) {
1716
- return [
1717
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1718
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1719
- ];
1697
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1720
1698
  })
1721
1699
  .s("InspectorService", "DescribeAssessmentRuns", {})
1722
1700
  .n("InspectorClient", "DescribeAssessmentRunsCommand")
1723
- .f(void 0, void 0)
1724
- .ser(se_DescribeAssessmentRunsCommand)
1725
- .de(de_DescribeAssessmentRunsCommand)
1701
+ .sc(DescribeAssessmentRuns)
1726
1702
  .build() {
1727
1703
  }
1728
1704
 
@@ -1730,16 +1706,11 @@ class DescribeAssessmentTargetsCommand extends smithyClient.Command
1730
1706
  .classBuilder()
1731
1707
  .ep(commonParams)
1732
1708
  .m(function (Command, cs, config, o) {
1733
- return [
1734
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1735
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1736
- ];
1709
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1737
1710
  })
1738
1711
  .s("InspectorService", "DescribeAssessmentTargets", {})
1739
1712
  .n("InspectorClient", "DescribeAssessmentTargetsCommand")
1740
- .f(void 0, void 0)
1741
- .ser(se_DescribeAssessmentTargetsCommand)
1742
- .de(de_DescribeAssessmentTargetsCommand)
1713
+ .sc(DescribeAssessmentTargets)
1743
1714
  .build() {
1744
1715
  }
1745
1716
 
@@ -1747,16 +1718,11 @@ class DescribeAssessmentTemplatesCommand extends smithyClient.Command
1747
1718
  .classBuilder()
1748
1719
  .ep(commonParams)
1749
1720
  .m(function (Command, cs, config, o) {
1750
- return [
1751
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1752
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1753
- ];
1721
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1754
1722
  })
1755
1723
  .s("InspectorService", "DescribeAssessmentTemplates", {})
1756
1724
  .n("InspectorClient", "DescribeAssessmentTemplatesCommand")
1757
- .f(void 0, void 0)
1758
- .ser(se_DescribeAssessmentTemplatesCommand)
1759
- .de(de_DescribeAssessmentTemplatesCommand)
1725
+ .sc(DescribeAssessmentTemplates)
1760
1726
  .build() {
1761
1727
  }
1762
1728
 
@@ -1764,16 +1730,11 @@ class DescribeCrossAccountAccessRoleCommand extends smithyClient.Command
1764
1730
  .classBuilder()
1765
1731
  .ep(commonParams)
1766
1732
  .m(function (Command, cs, config, o) {
1767
- return [
1768
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1769
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1770
- ];
1733
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1771
1734
  })
1772
1735
  .s("InspectorService", "DescribeCrossAccountAccessRole", {})
1773
1736
  .n("InspectorClient", "DescribeCrossAccountAccessRoleCommand")
1774
- .f(void 0, void 0)
1775
- .ser(se_DescribeCrossAccountAccessRoleCommand)
1776
- .de(de_DescribeCrossAccountAccessRoleCommand)
1737
+ .sc(DescribeCrossAccountAccessRole)
1777
1738
  .build() {
1778
1739
  }
1779
1740
 
@@ -1781,16 +1742,11 @@ class DescribeExclusionsCommand extends smithyClient.Command
1781
1742
  .classBuilder()
1782
1743
  .ep(commonParams)
1783
1744
  .m(function (Command, cs, config, o) {
1784
- return [
1785
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1786
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1787
- ];
1745
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1788
1746
  })
1789
1747
  .s("InspectorService", "DescribeExclusions", {})
1790
1748
  .n("InspectorClient", "DescribeExclusionsCommand")
1791
- .f(void 0, void 0)
1792
- .ser(se_DescribeExclusionsCommand)
1793
- .de(de_DescribeExclusionsCommand)
1749
+ .sc(DescribeExclusions)
1794
1750
  .build() {
1795
1751
  }
1796
1752
 
@@ -1798,16 +1754,11 @@ class DescribeFindingsCommand extends smithyClient.Command
1798
1754
  .classBuilder()
1799
1755
  .ep(commonParams)
1800
1756
  .m(function (Command, cs, config, o) {
1801
- return [
1802
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1803
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1804
- ];
1757
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1805
1758
  })
1806
1759
  .s("InspectorService", "DescribeFindings", {})
1807
1760
  .n("InspectorClient", "DescribeFindingsCommand")
1808
- .f(void 0, void 0)
1809
- .ser(se_DescribeFindingsCommand)
1810
- .de(de_DescribeFindingsCommand)
1761
+ .sc(DescribeFindings)
1811
1762
  .build() {
1812
1763
  }
1813
1764
 
@@ -1815,16 +1766,11 @@ class DescribeResourceGroupsCommand extends smithyClient.Command
1815
1766
  .classBuilder()
1816
1767
  .ep(commonParams)
1817
1768
  .m(function (Command, cs, config, o) {
1818
- return [
1819
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1820
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1821
- ];
1769
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1822
1770
  })
1823
1771
  .s("InspectorService", "DescribeResourceGroups", {})
1824
1772
  .n("InspectorClient", "DescribeResourceGroupsCommand")
1825
- .f(void 0, void 0)
1826
- .ser(se_DescribeResourceGroupsCommand)
1827
- .de(de_DescribeResourceGroupsCommand)
1773
+ .sc(DescribeResourceGroups)
1828
1774
  .build() {
1829
1775
  }
1830
1776
 
@@ -1832,16 +1778,11 @@ class DescribeRulesPackagesCommand extends smithyClient.Command
1832
1778
  .classBuilder()
1833
1779
  .ep(commonParams)
1834
1780
  .m(function (Command, cs, config, o) {
1835
- return [
1836
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1837
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1838
- ];
1781
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1839
1782
  })
1840
1783
  .s("InspectorService", "DescribeRulesPackages", {})
1841
1784
  .n("InspectorClient", "DescribeRulesPackagesCommand")
1842
- .f(void 0, void 0)
1843
- .ser(se_DescribeRulesPackagesCommand)
1844
- .de(de_DescribeRulesPackagesCommand)
1785
+ .sc(DescribeRulesPackages)
1845
1786
  .build() {
1846
1787
  }
1847
1788
 
@@ -1849,16 +1790,11 @@ class GetAssessmentReportCommand extends smithyClient.Command
1849
1790
  .classBuilder()
1850
1791
  .ep(commonParams)
1851
1792
  .m(function (Command, cs, config, o) {
1852
- return [
1853
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1854
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1855
- ];
1793
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1856
1794
  })
1857
1795
  .s("InspectorService", "GetAssessmentReport", {})
1858
1796
  .n("InspectorClient", "GetAssessmentReportCommand")
1859
- .f(void 0, void 0)
1860
- .ser(se_GetAssessmentReportCommand)
1861
- .de(de_GetAssessmentReportCommand)
1797
+ .sc(GetAssessmentReport)
1862
1798
  .build() {
1863
1799
  }
1864
1800
 
@@ -1866,16 +1802,11 @@ class GetExclusionsPreviewCommand extends smithyClient.Command
1866
1802
  .classBuilder()
1867
1803
  .ep(commonParams)
1868
1804
  .m(function (Command, cs, config, o) {
1869
- return [
1870
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1871
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1872
- ];
1805
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1873
1806
  })
1874
1807
  .s("InspectorService", "GetExclusionsPreview", {})
1875
1808
  .n("InspectorClient", "GetExclusionsPreviewCommand")
1876
- .f(void 0, void 0)
1877
- .ser(se_GetExclusionsPreviewCommand)
1878
- .de(de_GetExclusionsPreviewCommand)
1809
+ .sc(GetExclusionsPreview)
1879
1810
  .build() {
1880
1811
  }
1881
1812
 
@@ -1883,16 +1814,11 @@ class GetTelemetryMetadataCommand extends smithyClient.Command
1883
1814
  .classBuilder()
1884
1815
  .ep(commonParams)
1885
1816
  .m(function (Command, cs, config, o) {
1886
- return [
1887
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1888
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1889
- ];
1817
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1890
1818
  })
1891
1819
  .s("InspectorService", "GetTelemetryMetadata", {})
1892
1820
  .n("InspectorClient", "GetTelemetryMetadataCommand")
1893
- .f(void 0, void 0)
1894
- .ser(se_GetTelemetryMetadataCommand)
1895
- .de(de_GetTelemetryMetadataCommand)
1821
+ .sc(GetTelemetryMetadata)
1896
1822
  .build() {
1897
1823
  }
1898
1824
 
@@ -1900,16 +1826,11 @@ class ListAssessmentRunAgentsCommand extends smithyClient.Command
1900
1826
  .classBuilder()
1901
1827
  .ep(commonParams)
1902
1828
  .m(function (Command, cs, config, o) {
1903
- return [
1904
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1905
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1906
- ];
1829
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1907
1830
  })
1908
1831
  .s("InspectorService", "ListAssessmentRunAgents", {})
1909
1832
  .n("InspectorClient", "ListAssessmentRunAgentsCommand")
1910
- .f(void 0, void 0)
1911
- .ser(se_ListAssessmentRunAgentsCommand)
1912
- .de(de_ListAssessmentRunAgentsCommand)
1833
+ .sc(ListAssessmentRunAgents)
1913
1834
  .build() {
1914
1835
  }
1915
1836
 
@@ -1917,16 +1838,11 @@ class ListAssessmentRunsCommand extends smithyClient.Command
1917
1838
  .classBuilder()
1918
1839
  .ep(commonParams)
1919
1840
  .m(function (Command, cs, config, o) {
1920
- return [
1921
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1922
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1923
- ];
1841
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1924
1842
  })
1925
1843
  .s("InspectorService", "ListAssessmentRuns", {})
1926
1844
  .n("InspectorClient", "ListAssessmentRunsCommand")
1927
- .f(void 0, void 0)
1928
- .ser(se_ListAssessmentRunsCommand)
1929
- .de(de_ListAssessmentRunsCommand)
1845
+ .sc(ListAssessmentRuns)
1930
1846
  .build() {
1931
1847
  }
1932
1848
 
@@ -1934,16 +1850,11 @@ class ListAssessmentTargetsCommand extends smithyClient.Command
1934
1850
  .classBuilder()
1935
1851
  .ep(commonParams)
1936
1852
  .m(function (Command, cs, config, o) {
1937
- return [
1938
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1939
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1940
- ];
1853
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1941
1854
  })
1942
1855
  .s("InspectorService", "ListAssessmentTargets", {})
1943
1856
  .n("InspectorClient", "ListAssessmentTargetsCommand")
1944
- .f(void 0, void 0)
1945
- .ser(se_ListAssessmentTargetsCommand)
1946
- .de(de_ListAssessmentTargetsCommand)
1857
+ .sc(ListAssessmentTargets)
1947
1858
  .build() {
1948
1859
  }
1949
1860
 
@@ -1951,16 +1862,11 @@ class ListAssessmentTemplatesCommand extends smithyClient.Command
1951
1862
  .classBuilder()
1952
1863
  .ep(commonParams)
1953
1864
  .m(function (Command, cs, config, o) {
1954
- return [
1955
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1956
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1957
- ];
1865
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1958
1866
  })
1959
1867
  .s("InspectorService", "ListAssessmentTemplates", {})
1960
1868
  .n("InspectorClient", "ListAssessmentTemplatesCommand")
1961
- .f(void 0, void 0)
1962
- .ser(se_ListAssessmentTemplatesCommand)
1963
- .de(de_ListAssessmentTemplatesCommand)
1869
+ .sc(ListAssessmentTemplates)
1964
1870
  .build() {
1965
1871
  }
1966
1872
 
@@ -1968,16 +1874,11 @@ class ListEventSubscriptionsCommand extends smithyClient.Command
1968
1874
  .classBuilder()
1969
1875
  .ep(commonParams)
1970
1876
  .m(function (Command, cs, config, o) {
1971
- return [
1972
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1973
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1974
- ];
1877
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1975
1878
  })
1976
1879
  .s("InspectorService", "ListEventSubscriptions", {})
1977
1880
  .n("InspectorClient", "ListEventSubscriptionsCommand")
1978
- .f(void 0, void 0)
1979
- .ser(se_ListEventSubscriptionsCommand)
1980
- .de(de_ListEventSubscriptionsCommand)
1881
+ .sc(ListEventSubscriptions)
1981
1882
  .build() {
1982
1883
  }
1983
1884
 
@@ -1985,16 +1886,11 @@ class ListExclusionsCommand extends smithyClient.Command
1985
1886
  .classBuilder()
1986
1887
  .ep(commonParams)
1987
1888
  .m(function (Command, cs, config, o) {
1988
- return [
1989
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1990
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1991
- ];
1889
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1992
1890
  })
1993
1891
  .s("InspectorService", "ListExclusions", {})
1994
1892
  .n("InspectorClient", "ListExclusionsCommand")
1995
- .f(void 0, void 0)
1996
- .ser(se_ListExclusionsCommand)
1997
- .de(de_ListExclusionsCommand)
1893
+ .sc(ListExclusions)
1998
1894
  .build() {
1999
1895
  }
2000
1896
 
@@ -2002,16 +1898,11 @@ class ListFindingsCommand extends smithyClient.Command
2002
1898
  .classBuilder()
2003
1899
  .ep(commonParams)
2004
1900
  .m(function (Command, cs, config, o) {
2005
- return [
2006
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2007
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2008
- ];
1901
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2009
1902
  })
2010
1903
  .s("InspectorService", "ListFindings", {})
2011
1904
  .n("InspectorClient", "ListFindingsCommand")
2012
- .f(void 0, void 0)
2013
- .ser(se_ListFindingsCommand)
2014
- .de(de_ListFindingsCommand)
1905
+ .sc(ListFindings)
2015
1906
  .build() {
2016
1907
  }
2017
1908
 
@@ -2019,16 +1910,11 @@ class ListRulesPackagesCommand extends smithyClient.Command
2019
1910
  .classBuilder()
2020
1911
  .ep(commonParams)
2021
1912
  .m(function (Command, cs, config, o) {
2022
- return [
2023
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2024
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2025
- ];
1913
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2026
1914
  })
2027
1915
  .s("InspectorService", "ListRulesPackages", {})
2028
1916
  .n("InspectorClient", "ListRulesPackagesCommand")
2029
- .f(void 0, void 0)
2030
- .ser(se_ListRulesPackagesCommand)
2031
- .de(de_ListRulesPackagesCommand)
1917
+ .sc(ListRulesPackages)
2032
1918
  .build() {
2033
1919
  }
2034
1920
 
@@ -2036,16 +1922,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
2036
1922
  .classBuilder()
2037
1923
  .ep(commonParams)
2038
1924
  .m(function (Command, cs, config, o) {
2039
- return [
2040
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2041
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2042
- ];
1925
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2043
1926
  })
2044
1927
  .s("InspectorService", "ListTagsForResource", {})
2045
1928
  .n("InspectorClient", "ListTagsForResourceCommand")
2046
- .f(void 0, void 0)
2047
- .ser(se_ListTagsForResourceCommand)
2048
- .de(de_ListTagsForResourceCommand)
1929
+ .sc(ListTagsForResource)
2049
1930
  .build() {
2050
1931
  }
2051
1932
 
@@ -2053,16 +1934,11 @@ class PreviewAgentsCommand extends smithyClient.Command
2053
1934
  .classBuilder()
2054
1935
  .ep(commonParams)
2055
1936
  .m(function (Command, cs, config, o) {
2056
- return [
2057
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2058
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2059
- ];
1937
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2060
1938
  })
2061
1939
  .s("InspectorService", "PreviewAgents", {})
2062
1940
  .n("InspectorClient", "PreviewAgentsCommand")
2063
- .f(void 0, void 0)
2064
- .ser(se_PreviewAgentsCommand)
2065
- .de(de_PreviewAgentsCommand)
1941
+ .sc(PreviewAgents)
2066
1942
  .build() {
2067
1943
  }
2068
1944
 
@@ -2070,16 +1946,11 @@ class RegisterCrossAccountAccessRoleCommand extends smithyClient.Command
2070
1946
  .classBuilder()
2071
1947
  .ep(commonParams)
2072
1948
  .m(function (Command, cs, config, o) {
2073
- return [
2074
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2075
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2076
- ];
1949
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2077
1950
  })
2078
1951
  .s("InspectorService", "RegisterCrossAccountAccessRole", {})
2079
1952
  .n("InspectorClient", "RegisterCrossAccountAccessRoleCommand")
2080
- .f(void 0, void 0)
2081
- .ser(se_RegisterCrossAccountAccessRoleCommand)
2082
- .de(de_RegisterCrossAccountAccessRoleCommand)
1953
+ .sc(RegisterCrossAccountAccessRole)
2083
1954
  .build() {
2084
1955
  }
2085
1956
 
@@ -2087,16 +1958,11 @@ class RemoveAttributesFromFindingsCommand extends smithyClient.Command
2087
1958
  .classBuilder()
2088
1959
  .ep(commonParams)
2089
1960
  .m(function (Command, cs, config, o) {
2090
- return [
2091
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2092
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2093
- ];
1961
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2094
1962
  })
2095
1963
  .s("InspectorService", "RemoveAttributesFromFindings", {})
2096
1964
  .n("InspectorClient", "RemoveAttributesFromFindingsCommand")
2097
- .f(void 0, void 0)
2098
- .ser(se_RemoveAttributesFromFindingsCommand)
2099
- .de(de_RemoveAttributesFromFindingsCommand)
1965
+ .sc(RemoveAttributesFromFindings)
2100
1966
  .build() {
2101
1967
  }
2102
1968
 
@@ -2104,16 +1970,11 @@ class SetTagsForResourceCommand extends smithyClient.Command
2104
1970
  .classBuilder()
2105
1971
  .ep(commonParams)
2106
1972
  .m(function (Command, cs, config, o) {
2107
- return [
2108
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2109
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2110
- ];
1973
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2111
1974
  })
2112
1975
  .s("InspectorService", "SetTagsForResource", {})
2113
1976
  .n("InspectorClient", "SetTagsForResourceCommand")
2114
- .f(void 0, void 0)
2115
- .ser(se_SetTagsForResourceCommand)
2116
- .de(de_SetTagsForResourceCommand)
1977
+ .sc(SetTagsForResource)
2117
1978
  .build() {
2118
1979
  }
2119
1980
 
@@ -2121,16 +1982,11 @@ class StartAssessmentRunCommand extends smithyClient.Command
2121
1982
  .classBuilder()
2122
1983
  .ep(commonParams)
2123
1984
  .m(function (Command, cs, config, o) {
2124
- return [
2125
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2126
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2127
- ];
1985
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2128
1986
  })
2129
1987
  .s("InspectorService", "StartAssessmentRun", {})
2130
1988
  .n("InspectorClient", "StartAssessmentRunCommand")
2131
- .f(void 0, void 0)
2132
- .ser(se_StartAssessmentRunCommand)
2133
- .de(de_StartAssessmentRunCommand)
1989
+ .sc(StartAssessmentRun)
2134
1990
  .build() {
2135
1991
  }
2136
1992
 
@@ -2138,16 +1994,11 @@ class StopAssessmentRunCommand extends smithyClient.Command
2138
1994
  .classBuilder()
2139
1995
  .ep(commonParams)
2140
1996
  .m(function (Command, cs, config, o) {
2141
- return [
2142
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2143
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2144
- ];
1997
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2145
1998
  })
2146
1999
  .s("InspectorService", "StopAssessmentRun", {})
2147
2000
  .n("InspectorClient", "StopAssessmentRunCommand")
2148
- .f(void 0, void 0)
2149
- .ser(se_StopAssessmentRunCommand)
2150
- .de(de_StopAssessmentRunCommand)
2001
+ .sc(StopAssessmentRun)
2151
2002
  .build() {
2152
2003
  }
2153
2004
 
@@ -2155,16 +2006,11 @@ class SubscribeToEventCommand extends smithyClient.Command
2155
2006
  .classBuilder()
2156
2007
  .ep(commonParams)
2157
2008
  .m(function (Command, cs, config, o) {
2158
- return [
2159
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2160
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2161
- ];
2009
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2162
2010
  })
2163
2011
  .s("InspectorService", "SubscribeToEvent", {})
2164
2012
  .n("InspectorClient", "SubscribeToEventCommand")
2165
- .f(void 0, void 0)
2166
- .ser(se_SubscribeToEventCommand)
2167
- .de(de_SubscribeToEventCommand)
2013
+ .sc(SubscribeToEvent)
2168
2014
  .build() {
2169
2015
  }
2170
2016
 
@@ -2172,16 +2018,11 @@ class UnsubscribeFromEventCommand extends smithyClient.Command
2172
2018
  .classBuilder()
2173
2019
  .ep(commonParams)
2174
2020
  .m(function (Command, cs, config, o) {
2175
- return [
2176
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2177
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2178
- ];
2021
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2179
2022
  })
2180
2023
  .s("InspectorService", "UnsubscribeFromEvent", {})
2181
2024
  .n("InspectorClient", "UnsubscribeFromEventCommand")
2182
- .f(void 0, void 0)
2183
- .ser(se_UnsubscribeFromEventCommand)
2184
- .de(de_UnsubscribeFromEventCommand)
2025
+ .sc(UnsubscribeFromEvent)
2185
2026
  .build() {
2186
2027
  }
2187
2028
 
@@ -2189,16 +2030,11 @@ class UpdateAssessmentTargetCommand extends smithyClient.Command
2189
2030
  .classBuilder()
2190
2031
  .ep(commonParams)
2191
2032
  .m(function (Command, cs, config, o) {
2192
- return [
2193
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2194
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2195
- ];
2033
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2196
2034
  })
2197
2035
  .s("InspectorService", "UpdateAssessmentTarget", {})
2198
2036
  .n("InspectorClient", "UpdateAssessmentTargetCommand")
2199
- .f(void 0, void 0)
2200
- .ser(se_UpdateAssessmentTargetCommand)
2201
- .de(de_UpdateAssessmentTargetCommand)
2037
+ .sc(UpdateAssessmentTarget)
2202
2038
  .build() {
2203
2039
  }
2204
2040
 
@@ -2274,12 +2110,12 @@ Object.defineProperty(exports, "__Client", {
2274
2110
  get: function () { return smithyClient.Client; }
2275
2111
  });
2276
2112
  exports.AccessDeniedErrorCode = AccessDeniedErrorCode;
2277
- exports.AccessDeniedException = AccessDeniedException;
2113
+ exports.AccessDeniedException = AccessDeniedException$1;
2278
2114
  exports.AddAttributesToFindingsCommand = AddAttributesToFindingsCommand;
2279
2115
  exports.AgentHealth = AgentHealth;
2280
2116
  exports.AgentHealthCode = AgentHealthCode;
2281
- exports.AgentsAlreadyRunningAssessmentException = AgentsAlreadyRunningAssessmentException;
2282
- exports.AssessmentRunInProgressException = AssessmentRunInProgressException;
2117
+ exports.AgentsAlreadyRunningAssessmentException = AgentsAlreadyRunningAssessmentException$1;
2118
+ exports.AssessmentRunInProgressException = AssessmentRunInProgressException$1;
2283
2119
  exports.AssessmentRunNotificationSnsStatusCode = AssessmentRunNotificationSnsStatusCode;
2284
2120
  exports.AssessmentRunState = AssessmentRunState;
2285
2121
  exports.AssetType = AssetType;
@@ -2305,14 +2141,14 @@ exports.GetTelemetryMetadataCommand = GetTelemetryMetadataCommand;
2305
2141
  exports.Inspector = Inspector;
2306
2142
  exports.InspectorClient = InspectorClient;
2307
2143
  exports.InspectorEvent = InspectorEvent;
2308
- exports.InspectorServiceException = InspectorServiceException;
2309
- exports.InternalException = InternalException;
2144
+ exports.InspectorServiceException = InspectorServiceException$1;
2145
+ exports.InternalException = InternalException$1;
2310
2146
  exports.InvalidCrossAccountRoleErrorCode = InvalidCrossAccountRoleErrorCode;
2311
- exports.InvalidCrossAccountRoleException = InvalidCrossAccountRoleException;
2147
+ exports.InvalidCrossAccountRoleException = InvalidCrossAccountRoleException$1;
2312
2148
  exports.InvalidInputErrorCode = InvalidInputErrorCode;
2313
- exports.InvalidInputException = InvalidInputException;
2149
+ exports.InvalidInputException = InvalidInputException$1;
2314
2150
  exports.LimitExceededErrorCode = LimitExceededErrorCode;
2315
- exports.LimitExceededException = LimitExceededException;
2151
+ exports.LimitExceededException = LimitExceededException$1;
2316
2152
  exports.ListAssessmentRunAgentsCommand = ListAssessmentRunAgentsCommand;
2317
2153
  exports.ListAssessmentRunsCommand = ListAssessmentRunsCommand;
2318
2154
  exports.ListAssessmentTargetsCommand = ListAssessmentTargetsCommand;
@@ -2324,9 +2160,9 @@ exports.ListRulesPackagesCommand = ListRulesPackagesCommand;
2324
2160
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2325
2161
  exports.Locale = Locale;
2326
2162
  exports.NoSuchEntityErrorCode = NoSuchEntityErrorCode;
2327
- exports.NoSuchEntityException = NoSuchEntityException;
2163
+ exports.NoSuchEntityException = NoSuchEntityException$1;
2328
2164
  exports.PreviewAgentsCommand = PreviewAgentsCommand;
2329
- exports.PreviewGenerationInProgressException = PreviewGenerationInProgressException;
2165
+ exports.PreviewGenerationInProgressException = PreviewGenerationInProgressException$1;
2330
2166
  exports.PreviewStatus = PreviewStatus;
2331
2167
  exports.RegisterCrossAccountAccessRoleCommand = RegisterCrossAccountAccessRoleCommand;
2332
2168
  exports.RemoveAttributesFromFindingsCommand = RemoveAttributesFromFindingsCommand;
@@ -2334,7 +2170,7 @@ exports.ReportFileFormat = ReportFileFormat;
2334
2170
  exports.ReportStatus = ReportStatus;
2335
2171
  exports.ReportType = ReportType;
2336
2172
  exports.ScopeType = ScopeType;
2337
- exports.ServiceTemporarilyUnavailableException = ServiceTemporarilyUnavailableException;
2173
+ exports.ServiceTemporarilyUnavailableException = ServiceTemporarilyUnavailableException$1;
2338
2174
  exports.SetTagsForResourceCommand = SetTagsForResourceCommand;
2339
2175
  exports.Severity = Severity;
2340
2176
  exports.StartAssessmentRunCommand = StartAssessmentRunCommand;
@@ -2342,7 +2178,7 @@ exports.StopAction = StopAction;
2342
2178
  exports.StopAssessmentRunCommand = StopAssessmentRunCommand;
2343
2179
  exports.SubscribeToEventCommand = SubscribeToEventCommand;
2344
2180
  exports.UnsubscribeFromEventCommand = UnsubscribeFromEventCommand;
2345
- exports.UnsupportedFeatureException = UnsupportedFeatureException;
2181
+ exports.UnsupportedFeatureException = UnsupportedFeatureException$1;
2346
2182
  exports.UpdateAssessmentTargetCommand = UpdateAssessmentTargetCommand;
2347
2183
  exports.paginateGetExclusionsPreview = paginateGetExclusionsPreview;
2348
2184
  exports.paginateListAssessmentRunAgents = paginateListAssessmentRunAgents;