@aws-sdk/client-redshift-serverless 3.987.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 +84 -2046
- package/dist-cjs/models/RedshiftServerlessServiceException.js +12 -0
- package/dist-cjs/models/errors.js +171 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1595 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +86 -80
- package/dist-types/schemas/schemas_0.d.ts +19 -12
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -12
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedshiftServerlessServiceException = 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 RedshiftServerlessServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, RedshiftServerlessServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.RedshiftServerlessServiceException = RedshiftServerlessServiceException;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidPaginationException = exports.DryRunException = exports.Ipv6CidrBlockNotFoundException = exports.InsufficientCapacityException = exports.ThrottlingException = exports.ValidationException = exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const RedshiftServerlessServiceException_1 = require("./RedshiftServerlessServiceException");
|
|
5
|
+
class AccessDeniedException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
code;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.code = opts.code;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
constructor(opts) {
|
|
24
|
+
super({
|
|
25
|
+
name: "ConflictException",
|
|
26
|
+
$fault: "client",
|
|
27
|
+
...opts,
|
|
28
|
+
});
|
|
29
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ConflictException = ConflictException;
|
|
33
|
+
class InternalServerException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
34
|
+
name = "InternalServerException";
|
|
35
|
+
$fault = "server";
|
|
36
|
+
$retryable = {};
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "InternalServerException",
|
|
40
|
+
$fault: "server",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.InternalServerException = InternalServerException;
|
|
47
|
+
class ResourceNotFoundException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
48
|
+
name = "ResourceNotFoundException";
|
|
49
|
+
$fault = "client";
|
|
50
|
+
resourceName;
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "ResourceNotFoundException",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
58
|
+
this.resourceName = opts.resourceName;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
62
|
+
class ServiceQuotaExceededException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
63
|
+
name = "ServiceQuotaExceededException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "ServiceQuotaExceededException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
75
|
+
class TooManyTagsException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
76
|
+
name = "TooManyTagsException";
|
|
77
|
+
$fault = "client";
|
|
78
|
+
resourceName;
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "TooManyTagsException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
86
|
+
this.resourceName = opts.resourceName;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
90
|
+
class ValidationException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
91
|
+
name = "ValidationException";
|
|
92
|
+
$fault = "client";
|
|
93
|
+
constructor(opts) {
|
|
94
|
+
super({
|
|
95
|
+
name: "ValidationException",
|
|
96
|
+
$fault: "client",
|
|
97
|
+
...opts,
|
|
98
|
+
});
|
|
99
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.ValidationException = ValidationException;
|
|
103
|
+
class ThrottlingException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
104
|
+
name = "ThrottlingException";
|
|
105
|
+
$fault = "client";
|
|
106
|
+
$retryable = {};
|
|
107
|
+
code;
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
super({
|
|
110
|
+
name: "ThrottlingException",
|
|
111
|
+
$fault: "client",
|
|
112
|
+
...opts,
|
|
113
|
+
});
|
|
114
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
115
|
+
this.code = opts.code;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ThrottlingException = ThrottlingException;
|
|
119
|
+
class InsufficientCapacityException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
120
|
+
name = "InsufficientCapacityException";
|
|
121
|
+
$fault = "client";
|
|
122
|
+
$retryable = {};
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "InsufficientCapacityException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.InsufficientCapacityException = InsufficientCapacityException;
|
|
133
|
+
class Ipv6CidrBlockNotFoundException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
134
|
+
name = "Ipv6CidrBlockNotFoundException";
|
|
135
|
+
$fault = "client";
|
|
136
|
+
constructor(opts) {
|
|
137
|
+
super({
|
|
138
|
+
name: "Ipv6CidrBlockNotFoundException",
|
|
139
|
+
$fault: "client",
|
|
140
|
+
...opts,
|
|
141
|
+
});
|
|
142
|
+
Object.setPrototypeOf(this, Ipv6CidrBlockNotFoundException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.Ipv6CidrBlockNotFoundException = Ipv6CidrBlockNotFoundException;
|
|
146
|
+
class DryRunException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
147
|
+
name = "DryRunException";
|
|
148
|
+
$fault = "client";
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "DryRunException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, DryRunException.prototype);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.DryRunException = DryRunException;
|
|
159
|
+
class InvalidPaginationException extends RedshiftServerlessServiceException_1.RedshiftServerlessServiceException {
|
|
160
|
+
name = "InvalidPaginationException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "InvalidPaginationException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, InvalidPaginationException.prototype);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.InvalidPaginationException = InvalidPaginationException;
|
|
@@ -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: "2021-04-21",
|
|
@@ -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.redshiftserverless",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2021-04-21",
|
|
33
35
|
serviceTarget: "RedshiftServerless",
|
|
34
36
|
},
|