@aws-sdk/client-inspector 3.758.0 → 3.772.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 (2) hide show
  1. package/dist-cjs/index.js +36 -36
  2. package/package.json +3 -3
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedErrorCode: () => AccessDeniedErrorCode,
25
25
  AccessDeniedException: () => AccessDeniedException,
26
26
  AddAttributesToFindingsCommand: () => AddAttributesToFindingsCommand,
@@ -104,7 +104,7 @@ __export(src_exports, {
104
104
  paginateListRulesPackages: () => paginateListRulesPackages,
105
105
  paginatePreviewAgents: () => paginatePreviewAgents
106
106
  });
107
- module.exports = __toCommonJS(src_exports);
107
+ module.exports = __toCommonJS(index_exports);
108
108
 
109
109
  // src/InspectorClient.ts
110
110
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -231,9 +231,9 @@ var InspectorClient = class extends import_smithy_client.Client {
231
231
  this.middlewareStack.use(
232
232
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
233
233
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultInspectorHttpAuthSchemeParametersProvider,
234
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
234
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
235
235
  "aws.auth#sigv4": config.credentials
236
- })
236
+ }), "identityProviderConfigProvider")
237
237
  })
238
238
  );
239
239
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -1587,12 +1587,12 @@ var de_UnsupportedFeatureExceptionRes = /* @__PURE__ */ __name(async (parsedOutp
1587
1587
  }, "de_UnsupportedFeatureExceptionRes");
1588
1588
  var se_AssessmentRunFilter = /* @__PURE__ */ __name((input, context) => {
1589
1589
  return (0, import_smithy_client.take)(input, {
1590
- completionTimeRange: (_) => se_TimestampRange(_, context),
1590
+ completionTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "completionTimeRange"),
1591
1591
  durationRange: import_smithy_client._json,
1592
1592
  namePattern: [],
1593
1593
  rulesPackageArns: import_smithy_client._json,
1594
- startTimeRange: (_) => se_TimestampRange(_, context),
1595
- stateChangeTimeRange: (_) => se_TimestampRange(_, context),
1594
+ startTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "startTimeRange"),
1595
+ stateChangeTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "stateChangeTimeRange"),
1596
1596
  states: import_smithy_client._json
1597
1597
  });
1598
1598
  }, "se_AssessmentRunFilter");
@@ -1601,7 +1601,7 @@ var se_FindingFilter = /* @__PURE__ */ __name((input, context) => {
1601
1601
  agentIds: import_smithy_client._json,
1602
1602
  attributes: import_smithy_client._json,
1603
1603
  autoScalingGroups: import_smithy_client._json,
1604
- creationTimeRange: (_) => se_TimestampRange(_, context),
1604
+ creationTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "creationTimeRange"),
1605
1605
  ruleNames: import_smithy_client._json,
1606
1606
  rulesPackageArns: import_smithy_client._json,
1607
1607
  severities: import_smithy_client._json,
@@ -1611,7 +1611,7 @@ var se_FindingFilter = /* @__PURE__ */ __name((input, context) => {
1611
1611
  var se_ListAssessmentRunsRequest = /* @__PURE__ */ __name((input, context) => {
1612
1612
  return (0, import_smithy_client.take)(input, {
1613
1613
  assessmentTemplateArns: import_smithy_client._json,
1614
- filter: (_) => se_AssessmentRunFilter(_, context),
1614
+ filter: /* @__PURE__ */ __name((_) => se_AssessmentRunFilter(_, context), "filter"),
1615
1615
  maxResults: [],
1616
1616
  nextToken: []
1617
1617
  });
@@ -1619,33 +1619,33 @@ var se_ListAssessmentRunsRequest = /* @__PURE__ */ __name((input, context) => {
1619
1619
  var se_ListFindingsRequest = /* @__PURE__ */ __name((input, context) => {
1620
1620
  return (0, import_smithy_client.take)(input, {
1621
1621
  assessmentRunArns: import_smithy_client._json,
1622
- filter: (_) => se_FindingFilter(_, context),
1622
+ filter: /* @__PURE__ */ __name((_) => se_FindingFilter(_, context), "filter"),
1623
1623
  maxResults: [],
1624
1624
  nextToken: []
1625
1625
  });
1626
1626
  }, "se_ListFindingsRequest");
1627
1627
  var se_TimestampRange = /* @__PURE__ */ __name((input, context) => {
1628
1628
  return (0, import_smithy_client.take)(input, {
1629
- beginDate: (_) => _.getTime() / 1e3,
1630
- endDate: (_) => _.getTime() / 1e3
1629
+ beginDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "beginDate"),
1630
+ endDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "endDate")
1631
1631
  });
1632
1632
  }, "se_TimestampRange");
1633
1633
  var de_AssessmentRun = /* @__PURE__ */ __name((output, context) => {
1634
1634
  return (0, import_smithy_client.take)(output, {
1635
1635
  arn: import_smithy_client.expectString,
1636
1636
  assessmentTemplateArn: import_smithy_client.expectString,
1637
- completedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1638
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1637
+ completedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "completedAt"),
1638
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1639
1639
  dataCollected: import_smithy_client.expectBoolean,
1640
1640
  durationInSeconds: import_smithy_client.expectInt32,
1641
1641
  findingCounts: import_smithy_client._json,
1642
1642
  name: import_smithy_client.expectString,
1643
- notifications: (_) => de_AssessmentRunNotificationList(_, context),
1643
+ notifications: /* @__PURE__ */ __name((_) => de_AssessmentRunNotificationList(_, context), "notifications"),
1644
1644
  rulesPackageArns: import_smithy_client._json,
1645
- startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1645
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
1646
1646
  state: import_smithy_client.expectString,
1647
- stateChangedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1648
- stateChanges: (_) => de_AssessmentRunStateChangeList(_, context),
1647
+ stateChangedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stateChangedAt"),
1648
+ stateChanges: /* @__PURE__ */ __name((_) => de_AssessmentRunStateChangeList(_, context), "stateChanges"),
1649
1649
  userAttributesForFindings: import_smithy_client._json
1650
1650
  });
1651
1651
  }, "de_AssessmentRun");
@@ -1657,7 +1657,7 @@ var de_AssessmentRunList = /* @__PURE__ */ __name((output, context) => {
1657
1657
  }, "de_AssessmentRunList");
1658
1658
  var de_AssessmentRunNotification = /* @__PURE__ */ __name((output, context) => {
1659
1659
  return (0, import_smithy_client.take)(output, {
1660
- date: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1660
+ date: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "date"),
1661
1661
  error: import_smithy_client.expectBoolean,
1662
1662
  event: import_smithy_client.expectString,
1663
1663
  message: import_smithy_client.expectString,
@@ -1674,7 +1674,7 @@ var de_AssessmentRunNotificationList = /* @__PURE__ */ __name((output, context)
1674
1674
  var de_AssessmentRunStateChange = /* @__PURE__ */ __name((output, context) => {
1675
1675
  return (0, import_smithy_client.take)(output, {
1676
1676
  state: import_smithy_client.expectString,
1677
- stateChangedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1677
+ stateChangedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stateChangedAt")
1678
1678
  });
1679
1679
  }, "de_AssessmentRunStateChange");
1680
1680
  var de_AssessmentRunStateChangeList = /* @__PURE__ */ __name((output, context) => {
@@ -1686,10 +1686,10 @@ var de_AssessmentRunStateChangeList = /* @__PURE__ */ __name((output, context) =
1686
1686
  var de_AssessmentTarget = /* @__PURE__ */ __name((output, context) => {
1687
1687
  return (0, import_smithy_client.take)(output, {
1688
1688
  arn: import_smithy_client.expectString,
1689
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1689
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1690
1690
  name: import_smithy_client.expectString,
1691
1691
  resourceGroupArn: import_smithy_client.expectString,
1692
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1692
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1693
1693
  });
1694
1694
  }, "de_AssessmentTarget");
1695
1695
  var de_AssessmentTargetList = /* @__PURE__ */ __name((output, context) => {
@@ -1703,7 +1703,7 @@ var de_AssessmentTemplate = /* @__PURE__ */ __name((output, context) => {
1703
1703
  arn: import_smithy_client.expectString,
1704
1704
  assessmentRunCount: import_smithy_client.expectInt32,
1705
1705
  assessmentTargetArn: import_smithy_client.expectString,
1706
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1706
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1707
1707
  durationInSeconds: import_smithy_client.expectInt32,
1708
1708
  lastAssessmentRunArn: import_smithy_client.expectString,
1709
1709
  name: import_smithy_client.expectString,
@@ -1719,25 +1719,25 @@ var de_AssessmentTemplateList = /* @__PURE__ */ __name((output, context) => {
1719
1719
  }, "de_AssessmentTemplateList");
1720
1720
  var de_DescribeAssessmentRunsResponse = /* @__PURE__ */ __name((output, context) => {
1721
1721
  return (0, import_smithy_client.take)(output, {
1722
- assessmentRuns: (_) => de_AssessmentRunList(_, context),
1722
+ assessmentRuns: /* @__PURE__ */ __name((_) => de_AssessmentRunList(_, context), "assessmentRuns"),
1723
1723
  failedItems: import_smithy_client._json
1724
1724
  });
1725
1725
  }, "de_DescribeAssessmentRunsResponse");
1726
1726
  var de_DescribeAssessmentTargetsResponse = /* @__PURE__ */ __name((output, context) => {
1727
1727
  return (0, import_smithy_client.take)(output, {
1728
- assessmentTargets: (_) => de_AssessmentTargetList(_, context),
1728
+ assessmentTargets: /* @__PURE__ */ __name((_) => de_AssessmentTargetList(_, context), "assessmentTargets"),
1729
1729
  failedItems: import_smithy_client._json
1730
1730
  });
1731
1731
  }, "de_DescribeAssessmentTargetsResponse");
1732
1732
  var de_DescribeAssessmentTemplatesResponse = /* @__PURE__ */ __name((output, context) => {
1733
1733
  return (0, import_smithy_client.take)(output, {
1734
- assessmentTemplates: (_) => de_AssessmentTemplateList(_, context),
1734
+ assessmentTemplates: /* @__PURE__ */ __name((_) => de_AssessmentTemplateList(_, context), "assessmentTemplates"),
1735
1735
  failedItems: import_smithy_client._json
1736
1736
  });
1737
1737
  }, "de_DescribeAssessmentTemplatesResponse");
1738
1738
  var de_DescribeCrossAccountAccessRoleResponse = /* @__PURE__ */ __name((output, context) => {
1739
1739
  return (0, import_smithy_client.take)(output, {
1740
- registeredAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1740
+ registeredAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "registeredAt"),
1741
1741
  roleArn: import_smithy_client.expectString,
1742
1742
  valid: import_smithy_client.expectBoolean
1743
1743
  });
@@ -1745,19 +1745,19 @@ var de_DescribeCrossAccountAccessRoleResponse = /* @__PURE__ */ __name((output,
1745
1745
  var de_DescribeFindingsResponse = /* @__PURE__ */ __name((output, context) => {
1746
1746
  return (0, import_smithy_client.take)(output, {
1747
1747
  failedItems: import_smithy_client._json,
1748
- findings: (_) => de_FindingList(_, context)
1748
+ findings: /* @__PURE__ */ __name((_) => de_FindingList(_, context), "findings")
1749
1749
  });
1750
1750
  }, "de_DescribeFindingsResponse");
1751
1751
  var de_DescribeResourceGroupsResponse = /* @__PURE__ */ __name((output, context) => {
1752
1752
  return (0, import_smithy_client.take)(output, {
1753
1753
  failedItems: import_smithy_client._json,
1754
- resourceGroups: (_) => de_ResourceGroupList(_, context)
1754
+ resourceGroups: /* @__PURE__ */ __name((_) => de_ResourceGroupList(_, context), "resourceGroups")
1755
1755
  });
1756
1756
  }, "de_DescribeResourceGroupsResponse");
1757
1757
  var de_EventSubscription = /* @__PURE__ */ __name((output, context) => {
1758
1758
  return (0, import_smithy_client.take)(output, {
1759
1759
  event: import_smithy_client.expectString,
1760
- subscribedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1760
+ subscribedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "subscribedAt")
1761
1761
  });
1762
1762
  }, "de_EventSubscription");
1763
1763
  var de_EventSubscriptionList = /* @__PURE__ */ __name((output, context) => {
@@ -1773,7 +1773,7 @@ var de_Finding = /* @__PURE__ */ __name((output, context) => {
1773
1773
  assetType: import_smithy_client.expectString,
1774
1774
  attributes: import_smithy_client._json,
1775
1775
  confidence: import_smithy_client.expectInt32,
1776
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1776
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1777
1777
  description: import_smithy_client.expectString,
1778
1778
  id: import_smithy_client.expectString,
1779
1779
  indicatorOfCompromise: import_smithy_client.expectBoolean,
@@ -1784,7 +1784,7 @@ var de_Finding = /* @__PURE__ */ __name((output, context) => {
1784
1784
  serviceAttributes: import_smithy_client._json,
1785
1785
  severity: import_smithy_client.expectString,
1786
1786
  title: import_smithy_client.expectString,
1787
- updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1787
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1788
1788
  userAttributes: import_smithy_client._json
1789
1789
  });
1790
1790
  }, "de_Finding");
@@ -1797,13 +1797,13 @@ var de_FindingList = /* @__PURE__ */ __name((output, context) => {
1797
1797
  var de_ListEventSubscriptionsResponse = /* @__PURE__ */ __name((output, context) => {
1798
1798
  return (0, import_smithy_client.take)(output, {
1799
1799
  nextToken: import_smithy_client.expectString,
1800
- subscriptions: (_) => de_SubscriptionList(_, context)
1800
+ subscriptions: /* @__PURE__ */ __name((_) => de_SubscriptionList(_, context), "subscriptions")
1801
1801
  });
1802
1802
  }, "de_ListEventSubscriptionsResponse");
1803
1803
  var de_ResourceGroup = /* @__PURE__ */ __name((output, context) => {
1804
1804
  return (0, import_smithy_client.take)(output, {
1805
1805
  arn: import_smithy_client.expectString,
1806
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1806
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1807
1807
  tags: import_smithy_client._json
1808
1808
  });
1809
1809
  }, "de_ResourceGroup");
@@ -1815,7 +1815,7 @@ var de_ResourceGroupList = /* @__PURE__ */ __name((output, context) => {
1815
1815
  }, "de_ResourceGroupList");
1816
1816
  var de_Subscription = /* @__PURE__ */ __name((output, context) => {
1817
1817
  return (0, import_smithy_client.take)(output, {
1818
- eventSubscriptions: (_) => de_EventSubscriptionList(_, context),
1818
+ eventSubscriptions: /* @__PURE__ */ __name((_) => de_EventSubscriptionList(_, context), "eventSubscriptions"),
1819
1819
  resourceArn: import_smithy_client.expectString,
1820
1820
  topicArn: import_smithy_client.expectString
1821
1821
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector",
3
3
  "description": "AWS SDK for JavaScript Inspector Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.772.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-inspector",
@@ -21,10 +21,10 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.772.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",