@aws-sdk/client-docdb-elastic 3.523.0 → 3.529.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/README.md +40 -1
- package/dist-cjs/index.js +208 -83
- package/dist-es/DocDBElastic.js +6 -0
- package/dist-es/commands/CopyClusterSnapshotCommand.js +24 -0
- package/dist-es/commands/StartClusterCommand.js +24 -0
- package/dist-es/commands/StopClusterCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +28 -14
- package/dist-es/protocols/Aws_restJson1.js +91 -43
- package/dist-types/DocDBElastic.d.ts +36 -1
- package/dist-types/DocDBElasticClient.d.ts +20 -3
- package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +101 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +14 -1
- package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/DeleteClusterCommand.d.ts +11 -1
- package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/GetClusterCommand.d.ts +11 -1
- package/dist-types/commands/GetClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +2 -1
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +13 -1
- package/dist-types/commands/StartClusterCommand.d.ts +101 -0
- package/dist-types/commands/StopClusterCommand.d.ts +102 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterCommand.d.ts +15 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +15 -1
- package/dist-types/models/models_0.d.ts +478 -232
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/DocDBElastic.d.ts +51 -0
- package/dist-types/ts3.4/DocDBElasticClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/CopyClusterSnapshotCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/StartClusterCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/StopClusterCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +98 -42
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +17 -17
- package/dist-cjs/DocDBElastic.js +0 -1
- package/dist-cjs/DocDBElasticClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateClusterCommand.js +0 -1
- package/dist-cjs/commands/CreateClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -1
- package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/GetClusterCommand.js +0 -1
- package/dist-cjs/commands/GetClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/ListClusterSnapshotsCommand.js +0 -1
- package/dist-cjs/commands/ListClustersCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateClusterCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/DocDBElasticServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +0 -1
- package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CopyClusterSnapshotCommand, se_CopyClusterSnapshotCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CopyClusterSnapshotCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("ChimeraDbLionfishServiceLambda", "CopyClusterSnapshot", {})
|
|
19
|
+
.n("DocDBElasticClient", "CopyClusterSnapshotCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CopyClusterSnapshotCommand)
|
|
22
|
+
.de(de_CopyClusterSnapshotCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartClusterCommand, se_StartClusterCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartClusterCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("ChimeraDbLionfishServiceLambda", "StartCluster", {})
|
|
19
|
+
.n("DocDBElasticClient", "StartClusterCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StartClusterCommand)
|
|
22
|
+
.de(de_StartClusterCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StopClusterCommand, se_StopClusterCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StopClusterCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("ChimeraDbLionfishServiceLambda", "StopCluster", {})
|
|
19
|
+
.n("DocDBElasticClient", "StopClusterCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StopClusterCommand)
|
|
22
|
+
.de(de_StopClusterCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./CopyClusterSnapshotCommand";
|
|
1
2
|
export * from "./CreateClusterCommand";
|
|
2
3
|
export * from "./CreateClusterSnapshotCommand";
|
|
3
4
|
export * from "./DeleteClusterCommand";
|
|
@@ -8,6 +9,8 @@ export * from "./ListClusterSnapshotsCommand";
|
|
|
8
9
|
export * from "./ListClustersCommand";
|
|
9
10
|
export * from "./ListTagsForResourceCommand";
|
|
10
11
|
export * from "./RestoreClusterFromSnapshotCommand";
|
|
12
|
+
export * from "./StartClusterCommand";
|
|
13
|
+
export * from "./StopClusterCommand";
|
|
11
14
|
export * from "./TagResourceCommand";
|
|
12
15
|
export * from "./UntagResourceCommand";
|
|
13
16
|
export * from "./UpdateClusterCommand";
|
|
@@ -30,14 +30,28 @@ export class ConflictException extends __BaseException {
|
|
|
30
30
|
this.resourceType = opts.resourceType;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
export const SnapshotType = {
|
|
34
|
+
AUTOMATED: "AUTOMATED",
|
|
35
|
+
MANUAL: "MANUAL",
|
|
36
|
+
};
|
|
33
37
|
export const Status = {
|
|
34
38
|
ACTIVE: "ACTIVE",
|
|
39
|
+
COPYING: "COPYING",
|
|
35
40
|
CREATING: "CREATING",
|
|
36
41
|
DELETING: "DELETING",
|
|
37
42
|
INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
|
|
43
|
+
INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
|
|
44
|
+
INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
|
|
45
|
+
INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
|
|
38
46
|
INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
|
|
39
47
|
INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
|
|
40
48
|
IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
|
|
49
|
+
MERGING: "MERGING",
|
|
50
|
+
MODIFYING: "MODIFYING",
|
|
51
|
+
SPLITTING: "SPLITTING",
|
|
52
|
+
STARTING: "STARTING",
|
|
53
|
+
STOPPED: "STOPPED",
|
|
54
|
+
STOPPING: "STOPPING",
|
|
41
55
|
UPDATING: "UPDATING",
|
|
42
56
|
VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
|
|
43
57
|
};
|
|
@@ -54,6 +68,20 @@ export class InternalServerException extends __BaseException {
|
|
|
54
68
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
55
69
|
}
|
|
56
70
|
}
|
|
71
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "ResourceNotFoundException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "ResourceNotFoundException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
81
|
+
this.resourceId = opts.resourceId;
|
|
82
|
+
this.resourceType = opts.resourceType;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
57
85
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
58
86
|
constructor(opts) {
|
|
59
87
|
super({
|
|
@@ -100,20 +128,6 @@ export class ValidationException extends __BaseException {
|
|
|
100
128
|
this.fieldList = opts.fieldList;
|
|
101
129
|
}
|
|
102
130
|
}
|
|
103
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
104
|
-
constructor(opts) {
|
|
105
|
-
super({
|
|
106
|
-
name: "ResourceNotFoundException",
|
|
107
|
-
$fault: "client",
|
|
108
|
-
...opts,
|
|
109
|
-
});
|
|
110
|
-
this.name = "ResourceNotFoundException";
|
|
111
|
-
this.$fault = "client";
|
|
112
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
113
|
-
this.resourceId = opts.resourceId;
|
|
114
|
-
this.resourceType = opts.resourceType;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
131
|
export const CreateClusterInputFilterSensitiveLog = (obj) => ({
|
|
118
132
|
...obj,
|
|
119
133
|
...(obj.adminUserPassword && { adminUserPassword: SENSITIVE_STRING }),
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { DocDBElasticServiceException as __BaseException } from "../models/DocDBElasticServiceException";
|
|
5
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_CopyClusterSnapshotCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/cluster-snapshot/{snapshotArn}/copy");
|
|
13
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
copyTags: [],
|
|
17
|
+
kmsKeyId: [],
|
|
18
|
+
tags: (_) => _json(_),
|
|
19
|
+
targetSnapshotName: [],
|
|
20
|
+
}));
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
23
|
+
};
|
|
6
24
|
export const se_CreateClusterCommand = async (input, context) => {
|
|
7
25
|
const b = rb(input, context);
|
|
8
26
|
const headers = {
|
|
@@ -14,12 +32,15 @@ export const se_CreateClusterCommand = async (input, context) => {
|
|
|
14
32
|
adminUserName: [],
|
|
15
33
|
adminUserPassword: [],
|
|
16
34
|
authType: [],
|
|
35
|
+
backupRetentionPeriod: [],
|
|
17
36
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
37
|
clusterName: [],
|
|
19
38
|
kmsKeyId: [],
|
|
39
|
+
preferredBackupWindow: [],
|
|
20
40
|
preferredMaintenanceWindow: [],
|
|
21
41
|
shardCapacity: [],
|
|
22
42
|
shardCount: [],
|
|
43
|
+
shardInstanceCount: [],
|
|
23
44
|
subnetIds: (_) => _json(_),
|
|
24
45
|
tags: (_) => _json(_),
|
|
25
46
|
vpcSecurityGroupIds: (_) => _json(_),
|
|
@@ -98,6 +119,7 @@ export const se_ListClusterSnapshotsCommand = async (input, context) => {
|
|
|
98
119
|
[_cA]: [, input[_cA]],
|
|
99
120
|
[_nT]: [, input[_nT]],
|
|
100
121
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
122
|
+
[_sT]: [, input[_sT]],
|
|
101
123
|
});
|
|
102
124
|
let body;
|
|
103
125
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -123,6 +145,8 @@ export const se_RestoreClusterFromSnapshotCommand = async (input, context) => {
|
|
|
123
145
|
body = JSON.stringify(take(input, {
|
|
124
146
|
clusterName: [],
|
|
125
147
|
kmsKeyId: [],
|
|
148
|
+
shardCapacity: [],
|
|
149
|
+
shardInstanceCount: [],
|
|
126
150
|
subnetIds: (_) => _json(_),
|
|
127
151
|
tags: (_) => _json(_),
|
|
128
152
|
vpcSecurityGroupIds: (_) => _json(_),
|
|
@@ -130,6 +154,24 @@ export const se_RestoreClusterFromSnapshotCommand = async (input, context) => {
|
|
|
130
154
|
b.m("POST").h(headers).b(body);
|
|
131
155
|
return b.build();
|
|
132
156
|
};
|
|
157
|
+
export const se_StartClusterCommand = async (input, context) => {
|
|
158
|
+
const b = rb(input, context);
|
|
159
|
+
const headers = {};
|
|
160
|
+
b.bp("/cluster/{clusterArn}/start");
|
|
161
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
162
|
+
let body;
|
|
163
|
+
b.m("POST").h(headers).b(body);
|
|
164
|
+
return b.build();
|
|
165
|
+
};
|
|
166
|
+
export const se_StopClusterCommand = async (input, context) => {
|
|
167
|
+
const b = rb(input, context);
|
|
168
|
+
const headers = {};
|
|
169
|
+
b.bp("/cluster/{clusterArn}/stop");
|
|
170
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
171
|
+
let body;
|
|
172
|
+
b.m("POST").h(headers).b(body);
|
|
173
|
+
return b.build();
|
|
174
|
+
};
|
|
133
175
|
export const se_TagResourceCommand = async (input, context) => {
|
|
134
176
|
const b = rb(input, context);
|
|
135
177
|
const headers = {
|
|
@@ -170,16 +212,33 @@ export const se_UpdateClusterCommand = async (input, context) => {
|
|
|
170
212
|
body = JSON.stringify(take(input, {
|
|
171
213
|
adminUserPassword: [],
|
|
172
214
|
authType: [],
|
|
215
|
+
backupRetentionPeriod: [],
|
|
173
216
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
217
|
+
preferredBackupWindow: [],
|
|
174
218
|
preferredMaintenanceWindow: [],
|
|
175
219
|
shardCapacity: [],
|
|
176
220
|
shardCount: [],
|
|
221
|
+
shardInstanceCount: [],
|
|
177
222
|
subnetIds: (_) => _json(_),
|
|
178
223
|
vpcSecurityGroupIds: (_) => _json(_),
|
|
179
224
|
}));
|
|
180
225
|
b.m("PUT").h(headers).b(body);
|
|
181
226
|
return b.build();
|
|
182
227
|
};
|
|
228
|
+
export const de_CopyClusterSnapshotCommand = async (output, context) => {
|
|
229
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
230
|
+
return de_CommandError(output, context);
|
|
231
|
+
}
|
|
232
|
+
const contents = map({
|
|
233
|
+
$metadata: deserializeMetadata(output),
|
|
234
|
+
});
|
|
235
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
236
|
+
const doc = take(data, {
|
|
237
|
+
snapshot: _json,
|
|
238
|
+
});
|
|
239
|
+
Object.assign(contents, doc);
|
|
240
|
+
return contents;
|
|
241
|
+
};
|
|
183
242
|
export const de_CreateClusterCommand = async (output, context) => {
|
|
184
243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
185
244
|
return de_CommandError(output, context);
|
|
@@ -322,6 +381,34 @@ export const de_RestoreClusterFromSnapshotCommand = async (output, context) => {
|
|
|
322
381
|
Object.assign(contents, doc);
|
|
323
382
|
return contents;
|
|
324
383
|
};
|
|
384
|
+
export const de_StartClusterCommand = async (output, context) => {
|
|
385
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
386
|
+
return de_CommandError(output, context);
|
|
387
|
+
}
|
|
388
|
+
const contents = map({
|
|
389
|
+
$metadata: deserializeMetadata(output),
|
|
390
|
+
});
|
|
391
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
392
|
+
const doc = take(data, {
|
|
393
|
+
cluster: _json,
|
|
394
|
+
});
|
|
395
|
+
Object.assign(contents, doc);
|
|
396
|
+
return contents;
|
|
397
|
+
};
|
|
398
|
+
export const de_StopClusterCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
+
return de_CommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const contents = map({
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
});
|
|
405
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
406
|
+
const doc = take(data, {
|
|
407
|
+
cluster: _json,
|
|
408
|
+
});
|
|
409
|
+
Object.assign(contents, doc);
|
|
410
|
+
return contents;
|
|
411
|
+
};
|
|
325
412
|
export const de_TagResourceCommand = async (output, context) => {
|
|
326
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
327
414
|
return de_CommandError(output, context);
|
|
@@ -372,6 +459,9 @@ const de_CommandError = async (output, context) => {
|
|
|
372
459
|
case "InternalServerException":
|
|
373
460
|
case "com.amazonaws.docdbelastic#InternalServerException":
|
|
374
461
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
462
|
+
case "ResourceNotFoundException":
|
|
463
|
+
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
464
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
375
465
|
case "ServiceQuotaExceededException":
|
|
376
466
|
case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
|
|
377
467
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -381,9 +471,6 @@ const de_CommandError = async (output, context) => {
|
|
|
381
471
|
case "ValidationException":
|
|
382
472
|
case "com.amazonaws.docdbelastic#ValidationException":
|
|
383
473
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ResourceNotFoundException":
|
|
385
|
-
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
387
474
|
default:
|
|
388
475
|
const parsedBody = parsedOutput.body;
|
|
389
476
|
return throwDefaultError({
|
|
@@ -510,44 +597,5 @@ const _mR = "maxResults";
|
|
|
510
597
|
const _nT = "nextToken";
|
|
511
598
|
const _rAS = "retryAfterSeconds";
|
|
512
599
|
const _ra = "retry-after";
|
|
600
|
+
const _sT = "snapshotType";
|
|
513
601
|
const _tK = "tagKeys";
|
|
514
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
515
|
-
if (encoded.length) {
|
|
516
|
-
return JSON.parse(encoded);
|
|
517
|
-
}
|
|
518
|
-
return {};
|
|
519
|
-
});
|
|
520
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
521
|
-
const value = await parseBody(errorBody, context);
|
|
522
|
-
value.message = value.message ?? value.Message;
|
|
523
|
-
return value;
|
|
524
|
-
};
|
|
525
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
526
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
527
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
528
|
-
let cleanValue = rawValue;
|
|
529
|
-
if (typeof cleanValue === "number") {
|
|
530
|
-
cleanValue = cleanValue.toString();
|
|
531
|
-
}
|
|
532
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
533
|
-
cleanValue = cleanValue.split(",")[0];
|
|
534
|
-
}
|
|
535
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
536
|
-
cleanValue = cleanValue.split(":")[0];
|
|
537
|
-
}
|
|
538
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
539
|
-
cleanValue = cleanValue.split("#")[1];
|
|
540
|
-
}
|
|
541
|
-
return cleanValue;
|
|
542
|
-
};
|
|
543
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
544
|
-
if (headerKey !== undefined) {
|
|
545
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
546
|
-
}
|
|
547
|
-
if (data.code !== undefined) {
|
|
548
|
-
return sanitizeErrorCode(data.code);
|
|
549
|
-
}
|
|
550
|
-
if (data["__type"] !== undefined) {
|
|
551
|
-
return sanitizeErrorCode(data["__type"]);
|
|
552
|
-
}
|
|
553
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "./commands/CopyClusterSnapshotCommand";
|
|
2
3
|
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
3
4
|
import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
|
|
4
5
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
@@ -9,11 +10,19 @@ import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/
|
|
|
9
10
|
import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
|
|
10
11
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
11
12
|
import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
|
|
13
|
+
import { StartClusterCommandInput, StartClusterCommandOutput } from "./commands/StartClusterCommand";
|
|
14
|
+
import { StopClusterCommandInput, StopClusterCommandOutput } from "./commands/StopClusterCommand";
|
|
12
15
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
13
16
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
14
17
|
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
|
|
15
18
|
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
16
19
|
export interface DocDBElastic {
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link CopyClusterSnapshotCommand}
|
|
22
|
+
*/
|
|
23
|
+
copyClusterSnapshot(args: CopyClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CopyClusterSnapshotCommandOutput>;
|
|
24
|
+
copyClusterSnapshot(args: CopyClusterSnapshotCommandInput, cb: (err: any, data?: CopyClusterSnapshotCommandOutput) => void): void;
|
|
25
|
+
copyClusterSnapshot(args: CopyClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CopyClusterSnapshotCommandOutput) => void): void;
|
|
17
26
|
/**
|
|
18
27
|
* @see {@link CreateClusterCommand}
|
|
19
28
|
*/
|
|
@@ -74,6 +83,18 @@ export interface DocDBElastic {
|
|
|
74
83
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreClusterFromSnapshotCommandOutput>;
|
|
75
84
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
76
85
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link StartClusterCommand}
|
|
88
|
+
*/
|
|
89
|
+
startCluster(args: StartClusterCommandInput, options?: __HttpHandlerOptions): Promise<StartClusterCommandOutput>;
|
|
90
|
+
startCluster(args: StartClusterCommandInput, cb: (err: any, data?: StartClusterCommandOutput) => void): void;
|
|
91
|
+
startCluster(args: StartClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartClusterCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link StopClusterCommand}
|
|
94
|
+
*/
|
|
95
|
+
stopCluster(args: StopClusterCommandInput, options?: __HttpHandlerOptions): Promise<StopClusterCommandOutput>;
|
|
96
|
+
stopCluster(args: StopClusterCommandInput, cb: (err: any, data?: StopClusterCommandOutput) => void): void;
|
|
97
|
+
stopCluster(args: StopClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopClusterCommandOutput) => void): void;
|
|
77
98
|
/**
|
|
78
99
|
* @see {@link TagResourceCommand}
|
|
79
100
|
*/
|
|
@@ -95,7 +116,21 @@ export interface DocDBElastic {
|
|
|
95
116
|
}
|
|
96
117
|
/**
|
|
97
118
|
* @public
|
|
98
|
-
* <
|
|
119
|
+
* <fullname>Amazon DocumentDB elastic clusters</fullname>
|
|
120
|
+
* <p>Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity.
|
|
121
|
+
* Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.</p>
|
|
122
|
+
* <p>Amazon DocumentDB elastic-clusters were created to:</p>
|
|
123
|
+
* <ul>
|
|
124
|
+
* <li>
|
|
125
|
+
* <p>provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>give customers higher connection limits, and to reduce downtime from patching.</p>
|
|
129
|
+
* </li>
|
|
130
|
+
* <li>
|
|
131
|
+
* <p>continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* </ul>
|
|
99
134
|
*/
|
|
100
135
|
export declare class DocDBElastic extends DocDBElasticClient implements DocDBElastic {
|
|
101
136
|
}
|
|
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "./commands/CopyClusterSnapshotCommand";
|
|
10
11
|
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
11
12
|
import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
|
|
12
13
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
@@ -17,6 +18,8 @@ import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/
|
|
|
17
18
|
import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
|
|
18
19
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
20
|
import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
|
|
21
|
+
import { StartClusterCommandInput, StartClusterCommandOutput } from "./commands/StartClusterCommand";
|
|
22
|
+
import { StopClusterCommandInput, StopClusterCommandOutput } from "./commands/StopClusterCommand";
|
|
20
23
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
21
24
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
22
25
|
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
|
|
@@ -26,11 +29,11 @@ export { __Client };
|
|
|
26
29
|
/**
|
|
27
30
|
* @public
|
|
28
31
|
*/
|
|
29
|
-
export type ServiceInputTypes = CreateClusterCommandInput | CreateClusterSnapshotCommandInput | DeleteClusterCommandInput | DeleteClusterSnapshotCommandInput | GetClusterCommandInput | GetClusterSnapshotCommandInput | ListClusterSnapshotsCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | RestoreClusterFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
32
|
+
export type ServiceInputTypes = CopyClusterSnapshotCommandInput | CreateClusterCommandInput | CreateClusterSnapshotCommandInput | DeleteClusterCommandInput | DeleteClusterSnapshotCommandInput | GetClusterCommandInput | GetClusterSnapshotCommandInput | ListClusterSnapshotsCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | RestoreClusterFromSnapshotCommandInput | StartClusterCommandInput | StopClusterCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
30
33
|
/**
|
|
31
34
|
* @public
|
|
32
35
|
*/
|
|
33
|
-
export type ServiceOutputTypes = CreateClusterCommandOutput | CreateClusterSnapshotCommandOutput | DeleteClusterCommandOutput | DeleteClusterSnapshotCommandOutput | GetClusterCommandOutput | GetClusterSnapshotCommandOutput | ListClusterSnapshotsCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | RestoreClusterFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
36
|
+
export type ServiceOutputTypes = CopyClusterSnapshotCommandOutput | CreateClusterCommandOutput | CreateClusterSnapshotCommandOutput | DeleteClusterCommandOutput | DeleteClusterSnapshotCommandOutput | GetClusterCommandOutput | GetClusterSnapshotCommandOutput | ListClusterSnapshotsCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | RestoreClusterFromSnapshotCommandOutput | StartClusterCommandOutput | StopClusterCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
34
37
|
/**
|
|
35
38
|
* @public
|
|
36
39
|
*/
|
|
@@ -165,7 +168,21 @@ export interface DocDBElasticClientResolvedConfig extends DocDBElasticClientReso
|
|
|
165
168
|
}
|
|
166
169
|
/**
|
|
167
170
|
* @public
|
|
168
|
-
* <
|
|
171
|
+
* <fullname>Amazon DocumentDB elastic clusters</fullname>
|
|
172
|
+
* <p>Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity.
|
|
173
|
+
* Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.</p>
|
|
174
|
+
* <p>Amazon DocumentDB elastic-clusters were created to:</p>
|
|
175
|
+
* <ul>
|
|
176
|
+
* <li>
|
|
177
|
+
* <p>provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.</p>
|
|
178
|
+
* </li>
|
|
179
|
+
* <li>
|
|
180
|
+
* <p>give customers higher connection limits, and to reduce downtime from patching.</p>
|
|
181
|
+
* </li>
|
|
182
|
+
* <li>
|
|
183
|
+
* <p>continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.</p>
|
|
184
|
+
* </li>
|
|
185
|
+
* </ul>
|
|
169
186
|
*/
|
|
170
187
|
export declare class DocDBElasticClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DocDBElasticClientResolvedConfig> {
|
|
171
188
|
/**
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
4
|
+
import { CopyClusterSnapshotInput, CopyClusterSnapshotOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link CopyClusterSnapshotCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface CopyClusterSnapshotCommandInput extends CopyClusterSnapshotInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link CopyClusterSnapshotCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface CopyClusterSnapshotCommandOutput extends CopyClusterSnapshotOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const CopyClusterSnapshotCommand_base: {
|
|
24
|
+
new (input: CopyClusterSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl<CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Copies a snapshot of an elastic cluster.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { DocDBElasticClient, CopyClusterSnapshotCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
34
|
+
* // const { DocDBElasticClient, CopyClusterSnapshotCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
35
|
+
* const client = new DocDBElasticClient(config);
|
|
36
|
+
* const input = { // CopyClusterSnapshotInput
|
|
37
|
+
* snapshotArn: "STRING_VALUE", // required
|
|
38
|
+
* targetSnapshotName: "STRING_VALUE", // required
|
|
39
|
+
* kmsKeyId: "STRING_VALUE",
|
|
40
|
+
* copyTags: true || false,
|
|
41
|
+
* tags: { // TagMap
|
|
42
|
+
* "<keys>": "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
45
|
+
* const command = new CopyClusterSnapshotCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // CopyClusterSnapshotOutput
|
|
48
|
+
* // snapshot: { // ClusterSnapshot
|
|
49
|
+
* // subnetIds: [ // StringList // required
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // snapshotName: "STRING_VALUE", // required
|
|
53
|
+
* // snapshotArn: "STRING_VALUE", // required
|
|
54
|
+
* // snapshotCreationTime: "STRING_VALUE", // required
|
|
55
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
56
|
+
* // clusterCreationTime: "STRING_VALUE", // required
|
|
57
|
+
* // status: "STRING_VALUE", // required
|
|
58
|
+
* // vpcSecurityGroupIds: [ // required
|
|
59
|
+
* // "STRING_VALUE",
|
|
60
|
+
* // ],
|
|
61
|
+
* // adminUserName: "STRING_VALUE", // required
|
|
62
|
+
* // kmsKeyId: "STRING_VALUE", // required
|
|
63
|
+
* // snapshotType: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param CopyClusterSnapshotCommandInput - {@link CopyClusterSnapshotCommandInput}
|
|
70
|
+
* @returns {@link CopyClusterSnapshotCommandOutput}
|
|
71
|
+
* @see {@link CopyClusterSnapshotCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link CopyClusterSnapshotCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ConflictException} (client fault)
|
|
79
|
+
* <p>There was an access conflict.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>There was an internal server error.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The specified resource could not be located.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
88
|
+
* <p>The service quota for the action was exceeded.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
91
|
+
* <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>A structure defining a validation exception.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link DocDBElasticServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from DocDBElastic service.</p>
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare class CopyClusterSnapshotCommand extends CopyClusterSnapshotCommand_base {
|
|
101
|
+
}
|
|
@@ -26,7 +26,7 @@ declare const CreateClusterCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Creates a new
|
|
29
|
+
* <p>Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -52,6 +52,9 @@ declare const CreateClusterCommand_base: {
|
|
|
52
52
|
* tags: { // TagMap
|
|
53
53
|
* "<keys>": "STRING_VALUE",
|
|
54
54
|
* },
|
|
55
|
+
* backupRetentionPeriod: Number("int"),
|
|
56
|
+
* preferredBackupWindow: "STRING_VALUE",
|
|
57
|
+
* shardInstanceCount: Number("int"),
|
|
55
58
|
* };
|
|
56
59
|
* const command = new CreateClusterCommand(input);
|
|
57
60
|
* const response = await client.send(command);
|
|
@@ -74,6 +77,16 @@ declare const CreateClusterCommand_base: {
|
|
|
74
77
|
* // ],
|
|
75
78
|
* // preferredMaintenanceWindow: "STRING_VALUE", // required
|
|
76
79
|
* // kmsKeyId: "STRING_VALUE", // required
|
|
80
|
+
* // shards: [ // ShardList
|
|
81
|
+
* // { // Shard
|
|
82
|
+
* // shardId: "STRING_VALUE", // required
|
|
83
|
+
* // createTime: "STRING_VALUE", // required
|
|
84
|
+
* // status: "STRING_VALUE", // required
|
|
85
|
+
* // },
|
|
86
|
+
* // ],
|
|
87
|
+
* // backupRetentionPeriod: Number("int"),
|
|
88
|
+
* // preferredBackupWindow: "STRING_VALUE",
|
|
89
|
+
* // shardInstanceCount: Number("int"),
|
|
77
90
|
* // },
|
|
78
91
|
* // };
|
|
79
92
|
*
|
|
@@ -26,7 +26,7 @@ declare const CreateClusterSnapshotCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Creates a snapshot of
|
|
29
|
+
* <p>Creates a snapshot of an elastic cluster.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -58,6 +58,7 @@ declare const CreateClusterSnapshotCommand_base: {
|
|
|
58
58
|
* // ],
|
|
59
59
|
* // adminUserName: "STRING_VALUE", // required
|
|
60
60
|
* // kmsKeyId: "STRING_VALUE", // required
|
|
61
|
+
* // snapshotType: "STRING_VALUE",
|
|
61
62
|
* // },
|
|
62
63
|
* // };
|
|
63
64
|
*
|