@aws-sdk/client-eventbridge 3.55.0 → 3.66.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/EventBridge.js +75 -0
  3. package/dist-cjs/commands/CreateEndpointCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteEndpointCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeEndpointCommand.js +36 -0
  6. package/dist-cjs/commands/ListEndpointsCommand.js +36 -0
  7. package/dist-cjs/commands/PutEventsCommand.js +2 -0
  8. package/dist-cjs/commands/UpdateEndpointCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/models/models_0.js +121 -4
  11. package/dist-cjs/protocols/Aws_json1_1.js +514 -3
  12. package/dist-cjs/runtimeConfig.shared.js +4 -2
  13. package/dist-es/EventBridge.js +75 -0
  14. package/dist-es/commands/CreateEndpointCommand.js +39 -0
  15. package/dist-es/commands/DeleteEndpointCommand.js +39 -0
  16. package/dist-es/commands/DescribeEndpointCommand.js +39 -0
  17. package/dist-es/commands/ListEndpointsCommand.js +39 -0
  18. package/dist-es/commands/PutEventsCommand.js +2 -0
  19. package/dist-es/commands/UpdateEndpointCommand.js +39 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +83 -0
  22. package/dist-es/protocols/Aws_json1_1.js +556 -1
  23. package/dist-es/runtimeConfig.shared.js +4 -2
  24. package/dist-types/EventBridge.d.ts +81 -25
  25. package/dist-types/EventBridgeClient.d.ts +7 -2
  26. package/dist-types/commands/CreateEndpointCommand.d.ts +37 -0
  27. package/dist-types/commands/DeleteEndpointCommand.d.ts +35 -0
  28. package/dist-types/commands/DescribeEndpointCommand.d.ts +35 -0
  29. package/dist-types/commands/ListEndpointsCommand.d.ts +35 -0
  30. package/dist-types/commands/PutEventsCommand.d.ts +3 -0
  31. package/dist-types/commands/PutTargetsCommand.d.ts +41 -25
  32. package/dist-types/commands/UpdateEndpointCommand.d.ts +35 -0
  33. package/dist-types/commands/index.d.ts +5 -0
  34. package/dist-types/models/models_0.d.ts +472 -3
  35. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/runtimeConfig.d.ts +1 -1
  38. package/dist-types/runtimeConfig.native.d.ts +1 -1
  39. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  40. package/dist-types/ts3.4/EventBridge.d.ts +25 -0
  41. package/dist-types/ts3.4/EventBridgeClient.d.ts +7 -2
  42. package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +264 -0
  49. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  54. package/package.json +20 -18
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_1UpdateArchiveCommand = exports.serializeAws_json1_1UpdateApiDestinationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestEventPatternCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartReplayCommand = exports.serializeAws_json1_1RemoveTargetsCommand = exports.serializeAws_json1_1RemovePermissionCommand = exports.serializeAws_json1_1PutTargetsCommand = exports.serializeAws_json1_1PutRuleCommand = exports.serializeAws_json1_1PutPermissionCommand = exports.serializeAws_json1_1PutPartnerEventsCommand = exports.serializeAws_json1_1PutEventsCommand = exports.serializeAws_json1_1ListTargetsByRuleCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListRulesCommand = exports.serializeAws_json1_1ListRuleNamesByTargetCommand = exports.serializeAws_json1_1ListReplaysCommand = exports.serializeAws_json1_1ListPartnerEventSourcesCommand = exports.serializeAws_json1_1ListPartnerEventSourceAccountsCommand = exports.serializeAws_json1_1ListEventSourcesCommand = exports.serializeAws_json1_1ListEventBusesCommand = exports.serializeAws_json1_1ListConnectionsCommand = exports.serializeAws_json1_1ListArchivesCommand = exports.serializeAws_json1_1ListApiDestinationsCommand = exports.serializeAws_json1_1EnableRuleCommand = exports.serializeAws_json1_1DisableRuleCommand = exports.serializeAws_json1_1DescribeRuleCommand = exports.serializeAws_json1_1DescribeReplayCommand = exports.serializeAws_json1_1DescribePartnerEventSourceCommand = exports.serializeAws_json1_1DescribeEventSourceCommand = exports.serializeAws_json1_1DescribeEventBusCommand = exports.serializeAws_json1_1DescribeConnectionCommand = exports.serializeAws_json1_1DescribeArchiveCommand = exports.serializeAws_json1_1DescribeApiDestinationCommand = exports.serializeAws_json1_1DeleteRuleCommand = exports.serializeAws_json1_1DeletePartnerEventSourceCommand = exports.serializeAws_json1_1DeleteEventBusCommand = exports.serializeAws_json1_1DeleteConnectionCommand = exports.serializeAws_json1_1DeleteArchiveCommand = exports.serializeAws_json1_1DeleteApiDestinationCommand = exports.serializeAws_json1_1DeauthorizeConnectionCommand = exports.serializeAws_json1_1DeactivateEventSourceCommand = exports.serializeAws_json1_1CreatePartnerEventSourceCommand = exports.serializeAws_json1_1CreateEventBusCommand = exports.serializeAws_json1_1CreateConnectionCommand = exports.serializeAws_json1_1CreateArchiveCommand = exports.serializeAws_json1_1CreateApiDestinationCommand = exports.serializeAws_json1_1CancelReplayCommand = exports.serializeAws_json1_1ActivateEventSourceCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateApiDestinationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestEventPatternCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartReplayCommand = exports.deserializeAws_json1_1RemoveTargetsCommand = exports.deserializeAws_json1_1RemovePermissionCommand = exports.deserializeAws_json1_1PutTargetsCommand = exports.deserializeAws_json1_1PutRuleCommand = exports.deserializeAws_json1_1PutPermissionCommand = exports.deserializeAws_json1_1PutPartnerEventsCommand = exports.deserializeAws_json1_1PutEventsCommand = exports.deserializeAws_json1_1ListTargetsByRuleCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListRulesCommand = exports.deserializeAws_json1_1ListRuleNamesByTargetCommand = exports.deserializeAws_json1_1ListReplaysCommand = exports.deserializeAws_json1_1ListPartnerEventSourcesCommand = exports.deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = exports.deserializeAws_json1_1ListEventSourcesCommand = exports.deserializeAws_json1_1ListEventBusesCommand = exports.deserializeAws_json1_1ListConnectionsCommand = exports.deserializeAws_json1_1ListArchivesCommand = exports.deserializeAws_json1_1ListApiDestinationsCommand = exports.deserializeAws_json1_1EnableRuleCommand = exports.deserializeAws_json1_1DisableRuleCommand = exports.deserializeAws_json1_1DescribeRuleCommand = exports.deserializeAws_json1_1DescribeReplayCommand = exports.deserializeAws_json1_1DescribePartnerEventSourceCommand = exports.deserializeAws_json1_1DescribeEventSourceCommand = exports.deserializeAws_json1_1DescribeEventBusCommand = exports.deserializeAws_json1_1DescribeConnectionCommand = exports.deserializeAws_json1_1DescribeArchiveCommand = exports.deserializeAws_json1_1DescribeApiDestinationCommand = exports.deserializeAws_json1_1DeleteRuleCommand = exports.deserializeAws_json1_1DeletePartnerEventSourceCommand = exports.deserializeAws_json1_1DeleteEventBusCommand = exports.deserializeAws_json1_1DeleteConnectionCommand = exports.deserializeAws_json1_1DeleteArchiveCommand = exports.deserializeAws_json1_1DeleteApiDestinationCommand = exports.deserializeAws_json1_1DeauthorizeConnectionCommand = exports.deserializeAws_json1_1DeactivateEventSourceCommand = exports.deserializeAws_json1_1CreatePartnerEventSourceCommand = exports.deserializeAws_json1_1CreateEventBusCommand = exports.deserializeAws_json1_1CreateConnectionCommand = exports.deserializeAws_json1_1CreateArchiveCommand = exports.deserializeAws_json1_1CreateApiDestinationCommand = exports.deserializeAws_json1_1CancelReplayCommand = exports.deserializeAws_json1_1ActivateEventSourceCommand = exports.serializeAws_json1_1UpdateConnectionCommand = void 0;
5
- exports.deserializeAws_json1_1UpdateConnectionCommand = exports.deserializeAws_json1_1UpdateArchiveCommand = void 0;
3
+ exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartReplayCommand = exports.serializeAws_json1_1RemoveTargetsCommand = exports.serializeAws_json1_1RemovePermissionCommand = exports.serializeAws_json1_1PutTargetsCommand = exports.serializeAws_json1_1PutRuleCommand = exports.serializeAws_json1_1PutPermissionCommand = exports.serializeAws_json1_1PutPartnerEventsCommand = exports.serializeAws_json1_1PutEventsCommand = exports.serializeAws_json1_1ListTargetsByRuleCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListRulesCommand = exports.serializeAws_json1_1ListRuleNamesByTargetCommand = exports.serializeAws_json1_1ListReplaysCommand = exports.serializeAws_json1_1ListPartnerEventSourcesCommand = exports.serializeAws_json1_1ListPartnerEventSourceAccountsCommand = exports.serializeAws_json1_1ListEventSourcesCommand = exports.serializeAws_json1_1ListEventBusesCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListConnectionsCommand = exports.serializeAws_json1_1ListArchivesCommand = exports.serializeAws_json1_1ListApiDestinationsCommand = exports.serializeAws_json1_1EnableRuleCommand = exports.serializeAws_json1_1DisableRuleCommand = exports.serializeAws_json1_1DescribeRuleCommand = exports.serializeAws_json1_1DescribeReplayCommand = exports.serializeAws_json1_1DescribePartnerEventSourceCommand = exports.serializeAws_json1_1DescribeEventSourceCommand = exports.serializeAws_json1_1DescribeEventBusCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeConnectionCommand = exports.serializeAws_json1_1DescribeArchiveCommand = exports.serializeAws_json1_1DescribeApiDestinationCommand = exports.serializeAws_json1_1DeleteRuleCommand = exports.serializeAws_json1_1DeletePartnerEventSourceCommand = exports.serializeAws_json1_1DeleteEventBusCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteConnectionCommand = exports.serializeAws_json1_1DeleteArchiveCommand = exports.serializeAws_json1_1DeleteApiDestinationCommand = exports.serializeAws_json1_1DeauthorizeConnectionCommand = exports.serializeAws_json1_1DeactivateEventSourceCommand = exports.serializeAws_json1_1CreatePartnerEventSourceCommand = exports.serializeAws_json1_1CreateEventBusCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateConnectionCommand = exports.serializeAws_json1_1CreateArchiveCommand = exports.serializeAws_json1_1CreateApiDestinationCommand = exports.serializeAws_json1_1CancelReplayCommand = exports.serializeAws_json1_1ActivateEventSourceCommand = void 0;
4
+ exports.deserializeAws_json1_1PutPermissionCommand = exports.deserializeAws_json1_1PutPartnerEventsCommand = exports.deserializeAws_json1_1PutEventsCommand = exports.deserializeAws_json1_1ListTargetsByRuleCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListRulesCommand = exports.deserializeAws_json1_1ListRuleNamesByTargetCommand = exports.deserializeAws_json1_1ListReplaysCommand = exports.deserializeAws_json1_1ListPartnerEventSourcesCommand = exports.deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = exports.deserializeAws_json1_1ListEventSourcesCommand = exports.deserializeAws_json1_1ListEventBusesCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListConnectionsCommand = exports.deserializeAws_json1_1ListArchivesCommand = exports.deserializeAws_json1_1ListApiDestinationsCommand = exports.deserializeAws_json1_1EnableRuleCommand = exports.deserializeAws_json1_1DisableRuleCommand = exports.deserializeAws_json1_1DescribeRuleCommand = exports.deserializeAws_json1_1DescribeReplayCommand = exports.deserializeAws_json1_1DescribePartnerEventSourceCommand = exports.deserializeAws_json1_1DescribeEventSourceCommand = exports.deserializeAws_json1_1DescribeEventBusCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeConnectionCommand = exports.deserializeAws_json1_1DescribeArchiveCommand = exports.deserializeAws_json1_1DescribeApiDestinationCommand = exports.deserializeAws_json1_1DeleteRuleCommand = exports.deserializeAws_json1_1DeletePartnerEventSourceCommand = exports.deserializeAws_json1_1DeleteEventBusCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteConnectionCommand = exports.deserializeAws_json1_1DeleteArchiveCommand = exports.deserializeAws_json1_1DeleteApiDestinationCommand = exports.deserializeAws_json1_1DeauthorizeConnectionCommand = exports.deserializeAws_json1_1DeactivateEventSourceCommand = exports.deserializeAws_json1_1CreatePartnerEventSourceCommand = exports.deserializeAws_json1_1CreateEventBusCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateConnectionCommand = exports.deserializeAws_json1_1CreateArchiveCommand = exports.deserializeAws_json1_1CreateApiDestinationCommand = exports.deserializeAws_json1_1CancelReplayCommand = exports.deserializeAws_json1_1ActivateEventSourceCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UpdateConnectionCommand = exports.serializeAws_json1_1UpdateArchiveCommand = exports.serializeAws_json1_1UpdateApiDestinationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestEventPatternCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UpdateConnectionCommand = exports.deserializeAws_json1_1UpdateArchiveCommand = exports.deserializeAws_json1_1UpdateApiDestinationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestEventPatternCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartReplayCommand = exports.deserializeAws_json1_1RemoveTargetsCommand = exports.deserializeAws_json1_1RemovePermissionCommand = exports.deserializeAws_json1_1PutTargetsCommand = exports.deserializeAws_json1_1PutRuleCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const EventBridgeServiceException_1 = require("../models/EventBridgeServiceException");
@@ -57,6 +57,16 @@ const serializeAws_json1_1CreateConnectionCommand = async (input, context) => {
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  exports.serializeAws_json1_1CreateConnectionCommand = serializeAws_json1_1CreateConnectionCommand;
60
+ const serializeAws_json1_1CreateEndpointCommand = async (input, context) => {
61
+ const headers = {
62
+ "content-type": "application/x-amz-json-1.1",
63
+ "x-amz-target": "AWSEvents.CreateEndpoint",
64
+ };
65
+ let body;
66
+ body = JSON.stringify(serializeAws_json1_1CreateEndpointRequest(input, context));
67
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
+ };
69
+ exports.serializeAws_json1_1CreateEndpointCommand = serializeAws_json1_1CreateEndpointCommand;
60
70
  const serializeAws_json1_1CreateEventBusCommand = async (input, context) => {
61
71
  const headers = {
62
72
  "content-type": "application/x-amz-json-1.1",
@@ -127,6 +137,16 @@ const serializeAws_json1_1DeleteConnectionCommand = async (input, context) => {
127
137
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
138
  };
129
139
  exports.serializeAws_json1_1DeleteConnectionCommand = serializeAws_json1_1DeleteConnectionCommand;
140
+ const serializeAws_json1_1DeleteEndpointCommand = async (input, context) => {
141
+ const headers = {
142
+ "content-type": "application/x-amz-json-1.1",
143
+ "x-amz-target": "AWSEvents.DeleteEndpoint",
144
+ };
145
+ let body;
146
+ body = JSON.stringify(serializeAws_json1_1DeleteEndpointRequest(input, context));
147
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
+ };
149
+ exports.serializeAws_json1_1DeleteEndpointCommand = serializeAws_json1_1DeleteEndpointCommand;
130
150
  const serializeAws_json1_1DeleteEventBusCommand = async (input, context) => {
131
151
  const headers = {
132
152
  "content-type": "application/x-amz-json-1.1",
@@ -187,6 +207,16 @@ const serializeAws_json1_1DescribeConnectionCommand = async (input, context) =>
187
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
208
  };
189
209
  exports.serializeAws_json1_1DescribeConnectionCommand = serializeAws_json1_1DescribeConnectionCommand;
210
+ const serializeAws_json1_1DescribeEndpointCommand = async (input, context) => {
211
+ const headers = {
212
+ "content-type": "application/x-amz-json-1.1",
213
+ "x-amz-target": "AWSEvents.DescribeEndpoint",
214
+ };
215
+ let body;
216
+ body = JSON.stringify(serializeAws_json1_1DescribeEndpointRequest(input, context));
217
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
+ };
219
+ exports.serializeAws_json1_1DescribeEndpointCommand = serializeAws_json1_1DescribeEndpointCommand;
190
220
  const serializeAws_json1_1DescribeEventBusCommand = async (input, context) => {
191
221
  const headers = {
192
222
  "content-type": "application/x-amz-json-1.1",
@@ -287,6 +317,16 @@ const serializeAws_json1_1ListConnectionsCommand = async (input, context) => {
287
317
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
318
  };
289
319
  exports.serializeAws_json1_1ListConnectionsCommand = serializeAws_json1_1ListConnectionsCommand;
320
+ const serializeAws_json1_1ListEndpointsCommand = async (input, context) => {
321
+ const headers = {
322
+ "content-type": "application/x-amz-json-1.1",
323
+ "x-amz-target": "AWSEvents.ListEndpoints",
324
+ };
325
+ let body;
326
+ body = JSON.stringify(serializeAws_json1_1ListEndpointsRequest(input, context));
327
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
+ };
329
+ exports.serializeAws_json1_1ListEndpointsCommand = serializeAws_json1_1ListEndpointsCommand;
290
330
  const serializeAws_json1_1ListEventBusesCommand = async (input, context) => {
291
331
  const headers = {
292
332
  "content-type": "application/x-amz-json-1.1",
@@ -517,6 +557,16 @@ const serializeAws_json1_1UpdateConnectionCommand = async (input, context) => {
517
557
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
558
  };
519
559
  exports.serializeAws_json1_1UpdateConnectionCommand = serializeAws_json1_1UpdateConnectionCommand;
560
+ const serializeAws_json1_1UpdateEndpointCommand = async (input, context) => {
561
+ const headers = {
562
+ "content-type": "application/x-amz-json-1.1",
563
+ "x-amz-target": "AWSEvents.UpdateEndpoint",
564
+ };
565
+ let body;
566
+ body = JSON.stringify(serializeAws_json1_1UpdateEndpointRequest(input, context));
567
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
+ };
569
+ exports.serializeAws_json1_1UpdateEndpointCommand = serializeAws_json1_1UpdateEndpointCommand;
520
570
  const deserializeAws_json1_1ActivateEventSourceCommand = async (output, context) => {
521
571
  if (output.statusCode >= 300) {
522
572
  return deserializeAws_json1_1ActivateEventSourceCommandError(output, context);
@@ -745,6 +795,48 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
745
795
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
746
796
  }
747
797
  };
798
+ const deserializeAws_json1_1CreateEndpointCommand = async (output, context) => {
799
+ if (output.statusCode >= 300) {
800
+ return deserializeAws_json1_1CreateEndpointCommandError(output, context);
801
+ }
802
+ const data = await parseBody(output.body, context);
803
+ let contents = {};
804
+ contents = deserializeAws_json1_1CreateEndpointResponse(data, context);
805
+ const response = {
806
+ $metadata: deserializeMetadata(output),
807
+ ...contents,
808
+ };
809
+ return Promise.resolve(response);
810
+ };
811
+ exports.deserializeAws_json1_1CreateEndpointCommand = deserializeAws_json1_1CreateEndpointCommand;
812
+ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context) => {
813
+ const parsedOutput = {
814
+ ...output,
815
+ body: await parseBody(output.body, context),
816
+ };
817
+ let response;
818
+ let errorCode = "UnknownError";
819
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
820
+ switch (errorCode) {
821
+ case "InternalException":
822
+ case "com.amazonaws.eventbridge#InternalException":
823
+ throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
824
+ case "LimitExceededException":
825
+ case "com.amazonaws.eventbridge#LimitExceededException":
826
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
827
+ case "ResourceAlreadyExistsException":
828
+ case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
829
+ throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
830
+ default:
831
+ const parsedBody = parsedOutput.body;
832
+ response = new EventBridgeServiceException_1.EventBridgeServiceException({
833
+ name: parsedBody.code || parsedBody.Code || errorCode,
834
+ $fault: "client",
835
+ $metadata: deserializeMetadata(output),
836
+ });
837
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
838
+ }
839
+ };
748
840
  const deserializeAws_json1_1CreateEventBusCommand = async (output, context) => {
749
841
  if (output.statusCode >= 300) {
750
842
  return deserializeAws_json1_1CreateEventBusCommandError(output, context);
@@ -1060,6 +1152,48 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
1060
1152
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1061
1153
  }
1062
1154
  };
1155
+ const deserializeAws_json1_1DeleteEndpointCommand = async (output, context) => {
1156
+ if (output.statusCode >= 300) {
1157
+ return deserializeAws_json1_1DeleteEndpointCommandError(output, context);
1158
+ }
1159
+ const data = await parseBody(output.body, context);
1160
+ let contents = {};
1161
+ contents = deserializeAws_json1_1DeleteEndpointResponse(data, context);
1162
+ const response = {
1163
+ $metadata: deserializeMetadata(output),
1164
+ ...contents,
1165
+ };
1166
+ return Promise.resolve(response);
1167
+ };
1168
+ exports.deserializeAws_json1_1DeleteEndpointCommand = deserializeAws_json1_1DeleteEndpointCommand;
1169
+ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context) => {
1170
+ const parsedOutput = {
1171
+ ...output,
1172
+ body: await parseBody(output.body, context),
1173
+ };
1174
+ let response;
1175
+ let errorCode = "UnknownError";
1176
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1177
+ switch (errorCode) {
1178
+ case "ConcurrentModificationException":
1179
+ case "com.amazonaws.eventbridge#ConcurrentModificationException":
1180
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
1181
+ case "InternalException":
1182
+ case "com.amazonaws.eventbridge#InternalException":
1183
+ throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
1184
+ case "ResourceNotFoundException":
1185
+ case "com.amazonaws.eventbridge#ResourceNotFoundException":
1186
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1187
+ default:
1188
+ const parsedBody = parsedOutput.body;
1189
+ response = new EventBridgeServiceException_1.EventBridgeServiceException({
1190
+ name: parsedBody.code || parsedBody.Code || errorCode,
1191
+ $fault: "client",
1192
+ $metadata: deserializeMetadata(output),
1193
+ });
1194
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1195
+ }
1196
+ };
1063
1197
  const deserializeAws_json1_1DeleteEventBusCommand = async (output, context) => {
1064
1198
  if (output.statusCode >= 300) {
1065
1199
  return deserializeAws_json1_1DeleteEventBusCommandError(output, context);
@@ -1297,6 +1431,45 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
1297
1431
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1298
1432
  }
1299
1433
  };
1434
+ const deserializeAws_json1_1DescribeEndpointCommand = async (output, context) => {
1435
+ if (output.statusCode >= 300) {
1436
+ return deserializeAws_json1_1DescribeEndpointCommandError(output, context);
1437
+ }
1438
+ const data = await parseBody(output.body, context);
1439
+ let contents = {};
1440
+ contents = deserializeAws_json1_1DescribeEndpointResponse(data, context);
1441
+ const response = {
1442
+ $metadata: deserializeMetadata(output),
1443
+ ...contents,
1444
+ };
1445
+ return Promise.resolve(response);
1446
+ };
1447
+ exports.deserializeAws_json1_1DescribeEndpointCommand = deserializeAws_json1_1DescribeEndpointCommand;
1448
+ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, context) => {
1449
+ const parsedOutput = {
1450
+ ...output,
1451
+ body: await parseBody(output.body, context),
1452
+ };
1453
+ let response;
1454
+ let errorCode = "UnknownError";
1455
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1456
+ switch (errorCode) {
1457
+ case "InternalException":
1458
+ case "com.amazonaws.eventbridge#InternalException":
1459
+ throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
1460
+ case "ResourceNotFoundException":
1461
+ case "com.amazonaws.eventbridge#ResourceNotFoundException":
1462
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1463
+ default:
1464
+ const parsedBody = parsedOutput.body;
1465
+ response = new EventBridgeServiceException_1.EventBridgeServiceException({
1466
+ name: parsedBody.code || parsedBody.Code || errorCode,
1467
+ $fault: "client",
1468
+ $metadata: deserializeMetadata(output),
1469
+ });
1470
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1471
+ }
1472
+ };
1300
1473
  const deserializeAws_json1_1DescribeEventBusCommand = async (output, context) => {
1301
1474
  if (output.statusCode >= 300) {
1302
1475
  return deserializeAws_json1_1DescribeEventBusCommandError(output, context);
@@ -1693,6 +1866,42 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
1693
1866
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1694
1867
  }
1695
1868
  };
1869
+ const deserializeAws_json1_1ListEndpointsCommand = async (output, context) => {
1870
+ if (output.statusCode >= 300) {
1871
+ return deserializeAws_json1_1ListEndpointsCommandError(output, context);
1872
+ }
1873
+ const data = await parseBody(output.body, context);
1874
+ let contents = {};
1875
+ contents = deserializeAws_json1_1ListEndpointsResponse(data, context);
1876
+ const response = {
1877
+ $metadata: deserializeMetadata(output),
1878
+ ...contents,
1879
+ };
1880
+ return Promise.resolve(response);
1881
+ };
1882
+ exports.deserializeAws_json1_1ListEndpointsCommand = deserializeAws_json1_1ListEndpointsCommand;
1883
+ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context) => {
1884
+ const parsedOutput = {
1885
+ ...output,
1886
+ body: await parseBody(output.body, context),
1887
+ };
1888
+ let response;
1889
+ let errorCode = "UnknownError";
1890
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1891
+ switch (errorCode) {
1892
+ case "InternalException":
1893
+ case "com.amazonaws.eventbridge#InternalException":
1894
+ throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
1895
+ default:
1896
+ const parsedBody = parsedOutput.body;
1897
+ response = new EventBridgeServiceException_1.EventBridgeServiceException({
1898
+ name: parsedBody.code || parsedBody.Code || errorCode,
1899
+ $fault: "client",
1900
+ $metadata: deserializeMetadata(output),
1901
+ });
1902
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1903
+ }
1904
+ };
1696
1905
  const deserializeAws_json1_1ListEventBusesCommand = async (output, context) => {
1697
1906
  if (output.statusCode >= 300) {
1698
1907
  return deserializeAws_json1_1ListEventBusesCommandError(output, context);
@@ -2662,6 +2871,48 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
2662
2871
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2663
2872
  }
2664
2873
  };
2874
+ const deserializeAws_json1_1UpdateEndpointCommand = async (output, context) => {
2875
+ if (output.statusCode >= 300) {
2876
+ return deserializeAws_json1_1UpdateEndpointCommandError(output, context);
2877
+ }
2878
+ const data = await parseBody(output.body, context);
2879
+ let contents = {};
2880
+ contents = deserializeAws_json1_1UpdateEndpointResponse(data, context);
2881
+ const response = {
2882
+ $metadata: deserializeMetadata(output),
2883
+ ...contents,
2884
+ };
2885
+ return Promise.resolve(response);
2886
+ };
2887
+ exports.deserializeAws_json1_1UpdateEndpointCommand = deserializeAws_json1_1UpdateEndpointCommand;
2888
+ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context) => {
2889
+ const parsedOutput = {
2890
+ ...output,
2891
+ body: await parseBody(output.body, context),
2892
+ };
2893
+ let response;
2894
+ let errorCode = "UnknownError";
2895
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2896
+ switch (errorCode) {
2897
+ case "ConcurrentModificationException":
2898
+ case "com.amazonaws.eventbridge#ConcurrentModificationException":
2899
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
2900
+ case "InternalException":
2901
+ case "com.amazonaws.eventbridge#InternalException":
2902
+ throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
2903
+ case "ResourceNotFoundException":
2904
+ case "com.amazonaws.eventbridge#ResourceNotFoundException":
2905
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2906
+ default:
2907
+ const parsedBody = parsedOutput.body;
2908
+ response = new EventBridgeServiceException_1.EventBridgeServiceException({
2909
+ name: parsedBody.code || parsedBody.Code || errorCode,
2910
+ $fault: "client",
2911
+ $metadata: deserializeMetadata(output),
2912
+ });
2913
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2914
+ }
2915
+ };
2665
2916
  const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
2666
2917
  const body = parsedOutput.body;
2667
2918
  const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
@@ -2988,6 +3239,23 @@ const serializeAws_json1_1CreateConnectionRequest = (input, context) => {
2988
3239
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2989
3240
  };
2990
3241
  };
3242
+ const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
3243
+ return {
3244
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3245
+ ...(input.EventBuses !== undefined &&
3246
+ input.EventBuses !== null && { EventBuses: serializeAws_json1_1EndpointEventBusList(input.EventBuses, context) }),
3247
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3248
+ ...(input.ReplicationConfig !== undefined &&
3249
+ input.ReplicationConfig !== null && {
3250
+ ReplicationConfig: serializeAws_json1_1ReplicationConfig(input.ReplicationConfig, context),
3251
+ }),
3252
+ ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
3253
+ ...(input.RoutingConfig !== undefined &&
3254
+ input.RoutingConfig !== null && {
3255
+ RoutingConfig: serializeAws_json1_1RoutingConfig(input.RoutingConfig, context),
3256
+ }),
3257
+ };
3258
+ };
2991
3259
  const serializeAws_json1_1CreateEventBusRequest = (input, context) => {
2992
3260
  return {
2993
3261
  ...(input.EventSourceName !== undefined &&
@@ -3032,6 +3300,11 @@ const serializeAws_json1_1DeleteConnectionRequest = (input, context) => {
3032
3300
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3033
3301
  };
3034
3302
  };
3303
+ const serializeAws_json1_1DeleteEndpointRequest = (input, context) => {
3304
+ return {
3305
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3306
+ };
3307
+ };
3035
3308
  const serializeAws_json1_1DeleteEventBusRequest = (input, context) => {
3036
3309
  return {
3037
3310
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
@@ -3065,6 +3338,12 @@ const serializeAws_json1_1DescribeConnectionRequest = (input, context) => {
3065
3338
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3066
3339
  };
3067
3340
  };
3341
+ const serializeAws_json1_1DescribeEndpointRequest = (input, context) => {
3342
+ return {
3343
+ ...(input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion }),
3344
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3345
+ };
3346
+ };
3068
3347
  const serializeAws_json1_1DescribeEventBusRequest = (input, context) => {
3069
3348
  return {
3070
3349
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
@@ -3137,6 +3416,21 @@ const serializeAws_json1_1EnableRuleRequest = (input, context) => {
3137
3416
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3138
3417
  };
3139
3418
  };
3419
+ const serializeAws_json1_1EndpointEventBus = (input, context) => {
3420
+ return {
3421
+ ...(input.EventBusArn !== undefined && input.EventBusArn !== null && { EventBusArn: input.EventBusArn }),
3422
+ };
3423
+ };
3424
+ const serializeAws_json1_1EndpointEventBusList = (input, context) => {
3425
+ return input
3426
+ .filter((e) => e != null)
3427
+ .map((entry) => {
3428
+ if (entry === null) {
3429
+ return null;
3430
+ }
3431
+ return serializeAws_json1_1EndpointEventBus(entry, context);
3432
+ });
3433
+ };
3140
3434
  const serializeAws_json1_1EventResourceList = (input, context) => {
3141
3435
  return input
3142
3436
  .filter((e) => e != null)
@@ -3147,6 +3441,14 @@ const serializeAws_json1_1EventResourceList = (input, context) => {
3147
3441
  return entry;
3148
3442
  });
3149
3443
  };
3444
+ const serializeAws_json1_1FailoverConfig = (input, context) => {
3445
+ return {
3446
+ ...(input.Primary !== undefined &&
3447
+ input.Primary !== null && { Primary: serializeAws_json1_1Primary(input.Primary, context) }),
3448
+ ...(input.Secondary !== undefined &&
3449
+ input.Secondary !== null && { Secondary: serializeAws_json1_1Secondary(input.Secondary, context) }),
3450
+ };
3451
+ };
3150
3452
  const serializeAws_json1_1HeaderParametersMap = (input, context) => {
3151
3453
  return Object.entries(input).reduce((acc, [key, value]) => {
3152
3454
  if (value === null) {
@@ -3216,6 +3518,14 @@ const serializeAws_json1_1ListConnectionsRequest = (input, context) => {
3216
3518
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3217
3519
  };
3218
3520
  };
3521
+ const serializeAws_json1_1ListEndpointsRequest = (input, context) => {
3522
+ return {
3523
+ ...(input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion }),
3524
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3525
+ ...(input.NamePrefix !== undefined && input.NamePrefix !== null && { NamePrefix: input.NamePrefix }),
3526
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3527
+ };
3528
+ };
3219
3529
  const serializeAws_json1_1ListEventBusesRequest = (input, context) => {
3220
3530
  return {
3221
3531
  ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
@@ -3334,8 +3644,14 @@ const serializeAws_json1_1PlacementStrategy = (input, context) => {
3334
3644
  ...(input.type !== undefined && input.type !== null && { type: input.type }),
3335
3645
  };
3336
3646
  };
3647
+ const serializeAws_json1_1Primary = (input, context) => {
3648
+ return {
3649
+ ...(input.HealthCheck !== undefined && input.HealthCheck !== null && { HealthCheck: input.HealthCheck }),
3650
+ };
3651
+ };
3337
3652
  const serializeAws_json1_1PutEventsRequest = (input, context) => {
3338
3653
  return {
3654
+ ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
3339
3655
  ...(input.Entries !== undefined &&
3340
3656
  input.Entries !== null && { Entries: serializeAws_json1_1PutEventsRequestEntryList(input.Entries, context) }),
3341
3657
  };
@@ -3479,6 +3795,11 @@ const serializeAws_json1_1ReplayDestinationFilters = (input, context) => {
3479
3795
  return entry;
3480
3796
  });
3481
3797
  };
3798
+ const serializeAws_json1_1ReplicationConfig = (input, context) => {
3799
+ return {
3800
+ ...(input.State !== undefined && input.State !== null && { State: input.State }),
3801
+ };
3802
+ };
3482
3803
  const serializeAws_json1_1RetryPolicy = (input, context) => {
3483
3804
  return {
3484
3805
  ...(input.MaximumEventAgeInSeconds !== undefined &&
@@ -3487,6 +3808,14 @@ const serializeAws_json1_1RetryPolicy = (input, context) => {
3487
3808
  input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
3488
3809
  };
3489
3810
  };
3811
+ const serializeAws_json1_1RoutingConfig = (input, context) => {
3812
+ return {
3813
+ ...(input.FailoverConfig !== undefined &&
3814
+ input.FailoverConfig !== null && {
3815
+ FailoverConfig: serializeAws_json1_1FailoverConfig(input.FailoverConfig, context),
3816
+ }),
3817
+ };
3818
+ };
3490
3819
  const serializeAws_json1_1RunCommandParameters = (input, context) => {
3491
3820
  return {
3492
3821
  ...(input.RunCommandTargets !== undefined &&
@@ -3546,6 +3875,11 @@ const serializeAws_json1_1SageMakerPipelineParameters = (input, context) => {
3546
3875
  }),
3547
3876
  };
3548
3877
  };
3878
+ const serializeAws_json1_1Secondary = (input, context) => {
3879
+ return {
3880
+ ...(input.Route !== undefined && input.Route !== null && { Route: input.Route }),
3881
+ };
3882
+ };
3549
3883
  const serializeAws_json1_1SqsParameters = (input, context) => {
3550
3884
  return {
3551
3885
  ...(input.MessageGroupId !== undefined &&
@@ -3790,6 +4124,23 @@ const serializeAws_json1_1UpdateConnectionRequest = (input, context) => {
3790
4124
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3791
4125
  };
3792
4126
  };
4127
+ const serializeAws_json1_1UpdateEndpointRequest = (input, context) => {
4128
+ return {
4129
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4130
+ ...(input.EventBuses !== undefined &&
4131
+ input.EventBuses !== null && { EventBuses: serializeAws_json1_1EndpointEventBusList(input.EventBuses, context) }),
4132
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4133
+ ...(input.ReplicationConfig !== undefined &&
4134
+ input.ReplicationConfig !== null && {
4135
+ ReplicationConfig: serializeAws_json1_1ReplicationConfig(input.ReplicationConfig, context),
4136
+ }),
4137
+ ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
4138
+ ...(input.RoutingConfig !== undefined &&
4139
+ input.RoutingConfig !== null && {
4140
+ RoutingConfig: serializeAws_json1_1RoutingConfig(input.RoutingConfig, context),
4141
+ }),
4142
+ };
4143
+ };
3793
4144
  const deserializeAws_json1_1ApiDestination = (output, context) => {
3794
4145
  return {
3795
4146
  ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
@@ -4079,6 +4430,23 @@ const deserializeAws_json1_1CreateConnectionResponse = (output, context) => {
4079
4430
  : undefined,
4080
4431
  };
4081
4432
  };
4433
+ const deserializeAws_json1_1CreateEndpointResponse = (output, context) => {
4434
+ return {
4435
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4436
+ EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
4437
+ ? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
4438
+ : undefined,
4439
+ Name: (0, smithy_client_1.expectString)(output.Name),
4440
+ ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
4441
+ ? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
4442
+ : undefined,
4443
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4444
+ RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
4445
+ ? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
4446
+ : undefined,
4447
+ State: (0, smithy_client_1.expectString)(output.State),
4448
+ };
4449
+ };
4082
4450
  const deserializeAws_json1_1CreateEventBusResponse = (output, context) => {
4083
4451
  return {
4084
4452
  EventBusArn: (0, smithy_client_1.expectString)(output.EventBusArn),
@@ -4130,6 +4498,9 @@ const deserializeAws_json1_1DeleteConnectionResponse = (output, context) => {
4130
4498
  : undefined,
4131
4499
  };
4132
4500
  };
4501
+ const deserializeAws_json1_1DeleteEndpointResponse = (output, context) => {
4502
+ return {};
4503
+ };
4133
4504
  const deserializeAws_json1_1DescribeApiDestinationResponse = (output, context) => {
4134
4505
  return {
4135
4506
  ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
@@ -4188,6 +4559,33 @@ const deserializeAws_json1_1DescribeConnectionResponse = (output, context) => {
4188
4559
  StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4189
4560
  };
4190
4561
  };
4562
+ const deserializeAws_json1_1DescribeEndpointResponse = (output, context) => {
4563
+ return {
4564
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4565
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4566
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4567
+ : undefined,
4568
+ Description: (0, smithy_client_1.expectString)(output.Description),
4569
+ EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
4570
+ EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
4571
+ EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
4572
+ ? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
4573
+ : undefined,
4574
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4575
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4576
+ : undefined,
4577
+ Name: (0, smithy_client_1.expectString)(output.Name),
4578
+ ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
4579
+ ? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
4580
+ : undefined,
4581
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4582
+ RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
4583
+ ? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
4584
+ : undefined,
4585
+ State: (0, smithy_client_1.expectString)(output.State),
4586
+ StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4587
+ };
4588
+ };
4191
4589
  const deserializeAws_json1_1DescribeEventBusResponse = (output, context) => {
4192
4590
  return {
4193
4591
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -4285,6 +4683,60 @@ const deserializeAws_json1_1EcsParameters = (output, context) => {
4285
4683
  TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
4286
4684
  };
4287
4685
  };
4686
+ const deserializeAws_json1_1Endpoint = (output, context) => {
4687
+ return {
4688
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4689
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4690
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4691
+ : undefined,
4692
+ Description: (0, smithy_client_1.expectString)(output.Description),
4693
+ EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
4694
+ EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
4695
+ EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
4696
+ ? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
4697
+ : undefined,
4698
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4699
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4700
+ : undefined,
4701
+ Name: (0, smithy_client_1.expectString)(output.Name),
4702
+ ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
4703
+ ? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
4704
+ : undefined,
4705
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4706
+ RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
4707
+ ? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
4708
+ : undefined,
4709
+ State: (0, smithy_client_1.expectString)(output.State),
4710
+ StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4711
+ };
4712
+ };
4713
+ const deserializeAws_json1_1EndpointEventBus = (output, context) => {
4714
+ return {
4715
+ EventBusArn: (0, smithy_client_1.expectString)(output.EventBusArn),
4716
+ };
4717
+ };
4718
+ const deserializeAws_json1_1EndpointEventBusList = (output, context) => {
4719
+ const retVal = (output || [])
4720
+ .filter((e) => e != null)
4721
+ .map((entry) => {
4722
+ if (entry === null) {
4723
+ return null;
4724
+ }
4725
+ return deserializeAws_json1_1EndpointEventBus(entry, context);
4726
+ });
4727
+ return retVal;
4728
+ };
4729
+ const deserializeAws_json1_1EndpointList = (output, context) => {
4730
+ const retVal = (output || [])
4731
+ .filter((e) => e != null)
4732
+ .map((entry) => {
4733
+ if (entry === null) {
4734
+ return null;
4735
+ }
4736
+ return deserializeAws_json1_1Endpoint(entry, context);
4737
+ });
4738
+ return retVal;
4739
+ };
4288
4740
  const deserializeAws_json1_1EventBus = (output, context) => {
4289
4741
  return {
4290
4742
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -4328,6 +4780,16 @@ const deserializeAws_json1_1EventSourceList = (output, context) => {
4328
4780
  });
4329
4781
  return retVal;
4330
4782
  };
4783
+ const deserializeAws_json1_1FailoverConfig = (output, context) => {
4784
+ return {
4785
+ Primary: output.Primary !== undefined && output.Primary !== null
4786
+ ? deserializeAws_json1_1Primary(output.Primary, context)
4787
+ : undefined,
4788
+ Secondary: output.Secondary !== undefined && output.Secondary !== null
4789
+ ? deserializeAws_json1_1Secondary(output.Secondary, context)
4790
+ : undefined,
4791
+ };
4792
+ };
4331
4793
  const deserializeAws_json1_1HeaderParametersMap = (output, context) => {
4332
4794
  return Object.entries(output).reduce((acc, [key, value]) => {
4333
4795
  if (value === null) {
@@ -4414,6 +4876,14 @@ const deserializeAws_json1_1ListConnectionsResponse = (output, context) => {
4414
4876
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4415
4877
  };
4416
4878
  };
4879
+ const deserializeAws_json1_1ListEndpointsResponse = (output, context) => {
4880
+ return {
4881
+ Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
4882
+ ? deserializeAws_json1_1EndpointList(output.Endpoints, context)
4883
+ : undefined,
4884
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4885
+ };
4886
+ };
4417
4887
  const deserializeAws_json1_1ListEventBusesResponse = (output, context) => {
4418
4888
  return {
4419
4889
  EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
@@ -4592,6 +5062,11 @@ const deserializeAws_json1_1PolicyLengthExceededException = (output, context) =>
4592
5062
  message: (0, smithy_client_1.expectString)(output.message),
4593
5063
  };
4594
5064
  };
5065
+ const deserializeAws_json1_1Primary = (output, context) => {
5066
+ return {
5067
+ HealthCheck: (0, smithy_client_1.expectString)(output.HealthCheck),
5068
+ };
5069
+ };
4595
5070
  const deserializeAws_json1_1PutEventsResponse = (output, context) => {
4596
5071
  return {
4597
5072
  Entries: output.Entries !== undefined && output.Entries !== null
@@ -4775,6 +5250,11 @@ const deserializeAws_json1_1ReplayList = (output, context) => {
4775
5250
  });
4776
5251
  return retVal;
4777
5252
  };
5253
+ const deserializeAws_json1_1ReplicationConfig = (output, context) => {
5254
+ return {
5255
+ State: (0, smithy_client_1.expectString)(output.State),
5256
+ };
5257
+ };
4778
5258
  const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
4779
5259
  return {
4780
5260
  message: (0, smithy_client_1.expectString)(output.message),
@@ -4791,6 +5271,13 @@ const deserializeAws_json1_1RetryPolicy = (output, context) => {
4791
5271
  MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
4792
5272
  };
4793
5273
  };
5274
+ const deserializeAws_json1_1RoutingConfig = (output, context) => {
5275
+ return {
5276
+ FailoverConfig: output.FailoverConfig !== undefined && output.FailoverConfig !== null
5277
+ ? deserializeAws_json1_1FailoverConfig(output.FailoverConfig, context)
5278
+ : undefined,
5279
+ };
5280
+ };
4794
5281
  const deserializeAws_json1_1Rule = (output, context) => {
4795
5282
  return {
4796
5283
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -4887,6 +5374,11 @@ const deserializeAws_json1_1SageMakerPipelineParameters = (output, context) => {
4887
5374
  : undefined,
4888
5375
  };
4889
5376
  };
5377
+ const deserializeAws_json1_1Secondary = (output, context) => {
5378
+ return {
5379
+ Route: (0, smithy_client_1.expectString)(output.Route),
5380
+ };
5381
+ };
4890
5382
  const deserializeAws_json1_1SqsParameters = (output, context) => {
4891
5383
  return {
4892
5384
  MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
@@ -5042,6 +5534,25 @@ const deserializeAws_json1_1UpdateConnectionResponse = (output, context) => {
5042
5534
  : undefined,
5043
5535
  };
5044
5536
  };
5537
+ const deserializeAws_json1_1UpdateEndpointResponse = (output, context) => {
5538
+ return {
5539
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
5540
+ EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
5541
+ EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
5542
+ EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
5543
+ ? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
5544
+ : undefined,
5545
+ Name: (0, smithy_client_1.expectString)(output.Name),
5546
+ ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
5547
+ ? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
5548
+ : undefined,
5549
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
5550
+ RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
5551
+ ? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
5552
+ : undefined,
5553
+ State: (0, smithy_client_1.expectString)(output.State),
5554
+ };
5555
+ };
5045
5556
  const deserializeMetadata = (output) => {
5046
5557
  var _a;
5047
5558
  return ({