@aws-sdk/client-inspector 3.1076.0 → 3.1078.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 (131) hide show
  1. package/dist-cjs/index.js +48 -375
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AddAttributesToFindingsCommand.js +2 -14
  4. package/dist-es/commands/CreateAssessmentTargetCommand.js +2 -14
  5. package/dist-es/commands/CreateAssessmentTemplateCommand.js +2 -14
  6. package/dist-es/commands/CreateExclusionsPreviewCommand.js +2 -14
  7. package/dist-es/commands/CreateResourceGroupCommand.js +2 -14
  8. package/dist-es/commands/DeleteAssessmentRunCommand.js +2 -14
  9. package/dist-es/commands/DeleteAssessmentTargetCommand.js +2 -14
  10. package/dist-es/commands/DeleteAssessmentTemplateCommand.js +2 -14
  11. package/dist-es/commands/DescribeAssessmentRunsCommand.js +2 -14
  12. package/dist-es/commands/DescribeAssessmentTargetsCommand.js +2 -14
  13. package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +2 -14
  14. package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +2 -14
  15. package/dist-es/commands/DescribeExclusionsCommand.js +2 -14
  16. package/dist-es/commands/DescribeFindingsCommand.js +2 -14
  17. package/dist-es/commands/DescribeResourceGroupsCommand.js +2 -14
  18. package/dist-es/commands/DescribeRulesPackagesCommand.js +2 -14
  19. package/dist-es/commands/GetAssessmentReportCommand.js +2 -14
  20. package/dist-es/commands/GetExclusionsPreviewCommand.js +2 -14
  21. package/dist-es/commands/GetTelemetryMetadataCommand.js +2 -14
  22. package/dist-es/commands/ListAssessmentRunAgentsCommand.js +2 -14
  23. package/dist-es/commands/ListAssessmentRunsCommand.js +2 -14
  24. package/dist-es/commands/ListAssessmentTargetsCommand.js +2 -14
  25. package/dist-es/commands/ListAssessmentTemplatesCommand.js +2 -14
  26. package/dist-es/commands/ListEventSubscriptionsCommand.js +2 -14
  27. package/dist-es/commands/ListExclusionsCommand.js +2 -14
  28. package/dist-es/commands/ListFindingsCommand.js +2 -14
  29. package/dist-es/commands/ListRulesPackagesCommand.js +2 -14
  30. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  31. package/dist-es/commands/PreviewAgentsCommand.js +2 -14
  32. package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +2 -14
  33. package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +2 -14
  34. package/dist-es/commands/SetTagsForResourceCommand.js +2 -14
  35. package/dist-es/commands/StartAssessmentRunCommand.js +2 -14
  36. package/dist-es/commands/StopAssessmentRunCommand.js +2 -14
  37. package/dist-es/commands/SubscribeToEventCommand.js +2 -14
  38. package/dist-es/commands/UnsubscribeFromEventCommand.js +2 -14
  39. package/dist-es/commands/UpdateAssessmentTargetCommand.js +2 -14
  40. package/dist-es/index.js +1 -0
  41. package/dist-es/runtimeConfig.browser.js +0 -2
  42. package/dist-es/runtimeConfig.js +1 -2
  43. package/dist-es/runtimeConfig.native.js +0 -2
  44. package/dist-es/runtimeConfig.shared.js +2 -0
  45. package/dist-types/commandBuilder.d.ts +18 -0
  46. package/dist-types/commands/AddAttributesToFindingsCommand.d.ts +3 -8
  47. package/dist-types/commands/CreateAssessmentTargetCommand.d.ts +3 -8
  48. package/dist-types/commands/CreateAssessmentTemplateCommand.d.ts +3 -8
  49. package/dist-types/commands/CreateExclusionsPreviewCommand.d.ts +3 -8
  50. package/dist-types/commands/CreateResourceGroupCommand.d.ts +3 -8
  51. package/dist-types/commands/DeleteAssessmentRunCommand.d.ts +3 -8
  52. package/dist-types/commands/DeleteAssessmentTargetCommand.d.ts +3 -8
  53. package/dist-types/commands/DeleteAssessmentTemplateCommand.d.ts +3 -8
  54. package/dist-types/commands/DescribeAssessmentRunsCommand.d.ts +3 -8
  55. package/dist-types/commands/DescribeAssessmentTargetsCommand.d.ts +3 -8
  56. package/dist-types/commands/DescribeAssessmentTemplatesCommand.d.ts +3 -8
  57. package/dist-types/commands/DescribeCrossAccountAccessRoleCommand.d.ts +3 -8
  58. package/dist-types/commands/DescribeExclusionsCommand.d.ts +3 -8
  59. package/dist-types/commands/DescribeFindingsCommand.d.ts +3 -8
  60. package/dist-types/commands/DescribeResourceGroupsCommand.d.ts +3 -8
  61. package/dist-types/commands/DescribeRulesPackagesCommand.d.ts +3 -8
  62. package/dist-types/commands/GetAssessmentReportCommand.d.ts +3 -8
  63. package/dist-types/commands/GetExclusionsPreviewCommand.d.ts +3 -8
  64. package/dist-types/commands/GetTelemetryMetadataCommand.d.ts +3 -8
  65. package/dist-types/commands/ListAssessmentRunAgentsCommand.d.ts +3 -8
  66. package/dist-types/commands/ListAssessmentRunsCommand.d.ts +3 -8
  67. package/dist-types/commands/ListAssessmentTargetsCommand.d.ts +3 -8
  68. package/dist-types/commands/ListAssessmentTemplatesCommand.d.ts +3 -8
  69. package/dist-types/commands/ListEventSubscriptionsCommand.d.ts +3 -8
  70. package/dist-types/commands/ListExclusionsCommand.d.ts +3 -8
  71. package/dist-types/commands/ListFindingsCommand.d.ts +3 -8
  72. package/dist-types/commands/ListRulesPackagesCommand.d.ts +3 -8
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  74. package/dist-types/commands/PreviewAgentsCommand.d.ts +3 -8
  75. package/dist-types/commands/RegisterCrossAccountAccessRoleCommand.d.ts +3 -8
  76. package/dist-types/commands/RemoveAttributesFromFindingsCommand.d.ts +3 -8
  77. package/dist-types/commands/SetTagsForResourceCommand.d.ts +3 -8
  78. package/dist-types/commands/StartAssessmentRunCommand.d.ts +3 -8
  79. package/dist-types/commands/StopAssessmentRunCommand.d.ts +3 -8
  80. package/dist-types/commands/SubscribeToEventCommand.d.ts +3 -8
  81. package/dist-types/commands/UnsubscribeFromEventCommand.d.ts +3 -8
  82. package/dist-types/commands/UpdateAssessmentTargetCommand.d.ts +3 -8
  83. package/dist-types/index.d.ts +1 -0
  84. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  85. package/dist-types/runtimeConfig.d.ts +1 -1
  86. package/dist-types/runtimeConfig.native.d.ts +1 -1
  87. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  89. package/dist-types/ts3.4/commands/AddAttributesToFindingsCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/CreateAssessmentTargetCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/CreateAssessmentTemplateCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/CreateExclusionsPreviewCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/CreateResourceGroupCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/DeleteAssessmentRunCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/DeleteAssessmentTargetCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/DeleteAssessmentTemplateCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/DescribeAssessmentRunsCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/DescribeAssessmentTargetsCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/DescribeAssessmentTemplatesCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/DescribeCrossAccountAccessRoleCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/DescribeExclusionsCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/DescribeFindingsCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/DescribeResourceGroupsCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/DescribeRulesPackagesCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/GetAssessmentReportCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/GetExclusionsPreviewCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/GetTelemetryMetadataCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/ListAssessmentRunAgentsCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/ListAssessmentRunsCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/ListAssessmentTargetsCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/ListAssessmentTemplatesCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/ListEventSubscriptionsCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/ListExclusionsCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/ListRulesPackagesCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/PreviewAgentsCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/RegisterCrossAccountAccessRoleCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/RemoveAttributesFromFindingsCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/SetTagsForResourceCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/StartAssessmentRunCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/StopAssessmentRunCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/SubscribeToEventCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/commands/UnsubscribeFromEventCommand.d.ts +7 -16
  125. package/dist-types/ts3.4/commands/UpdateAssessmentTargetCommand.d.ts +7 -16
  126. package/dist-types/ts3.4/index.d.ts +1 -0
  127. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  128. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  129. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  130. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  131. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultInspectorHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1403,6 +1405,7 @@ const getRuntimeConfig$1 = (config) => {
1403
1405
  serviceTarget: "InspectorService",
1404
1406
  },
1405
1407
  serviceId: config?.serviceId ?? "Inspector",
1408
+ sha256: config?.sha256 ?? Sha256,
1406
1409
  urlParser: config?.urlParser ?? parseUrl,
1407
1410
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1408
1411
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1436,7 +1439,6 @@ const getRuntimeConfig = (config) => {
1436
1439
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1437
1440
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1438
1441
  }, config),
1439
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1440
1442
  streamCollector: config?.streamCollector ?? streamCollector,
1441
1443
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1442
1444
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1524,448 +1526,119 @@ class InspectorClient extends Client {
1524
1526
  }
1525
1527
  }
1526
1528
 
1527
- class AddAttributesToFindingsCommand extends Command
1528
- .classBuilder()
1529
- .ep(commonParams)
1530
- .m(function (Command, cs, config, o) {
1531
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1532
- })
1533
- .s("InspectorService", "AddAttributesToFindings", {})
1534
- .n("InspectorClient", "AddAttributesToFindingsCommand")
1535
- .sc(AddAttributesToFindings$)
1536
- .build() {
1529
+ const command = makeBuilder(commonParams, "InspectorService", "InspectorClient", getEndpointPlugin);
1530
+ const _ep0 = {};
1531
+ const _mw0 = (Command, cs, config, o) => [];
1532
+
1533
+ class AddAttributesToFindingsCommand extends command(_ep0, _mw0, "AddAttributesToFindings", AddAttributesToFindings$) {
1537
1534
  }
1538
1535
 
1539
- class CreateAssessmentTargetCommand extends Command
1540
- .classBuilder()
1541
- .ep(commonParams)
1542
- .m(function (Command, cs, config, o) {
1543
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1544
- })
1545
- .s("InspectorService", "CreateAssessmentTarget", {})
1546
- .n("InspectorClient", "CreateAssessmentTargetCommand")
1547
- .sc(CreateAssessmentTarget$)
1548
- .build() {
1536
+ class CreateAssessmentTargetCommand extends command(_ep0, _mw0, "CreateAssessmentTarget", CreateAssessmentTarget$) {
1549
1537
  }
1550
1538
 
1551
- class CreateAssessmentTemplateCommand extends Command
1552
- .classBuilder()
1553
- .ep(commonParams)
1554
- .m(function (Command, cs, config, o) {
1555
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1556
- })
1557
- .s("InspectorService", "CreateAssessmentTemplate", {})
1558
- .n("InspectorClient", "CreateAssessmentTemplateCommand")
1559
- .sc(CreateAssessmentTemplate$)
1560
- .build() {
1539
+ class CreateAssessmentTemplateCommand extends command(_ep0, _mw0, "CreateAssessmentTemplate", CreateAssessmentTemplate$) {
1561
1540
  }
1562
1541
 
1563
- class CreateExclusionsPreviewCommand extends Command
1564
- .classBuilder()
1565
- .ep(commonParams)
1566
- .m(function (Command, cs, config, o) {
1567
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1568
- })
1569
- .s("InspectorService", "CreateExclusionsPreview", {})
1570
- .n("InspectorClient", "CreateExclusionsPreviewCommand")
1571
- .sc(CreateExclusionsPreview$)
1572
- .build() {
1542
+ class CreateExclusionsPreviewCommand extends command(_ep0, _mw0, "CreateExclusionsPreview", CreateExclusionsPreview$) {
1573
1543
  }
1574
1544
 
1575
- class CreateResourceGroupCommand extends Command
1576
- .classBuilder()
1577
- .ep(commonParams)
1578
- .m(function (Command, cs, config, o) {
1579
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1580
- })
1581
- .s("InspectorService", "CreateResourceGroup", {})
1582
- .n("InspectorClient", "CreateResourceGroupCommand")
1583
- .sc(CreateResourceGroup$)
1584
- .build() {
1545
+ class CreateResourceGroupCommand extends command(_ep0, _mw0, "CreateResourceGroup", CreateResourceGroup$) {
1585
1546
  }
1586
1547
 
1587
- class DeleteAssessmentRunCommand extends Command
1588
- .classBuilder()
1589
- .ep(commonParams)
1590
- .m(function (Command, cs, config, o) {
1591
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1592
- })
1593
- .s("InspectorService", "DeleteAssessmentRun", {})
1594
- .n("InspectorClient", "DeleteAssessmentRunCommand")
1595
- .sc(DeleteAssessmentRun$)
1596
- .build() {
1548
+ class DeleteAssessmentRunCommand extends command(_ep0, _mw0, "DeleteAssessmentRun", DeleteAssessmentRun$) {
1597
1549
  }
1598
1550
 
1599
- class DeleteAssessmentTargetCommand extends Command
1600
- .classBuilder()
1601
- .ep(commonParams)
1602
- .m(function (Command, cs, config, o) {
1603
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1604
- })
1605
- .s("InspectorService", "DeleteAssessmentTarget", {})
1606
- .n("InspectorClient", "DeleteAssessmentTargetCommand")
1607
- .sc(DeleteAssessmentTarget$)
1608
- .build() {
1551
+ class DeleteAssessmentTargetCommand extends command(_ep0, _mw0, "DeleteAssessmentTarget", DeleteAssessmentTarget$) {
1609
1552
  }
1610
1553
 
1611
- class DeleteAssessmentTemplateCommand extends Command
1612
- .classBuilder()
1613
- .ep(commonParams)
1614
- .m(function (Command, cs, config, o) {
1615
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1616
- })
1617
- .s("InspectorService", "DeleteAssessmentTemplate", {})
1618
- .n("InspectorClient", "DeleteAssessmentTemplateCommand")
1619
- .sc(DeleteAssessmentTemplate$)
1620
- .build() {
1554
+ class DeleteAssessmentTemplateCommand extends command(_ep0, _mw0, "DeleteAssessmentTemplate", DeleteAssessmentTemplate$) {
1621
1555
  }
1622
1556
 
1623
- class DescribeAssessmentRunsCommand extends Command
1624
- .classBuilder()
1625
- .ep(commonParams)
1626
- .m(function (Command, cs, config, o) {
1627
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1628
- })
1629
- .s("InspectorService", "DescribeAssessmentRuns", {})
1630
- .n("InspectorClient", "DescribeAssessmentRunsCommand")
1631
- .sc(DescribeAssessmentRuns$)
1632
- .build() {
1557
+ class DescribeAssessmentRunsCommand extends command(_ep0, _mw0, "DescribeAssessmentRuns", DescribeAssessmentRuns$) {
1633
1558
  }
1634
1559
 
1635
- class DescribeAssessmentTargetsCommand extends Command
1636
- .classBuilder()
1637
- .ep(commonParams)
1638
- .m(function (Command, cs, config, o) {
1639
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1640
- })
1641
- .s("InspectorService", "DescribeAssessmentTargets", {})
1642
- .n("InspectorClient", "DescribeAssessmentTargetsCommand")
1643
- .sc(DescribeAssessmentTargets$)
1644
- .build() {
1560
+ class DescribeAssessmentTargetsCommand extends command(_ep0, _mw0, "DescribeAssessmentTargets", DescribeAssessmentTargets$) {
1645
1561
  }
1646
1562
 
1647
- class DescribeAssessmentTemplatesCommand extends Command
1648
- .classBuilder()
1649
- .ep(commonParams)
1650
- .m(function (Command, cs, config, o) {
1651
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1652
- })
1653
- .s("InspectorService", "DescribeAssessmentTemplates", {})
1654
- .n("InspectorClient", "DescribeAssessmentTemplatesCommand")
1655
- .sc(DescribeAssessmentTemplates$)
1656
- .build() {
1563
+ class DescribeAssessmentTemplatesCommand extends command(_ep0, _mw0, "DescribeAssessmentTemplates", DescribeAssessmentTemplates$) {
1657
1564
  }
1658
1565
 
1659
- class DescribeCrossAccountAccessRoleCommand extends Command
1660
- .classBuilder()
1661
- .ep(commonParams)
1662
- .m(function (Command, cs, config, o) {
1663
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1664
- })
1665
- .s("InspectorService", "DescribeCrossAccountAccessRole", {})
1666
- .n("InspectorClient", "DescribeCrossAccountAccessRoleCommand")
1667
- .sc(DescribeCrossAccountAccessRole$)
1668
- .build() {
1566
+ class DescribeCrossAccountAccessRoleCommand extends command(_ep0, _mw0, "DescribeCrossAccountAccessRole", DescribeCrossAccountAccessRole$) {
1669
1567
  }
1670
1568
 
1671
- class DescribeExclusionsCommand extends Command
1672
- .classBuilder()
1673
- .ep(commonParams)
1674
- .m(function (Command, cs, config, o) {
1675
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1676
- })
1677
- .s("InspectorService", "DescribeExclusions", {})
1678
- .n("InspectorClient", "DescribeExclusionsCommand")
1679
- .sc(DescribeExclusions$)
1680
- .build() {
1569
+ class DescribeExclusionsCommand extends command(_ep0, _mw0, "DescribeExclusions", DescribeExclusions$) {
1681
1570
  }
1682
1571
 
1683
- class DescribeFindingsCommand extends Command
1684
- .classBuilder()
1685
- .ep(commonParams)
1686
- .m(function (Command, cs, config, o) {
1687
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1688
- })
1689
- .s("InspectorService", "DescribeFindings", {})
1690
- .n("InspectorClient", "DescribeFindingsCommand")
1691
- .sc(DescribeFindings$)
1692
- .build() {
1572
+ class DescribeFindingsCommand extends command(_ep0, _mw0, "DescribeFindings", DescribeFindings$) {
1693
1573
  }
1694
1574
 
1695
- class DescribeResourceGroupsCommand extends Command
1696
- .classBuilder()
1697
- .ep(commonParams)
1698
- .m(function (Command, cs, config, o) {
1699
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1700
- })
1701
- .s("InspectorService", "DescribeResourceGroups", {})
1702
- .n("InspectorClient", "DescribeResourceGroupsCommand")
1703
- .sc(DescribeResourceGroups$)
1704
- .build() {
1575
+ class DescribeResourceGroupsCommand extends command(_ep0, _mw0, "DescribeResourceGroups", DescribeResourceGroups$) {
1705
1576
  }
1706
1577
 
1707
- class DescribeRulesPackagesCommand extends Command
1708
- .classBuilder()
1709
- .ep(commonParams)
1710
- .m(function (Command, cs, config, o) {
1711
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1712
- })
1713
- .s("InspectorService", "DescribeRulesPackages", {})
1714
- .n("InspectorClient", "DescribeRulesPackagesCommand")
1715
- .sc(DescribeRulesPackages$)
1716
- .build() {
1578
+ class DescribeRulesPackagesCommand extends command(_ep0, _mw0, "DescribeRulesPackages", DescribeRulesPackages$) {
1717
1579
  }
1718
1580
 
1719
- class GetAssessmentReportCommand extends Command
1720
- .classBuilder()
1721
- .ep(commonParams)
1722
- .m(function (Command, cs, config, o) {
1723
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1724
- })
1725
- .s("InspectorService", "GetAssessmentReport", {})
1726
- .n("InspectorClient", "GetAssessmentReportCommand")
1727
- .sc(GetAssessmentReport$)
1728
- .build() {
1581
+ class GetAssessmentReportCommand extends command(_ep0, _mw0, "GetAssessmentReport", GetAssessmentReport$) {
1729
1582
  }
1730
1583
 
1731
- class GetExclusionsPreviewCommand extends Command
1732
- .classBuilder()
1733
- .ep(commonParams)
1734
- .m(function (Command, cs, config, o) {
1735
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1736
- })
1737
- .s("InspectorService", "GetExclusionsPreview", {})
1738
- .n("InspectorClient", "GetExclusionsPreviewCommand")
1739
- .sc(GetExclusionsPreview$)
1740
- .build() {
1584
+ class GetExclusionsPreviewCommand extends command(_ep0, _mw0, "GetExclusionsPreview", GetExclusionsPreview$) {
1741
1585
  }
1742
1586
 
1743
- class GetTelemetryMetadataCommand extends Command
1744
- .classBuilder()
1745
- .ep(commonParams)
1746
- .m(function (Command, cs, config, o) {
1747
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1748
- })
1749
- .s("InspectorService", "GetTelemetryMetadata", {})
1750
- .n("InspectorClient", "GetTelemetryMetadataCommand")
1751
- .sc(GetTelemetryMetadata$)
1752
- .build() {
1587
+ class GetTelemetryMetadataCommand extends command(_ep0, _mw0, "GetTelemetryMetadata", GetTelemetryMetadata$) {
1753
1588
  }
1754
1589
 
1755
- class ListAssessmentRunAgentsCommand extends Command
1756
- .classBuilder()
1757
- .ep(commonParams)
1758
- .m(function (Command, cs, config, o) {
1759
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1760
- })
1761
- .s("InspectorService", "ListAssessmentRunAgents", {})
1762
- .n("InspectorClient", "ListAssessmentRunAgentsCommand")
1763
- .sc(ListAssessmentRunAgents$)
1764
- .build() {
1590
+ class ListAssessmentRunAgentsCommand extends command(_ep0, _mw0, "ListAssessmentRunAgents", ListAssessmentRunAgents$) {
1765
1591
  }
1766
1592
 
1767
- class ListAssessmentRunsCommand extends Command
1768
- .classBuilder()
1769
- .ep(commonParams)
1770
- .m(function (Command, cs, config, o) {
1771
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1772
- })
1773
- .s("InspectorService", "ListAssessmentRuns", {})
1774
- .n("InspectorClient", "ListAssessmentRunsCommand")
1775
- .sc(ListAssessmentRuns$)
1776
- .build() {
1593
+ class ListAssessmentRunsCommand extends command(_ep0, _mw0, "ListAssessmentRuns", ListAssessmentRuns$) {
1777
1594
  }
1778
1595
 
1779
- class ListAssessmentTargetsCommand extends Command
1780
- .classBuilder()
1781
- .ep(commonParams)
1782
- .m(function (Command, cs, config, o) {
1783
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1784
- })
1785
- .s("InspectorService", "ListAssessmentTargets", {})
1786
- .n("InspectorClient", "ListAssessmentTargetsCommand")
1787
- .sc(ListAssessmentTargets$)
1788
- .build() {
1596
+ class ListAssessmentTargetsCommand extends command(_ep0, _mw0, "ListAssessmentTargets", ListAssessmentTargets$) {
1789
1597
  }
1790
1598
 
1791
- class ListAssessmentTemplatesCommand extends Command
1792
- .classBuilder()
1793
- .ep(commonParams)
1794
- .m(function (Command, cs, config, o) {
1795
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1796
- })
1797
- .s("InspectorService", "ListAssessmentTemplates", {})
1798
- .n("InspectorClient", "ListAssessmentTemplatesCommand")
1799
- .sc(ListAssessmentTemplates$)
1800
- .build() {
1599
+ class ListAssessmentTemplatesCommand extends command(_ep0, _mw0, "ListAssessmentTemplates", ListAssessmentTemplates$) {
1801
1600
  }
1802
1601
 
1803
- class ListEventSubscriptionsCommand extends Command
1804
- .classBuilder()
1805
- .ep(commonParams)
1806
- .m(function (Command, cs, config, o) {
1807
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1808
- })
1809
- .s("InspectorService", "ListEventSubscriptions", {})
1810
- .n("InspectorClient", "ListEventSubscriptionsCommand")
1811
- .sc(ListEventSubscriptions$)
1812
- .build() {
1602
+ class ListEventSubscriptionsCommand extends command(_ep0, _mw0, "ListEventSubscriptions", ListEventSubscriptions$) {
1813
1603
  }
1814
1604
 
1815
- class ListExclusionsCommand extends Command
1816
- .classBuilder()
1817
- .ep(commonParams)
1818
- .m(function (Command, cs, config, o) {
1819
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1820
- })
1821
- .s("InspectorService", "ListExclusions", {})
1822
- .n("InspectorClient", "ListExclusionsCommand")
1823
- .sc(ListExclusions$)
1824
- .build() {
1605
+ class ListExclusionsCommand extends command(_ep0, _mw0, "ListExclusions", ListExclusions$) {
1825
1606
  }
1826
1607
 
1827
- class ListFindingsCommand extends Command
1828
- .classBuilder()
1829
- .ep(commonParams)
1830
- .m(function (Command, cs, config, o) {
1831
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1832
- })
1833
- .s("InspectorService", "ListFindings", {})
1834
- .n("InspectorClient", "ListFindingsCommand")
1835
- .sc(ListFindings$)
1836
- .build() {
1608
+ class ListFindingsCommand extends command(_ep0, _mw0, "ListFindings", ListFindings$) {
1837
1609
  }
1838
1610
 
1839
- class ListRulesPackagesCommand extends Command
1840
- .classBuilder()
1841
- .ep(commonParams)
1842
- .m(function (Command, cs, config, o) {
1843
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1844
- })
1845
- .s("InspectorService", "ListRulesPackages", {})
1846
- .n("InspectorClient", "ListRulesPackagesCommand")
1847
- .sc(ListRulesPackages$)
1848
- .build() {
1611
+ class ListRulesPackagesCommand extends command(_ep0, _mw0, "ListRulesPackages", ListRulesPackages$) {
1849
1612
  }
1850
1613
 
1851
- class ListTagsForResourceCommand extends Command
1852
- .classBuilder()
1853
- .ep(commonParams)
1854
- .m(function (Command, cs, config, o) {
1855
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1856
- })
1857
- .s("InspectorService", "ListTagsForResource", {})
1858
- .n("InspectorClient", "ListTagsForResourceCommand")
1859
- .sc(ListTagsForResource$)
1860
- .build() {
1614
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1861
1615
  }
1862
1616
 
1863
- class PreviewAgentsCommand extends Command
1864
- .classBuilder()
1865
- .ep(commonParams)
1866
- .m(function (Command, cs, config, o) {
1867
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1868
- })
1869
- .s("InspectorService", "PreviewAgents", {})
1870
- .n("InspectorClient", "PreviewAgentsCommand")
1871
- .sc(PreviewAgents$)
1872
- .build() {
1617
+ class PreviewAgentsCommand extends command(_ep0, _mw0, "PreviewAgents", PreviewAgents$) {
1873
1618
  }
1874
1619
 
1875
- class RegisterCrossAccountAccessRoleCommand extends Command
1876
- .classBuilder()
1877
- .ep(commonParams)
1878
- .m(function (Command, cs, config, o) {
1879
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1880
- })
1881
- .s("InspectorService", "RegisterCrossAccountAccessRole", {})
1882
- .n("InspectorClient", "RegisterCrossAccountAccessRoleCommand")
1883
- .sc(RegisterCrossAccountAccessRole$)
1884
- .build() {
1620
+ class RegisterCrossAccountAccessRoleCommand extends command(_ep0, _mw0, "RegisterCrossAccountAccessRole", RegisterCrossAccountAccessRole$) {
1885
1621
  }
1886
1622
 
1887
- class RemoveAttributesFromFindingsCommand extends Command
1888
- .classBuilder()
1889
- .ep(commonParams)
1890
- .m(function (Command, cs, config, o) {
1891
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1892
- })
1893
- .s("InspectorService", "RemoveAttributesFromFindings", {})
1894
- .n("InspectorClient", "RemoveAttributesFromFindingsCommand")
1895
- .sc(RemoveAttributesFromFindings$)
1896
- .build() {
1623
+ class RemoveAttributesFromFindingsCommand extends command(_ep0, _mw0, "RemoveAttributesFromFindings", RemoveAttributesFromFindings$) {
1897
1624
  }
1898
1625
 
1899
- class SetTagsForResourceCommand extends Command
1900
- .classBuilder()
1901
- .ep(commonParams)
1902
- .m(function (Command, cs, config, o) {
1903
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1904
- })
1905
- .s("InspectorService", "SetTagsForResource", {})
1906
- .n("InspectorClient", "SetTagsForResourceCommand")
1907
- .sc(SetTagsForResource$)
1908
- .build() {
1626
+ class SetTagsForResourceCommand extends command(_ep0, _mw0, "SetTagsForResource", SetTagsForResource$) {
1909
1627
  }
1910
1628
 
1911
- class StartAssessmentRunCommand extends Command
1912
- .classBuilder()
1913
- .ep(commonParams)
1914
- .m(function (Command, cs, config, o) {
1915
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1916
- })
1917
- .s("InspectorService", "StartAssessmentRun", {})
1918
- .n("InspectorClient", "StartAssessmentRunCommand")
1919
- .sc(StartAssessmentRun$)
1920
- .build() {
1629
+ class StartAssessmentRunCommand extends command(_ep0, _mw0, "StartAssessmentRun", StartAssessmentRun$) {
1921
1630
  }
1922
1631
 
1923
- class StopAssessmentRunCommand extends Command
1924
- .classBuilder()
1925
- .ep(commonParams)
1926
- .m(function (Command, cs, config, o) {
1927
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1928
- })
1929
- .s("InspectorService", "StopAssessmentRun", {})
1930
- .n("InspectorClient", "StopAssessmentRunCommand")
1931
- .sc(StopAssessmentRun$)
1932
- .build() {
1632
+ class StopAssessmentRunCommand extends command(_ep0, _mw0, "StopAssessmentRun", StopAssessmentRun$) {
1933
1633
  }
1934
1634
 
1935
- class SubscribeToEventCommand extends Command
1936
- .classBuilder()
1937
- .ep(commonParams)
1938
- .m(function (Command, cs, config, o) {
1939
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1940
- })
1941
- .s("InspectorService", "SubscribeToEvent", {})
1942
- .n("InspectorClient", "SubscribeToEventCommand")
1943
- .sc(SubscribeToEvent$)
1944
- .build() {
1635
+ class SubscribeToEventCommand extends command(_ep0, _mw0, "SubscribeToEvent", SubscribeToEvent$) {
1945
1636
  }
1946
1637
 
1947
- class UnsubscribeFromEventCommand extends Command
1948
- .classBuilder()
1949
- .ep(commonParams)
1950
- .m(function (Command, cs, config, o) {
1951
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1952
- })
1953
- .s("InspectorService", "UnsubscribeFromEvent", {})
1954
- .n("InspectorClient", "UnsubscribeFromEventCommand")
1955
- .sc(UnsubscribeFromEvent$)
1956
- .build() {
1638
+ class UnsubscribeFromEventCommand extends command(_ep0, _mw0, "UnsubscribeFromEvent", UnsubscribeFromEvent$) {
1957
1639
  }
1958
1640
 
1959
- class UpdateAssessmentTargetCommand extends Command
1960
- .classBuilder()
1961
- .ep(commonParams)
1962
- .m(function (Command, cs, config, o) {
1963
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1964
- })
1965
- .s("InspectorService", "UpdateAssessmentTarget", {})
1966
- .n("InspectorClient", "UpdateAssessmentTargetCommand")
1967
- .sc(UpdateAssessmentTarget$)
1968
- .build() {
1641
+ class UpdateAssessmentTargetCommand extends command(_ep0, _mw0, "UpdateAssessmentTarget", UpdateAssessmentTarget$) {
1969
1642
  }
1970
1643
 
1971
1644
  const paginateGetExclusionsPreview = createPaginator(InspectorClient, GetExclusionsPreviewCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "InspectorService", "InspectorClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AddAttributesToFindings$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddAttributesToFindingsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "AddAttributesToFindings", {})
13
- .n("InspectorClient", "AddAttributesToFindingsCommand")
14
- .sc(AddAttributesToFindings$)
15
- .build() {
3
+ export class AddAttributesToFindingsCommand extends command(_ep0, _mw0, "AddAttributesToFindings", AddAttributesToFindings$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAssessmentTarget$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAssessmentTargetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "CreateAssessmentTarget", {})
13
- .n("InspectorClient", "CreateAssessmentTargetCommand")
14
- .sc(CreateAssessmentTarget$)
15
- .build() {
3
+ export class CreateAssessmentTargetCommand extends command(_ep0, _mw0, "CreateAssessmentTarget", CreateAssessmentTarget$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAssessmentTemplate$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAssessmentTemplateCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "CreateAssessmentTemplate", {})
13
- .n("InspectorClient", "CreateAssessmentTemplateCommand")
14
- .sc(CreateAssessmentTemplate$)
15
- .build() {
3
+ export class CreateAssessmentTemplateCommand extends command(_ep0, _mw0, "CreateAssessmentTemplate", CreateAssessmentTemplate$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateExclusionsPreview$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateExclusionsPreviewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "CreateExclusionsPreview", {})
13
- .n("InspectorClient", "CreateExclusionsPreviewCommand")
14
- .sc(CreateExclusionsPreview$)
15
- .build() {
3
+ export class CreateExclusionsPreviewCommand extends command(_ep0, _mw0, "CreateExclusionsPreview", CreateExclusionsPreview$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateResourceGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateResourceGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "CreateResourceGroup", {})
13
- .n("InspectorClient", "CreateResourceGroupCommand")
14
- .sc(CreateResourceGroup$)
15
- .build() {
3
+ export class CreateResourceGroupCommand extends command(_ep0, _mw0, "CreateResourceGroup", CreateResourceGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteAssessmentRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAssessmentRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("InspectorService", "DeleteAssessmentRun", {})
13
- .n("InspectorClient", "DeleteAssessmentRunCommand")
14
- .sc(DeleteAssessmentRun$)
15
- .build() {
3
+ export class DeleteAssessmentRunCommand extends command(_ep0, _mw0, "DeleteAssessmentRun", DeleteAssessmentRun$) {
16
4
  }