@aws-sdk/client-waf 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 +96 -2586
- package/dist-cjs/models/WAFServiceException.js +12 -0
- package/dist-cjs/models/errors.js +261 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1958 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +124 -118
- package/dist-types/schemas/schemas_0.d.ts +27 -20
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -20
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WAFServiceException = 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 WAFServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, WAFServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.WAFServiceException = WAFServiceException;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WAFSubscriptionNotFoundException = exports.WAFInvalidRegexPatternException = exports.WAFNonexistentContainerException = exports.WAFInvalidPermissionPolicyException = exports.WAFServiceLinkedRoleErrorException = exports.WAFReferencedItemException = exports.WAFNonEmptyEntityException = exports.WAFNonexistentItemException = exports.WAFInvalidOperationException = exports.WAFEntityMigrationException = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFBadRequestException = exports.WAFStaleDataException = exports.WAFLimitsExceededException = exports.WAFInvalidParameterException = exports.WAFInvalidAccountException = exports.WAFInternalErrorException = exports.WAFDisallowedNameException = void 0;
|
|
4
|
+
const WAFServiceException_1 = require("./WAFServiceException");
|
|
5
|
+
class WAFDisallowedNameException extends WAFServiceException_1.WAFServiceException {
|
|
6
|
+
name = "WAFDisallowedNameException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "WAFDisallowedNameException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, WAFDisallowedNameException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.WAFDisallowedNameException = WAFDisallowedNameException;
|
|
18
|
+
class WAFInternalErrorException extends WAFServiceException_1.WAFServiceException {
|
|
19
|
+
name = "WAFInternalErrorException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "WAFInternalErrorException",
|
|
24
|
+
$fault: "server",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, WAFInternalErrorException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.WAFInternalErrorException = WAFInternalErrorException;
|
|
31
|
+
class WAFInvalidAccountException extends WAFServiceException_1.WAFServiceException {
|
|
32
|
+
name = "WAFInvalidAccountException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "WAFInvalidAccountException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, WAFInvalidAccountException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.WAFInvalidAccountException = WAFInvalidAccountException;
|
|
44
|
+
class WAFInvalidParameterException extends WAFServiceException_1.WAFServiceException {
|
|
45
|
+
name = "WAFInvalidParameterException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
field;
|
|
48
|
+
parameter;
|
|
49
|
+
reason;
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "WAFInvalidParameterException",
|
|
53
|
+
$fault: "client",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
Object.setPrototypeOf(this, WAFInvalidParameterException.prototype);
|
|
57
|
+
this.field = opts.field;
|
|
58
|
+
this.parameter = opts.parameter;
|
|
59
|
+
this.reason = opts.reason;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.WAFInvalidParameterException = WAFInvalidParameterException;
|
|
63
|
+
class WAFLimitsExceededException extends WAFServiceException_1.WAFServiceException {
|
|
64
|
+
name = "WAFLimitsExceededException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "WAFLimitsExceededException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.WAFLimitsExceededException = WAFLimitsExceededException;
|
|
76
|
+
class WAFStaleDataException extends WAFServiceException_1.WAFServiceException {
|
|
77
|
+
name = "WAFStaleDataException";
|
|
78
|
+
$fault = "client";
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "WAFStaleDataException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
Object.setPrototypeOf(this, WAFStaleDataException.prototype);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.WAFStaleDataException = WAFStaleDataException;
|
|
89
|
+
class WAFBadRequestException extends WAFServiceException_1.WAFServiceException {
|
|
90
|
+
name = "WAFBadRequestException";
|
|
91
|
+
$fault = "client";
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "WAFBadRequestException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
Object.setPrototypeOf(this, WAFBadRequestException.prototype);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.WAFBadRequestException = WAFBadRequestException;
|
|
102
|
+
class WAFTagOperationException extends WAFServiceException_1.WAFServiceException {
|
|
103
|
+
name = "WAFTagOperationException";
|
|
104
|
+
$fault = "client";
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "WAFTagOperationException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
Object.setPrototypeOf(this, WAFTagOperationException.prototype);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.WAFTagOperationException = WAFTagOperationException;
|
|
115
|
+
class WAFTagOperationInternalErrorException extends WAFServiceException_1.WAFServiceException {
|
|
116
|
+
name = "WAFTagOperationInternalErrorException";
|
|
117
|
+
$fault = "server";
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "WAFTagOperationInternalErrorException",
|
|
121
|
+
$fault: "server",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
Object.setPrototypeOf(this, WAFTagOperationInternalErrorException.prototype);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.WAFTagOperationInternalErrorException = WAFTagOperationInternalErrorException;
|
|
128
|
+
class WAFEntityMigrationException extends WAFServiceException_1.WAFServiceException {
|
|
129
|
+
name = "WAFEntityMigrationException";
|
|
130
|
+
$fault = "client";
|
|
131
|
+
MigrationErrorType;
|
|
132
|
+
MigrationErrorReason;
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "WAFEntityMigrationException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, WAFEntityMigrationException.prototype);
|
|
140
|
+
this.MigrationErrorType = opts.MigrationErrorType;
|
|
141
|
+
this.MigrationErrorReason = opts.MigrationErrorReason;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.WAFEntityMigrationException = WAFEntityMigrationException;
|
|
145
|
+
class WAFInvalidOperationException extends WAFServiceException_1.WAFServiceException {
|
|
146
|
+
name = "WAFInvalidOperationException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "WAFInvalidOperationException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, WAFInvalidOperationException.prototype);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.WAFInvalidOperationException = WAFInvalidOperationException;
|
|
158
|
+
class WAFNonexistentItemException extends WAFServiceException_1.WAFServiceException {
|
|
159
|
+
name = "WAFNonexistentItemException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "WAFNonexistentItemException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, WAFNonexistentItemException.prototype);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.WAFNonexistentItemException = WAFNonexistentItemException;
|
|
171
|
+
class WAFNonEmptyEntityException extends WAFServiceException_1.WAFServiceException {
|
|
172
|
+
name = "WAFNonEmptyEntityException";
|
|
173
|
+
$fault = "client";
|
|
174
|
+
constructor(opts) {
|
|
175
|
+
super({
|
|
176
|
+
name: "WAFNonEmptyEntityException",
|
|
177
|
+
$fault: "client",
|
|
178
|
+
...opts,
|
|
179
|
+
});
|
|
180
|
+
Object.setPrototypeOf(this, WAFNonEmptyEntityException.prototype);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.WAFNonEmptyEntityException = WAFNonEmptyEntityException;
|
|
184
|
+
class WAFReferencedItemException extends WAFServiceException_1.WAFServiceException {
|
|
185
|
+
name = "WAFReferencedItemException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "WAFReferencedItemException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts,
|
|
192
|
+
});
|
|
193
|
+
Object.setPrototypeOf(this, WAFReferencedItemException.prototype);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.WAFReferencedItemException = WAFReferencedItemException;
|
|
197
|
+
class WAFServiceLinkedRoleErrorException extends WAFServiceException_1.WAFServiceException {
|
|
198
|
+
name = "WAFServiceLinkedRoleErrorException";
|
|
199
|
+
$fault = "client";
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "WAFServiceLinkedRoleErrorException",
|
|
203
|
+
$fault: "client",
|
|
204
|
+
...opts,
|
|
205
|
+
});
|
|
206
|
+
Object.setPrototypeOf(this, WAFServiceLinkedRoleErrorException.prototype);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.WAFServiceLinkedRoleErrorException = WAFServiceLinkedRoleErrorException;
|
|
210
|
+
class WAFInvalidPermissionPolicyException extends WAFServiceException_1.WAFServiceException {
|
|
211
|
+
name = "WAFInvalidPermissionPolicyException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "WAFInvalidPermissionPolicyException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
Object.setPrototypeOf(this, WAFInvalidPermissionPolicyException.prototype);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
exports.WAFInvalidPermissionPolicyException = WAFInvalidPermissionPolicyException;
|
|
223
|
+
class WAFNonexistentContainerException extends WAFServiceException_1.WAFServiceException {
|
|
224
|
+
name = "WAFNonexistentContainerException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
constructor(opts) {
|
|
227
|
+
super({
|
|
228
|
+
name: "WAFNonexistentContainerException",
|
|
229
|
+
$fault: "client",
|
|
230
|
+
...opts,
|
|
231
|
+
});
|
|
232
|
+
Object.setPrototypeOf(this, WAFNonexistentContainerException.prototype);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
exports.WAFNonexistentContainerException = WAFNonexistentContainerException;
|
|
236
|
+
class WAFInvalidRegexPatternException extends WAFServiceException_1.WAFServiceException {
|
|
237
|
+
name = "WAFInvalidRegexPatternException";
|
|
238
|
+
$fault = "client";
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "WAFInvalidRegexPatternException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, WAFInvalidRegexPatternException.prototype);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.WAFInvalidRegexPatternException = WAFInvalidRegexPatternException;
|
|
249
|
+
class WAFSubscriptionNotFoundException extends WAFServiceException_1.WAFServiceException {
|
|
250
|
+
name = "WAFSubscriptionNotFoundException";
|
|
251
|
+
$fault = "client";
|
|
252
|
+
constructor(opts) {
|
|
253
|
+
super({
|
|
254
|
+
name: "WAFSubscriptionNotFoundException",
|
|
255
|
+
$fault: "client",
|
|
256
|
+
...opts,
|
|
257
|
+
});
|
|
258
|
+
Object.setPrototypeOf(this, WAFSubscriptionNotFoundException.prototype);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
exports.WAFSubscriptionNotFoundException = WAFSubscriptionNotFoundException;
|
|
@@ -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: "2015-08-24",
|
|
@@ -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.waf",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://waf.amazonaws.com/doc/2015-08-24/",
|
|
33
35
|
version: "2015-08-24",
|
|
34
36
|
serviceTarget: "AWSWAF_20150824",
|