@aws-sdk/client-docdb-elastic 3.1074.0 → 3.1076.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 +870 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/DocDBElasticServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -101
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -560
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultDocDBElasticHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "docdb-elastic",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultDocDBElasticHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,743 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://docdb-elastic-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://docdb-elastic-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://docdb-elastic.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://docdb-elastic.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class DocDBElasticServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, DocDBElasticServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class AccessDeniedException extends DocDBElasticServiceException {
|
|
140
|
+
name = "AccessDeniedException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "AccessDeniedException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class ConflictException extends DocDBElasticServiceException {
|
|
152
|
+
name = "ConflictException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
resourceId;
|
|
155
|
+
resourceType;
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "ConflictException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
163
|
+
this.resourceId = opts.resourceId;
|
|
164
|
+
this.resourceType = opts.resourceType;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
class InternalServerException extends DocDBElasticServiceException {
|
|
168
|
+
name = "InternalServerException";
|
|
169
|
+
$fault = "server";
|
|
170
|
+
$retryable = {};
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "InternalServerException",
|
|
174
|
+
$fault: "server",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class ResourceNotFoundException extends DocDBElasticServiceException {
|
|
181
|
+
name = "ResourceNotFoundException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
resourceId;
|
|
184
|
+
resourceType;
|
|
185
|
+
constructor(opts) {
|
|
186
|
+
super({
|
|
187
|
+
name: "ResourceNotFoundException",
|
|
188
|
+
$fault: "client",
|
|
189
|
+
...opts,
|
|
190
|
+
});
|
|
191
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
192
|
+
this.resourceId = opts.resourceId;
|
|
193
|
+
this.resourceType = opts.resourceType;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class ThrottlingException extends DocDBElasticServiceException {
|
|
197
|
+
name = "ThrottlingException";
|
|
198
|
+
$fault = "client";
|
|
199
|
+
$retryable = {};
|
|
200
|
+
retryAfterSeconds;
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "ThrottlingException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts,
|
|
206
|
+
});
|
|
207
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
208
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class ValidationException extends DocDBElasticServiceException {
|
|
212
|
+
name = "ValidationException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
reason;
|
|
215
|
+
fieldList;
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ValidationException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
223
|
+
this.reason = opts.reason;
|
|
224
|
+
this.fieldList = opts.fieldList;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
class ServiceQuotaExceededException extends DocDBElasticServiceException {
|
|
228
|
+
name = "ServiceQuotaExceededException";
|
|
229
|
+
$fault = "client";
|
|
230
|
+
constructor(opts) {
|
|
231
|
+
super({
|
|
232
|
+
name: "ServiceQuotaExceededException",
|
|
233
|
+
$fault: "client",
|
|
234
|
+
...opts,
|
|
235
|
+
});
|
|
236
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const _ADE = "AccessDeniedException";
|
|
241
|
+
const _APMA = "ApplyPendingMaintenanceAction";
|
|
242
|
+
const _APMAI = "ApplyPendingMaintenanceActionInput";
|
|
243
|
+
const _APMAO = "ApplyPendingMaintenanceActionOutput";
|
|
244
|
+
const _C = "Cluster";
|
|
245
|
+
const _CC = "CreateCluster";
|
|
246
|
+
const _CCI = "CreateClusterInput";
|
|
247
|
+
const _CCO = "CreateClusterOutput";
|
|
248
|
+
const _CCS = "CopyClusterSnapshot";
|
|
249
|
+
const _CCSI = "CopyClusterSnapshotInput";
|
|
250
|
+
const _CCSIr = "CreateClusterSnapshotInput";
|
|
251
|
+
const _CCSO = "CopyClusterSnapshotOutput";
|
|
252
|
+
const _CCSOr = "CreateClusterSnapshotOutput";
|
|
253
|
+
const _CCSr = "CreateClusterSnapshot";
|
|
254
|
+
const _CE = "ConflictException";
|
|
255
|
+
const _CIL = "ClusterInList";
|
|
256
|
+
const _CL = "ClusterList";
|
|
257
|
+
const _CS = "ClusterSnapshot";
|
|
258
|
+
const _CSIL = "ClusterSnapshotInList";
|
|
259
|
+
const _CSL = "ClusterSnapshotList";
|
|
260
|
+
const _DC = "DeleteCluster";
|
|
261
|
+
const _DCI = "DeleteClusterInput";
|
|
262
|
+
const _DCO = "DeleteClusterOutput";
|
|
263
|
+
const _DCS = "DeleteClusterSnapshot";
|
|
264
|
+
const _DCSI = "DeleteClusterSnapshotInput";
|
|
265
|
+
const _DCSO = "DeleteClusterSnapshotOutput";
|
|
266
|
+
const _GC = "GetCluster";
|
|
267
|
+
const _GCI = "GetClusterInput";
|
|
268
|
+
const _GCO = "GetClusterOutput";
|
|
269
|
+
const _GCS = "GetClusterSnapshot";
|
|
270
|
+
const _GCSI = "GetClusterSnapshotInput";
|
|
271
|
+
const _GCSO = "GetClusterSnapshotOutput";
|
|
272
|
+
const _GPMA = "GetPendingMaintenanceAction";
|
|
273
|
+
const _GPMAI = "GetPendingMaintenanceActionInput";
|
|
274
|
+
const _GPMAO = "GetPendingMaintenanceActionOutput";
|
|
275
|
+
const _ISE = "InternalServerException";
|
|
276
|
+
const _LC = "ListClusters";
|
|
277
|
+
const _LCI = "ListClustersInput";
|
|
278
|
+
const _LCO = "ListClustersOutput";
|
|
279
|
+
const _LCS = "ListClusterSnapshots";
|
|
280
|
+
const _LCSI = "ListClusterSnapshotsInput";
|
|
281
|
+
const _LCSO = "ListClusterSnapshotsOutput";
|
|
282
|
+
const _LPMA = "ListPendingMaintenanceActions";
|
|
283
|
+
const _LPMAI = "ListPendingMaintenanceActionsInput";
|
|
284
|
+
const _LPMAO = "ListPendingMaintenanceActionsOutput";
|
|
285
|
+
const _LTFR = "ListTagsForResource";
|
|
286
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
287
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
288
|
+
const _P = "Password";
|
|
289
|
+
const _PMAD = "PendingMaintenanceActionDetails";
|
|
290
|
+
const _PMADL = "PendingMaintenanceActionDetailsList";
|
|
291
|
+
const _RA = "Retry-After";
|
|
292
|
+
const _RCFS = "RestoreClusterFromSnapshot";
|
|
293
|
+
const _RCFSI = "RestoreClusterFromSnapshotInput";
|
|
294
|
+
const _RCFSO = "RestoreClusterFromSnapshotOutput";
|
|
295
|
+
const _RNFE = "ResourceNotFoundException";
|
|
296
|
+
const _RPMA = "ResourcePendingMaintenanceAction";
|
|
297
|
+
const _RPMAL = "ResourcePendingMaintenanceActionList";
|
|
298
|
+
const _S = "Shard";
|
|
299
|
+
const _SC = "StartCluster";
|
|
300
|
+
const _SCI = "StartClusterInput";
|
|
301
|
+
const _SCIt = "StopClusterInput";
|
|
302
|
+
const _SCO = "StartClusterOutput";
|
|
303
|
+
const _SCOt = "StopClusterOutput";
|
|
304
|
+
const _SCt = "StopCluster";
|
|
305
|
+
const _SL = "ShardList";
|
|
306
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
307
|
+
const _TE = "ThrottlingException";
|
|
308
|
+
const _TR = "TagResource";
|
|
309
|
+
const _TRR = "TagResourceRequest";
|
|
310
|
+
const _TRRa = "TagResourceResponse";
|
|
311
|
+
const _UC = "UpdateCluster";
|
|
312
|
+
const _UCI = "UpdateClusterInput";
|
|
313
|
+
const _UCO = "UpdateClusterOutput";
|
|
314
|
+
const _UR = "UntagResource";
|
|
315
|
+
const _URR = "UntagResourceRequest";
|
|
316
|
+
const _URRn = "UntagResourceResponse";
|
|
317
|
+
const _VE = "ValidationException";
|
|
318
|
+
const _VEF = "ValidationExceptionField";
|
|
319
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
320
|
+
const _a = "action";
|
|
321
|
+
const _aA = "applyAction";
|
|
322
|
+
const _aAAD = "autoAppliedAfterDate";
|
|
323
|
+
const _aO = "applyOn";
|
|
324
|
+
const _aT = "authType";
|
|
325
|
+
const _aUN = "adminUserName";
|
|
326
|
+
const _aUP = "adminUserPassword";
|
|
327
|
+
const _bRP = "backupRetentionPeriod";
|
|
328
|
+
const _c = "client";
|
|
329
|
+
const _cA = "clusterArn";
|
|
330
|
+
const _cAD = "currentApplyDate";
|
|
331
|
+
const _cCT = "clusterCreationTime";
|
|
332
|
+
const _cE = "clusterEndpoint";
|
|
333
|
+
const _cN = "clusterName";
|
|
334
|
+
const _cT = "createTime";
|
|
335
|
+
const _cTl = "clientToken";
|
|
336
|
+
const _cTo = "copyTags";
|
|
337
|
+
const _cl = "cluster";
|
|
338
|
+
const _clu = "clusters";
|
|
339
|
+
const _d = "description";
|
|
340
|
+
const _e = "error";
|
|
341
|
+
const _fAD = "forcedApplyDate";
|
|
342
|
+
const _fL = "fieldList";
|
|
343
|
+
const _h = "http";
|
|
344
|
+
const _hE = "httpError";
|
|
345
|
+
const _hH = "httpHeader";
|
|
346
|
+
const _hQ = "httpQuery";
|
|
347
|
+
const _kKI = "kmsKeyId";
|
|
348
|
+
const _m = "message";
|
|
349
|
+
const _mR = "maxResults";
|
|
350
|
+
const _n = "name";
|
|
351
|
+
const _nT = "nextToken";
|
|
352
|
+
const _oIS = "optInStatus";
|
|
353
|
+
const _oIT = "optInType";
|
|
354
|
+
const _pBW = "preferredBackupWindow";
|
|
355
|
+
const _pMAD = "pendingMaintenanceActionDetails";
|
|
356
|
+
const _pMW = "preferredMaintenanceWindow";
|
|
357
|
+
const _r = "reason";
|
|
358
|
+
const _rA = "resourceArn";
|
|
359
|
+
const _rAS = "retryAfterSeconds";
|
|
360
|
+
const _rI = "resourceId";
|
|
361
|
+
const _rPMA = "resourcePendingMaintenanceAction";
|
|
362
|
+
const _rPMAe = "resourcePendingMaintenanceActions";
|
|
363
|
+
const _rT = "resourceType";
|
|
364
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.docdbelastic";
|
|
365
|
+
const _sA = "snapshotArn";
|
|
366
|
+
const _sC = "shardCapacity";
|
|
367
|
+
const _sCT = "snapshotCreationTime";
|
|
368
|
+
const _sCh = "shardCount";
|
|
369
|
+
const _sI = "subnetIds";
|
|
370
|
+
const _sIC = "shardInstanceCount";
|
|
371
|
+
const _sIh = "shardId";
|
|
372
|
+
const _sN = "snapshotName";
|
|
373
|
+
const _sT = "snapshotType";
|
|
374
|
+
const _se = "server";
|
|
375
|
+
const _sh = "shards";
|
|
376
|
+
const _sn = "snapshot";
|
|
377
|
+
const _sna = "snapshots";
|
|
378
|
+
const _st = "status";
|
|
379
|
+
const _t = "tags";
|
|
380
|
+
const _tK = "tagKeys";
|
|
381
|
+
const _tSN = "targetSnapshotName";
|
|
382
|
+
const _vSGI = "vpcSecurityGroupIds";
|
|
383
|
+
const n0 = "com.amazonaws.docdbelastic";
|
|
384
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
385
|
+
var DocDBElasticServiceException$ = [-3, _s, "DocDBElasticServiceException", 0, [], []];
|
|
386
|
+
_s_registry.registerError(DocDBElasticServiceException$, DocDBElasticServiceException);
|
|
387
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
388
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
389
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
390
|
+
[_m],
|
|
391
|
+
[0], 1
|
|
392
|
+
];
|
|
393
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
394
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
395
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
396
|
+
[_m, _rI, _rT],
|
|
397
|
+
[0, 0, 0], 3
|
|
398
|
+
];
|
|
399
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
400
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
401
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
402
|
+
[_m],
|
|
403
|
+
[0], 1
|
|
404
|
+
];
|
|
405
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
406
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
407
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
408
|
+
[_m, _rI, _rT],
|
|
409
|
+
[0, 0, 0], 3
|
|
410
|
+
];
|
|
411
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
412
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
413
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
414
|
+
[_m],
|
|
415
|
+
[0], 1
|
|
416
|
+
];
|
|
417
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
418
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
419
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
420
|
+
[_m, _rAS],
|
|
421
|
+
[0, [1, { [_hH]: _RA }]], 1
|
|
422
|
+
];
|
|
423
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
424
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
425
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
426
|
+
[_m, _r, _fL],
|
|
427
|
+
[0, 0, () => ValidationExceptionFieldList], 2
|
|
428
|
+
];
|
|
429
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
430
|
+
const errorTypeRegistries = [
|
|
431
|
+
_s_registry,
|
|
432
|
+
n0_registry,
|
|
433
|
+
];
|
|
434
|
+
var Password = [0, n0, _P, 8, 0];
|
|
435
|
+
var ApplyPendingMaintenanceActionInput$ = [3, n0, _APMAI,
|
|
436
|
+
0,
|
|
437
|
+
[_rA, _aA, _oIT, _aO],
|
|
438
|
+
[0, 0, 0, 0], 3
|
|
439
|
+
];
|
|
440
|
+
var ApplyPendingMaintenanceActionOutput$ = [3, n0, _APMAO,
|
|
441
|
+
0,
|
|
442
|
+
[_rPMA],
|
|
443
|
+
[() => ResourcePendingMaintenanceAction$], 1
|
|
444
|
+
];
|
|
445
|
+
var Cluster$ = [3, n0, _C,
|
|
446
|
+
0,
|
|
447
|
+
[_cN, _cA, _st, _cE, _cT, _aUN, _aT, _sC, _sCh, _vSGI, _sI, _pMW, _kKI, _sh, _bRP, _pBW, _sIC],
|
|
448
|
+
[0, 0, 0, 0, 0, 0, 0, 1, 1, 64 | 0, 64 | 0, 0, 0, () => ShardList, 1, 0, 1], 13
|
|
449
|
+
];
|
|
450
|
+
var ClusterInList$ = [3, n0, _CIL,
|
|
451
|
+
0,
|
|
452
|
+
[_cN, _cA, _st],
|
|
453
|
+
[0, 0, 0], 3
|
|
454
|
+
];
|
|
455
|
+
var ClusterSnapshot$ = [3, n0, _CS,
|
|
456
|
+
0,
|
|
457
|
+
[_sI, _sN, _sA, _sCT, _cA, _cCT, _st, _vSGI, _aUN, _kKI, _sT],
|
|
458
|
+
[64 | 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0], 10
|
|
459
|
+
];
|
|
460
|
+
var ClusterSnapshotInList$ = [3, n0, _CSIL,
|
|
461
|
+
0,
|
|
462
|
+
[_sN, _sA, _cA, _st, _sCT],
|
|
463
|
+
[0, 0, 0, 0, 0], 5
|
|
464
|
+
];
|
|
465
|
+
var CopyClusterSnapshotInput$ = [3, n0, _CCSI,
|
|
466
|
+
0,
|
|
467
|
+
[_sA, _tSN, _kKI, _cTo, _t],
|
|
468
|
+
[[0, 1], 0, 0, 2, 128 | 0], 2
|
|
469
|
+
];
|
|
470
|
+
var CopyClusterSnapshotOutput$ = [3, n0, _CCSO,
|
|
471
|
+
0,
|
|
472
|
+
[_sn],
|
|
473
|
+
[() => ClusterSnapshot$], 1
|
|
474
|
+
];
|
|
475
|
+
var CreateClusterInput$ = [3, n0, _CCI,
|
|
476
|
+
0,
|
|
477
|
+
[_cN, _aT, _aUN, _aUP, _sC, _sCh, _vSGI, _sI, _kKI, _cTl, _pMW, _t, _bRP, _pBW, _sIC],
|
|
478
|
+
[0, 0, 0, [() => Password, 0], 1, 1, 64 | 0, 64 | 0, 0, [0, 4], 0, 128 | 0, 1, 0, 1], 6
|
|
479
|
+
];
|
|
480
|
+
var CreateClusterOutput$ = [3, n0, _CCO,
|
|
481
|
+
0,
|
|
482
|
+
[_cl],
|
|
483
|
+
[() => Cluster$], 1
|
|
484
|
+
];
|
|
485
|
+
var CreateClusterSnapshotInput$ = [3, n0, _CCSIr,
|
|
486
|
+
0,
|
|
487
|
+
[_cA, _sN, _t],
|
|
488
|
+
[0, 0, 128 | 0], 2
|
|
489
|
+
];
|
|
490
|
+
var CreateClusterSnapshotOutput$ = [3, n0, _CCSOr,
|
|
491
|
+
0,
|
|
492
|
+
[_sn],
|
|
493
|
+
[() => ClusterSnapshot$], 1
|
|
494
|
+
];
|
|
495
|
+
var DeleteClusterInput$ = [3, n0, _DCI,
|
|
496
|
+
0,
|
|
497
|
+
[_cA],
|
|
498
|
+
[[0, 1]], 1
|
|
499
|
+
];
|
|
500
|
+
var DeleteClusterOutput$ = [3, n0, _DCO,
|
|
501
|
+
0,
|
|
502
|
+
[_cl],
|
|
503
|
+
[() => Cluster$], 1
|
|
504
|
+
];
|
|
505
|
+
var DeleteClusterSnapshotInput$ = [3, n0, _DCSI,
|
|
506
|
+
0,
|
|
507
|
+
[_sA],
|
|
508
|
+
[[0, 1]], 1
|
|
509
|
+
];
|
|
510
|
+
var DeleteClusterSnapshotOutput$ = [3, n0, _DCSO,
|
|
511
|
+
0,
|
|
512
|
+
[_sn],
|
|
513
|
+
[() => ClusterSnapshot$], 1
|
|
514
|
+
];
|
|
515
|
+
var GetClusterInput$ = [3, n0, _GCI,
|
|
516
|
+
0,
|
|
517
|
+
[_cA],
|
|
518
|
+
[[0, 1]], 1
|
|
519
|
+
];
|
|
520
|
+
var GetClusterOutput$ = [3, n0, _GCO,
|
|
521
|
+
0,
|
|
522
|
+
[_cl],
|
|
523
|
+
[() => Cluster$], 1
|
|
524
|
+
];
|
|
525
|
+
var GetClusterSnapshotInput$ = [3, n0, _GCSI,
|
|
526
|
+
0,
|
|
527
|
+
[_sA],
|
|
528
|
+
[[0, 1]], 1
|
|
529
|
+
];
|
|
530
|
+
var GetClusterSnapshotOutput$ = [3, n0, _GCSO,
|
|
531
|
+
0,
|
|
532
|
+
[_sn],
|
|
533
|
+
[() => ClusterSnapshot$], 1
|
|
534
|
+
];
|
|
535
|
+
var GetPendingMaintenanceActionInput$ = [3, n0, _GPMAI,
|
|
536
|
+
0,
|
|
537
|
+
[_rA],
|
|
538
|
+
[[0, 1]], 1
|
|
539
|
+
];
|
|
540
|
+
var GetPendingMaintenanceActionOutput$ = [3, n0, _GPMAO,
|
|
541
|
+
0,
|
|
542
|
+
[_rPMA],
|
|
543
|
+
[() => ResourcePendingMaintenanceAction$], 1
|
|
544
|
+
];
|
|
545
|
+
var ListClustersInput$ = [3, n0, _LCI,
|
|
546
|
+
0,
|
|
547
|
+
[_nT, _mR],
|
|
548
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
549
|
+
];
|
|
550
|
+
var ListClusterSnapshotsInput$ = [3, n0, _LCSI,
|
|
551
|
+
0,
|
|
552
|
+
[_cA, _nT, _mR, _sT],
|
|
553
|
+
[[0, { [_hQ]: _cA }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _sT }]]
|
|
554
|
+
];
|
|
555
|
+
var ListClusterSnapshotsOutput$ = [3, n0, _LCSO,
|
|
556
|
+
0,
|
|
557
|
+
[_sna, _nT],
|
|
558
|
+
[() => ClusterSnapshotList, 0]
|
|
559
|
+
];
|
|
560
|
+
var ListClustersOutput$ = [3, n0, _LCO,
|
|
561
|
+
0,
|
|
562
|
+
[_clu, _nT],
|
|
563
|
+
[() => ClusterList, 0]
|
|
564
|
+
];
|
|
565
|
+
var ListPendingMaintenanceActionsInput$ = [3, n0, _LPMAI,
|
|
566
|
+
0,
|
|
567
|
+
[_nT, _mR],
|
|
568
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
569
|
+
];
|
|
570
|
+
var ListPendingMaintenanceActionsOutput$ = [3, n0, _LPMAO,
|
|
571
|
+
0,
|
|
572
|
+
[_rPMAe, _nT],
|
|
573
|
+
[() => ResourcePendingMaintenanceActionList, 0], 1
|
|
574
|
+
];
|
|
575
|
+
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
576
|
+
0,
|
|
577
|
+
[_rA],
|
|
578
|
+
[[0, 1]], 1
|
|
579
|
+
];
|
|
580
|
+
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
581
|
+
0,
|
|
582
|
+
[_t],
|
|
583
|
+
[128 | 0]
|
|
584
|
+
];
|
|
585
|
+
var PendingMaintenanceActionDetails$ = [3, n0, _PMAD,
|
|
586
|
+
0,
|
|
587
|
+
[_a, _aAAD, _fAD, _oIS, _cAD, _d],
|
|
588
|
+
[0, 0, 0, 0, 0, 0], 1
|
|
589
|
+
];
|
|
590
|
+
var ResourcePendingMaintenanceAction$ = [3, n0, _RPMA,
|
|
591
|
+
0,
|
|
592
|
+
[_rA, _pMAD],
|
|
593
|
+
[0, () => PendingMaintenanceActionDetailsList]
|
|
594
|
+
];
|
|
595
|
+
var RestoreClusterFromSnapshotInput$ = [3, n0, _RCFSI,
|
|
596
|
+
0,
|
|
597
|
+
[_cN, _sA, _vSGI, _sI, _kKI, _t, _sC, _sIC],
|
|
598
|
+
[0, [0, 1], 64 | 0, 64 | 0, 0, 128 | 0, 1, 1], 2
|
|
599
|
+
];
|
|
600
|
+
var RestoreClusterFromSnapshotOutput$ = [3, n0, _RCFSO,
|
|
601
|
+
0,
|
|
602
|
+
[_cl],
|
|
603
|
+
[() => Cluster$], 1
|
|
604
|
+
];
|
|
605
|
+
var Shard$ = [3, n0, _S,
|
|
606
|
+
0,
|
|
607
|
+
[_sIh, _cT, _st],
|
|
608
|
+
[0, 0, 0], 3
|
|
609
|
+
];
|
|
610
|
+
var StartClusterInput$ = [3, n0, _SCI,
|
|
611
|
+
0,
|
|
612
|
+
[_cA],
|
|
613
|
+
[[0, 1]], 1
|
|
614
|
+
];
|
|
615
|
+
var StartClusterOutput$ = [3, n0, _SCO,
|
|
616
|
+
0,
|
|
617
|
+
[_cl],
|
|
618
|
+
[() => Cluster$], 1
|
|
619
|
+
];
|
|
620
|
+
var StopClusterInput$ = [3, n0, _SCIt,
|
|
621
|
+
0,
|
|
622
|
+
[_cA],
|
|
623
|
+
[[0, 1]], 1
|
|
624
|
+
];
|
|
625
|
+
var StopClusterOutput$ = [3, n0, _SCOt,
|
|
626
|
+
0,
|
|
627
|
+
[_cl],
|
|
628
|
+
[() => Cluster$], 1
|
|
629
|
+
];
|
|
630
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
631
|
+
0,
|
|
632
|
+
[_rA, _t],
|
|
633
|
+
[[0, 1], 128 | 0], 2
|
|
634
|
+
];
|
|
635
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
636
|
+
0,
|
|
637
|
+
[],
|
|
638
|
+
[]
|
|
639
|
+
];
|
|
640
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
641
|
+
0,
|
|
642
|
+
[_rA, _tK],
|
|
643
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
644
|
+
];
|
|
645
|
+
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
646
|
+
0,
|
|
647
|
+
[],
|
|
648
|
+
[]
|
|
649
|
+
];
|
|
650
|
+
var UpdateClusterInput$ = [3, n0, _UCI,
|
|
651
|
+
0,
|
|
652
|
+
[_cA, _aT, _sC, _sCh, _vSGI, _sI, _aUP, _cTl, _pMW, _bRP, _pBW, _sIC],
|
|
653
|
+
[[0, 1], 0, 1, 1, 64 | 0, 64 | 0, [() => Password, 0], [0, 4], 0, 1, 0, 1], 1
|
|
654
|
+
];
|
|
655
|
+
var UpdateClusterOutput$ = [3, n0, _UCO,
|
|
656
|
+
0,
|
|
657
|
+
[_cl],
|
|
658
|
+
[() => Cluster$], 1
|
|
659
|
+
];
|
|
660
|
+
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
661
|
+
0,
|
|
662
|
+
[_n, _m],
|
|
663
|
+
[0, 0], 2
|
|
664
|
+
];
|
|
665
|
+
var ClusterList = [1, n0, _CL,
|
|
666
|
+
0, () => ClusterInList$
|
|
667
|
+
];
|
|
668
|
+
var ClusterSnapshotList = [1, n0, _CSL,
|
|
669
|
+
0, () => ClusterSnapshotInList$
|
|
670
|
+
];
|
|
671
|
+
var PendingMaintenanceActionDetailsList = [1, n0, _PMADL,
|
|
672
|
+
0, () => PendingMaintenanceActionDetails$
|
|
673
|
+
];
|
|
674
|
+
var ResourcePendingMaintenanceActionList = [1, n0, _RPMAL,
|
|
675
|
+
0, () => ResourcePendingMaintenanceAction$
|
|
676
|
+
];
|
|
677
|
+
var ShardList = [1, n0, _SL,
|
|
678
|
+
0, () => Shard$
|
|
679
|
+
];
|
|
680
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
681
|
+
0, () => ValidationExceptionField$
|
|
682
|
+
];
|
|
683
|
+
var ApplyPendingMaintenanceAction$ = [9, n0, _APMA,
|
|
684
|
+
{ [_h]: ["POST", "/pending-action", 200] }, () => ApplyPendingMaintenanceActionInput$, () => ApplyPendingMaintenanceActionOutput$
|
|
685
|
+
];
|
|
686
|
+
var CopyClusterSnapshot$ = [9, n0, _CCS,
|
|
687
|
+
{ [_h]: ["POST", "/cluster-snapshot/{snapshotArn}/copy", 200] }, () => CopyClusterSnapshotInput$, () => CopyClusterSnapshotOutput$
|
|
688
|
+
];
|
|
689
|
+
var CreateCluster$ = [9, n0, _CC,
|
|
690
|
+
{ [_h]: ["POST", "/cluster", 200] }, () => CreateClusterInput$, () => CreateClusterOutput$
|
|
691
|
+
];
|
|
692
|
+
var CreateClusterSnapshot$ = [9, n0, _CCSr,
|
|
693
|
+
{ [_h]: ["POST", "/cluster-snapshot", 200] }, () => CreateClusterSnapshotInput$, () => CreateClusterSnapshotOutput$
|
|
694
|
+
];
|
|
695
|
+
var DeleteCluster$ = [9, n0, _DC,
|
|
696
|
+
{ [_h]: ["DELETE", "/cluster/{clusterArn}", 200] }, () => DeleteClusterInput$, () => DeleteClusterOutput$
|
|
697
|
+
];
|
|
698
|
+
var DeleteClusterSnapshot$ = [9, n0, _DCS,
|
|
699
|
+
{ [_h]: ["DELETE", "/cluster-snapshot/{snapshotArn}", 200] }, () => DeleteClusterSnapshotInput$, () => DeleteClusterSnapshotOutput$
|
|
700
|
+
];
|
|
701
|
+
var GetCluster$ = [9, n0, _GC,
|
|
702
|
+
{ [_h]: ["GET", "/cluster/{clusterArn}", 200] }, () => GetClusterInput$, () => GetClusterOutput$
|
|
703
|
+
];
|
|
704
|
+
var GetClusterSnapshot$ = [9, n0, _GCS,
|
|
705
|
+
{ [_h]: ["GET", "/cluster-snapshot/{snapshotArn}", 200] }, () => GetClusterSnapshotInput$, () => GetClusterSnapshotOutput$
|
|
706
|
+
];
|
|
707
|
+
var GetPendingMaintenanceAction$ = [9, n0, _GPMA,
|
|
708
|
+
{ [_h]: ["GET", "/pending-action/{resourceArn}", 200] }, () => GetPendingMaintenanceActionInput$, () => GetPendingMaintenanceActionOutput$
|
|
709
|
+
];
|
|
710
|
+
var ListClusters$ = [9, n0, _LC,
|
|
711
|
+
{ [_h]: ["GET", "/clusters", 200] }, () => ListClustersInput$, () => ListClustersOutput$
|
|
712
|
+
];
|
|
713
|
+
var ListClusterSnapshots$ = [9, n0, _LCS,
|
|
714
|
+
{ [_h]: ["GET", "/cluster-snapshots", 200] }, () => ListClusterSnapshotsInput$, () => ListClusterSnapshotsOutput$
|
|
715
|
+
];
|
|
716
|
+
var ListPendingMaintenanceActions$ = [9, n0, _LPMA,
|
|
717
|
+
{ [_h]: ["GET", "/pending-actions", 200] }, () => ListPendingMaintenanceActionsInput$, () => ListPendingMaintenanceActionsOutput$
|
|
718
|
+
];
|
|
719
|
+
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
720
|
+
{ [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
721
|
+
];
|
|
722
|
+
var RestoreClusterFromSnapshot$ = [9, n0, _RCFS,
|
|
723
|
+
{ [_h]: ["POST", "/cluster-snapshot/{snapshotArn}/restore", 200] }, () => RestoreClusterFromSnapshotInput$, () => RestoreClusterFromSnapshotOutput$
|
|
724
|
+
];
|
|
725
|
+
var StartCluster$ = [9, n0, _SC,
|
|
726
|
+
{ [_h]: ["POST", "/cluster/{clusterArn}/start", 200] }, () => StartClusterInput$, () => StartClusterOutput$
|
|
727
|
+
];
|
|
728
|
+
var StopCluster$ = [9, n0, _SCt,
|
|
729
|
+
{ [_h]: ["POST", "/cluster/{clusterArn}/stop", 200] }, () => StopClusterInput$, () => StopClusterOutput$
|
|
730
|
+
];
|
|
731
|
+
var TagResource$ = [9, n0, _TR,
|
|
732
|
+
{ [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
733
|
+
];
|
|
734
|
+
var UntagResource$ = [9, n0, _UR,
|
|
735
|
+
{ [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
736
|
+
];
|
|
737
|
+
var UpdateCluster$ = [9, n0, _UC,
|
|
738
|
+
{ [_h]: ["PUT", "/cluster/{clusterArn}", 200] }, () => UpdateClusterInput$, () => UpdateClusterOutput$
|
|
739
|
+
];
|
|
740
|
+
|
|
741
|
+
const getRuntimeConfig$1 = (config) => {
|
|
742
|
+
return {
|
|
743
|
+
apiVersion: "2022-11-28",
|
|
744
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
745
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
746
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
747
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
748
|
+
extensions: config?.extensions ?? [],
|
|
749
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDocDBElasticHttpAuthSchemeProvider,
|
|
750
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
751
|
+
{
|
|
752
|
+
schemeId: "aws.auth#sigv4",
|
|
753
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
754
|
+
signer: new AwsSdkSigV4Signer(),
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
758
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
759
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
760
|
+
defaultNamespace: "com.amazonaws.docdbelastic",
|
|
761
|
+
errorTypeRegistries,
|
|
762
|
+
version: "2022-11-28",
|
|
763
|
+
serviceTarget: "ChimeraDbLionfishServiceLambda",
|
|
764
|
+
},
|
|
765
|
+
serviceId: config?.serviceId ?? "DocDB Elastic",
|
|
766
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
767
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
768
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
const getRuntimeConfig = (config) => {
|
|
773
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
774
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
775
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
776
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
777
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
778
|
+
const loaderConfig = {
|
|
779
|
+
profile: config?.profile,
|
|
780
|
+
logger: clientSharedValues.logger,
|
|
781
|
+
};
|
|
782
|
+
return {
|
|
783
|
+
...clientSharedValues,
|
|
784
|
+
...config,
|
|
785
|
+
runtime: "node",
|
|
786
|
+
defaultsMode,
|
|
787
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
788
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
789
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
790
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
791
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
792
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
793
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
794
|
+
retryMode: config?.retryMode ??
|
|
795
|
+
loadConfig({
|
|
796
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
797
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
798
|
+
}, config),
|
|
799
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
800
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
801
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
802
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
803
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
|
|
34
807
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
808
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
809
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -419,32 +1192,114 @@ const Status = {
|
|
|
419
1192
|
VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
|
|
420
1193
|
};
|
|
421
1194
|
|
|
1195
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1196
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1197
|
+
exports.ApplyPendingMaintenanceAction$ = ApplyPendingMaintenanceAction$;
|
|
422
1198
|
exports.ApplyPendingMaintenanceActionCommand = ApplyPendingMaintenanceActionCommand;
|
|
1199
|
+
exports.ApplyPendingMaintenanceActionInput$ = ApplyPendingMaintenanceActionInput$;
|
|
1200
|
+
exports.ApplyPendingMaintenanceActionOutput$ = ApplyPendingMaintenanceActionOutput$;
|
|
423
1201
|
exports.Auth = Auth;
|
|
1202
|
+
exports.Cluster$ = Cluster$;
|
|
1203
|
+
exports.ClusterInList$ = ClusterInList$;
|
|
1204
|
+
exports.ClusterSnapshot$ = ClusterSnapshot$;
|
|
1205
|
+
exports.ClusterSnapshotInList$ = ClusterSnapshotInList$;
|
|
1206
|
+
exports.ConflictException = ConflictException;
|
|
1207
|
+
exports.ConflictException$ = ConflictException$;
|
|
1208
|
+
exports.CopyClusterSnapshot$ = CopyClusterSnapshot$;
|
|
424
1209
|
exports.CopyClusterSnapshotCommand = CopyClusterSnapshotCommand;
|
|
1210
|
+
exports.CopyClusterSnapshotInput$ = CopyClusterSnapshotInput$;
|
|
1211
|
+
exports.CopyClusterSnapshotOutput$ = CopyClusterSnapshotOutput$;
|
|
1212
|
+
exports.CreateCluster$ = CreateCluster$;
|
|
425
1213
|
exports.CreateClusterCommand = CreateClusterCommand;
|
|
1214
|
+
exports.CreateClusterInput$ = CreateClusterInput$;
|
|
1215
|
+
exports.CreateClusterOutput$ = CreateClusterOutput$;
|
|
1216
|
+
exports.CreateClusterSnapshot$ = CreateClusterSnapshot$;
|
|
426
1217
|
exports.CreateClusterSnapshotCommand = CreateClusterSnapshotCommand;
|
|
1218
|
+
exports.CreateClusterSnapshotInput$ = CreateClusterSnapshotInput$;
|
|
1219
|
+
exports.CreateClusterSnapshotOutput$ = CreateClusterSnapshotOutput$;
|
|
1220
|
+
exports.DeleteCluster$ = DeleteCluster$;
|
|
427
1221
|
exports.DeleteClusterCommand = DeleteClusterCommand;
|
|
1222
|
+
exports.DeleteClusterInput$ = DeleteClusterInput$;
|
|
1223
|
+
exports.DeleteClusterOutput$ = DeleteClusterOutput$;
|
|
1224
|
+
exports.DeleteClusterSnapshot$ = DeleteClusterSnapshot$;
|
|
428
1225
|
exports.DeleteClusterSnapshotCommand = DeleteClusterSnapshotCommand;
|
|
1226
|
+
exports.DeleteClusterSnapshotInput$ = DeleteClusterSnapshotInput$;
|
|
1227
|
+
exports.DeleteClusterSnapshotOutput$ = DeleteClusterSnapshotOutput$;
|
|
429
1228
|
exports.DocDBElastic = DocDBElastic;
|
|
430
1229
|
exports.DocDBElasticClient = DocDBElasticClient;
|
|
1230
|
+
exports.DocDBElasticServiceException = DocDBElasticServiceException;
|
|
1231
|
+
exports.DocDBElasticServiceException$ = DocDBElasticServiceException$;
|
|
1232
|
+
exports.GetCluster$ = GetCluster$;
|
|
431
1233
|
exports.GetClusterCommand = GetClusterCommand;
|
|
1234
|
+
exports.GetClusterInput$ = GetClusterInput$;
|
|
1235
|
+
exports.GetClusterOutput$ = GetClusterOutput$;
|
|
1236
|
+
exports.GetClusterSnapshot$ = GetClusterSnapshot$;
|
|
432
1237
|
exports.GetClusterSnapshotCommand = GetClusterSnapshotCommand;
|
|
1238
|
+
exports.GetClusterSnapshotInput$ = GetClusterSnapshotInput$;
|
|
1239
|
+
exports.GetClusterSnapshotOutput$ = GetClusterSnapshotOutput$;
|
|
1240
|
+
exports.GetPendingMaintenanceAction$ = GetPendingMaintenanceAction$;
|
|
433
1241
|
exports.GetPendingMaintenanceActionCommand = GetPendingMaintenanceActionCommand;
|
|
1242
|
+
exports.GetPendingMaintenanceActionInput$ = GetPendingMaintenanceActionInput$;
|
|
1243
|
+
exports.GetPendingMaintenanceActionOutput$ = GetPendingMaintenanceActionOutput$;
|
|
1244
|
+
exports.InternalServerException = InternalServerException;
|
|
1245
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
1246
|
+
exports.ListClusterSnapshots$ = ListClusterSnapshots$;
|
|
434
1247
|
exports.ListClusterSnapshotsCommand = ListClusterSnapshotsCommand;
|
|
1248
|
+
exports.ListClusterSnapshotsInput$ = ListClusterSnapshotsInput$;
|
|
1249
|
+
exports.ListClusterSnapshotsOutput$ = ListClusterSnapshotsOutput$;
|
|
1250
|
+
exports.ListClusters$ = ListClusters$;
|
|
435
1251
|
exports.ListClustersCommand = ListClustersCommand;
|
|
1252
|
+
exports.ListClustersInput$ = ListClustersInput$;
|
|
1253
|
+
exports.ListClustersOutput$ = ListClustersOutput$;
|
|
1254
|
+
exports.ListPendingMaintenanceActions$ = ListPendingMaintenanceActions$;
|
|
436
1255
|
exports.ListPendingMaintenanceActionsCommand = ListPendingMaintenanceActionsCommand;
|
|
1256
|
+
exports.ListPendingMaintenanceActionsInput$ = ListPendingMaintenanceActionsInput$;
|
|
1257
|
+
exports.ListPendingMaintenanceActionsOutput$ = ListPendingMaintenanceActionsOutput$;
|
|
1258
|
+
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
437
1259
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1260
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
1261
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
438
1262
|
exports.OptInType = OptInType;
|
|
1263
|
+
exports.PendingMaintenanceActionDetails$ = PendingMaintenanceActionDetails$;
|
|
1264
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1265
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1266
|
+
exports.ResourcePendingMaintenanceAction$ = ResourcePendingMaintenanceAction$;
|
|
1267
|
+
exports.RestoreClusterFromSnapshot$ = RestoreClusterFromSnapshot$;
|
|
439
1268
|
exports.RestoreClusterFromSnapshotCommand = RestoreClusterFromSnapshotCommand;
|
|
1269
|
+
exports.RestoreClusterFromSnapshotInput$ = RestoreClusterFromSnapshotInput$;
|
|
1270
|
+
exports.RestoreClusterFromSnapshotOutput$ = RestoreClusterFromSnapshotOutput$;
|
|
1271
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1272
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
1273
|
+
exports.Shard$ = Shard$;
|
|
440
1274
|
exports.SnapshotType = SnapshotType;
|
|
1275
|
+
exports.StartCluster$ = StartCluster$;
|
|
441
1276
|
exports.StartClusterCommand = StartClusterCommand;
|
|
1277
|
+
exports.StartClusterInput$ = StartClusterInput$;
|
|
1278
|
+
exports.StartClusterOutput$ = StartClusterOutput$;
|
|
442
1279
|
exports.Status = Status;
|
|
1280
|
+
exports.StopCluster$ = StopCluster$;
|
|
443
1281
|
exports.StopClusterCommand = StopClusterCommand;
|
|
1282
|
+
exports.StopClusterInput$ = StopClusterInput$;
|
|
1283
|
+
exports.StopClusterOutput$ = StopClusterOutput$;
|
|
1284
|
+
exports.TagResource$ = TagResource$;
|
|
444
1285
|
exports.TagResourceCommand = TagResourceCommand;
|
|
1286
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
1287
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
1288
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1289
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
1290
|
+
exports.UntagResource$ = UntagResource$;
|
|
445
1291
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1292
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
1293
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
1294
|
+
exports.UpdateCluster$ = UpdateCluster$;
|
|
446
1295
|
exports.UpdateClusterCommand = UpdateClusterCommand;
|
|
1296
|
+
exports.UpdateClusterInput$ = UpdateClusterInput$;
|
|
1297
|
+
exports.UpdateClusterOutput$ = UpdateClusterOutput$;
|
|
1298
|
+
exports.ValidationException = ValidationException;
|
|
1299
|
+
exports.ValidationException$ = ValidationException$;
|
|
1300
|
+
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
447
1301
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1302
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
448
1303
|
exports.paginateListClusterSnapshots = paginateListClusterSnapshots;
|
|
449
1304
|
exports.paginateListClusters = paginateListClusters;
|
|
450
1305
|
exports.paginateListPendingMaintenanceActions = paginateListPendingMaintenanceActions;
|