@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.
@@ -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 };
@@ -62,3 +62,4 @@ export * from "./StartReplicationTaskAssessmentRunCommand";
62
62
  export * from "./StartReplicationTaskCommand";
63
63
  export * from "./StopReplicationTaskCommand";
64
64
  export * from "./TestConnectionCommand";
65
+ export * from "./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 = {}));