@aws-sdk/client-database-migration-service 3.122.0 → 3.128.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/CHANGELOG.md +27 -0
- package/dist-cjs/DatabaseMigrationService.js +15 -0
- package/dist-cjs/commands/UpdateSubscriptionsToEventBridgeCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_json1_1.js +770 -1064
- package/dist-es/DatabaseMigrationService.js +15 -0
- package/dist-es/commands/UpdateSubscriptionsToEventBridgeCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +368 -648
- package/dist-types/DatabaseMigrationService.d.ts +15 -0
- package/dist-types/DatabaseMigrationServiceClient.d.ts +3 -2
- package/dist-types/commands/UpdateSubscriptionsToEventBridgeCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +34 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/DatabaseMigrationService.d.ts +5 -0
- package/dist-types/ts3.4/DatabaseMigrationServiceClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateSubscriptionsToEventBridgeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +27 -27
|
@@ -63,6 +63,7 @@ import { StartReplicationTaskAssessmentRunCommand, } from "./commands/StartRepli
|
|
|
63
63
|
import { StartReplicationTaskCommand, } from "./commands/StartReplicationTaskCommand";
|
|
64
64
|
import { StopReplicationTaskCommand, } from "./commands/StopReplicationTaskCommand";
|
|
65
65
|
import { TestConnectionCommand, } from "./commands/TestConnectionCommand";
|
|
66
|
+
import { UpdateSubscriptionsToEventBridgeCommand, } from "./commands/UpdateSubscriptionsToEventBridgeCommand";
|
|
66
67
|
import { DatabaseMigrationServiceClient } from "./DatabaseMigrationServiceClient";
|
|
67
68
|
var DatabaseMigrationService = (function (_super) {
|
|
68
69
|
__extends(DatabaseMigrationService, _super);
|
|
@@ -965,6 +966,20 @@ var DatabaseMigrationService = (function (_super) {
|
|
|
965
966
|
return this.send(command, optionsOrCb);
|
|
966
967
|
}
|
|
967
968
|
};
|
|
969
|
+
DatabaseMigrationService.prototype.updateSubscriptionsToEventBridge = function (args, optionsOrCb, cb) {
|
|
970
|
+
var command = new UpdateSubscriptionsToEventBridgeCommand(args);
|
|
971
|
+
if (typeof optionsOrCb === "function") {
|
|
972
|
+
this.send(command, optionsOrCb);
|
|
973
|
+
}
|
|
974
|
+
else if (typeof cb === "function") {
|
|
975
|
+
if (typeof optionsOrCb !== "object")
|
|
976
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
977
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
978
|
+
}
|
|
979
|
+
else {
|
|
980
|
+
return this.send(command, optionsOrCb);
|
|
981
|
+
}
|
|
982
|
+
};
|
|
968
983
|
return DatabaseMigrationService;
|
|
969
984
|
}(DatabaseMigrationServiceClient));
|
|
970
985
|
export { DatabaseMigrationService };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateSubscriptionsToEventBridgeMessage, UpdateSubscriptionsToEventBridgeResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand, serializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UpdateSubscriptionsToEventBridgeCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateSubscriptionsToEventBridgeCommand, _super);
|
|
8
|
+
function UpdateSubscriptionsToEventBridgeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateSubscriptionsToEventBridgeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DatabaseMigrationServiceClient";
|
|
18
|
+
var commandName = "UpdateSubscriptionsToEventBridgeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateSubscriptionsToEventBridgeMessage.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateSubscriptionsToEventBridgeResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateSubscriptionsToEventBridgeCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateSubscriptionsToEventBridgeCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateSubscriptionsToEventBridgeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateSubscriptionsToEventBridgeCommand };
|
|
@@ -1229,3 +1229,11 @@ export var TestConnectionResponse;
|
|
|
1229
1229
|
(function (TestConnectionResponse) {
|
|
1230
1230
|
TestConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1231
1231
|
})(TestConnectionResponse || (TestConnectionResponse = {}));
|
|
1232
|
+
export var UpdateSubscriptionsToEventBridgeMessage;
|
|
1233
|
+
(function (UpdateSubscriptionsToEventBridgeMessage) {
|
|
1234
|
+
UpdateSubscriptionsToEventBridgeMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1235
|
+
})(UpdateSubscriptionsToEventBridgeMessage || (UpdateSubscriptionsToEventBridgeMessage = {}));
|
|
1236
|
+
export var UpdateSubscriptionsToEventBridgeResponse;
|
|
1237
|
+
(function (UpdateSubscriptionsToEventBridgeResponse) {
|
|
1238
|
+
UpdateSubscriptionsToEventBridgeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1239
|
+
})(UpdateSubscriptionsToEventBridgeResponse || (UpdateSubscriptionsToEventBridgeResponse = {}));
|