@aws-sdk/client-api-gateway 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 +143 -2607
- package/dist-cjs/models/APIGatewayServiceException.js +12 -0
- package/dist-cjs/models/errors.js +101 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2085 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +62 -56
- package/dist-types/schemas/schemas_0.d.ts +15 -8
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -8
- package/package.json +14 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APIGatewayServiceException = 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 APIGatewayServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, APIGatewayServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.APIGatewayServiceException = APIGatewayServiceException;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceUnavailableException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.NotFoundException = exports.LimitExceededException = exports.ConflictException = exports.BadRequestException = void 0;
|
|
4
|
+
const APIGatewayServiceException_1 = require("./APIGatewayServiceException");
|
|
5
|
+
class BadRequestException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
6
|
+
name = "BadRequestException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "BadRequestException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.BadRequestException = BadRequestException;
|
|
18
|
+
class ConflictException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
19
|
+
name = "ConflictException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ConflictException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ConflictException = ConflictException;
|
|
31
|
+
class LimitExceededException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
32
|
+
name = "LimitExceededException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
retryAfterSeconds;
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "LimitExceededException",
|
|
38
|
+
$fault: "client",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
42
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.LimitExceededException = LimitExceededException;
|
|
46
|
+
class NotFoundException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
47
|
+
name = "NotFoundException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "NotFoundException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.NotFoundException = NotFoundException;
|
|
59
|
+
class TooManyRequestsException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
60
|
+
name = "TooManyRequestsException";
|
|
61
|
+
$fault = "client";
|
|
62
|
+
retryAfterSeconds;
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "TooManyRequestsException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
70
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
74
|
+
class UnauthorizedException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
75
|
+
name = "UnauthorizedException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "UnauthorizedException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
87
|
+
class ServiceUnavailableException extends APIGatewayServiceException_1.APIGatewayServiceException {
|
|
88
|
+
name = "ServiceUnavailableException";
|
|
89
|
+
$fault = "server";
|
|
90
|
+
retryAfterSeconds;
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "ServiceUnavailableException",
|
|
94
|
+
$fault: "server",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
98
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
@@ -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-07-09",
|
|
@@ -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.apigateway",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2015-07-09",
|
|
33
35
|
serviceTarget: "BackplaneControlService",
|
|
34
36
|
},
|