@aws-sdk/client-securityhub 3.986.0 → 3.988.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 +126 -10859
- package/dist-cjs/models/SecurityHubServiceException.js +12 -0
- package/dist-cjs/models/errors.js +225 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +9507 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +102 -96
- package/dist-types/schemas/schemas_0.d.ts +21 -14
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -14
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityHubServiceException = 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 SecurityHubServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SecurityHubServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SecurityHubServiceException = SecurityHubServiceException;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceInUseException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidInputException = exports.InvalidAccessException = exports.InternalException = void 0;
|
|
4
|
+
const SecurityHubServiceException_1 = require("./SecurityHubServiceException");
|
|
5
|
+
class InternalException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
6
|
+
name = "InternalException";
|
|
7
|
+
$fault = "server";
|
|
8
|
+
Message;
|
|
9
|
+
Code;
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super({
|
|
12
|
+
name: "InternalException",
|
|
13
|
+
$fault: "server",
|
|
14
|
+
...opts,
|
|
15
|
+
});
|
|
16
|
+
Object.setPrototypeOf(this, InternalException.prototype);
|
|
17
|
+
this.Message = opts.Message;
|
|
18
|
+
this.Code = opts.Code;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.InternalException = InternalException;
|
|
22
|
+
class InvalidAccessException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
23
|
+
name = "InvalidAccessException";
|
|
24
|
+
$fault = "client";
|
|
25
|
+
Message;
|
|
26
|
+
Code;
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "InvalidAccessException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts,
|
|
32
|
+
});
|
|
33
|
+
Object.setPrototypeOf(this, InvalidAccessException.prototype);
|
|
34
|
+
this.Message = opts.Message;
|
|
35
|
+
this.Code = opts.Code;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.InvalidAccessException = InvalidAccessException;
|
|
39
|
+
class InvalidInputException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
40
|
+
name = "InvalidInputException";
|
|
41
|
+
$fault = "client";
|
|
42
|
+
Message;
|
|
43
|
+
Code;
|
|
44
|
+
constructor(opts) {
|
|
45
|
+
super({
|
|
46
|
+
name: "InvalidInputException",
|
|
47
|
+
$fault: "client",
|
|
48
|
+
...opts,
|
|
49
|
+
});
|
|
50
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
51
|
+
this.Message = opts.Message;
|
|
52
|
+
this.Code = opts.Code;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.InvalidInputException = InvalidInputException;
|
|
56
|
+
class LimitExceededException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
57
|
+
name = "LimitExceededException";
|
|
58
|
+
$fault = "client";
|
|
59
|
+
Message;
|
|
60
|
+
Code;
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "LimitExceededException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
68
|
+
this.Message = opts.Message;
|
|
69
|
+
this.Code = opts.Code;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.LimitExceededException = LimitExceededException;
|
|
73
|
+
class ResourceNotFoundException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
74
|
+
name = "ResourceNotFoundException";
|
|
75
|
+
$fault = "client";
|
|
76
|
+
Message;
|
|
77
|
+
Code;
|
|
78
|
+
constructor(opts) {
|
|
79
|
+
super({
|
|
80
|
+
name: "ResourceNotFoundException",
|
|
81
|
+
$fault: "client",
|
|
82
|
+
...opts,
|
|
83
|
+
});
|
|
84
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
85
|
+
this.Message = opts.Message;
|
|
86
|
+
this.Code = opts.Code;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
90
|
+
class AccessDeniedException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
91
|
+
name = "AccessDeniedException";
|
|
92
|
+
$fault = "client";
|
|
93
|
+
Message;
|
|
94
|
+
Code;
|
|
95
|
+
constructor(opts) {
|
|
96
|
+
super({
|
|
97
|
+
name: "AccessDeniedException",
|
|
98
|
+
$fault: "client",
|
|
99
|
+
...opts,
|
|
100
|
+
});
|
|
101
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
102
|
+
this.Message = opts.Message;
|
|
103
|
+
this.Code = opts.Code;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
107
|
+
class ConflictException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
108
|
+
name = "ConflictException";
|
|
109
|
+
$fault = "client";
|
|
110
|
+
Message;
|
|
111
|
+
Code;
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "ConflictException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
119
|
+
this.Message = opts.Message;
|
|
120
|
+
this.Code = opts.Code;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.ConflictException = ConflictException;
|
|
124
|
+
class InternalServerException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
125
|
+
name = "InternalServerException";
|
|
126
|
+
$fault = "server";
|
|
127
|
+
Message;
|
|
128
|
+
Code;
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "InternalServerException",
|
|
132
|
+
$fault: "server",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
136
|
+
this.Message = opts.Message;
|
|
137
|
+
this.Code = opts.Code;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.InternalServerException = InternalServerException;
|
|
141
|
+
class ThrottlingException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
142
|
+
name = "ThrottlingException";
|
|
143
|
+
$fault = "client";
|
|
144
|
+
Message;
|
|
145
|
+
Code;
|
|
146
|
+
constructor(opts) {
|
|
147
|
+
super({
|
|
148
|
+
name: "ThrottlingException",
|
|
149
|
+
$fault: "client",
|
|
150
|
+
...opts,
|
|
151
|
+
});
|
|
152
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
153
|
+
this.Message = opts.Message;
|
|
154
|
+
this.Code = opts.Code;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.ThrottlingException = ThrottlingException;
|
|
158
|
+
class ValidationException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
159
|
+
name = "ValidationException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
Message;
|
|
162
|
+
Code;
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "ValidationException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
170
|
+
this.Message = opts.Message;
|
|
171
|
+
this.Code = opts.Code;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
exports.ValidationException = ValidationException;
|
|
175
|
+
class ResourceConflictException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
176
|
+
name = "ResourceConflictException";
|
|
177
|
+
$fault = "client";
|
|
178
|
+
Message;
|
|
179
|
+
Code;
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "ResourceConflictException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts,
|
|
185
|
+
});
|
|
186
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
187
|
+
this.Message = opts.Message;
|
|
188
|
+
this.Code = opts.Code;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
192
|
+
class ServiceQuotaExceededException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
193
|
+
name = "ServiceQuotaExceededException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
Message;
|
|
196
|
+
Code;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ServiceQuotaExceededException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
this.Code = opts.Code;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
209
|
+
class ResourceInUseException extends SecurityHubServiceException_1.SecurityHubServiceException {
|
|
210
|
+
name = "ResourceInUseException";
|
|
211
|
+
$fault = "client";
|
|
212
|
+
Message;
|
|
213
|
+
Code;
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ResourceInUseException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
221
|
+
this.Message = opts.Message;
|
|
222
|
+
this.Code = opts.Code;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
@@ -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: "2018-10-26",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.securityhub",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2018-10-26",
|
|
33
35
|
serviceTarget: "SecurityHubAPIService",
|
|
34
36
|
},
|