@aws-sdk/client-inspector-scan 3.1136.0 → 3.1138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1135.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -226,10 +226,10 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.inspectorscan";
226
226
  const _sb = "sbom";
227
227
  const _se = "server";
228
228
  const n0 = "com.amazonaws.inspectorscan";
229
- const _s_registry = TypeRegistry.for(_s);
229
+ const _s_registry = new TypeRegistry(_s);
230
230
  var InspectorScanServiceException$ = [-3, _s, "InspectorScanServiceException", 0, [], []];
231
231
  _s_registry.registerError(InspectorScanServiceException$, InspectorScanServiceException);
232
- const n0_registry = TypeRegistry.for(n0);
232
+ const n0_registry = new TypeRegistry(n0);
233
233
  var AccessDeniedException$ = [-3, n0, _ADE,
234
234
  { [_e]: _c, [_hE]: 403 },
235
235
  [_m],
@@ -26,10 +26,10 @@ const n0 = "com.amazonaws.inspectorscan";
26
26
  import { TypeRegistry } from "@smithy/core/schema";
27
27
  import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/errors";
28
28
  import { InspectorScanServiceException } from "../models/InspectorScanServiceException";
29
- const _s_registry = TypeRegistry.for(_s);
29
+ const _s_registry = new TypeRegistry(_s);
30
30
  export var InspectorScanServiceException$ = [-3, _s, "InspectorScanServiceException", 0, [], []];
31
31
  _s_registry.registerError(InspectorScanServiceException$, InspectorScanServiceException);
32
- const n0_registry = TypeRegistry.for(n0);
32
+ const n0_registry = new TypeRegistry(n0);
33
33
  export var AccessDeniedException$ = [-3, n0, _ADE,
34
34
  { [_e]: _c, [_hE]: 403 },
35
35
  [_m],
@@ -1,13 +1,19 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type ScanSbomCommandInput, type ScanSbomCommandOutput } from "./commands/ScanSbomCommand";
3
3
  import { InspectorScanClient } from "./InspectorScanClient";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface InspectorScanRequestOptions extends __HttpHandlerOptions {
8
+ metricsRecorder?: __MetricsRecorder<unknown>;
9
+ }
4
10
  export interface InspectorScan {
5
11
  /**
6
12
  * @see {@link ScanSbomCommand}
7
13
  */
8
- scanSbom(args: ScanSbomCommandInput, options?: __HttpHandlerOptions): Promise<ScanSbomCommandOutput>;
14
+ scanSbom(args: ScanSbomCommandInput, options?: InspectorScanRequestOptions): Promise<ScanSbomCommandOutput>;
9
15
  scanSbom(args: ScanSbomCommandInput, cb: (err: any, data?: ScanSbomCommandOutput) => void): void;
10
- scanSbom(args: ScanSbomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScanSbomCommandOutput) => void): void;
16
+ scanSbom(args: ScanSbomCommandInput, options: InspectorScanRequestOptions, cb: (err: any, data?: ScanSbomCommandOutput) => void): void;
11
17
  }
12
18
  /**
13
19
  * <p>Amazon Inspector Scan is a vulnerability discovery service that scans a provided Software Bill of Materials (SBOM) for security vulnerabilities.</p>
@@ -1,15 +1,21 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import { ScanSbomCommandInput, ScanSbomCommandOutput } from "./commands/ScanSbomCommand";
3
6
  import { InspectorScanClient } from "./InspectorScanClient";
7
+ export interface InspectorScanRequestOptions extends __HttpHandlerOptions {
8
+ metricsRecorder?: __MetricsRecorder<unknown>;
9
+ }
4
10
  export interface InspectorScan {
5
11
  scanSbom(
6
12
  args: ScanSbomCommandInput,
7
- options?: __HttpHandlerOptions,
13
+ options?: InspectorScanRequestOptions,
8
14
  ): Promise<ScanSbomCommandOutput>;
9
15
  scanSbom(args: ScanSbomCommandInput, cb: (err: any, data?: ScanSbomCommandOutput) => void): void;
10
16
  scanSbom(
11
17
  args: ScanSbomCommandInput,
12
- options: __HttpHandlerOptions,
18
+ options: InspectorScanRequestOptions,
13
19
  cb: (err: any, data?: ScanSbomCommandOutput) => void,
14
20
  ): void;
15
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector-scan",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Inspector Scan Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-inspector-scan",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {