@aws-sdk/client-docdb-elastic 3.315.0 → 3.319.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/DocDBElastic.js +17 -182
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/DocDBElastic.js +17 -182
- package/dist-es/protocols/Aws_restJson1.js +2 -2
- package/dist-types/DocDBElastic.d.ts +20 -32
- package/dist-types/ts3.4/DocDBElastic.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/DocDBElastic.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DocDBElastic = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateClusterCommand_1 = require("./commands/CreateClusterCommand");
|
|
5
6
|
const CreateClusterSnapshotCommand_1 = require("./commands/CreateClusterSnapshotCommand");
|
|
6
7
|
const DeleteClusterCommand_1 = require("./commands/DeleteClusterCommand");
|
|
@@ -15,188 +16,22 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
15
16
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
16
17
|
const UpdateClusterCommand_1 = require("./commands/UpdateClusterCommand");
|
|
17
18
|
const DocDBElasticClient_1 = require("./DocDBElasticClient");
|
|
19
|
+
const commands = {
|
|
20
|
+
CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
|
|
21
|
+
CreateClusterSnapshotCommand: CreateClusterSnapshotCommand_1.CreateClusterSnapshotCommand,
|
|
22
|
+
DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
|
|
23
|
+
DeleteClusterSnapshotCommand: DeleteClusterSnapshotCommand_1.DeleteClusterSnapshotCommand,
|
|
24
|
+
GetClusterCommand: GetClusterCommand_1.GetClusterCommand,
|
|
25
|
+
GetClusterSnapshotCommand: GetClusterSnapshotCommand_1.GetClusterSnapshotCommand,
|
|
26
|
+
ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
|
|
27
|
+
ListClusterSnapshotsCommand: ListClusterSnapshotsCommand_1.ListClusterSnapshotsCommand,
|
|
28
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
29
|
+
RestoreClusterFromSnapshotCommand: RestoreClusterFromSnapshotCommand_1.RestoreClusterFromSnapshotCommand,
|
|
30
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
31
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
32
|
+
UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand,
|
|
33
|
+
};
|
|
18
34
|
class DocDBElastic extends DocDBElasticClient_1.DocDBElasticClient {
|
|
19
|
-
createCluster(args, optionsOrCb, cb) {
|
|
20
|
-
const command = new CreateClusterCommand_1.CreateClusterCommand(args);
|
|
21
|
-
if (typeof optionsOrCb === "function") {
|
|
22
|
-
this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
else if (typeof cb === "function") {
|
|
25
|
-
if (typeof optionsOrCb !== "object")
|
|
26
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
27
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
createClusterSnapshot(args, optionsOrCb, cb) {
|
|
34
|
-
const command = new CreateClusterSnapshotCommand_1.CreateClusterSnapshotCommand(args);
|
|
35
|
-
if (typeof optionsOrCb === "function") {
|
|
36
|
-
this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
else if (typeof cb === "function") {
|
|
39
|
-
if (typeof optionsOrCb !== "object")
|
|
40
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
41
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
deleteCluster(args, optionsOrCb, cb) {
|
|
48
|
-
const command = new DeleteClusterCommand_1.DeleteClusterCommand(args);
|
|
49
|
-
if (typeof optionsOrCb === "function") {
|
|
50
|
-
this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
else if (typeof cb === "function") {
|
|
53
|
-
if (typeof optionsOrCb !== "object")
|
|
54
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
55
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
deleteClusterSnapshot(args, optionsOrCb, cb) {
|
|
62
|
-
const command = new DeleteClusterSnapshotCommand_1.DeleteClusterSnapshotCommand(args);
|
|
63
|
-
if (typeof optionsOrCb === "function") {
|
|
64
|
-
this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
else if (typeof cb === "function") {
|
|
67
|
-
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
getCluster(args, optionsOrCb, cb) {
|
|
76
|
-
const command = new GetClusterCommand_1.GetClusterCommand(args);
|
|
77
|
-
if (typeof optionsOrCb === "function") {
|
|
78
|
-
this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
else if (typeof cb === "function") {
|
|
81
|
-
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
return this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
getClusterSnapshot(args, optionsOrCb, cb) {
|
|
90
|
-
const command = new GetClusterSnapshotCommand_1.GetClusterSnapshotCommand(args);
|
|
91
|
-
if (typeof optionsOrCb === "function") {
|
|
92
|
-
this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
else if (typeof cb === "function") {
|
|
95
|
-
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
listClusters(args, optionsOrCb, cb) {
|
|
104
|
-
const command = new ListClustersCommand_1.ListClustersCommand(args);
|
|
105
|
-
if (typeof optionsOrCb === "function") {
|
|
106
|
-
this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
else if (typeof cb === "function") {
|
|
109
|
-
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
listClusterSnapshots(args, optionsOrCb, cb) {
|
|
118
|
-
const command = new ListClusterSnapshotsCommand_1.ListClusterSnapshotsCommand(args);
|
|
119
|
-
if (typeof optionsOrCb === "function") {
|
|
120
|
-
this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
else if (typeof cb === "function") {
|
|
123
|
-
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
return this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
132
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
133
|
-
if (typeof optionsOrCb === "function") {
|
|
134
|
-
this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
else if (typeof cb === "function") {
|
|
137
|
-
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
restoreClusterFromSnapshot(args, optionsOrCb, cb) {
|
|
146
|
-
const command = new RestoreClusterFromSnapshotCommand_1.RestoreClusterFromSnapshotCommand(args);
|
|
147
|
-
if (typeof optionsOrCb === "function") {
|
|
148
|
-
this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
else if (typeof cb === "function") {
|
|
151
|
-
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
tagResource(args, optionsOrCb, cb) {
|
|
160
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
161
|
-
if (typeof optionsOrCb === "function") {
|
|
162
|
-
this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
else if (typeof cb === "function") {
|
|
165
|
-
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
untagResource(args, optionsOrCb, cb) {
|
|
174
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
175
|
-
if (typeof optionsOrCb === "function") {
|
|
176
|
-
this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
else if (typeof cb === "function") {
|
|
179
|
-
if (typeof optionsOrCb !== "object")
|
|
180
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
return this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
updateCluster(args, optionsOrCb, cb) {
|
|
188
|
-
const command = new UpdateClusterCommand_1.UpdateClusterCommand(args);
|
|
189
|
-
if (typeof optionsOrCb === "function") {
|
|
190
|
-
this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
else if (typeof cb === "function") {
|
|
193
|
-
if (typeof optionsOrCb !== "object")
|
|
194
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
35
|
}
|
|
202
36
|
exports.DocDBElastic = DocDBElastic;
|
|
37
|
+
(0, smithy_client_1.createAggregatedClient)(commands, DocDBElastic);
|
|
@@ -17,7 +17,7 @@ const se_CreateClusterCommand = async (input, context) => {
|
|
|
17
17
|
adminUserName: [],
|
|
18
18
|
adminUserPassword: [],
|
|
19
19
|
authType: [],
|
|
20
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
20
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
21
21
|
clusterName: [],
|
|
22
22
|
kmsKeyId: [],
|
|
23
23
|
preferredMaintenanceWindow: [],
|
|
@@ -272,7 +272,7 @@ const se_UpdateClusterCommand = async (input, context) => {
|
|
|
272
272
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
273
273
|
adminUserPassword: [],
|
|
274
274
|
authType: [],
|
|
275
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
275
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
276
276
|
preferredMaintenanceWindow: [],
|
|
277
277
|
shardCapacity: [],
|
|
278
278
|
shardCount: [],
|
package/dist-es/DocDBElastic.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
2
3
|
import { CreateClusterSnapshotCommand, } from "./commands/CreateClusterSnapshotCommand";
|
|
3
4
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
@@ -12,187 +13,21 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
12
13
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
13
14
|
import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
|
|
14
15
|
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
16
|
+
const commands = {
|
|
17
|
+
CreateClusterCommand,
|
|
18
|
+
CreateClusterSnapshotCommand,
|
|
19
|
+
DeleteClusterCommand,
|
|
20
|
+
DeleteClusterSnapshotCommand,
|
|
21
|
+
GetClusterCommand,
|
|
22
|
+
GetClusterSnapshotCommand,
|
|
23
|
+
ListClustersCommand,
|
|
24
|
+
ListClusterSnapshotsCommand,
|
|
25
|
+
ListTagsForResourceCommand,
|
|
26
|
+
RestoreClusterFromSnapshotCommand,
|
|
27
|
+
TagResourceCommand,
|
|
28
|
+
UntagResourceCommand,
|
|
29
|
+
UpdateClusterCommand,
|
|
30
|
+
};
|
|
15
31
|
export class DocDBElastic extends DocDBElasticClient {
|
|
16
|
-
createCluster(args, optionsOrCb, cb) {
|
|
17
|
-
const command = new CreateClusterCommand(args);
|
|
18
|
-
if (typeof optionsOrCb === "function") {
|
|
19
|
-
this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
else if (typeof cb === "function") {
|
|
22
|
-
if (typeof optionsOrCb !== "object")
|
|
23
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
24
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
createClusterSnapshot(args, optionsOrCb, cb) {
|
|
31
|
-
const command = new CreateClusterSnapshotCommand(args);
|
|
32
|
-
if (typeof optionsOrCb === "function") {
|
|
33
|
-
this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
else if (typeof cb === "function") {
|
|
36
|
-
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
deleteCluster(args, optionsOrCb, cb) {
|
|
45
|
-
const command = new DeleteClusterCommand(args);
|
|
46
|
-
if (typeof optionsOrCb === "function") {
|
|
47
|
-
this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof cb === "function") {
|
|
50
|
-
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
deleteClusterSnapshot(args, optionsOrCb, cb) {
|
|
59
|
-
const command = new DeleteClusterSnapshotCommand(args);
|
|
60
|
-
if (typeof optionsOrCb === "function") {
|
|
61
|
-
this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
else if (typeof cb === "function") {
|
|
64
|
-
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
getCluster(args, optionsOrCb, cb) {
|
|
73
|
-
const command = new GetClusterCommand(args);
|
|
74
|
-
if (typeof optionsOrCb === "function") {
|
|
75
|
-
this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
else if (typeof cb === "function") {
|
|
78
|
-
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
getClusterSnapshot(args, optionsOrCb, cb) {
|
|
87
|
-
const command = new GetClusterSnapshotCommand(args);
|
|
88
|
-
if (typeof optionsOrCb === "function") {
|
|
89
|
-
this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
listClusters(args, optionsOrCb, cb) {
|
|
101
|
-
const command = new ListClustersCommand(args);
|
|
102
|
-
if (typeof optionsOrCb === "function") {
|
|
103
|
-
this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
listClusterSnapshots(args, optionsOrCb, cb) {
|
|
115
|
-
const command = new ListClusterSnapshotsCommand(args);
|
|
116
|
-
if (typeof optionsOrCb === "function") {
|
|
117
|
-
this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
else if (typeof cb === "function") {
|
|
120
|
-
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
129
|
-
const command = new ListTagsForResourceCommand(args);
|
|
130
|
-
if (typeof optionsOrCb === "function") {
|
|
131
|
-
this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
restoreClusterFromSnapshot(args, optionsOrCb, cb) {
|
|
143
|
-
const command = new RestoreClusterFromSnapshotCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
else if (typeof cb === "function") {
|
|
148
|
-
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
tagResource(args, optionsOrCb, cb) {
|
|
157
|
-
const command = new TagResourceCommand(args);
|
|
158
|
-
if (typeof optionsOrCb === "function") {
|
|
159
|
-
this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
else if (typeof cb === "function") {
|
|
162
|
-
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
return this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
untagResource(args, optionsOrCb, cb) {
|
|
171
|
-
const command = new UntagResourceCommand(args);
|
|
172
|
-
if (typeof optionsOrCb === "function") {
|
|
173
|
-
this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
else if (typeof cb === "function") {
|
|
176
|
-
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
return this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
updateCluster(args, optionsOrCb, cb) {
|
|
185
|
-
const command = new UpdateClusterCommand(args);
|
|
186
|
-
if (typeof optionsOrCb === "function") {
|
|
187
|
-
this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
else if (typeof cb === "function") {
|
|
190
|
-
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
return this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
32
|
}
|
|
33
|
+
createAggregatedClient(commands, DocDBElastic);
|
|
@@ -14,7 +14,7 @@ export const se_CreateClusterCommand = async (input, context) => {
|
|
|
14
14
|
adminUserName: [],
|
|
15
15
|
adminUserPassword: [],
|
|
16
16
|
authType: [],
|
|
17
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
17
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
18
|
clusterName: [],
|
|
19
19
|
kmsKeyId: [],
|
|
20
20
|
preferredMaintenanceWindow: [],
|
|
@@ -257,7 +257,7 @@ export const se_UpdateClusterCommand = async (input, context) => {
|
|
|
257
257
|
body = JSON.stringify(take(input, {
|
|
258
258
|
adminUserPassword: [],
|
|
259
259
|
authType: [],
|
|
260
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
260
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
261
261
|
preferredMaintenanceWindow: [],
|
|
262
262
|
shardCapacity: [],
|
|
263
263
|
shardCount: [],
|
|
@@ -13,101 +13,89 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
13
13
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
14
14
|
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
|
|
15
15
|
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
16
|
-
|
|
17
|
-
* @public
|
|
18
|
-
* <p>The new Amazon Elastic DocumentDB service endpoint.</p>
|
|
19
|
-
*/
|
|
20
|
-
export declare class DocDBElastic extends DocDBElasticClient {
|
|
16
|
+
export interface DocDBElastic {
|
|
21
17
|
/**
|
|
22
|
-
* @
|
|
23
|
-
* <p>Creates a new Elastic DocumentDB cluster and returns its Cluster structure.</p>
|
|
18
|
+
* @see {@link CreateClusterCommand}
|
|
24
19
|
*/
|
|
25
20
|
createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
|
|
26
21
|
createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
27
22
|
createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
28
23
|
/**
|
|
29
|
-
* @
|
|
30
|
-
* <p>Creates a snapshot of a cluster.</p>
|
|
24
|
+
* @see {@link CreateClusterSnapshotCommand}
|
|
31
25
|
*/
|
|
32
26
|
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterSnapshotCommandOutput>;
|
|
33
27
|
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, cb: (err: any, data?: CreateClusterSnapshotCommandOutput) => void): void;
|
|
34
28
|
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterSnapshotCommandOutput) => void): void;
|
|
35
29
|
/**
|
|
36
|
-
* @
|
|
37
|
-
* <p>Delete a Elastic DocumentDB cluster.</p>
|
|
30
|
+
* @see {@link DeleteClusterCommand}
|
|
38
31
|
*/
|
|
39
32
|
deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
|
|
40
33
|
deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
41
34
|
deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
42
35
|
/**
|
|
43
|
-
* @
|
|
44
|
-
* <p>Delete a Elastic DocumentDB snapshot.</p>
|
|
36
|
+
* @see {@link DeleteClusterSnapshotCommand}
|
|
45
37
|
*/
|
|
46
38
|
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterSnapshotCommandOutput>;
|
|
47
39
|
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, cb: (err: any, data?: DeleteClusterSnapshotCommandOutput) => void): void;
|
|
48
40
|
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterSnapshotCommandOutput) => void): void;
|
|
49
41
|
/**
|
|
50
|
-
* @
|
|
51
|
-
* <p>Returns information about a specific Elastic DocumentDB cluster.</p>
|
|
42
|
+
* @see {@link GetClusterCommand}
|
|
52
43
|
*/
|
|
53
44
|
getCluster(args: GetClusterCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterCommandOutput>;
|
|
54
45
|
getCluster(args: GetClusterCommandInput, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
55
46
|
getCluster(args: GetClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
56
47
|
/**
|
|
57
|
-
* @
|
|
58
|
-
* <p>Returns information about a specific Elastic DocumentDB snapshot</p>
|
|
48
|
+
* @see {@link GetClusterSnapshotCommand}
|
|
59
49
|
*/
|
|
60
50
|
getClusterSnapshot(args: GetClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterSnapshotCommandOutput>;
|
|
61
51
|
getClusterSnapshot(args: GetClusterSnapshotCommandInput, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
|
|
62
52
|
getClusterSnapshot(args: GetClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
|
|
63
53
|
/**
|
|
64
|
-
* @
|
|
65
|
-
* <p>Returns information about provisioned Elastic DocumentDB clusters.</p>
|
|
54
|
+
* @see {@link ListClustersCommand}
|
|
66
55
|
*/
|
|
67
56
|
listClusters(args: ListClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListClustersCommandOutput>;
|
|
68
57
|
listClusters(args: ListClustersCommandInput, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
|
|
69
58
|
listClusters(args: ListClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
|
|
70
59
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <p>Returns information about Elastic DocumentDB snapshots for a specified cluster.</p>
|
|
60
|
+
* @see {@link ListClusterSnapshotsCommand}
|
|
73
61
|
*/
|
|
74
62
|
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListClusterSnapshotsCommandOutput>;
|
|
75
63
|
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
|
|
76
64
|
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
|
|
77
65
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Lists all tags on a Elastic DocumentDB resource</p>
|
|
66
|
+
* @see {@link ListTagsForResourceCommand}
|
|
80
67
|
*/
|
|
81
68
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
82
69
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
83
70
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
84
71
|
/**
|
|
85
|
-
* @
|
|
86
|
-
* <p>Restores a Elastic DocumentDB cluster from a snapshot.</p>
|
|
72
|
+
* @see {@link RestoreClusterFromSnapshotCommand}
|
|
87
73
|
*/
|
|
88
74
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreClusterFromSnapshotCommandOutput>;
|
|
89
75
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
90
76
|
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
91
77
|
/**
|
|
92
|
-
* @
|
|
93
|
-
* <p>Adds metadata tags to a Elastic DocumentDB resource</p>
|
|
78
|
+
* @see {@link TagResourceCommand}
|
|
94
79
|
*/
|
|
95
80
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
96
81
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
97
82
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
98
83
|
/**
|
|
99
|
-
* @
|
|
100
|
-
* <p>Removes metadata tags to a Elastic DocumentDB resource</p>
|
|
84
|
+
* @see {@link UntagResourceCommand}
|
|
101
85
|
*/
|
|
102
86
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
103
87
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
104
88
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
105
89
|
/**
|
|
106
|
-
* @
|
|
107
|
-
* <p>Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password,
|
|
108
|
-
* upgrading API version setting up a backup window and maintenance window</p>
|
|
90
|
+
* @see {@link UpdateClusterCommand}
|
|
109
91
|
*/
|
|
110
92
|
updateCluster(args: UpdateClusterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterCommandOutput>;
|
|
111
93
|
updateCluster(args: UpdateClusterCommandInput, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
112
94
|
updateCluster(args: UpdateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
113
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* <p>The new Amazon Elastic DocumentDB service endpoint.</p>
|
|
99
|
+
*/
|
|
100
|
+
export declare class DocDBElastic extends DocDBElasticClient implements DocDBElastic {
|
|
101
|
+
}
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
UpdateClusterCommandOutput,
|
|
53
53
|
} from "./commands/UpdateClusterCommand";
|
|
54
54
|
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
55
|
-
export
|
|
55
|
+
export interface DocDBElastic {
|
|
56
56
|
createCluster(
|
|
57
57
|
args: CreateClusterCommandInput,
|
|
58
58
|
options?: __HttpHandlerOptions
|
|
@@ -223,3 +223,6 @@ export declare class DocDBElastic extends DocDBElasticClient {
|
|
|
223
223
|
cb: (err: any, data?: UpdateClusterCommandOutput) => void
|
|
224
224
|
): void;
|
|
225
225
|
}
|
|
226
|
+
export declare class DocDBElastic
|
|
227
|
+
extends DocDBElasticClient
|
|
228
|
+
implements DocDBElastic {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-docdb-elastic",
|
|
3
3
|
"description": "AWS SDK for JavaScript Docdb Elastic Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|