@aws-sdk/client-inspector 3.987.0 → 3.989.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 +56 -1438
- package/dist-cjs/models/InspectorServiceException.js +12 -0
- package/dist-cjs/models/errors.js +185 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1098 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +101 -95
- package/dist-types/schemas/schemas_0.d.ts +18 -11
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -11
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InspectorServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class InspectorServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, InspectorServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.InspectorServiceException = InspectorServiceException;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnsupportedFeatureException = exports.PreviewGenerationInProgressException = exports.LimitExceededException = exports.InvalidCrossAccountRoleException = exports.AssessmentRunInProgressException = exports.AgentsAlreadyRunningAssessmentException = exports.ServiceTemporarilyUnavailableException = exports.NoSuchEntityException = exports.InvalidInputException = exports.InternalException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const InspectorServiceException_1 = require("./InspectorServiceException");
|
|
5
|
+
class AccessDeniedException extends InspectorServiceException_1.InspectorServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
errorCode;
|
|
9
|
+
canRetry;
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super({
|
|
12
|
+
name: "AccessDeniedException",
|
|
13
|
+
$fault: "client",
|
|
14
|
+
...opts,
|
|
15
|
+
});
|
|
16
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
17
|
+
this.errorCode = opts.errorCode;
|
|
18
|
+
this.canRetry = opts.canRetry;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
22
|
+
class InternalException extends InspectorServiceException_1.InspectorServiceException {
|
|
23
|
+
name = "InternalException";
|
|
24
|
+
$fault = "server";
|
|
25
|
+
canRetry;
|
|
26
|
+
constructor(opts) {
|
|
27
|
+
super({
|
|
28
|
+
name: "InternalException",
|
|
29
|
+
$fault: "server",
|
|
30
|
+
...opts,
|
|
31
|
+
});
|
|
32
|
+
Object.setPrototypeOf(this, InternalException.prototype);
|
|
33
|
+
this.canRetry = opts.canRetry;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.InternalException = InternalException;
|
|
37
|
+
class InvalidInputException extends InspectorServiceException_1.InspectorServiceException {
|
|
38
|
+
name = "InvalidInputException";
|
|
39
|
+
$fault = "client";
|
|
40
|
+
errorCode;
|
|
41
|
+
canRetry;
|
|
42
|
+
constructor(opts) {
|
|
43
|
+
super({
|
|
44
|
+
name: "InvalidInputException",
|
|
45
|
+
$fault: "client",
|
|
46
|
+
...opts,
|
|
47
|
+
});
|
|
48
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
49
|
+
this.errorCode = opts.errorCode;
|
|
50
|
+
this.canRetry = opts.canRetry;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.InvalidInputException = InvalidInputException;
|
|
54
|
+
class NoSuchEntityException extends InspectorServiceException_1.InspectorServiceException {
|
|
55
|
+
name = "NoSuchEntityException";
|
|
56
|
+
$fault = "client";
|
|
57
|
+
errorCode;
|
|
58
|
+
canRetry;
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "NoSuchEntityException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
Object.setPrototypeOf(this, NoSuchEntityException.prototype);
|
|
66
|
+
this.errorCode = opts.errorCode;
|
|
67
|
+
this.canRetry = opts.canRetry;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.NoSuchEntityException = NoSuchEntityException;
|
|
71
|
+
class ServiceTemporarilyUnavailableException extends InspectorServiceException_1.InspectorServiceException {
|
|
72
|
+
name = "ServiceTemporarilyUnavailableException";
|
|
73
|
+
$fault = "server";
|
|
74
|
+
canRetry;
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "ServiceTemporarilyUnavailableException",
|
|
78
|
+
$fault: "server",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
|
|
82
|
+
this.canRetry = opts.canRetry;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.ServiceTemporarilyUnavailableException = ServiceTemporarilyUnavailableException;
|
|
86
|
+
class AgentsAlreadyRunningAssessmentException extends InspectorServiceException_1.InspectorServiceException {
|
|
87
|
+
name = "AgentsAlreadyRunningAssessmentException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
agents;
|
|
90
|
+
agentsTruncated;
|
|
91
|
+
canRetry;
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "AgentsAlreadyRunningAssessmentException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
Object.setPrototypeOf(this, AgentsAlreadyRunningAssessmentException.prototype);
|
|
99
|
+
this.agents = opts.agents;
|
|
100
|
+
this.agentsTruncated = opts.agentsTruncated;
|
|
101
|
+
this.canRetry = opts.canRetry;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.AgentsAlreadyRunningAssessmentException = AgentsAlreadyRunningAssessmentException;
|
|
105
|
+
class AssessmentRunInProgressException extends InspectorServiceException_1.InspectorServiceException {
|
|
106
|
+
name = "AssessmentRunInProgressException";
|
|
107
|
+
$fault = "client";
|
|
108
|
+
assessmentRunArns;
|
|
109
|
+
assessmentRunArnsTruncated;
|
|
110
|
+
canRetry;
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "AssessmentRunInProgressException",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
Object.setPrototypeOf(this, AssessmentRunInProgressException.prototype);
|
|
118
|
+
this.assessmentRunArns = opts.assessmentRunArns;
|
|
119
|
+
this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
|
|
120
|
+
this.canRetry = opts.canRetry;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.AssessmentRunInProgressException = AssessmentRunInProgressException;
|
|
124
|
+
class InvalidCrossAccountRoleException extends InspectorServiceException_1.InspectorServiceException {
|
|
125
|
+
name = "InvalidCrossAccountRoleException";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
errorCode;
|
|
128
|
+
canRetry;
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "InvalidCrossAccountRoleException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, InvalidCrossAccountRoleException.prototype);
|
|
136
|
+
this.errorCode = opts.errorCode;
|
|
137
|
+
this.canRetry = opts.canRetry;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.InvalidCrossAccountRoleException = InvalidCrossAccountRoleException;
|
|
141
|
+
class LimitExceededException extends InspectorServiceException_1.InspectorServiceException {
|
|
142
|
+
name = "LimitExceededException";
|
|
143
|
+
$fault = "client";
|
|
144
|
+
errorCode;
|
|
145
|
+
canRetry;
|
|
146
|
+
constructor(opts) {
|
|
147
|
+
super({
|
|
148
|
+
name: "LimitExceededException",
|
|
149
|
+
$fault: "client",
|
|
150
|
+
...opts,
|
|
151
|
+
});
|
|
152
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
153
|
+
this.errorCode = opts.errorCode;
|
|
154
|
+
this.canRetry = opts.canRetry;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.LimitExceededException = LimitExceededException;
|
|
158
|
+
class PreviewGenerationInProgressException extends InspectorServiceException_1.InspectorServiceException {
|
|
159
|
+
name = "PreviewGenerationInProgressException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "PreviewGenerationInProgressException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.PreviewGenerationInProgressException = PreviewGenerationInProgressException;
|
|
171
|
+
class UnsupportedFeatureException extends InspectorServiceException_1.InspectorServiceException {
|
|
172
|
+
name = "UnsupportedFeatureException";
|
|
173
|
+
$fault = "client";
|
|
174
|
+
canRetry;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "UnsupportedFeatureException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
|
|
182
|
+
this.canRetry = opts.canRetry;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.UnsupportedFeatureException = UnsupportedFeatureException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2016-02-16",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.inspector",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2016-02-16",
|
|
33
35
|
serviceTarget: "InspectorService",
|
|
34
36
|
},
|