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