@aws-sdk/client-inspector-scan 3.934.0 → 3.935.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 +16 -15
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +15 -0
- package/dist-es/models/errors.js +63 -0
- package/dist-es/models/models_0.js +1 -78
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +39 -0
- package/dist-types/models/errors.d.ts +86 -0
- package/dist-types/models/models_0.d.ts +1 -123
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +20 -0
- package/dist-types/ts3.4/models/errors.d.ts +44 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -59
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -129,10 +129,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends InspectorScanS
|
|
|
129
129
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
const InternalServerExceptionReason = {
|
|
133
|
-
FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM",
|
|
134
|
-
OTHER: "OTHER",
|
|
135
|
-
};
|
|
136
132
|
let InternalServerException$1 = class InternalServerException extends InspectorScanServiceException$1 {
|
|
137
133
|
name = "InternalServerException";
|
|
138
134
|
$fault = "server";
|
|
@@ -150,10 +146,6 @@ let InternalServerException$1 = class InternalServerException extends InspectorS
|
|
|
150
146
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
151
147
|
}
|
|
152
148
|
};
|
|
153
|
-
const OutputFormat = {
|
|
154
|
-
CYCLONE_DX_1_5: "CYCLONE_DX_1_5",
|
|
155
|
-
INSPECTOR: "INSPECTOR",
|
|
156
|
-
};
|
|
157
149
|
let ThrottlingException$1 = class ThrottlingException extends InspectorScanServiceException$1 {
|
|
158
150
|
name = "ThrottlingException";
|
|
159
151
|
$fault = "client";
|
|
@@ -171,13 +163,6 @@ let ThrottlingException$1 = class ThrottlingException extends InspectorScanServi
|
|
|
171
163
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
172
164
|
}
|
|
173
165
|
};
|
|
174
|
-
const ValidationExceptionReason = {
|
|
175
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
176
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
177
|
-
OTHER: "OTHER",
|
|
178
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
179
|
-
UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE",
|
|
180
|
-
};
|
|
181
166
|
let ValidationException$1 = class ValidationException extends InspectorScanServiceException$1 {
|
|
182
167
|
name = "ValidationException";
|
|
183
168
|
$fault = "client";
|
|
@@ -321,6 +306,22 @@ class InspectorScan extends InspectorScanClient {
|
|
|
321
306
|
}
|
|
322
307
|
smithyClient.createAggregatedClient(commands, InspectorScan);
|
|
323
308
|
|
|
309
|
+
const InternalServerExceptionReason = {
|
|
310
|
+
FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM",
|
|
311
|
+
OTHER: "OTHER",
|
|
312
|
+
};
|
|
313
|
+
const OutputFormat = {
|
|
314
|
+
CYCLONE_DX_1_5: "CYCLONE_DX_1_5",
|
|
315
|
+
INSPECTOR: "INSPECTOR",
|
|
316
|
+
};
|
|
317
|
+
const ValidationExceptionReason = {
|
|
318
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
319
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
320
|
+
OTHER: "OTHER",
|
|
321
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
322
|
+
UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE",
|
|
323
|
+
};
|
|
324
|
+
|
|
324
325
|
Object.defineProperty(exports, "$Command", {
|
|
325
326
|
enumerable: true,
|
|
326
327
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./InspectorScanClient";
|
|
2
2
|
export * from "./InspectorScan";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./models";
|
|
4
|
+
export * from "./models/enums";
|
|
5
|
+
export * from "./models/errors";
|
|
5
6
|
export { InspectorScanServiceException } from "./models/InspectorScanServiceException";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const InternalServerExceptionReason = {
|
|
2
|
+
FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM",
|
|
3
|
+
OTHER: "OTHER",
|
|
4
|
+
};
|
|
5
|
+
export const OutputFormat = {
|
|
6
|
+
CYCLONE_DX_1_5: "CYCLONE_DX_1_5",
|
|
7
|
+
INSPECTOR: "INSPECTOR",
|
|
8
|
+
};
|
|
9
|
+
export const ValidationExceptionReason = {
|
|
10
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
11
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
12
|
+
OTHER: "OTHER",
|
|
13
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
14
|
+
UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE",
|
|
15
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { InspectorScanServiceException as __BaseException } from "./InspectorScanServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InternalServerException extends __BaseException {
|
|
15
|
+
name = "InternalServerException";
|
|
16
|
+
$fault = "server";
|
|
17
|
+
$retryable = {};
|
|
18
|
+
reason;
|
|
19
|
+
retryAfterSeconds;
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InternalServerException",
|
|
23
|
+
$fault: "server",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
27
|
+
this.reason = opts.reason;
|
|
28
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class ThrottlingException extends __BaseException {
|
|
32
|
+
name = "ThrottlingException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
$retryable = {
|
|
35
|
+
throttling: true,
|
|
36
|
+
};
|
|
37
|
+
retryAfterSeconds;
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "ThrottlingException",
|
|
41
|
+
$fault: "client",
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
45
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export class ValidationException extends __BaseException {
|
|
49
|
+
name = "ValidationException";
|
|
50
|
+
$fault = "client";
|
|
51
|
+
reason;
|
|
52
|
+
fields;
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ValidationException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
60
|
+
this.reason = opts.reason;
|
|
61
|
+
this.fields = opts.fields;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,78 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export const InternalServerExceptionReason = {
|
|
15
|
-
FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM",
|
|
16
|
-
OTHER: "OTHER",
|
|
17
|
-
};
|
|
18
|
-
export class InternalServerException extends __BaseException {
|
|
19
|
-
name = "InternalServerException";
|
|
20
|
-
$fault = "server";
|
|
21
|
-
$retryable = {};
|
|
22
|
-
reason;
|
|
23
|
-
retryAfterSeconds;
|
|
24
|
-
constructor(opts) {
|
|
25
|
-
super({
|
|
26
|
-
name: "InternalServerException",
|
|
27
|
-
$fault: "server",
|
|
28
|
-
...opts,
|
|
29
|
-
});
|
|
30
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
31
|
-
this.reason = opts.reason;
|
|
32
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export const OutputFormat = {
|
|
36
|
-
CYCLONE_DX_1_5: "CYCLONE_DX_1_5",
|
|
37
|
-
INSPECTOR: "INSPECTOR",
|
|
38
|
-
};
|
|
39
|
-
export class ThrottlingException extends __BaseException {
|
|
40
|
-
name = "ThrottlingException";
|
|
41
|
-
$fault = "client";
|
|
42
|
-
$retryable = {
|
|
43
|
-
throttling: true,
|
|
44
|
-
};
|
|
45
|
-
retryAfterSeconds;
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "ThrottlingException",
|
|
49
|
-
$fault: "client",
|
|
50
|
-
...opts,
|
|
51
|
-
});
|
|
52
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
53
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export const ValidationExceptionReason = {
|
|
57
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
58
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
59
|
-
OTHER: "OTHER",
|
|
60
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
61
|
-
UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE",
|
|
62
|
-
};
|
|
63
|
-
export class ValidationException extends __BaseException {
|
|
64
|
-
name = "ValidationException";
|
|
65
|
-
$fault = "client";
|
|
66
|
-
reason;
|
|
67
|
-
fields;
|
|
68
|
-
constructor(opts) {
|
|
69
|
-
super({
|
|
70
|
-
name: "ValidationException",
|
|
71
|
-
$fault: "client",
|
|
72
|
-
...opts,
|
|
73
|
-
});
|
|
74
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
75
|
-
this.reason = opts.reason;
|
|
76
|
-
this.fields = opts.fields;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
export {};
|
|
@@ -24,7 +24,7 @@ const _sb = "sbom";
|
|
|
24
24
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.inspectorscan";
|
|
25
25
|
const n0 = "com.amazonaws.inspectorscan";
|
|
26
26
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
27
|
-
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
27
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
28
28
|
import { InspectorScanServiceException as __InspectorScanServiceException } from "../models/InspectorScanServiceException";
|
|
29
29
|
export var AccessDeniedException = [
|
|
30
30
|
-3,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,5 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { InspectorScanExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
-
export * from "./models";
|
|
12
|
+
export * from "./models/enums";
|
|
13
|
+
export * from "./models/errors";
|
|
14
|
+
export type * from "./models/models_0";
|
|
13
15
|
export { InspectorScanServiceException } from "./models/InspectorScanServiceException";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const InternalServerExceptionReason: {
|
|
6
|
+
readonly FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM";
|
|
7
|
+
readonly OTHER: "OTHER";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type InternalServerExceptionReason = (typeof InternalServerExceptionReason)[keyof typeof InternalServerExceptionReason];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const OutputFormat: {
|
|
18
|
+
readonly CYCLONE_DX_1_5: "CYCLONE_DX_1_5";
|
|
19
|
+
readonly INSPECTOR: "INSPECTOR";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const ValidationExceptionReason: {
|
|
30
|
+
readonly CANNOT_PARSE: "CANNOT_PARSE";
|
|
31
|
+
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
32
|
+
readonly OTHER: "OTHER";
|
|
33
|
+
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
34
|
+
readonly UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { InternalServerExceptionReason, ValidationExceptionReason } from "./enums";
|
|
3
|
+
import { InspectorScanServiceException as __BaseException } from "./InspectorScanServiceException";
|
|
4
|
+
import { ValidationExceptionField } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>You do not have sufficient access to perform this action.
|
|
7
|
+
* </p>
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
11
|
+
readonly name: "AccessDeniedException";
|
|
12
|
+
readonly $fault: "client";
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.
|
|
20
|
+
*
|
|
21
|
+
* </p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class InternalServerException extends __BaseException {
|
|
25
|
+
readonly name: "InternalServerException";
|
|
26
|
+
readonly $fault: "server";
|
|
27
|
+
$retryable: {};
|
|
28
|
+
/**
|
|
29
|
+
* <p>The reason for the validation failure.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
reason: InternalServerExceptionReason | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* <p>The number of seconds to wait before retrying the request.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
retryAfterSeconds?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* <p>The request was denied due to request throttling.
|
|
45
|
+
*
|
|
46
|
+
* </p>
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export declare class ThrottlingException extends __BaseException {
|
|
50
|
+
readonly name: "ThrottlingException";
|
|
51
|
+
readonly $fault: "client";
|
|
52
|
+
$retryable: {
|
|
53
|
+
throttling: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* <p>The number of seconds to wait before retrying the request.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
retryAfterSeconds?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* <p>The request has failed validation due to missing required fields or having invalid inputs.</p>
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export declare class ValidationException extends __BaseException {
|
|
70
|
+
readonly name: "ValidationException";
|
|
71
|
+
readonly $fault: "client";
|
|
72
|
+
/**
|
|
73
|
+
* <p>The reason for the validation failure.</p>
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
reason: ValidationExceptionReason | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* <p>The fields that failed validation.</p>
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
fields?: ValidationExceptionField[] | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
86
|
+
}
|
|
@@ -1,68 +1,5 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* <p>You do not have sufficient access to perform this action.
|
|
6
|
-
* </p>
|
|
7
|
-
* @public
|
|
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
|
-
* <p>The request processing has failed because of an unknown error, exception or failure.
|
|
31
|
-
*
|
|
32
|
-
* </p>
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
export declare class InternalServerException extends __BaseException {
|
|
36
|
-
readonly name: "InternalServerException";
|
|
37
|
-
readonly $fault: "server";
|
|
38
|
-
$retryable: {};
|
|
39
|
-
/**
|
|
40
|
-
* <p>The reason for the validation failure.</p>
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
reason: InternalServerExceptionReason | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* <p>The number of seconds to wait before retrying the request.</p>
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
retryAfterSeconds?: number | undefined;
|
|
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];
|
|
2
|
+
import { OutputFormat } from "./enums";
|
|
66
3
|
/**
|
|
67
4
|
* @public
|
|
68
5
|
*/
|
|
@@ -88,28 +25,6 @@ export interface ScanSbomResponse {
|
|
|
88
25
|
*/
|
|
89
26
|
sbom?: __DocumentType | undefined;
|
|
90
27
|
}
|
|
91
|
-
/**
|
|
92
|
-
* <p>The request was denied due to request throttling.
|
|
93
|
-
*
|
|
94
|
-
* </p>
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
export declare class ThrottlingException extends __BaseException {
|
|
98
|
-
readonly name: "ThrottlingException";
|
|
99
|
-
readonly $fault: "client";
|
|
100
|
-
$retryable: {
|
|
101
|
-
throttling: boolean;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* <p>The number of seconds to wait before retrying the request.</p>
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
|
-
retryAfterSeconds?: number | undefined;
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
112
|
-
}
|
|
113
28
|
/**
|
|
114
29
|
* <p>The request has failed validation due to missing required fields or having invalid inputs.
|
|
115
30
|
* </p>
|
|
@@ -130,40 +45,3 @@ export interface ValidationExceptionField {
|
|
|
130
45
|
*/
|
|
131
46
|
message: string | undefined;
|
|
132
47
|
}
|
|
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
|
-
* <p>The request has failed validation due to missing required fields or having invalid inputs.</p>
|
|
150
|
-
* @public
|
|
151
|
-
*/
|
|
152
|
-
export declare class ValidationException extends __BaseException {
|
|
153
|
-
readonly name: "ValidationException";
|
|
154
|
-
readonly $fault: "client";
|
|
155
|
-
/**
|
|
156
|
-
* <p>The reason for the validation failure.</p>
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
reason: ValidationExceptionReason | undefined;
|
|
160
|
-
/**
|
|
161
|
-
* <p>The fields that failed validation.</p>
|
|
162
|
-
* @public
|
|
163
|
-
*/
|
|
164
|
-
fields?: ValidationExceptionField[] | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
169
|
-
}
|
|
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
4
4
|
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
5
|
export { InspectorScanExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
|
-
export * from "./models";
|
|
7
|
+
export * from "./models/enums";
|
|
8
|
+
export * from "./models/errors";
|
|
9
|
+
export * from "./models/models_0";
|
|
8
10
|
export { InspectorScanServiceException } from "./models/InspectorScanServiceException";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const InternalServerExceptionReason: {
|
|
2
|
+
readonly FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM";
|
|
3
|
+
readonly OTHER: "OTHER";
|
|
4
|
+
};
|
|
5
|
+
export type InternalServerExceptionReason =
|
|
6
|
+
(typeof InternalServerExceptionReason)[keyof typeof InternalServerExceptionReason];
|
|
7
|
+
export declare const OutputFormat: {
|
|
8
|
+
readonly CYCLONE_DX_1_5: "CYCLONE_DX_1_5";
|
|
9
|
+
readonly INSPECTOR: "INSPECTOR";
|
|
10
|
+
};
|
|
11
|
+
export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
12
|
+
export declare const ValidationExceptionReason: {
|
|
13
|
+
readonly CANNOT_PARSE: "CANNOT_PARSE";
|
|
14
|
+
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
15
|
+
readonly OTHER: "OTHER";
|
|
16
|
+
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
17
|
+
readonly UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE";
|
|
18
|
+
};
|
|
19
|
+
export type ValidationExceptionReason =
|
|
20
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import {
|
|
3
|
+
InternalServerExceptionReason,
|
|
4
|
+
ValidationExceptionReason,
|
|
5
|
+
} from "./enums";
|
|
6
|
+
import { InspectorScanServiceException as __BaseException } from "./InspectorScanServiceException";
|
|
7
|
+
import { ValidationExceptionField } from "./models_0";
|
|
8
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
+
readonly name: "AccessDeniedException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
constructor(
|
|
12
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export declare class InternalServerException extends __BaseException {
|
|
16
|
+
readonly name: "InternalServerException";
|
|
17
|
+
readonly $fault: "server";
|
|
18
|
+
$retryable: {};
|
|
19
|
+
reason: InternalServerExceptionReason | undefined;
|
|
20
|
+
retryAfterSeconds?: number | undefined;
|
|
21
|
+
constructor(
|
|
22
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export declare class ThrottlingException extends __BaseException {
|
|
26
|
+
readonly name: "ThrottlingException";
|
|
27
|
+
readonly $fault: "client";
|
|
28
|
+
$retryable: {
|
|
29
|
+
throttling: boolean;
|
|
30
|
+
};
|
|
31
|
+
retryAfterSeconds?: number | undefined;
|
|
32
|
+
constructor(
|
|
33
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export declare class ValidationException extends __BaseException {
|
|
37
|
+
readonly name: "ValidationException";
|
|
38
|
+
readonly $fault: "client";
|
|
39
|
+
reason: ValidationExceptionReason | undefined;
|
|
40
|
+
fields?: ValidationExceptionField[] | undefined;
|
|
41
|
+
constructor(
|
|
42
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
5
|
-
readonly name: "AccessDeniedException";
|
|
6
|
-
readonly $fault: "client";
|
|
7
|
-
constructor(
|
|
8
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
export declare const InternalServerExceptionReason: {
|
|
12
|
-
readonly FAILED_TO_GENERATE_SBOM: "FAILED_TO_GENERATE_SBOM";
|
|
13
|
-
readonly OTHER: "OTHER";
|
|
14
|
-
};
|
|
15
|
-
export type InternalServerExceptionReason =
|
|
16
|
-
(typeof InternalServerExceptionReason)[keyof typeof InternalServerExceptionReason];
|
|
17
|
-
export declare class InternalServerException extends __BaseException {
|
|
18
|
-
readonly name: "InternalServerException";
|
|
19
|
-
readonly $fault: "server";
|
|
20
|
-
$retryable: {};
|
|
21
|
-
reason: InternalServerExceptionReason | undefined;
|
|
22
|
-
retryAfterSeconds?: number | undefined;
|
|
23
|
-
constructor(
|
|
24
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
export declare const OutputFormat: {
|
|
28
|
-
readonly CYCLONE_DX_1_5: "CYCLONE_DX_1_5";
|
|
29
|
-
readonly INSPECTOR: "INSPECTOR";
|
|
30
|
-
};
|
|
31
|
-
export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
2
|
+
import { OutputFormat } from "./enums";
|
|
32
3
|
export interface ScanSbomRequest {
|
|
33
4
|
sbom: __DocumentType | undefined;
|
|
34
5
|
outputFormat?: OutputFormat | undefined;
|
|
@@ -36,36 +7,7 @@ export interface ScanSbomRequest {
|
|
|
36
7
|
export interface ScanSbomResponse {
|
|
37
8
|
sbom?: __DocumentType | undefined;
|
|
38
9
|
}
|
|
39
|
-
export declare class ThrottlingException extends __BaseException {
|
|
40
|
-
readonly name: "ThrottlingException";
|
|
41
|
-
readonly $fault: "client";
|
|
42
|
-
$retryable: {
|
|
43
|
-
throttling: boolean;
|
|
44
|
-
};
|
|
45
|
-
retryAfterSeconds?: number | undefined;
|
|
46
|
-
constructor(
|
|
47
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
10
|
export interface ValidationExceptionField {
|
|
51
11
|
name: string | undefined;
|
|
52
12
|
message: string | undefined;
|
|
53
13
|
}
|
|
54
|
-
export declare const ValidationExceptionReason: {
|
|
55
|
-
readonly CANNOT_PARSE: "CANNOT_PARSE";
|
|
56
|
-
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
57
|
-
readonly OTHER: "OTHER";
|
|
58
|
-
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
59
|
-
readonly UNSUPPORTED_SBOM_TYPE: "UNSUPPORTED_SBOM_TYPE";
|
|
60
|
-
};
|
|
61
|
-
export type ValidationExceptionReason =
|
|
62
|
-
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
63
|
-
export declare class ValidationException extends __BaseException {
|
|
64
|
-
readonly name: "ValidationException";
|
|
65
|
-
readonly $fault: "client";
|
|
66
|
-
reason: ValidationExceptionReason | undefined;
|
|
67
|
-
fields?: ValidationExceptionField[] | undefined;
|
|
68
|
-
constructor(
|
|
69
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
70
|
-
);
|
|
71
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector-scan",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector Scan Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.935.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-scan",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.935.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
30
|
"@aws-sdk/types": "3.930.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
35
|
+
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
37
|
"@smithy/hash-node": "^4.2.5",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
43
43
|
"@smithy/middleware-stack": "^4.2.5",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.5",
|
|
45
45
|
"@smithy/node-http-handler": "^4.4.5",
|
|
46
46
|
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
47
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
48
48
|
"@smithy/types": "^4.9.0",
|
|
49
49
|
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
55
55
|
"@smithy/util-endpoints": "^3.2.5",
|
|
56
56
|
"@smithy/util-middleware": "^4.2.5",
|
|
57
57
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|