@aws-sdk/client-docdb-elastic 3.221.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/LICENSE +201 -0
- package/README.md +205 -0
- package/dist-cjs/DocDBElastic.js +202 -0
- package/dist-cjs/DocDBElasticClient.js +40 -0
- package/dist-cjs/commands/CreateClusterCommand.js +46 -0
- package/dist-cjs/commands/CreateClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/DeleteClusterCommand.js +46 -0
- package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/GetClusterCommand.js +46 -0
- package/dist-cjs/commands/GetClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/ListClusterSnapshotsCommand.js +46 -0
- package/dist-cjs/commands/ListClustersCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateClusterCommand.js +46 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/DocDBElasticServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +255 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1197 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/DocDBElastic.js +198 -0
- package/dist-es/DocDBElasticClient.js +36 -0
- package/dist-es/commands/CreateClusterCommand.js +42 -0
- package/dist-es/commands/CreateClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/DeleteClusterCommand.js +42 -0
- package/dist-es/commands/DeleteClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/GetClusterCommand.js +42 -0
- package/dist-es/commands/GetClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/ListClusterSnapshotsCommand.js +42 -0
- package/dist-es/commands/ListClustersCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/RestoreClusterFromSnapshotCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateClusterCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/DocDBElasticServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +214 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClusterSnapshotsPaginator.js +32 -0
- package/dist-es/pagination/ListClustersPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1168 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/DocDBElastic.d.ts +99 -0
- package/dist-types/DocDBElasticClient.d.ts +154 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +37 -0
- package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +37 -0
- package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/GetClusterCommand.d.ts +37 -0
- package/dist-types/commands/GetClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +37 -0
- package/dist-types/commands/ListClustersCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/DocDBElasticServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +782 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListClusterSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +41 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/DocDBElastic.d.ts +225 -0
- package/dist-types/ts3.4/DocDBElasticClient.d.ts +190 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateClusterSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteClusterSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetClusterSnapshotCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListClusterSnapshotsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RestoreClusterFromSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/DocDBElasticServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +320 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListClusterSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +103 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
exports.ruleSet = {
|
|
5
|
+
version: "1.0",
|
|
6
|
+
parameters: {
|
|
7
|
+
Region: {
|
|
8
|
+
builtIn: "AWS::Region",
|
|
9
|
+
required: true,
|
|
10
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
11
|
+
type: "String",
|
|
12
|
+
},
|
|
13
|
+
UseDualStack: {
|
|
14
|
+
builtIn: "AWS::UseDualStack",
|
|
15
|
+
required: true,
|
|
16
|
+
default: false,
|
|
17
|
+
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
18
|
+
type: "Boolean",
|
|
19
|
+
},
|
|
20
|
+
UseFIPS: {
|
|
21
|
+
builtIn: "AWS::UseFIPS",
|
|
22
|
+
required: true,
|
|
23
|
+
default: false,
|
|
24
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
25
|
+
type: "Boolean",
|
|
26
|
+
},
|
|
27
|
+
Endpoint: {
|
|
28
|
+
builtIn: "SDK::Endpoint",
|
|
29
|
+
required: false,
|
|
30
|
+
documentation: "Override the endpoint used to send this request",
|
|
31
|
+
type: "String",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
rules: [
|
|
35
|
+
{
|
|
36
|
+
conditions: [
|
|
37
|
+
{
|
|
38
|
+
fn: "aws.partition",
|
|
39
|
+
argv: [
|
|
40
|
+
{
|
|
41
|
+
ref: "Region",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
assign: "PartitionResult",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
type: "tree",
|
|
48
|
+
rules: [
|
|
49
|
+
{
|
|
50
|
+
conditions: [
|
|
51
|
+
{
|
|
52
|
+
fn: "isSet",
|
|
53
|
+
argv: [
|
|
54
|
+
{
|
|
55
|
+
ref: "Endpoint",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
fn: "parseURL",
|
|
61
|
+
argv: [
|
|
62
|
+
{
|
|
63
|
+
ref: "Endpoint",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
assign: "url",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
type: "tree",
|
|
70
|
+
rules: [
|
|
71
|
+
{
|
|
72
|
+
conditions: [
|
|
73
|
+
{
|
|
74
|
+
fn: "booleanEquals",
|
|
75
|
+
argv: [
|
|
76
|
+
{
|
|
77
|
+
ref: "UseFIPS",
|
|
78
|
+
},
|
|
79
|
+
true,
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
conditions: [],
|
|
88
|
+
type: "tree",
|
|
89
|
+
rules: [
|
|
90
|
+
{
|
|
91
|
+
conditions: [
|
|
92
|
+
{
|
|
93
|
+
fn: "booleanEquals",
|
|
94
|
+
argv: [
|
|
95
|
+
{
|
|
96
|
+
ref: "UseDualStack",
|
|
97
|
+
},
|
|
98
|
+
true,
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
103
|
+
type: "error",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
conditions: [],
|
|
107
|
+
endpoint: {
|
|
108
|
+
url: {
|
|
109
|
+
ref: "Endpoint",
|
|
110
|
+
},
|
|
111
|
+
properties: {},
|
|
112
|
+
headers: {},
|
|
113
|
+
},
|
|
114
|
+
type: "endpoint",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
conditions: [
|
|
122
|
+
{
|
|
123
|
+
fn: "booleanEquals",
|
|
124
|
+
argv: [
|
|
125
|
+
{
|
|
126
|
+
ref: "UseFIPS",
|
|
127
|
+
},
|
|
128
|
+
true,
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
fn: "booleanEquals",
|
|
133
|
+
argv: [
|
|
134
|
+
{
|
|
135
|
+
ref: "UseDualStack",
|
|
136
|
+
},
|
|
137
|
+
true,
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
type: "tree",
|
|
142
|
+
rules: [
|
|
143
|
+
{
|
|
144
|
+
conditions: [
|
|
145
|
+
{
|
|
146
|
+
fn: "booleanEquals",
|
|
147
|
+
argv: [
|
|
148
|
+
true,
|
|
149
|
+
{
|
|
150
|
+
fn: "getAttr",
|
|
151
|
+
argv: [
|
|
152
|
+
{
|
|
153
|
+
ref: "PartitionResult",
|
|
154
|
+
},
|
|
155
|
+
"supportsFIPS",
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
fn: "booleanEquals",
|
|
162
|
+
argv: [
|
|
163
|
+
true,
|
|
164
|
+
{
|
|
165
|
+
fn: "getAttr",
|
|
166
|
+
argv: [
|
|
167
|
+
{
|
|
168
|
+
ref: "PartitionResult",
|
|
169
|
+
},
|
|
170
|
+
"supportsDualStack",
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
type: "tree",
|
|
177
|
+
rules: [
|
|
178
|
+
{
|
|
179
|
+
conditions: [],
|
|
180
|
+
endpoint: {
|
|
181
|
+
url: "https://docdb-elastic-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
182
|
+
properties: {},
|
|
183
|
+
headers: {},
|
|
184
|
+
},
|
|
185
|
+
type: "endpoint",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
conditions: [],
|
|
191
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
192
|
+
type: "error",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
conditions: [
|
|
198
|
+
{
|
|
199
|
+
fn: "booleanEquals",
|
|
200
|
+
argv: [
|
|
201
|
+
{
|
|
202
|
+
ref: "UseFIPS",
|
|
203
|
+
},
|
|
204
|
+
true,
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
type: "tree",
|
|
209
|
+
rules: [
|
|
210
|
+
{
|
|
211
|
+
conditions: [
|
|
212
|
+
{
|
|
213
|
+
fn: "booleanEquals",
|
|
214
|
+
argv: [
|
|
215
|
+
true,
|
|
216
|
+
{
|
|
217
|
+
fn: "getAttr",
|
|
218
|
+
argv: [
|
|
219
|
+
{
|
|
220
|
+
ref: "PartitionResult",
|
|
221
|
+
},
|
|
222
|
+
"supportsFIPS",
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
type: "tree",
|
|
229
|
+
rules: [
|
|
230
|
+
{
|
|
231
|
+
conditions: [],
|
|
232
|
+
endpoint: {
|
|
233
|
+
url: "https://docdb-elastic-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
234
|
+
properties: {},
|
|
235
|
+
headers: {},
|
|
236
|
+
},
|
|
237
|
+
type: "endpoint",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
conditions: [],
|
|
243
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
244
|
+
type: "error",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
conditions: [
|
|
250
|
+
{
|
|
251
|
+
fn: "booleanEquals",
|
|
252
|
+
argv: [
|
|
253
|
+
{
|
|
254
|
+
ref: "UseDualStack",
|
|
255
|
+
},
|
|
256
|
+
true,
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
type: "tree",
|
|
261
|
+
rules: [
|
|
262
|
+
{
|
|
263
|
+
conditions: [
|
|
264
|
+
{
|
|
265
|
+
fn: "booleanEquals",
|
|
266
|
+
argv: [
|
|
267
|
+
true,
|
|
268
|
+
{
|
|
269
|
+
fn: "getAttr",
|
|
270
|
+
argv: [
|
|
271
|
+
{
|
|
272
|
+
ref: "PartitionResult",
|
|
273
|
+
},
|
|
274
|
+
"supportsDualStack",
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
type: "tree",
|
|
281
|
+
rules: [
|
|
282
|
+
{
|
|
283
|
+
conditions: [],
|
|
284
|
+
endpoint: {
|
|
285
|
+
url: "https://docdb-elastic.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
286
|
+
properties: {},
|
|
287
|
+
headers: {},
|
|
288
|
+
},
|
|
289
|
+
type: "endpoint",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
conditions: [],
|
|
295
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
296
|
+
type: "error",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
conditions: [],
|
|
302
|
+
endpoint: {
|
|
303
|
+
url: "https://docdb-elastic.{Region}.{PartitionResult#dnsSuffix}",
|
|
304
|
+
properties: {},
|
|
305
|
+
headers: {},
|
|
306
|
+
},
|
|
307
|
+
type: "endpoint",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocDBElasticServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./DocDBElastic"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DocDBElasticClient"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var DocDBElasticServiceException_1 = require("./models/DocDBElasticServiceException");
|
|
11
|
+
Object.defineProperty(exports, "DocDBElasticServiceException", { enumerable: true, get: function () { return DocDBElasticServiceException_1.DocDBElasticServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocDBElasticServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class DocDBElasticServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, DocDBElasticServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.DocDBElasticServiceException = DocDBElasticServiceException;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateClusterOutputFilterSensitiveLog = exports.UpdateClusterInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RestoreClusterFromSnapshotOutputFilterSensitiveLog = exports.RestoreClusterFromSnapshotInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListClusterSnapshotsOutputFilterSensitiveLog = exports.ClusterSnapshotInListFilterSensitiveLog = exports.ListClusterSnapshotsInputFilterSensitiveLog = exports.ListClustersOutputFilterSensitiveLog = exports.ClusterInListFilterSensitiveLog = exports.ListClustersInputFilterSensitiveLog = exports.GetClusterSnapshotOutputFilterSensitiveLog = exports.GetClusterSnapshotInputFilterSensitiveLog = exports.GetClusterOutputFilterSensitiveLog = exports.GetClusterInputFilterSensitiveLog = exports.DeleteClusterSnapshotOutputFilterSensitiveLog = exports.DeleteClusterSnapshotInputFilterSensitiveLog = exports.DeleteClusterOutputFilterSensitiveLog = exports.DeleteClusterInputFilterSensitiveLog = exports.CreateClusterSnapshotOutputFilterSensitiveLog = exports.ClusterSnapshotFilterSensitiveLog = exports.CreateClusterSnapshotInputFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.CreateClusterOutputFilterSensitiveLog = exports.ClusterFilterSensitiveLog = exports.CreateClusterInputFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.Status = exports.ConflictException = exports.Auth = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const DocDBElasticServiceException_1 = require("./DocDBElasticServiceException");
|
|
6
|
+
class AccessDeniedException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
var Auth;
|
|
20
|
+
(function (Auth) {
|
|
21
|
+
Auth["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
22
|
+
Auth["SECRET_ARN"] = "SECRET_ARN";
|
|
23
|
+
})(Auth = exports.Auth || (exports.Auth = {}));
|
|
24
|
+
class ConflictException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "ConflictException",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
this.name = "ConflictException";
|
|
32
|
+
this.$fault = "client";
|
|
33
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
34
|
+
this.resourceId = opts.resourceId;
|
|
35
|
+
this.resourceType = opts.resourceType;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ConflictException = ConflictException;
|
|
39
|
+
var Status;
|
|
40
|
+
(function (Status) {
|
|
41
|
+
Status["ACTIVE"] = "ACTIVE";
|
|
42
|
+
Status["CREATING"] = "CREATING";
|
|
43
|
+
Status["DELETING"] = "DELETING";
|
|
44
|
+
Status["INACCESSIBLE_ENCRYPTION_CREDS"] = "INACCESSIBLE_ENCRYPTION_CREDS";
|
|
45
|
+
Status["INVALID_SECURITY_GROUP_ID"] = "INVALID_SECURITY_GROUP_ID";
|
|
46
|
+
Status["INVALID_SUBNET_ID"] = "INVALID_SUBNET_ID";
|
|
47
|
+
Status["IP_ADDRESS_LIMIT_EXCEEDED"] = "IP_ADDRESS_LIMIT_EXCEEDED";
|
|
48
|
+
Status["UPDATING"] = "UPDATING";
|
|
49
|
+
Status["VPC_ENDPOINT_LIMIT_EXCEEDED"] = "VPC_ENDPOINT_LIMIT_EXCEEDED";
|
|
50
|
+
})(Status = exports.Status || (exports.Status = {}));
|
|
51
|
+
class InternalServerException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
52
|
+
constructor(opts) {
|
|
53
|
+
super({
|
|
54
|
+
name: "InternalServerException",
|
|
55
|
+
$fault: "server",
|
|
56
|
+
...opts,
|
|
57
|
+
});
|
|
58
|
+
this.name = "InternalServerException";
|
|
59
|
+
this.$fault = "server";
|
|
60
|
+
this.$retryable = {};
|
|
61
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.InternalServerException = InternalServerException;
|
|
65
|
+
class ServiceQuotaExceededException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "ServiceQuotaExceededException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
this.name = "ServiceQuotaExceededException";
|
|
73
|
+
this.$fault = "client";
|
|
74
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
78
|
+
class ThrottlingException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "ThrottlingException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
this.name = "ThrottlingException";
|
|
86
|
+
this.$fault = "client";
|
|
87
|
+
this.$retryable = {};
|
|
88
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
89
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.ThrottlingException = ThrottlingException;
|
|
93
|
+
var ValidationExceptionReason;
|
|
94
|
+
(function (ValidationExceptionReason) {
|
|
95
|
+
ValidationExceptionReason["CANNOT_PARSE"] = "cannotParse";
|
|
96
|
+
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "fieldValidationFailed";
|
|
97
|
+
ValidationExceptionReason["OTHER"] = "other";
|
|
98
|
+
ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
|
|
99
|
+
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
100
|
+
class ValidationException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "ValidationException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
this.name = "ValidationException";
|
|
108
|
+
this.$fault = "client";
|
|
109
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
110
|
+
this.reason = opts.reason;
|
|
111
|
+
this.fieldList = opts.fieldList;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.ValidationException = ValidationException;
|
|
115
|
+
class ResourceNotFoundException extends DocDBElasticServiceException_1.DocDBElasticServiceException {
|
|
116
|
+
constructor(opts) {
|
|
117
|
+
super({
|
|
118
|
+
name: "ResourceNotFoundException",
|
|
119
|
+
$fault: "client",
|
|
120
|
+
...opts,
|
|
121
|
+
});
|
|
122
|
+
this.name = "ResourceNotFoundException";
|
|
123
|
+
this.$fault = "client";
|
|
124
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
125
|
+
this.resourceId = opts.resourceId;
|
|
126
|
+
this.resourceType = opts.resourceType;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
130
|
+
const CreateClusterInputFilterSensitiveLog = (obj) => ({
|
|
131
|
+
...obj,
|
|
132
|
+
...(obj.adminUserPassword && { adminUserPassword: smithy_client_1.SENSITIVE_STRING }),
|
|
133
|
+
});
|
|
134
|
+
exports.CreateClusterInputFilterSensitiveLog = CreateClusterInputFilterSensitiveLog;
|
|
135
|
+
const ClusterFilterSensitiveLog = (obj) => ({
|
|
136
|
+
...obj,
|
|
137
|
+
});
|
|
138
|
+
exports.ClusterFilterSensitiveLog = ClusterFilterSensitiveLog;
|
|
139
|
+
const CreateClusterOutputFilterSensitiveLog = (obj) => ({
|
|
140
|
+
...obj,
|
|
141
|
+
});
|
|
142
|
+
exports.CreateClusterOutputFilterSensitiveLog = CreateClusterOutputFilterSensitiveLog;
|
|
143
|
+
const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
144
|
+
...obj,
|
|
145
|
+
});
|
|
146
|
+
exports.ValidationExceptionFieldFilterSensitiveLog = ValidationExceptionFieldFilterSensitiveLog;
|
|
147
|
+
const CreateClusterSnapshotInputFilterSensitiveLog = (obj) => ({
|
|
148
|
+
...obj,
|
|
149
|
+
});
|
|
150
|
+
exports.CreateClusterSnapshotInputFilterSensitiveLog = CreateClusterSnapshotInputFilterSensitiveLog;
|
|
151
|
+
const ClusterSnapshotFilterSensitiveLog = (obj) => ({
|
|
152
|
+
...obj,
|
|
153
|
+
});
|
|
154
|
+
exports.ClusterSnapshotFilterSensitiveLog = ClusterSnapshotFilterSensitiveLog;
|
|
155
|
+
const CreateClusterSnapshotOutputFilterSensitiveLog = (obj) => ({
|
|
156
|
+
...obj,
|
|
157
|
+
});
|
|
158
|
+
exports.CreateClusterSnapshotOutputFilterSensitiveLog = CreateClusterSnapshotOutputFilterSensitiveLog;
|
|
159
|
+
const DeleteClusterInputFilterSensitiveLog = (obj) => ({
|
|
160
|
+
...obj,
|
|
161
|
+
});
|
|
162
|
+
exports.DeleteClusterInputFilterSensitiveLog = DeleteClusterInputFilterSensitiveLog;
|
|
163
|
+
const DeleteClusterOutputFilterSensitiveLog = (obj) => ({
|
|
164
|
+
...obj,
|
|
165
|
+
});
|
|
166
|
+
exports.DeleteClusterOutputFilterSensitiveLog = DeleteClusterOutputFilterSensitiveLog;
|
|
167
|
+
const DeleteClusterSnapshotInputFilterSensitiveLog = (obj) => ({
|
|
168
|
+
...obj,
|
|
169
|
+
});
|
|
170
|
+
exports.DeleteClusterSnapshotInputFilterSensitiveLog = DeleteClusterSnapshotInputFilterSensitiveLog;
|
|
171
|
+
const DeleteClusterSnapshotOutputFilterSensitiveLog = (obj) => ({
|
|
172
|
+
...obj,
|
|
173
|
+
});
|
|
174
|
+
exports.DeleteClusterSnapshotOutputFilterSensitiveLog = DeleteClusterSnapshotOutputFilterSensitiveLog;
|
|
175
|
+
const GetClusterInputFilterSensitiveLog = (obj) => ({
|
|
176
|
+
...obj,
|
|
177
|
+
});
|
|
178
|
+
exports.GetClusterInputFilterSensitiveLog = GetClusterInputFilterSensitiveLog;
|
|
179
|
+
const GetClusterOutputFilterSensitiveLog = (obj) => ({
|
|
180
|
+
...obj,
|
|
181
|
+
});
|
|
182
|
+
exports.GetClusterOutputFilterSensitiveLog = GetClusterOutputFilterSensitiveLog;
|
|
183
|
+
const GetClusterSnapshotInputFilterSensitiveLog = (obj) => ({
|
|
184
|
+
...obj,
|
|
185
|
+
});
|
|
186
|
+
exports.GetClusterSnapshotInputFilterSensitiveLog = GetClusterSnapshotInputFilterSensitiveLog;
|
|
187
|
+
const GetClusterSnapshotOutputFilterSensitiveLog = (obj) => ({
|
|
188
|
+
...obj,
|
|
189
|
+
});
|
|
190
|
+
exports.GetClusterSnapshotOutputFilterSensitiveLog = GetClusterSnapshotOutputFilterSensitiveLog;
|
|
191
|
+
const ListClustersInputFilterSensitiveLog = (obj) => ({
|
|
192
|
+
...obj,
|
|
193
|
+
});
|
|
194
|
+
exports.ListClustersInputFilterSensitiveLog = ListClustersInputFilterSensitiveLog;
|
|
195
|
+
const ClusterInListFilterSensitiveLog = (obj) => ({
|
|
196
|
+
...obj,
|
|
197
|
+
});
|
|
198
|
+
exports.ClusterInListFilterSensitiveLog = ClusterInListFilterSensitiveLog;
|
|
199
|
+
const ListClustersOutputFilterSensitiveLog = (obj) => ({
|
|
200
|
+
...obj,
|
|
201
|
+
});
|
|
202
|
+
exports.ListClustersOutputFilterSensitiveLog = ListClustersOutputFilterSensitiveLog;
|
|
203
|
+
const ListClusterSnapshotsInputFilterSensitiveLog = (obj) => ({
|
|
204
|
+
...obj,
|
|
205
|
+
});
|
|
206
|
+
exports.ListClusterSnapshotsInputFilterSensitiveLog = ListClusterSnapshotsInputFilterSensitiveLog;
|
|
207
|
+
const ClusterSnapshotInListFilterSensitiveLog = (obj) => ({
|
|
208
|
+
...obj,
|
|
209
|
+
});
|
|
210
|
+
exports.ClusterSnapshotInListFilterSensitiveLog = ClusterSnapshotInListFilterSensitiveLog;
|
|
211
|
+
const ListClusterSnapshotsOutputFilterSensitiveLog = (obj) => ({
|
|
212
|
+
...obj,
|
|
213
|
+
});
|
|
214
|
+
exports.ListClusterSnapshotsOutputFilterSensitiveLog = ListClusterSnapshotsOutputFilterSensitiveLog;
|
|
215
|
+
const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
216
|
+
...obj,
|
|
217
|
+
});
|
|
218
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog;
|
|
219
|
+
const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
220
|
+
...obj,
|
|
221
|
+
});
|
|
222
|
+
exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
|
|
223
|
+
const RestoreClusterFromSnapshotInputFilterSensitiveLog = (obj) => ({
|
|
224
|
+
...obj,
|
|
225
|
+
});
|
|
226
|
+
exports.RestoreClusterFromSnapshotInputFilterSensitiveLog = RestoreClusterFromSnapshotInputFilterSensitiveLog;
|
|
227
|
+
const RestoreClusterFromSnapshotOutputFilterSensitiveLog = (obj) => ({
|
|
228
|
+
...obj,
|
|
229
|
+
});
|
|
230
|
+
exports.RestoreClusterFromSnapshotOutputFilterSensitiveLog = RestoreClusterFromSnapshotOutputFilterSensitiveLog;
|
|
231
|
+
const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
232
|
+
...obj,
|
|
233
|
+
});
|
|
234
|
+
exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
|
|
235
|
+
const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
});
|
|
238
|
+
exports.TagResourceResponseFilterSensitiveLog = TagResourceResponseFilterSensitiveLog;
|
|
239
|
+
const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
});
|
|
242
|
+
exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
|
|
243
|
+
const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
});
|
|
246
|
+
exports.UntagResourceResponseFilterSensitiveLog = UntagResourceResponseFilterSensitiveLog;
|
|
247
|
+
const UpdateClusterInputFilterSensitiveLog = (obj) => ({
|
|
248
|
+
...obj,
|
|
249
|
+
...(obj.adminUserPassword && { adminUserPassword: smithy_client_1.SENSITIVE_STRING }),
|
|
250
|
+
});
|
|
251
|
+
exports.UpdateClusterInputFilterSensitiveLog = UpdateClusterInputFilterSensitiveLog;
|
|
252
|
+
const UpdateClusterOutputFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
});
|
|
255
|
+
exports.UpdateClusterOutputFilterSensitiveLog = UpdateClusterOutputFilterSensitiveLog;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClusterSnapshots = void 0;
|
|
4
|
+
const ListClusterSnapshotsCommand_1 = require("../commands/ListClusterSnapshotsCommand");
|
|
5
|
+
const DocDBElastic_1 = require("../DocDBElastic");
|
|
6
|
+
const DocDBElasticClient_1 = require("../DocDBElasticClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListClusterSnapshotsCommand_1.ListClusterSnapshotsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listClusterSnapshots(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListClusterSnapshots(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof DocDBElastic_1.DocDBElastic) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof DocDBElasticClient_1.DocDBElasticClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected DocDBElastic | DocDBElasticClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListClusterSnapshots = paginateListClusterSnapshots;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClusters = void 0;
|
|
4
|
+
const ListClustersCommand_1 = require("../commands/ListClustersCommand");
|
|
5
|
+
const DocDBElastic_1 = require("../DocDBElastic");
|
|
6
|
+
const DocDBElasticClient_1 = require("../DocDBElasticClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listClusters(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListClusters(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof DocDBElastic_1.DocDBElastic) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof DocDBElasticClient_1.DocDBElasticClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected DocDBElastic | DocDBElasticClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListClusters = paginateListClusters;
|