@aws-sdk/client-inspector-scan 3.456.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 (75) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +213 -0
  3. package/dist-cjs/InspectorScan.js +13 -0
  4. package/dist-cjs/InspectorScanClient.js +43 -0
  5. package/dist-cjs/commands/ScanSbomCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +4 -0
  7. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  8. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  9. package/dist-cjs/endpoint/ruleset.js +7 -0
  10. package/dist-cjs/extensionConfiguration.js +2 -0
  11. package/dist-cjs/index.js +11 -0
  12. package/dist-cjs/models/InspectorScanServiceException.js +12 -0
  13. package/dist-cjs/models/index.js +4 -0
  14. package/dist-cjs/models/models_0.js +80 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +196 -0
  16. package/dist-cjs/runtimeConfig.browser.js +39 -0
  17. package/dist-cjs/runtimeConfig.js +50 -0
  18. package/dist-cjs/runtimeConfig.native.js +15 -0
  19. package/dist-cjs/runtimeConfig.shared.js +24 -0
  20. package/dist-cjs/runtimeExtensions.js +22 -0
  21. package/dist-es/InspectorScan.js +9 -0
  22. package/dist-es/InspectorScanClient.js +39 -0
  23. package/dist-es/commands/ScanSbomCommand.js +47 -0
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/endpoint/EndpointParameters.js +8 -0
  26. package/dist-es/endpoint/endpointResolver.js +8 -0
  27. package/dist-es/endpoint/ruleset.js +4 -0
  28. package/dist-es/extensionConfiguration.js +1 -0
  29. package/dist-es/index.js +6 -0
  30. package/dist-es/models/InspectorScanServiceException.js +8 -0
  31. package/dist-es/models/index.js +1 -0
  32. package/dist-es/models/models_0.js +73 -0
  33. package/dist-es/protocols/Aws_restJson1.js +191 -0
  34. package/dist-es/runtimeConfig.browser.js +34 -0
  35. package/dist-es/runtimeConfig.js +45 -0
  36. package/dist-es/runtimeConfig.native.js +11 -0
  37. package/dist-es/runtimeConfig.shared.js +20 -0
  38. package/dist-es/runtimeExtensions.js +18 -0
  39. package/dist-types/InspectorScan.d.ts +17 -0
  40. package/dist-types/InspectorScanClient.d.ts +170 -0
  41. package/dist-types/commands/ScanSbomCommand.d.ts +91 -0
  42. package/dist-types/commands/index.d.ts +1 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  44. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  45. package/dist-types/endpoint/ruleset.d.ts +2 -0
  46. package/dist-types/extensionConfiguration.d.ts +8 -0
  47. package/dist-types/index.d.ts +14 -0
  48. package/dist-types/models/InspectorScanServiceException.d.ts +13 -0
  49. package/dist-types/models/index.d.ts +1 -0
  50. package/dist-types/models/models_0.d.ts +169 -0
  51. package/dist-types/protocols/Aws_restJson1.d.ts +11 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  53. package/dist-types/runtimeConfig.d.ts +46 -0
  54. package/dist-types/runtimeConfig.native.d.ts +45 -0
  55. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  56. package/dist-types/runtimeExtensions.d.ts +17 -0
  57. package/dist-types/ts3.4/InspectorScan.d.ts +24 -0
  58. package/dist-types/ts3.4/InspectorScanClient.d.ts +123 -0
  59. package/dist-types/ts3.4/commands/ScanSbomCommand.d.ts +35 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  61. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  62. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  63. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  64. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  65. package/dist-types/ts3.4/index.d.ts +9 -0
  66. package/dist-types/ts3.4/models/InspectorScanServiceException.d.ts +8 -0
  67. package/dist-types/ts3.4/models/index.d.ts +1 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +71 -0
  69. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  73. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  74. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  75. package/package.json +102 -0
@@ -0,0 +1,13 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
3
+ /**
4
+ * @public
5
+ *
6
+ * Base exception class for all service exceptions from InspectorScan service.
7
+ */
8
+ export declare class InspectorScanServiceException extends __ServiceException {
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(options: __ServiceExceptionOptions);
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,169 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DocumentType as __DocumentType } from "@smithy/types";
3
+ import { InspectorScanServiceException as __BaseException } from "./InspectorScanServiceException";
4
+ /**
5
+ * @public
6
+ * <p>You do not have sufficient access to perform this action.
7
+ * </p>
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * @public
19
+ * @enum
20
+ */
21
+ export declare const InternalServerExceptionReason: {
22
+ readonly FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM";
23
+ readonly OTHER: "OTHER";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type InternalServerExceptionReason = (typeof InternalServerExceptionReason)[keyof typeof InternalServerExceptionReason];
29
+ /**
30
+ * @public
31
+ * <p>The request processing has failed because of an unknown error, exception or failure.
32
+ *
33
+ * </p>
34
+ */
35
+ export declare class InternalServerException extends __BaseException {
36
+ readonly name: "InternalServerException";
37
+ readonly $fault: "server";
38
+ $retryable: {};
39
+ /**
40
+ * @public
41
+ * <p>The reason for the validation failure.</p>
42
+ */
43
+ reason: InternalServerExceptionReason | undefined;
44
+ /**
45
+ * @public
46
+ * <p>The number of seconds to wait before retrying the request.</p>
47
+ */
48
+ retryAfterSeconds?: number;
49
+ /**
50
+ * @internal
51
+ */
52
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
53
+ }
54
+ /**
55
+ * @public
56
+ * @enum
57
+ */
58
+ export declare const OutputFormat: {
59
+ readonly CYCLONE_DX_1_5: "CYCLONE_DX_1_5";
60
+ readonly INSPECTOR: "INSPECTOR";
61
+ };
62
+ /**
63
+ * @public
64
+ */
65
+ export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
66
+ /**
67
+ * @public
68
+ */
69
+ export interface ScanSbomRequest {
70
+ /**
71
+ * @public
72
+ * <p>The JSON file for the SBOM you want to scan. The SBOM must be in CycloneDX 1.5 format.</p>
73
+ */
74
+ sbom: __DocumentType | undefined;
75
+ /**
76
+ * @public
77
+ * <p>The output format for the vulnerability report.</p>
78
+ */
79
+ outputFormat?: OutputFormat;
80
+ }
81
+ /**
82
+ * @public
83
+ */
84
+ export interface ScanSbomResponse {
85
+ /**
86
+ * @public
87
+ * <p>The vulnerability report for the scanned SBOM.</p>
88
+ */
89
+ sbom?: __DocumentType;
90
+ }
91
+ /**
92
+ * @public
93
+ * <p>The request was denied due to request throttling.
94
+ *
95
+ * </p>
96
+ */
97
+ export declare class ThrottlingException extends __BaseException {
98
+ readonly name: "ThrottlingException";
99
+ readonly $fault: "client";
100
+ $retryable: {
101
+ throttling: boolean;
102
+ };
103
+ /**
104
+ * @public
105
+ * <p>The number of seconds to wait before retrying the request.</p>
106
+ */
107
+ retryAfterSeconds?: number;
108
+ /**
109
+ * @internal
110
+ */
111
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
112
+ }
113
+ /**
114
+ * @public
115
+ * <p>The request has failed validation due to missing required fields or having invalid inputs.
116
+ * </p>
117
+ */
118
+ export interface ValidationExceptionField {
119
+ /**
120
+ * @public
121
+ * <p>The name of the validation exception.
122
+ *
123
+ * </p>
124
+ */
125
+ name: string | undefined;
126
+ /**
127
+ * @public
128
+ * <p>The validation exception message.
129
+ * </p>
130
+ */
131
+ message: string | undefined;
132
+ }
133
+ /**
134
+ * @public
135
+ * @enum
136
+ */
137
+ export declare const ValidationExceptionReason: {
138
+ readonly CANNOT_PARSE: "CANNOT_PARSE";
139
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
140
+ readonly OTHER: "OTHER";
141
+ readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
142
+ readonly UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE";
143
+ };
144
+ /**
145
+ * @public
146
+ */
147
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
148
+ /**
149
+ * @public
150
+ * <p>The request has failed validation due to missing required fields or having invalid inputs.</p>
151
+ */
152
+ export declare class ValidationException extends __BaseException {
153
+ readonly name: "ValidationException";
154
+ readonly $fault: "client";
155
+ /**
156
+ * @public
157
+ * <p>The reason for the validation failure.</p>
158
+ */
159
+ reason: ValidationExceptionReason | undefined;
160
+ /**
161
+ * @public
162
+ * <p>The fields that failed validation.</p>
163
+ */
164
+ fields?: ValidationExceptionField[];
165
+ /**
166
+ * @internal
167
+ */
168
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
169
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { ScanSbomCommandInput, ScanSbomCommandOutput } from "../commands/ScanSbomCommand";
4
+ /**
5
+ * serializeAws_restJson1ScanSbomCommand
6
+ */
7
+ export declare const se_ScanSbomCommand: (input: ScanSbomCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
+ /**
9
+ * deserializeAws_restJson1ScanSbomCommand
10
+ */
11
+ export declare const de_ScanSbomCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ScanSbomCommandOutput>;
@@ -0,0 +1,46 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { InspectorScanClientConfig } from "./InspectorScanClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: InspectorScanClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<any>;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
18
+ retryMode: string | import("@smithy/types").Provider<string>;
19
+ sha256: import("@smithy/types").HashConstructor;
20
+ streamCollector: import("@smithy/types").StreamCollector;
21
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ apiVersion: string;
24
+ urlParser: import("@smithy/types").UrlParser;
25
+ base64Decoder: import("@smithy/types").Decoder;
26
+ base64Encoder: import("@smithy/types").Encoder;
27
+ utf8Decoder: import("@smithy/types").Decoder;
28
+ utf8Encoder: import("@smithy/types").Encoder;
29
+ disableHostPrefix: boolean;
30
+ serviceId: string;
31
+ logger: import("@smithy/types").Logger;
32
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
34
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
35
+ logger?: import("@smithy/types").Logger | undefined;
36
+ }) => import("@smithy/types").EndpointV2;
37
+ tls?: boolean | undefined;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
+ signingEscapePath?: boolean | undefined;
42
+ systemClockOffset?: number | undefined;
43
+ signingRegion?: string | undefined;
44
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
+ };
@@ -0,0 +1,46 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { InspectorScanClientConfig } from "./InspectorScanClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: InspectorScanClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<string>;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
18
+ retryMode: string | import("@smithy/types").Provider<string>;
19
+ sha256: import("@smithy/types").HashConstructor;
20
+ streamCollector: import("@smithy/types").StreamCollector;
21
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ apiVersion: string;
24
+ urlParser: import("@smithy/types").UrlParser;
25
+ base64Decoder: import("@smithy/types").Decoder;
26
+ base64Encoder: import("@smithy/types").Encoder;
27
+ utf8Decoder: import("@smithy/types").Decoder;
28
+ utf8Encoder: import("@smithy/types").Encoder;
29
+ disableHostPrefix: boolean;
30
+ serviceId: string;
31
+ logger: import("@smithy/types").Logger;
32
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
34
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
35
+ logger?: import("@smithy/types").Logger | undefined;
36
+ }) => import("@smithy/types").EndpointV2;
37
+ tls?: boolean | undefined;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
+ signingEscapePath?: boolean | undefined;
42
+ systemClockOffset?: number | undefined;
43
+ signingRegion?: string | undefined;
44
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
+ };
@@ -0,0 +1,45 @@
1
+ import { InspectorScanClientConfig } from "./InspectorScanClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: InspectorScanClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@smithy/types").HashConstructor;
8
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
+ updateHttpClientConfig(key: never, value: never): void;
10
+ httpHandlerConfigs(): {};
11
+ }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
+ apiVersion: string;
13
+ urlParser: import("@smithy/types").UrlParser;
14
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
+ streamCollector: import("@smithy/types").StreamCollector;
16
+ base64Decoder: import("@smithy/types").Decoder;
17
+ base64Encoder: import("@smithy/types").Encoder;
18
+ utf8Decoder: import("@smithy/types").Decoder;
19
+ utf8Encoder: import("@smithy/types").Encoder;
20
+ disableHostPrefix: boolean;
21
+ serviceId: string;
22
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
+ region: string | import("@smithy/types").Provider<any>;
25
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
27
+ maxAttempts: number | import("@smithy/types").Provider<number>;
28
+ retryMode: string | import("@smithy/types").Provider<string>;
29
+ logger: import("@smithy/types").Logger;
30
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
31
+ defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
+ endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
33
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
34
+ logger?: import("@smithy/types").Logger | undefined;
35
+ }) => import("@smithy/types").EndpointV2;
36
+ tls?: boolean | undefined;
37
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
+ signingEscapePath?: boolean | undefined;
41
+ systemClockOffset?: number | undefined;
42
+ signingRegion?: string | undefined;
43
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
+ };
@@ -0,0 +1,19 @@
1
+ import { InspectorScanClientConfig } from "./InspectorScanClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: InspectorScanClientConfig) => {
6
+ apiVersion: string;
7
+ base64Decoder: import("@smithy/types").Decoder;
8
+ base64Encoder: import("@smithy/types").Encoder;
9
+ disableHostPrefix: boolean;
10
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
+ logger?: import("@smithy/types").Logger | undefined;
12
+ }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ logger: import("@smithy/types").Logger;
15
+ serviceId: string;
16
+ urlParser: import("@smithy/types").UrlParser;
17
+ utf8Decoder: import("@smithy/types").Decoder;
18
+ utf8Encoder: import("@smithy/types").Encoder;
19
+ };
@@ -0,0 +1,17 @@
1
+ import { InspectorScanExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: InspectorScanExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,24 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ ScanSbomCommandInput,
4
+ ScanSbomCommandOutput,
5
+ } from "./commands/ScanSbomCommand";
6
+ import { InspectorScanClient } from "./InspectorScanClient";
7
+ export interface InspectorScan {
8
+ scanSbom(
9
+ args: ScanSbomCommandInput,
10
+ options?: __HttpHandlerOptions
11
+ ): Promise<ScanSbomCommandOutput>;
12
+ scanSbom(
13
+ args: ScanSbomCommandInput,
14
+ cb: (err: any, data?: ScanSbomCommandOutput) => void
15
+ ): void;
16
+ scanSbom(
17
+ args: ScanSbomCommandInput,
18
+ options: __HttpHandlerOptions,
19
+ cb: (err: any, data?: ScanSbomCommandOutput) => void
20
+ ): void;
21
+ }
22
+ export declare class InspectorScan
23
+ extends InspectorScanClient
24
+ implements InspectorScan {}
@@ -0,0 +1,123 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ AwsAuthInputConfig,
7
+ AwsAuthResolvedConfig,
8
+ } from "@aws-sdk/middleware-signing";
9
+ import {
10
+ UserAgentInputConfig,
11
+ UserAgentResolvedConfig,
12
+ } from "@aws-sdk/middleware-user-agent";
13
+ import { Credentials as __Credentials } from "@aws-sdk/types";
14
+ import {
15
+ RegionInputConfig,
16
+ RegionResolvedConfig,
17
+ } from "@smithy/config-resolver";
18
+ import {
19
+ EndpointInputConfig,
20
+ EndpointResolvedConfig,
21
+ } from "@smithy/middleware-endpoint";
22
+ import {
23
+ RetryInputConfig,
24
+ RetryResolvedConfig,
25
+ } from "@smithy/middleware-retry";
26
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
27
+ import {
28
+ Client as __Client,
29
+ DefaultsMode as __DefaultsMode,
30
+ SmithyConfiguration as __SmithyConfiguration,
31
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
+ } from "@smithy/smithy-client";
33
+ import {
34
+ BodyLengthCalculator as __BodyLengthCalculator,
35
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
+ ChecksumConstructor as __ChecksumConstructor,
37
+ Decoder as __Decoder,
38
+ Encoder as __Encoder,
39
+ HashConstructor as __HashConstructor,
40
+ HttpHandlerOptions as __HttpHandlerOptions,
41
+ Logger as __Logger,
42
+ Provider as __Provider,
43
+ Provider,
44
+ StreamCollector as __StreamCollector,
45
+ UrlParser as __UrlParser,
46
+ UserAgent as __UserAgent,
47
+ } from "@smithy/types";
48
+ import {
49
+ ScanSbomCommandInput,
50
+ ScanSbomCommandOutput,
51
+ } from "./commands/ScanSbomCommand";
52
+ import {
53
+ ClientInputEndpointParameters,
54
+ ClientResolvedEndpointParameters,
55
+ EndpointParameters,
56
+ } from "./endpoint/EndpointParameters";
57
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
58
+ export { __Client };
59
+ export type ServiceInputTypes = ScanSbomCommandInput;
60
+ export type ServiceOutputTypes = ScanSbomCommandOutput;
61
+ export interface ClientDefaults
62
+ extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
63
+ requestHandler?: __HttpHandler;
64
+ sha256?: __ChecksumConstructor | __HashConstructor;
65
+ urlParser?: __UrlParser;
66
+ bodyLengthChecker?: __BodyLengthCalculator;
67
+ streamCollector?: __StreamCollector;
68
+ base64Decoder?: __Decoder;
69
+ base64Encoder?: __Encoder;
70
+ utf8Decoder?: __Decoder;
71
+ utf8Encoder?: __Encoder;
72
+ runtime?: string;
73
+ disableHostPrefix?: boolean;
74
+ serviceId?: string;
75
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
76
+ useFipsEndpoint?: boolean | __Provider<boolean>;
77
+ region?: string | __Provider<string>;
78
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
79
+ defaultUserAgentProvider?: Provider<__UserAgent>;
80
+ maxAttempts?: number | __Provider<number>;
81
+ retryMode?: string | __Provider<string>;
82
+ logger?: __Logger;
83
+ extensions?: RuntimeExtension[];
84
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
85
+ }
86
+ export type InspectorScanClientConfigType = Partial<
87
+ __SmithyConfiguration<__HttpHandlerOptions>
88
+ > &
89
+ ClientDefaults &
90
+ RegionInputConfig &
91
+ EndpointInputConfig<EndpointParameters> &
92
+ RetryInputConfig &
93
+ HostHeaderInputConfig &
94
+ AwsAuthInputConfig &
95
+ UserAgentInputConfig &
96
+ ClientInputEndpointParameters;
97
+ export interface InspectorScanClientConfig
98
+ extends InspectorScanClientConfigType {}
99
+ export type InspectorScanClientResolvedConfigType =
100
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
101
+ Required<ClientDefaults> &
102
+ RuntimeExtensionsConfig &
103
+ RegionResolvedConfig &
104
+ EndpointResolvedConfig<EndpointParameters> &
105
+ RetryResolvedConfig &
106
+ HostHeaderResolvedConfig &
107
+ AwsAuthResolvedConfig &
108
+ UserAgentResolvedConfig &
109
+ ClientResolvedEndpointParameters;
110
+ export interface InspectorScanClientResolvedConfig
111
+ extends InspectorScanClientResolvedConfigType {}
112
+ export declare class InspectorScanClient extends __Client<
113
+ __HttpHandlerOptions,
114
+ ServiceInputTypes,
115
+ ServiceOutputTypes,
116
+ InspectorScanClientResolvedConfig
117
+ > {
118
+ readonly config: InspectorScanClientResolvedConfig;
119
+ constructor(
120
+ ...[configuration]: __CheckOptionalClientConfig<InspectorScanClientConfig>
121
+ );
122
+ destroy(): void;
123
+ }
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ InspectorScanClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../InspectorScanClient";
14
+ import { ScanSbomRequest, ScanSbomResponse } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface ScanSbomCommandInput extends ScanSbomRequest {}
17
+ export interface ScanSbomCommandOutput
18
+ extends ScanSbomResponse,
19
+ __MetadataBearer {}
20
+ export declare class ScanSbomCommand extends $Command<
21
+ ScanSbomCommandInput,
22
+ ScanSbomCommandOutput,
23
+ InspectorScanClientResolvedConfig
24
+ > {
25
+ readonly input: ScanSbomCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: ScanSbomCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: InspectorScanClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<ScanSbomCommandInput, ScanSbomCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1 @@
1
+ export * from "./ScanSbomCommand";
@@ -0,0 +1,33 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ region?: string | Provider<string>;
9
+ useDualstackEndpoint?: boolean | Provider<boolean>;
10
+ useFipsEndpoint?: boolean | Provider<boolean>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
18
+ }
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
22
+ export declare const resolveClientEndpointParameters: <T>(
23
+ options: T & ClientInputEndpointParameters
24
+ ) => T &
25
+ ClientInputEndpointParameters & {
26
+ defaultSigningName: string;
27
+ };
28
+ export interface EndpointParameters extends __EndpointParameters {
29
+ Region?: string;
30
+ UseDualStack?: boolean;
31
+ UseFIPS?: boolean;
32
+ Endpoint?: string;
33
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,7 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ export interface InspectorScanExtensionConfiguration
5
+ extends HttpHandlerExtensionConfiguration,
6
+ DefaultExtensionConfiguration,
7
+ AwsRegionExtensionConfiguration {}
@@ -0,0 +1,9 @@
1
+ export * from "./InspectorScanClient";
2
+ export * from "./InspectorScan";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { InspectorScanExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./models";
8
+ import "@aws-sdk/util-endpoints";
9
+ export { InspectorScanServiceException } from "./models/InspectorScanServiceException";
@@ -0,0 +1,8 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceException, __ServiceExceptionOptions };
6
+ export declare class InspectorScanServiceException extends __ServiceException {
7
+ constructor(options: __ServiceExceptionOptions);
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";