@aws-sdk/client-eventbridge 3.489.0 → 3.495.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/EventBridge.js +1 -123
- package/dist-cjs/EventBridgeClient.js +1 -43
- package/dist-cjs/commands/ActivateEventSourceCommand.js +1 -28
- package/dist-cjs/commands/CancelReplayCommand.js +1 -28
- package/dist-cjs/commands/CreateApiDestinationCommand.js +1 -28
- package/dist-cjs/commands/CreateArchiveCommand.js +1 -28
- package/dist-cjs/commands/CreateConnectionCommand.js +1 -29
- package/dist-cjs/commands/CreateEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateEventBusCommand.js +1 -28
- package/dist-cjs/commands/CreatePartnerEventSourceCommand.js +1 -28
- package/dist-cjs/commands/DeactivateEventSourceCommand.js +1 -28
- package/dist-cjs/commands/DeauthorizeConnectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteApiDestinationCommand.js +1 -28
- package/dist-cjs/commands/DeleteArchiveCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventBusCommand.js +1 -28
- package/dist-cjs/commands/DeletePartnerEventSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteRuleCommand.js +1 -28
- package/dist-cjs/commands/DescribeApiDestinationCommand.js +1 -28
- package/dist-cjs/commands/DescribeArchiveCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectionCommand.js +1 -29
- package/dist-cjs/commands/DescribeEndpointCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventBusCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribePartnerEventSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribeReplayCommand.js +1 -28
- package/dist-cjs/commands/DescribeRuleCommand.js +1 -28
- package/dist-cjs/commands/DisableRuleCommand.js +1 -28
- package/dist-cjs/commands/EnableRuleCommand.js +1 -28
- package/dist-cjs/commands/ListApiDestinationsCommand.js +1 -28
- package/dist-cjs/commands/ListArchivesCommand.js +1 -28
- package/dist-cjs/commands/ListConnectionsCommand.js +1 -28
- package/dist-cjs/commands/ListEndpointsCommand.js +1 -28
- package/dist-cjs/commands/ListEventBusesCommand.js +1 -28
- package/dist-cjs/commands/ListEventSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListPartnerEventSourceAccountsCommand.js +1 -28
- package/dist-cjs/commands/ListPartnerEventSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListReplaysCommand.js +1 -28
- package/dist-cjs/commands/ListRuleNamesByTargetCommand.js +1 -28
- package/dist-cjs/commands/ListRulesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTargetsByRuleCommand.js +1 -29
- package/dist-cjs/commands/PutEventsCommand.js +1 -29
- package/dist-cjs/commands/PutPartnerEventsCommand.js +1 -28
- package/dist-cjs/commands/PutPermissionCommand.js +1 -28
- package/dist-cjs/commands/PutRuleCommand.js +1 -28
- package/dist-cjs/commands/PutTargetsCommand.js +1 -29
- package/dist-cjs/commands/RemovePermissionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTargetsCommand.js +1 -28
- package/dist-cjs/commands/StartReplayCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestEventPatternCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApiDestinationCommand.js +1 -28
- package/dist-cjs/commands/UpdateArchiveCommand.js +1 -28
- package/dist-cjs/commands/UpdateConnectionCommand.js +1 -29
- package/dist-cjs/commands/UpdateEndpointCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -59
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4827 -10
- package/dist-cjs/models/EventBridgeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -409
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3150
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-es/models/models_0.js +5 -0
- package/dist-types/commands/ListTargetsByRuleCommand.d.ts +3 -0
- package/dist-types/commands/PutTargetsCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +22 -51
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +40 -40
|
@@ -1,3150 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_TagResourceCommand = exports.se_StartReplayCommand = exports.se_RemoveTargetsCommand = exports.se_RemovePermissionCommand = exports.se_PutTargetsCommand = exports.se_PutRuleCommand = exports.se_PutPermissionCommand = exports.se_PutPartnerEventsCommand = exports.se_PutEventsCommand = exports.se_ListTargetsByRuleCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRulesCommand = exports.se_ListRuleNamesByTargetCommand = exports.se_ListReplaysCommand = exports.se_ListPartnerEventSourcesCommand = exports.se_ListPartnerEventSourceAccountsCommand = exports.se_ListEventSourcesCommand = exports.se_ListEventBusesCommand = exports.se_ListEndpointsCommand = exports.se_ListConnectionsCommand = exports.se_ListArchivesCommand = exports.se_ListApiDestinationsCommand = exports.se_EnableRuleCommand = exports.se_DisableRuleCommand = exports.se_DescribeRuleCommand = exports.se_DescribeReplayCommand = exports.se_DescribePartnerEventSourceCommand = exports.se_DescribeEventSourceCommand = exports.se_DescribeEventBusCommand = exports.se_DescribeEndpointCommand = exports.se_DescribeConnectionCommand = exports.se_DescribeArchiveCommand = exports.se_DescribeApiDestinationCommand = exports.se_DeleteRuleCommand = exports.se_DeletePartnerEventSourceCommand = exports.se_DeleteEventBusCommand = exports.se_DeleteEndpointCommand = exports.se_DeleteConnectionCommand = exports.se_DeleteArchiveCommand = exports.se_DeleteApiDestinationCommand = exports.se_DeauthorizeConnectionCommand = exports.se_DeactivateEventSourceCommand = exports.se_CreatePartnerEventSourceCommand = exports.se_CreateEventBusCommand = exports.se_CreateEndpointCommand = exports.se_CreateConnectionCommand = exports.se_CreateArchiveCommand = exports.se_CreateApiDestinationCommand = exports.se_CancelReplayCommand = exports.se_ActivateEventSourceCommand = void 0;
|
|
4
|
-
exports.de_PutPermissionCommand = exports.de_PutPartnerEventsCommand = exports.de_PutEventsCommand = exports.de_ListTargetsByRuleCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRulesCommand = exports.de_ListRuleNamesByTargetCommand = exports.de_ListReplaysCommand = exports.de_ListPartnerEventSourcesCommand = exports.de_ListPartnerEventSourceAccountsCommand = exports.de_ListEventSourcesCommand = exports.de_ListEventBusesCommand = exports.de_ListEndpointsCommand = exports.de_ListConnectionsCommand = exports.de_ListArchivesCommand = exports.de_ListApiDestinationsCommand = exports.de_EnableRuleCommand = exports.de_DisableRuleCommand = exports.de_DescribeRuleCommand = exports.de_DescribeReplayCommand = exports.de_DescribePartnerEventSourceCommand = exports.de_DescribeEventSourceCommand = exports.de_DescribeEventBusCommand = exports.de_DescribeEndpointCommand = exports.de_DescribeConnectionCommand = exports.de_DescribeArchiveCommand = exports.de_DescribeApiDestinationCommand = exports.de_DeleteRuleCommand = exports.de_DeletePartnerEventSourceCommand = exports.de_DeleteEventBusCommand = exports.de_DeleteEndpointCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteArchiveCommand = exports.de_DeleteApiDestinationCommand = exports.de_DeauthorizeConnectionCommand = exports.de_DeactivateEventSourceCommand = exports.de_CreatePartnerEventSourceCommand = exports.de_CreateEventBusCommand = exports.de_CreateEndpointCommand = exports.de_CreateConnectionCommand = exports.de_CreateArchiveCommand = exports.de_CreateApiDestinationCommand = exports.de_CancelReplayCommand = exports.de_ActivateEventSourceCommand = exports.se_UpdateEndpointCommand = exports.se_UpdateConnectionCommand = exports.se_UpdateArchiveCommand = exports.se_UpdateApiDestinationCommand = exports.se_UntagResourceCommand = exports.se_TestEventPatternCommand = void 0;
|
|
5
|
-
exports.de_UpdateEndpointCommand = exports.de_UpdateConnectionCommand = exports.de_UpdateArchiveCommand = exports.de_UpdateApiDestinationCommand = exports.de_UntagResourceCommand = exports.de_TestEventPatternCommand = exports.de_TagResourceCommand = exports.de_StartReplayCommand = exports.de_RemoveTargetsCommand = exports.de_RemovePermissionCommand = exports.de_PutTargetsCommand = exports.de_PutRuleCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const EventBridgeServiceException_1 = require("../models/EventBridgeServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_ActivateEventSourceCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("ActivateEventSource");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_ActivateEventSourceCommand = se_ActivateEventSourceCommand;
|
|
17
|
-
const se_CancelReplayCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CancelReplay");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CancelReplayCommand = se_CancelReplayCommand;
|
|
24
|
-
const se_CreateApiDestinationCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateApiDestination");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateApiDestinationCommand = se_CreateApiDestinationCommand;
|
|
31
|
-
const se_CreateArchiveCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateArchive");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_CreateArchiveCommand = se_CreateArchiveCommand;
|
|
38
|
-
const se_CreateConnectionCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CreateConnection");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
|
|
45
|
-
const se_CreateEndpointCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("CreateEndpoint");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_CreateEndpointCommand = se_CreateEndpointCommand;
|
|
52
|
-
const se_CreateEventBusCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateEventBus");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateEventBusCommand = se_CreateEventBusCommand;
|
|
59
|
-
const se_CreatePartnerEventSourceCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("CreatePartnerEventSource");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreatePartnerEventSourceCommand = se_CreatePartnerEventSourceCommand;
|
|
66
|
-
const se_DeactivateEventSourceCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeactivateEventSource");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_DeactivateEventSourceCommand = se_DeactivateEventSourceCommand;
|
|
73
|
-
const se_DeauthorizeConnectionCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeauthorizeConnection");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_DeauthorizeConnectionCommand = se_DeauthorizeConnectionCommand;
|
|
80
|
-
const se_DeleteApiDestinationCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("DeleteApiDestination");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_DeleteApiDestinationCommand = se_DeleteApiDestinationCommand;
|
|
87
|
-
const se_DeleteArchiveCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("DeleteArchive");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_DeleteArchiveCommand = se_DeleteArchiveCommand;
|
|
94
|
-
const se_DeleteConnectionCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("DeleteConnection");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
|
|
101
|
-
const se_DeleteEndpointCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("DeleteEndpoint");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
|
|
108
|
-
const se_DeleteEventBusCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteEventBus");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_DeleteEventBusCommand = se_DeleteEventBusCommand;
|
|
115
|
-
const se_DeletePartnerEventSourceCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeletePartnerEventSource");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeletePartnerEventSourceCommand = se_DeletePartnerEventSourceCommand;
|
|
122
|
-
const se_DeleteRuleCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DeleteRule");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
|
|
129
|
-
const se_DescribeApiDestinationCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("DescribeApiDestination");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_DescribeApiDestinationCommand = se_DescribeApiDestinationCommand;
|
|
136
|
-
const se_DescribeArchiveCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("DescribeArchive");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_DescribeArchiveCommand = se_DescribeArchiveCommand;
|
|
143
|
-
const se_DescribeConnectionCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("DescribeConnection");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_DescribeConnectionCommand = se_DescribeConnectionCommand;
|
|
150
|
-
const se_DescribeEndpointCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DescribeEndpoint");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_DescribeEndpointCommand = se_DescribeEndpointCommand;
|
|
157
|
-
const se_DescribeEventBusCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DescribeEventBus");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_DescribeEventBusCommand = se_DescribeEventBusCommand;
|
|
164
|
-
const se_DescribeEventSourceCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DescribeEventSource");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_DescribeEventSourceCommand = se_DescribeEventSourceCommand;
|
|
171
|
-
const se_DescribePartnerEventSourceCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("DescribePartnerEventSource");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_DescribePartnerEventSourceCommand = se_DescribePartnerEventSourceCommand;
|
|
178
|
-
const se_DescribeReplayCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("DescribeReplay");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_DescribeReplayCommand = se_DescribeReplayCommand;
|
|
185
|
-
const se_DescribeRuleCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("DescribeRule");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_DescribeRuleCommand = se_DescribeRuleCommand;
|
|
192
|
-
const se_DisableRuleCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DisableRule");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_DisableRuleCommand = se_DisableRuleCommand;
|
|
199
|
-
const se_EnableRuleCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("EnableRule");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_EnableRuleCommand = se_EnableRuleCommand;
|
|
206
|
-
const se_ListApiDestinationsCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("ListApiDestinations");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_ListApiDestinationsCommand = se_ListApiDestinationsCommand;
|
|
213
|
-
const se_ListArchivesCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("ListArchives");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_ListArchivesCommand = se_ListArchivesCommand;
|
|
220
|
-
const se_ListConnectionsCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("ListConnections");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_ListConnectionsCommand = se_ListConnectionsCommand;
|
|
227
|
-
const se_ListEndpointsCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("ListEndpoints");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_ListEndpointsCommand = se_ListEndpointsCommand;
|
|
234
|
-
const se_ListEventBusesCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("ListEventBuses");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_ListEventBusesCommand = se_ListEventBusesCommand;
|
|
241
|
-
const se_ListEventSourcesCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("ListEventSources");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_ListEventSourcesCommand = se_ListEventSourcesCommand;
|
|
248
|
-
const se_ListPartnerEventSourceAccountsCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("ListPartnerEventSourceAccounts");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_ListPartnerEventSourceAccountsCommand = se_ListPartnerEventSourceAccountsCommand;
|
|
255
|
-
const se_ListPartnerEventSourcesCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("ListPartnerEventSources");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_ListPartnerEventSourcesCommand = se_ListPartnerEventSourcesCommand;
|
|
262
|
-
const se_ListReplaysCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("ListReplays");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_ListReplaysCommand = se_ListReplaysCommand;
|
|
269
|
-
const se_ListRuleNamesByTargetCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("ListRuleNamesByTarget");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_ListRuleNamesByTargetCommand = se_ListRuleNamesByTargetCommand;
|
|
276
|
-
const se_ListRulesCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("ListRules");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
283
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
290
|
-
const se_ListTargetsByRuleCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("ListTargetsByRule");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
exports.se_ListTargetsByRuleCommand = se_ListTargetsByRuleCommand;
|
|
297
|
-
const se_PutEventsCommand = async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("PutEvents");
|
|
299
|
-
let body;
|
|
300
|
-
body = JSON.stringify(se_PutEventsRequest(input, context));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
exports.se_PutEventsCommand = se_PutEventsCommand;
|
|
304
|
-
const se_PutPartnerEventsCommand = async (input, context) => {
|
|
305
|
-
const headers = sharedHeaders("PutPartnerEvents");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify(se_PutPartnerEventsRequest(input, context));
|
|
308
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
-
};
|
|
310
|
-
exports.se_PutPartnerEventsCommand = se_PutPartnerEventsCommand;
|
|
311
|
-
const se_PutPermissionCommand = async (input, context) => {
|
|
312
|
-
const headers = sharedHeaders("PutPermission");
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
exports.se_PutPermissionCommand = se_PutPermissionCommand;
|
|
318
|
-
const se_PutRuleCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("PutRule");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
exports.se_PutRuleCommand = se_PutRuleCommand;
|
|
325
|
-
const se_PutTargetsCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("PutTargets");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
exports.se_PutTargetsCommand = se_PutTargetsCommand;
|
|
332
|
-
const se_RemovePermissionCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("RemovePermission");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
339
|
-
const se_RemoveTargetsCommand = async (input, context) => {
|
|
340
|
-
const headers = sharedHeaders("RemoveTargets");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
exports.se_RemoveTargetsCommand = se_RemoveTargetsCommand;
|
|
346
|
-
const se_StartReplayCommand = async (input, context) => {
|
|
347
|
-
const headers = sharedHeaders("StartReplay");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify(se_StartReplayRequest(input, context));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
|
-
};
|
|
352
|
-
exports.se_StartReplayCommand = se_StartReplayCommand;
|
|
353
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("TagResource");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
-
};
|
|
359
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
360
|
-
const se_TestEventPatternCommand = async (input, context) => {
|
|
361
|
-
const headers = sharedHeaders("TestEventPattern");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
exports.se_TestEventPatternCommand = se_TestEventPatternCommand;
|
|
367
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("UntagResource");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
-
};
|
|
373
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
374
|
-
const se_UpdateApiDestinationCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("UpdateApiDestination");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
exports.se_UpdateApiDestinationCommand = se_UpdateApiDestinationCommand;
|
|
381
|
-
const se_UpdateArchiveCommand = async (input, context) => {
|
|
382
|
-
const headers = sharedHeaders("UpdateArchive");
|
|
383
|
-
let body;
|
|
384
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
385
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
|
-
};
|
|
387
|
-
exports.se_UpdateArchiveCommand = se_UpdateArchiveCommand;
|
|
388
|
-
const se_UpdateConnectionCommand = async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("UpdateConnection");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
|
|
395
|
-
const se_UpdateEndpointCommand = async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("UpdateEndpoint");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
exports.se_UpdateEndpointCommand = se_UpdateEndpointCommand;
|
|
402
|
-
const de_ActivateEventSourceCommand = async (output, context) => {
|
|
403
|
-
if (output.statusCode >= 300) {
|
|
404
|
-
return de_ActivateEventSourceCommandError(output, context);
|
|
405
|
-
}
|
|
406
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
407
|
-
const response = {
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
};
|
|
410
|
-
return response;
|
|
411
|
-
};
|
|
412
|
-
exports.de_ActivateEventSourceCommand = de_ActivateEventSourceCommand;
|
|
413
|
-
const de_ActivateEventSourceCommandError = async (output, context) => {
|
|
414
|
-
const parsedOutput = {
|
|
415
|
-
...output,
|
|
416
|
-
body: await parseErrorBody(output.body, context),
|
|
417
|
-
};
|
|
418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
|
-
switch (errorCode) {
|
|
420
|
-
case "ConcurrentModificationException":
|
|
421
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
422
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
423
|
-
case "InternalException":
|
|
424
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
425
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
426
|
-
case "InvalidStateException":
|
|
427
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
428
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
429
|
-
case "OperationDisabledException":
|
|
430
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
431
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ResourceNotFoundException":
|
|
433
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
434
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
435
|
-
default:
|
|
436
|
-
const parsedBody = parsedOutput.body;
|
|
437
|
-
return throwDefaultError({
|
|
438
|
-
output,
|
|
439
|
-
parsedBody,
|
|
440
|
-
errorCode,
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
const de_CancelReplayCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode >= 300) {
|
|
446
|
-
return de_CancelReplayCommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const data = await parseBody(output.body, context);
|
|
449
|
-
let contents = {};
|
|
450
|
-
contents = (0, smithy_client_1._json)(data);
|
|
451
|
-
const response = {
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
...contents,
|
|
454
|
-
};
|
|
455
|
-
return response;
|
|
456
|
-
};
|
|
457
|
-
exports.de_CancelReplayCommand = de_CancelReplayCommand;
|
|
458
|
-
const de_CancelReplayCommandError = async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context),
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "ConcurrentModificationException":
|
|
466
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
467
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
468
|
-
case "IllegalStatusException":
|
|
469
|
-
case "com.amazonaws.eventbridge#IllegalStatusException":
|
|
470
|
-
throw await de_IllegalStatusExceptionRes(parsedOutput, context);
|
|
471
|
-
case "InternalException":
|
|
472
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
473
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ResourceNotFoundException":
|
|
475
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
476
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
477
|
-
default:
|
|
478
|
-
const parsedBody = parsedOutput.body;
|
|
479
|
-
return throwDefaultError({
|
|
480
|
-
output,
|
|
481
|
-
parsedBody,
|
|
482
|
-
errorCode,
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
const de_CreateApiDestinationCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode >= 300) {
|
|
488
|
-
return de_CreateApiDestinationCommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const data = await parseBody(output.body, context);
|
|
491
|
-
let contents = {};
|
|
492
|
-
contents = de_CreateApiDestinationResponse(data, context);
|
|
493
|
-
const response = {
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
...contents,
|
|
496
|
-
};
|
|
497
|
-
return response;
|
|
498
|
-
};
|
|
499
|
-
exports.de_CreateApiDestinationCommand = de_CreateApiDestinationCommand;
|
|
500
|
-
const de_CreateApiDestinationCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "InternalException":
|
|
508
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
509
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
510
|
-
case "LimitExceededException":
|
|
511
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
512
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ResourceAlreadyExistsException":
|
|
514
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
515
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ResourceNotFoundException":
|
|
517
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const de_CreateArchiveCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode >= 300) {
|
|
530
|
-
return de_CreateArchiveCommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const data = await parseBody(output.body, context);
|
|
533
|
-
let contents = {};
|
|
534
|
-
contents = de_CreateArchiveResponse(data, context);
|
|
535
|
-
const response = {
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
...contents,
|
|
538
|
-
};
|
|
539
|
-
return response;
|
|
540
|
-
};
|
|
541
|
-
exports.de_CreateArchiveCommand = de_CreateArchiveCommand;
|
|
542
|
-
const de_CreateArchiveCommandError = async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context),
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "ConcurrentModificationException":
|
|
550
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
551
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
552
|
-
case "InternalException":
|
|
553
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
554
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InvalidEventPatternException":
|
|
556
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
557
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
558
|
-
case "LimitExceededException":
|
|
559
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
560
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ResourceAlreadyExistsException":
|
|
562
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
563
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ResourceNotFoundException":
|
|
565
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
566
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
567
|
-
default:
|
|
568
|
-
const parsedBody = parsedOutput.body;
|
|
569
|
-
return throwDefaultError({
|
|
570
|
-
output,
|
|
571
|
-
parsedBody,
|
|
572
|
-
errorCode,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
const de_CreateConnectionCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_CreateConnectionCommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const data = await parseBody(output.body, context);
|
|
581
|
-
let contents = {};
|
|
582
|
-
contents = de_CreateConnectionResponse(data, context);
|
|
583
|
-
const response = {
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
...contents,
|
|
586
|
-
};
|
|
587
|
-
return response;
|
|
588
|
-
};
|
|
589
|
-
exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
|
|
590
|
-
const de_CreateConnectionCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "InternalException":
|
|
598
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
599
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
600
|
-
case "LimitExceededException":
|
|
601
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
602
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ResourceAlreadyExistsException":
|
|
604
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
605
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
const de_CreateEndpointCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_CreateEndpointCommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await parseBody(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = (0, smithy_client_1._json)(data);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents,
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
};
|
|
628
|
-
exports.de_CreateEndpointCommand = de_CreateEndpointCommand;
|
|
629
|
-
const de_CreateEndpointCommandError = async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await parseErrorBody(output.body, context),
|
|
633
|
-
};
|
|
634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "InternalException":
|
|
637
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
638
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
639
|
-
case "LimitExceededException":
|
|
640
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
641
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ResourceAlreadyExistsException":
|
|
643
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
644
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const de_CreateEventBusCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_CreateEventBusCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = (0, smithy_client_1._json)(data);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents,
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
};
|
|
667
|
-
exports.de_CreateEventBusCommand = de_CreateEventBusCommand;
|
|
668
|
-
const de_CreateEventBusCommandError = async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context),
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "ConcurrentModificationException":
|
|
676
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
677
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
678
|
-
case "InternalException":
|
|
679
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
680
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
681
|
-
case "InvalidStateException":
|
|
682
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
683
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
684
|
-
case "LimitExceededException":
|
|
685
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
686
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
687
|
-
case "OperationDisabledException":
|
|
688
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
689
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ResourceAlreadyExistsException":
|
|
691
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
692
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ResourceNotFoundException":
|
|
694
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
695
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
696
|
-
default:
|
|
697
|
-
const parsedBody = parsedOutput.body;
|
|
698
|
-
return throwDefaultError({
|
|
699
|
-
output,
|
|
700
|
-
parsedBody,
|
|
701
|
-
errorCode,
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
const de_CreatePartnerEventSourceCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode >= 300) {
|
|
707
|
-
return de_CreatePartnerEventSourceCommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const data = await parseBody(output.body, context);
|
|
710
|
-
let contents = {};
|
|
711
|
-
contents = (0, smithy_client_1._json)(data);
|
|
712
|
-
const response = {
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
...contents,
|
|
715
|
-
};
|
|
716
|
-
return response;
|
|
717
|
-
};
|
|
718
|
-
exports.de_CreatePartnerEventSourceCommand = de_CreatePartnerEventSourceCommand;
|
|
719
|
-
const de_CreatePartnerEventSourceCommandError = async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context),
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "ConcurrentModificationException":
|
|
727
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
728
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
729
|
-
case "InternalException":
|
|
730
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
731
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
732
|
-
case "LimitExceededException":
|
|
733
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
734
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
735
|
-
case "OperationDisabledException":
|
|
736
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
737
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ResourceAlreadyExistsException":
|
|
739
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
740
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
741
|
-
default:
|
|
742
|
-
const parsedBody = parsedOutput.body;
|
|
743
|
-
return throwDefaultError({
|
|
744
|
-
output,
|
|
745
|
-
parsedBody,
|
|
746
|
-
errorCode,
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
const de_DeactivateEventSourceCommand = async (output, context) => {
|
|
751
|
-
if (output.statusCode >= 300) {
|
|
752
|
-
return de_DeactivateEventSourceCommandError(output, context);
|
|
753
|
-
}
|
|
754
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
755
|
-
const response = {
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
exports.de_DeactivateEventSourceCommand = de_DeactivateEventSourceCommand;
|
|
761
|
-
const de_DeactivateEventSourceCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "ConcurrentModificationException":
|
|
769
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
770
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
771
|
-
case "InternalException":
|
|
772
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
773
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
774
|
-
case "InvalidStateException":
|
|
775
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
776
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
777
|
-
case "OperationDisabledException":
|
|
778
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
779
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ResourceNotFoundException":
|
|
781
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
782
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
const de_DeauthorizeConnectionCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode >= 300) {
|
|
794
|
-
return de_DeauthorizeConnectionCommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const data = await parseBody(output.body, context);
|
|
797
|
-
let contents = {};
|
|
798
|
-
contents = de_DeauthorizeConnectionResponse(data, context);
|
|
799
|
-
const response = {
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
...contents,
|
|
802
|
-
};
|
|
803
|
-
return response;
|
|
804
|
-
};
|
|
805
|
-
exports.de_DeauthorizeConnectionCommand = de_DeauthorizeConnectionCommand;
|
|
806
|
-
const de_DeauthorizeConnectionCommandError = async (output, context) => {
|
|
807
|
-
const parsedOutput = {
|
|
808
|
-
...output,
|
|
809
|
-
body: await parseErrorBody(output.body, context),
|
|
810
|
-
};
|
|
811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
-
switch (errorCode) {
|
|
813
|
-
case "ConcurrentModificationException":
|
|
814
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
815
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InternalException":
|
|
817
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
818
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ResourceNotFoundException":
|
|
820
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
const de_DeleteApiDestinationCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode >= 300) {
|
|
833
|
-
return de_DeleteApiDestinationCommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const data = await parseBody(output.body, context);
|
|
836
|
-
let contents = {};
|
|
837
|
-
contents = (0, smithy_client_1._json)(data);
|
|
838
|
-
const response = {
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
...contents,
|
|
841
|
-
};
|
|
842
|
-
return response;
|
|
843
|
-
};
|
|
844
|
-
exports.de_DeleteApiDestinationCommand = de_DeleteApiDestinationCommand;
|
|
845
|
-
const de_DeleteApiDestinationCommandError = async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context),
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "ConcurrentModificationException":
|
|
853
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
854
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
855
|
-
case "InternalException":
|
|
856
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
857
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ResourceNotFoundException":
|
|
859
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
const de_DeleteArchiveCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_DeleteArchiveCommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const data = await parseBody(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = (0, smithy_client_1._json)(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents,
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
};
|
|
883
|
-
exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
|
|
884
|
-
const de_DeleteArchiveCommandError = async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context),
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "ConcurrentModificationException":
|
|
892
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
893
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InternalException":
|
|
895
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
896
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceNotFoundException":
|
|
898
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
default:
|
|
901
|
-
const parsedBody = parsedOutput.body;
|
|
902
|
-
return throwDefaultError({
|
|
903
|
-
output,
|
|
904
|
-
parsedBody,
|
|
905
|
-
errorCode,
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
const de_DeleteConnectionCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode >= 300) {
|
|
911
|
-
return de_DeleteConnectionCommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const data = await parseBody(output.body, context);
|
|
914
|
-
let contents = {};
|
|
915
|
-
contents = de_DeleteConnectionResponse(data, context);
|
|
916
|
-
const response = {
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
...contents,
|
|
919
|
-
};
|
|
920
|
-
return response;
|
|
921
|
-
};
|
|
922
|
-
exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
|
|
923
|
-
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "ConcurrentModificationException":
|
|
931
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
932
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
933
|
-
case "InternalException":
|
|
934
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
935
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ResourceNotFoundException":
|
|
937
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
const de_DeleteEndpointCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode >= 300) {
|
|
950
|
-
return de_DeleteEndpointCommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const data = await parseBody(output.body, context);
|
|
953
|
-
let contents = {};
|
|
954
|
-
contents = (0, smithy_client_1._json)(data);
|
|
955
|
-
const response = {
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
...contents,
|
|
958
|
-
};
|
|
959
|
-
return response;
|
|
960
|
-
};
|
|
961
|
-
exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
|
|
962
|
-
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "ConcurrentModificationException":
|
|
970
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
971
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalException":
|
|
973
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
974
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
default:
|
|
979
|
-
const parsedBody = parsedOutput.body;
|
|
980
|
-
return throwDefaultError({
|
|
981
|
-
output,
|
|
982
|
-
parsedBody,
|
|
983
|
-
errorCode,
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
const de_DeleteEventBusCommand = async (output, context) => {
|
|
988
|
-
if (output.statusCode >= 300) {
|
|
989
|
-
return de_DeleteEventBusCommandError(output, context);
|
|
990
|
-
}
|
|
991
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
992
|
-
const response = {
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
return response;
|
|
996
|
-
};
|
|
997
|
-
exports.de_DeleteEventBusCommand = de_DeleteEventBusCommand;
|
|
998
|
-
const de_DeleteEventBusCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "ConcurrentModificationException":
|
|
1006
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1007
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InternalException":
|
|
1009
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1010
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
const de_DeletePartnerEventSourceCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode >= 300) {
|
|
1022
|
-
return de_DeletePartnerEventSourceCommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1025
|
-
const response = {
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
};
|
|
1028
|
-
return response;
|
|
1029
|
-
};
|
|
1030
|
-
exports.de_DeletePartnerEventSourceCommand = de_DeletePartnerEventSourceCommand;
|
|
1031
|
-
const de_DeletePartnerEventSourceCommandError = async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context),
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "ConcurrentModificationException":
|
|
1039
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1040
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "InternalException":
|
|
1042
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1043
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "OperationDisabledException":
|
|
1045
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1046
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody,
|
|
1052
|
-
errorCode,
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
|
-
const de_DeleteRuleCommand = async (output, context) => {
|
|
1057
|
-
if (output.statusCode >= 300) {
|
|
1058
|
-
return de_DeleteRuleCommandError(output, context);
|
|
1059
|
-
}
|
|
1060
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1061
|
-
const response = {
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
};
|
|
1064
|
-
return response;
|
|
1065
|
-
};
|
|
1066
|
-
exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
|
|
1067
|
-
const de_DeleteRuleCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "ConcurrentModificationException":
|
|
1075
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1076
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InternalException":
|
|
1078
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1079
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ManagedRuleException":
|
|
1081
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1082
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ResourceNotFoundException":
|
|
1084
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1085
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode,
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
const de_DescribeApiDestinationCommand = async (output, context) => {
|
|
1096
|
-
if (output.statusCode >= 300) {
|
|
1097
|
-
return de_DescribeApiDestinationCommandError(output, context);
|
|
1098
|
-
}
|
|
1099
|
-
const data = await parseBody(output.body, context);
|
|
1100
|
-
let contents = {};
|
|
1101
|
-
contents = de_DescribeApiDestinationResponse(data, context);
|
|
1102
|
-
const response = {
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
...contents,
|
|
1105
|
-
};
|
|
1106
|
-
return response;
|
|
1107
|
-
};
|
|
1108
|
-
exports.de_DescribeApiDestinationCommand = de_DescribeApiDestinationCommand;
|
|
1109
|
-
const de_DescribeApiDestinationCommandError = async (output, context) => {
|
|
1110
|
-
const parsedOutput = {
|
|
1111
|
-
...output,
|
|
1112
|
-
body: await parseErrorBody(output.body, context),
|
|
1113
|
-
};
|
|
1114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
|
-
switch (errorCode) {
|
|
1116
|
-
case "InternalException":
|
|
1117
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1118
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ResourceNotFoundException":
|
|
1120
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1121
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode,
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
const de_DescribeArchiveCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode >= 300) {
|
|
1133
|
-
return de_DescribeArchiveCommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const data = await parseBody(output.body, context);
|
|
1136
|
-
let contents = {};
|
|
1137
|
-
contents = de_DescribeArchiveResponse(data, context);
|
|
1138
|
-
const response = {
|
|
1139
|
-
$metadata: deserializeMetadata(output),
|
|
1140
|
-
...contents,
|
|
1141
|
-
};
|
|
1142
|
-
return response;
|
|
1143
|
-
};
|
|
1144
|
-
exports.de_DescribeArchiveCommand = de_DescribeArchiveCommand;
|
|
1145
|
-
const de_DescribeArchiveCommandError = async (output, context) => {
|
|
1146
|
-
const parsedOutput = {
|
|
1147
|
-
...output,
|
|
1148
|
-
body: await parseErrorBody(output.body, context),
|
|
1149
|
-
};
|
|
1150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
-
switch (errorCode) {
|
|
1152
|
-
case "InternalException":
|
|
1153
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1154
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ResourceAlreadyExistsException":
|
|
1156
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1157
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ResourceNotFoundException":
|
|
1159
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1160
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
|
-
default:
|
|
1162
|
-
const parsedBody = parsedOutput.body;
|
|
1163
|
-
return throwDefaultError({
|
|
1164
|
-
output,
|
|
1165
|
-
parsedBody,
|
|
1166
|
-
errorCode,
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
|
-
const de_DescribeConnectionCommand = async (output, context) => {
|
|
1171
|
-
if (output.statusCode >= 300) {
|
|
1172
|
-
return de_DescribeConnectionCommandError(output, context);
|
|
1173
|
-
}
|
|
1174
|
-
const data = await parseBody(output.body, context);
|
|
1175
|
-
let contents = {};
|
|
1176
|
-
contents = de_DescribeConnectionResponse(data, context);
|
|
1177
|
-
const response = {
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
...contents,
|
|
1180
|
-
};
|
|
1181
|
-
return response;
|
|
1182
|
-
};
|
|
1183
|
-
exports.de_DescribeConnectionCommand = de_DescribeConnectionCommand;
|
|
1184
|
-
const de_DescribeConnectionCommandError = async (output, context) => {
|
|
1185
|
-
const parsedOutput = {
|
|
1186
|
-
...output,
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "InternalException":
|
|
1192
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1193
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ResourceNotFoundException":
|
|
1195
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1197
|
-
default:
|
|
1198
|
-
const parsedBody = parsedOutput.body;
|
|
1199
|
-
return throwDefaultError({
|
|
1200
|
-
output,
|
|
1201
|
-
parsedBody,
|
|
1202
|
-
errorCode,
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
const de_DescribeEndpointCommand = async (output, context) => {
|
|
1207
|
-
if (output.statusCode >= 300) {
|
|
1208
|
-
return de_DescribeEndpointCommandError(output, context);
|
|
1209
|
-
}
|
|
1210
|
-
const data = await parseBody(output.body, context);
|
|
1211
|
-
let contents = {};
|
|
1212
|
-
contents = de_DescribeEndpointResponse(data, context);
|
|
1213
|
-
const response = {
|
|
1214
|
-
$metadata: deserializeMetadata(output),
|
|
1215
|
-
...contents,
|
|
1216
|
-
};
|
|
1217
|
-
return response;
|
|
1218
|
-
};
|
|
1219
|
-
exports.de_DescribeEndpointCommand = de_DescribeEndpointCommand;
|
|
1220
|
-
const de_DescribeEndpointCommandError = async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context),
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "InternalException":
|
|
1228
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1229
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ResourceNotFoundException":
|
|
1231
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1232
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1233
|
-
default:
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode,
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
const de_DescribeEventBusCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode >= 300) {
|
|
1244
|
-
return de_DescribeEventBusCommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const data = await parseBody(output.body, context);
|
|
1247
|
-
let contents = {};
|
|
1248
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1249
|
-
const response = {
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
...contents,
|
|
1252
|
-
};
|
|
1253
|
-
return response;
|
|
1254
|
-
};
|
|
1255
|
-
exports.de_DescribeEventBusCommand = de_DescribeEventBusCommand;
|
|
1256
|
-
const de_DescribeEventBusCommandError = async (output, context) => {
|
|
1257
|
-
const parsedOutput = {
|
|
1258
|
-
...output,
|
|
1259
|
-
body: await parseErrorBody(output.body, context),
|
|
1260
|
-
};
|
|
1261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
-
switch (errorCode) {
|
|
1263
|
-
case "InternalException":
|
|
1264
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1265
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ResourceNotFoundException":
|
|
1267
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
const de_DescribeEventSourceCommand = async (output, context) => {
|
|
1279
|
-
if (output.statusCode >= 300) {
|
|
1280
|
-
return de_DescribeEventSourceCommandError(output, context);
|
|
1281
|
-
}
|
|
1282
|
-
const data = await parseBody(output.body, context);
|
|
1283
|
-
let contents = {};
|
|
1284
|
-
contents = de_DescribeEventSourceResponse(data, context);
|
|
1285
|
-
const response = {
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
...contents,
|
|
1288
|
-
};
|
|
1289
|
-
return response;
|
|
1290
|
-
};
|
|
1291
|
-
exports.de_DescribeEventSourceCommand = de_DescribeEventSourceCommand;
|
|
1292
|
-
const de_DescribeEventSourceCommandError = async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context),
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "InternalException":
|
|
1300
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1301
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "OperationDisabledException":
|
|
1303
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1304
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ResourceNotFoundException":
|
|
1306
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
return throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
errorCode,
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
1317
|
-
const de_DescribePartnerEventSourceCommand = async (output, context) => {
|
|
1318
|
-
if (output.statusCode >= 300) {
|
|
1319
|
-
return de_DescribePartnerEventSourceCommandError(output, context);
|
|
1320
|
-
}
|
|
1321
|
-
const data = await parseBody(output.body, context);
|
|
1322
|
-
let contents = {};
|
|
1323
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1324
|
-
const response = {
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
...contents,
|
|
1327
|
-
};
|
|
1328
|
-
return response;
|
|
1329
|
-
};
|
|
1330
|
-
exports.de_DescribePartnerEventSourceCommand = de_DescribePartnerEventSourceCommand;
|
|
1331
|
-
const de_DescribePartnerEventSourceCommandError = async (output, context) => {
|
|
1332
|
-
const parsedOutput = {
|
|
1333
|
-
...output,
|
|
1334
|
-
body: await parseErrorBody(output.body, context),
|
|
1335
|
-
};
|
|
1336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
-
switch (errorCode) {
|
|
1338
|
-
case "InternalException":
|
|
1339
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1340
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "OperationDisabledException":
|
|
1342
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1343
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ResourceNotFoundException":
|
|
1345
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1346
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode,
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
};
|
|
1356
|
-
const de_DescribeReplayCommand = async (output, context) => {
|
|
1357
|
-
if (output.statusCode >= 300) {
|
|
1358
|
-
return de_DescribeReplayCommandError(output, context);
|
|
1359
|
-
}
|
|
1360
|
-
const data = await parseBody(output.body, context);
|
|
1361
|
-
let contents = {};
|
|
1362
|
-
contents = de_DescribeReplayResponse(data, context);
|
|
1363
|
-
const response = {
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
...contents,
|
|
1366
|
-
};
|
|
1367
|
-
return response;
|
|
1368
|
-
};
|
|
1369
|
-
exports.de_DescribeReplayCommand = de_DescribeReplayCommand;
|
|
1370
|
-
const de_DescribeReplayCommandError = async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context),
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "InternalException":
|
|
1378
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1379
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode,
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
|
-
const de_DescribeRuleCommand = async (output, context) => {
|
|
1393
|
-
if (output.statusCode >= 300) {
|
|
1394
|
-
return de_DescribeRuleCommandError(output, context);
|
|
1395
|
-
}
|
|
1396
|
-
const data = await parseBody(output.body, context);
|
|
1397
|
-
let contents = {};
|
|
1398
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1399
|
-
const response = {
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
...contents,
|
|
1402
|
-
};
|
|
1403
|
-
return response;
|
|
1404
|
-
};
|
|
1405
|
-
exports.de_DescribeRuleCommand = de_DescribeRuleCommand;
|
|
1406
|
-
const de_DescribeRuleCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "InternalException":
|
|
1414
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1415
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode,
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
|
-
const de_DisableRuleCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode >= 300) {
|
|
1430
|
-
return de_DisableRuleCommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1433
|
-
const response = {
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
return response;
|
|
1437
|
-
};
|
|
1438
|
-
exports.de_DisableRuleCommand = de_DisableRuleCommand;
|
|
1439
|
-
const de_DisableRuleCommandError = async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "ConcurrentModificationException":
|
|
1447
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1448
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "InternalException":
|
|
1450
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1451
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ManagedRuleException":
|
|
1453
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1454
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
default:
|
|
1459
|
-
const parsedBody = parsedOutput.body;
|
|
1460
|
-
return throwDefaultError({
|
|
1461
|
-
output,
|
|
1462
|
-
parsedBody,
|
|
1463
|
-
errorCode,
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
};
|
|
1467
|
-
const de_EnableRuleCommand = async (output, context) => {
|
|
1468
|
-
if (output.statusCode >= 300) {
|
|
1469
|
-
return de_EnableRuleCommandError(output, context);
|
|
1470
|
-
}
|
|
1471
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1472
|
-
const response = {
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
return response;
|
|
1476
|
-
};
|
|
1477
|
-
exports.de_EnableRuleCommand = de_EnableRuleCommand;
|
|
1478
|
-
const de_EnableRuleCommandError = async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "ConcurrentModificationException":
|
|
1486
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1487
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "InternalException":
|
|
1489
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1490
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ManagedRuleException":
|
|
1492
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1493
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
default:
|
|
1498
|
-
const parsedBody = parsedOutput.body;
|
|
1499
|
-
return throwDefaultError({
|
|
1500
|
-
output,
|
|
1501
|
-
parsedBody,
|
|
1502
|
-
errorCode,
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
|
-
const de_ListApiDestinationsCommand = async (output, context) => {
|
|
1507
|
-
if (output.statusCode >= 300) {
|
|
1508
|
-
return de_ListApiDestinationsCommandError(output, context);
|
|
1509
|
-
}
|
|
1510
|
-
const data = await parseBody(output.body, context);
|
|
1511
|
-
let contents = {};
|
|
1512
|
-
contents = de_ListApiDestinationsResponse(data, context);
|
|
1513
|
-
const response = {
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
...contents,
|
|
1516
|
-
};
|
|
1517
|
-
return response;
|
|
1518
|
-
};
|
|
1519
|
-
exports.de_ListApiDestinationsCommand = de_ListApiDestinationsCommand;
|
|
1520
|
-
const de_ListApiDestinationsCommandError = async (output, context) => {
|
|
1521
|
-
const parsedOutput = {
|
|
1522
|
-
...output,
|
|
1523
|
-
body: await parseErrorBody(output.body, context),
|
|
1524
|
-
};
|
|
1525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
switch (errorCode) {
|
|
1527
|
-
case "InternalException":
|
|
1528
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1529
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1530
|
-
default:
|
|
1531
|
-
const parsedBody = parsedOutput.body;
|
|
1532
|
-
return throwDefaultError({
|
|
1533
|
-
output,
|
|
1534
|
-
parsedBody,
|
|
1535
|
-
errorCode,
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
};
|
|
1539
|
-
const de_ListArchivesCommand = async (output, context) => {
|
|
1540
|
-
if (output.statusCode >= 300) {
|
|
1541
|
-
return de_ListArchivesCommandError(output, context);
|
|
1542
|
-
}
|
|
1543
|
-
const data = await parseBody(output.body, context);
|
|
1544
|
-
let contents = {};
|
|
1545
|
-
contents = de_ListArchivesResponse(data, context);
|
|
1546
|
-
const response = {
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
...contents,
|
|
1549
|
-
};
|
|
1550
|
-
return response;
|
|
1551
|
-
};
|
|
1552
|
-
exports.de_ListArchivesCommand = de_ListArchivesCommand;
|
|
1553
|
-
const de_ListArchivesCommandError = async (output, context) => {
|
|
1554
|
-
const parsedOutput = {
|
|
1555
|
-
...output,
|
|
1556
|
-
body: await parseErrorBody(output.body, context),
|
|
1557
|
-
};
|
|
1558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
|
-
switch (errorCode) {
|
|
1560
|
-
case "InternalException":
|
|
1561
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1562
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ResourceNotFoundException":
|
|
1564
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1565
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode,
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
const de_ListConnectionsCommand = async (output, context) => {
|
|
1576
|
-
if (output.statusCode >= 300) {
|
|
1577
|
-
return de_ListConnectionsCommandError(output, context);
|
|
1578
|
-
}
|
|
1579
|
-
const data = await parseBody(output.body, context);
|
|
1580
|
-
let contents = {};
|
|
1581
|
-
contents = de_ListConnectionsResponse(data, context);
|
|
1582
|
-
const response = {
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
...contents,
|
|
1585
|
-
};
|
|
1586
|
-
return response;
|
|
1587
|
-
};
|
|
1588
|
-
exports.de_ListConnectionsCommand = de_ListConnectionsCommand;
|
|
1589
|
-
const de_ListConnectionsCommandError = async (output, context) => {
|
|
1590
|
-
const parsedOutput = {
|
|
1591
|
-
...output,
|
|
1592
|
-
body: await parseErrorBody(output.body, context),
|
|
1593
|
-
};
|
|
1594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
-
switch (errorCode) {
|
|
1596
|
-
case "InternalException":
|
|
1597
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1598
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1599
|
-
default:
|
|
1600
|
-
const parsedBody = parsedOutput.body;
|
|
1601
|
-
return throwDefaultError({
|
|
1602
|
-
output,
|
|
1603
|
-
parsedBody,
|
|
1604
|
-
errorCode,
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
|
-
const de_ListEndpointsCommand = async (output, context) => {
|
|
1609
|
-
if (output.statusCode >= 300) {
|
|
1610
|
-
return de_ListEndpointsCommandError(output, context);
|
|
1611
|
-
}
|
|
1612
|
-
const data = await parseBody(output.body, context);
|
|
1613
|
-
let contents = {};
|
|
1614
|
-
contents = de_ListEndpointsResponse(data, context);
|
|
1615
|
-
const response = {
|
|
1616
|
-
$metadata: deserializeMetadata(output),
|
|
1617
|
-
...contents,
|
|
1618
|
-
};
|
|
1619
|
-
return response;
|
|
1620
|
-
};
|
|
1621
|
-
exports.de_ListEndpointsCommand = de_ListEndpointsCommand;
|
|
1622
|
-
const de_ListEndpointsCommandError = async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context),
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "InternalException":
|
|
1630
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1631
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1632
|
-
default:
|
|
1633
|
-
const parsedBody = parsedOutput.body;
|
|
1634
|
-
return throwDefaultError({
|
|
1635
|
-
output,
|
|
1636
|
-
parsedBody,
|
|
1637
|
-
errorCode,
|
|
1638
|
-
});
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
const de_ListEventBusesCommand = async (output, context) => {
|
|
1642
|
-
if (output.statusCode >= 300) {
|
|
1643
|
-
return de_ListEventBusesCommandError(output, context);
|
|
1644
|
-
}
|
|
1645
|
-
const data = await parseBody(output.body, context);
|
|
1646
|
-
let contents = {};
|
|
1647
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1648
|
-
const response = {
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
...contents,
|
|
1651
|
-
};
|
|
1652
|
-
return response;
|
|
1653
|
-
};
|
|
1654
|
-
exports.de_ListEventBusesCommand = de_ListEventBusesCommand;
|
|
1655
|
-
const de_ListEventBusesCommandError = async (output, context) => {
|
|
1656
|
-
const parsedOutput = {
|
|
1657
|
-
...output,
|
|
1658
|
-
body: await parseErrorBody(output.body, context),
|
|
1659
|
-
};
|
|
1660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
|
-
switch (errorCode) {
|
|
1662
|
-
case "InternalException":
|
|
1663
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1664
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
|
-
const de_ListEventSourcesCommand = async (output, context) => {
|
|
1675
|
-
if (output.statusCode >= 300) {
|
|
1676
|
-
return de_ListEventSourcesCommandError(output, context);
|
|
1677
|
-
}
|
|
1678
|
-
const data = await parseBody(output.body, context);
|
|
1679
|
-
let contents = {};
|
|
1680
|
-
contents = de_ListEventSourcesResponse(data, context);
|
|
1681
|
-
const response = {
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
...contents,
|
|
1684
|
-
};
|
|
1685
|
-
return response;
|
|
1686
|
-
};
|
|
1687
|
-
exports.de_ListEventSourcesCommand = de_ListEventSourcesCommand;
|
|
1688
|
-
const de_ListEventSourcesCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "InternalException":
|
|
1696
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1697
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "OperationDisabledException":
|
|
1699
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1700
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1701
|
-
default:
|
|
1702
|
-
const parsedBody = parsedOutput.body;
|
|
1703
|
-
return throwDefaultError({
|
|
1704
|
-
output,
|
|
1705
|
-
parsedBody,
|
|
1706
|
-
errorCode,
|
|
1707
|
-
});
|
|
1708
|
-
}
|
|
1709
|
-
};
|
|
1710
|
-
const de_ListPartnerEventSourceAccountsCommand = async (output, context) => {
|
|
1711
|
-
if (output.statusCode >= 300) {
|
|
1712
|
-
return de_ListPartnerEventSourceAccountsCommandError(output, context);
|
|
1713
|
-
}
|
|
1714
|
-
const data = await parseBody(output.body, context);
|
|
1715
|
-
let contents = {};
|
|
1716
|
-
contents = de_ListPartnerEventSourceAccountsResponse(data, context);
|
|
1717
|
-
const response = {
|
|
1718
|
-
$metadata: deserializeMetadata(output),
|
|
1719
|
-
...contents,
|
|
1720
|
-
};
|
|
1721
|
-
return response;
|
|
1722
|
-
};
|
|
1723
|
-
exports.de_ListPartnerEventSourceAccountsCommand = de_ListPartnerEventSourceAccountsCommand;
|
|
1724
|
-
const de_ListPartnerEventSourceAccountsCommandError = async (output, context) => {
|
|
1725
|
-
const parsedOutput = {
|
|
1726
|
-
...output,
|
|
1727
|
-
body: await parseErrorBody(output.body, context),
|
|
1728
|
-
};
|
|
1729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
|
-
switch (errorCode) {
|
|
1731
|
-
case "InternalException":
|
|
1732
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1733
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "OperationDisabledException":
|
|
1735
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1736
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ResourceNotFoundException":
|
|
1738
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1739
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody,
|
|
1745
|
-
errorCode,
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
|
-
const de_ListPartnerEventSourcesCommand = async (output, context) => {
|
|
1750
|
-
if (output.statusCode >= 300) {
|
|
1751
|
-
return de_ListPartnerEventSourcesCommandError(output, context);
|
|
1752
|
-
}
|
|
1753
|
-
const data = await parseBody(output.body, context);
|
|
1754
|
-
let contents = {};
|
|
1755
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1756
|
-
const response = {
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
...contents,
|
|
1759
|
-
};
|
|
1760
|
-
return response;
|
|
1761
|
-
};
|
|
1762
|
-
exports.de_ListPartnerEventSourcesCommand = de_ListPartnerEventSourcesCommand;
|
|
1763
|
-
const de_ListPartnerEventSourcesCommandError = async (output, context) => {
|
|
1764
|
-
const parsedOutput = {
|
|
1765
|
-
...output,
|
|
1766
|
-
body: await parseErrorBody(output.body, context),
|
|
1767
|
-
};
|
|
1768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
-
switch (errorCode) {
|
|
1770
|
-
case "InternalException":
|
|
1771
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1772
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "OperationDisabledException":
|
|
1774
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1775
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1776
|
-
default:
|
|
1777
|
-
const parsedBody = parsedOutput.body;
|
|
1778
|
-
return throwDefaultError({
|
|
1779
|
-
output,
|
|
1780
|
-
parsedBody,
|
|
1781
|
-
errorCode,
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
};
|
|
1785
|
-
const de_ListReplaysCommand = async (output, context) => {
|
|
1786
|
-
if (output.statusCode >= 300) {
|
|
1787
|
-
return de_ListReplaysCommandError(output, context);
|
|
1788
|
-
}
|
|
1789
|
-
const data = await parseBody(output.body, context);
|
|
1790
|
-
let contents = {};
|
|
1791
|
-
contents = de_ListReplaysResponse(data, context);
|
|
1792
|
-
const response = {
|
|
1793
|
-
$metadata: deserializeMetadata(output),
|
|
1794
|
-
...contents,
|
|
1795
|
-
};
|
|
1796
|
-
return response;
|
|
1797
|
-
};
|
|
1798
|
-
exports.de_ListReplaysCommand = de_ListReplaysCommand;
|
|
1799
|
-
const de_ListReplaysCommandError = async (output, context) => {
|
|
1800
|
-
const parsedOutput = {
|
|
1801
|
-
...output,
|
|
1802
|
-
body: await parseErrorBody(output.body, context),
|
|
1803
|
-
};
|
|
1804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1805
|
-
switch (errorCode) {
|
|
1806
|
-
case "InternalException":
|
|
1807
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1808
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1809
|
-
default:
|
|
1810
|
-
const parsedBody = parsedOutput.body;
|
|
1811
|
-
return throwDefaultError({
|
|
1812
|
-
output,
|
|
1813
|
-
parsedBody,
|
|
1814
|
-
errorCode,
|
|
1815
|
-
});
|
|
1816
|
-
}
|
|
1817
|
-
};
|
|
1818
|
-
const de_ListRuleNamesByTargetCommand = async (output, context) => {
|
|
1819
|
-
if (output.statusCode >= 300) {
|
|
1820
|
-
return de_ListRuleNamesByTargetCommandError(output, context);
|
|
1821
|
-
}
|
|
1822
|
-
const data = await parseBody(output.body, context);
|
|
1823
|
-
let contents = {};
|
|
1824
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1825
|
-
const response = {
|
|
1826
|
-
$metadata: deserializeMetadata(output),
|
|
1827
|
-
...contents,
|
|
1828
|
-
};
|
|
1829
|
-
return response;
|
|
1830
|
-
};
|
|
1831
|
-
exports.de_ListRuleNamesByTargetCommand = de_ListRuleNamesByTargetCommand;
|
|
1832
|
-
const de_ListRuleNamesByTargetCommandError = async (output, context) => {
|
|
1833
|
-
const parsedOutput = {
|
|
1834
|
-
...output,
|
|
1835
|
-
body: await parseErrorBody(output.body, context),
|
|
1836
|
-
};
|
|
1837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
-
switch (errorCode) {
|
|
1839
|
-
case "InternalException":
|
|
1840
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1841
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ResourceNotFoundException":
|
|
1843
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1844
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1845
|
-
default:
|
|
1846
|
-
const parsedBody = parsedOutput.body;
|
|
1847
|
-
return throwDefaultError({
|
|
1848
|
-
output,
|
|
1849
|
-
parsedBody,
|
|
1850
|
-
errorCode,
|
|
1851
|
-
});
|
|
1852
|
-
}
|
|
1853
|
-
};
|
|
1854
|
-
const de_ListRulesCommand = async (output, context) => {
|
|
1855
|
-
if (output.statusCode >= 300) {
|
|
1856
|
-
return de_ListRulesCommandError(output, context);
|
|
1857
|
-
}
|
|
1858
|
-
const data = await parseBody(output.body, context);
|
|
1859
|
-
let contents = {};
|
|
1860
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1861
|
-
const response = {
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
...contents,
|
|
1864
|
-
};
|
|
1865
|
-
return response;
|
|
1866
|
-
};
|
|
1867
|
-
exports.de_ListRulesCommand = de_ListRulesCommand;
|
|
1868
|
-
const de_ListRulesCommandError = async (output, context) => {
|
|
1869
|
-
const parsedOutput = {
|
|
1870
|
-
...output,
|
|
1871
|
-
body: await parseErrorBody(output.body, context),
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "InternalException":
|
|
1876
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1877
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ResourceNotFoundException":
|
|
1879
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode,
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
};
|
|
1890
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1891
|
-
if (output.statusCode >= 300) {
|
|
1892
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1893
|
-
}
|
|
1894
|
-
const data = await parseBody(output.body, context);
|
|
1895
|
-
let contents = {};
|
|
1896
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1897
|
-
const response = {
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
...contents,
|
|
1900
|
-
};
|
|
1901
|
-
return response;
|
|
1902
|
-
};
|
|
1903
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1904
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1905
|
-
const parsedOutput = {
|
|
1906
|
-
...output,
|
|
1907
|
-
body: await parseErrorBody(output.body, context),
|
|
1908
|
-
};
|
|
1909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
|
-
switch (errorCode) {
|
|
1911
|
-
case "InternalException":
|
|
1912
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1913
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ResourceNotFoundException":
|
|
1915
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1917
|
-
default:
|
|
1918
|
-
const parsedBody = parsedOutput.body;
|
|
1919
|
-
return throwDefaultError({
|
|
1920
|
-
output,
|
|
1921
|
-
parsedBody,
|
|
1922
|
-
errorCode,
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
};
|
|
1926
|
-
const de_ListTargetsByRuleCommand = async (output, context) => {
|
|
1927
|
-
if (output.statusCode >= 300) {
|
|
1928
|
-
return de_ListTargetsByRuleCommandError(output, context);
|
|
1929
|
-
}
|
|
1930
|
-
const data = await parseBody(output.body, context);
|
|
1931
|
-
let contents = {};
|
|
1932
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1933
|
-
const response = {
|
|
1934
|
-
$metadata: deserializeMetadata(output),
|
|
1935
|
-
...contents,
|
|
1936
|
-
};
|
|
1937
|
-
return response;
|
|
1938
|
-
};
|
|
1939
|
-
exports.de_ListTargetsByRuleCommand = de_ListTargetsByRuleCommand;
|
|
1940
|
-
const de_ListTargetsByRuleCommandError = async (output, context) => {
|
|
1941
|
-
const parsedOutput = {
|
|
1942
|
-
...output,
|
|
1943
|
-
body: await parseErrorBody(output.body, context),
|
|
1944
|
-
};
|
|
1945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
|
-
switch (errorCode) {
|
|
1947
|
-
case "InternalException":
|
|
1948
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1949
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ResourceNotFoundException":
|
|
1951
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1953
|
-
default:
|
|
1954
|
-
const parsedBody = parsedOutput.body;
|
|
1955
|
-
return throwDefaultError({
|
|
1956
|
-
output,
|
|
1957
|
-
parsedBody,
|
|
1958
|
-
errorCode,
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
};
|
|
1962
|
-
const de_PutEventsCommand = async (output, context) => {
|
|
1963
|
-
if (output.statusCode >= 300) {
|
|
1964
|
-
return de_PutEventsCommandError(output, context);
|
|
1965
|
-
}
|
|
1966
|
-
const data = await parseBody(output.body, context);
|
|
1967
|
-
let contents = {};
|
|
1968
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1969
|
-
const response = {
|
|
1970
|
-
$metadata: deserializeMetadata(output),
|
|
1971
|
-
...contents,
|
|
1972
|
-
};
|
|
1973
|
-
return response;
|
|
1974
|
-
};
|
|
1975
|
-
exports.de_PutEventsCommand = de_PutEventsCommand;
|
|
1976
|
-
const de_PutEventsCommandError = async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context),
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "InternalException":
|
|
1984
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1985
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1986
|
-
default:
|
|
1987
|
-
const parsedBody = parsedOutput.body;
|
|
1988
|
-
return throwDefaultError({
|
|
1989
|
-
output,
|
|
1990
|
-
parsedBody,
|
|
1991
|
-
errorCode,
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
const de_PutPartnerEventsCommand = async (output, context) => {
|
|
1996
|
-
if (output.statusCode >= 300) {
|
|
1997
|
-
return de_PutPartnerEventsCommandError(output, context);
|
|
1998
|
-
}
|
|
1999
|
-
const data = await parseBody(output.body, context);
|
|
2000
|
-
let contents = {};
|
|
2001
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2002
|
-
const response = {
|
|
2003
|
-
$metadata: deserializeMetadata(output),
|
|
2004
|
-
...contents,
|
|
2005
|
-
};
|
|
2006
|
-
return response;
|
|
2007
|
-
};
|
|
2008
|
-
exports.de_PutPartnerEventsCommand = de_PutPartnerEventsCommand;
|
|
2009
|
-
const de_PutPartnerEventsCommandError = async (output, context) => {
|
|
2010
|
-
const parsedOutput = {
|
|
2011
|
-
...output,
|
|
2012
|
-
body: await parseErrorBody(output.body, context),
|
|
2013
|
-
};
|
|
2014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
-
switch (errorCode) {
|
|
2016
|
-
case "InternalException":
|
|
2017
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2018
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "OperationDisabledException":
|
|
2020
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2021
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2022
|
-
default:
|
|
2023
|
-
const parsedBody = parsedOutput.body;
|
|
2024
|
-
return throwDefaultError({
|
|
2025
|
-
output,
|
|
2026
|
-
parsedBody,
|
|
2027
|
-
errorCode,
|
|
2028
|
-
});
|
|
2029
|
-
}
|
|
2030
|
-
};
|
|
2031
|
-
const de_PutPermissionCommand = async (output, context) => {
|
|
2032
|
-
if (output.statusCode >= 300) {
|
|
2033
|
-
return de_PutPermissionCommandError(output, context);
|
|
2034
|
-
}
|
|
2035
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2036
|
-
const response = {
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
};
|
|
2039
|
-
return response;
|
|
2040
|
-
};
|
|
2041
|
-
exports.de_PutPermissionCommand = de_PutPermissionCommand;
|
|
2042
|
-
const de_PutPermissionCommandError = async (output, context) => {
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await parseErrorBody(output.body, context),
|
|
2046
|
-
};
|
|
2047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
-
switch (errorCode) {
|
|
2049
|
-
case "ConcurrentModificationException":
|
|
2050
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2051
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InternalException":
|
|
2053
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2054
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "OperationDisabledException":
|
|
2056
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2057
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "PolicyLengthExceededException":
|
|
2059
|
-
case "com.amazonaws.eventbridge#PolicyLengthExceededException":
|
|
2060
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ResourceNotFoundException":
|
|
2062
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2064
|
-
default:
|
|
2065
|
-
const parsedBody = parsedOutput.body;
|
|
2066
|
-
return throwDefaultError({
|
|
2067
|
-
output,
|
|
2068
|
-
parsedBody,
|
|
2069
|
-
errorCode,
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
};
|
|
2073
|
-
const de_PutRuleCommand = async (output, context) => {
|
|
2074
|
-
if (output.statusCode >= 300) {
|
|
2075
|
-
return de_PutRuleCommandError(output, context);
|
|
2076
|
-
}
|
|
2077
|
-
const data = await parseBody(output.body, context);
|
|
2078
|
-
let contents = {};
|
|
2079
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2080
|
-
const response = {
|
|
2081
|
-
$metadata: deserializeMetadata(output),
|
|
2082
|
-
...contents,
|
|
2083
|
-
};
|
|
2084
|
-
return response;
|
|
2085
|
-
};
|
|
2086
|
-
exports.de_PutRuleCommand = de_PutRuleCommand;
|
|
2087
|
-
const de_PutRuleCommandError = async (output, context) => {
|
|
2088
|
-
const parsedOutput = {
|
|
2089
|
-
...output,
|
|
2090
|
-
body: await parseErrorBody(output.body, context),
|
|
2091
|
-
};
|
|
2092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
|
-
switch (errorCode) {
|
|
2094
|
-
case "ConcurrentModificationException":
|
|
2095
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2096
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "InternalException":
|
|
2098
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2099
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidEventPatternException":
|
|
2101
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2102
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "LimitExceededException":
|
|
2104
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2105
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ManagedRuleException":
|
|
2107
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2108
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ResourceNotFoundException":
|
|
2110
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2112
|
-
default:
|
|
2113
|
-
const parsedBody = parsedOutput.body;
|
|
2114
|
-
return throwDefaultError({
|
|
2115
|
-
output,
|
|
2116
|
-
parsedBody,
|
|
2117
|
-
errorCode,
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
};
|
|
2121
|
-
const de_PutTargetsCommand = async (output, context) => {
|
|
2122
|
-
if (output.statusCode >= 300) {
|
|
2123
|
-
return de_PutTargetsCommandError(output, context);
|
|
2124
|
-
}
|
|
2125
|
-
const data = await parseBody(output.body, context);
|
|
2126
|
-
let contents = {};
|
|
2127
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2128
|
-
const response = {
|
|
2129
|
-
$metadata: deserializeMetadata(output),
|
|
2130
|
-
...contents,
|
|
2131
|
-
};
|
|
2132
|
-
return response;
|
|
2133
|
-
};
|
|
2134
|
-
exports.de_PutTargetsCommand = de_PutTargetsCommand;
|
|
2135
|
-
const de_PutTargetsCommandError = async (output, context) => {
|
|
2136
|
-
const parsedOutput = {
|
|
2137
|
-
...output,
|
|
2138
|
-
body: await parseErrorBody(output.body, context),
|
|
2139
|
-
};
|
|
2140
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
|
-
switch (errorCode) {
|
|
2142
|
-
case "ConcurrentModificationException":
|
|
2143
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2144
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "InternalException":
|
|
2146
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2147
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "LimitExceededException":
|
|
2149
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2150
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ManagedRuleException":
|
|
2152
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2153
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ResourceNotFoundException":
|
|
2155
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
return throwDefaultError({
|
|
2160
|
-
output,
|
|
2161
|
-
parsedBody,
|
|
2162
|
-
errorCode,
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
};
|
|
2166
|
-
const de_RemovePermissionCommand = async (output, context) => {
|
|
2167
|
-
if (output.statusCode >= 300) {
|
|
2168
|
-
return de_RemovePermissionCommandError(output, context);
|
|
2169
|
-
}
|
|
2170
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2171
|
-
const response = {
|
|
2172
|
-
$metadata: deserializeMetadata(output),
|
|
2173
|
-
};
|
|
2174
|
-
return response;
|
|
2175
|
-
};
|
|
2176
|
-
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
2177
|
-
const de_RemovePermissionCommandError = async (output, context) => {
|
|
2178
|
-
const parsedOutput = {
|
|
2179
|
-
...output,
|
|
2180
|
-
body: await parseErrorBody(output.body, context),
|
|
2181
|
-
};
|
|
2182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
-
switch (errorCode) {
|
|
2184
|
-
case "ConcurrentModificationException":
|
|
2185
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2186
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "InternalException":
|
|
2188
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2189
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "OperationDisabledException":
|
|
2191
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
2192
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ResourceNotFoundException":
|
|
2194
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2196
|
-
default:
|
|
2197
|
-
const parsedBody = parsedOutput.body;
|
|
2198
|
-
return throwDefaultError({
|
|
2199
|
-
output,
|
|
2200
|
-
parsedBody,
|
|
2201
|
-
errorCode,
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
};
|
|
2205
|
-
const de_RemoveTargetsCommand = async (output, context) => {
|
|
2206
|
-
if (output.statusCode >= 300) {
|
|
2207
|
-
return de_RemoveTargetsCommandError(output, context);
|
|
2208
|
-
}
|
|
2209
|
-
const data = await parseBody(output.body, context);
|
|
2210
|
-
let contents = {};
|
|
2211
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2212
|
-
const response = {
|
|
2213
|
-
$metadata: deserializeMetadata(output),
|
|
2214
|
-
...contents,
|
|
2215
|
-
};
|
|
2216
|
-
return response;
|
|
2217
|
-
};
|
|
2218
|
-
exports.de_RemoveTargetsCommand = de_RemoveTargetsCommand;
|
|
2219
|
-
const de_RemoveTargetsCommandError = async (output, context) => {
|
|
2220
|
-
const parsedOutput = {
|
|
2221
|
-
...output,
|
|
2222
|
-
body: await parseErrorBody(output.body, context),
|
|
2223
|
-
};
|
|
2224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
|
-
switch (errorCode) {
|
|
2226
|
-
case "ConcurrentModificationException":
|
|
2227
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2228
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "InternalException":
|
|
2230
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2231
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ManagedRuleException":
|
|
2233
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2234
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ResourceNotFoundException":
|
|
2236
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2237
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2238
|
-
default:
|
|
2239
|
-
const parsedBody = parsedOutput.body;
|
|
2240
|
-
return throwDefaultError({
|
|
2241
|
-
output,
|
|
2242
|
-
parsedBody,
|
|
2243
|
-
errorCode,
|
|
2244
|
-
});
|
|
2245
|
-
}
|
|
2246
|
-
};
|
|
2247
|
-
const de_StartReplayCommand = async (output, context) => {
|
|
2248
|
-
if (output.statusCode >= 300) {
|
|
2249
|
-
return de_StartReplayCommandError(output, context);
|
|
2250
|
-
}
|
|
2251
|
-
const data = await parseBody(output.body, context);
|
|
2252
|
-
let contents = {};
|
|
2253
|
-
contents = de_StartReplayResponse(data, context);
|
|
2254
|
-
const response = {
|
|
2255
|
-
$metadata: deserializeMetadata(output),
|
|
2256
|
-
...contents,
|
|
2257
|
-
};
|
|
2258
|
-
return response;
|
|
2259
|
-
};
|
|
2260
|
-
exports.de_StartReplayCommand = de_StartReplayCommand;
|
|
2261
|
-
const de_StartReplayCommandError = async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context),
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "InternalException":
|
|
2269
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2270
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "InvalidEventPatternException":
|
|
2272
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2273
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "LimitExceededException":
|
|
2275
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2276
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ResourceAlreadyExistsException":
|
|
2278
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
2279
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ResourceNotFoundException":
|
|
2281
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2282
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2283
|
-
default:
|
|
2284
|
-
const parsedBody = parsedOutput.body;
|
|
2285
|
-
return throwDefaultError({
|
|
2286
|
-
output,
|
|
2287
|
-
parsedBody,
|
|
2288
|
-
errorCode,
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
};
|
|
2292
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2293
|
-
if (output.statusCode >= 300) {
|
|
2294
|
-
return de_TagResourceCommandError(output, context);
|
|
2295
|
-
}
|
|
2296
|
-
const data = await parseBody(output.body, context);
|
|
2297
|
-
let contents = {};
|
|
2298
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2299
|
-
const response = {
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
...contents,
|
|
2302
|
-
};
|
|
2303
|
-
return response;
|
|
2304
|
-
};
|
|
2305
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2306
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2307
|
-
const parsedOutput = {
|
|
2308
|
-
...output,
|
|
2309
|
-
body: await parseErrorBody(output.body, context),
|
|
2310
|
-
};
|
|
2311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
|
-
switch (errorCode) {
|
|
2313
|
-
case "ConcurrentModificationException":
|
|
2314
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2315
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "InternalException":
|
|
2317
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2318
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ManagedRuleException":
|
|
2320
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2321
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "ResourceNotFoundException":
|
|
2323
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2324
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2325
|
-
default:
|
|
2326
|
-
const parsedBody = parsedOutput.body;
|
|
2327
|
-
return throwDefaultError({
|
|
2328
|
-
output,
|
|
2329
|
-
parsedBody,
|
|
2330
|
-
errorCode,
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
};
|
|
2334
|
-
const de_TestEventPatternCommand = async (output, context) => {
|
|
2335
|
-
if (output.statusCode >= 300) {
|
|
2336
|
-
return de_TestEventPatternCommandError(output, context);
|
|
2337
|
-
}
|
|
2338
|
-
const data = await parseBody(output.body, context);
|
|
2339
|
-
let contents = {};
|
|
2340
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2341
|
-
const response = {
|
|
2342
|
-
$metadata: deserializeMetadata(output),
|
|
2343
|
-
...contents,
|
|
2344
|
-
};
|
|
2345
|
-
return response;
|
|
2346
|
-
};
|
|
2347
|
-
exports.de_TestEventPatternCommand = de_TestEventPatternCommand;
|
|
2348
|
-
const de_TestEventPatternCommandError = async (output, context) => {
|
|
2349
|
-
const parsedOutput = {
|
|
2350
|
-
...output,
|
|
2351
|
-
body: await parseErrorBody(output.body, context),
|
|
2352
|
-
};
|
|
2353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
-
switch (errorCode) {
|
|
2355
|
-
case "InternalException":
|
|
2356
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2357
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "InvalidEventPatternException":
|
|
2359
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2360
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2361
|
-
default:
|
|
2362
|
-
const parsedBody = parsedOutput.body;
|
|
2363
|
-
return throwDefaultError({
|
|
2364
|
-
output,
|
|
2365
|
-
parsedBody,
|
|
2366
|
-
errorCode,
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2370
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2371
|
-
if (output.statusCode >= 300) {
|
|
2372
|
-
return de_UntagResourceCommandError(output, context);
|
|
2373
|
-
}
|
|
2374
|
-
const data = await parseBody(output.body, context);
|
|
2375
|
-
let contents = {};
|
|
2376
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2377
|
-
const response = {
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
...contents,
|
|
2380
|
-
};
|
|
2381
|
-
return response;
|
|
2382
|
-
};
|
|
2383
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2384
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context),
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "ConcurrentModificationException":
|
|
2392
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2393
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "InternalException":
|
|
2395
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2396
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ManagedRuleException":
|
|
2398
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
2399
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ResourceNotFoundException":
|
|
2401
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2403
|
-
default:
|
|
2404
|
-
const parsedBody = parsedOutput.body;
|
|
2405
|
-
return throwDefaultError({
|
|
2406
|
-
output,
|
|
2407
|
-
parsedBody,
|
|
2408
|
-
errorCode,
|
|
2409
|
-
});
|
|
2410
|
-
}
|
|
2411
|
-
};
|
|
2412
|
-
const de_UpdateApiDestinationCommand = async (output, context) => {
|
|
2413
|
-
if (output.statusCode >= 300) {
|
|
2414
|
-
return de_UpdateApiDestinationCommandError(output, context);
|
|
2415
|
-
}
|
|
2416
|
-
const data = await parseBody(output.body, context);
|
|
2417
|
-
let contents = {};
|
|
2418
|
-
contents = de_UpdateApiDestinationResponse(data, context);
|
|
2419
|
-
const response = {
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
...contents,
|
|
2422
|
-
};
|
|
2423
|
-
return response;
|
|
2424
|
-
};
|
|
2425
|
-
exports.de_UpdateApiDestinationCommand = de_UpdateApiDestinationCommand;
|
|
2426
|
-
const de_UpdateApiDestinationCommandError = async (output, context) => {
|
|
2427
|
-
const parsedOutput = {
|
|
2428
|
-
...output,
|
|
2429
|
-
body: await parseErrorBody(output.body, context),
|
|
2430
|
-
};
|
|
2431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
-
switch (errorCode) {
|
|
2433
|
-
case "ConcurrentModificationException":
|
|
2434
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2435
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "InternalException":
|
|
2437
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2438
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "LimitExceededException":
|
|
2440
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2441
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ResourceNotFoundException":
|
|
2443
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2445
|
-
default:
|
|
2446
|
-
const parsedBody = parsedOutput.body;
|
|
2447
|
-
return throwDefaultError({
|
|
2448
|
-
output,
|
|
2449
|
-
parsedBody,
|
|
2450
|
-
errorCode,
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
};
|
|
2454
|
-
const de_UpdateArchiveCommand = async (output, context) => {
|
|
2455
|
-
if (output.statusCode >= 300) {
|
|
2456
|
-
return de_UpdateArchiveCommandError(output, context);
|
|
2457
|
-
}
|
|
2458
|
-
const data = await parseBody(output.body, context);
|
|
2459
|
-
let contents = {};
|
|
2460
|
-
contents = de_UpdateArchiveResponse(data, context);
|
|
2461
|
-
const response = {
|
|
2462
|
-
$metadata: deserializeMetadata(output),
|
|
2463
|
-
...contents,
|
|
2464
|
-
};
|
|
2465
|
-
return response;
|
|
2466
|
-
};
|
|
2467
|
-
exports.de_UpdateArchiveCommand = de_UpdateArchiveCommand;
|
|
2468
|
-
const de_UpdateArchiveCommandError = async (output, context) => {
|
|
2469
|
-
const parsedOutput = {
|
|
2470
|
-
...output,
|
|
2471
|
-
body: await parseErrorBody(output.body, context),
|
|
2472
|
-
};
|
|
2473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
|
-
switch (errorCode) {
|
|
2475
|
-
case "ConcurrentModificationException":
|
|
2476
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2477
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "InternalException":
|
|
2479
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2480
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "InvalidEventPatternException":
|
|
2482
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
2483
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "LimitExceededException":
|
|
2485
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2486
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "ResourceNotFoundException":
|
|
2488
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2490
|
-
default:
|
|
2491
|
-
const parsedBody = parsedOutput.body;
|
|
2492
|
-
return throwDefaultError({
|
|
2493
|
-
output,
|
|
2494
|
-
parsedBody,
|
|
2495
|
-
errorCode,
|
|
2496
|
-
});
|
|
2497
|
-
}
|
|
2498
|
-
};
|
|
2499
|
-
const de_UpdateConnectionCommand = async (output, context) => {
|
|
2500
|
-
if (output.statusCode >= 300) {
|
|
2501
|
-
return de_UpdateConnectionCommandError(output, context);
|
|
2502
|
-
}
|
|
2503
|
-
const data = await parseBody(output.body, context);
|
|
2504
|
-
let contents = {};
|
|
2505
|
-
contents = de_UpdateConnectionResponse(data, context);
|
|
2506
|
-
const response = {
|
|
2507
|
-
$metadata: deserializeMetadata(output),
|
|
2508
|
-
...contents,
|
|
2509
|
-
};
|
|
2510
|
-
return response;
|
|
2511
|
-
};
|
|
2512
|
-
exports.de_UpdateConnectionCommand = de_UpdateConnectionCommand;
|
|
2513
|
-
const de_UpdateConnectionCommandError = async (output, context) => {
|
|
2514
|
-
const parsedOutput = {
|
|
2515
|
-
...output,
|
|
2516
|
-
body: await parseErrorBody(output.body, context),
|
|
2517
|
-
};
|
|
2518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
|
-
switch (errorCode) {
|
|
2520
|
-
case "ConcurrentModificationException":
|
|
2521
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2522
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "InternalException":
|
|
2524
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2525
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "LimitExceededException":
|
|
2527
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
2528
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ResourceNotFoundException":
|
|
2530
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2532
|
-
default:
|
|
2533
|
-
const parsedBody = parsedOutput.body;
|
|
2534
|
-
return throwDefaultError({
|
|
2535
|
-
output,
|
|
2536
|
-
parsedBody,
|
|
2537
|
-
errorCode,
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
};
|
|
2541
|
-
const de_UpdateEndpointCommand = async (output, context) => {
|
|
2542
|
-
if (output.statusCode >= 300) {
|
|
2543
|
-
return de_UpdateEndpointCommandError(output, context);
|
|
2544
|
-
}
|
|
2545
|
-
const data = await parseBody(output.body, context);
|
|
2546
|
-
let contents = {};
|
|
2547
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2548
|
-
const response = {
|
|
2549
|
-
$metadata: deserializeMetadata(output),
|
|
2550
|
-
...contents,
|
|
2551
|
-
};
|
|
2552
|
-
return response;
|
|
2553
|
-
};
|
|
2554
|
-
exports.de_UpdateEndpointCommand = de_UpdateEndpointCommand;
|
|
2555
|
-
const de_UpdateEndpointCommandError = async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context),
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "ConcurrentModificationException":
|
|
2563
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
2564
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "InternalException":
|
|
2566
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
2567
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ResourceNotFoundException":
|
|
2569
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
2570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode,
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
2581
|
-
const body = parsedOutput.body;
|
|
2582
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2583
|
-
const exception = new models_0_1.ConcurrentModificationException({
|
|
2584
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2585
|
-
...deserialized,
|
|
2586
|
-
});
|
|
2587
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2588
|
-
};
|
|
2589
|
-
const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
|
|
2590
|
-
const body = parsedOutput.body;
|
|
2591
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2592
|
-
const exception = new models_0_1.IllegalStatusException({
|
|
2593
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2594
|
-
...deserialized,
|
|
2595
|
-
});
|
|
2596
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2597
|
-
};
|
|
2598
|
-
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
2599
|
-
const body = parsedOutput.body;
|
|
2600
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2601
|
-
const exception = new models_0_1.InternalException({
|
|
2602
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
|
-
...deserialized,
|
|
2604
|
-
});
|
|
2605
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2606
|
-
};
|
|
2607
|
-
const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
|
|
2608
|
-
const body = parsedOutput.body;
|
|
2609
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2610
|
-
const exception = new models_0_1.InvalidEventPatternException({
|
|
2611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2612
|
-
...deserialized,
|
|
2613
|
-
});
|
|
2614
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2615
|
-
};
|
|
2616
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2617
|
-
const body = parsedOutput.body;
|
|
2618
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2619
|
-
const exception = new models_0_1.InvalidStateException({
|
|
2620
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2621
|
-
...deserialized,
|
|
2622
|
-
});
|
|
2623
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2624
|
-
};
|
|
2625
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2626
|
-
const body = parsedOutput.body;
|
|
2627
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2628
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2629
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2630
|
-
...deserialized,
|
|
2631
|
-
});
|
|
2632
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2633
|
-
};
|
|
2634
|
-
const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
|
|
2635
|
-
const body = parsedOutput.body;
|
|
2636
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2637
|
-
const exception = new models_0_1.ManagedRuleException({
|
|
2638
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2639
|
-
...deserialized,
|
|
2640
|
-
});
|
|
2641
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2642
|
-
};
|
|
2643
|
-
const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2644
|
-
const body = parsedOutput.body;
|
|
2645
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2646
|
-
const exception = new models_0_1.OperationDisabledException({
|
|
2647
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2648
|
-
...deserialized,
|
|
2649
|
-
});
|
|
2650
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2651
|
-
};
|
|
2652
|
-
const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
|
|
2653
|
-
const body = parsedOutput.body;
|
|
2654
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2655
|
-
const exception = new models_0_1.PolicyLengthExceededException({
|
|
2656
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2657
|
-
...deserialized,
|
|
2658
|
-
});
|
|
2659
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2660
|
-
};
|
|
2661
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2662
|
-
const body = parsedOutput.body;
|
|
2663
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2664
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2665
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2666
|
-
...deserialized,
|
|
2667
|
-
});
|
|
2668
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2669
|
-
};
|
|
2670
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2671
|
-
const body = parsedOutput.body;
|
|
2672
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2673
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2675
|
-
...deserialized,
|
|
2676
|
-
});
|
|
2677
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2678
|
-
};
|
|
2679
|
-
const se_PutEventsRequest = (input, context) => {
|
|
2680
|
-
return (0, smithy_client_1.take)(input, {
|
|
2681
|
-
EndpointId: [],
|
|
2682
|
-
Entries: (_) => se_PutEventsRequestEntryList(_, context),
|
|
2683
|
-
});
|
|
2684
|
-
};
|
|
2685
|
-
const se_PutEventsRequestEntry = (input, context) => {
|
|
2686
|
-
return (0, smithy_client_1.take)(input, {
|
|
2687
|
-
Detail: [],
|
|
2688
|
-
DetailType: [],
|
|
2689
|
-
EventBusName: [],
|
|
2690
|
-
Resources: smithy_client_1._json,
|
|
2691
|
-
Source: [],
|
|
2692
|
-
Time: (_) => Math.round(_.getTime() / 1000),
|
|
2693
|
-
TraceHeader: [],
|
|
2694
|
-
});
|
|
2695
|
-
};
|
|
2696
|
-
const se_PutEventsRequestEntryList = (input, context) => {
|
|
2697
|
-
return input
|
|
2698
|
-
.filter((e) => e != null)
|
|
2699
|
-
.map((entry) => {
|
|
2700
|
-
return se_PutEventsRequestEntry(entry, context);
|
|
2701
|
-
});
|
|
2702
|
-
};
|
|
2703
|
-
const se_PutPartnerEventsRequest = (input, context) => {
|
|
2704
|
-
return (0, smithy_client_1.take)(input, {
|
|
2705
|
-
Entries: (_) => se_PutPartnerEventsRequestEntryList(_, context),
|
|
2706
|
-
});
|
|
2707
|
-
};
|
|
2708
|
-
const se_PutPartnerEventsRequestEntry = (input, context) => {
|
|
2709
|
-
return (0, smithy_client_1.take)(input, {
|
|
2710
|
-
Detail: [],
|
|
2711
|
-
DetailType: [],
|
|
2712
|
-
Resources: smithy_client_1._json,
|
|
2713
|
-
Source: [],
|
|
2714
|
-
Time: (_) => Math.round(_.getTime() / 1000),
|
|
2715
|
-
});
|
|
2716
|
-
};
|
|
2717
|
-
const se_PutPartnerEventsRequestEntryList = (input, context) => {
|
|
2718
|
-
return input
|
|
2719
|
-
.filter((e) => e != null)
|
|
2720
|
-
.map((entry) => {
|
|
2721
|
-
return se_PutPartnerEventsRequestEntry(entry, context);
|
|
2722
|
-
});
|
|
2723
|
-
};
|
|
2724
|
-
const se_StartReplayRequest = (input, context) => {
|
|
2725
|
-
return (0, smithy_client_1.take)(input, {
|
|
2726
|
-
Description: [],
|
|
2727
|
-
Destination: smithy_client_1._json,
|
|
2728
|
-
EventEndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2729
|
-
EventSourceArn: [],
|
|
2730
|
-
EventStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2731
|
-
ReplayName: [],
|
|
2732
|
-
});
|
|
2733
|
-
};
|
|
2734
|
-
const de_ApiDestination = (output, context) => {
|
|
2735
|
-
return (0, smithy_client_1.take)(output, {
|
|
2736
|
-
ApiDestinationArn: smithy_client_1.expectString,
|
|
2737
|
-
ApiDestinationState: smithy_client_1.expectString,
|
|
2738
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2739
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2740
|
-
HttpMethod: smithy_client_1.expectString,
|
|
2741
|
-
InvocationEndpoint: smithy_client_1.expectString,
|
|
2742
|
-
InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
|
|
2743
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2744
|
-
Name: smithy_client_1.expectString,
|
|
2745
|
-
});
|
|
2746
|
-
};
|
|
2747
|
-
const de_ApiDestinationResponseList = (output, context) => {
|
|
2748
|
-
const retVal = (output || [])
|
|
2749
|
-
.filter((e) => e != null)
|
|
2750
|
-
.map((entry) => {
|
|
2751
|
-
return de_ApiDestination(entry, context);
|
|
2752
|
-
});
|
|
2753
|
-
return retVal;
|
|
2754
|
-
};
|
|
2755
|
-
const de_Archive = (output, context) => {
|
|
2756
|
-
return (0, smithy_client_1.take)(output, {
|
|
2757
|
-
ArchiveName: smithy_client_1.expectString,
|
|
2758
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2759
|
-
EventCount: smithy_client_1.expectLong,
|
|
2760
|
-
EventSourceArn: smithy_client_1.expectString,
|
|
2761
|
-
RetentionDays: smithy_client_1.expectInt32,
|
|
2762
|
-
SizeBytes: smithy_client_1.expectLong,
|
|
2763
|
-
State: smithy_client_1.expectString,
|
|
2764
|
-
StateReason: smithy_client_1.expectString,
|
|
2765
|
-
});
|
|
2766
|
-
};
|
|
2767
|
-
const de_ArchiveResponseList = (output, context) => {
|
|
2768
|
-
const retVal = (output || [])
|
|
2769
|
-
.filter((e) => e != null)
|
|
2770
|
-
.map((entry) => {
|
|
2771
|
-
return de_Archive(entry, context);
|
|
2772
|
-
});
|
|
2773
|
-
return retVal;
|
|
2774
|
-
};
|
|
2775
|
-
const de_Connection = (output, context) => {
|
|
2776
|
-
return (0, smithy_client_1.take)(output, {
|
|
2777
|
-
AuthorizationType: smithy_client_1.expectString,
|
|
2778
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2779
|
-
ConnectionState: smithy_client_1.expectString,
|
|
2780
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2781
|
-
LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2782
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2783
|
-
Name: smithy_client_1.expectString,
|
|
2784
|
-
StateReason: smithy_client_1.expectString,
|
|
2785
|
-
});
|
|
2786
|
-
};
|
|
2787
|
-
const de_ConnectionResponseList = (output, context) => {
|
|
2788
|
-
const retVal = (output || [])
|
|
2789
|
-
.filter((e) => e != null)
|
|
2790
|
-
.map((entry) => {
|
|
2791
|
-
return de_Connection(entry, context);
|
|
2792
|
-
});
|
|
2793
|
-
return retVal;
|
|
2794
|
-
};
|
|
2795
|
-
const de_CreateApiDestinationResponse = (output, context) => {
|
|
2796
|
-
return (0, smithy_client_1.take)(output, {
|
|
2797
|
-
ApiDestinationArn: smithy_client_1.expectString,
|
|
2798
|
-
ApiDestinationState: smithy_client_1.expectString,
|
|
2799
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2800
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2801
|
-
});
|
|
2802
|
-
};
|
|
2803
|
-
const de_CreateArchiveResponse = (output, context) => {
|
|
2804
|
-
return (0, smithy_client_1.take)(output, {
|
|
2805
|
-
ArchiveArn: smithy_client_1.expectString,
|
|
2806
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2807
|
-
State: smithy_client_1.expectString,
|
|
2808
|
-
StateReason: smithy_client_1.expectString,
|
|
2809
|
-
});
|
|
2810
|
-
};
|
|
2811
|
-
const de_CreateConnectionResponse = (output, context) => {
|
|
2812
|
-
return (0, smithy_client_1.take)(output, {
|
|
2813
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2814
|
-
ConnectionState: smithy_client_1.expectString,
|
|
2815
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2816
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2817
|
-
});
|
|
2818
|
-
};
|
|
2819
|
-
const de_DeauthorizeConnectionResponse = (output, context) => {
|
|
2820
|
-
return (0, smithy_client_1.take)(output, {
|
|
2821
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2822
|
-
ConnectionState: smithy_client_1.expectString,
|
|
2823
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2824
|
-
LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2825
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2826
|
-
});
|
|
2827
|
-
};
|
|
2828
|
-
const de_DeleteConnectionResponse = (output, context) => {
|
|
2829
|
-
return (0, smithy_client_1.take)(output, {
|
|
2830
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2831
|
-
ConnectionState: smithy_client_1.expectString,
|
|
2832
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2833
|
-
LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2834
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2835
|
-
});
|
|
2836
|
-
};
|
|
2837
|
-
const de_DescribeApiDestinationResponse = (output, context) => {
|
|
2838
|
-
return (0, smithy_client_1.take)(output, {
|
|
2839
|
-
ApiDestinationArn: smithy_client_1.expectString,
|
|
2840
|
-
ApiDestinationState: smithy_client_1.expectString,
|
|
2841
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2842
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2843
|
-
Description: smithy_client_1.expectString,
|
|
2844
|
-
HttpMethod: smithy_client_1.expectString,
|
|
2845
|
-
InvocationEndpoint: smithy_client_1.expectString,
|
|
2846
|
-
InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
|
|
2847
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2848
|
-
Name: smithy_client_1.expectString,
|
|
2849
|
-
});
|
|
2850
|
-
};
|
|
2851
|
-
const de_DescribeArchiveResponse = (output, context) => {
|
|
2852
|
-
return (0, smithy_client_1.take)(output, {
|
|
2853
|
-
ArchiveArn: smithy_client_1.expectString,
|
|
2854
|
-
ArchiveName: smithy_client_1.expectString,
|
|
2855
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2856
|
-
Description: smithy_client_1.expectString,
|
|
2857
|
-
EventCount: smithy_client_1.expectLong,
|
|
2858
|
-
EventPattern: smithy_client_1.expectString,
|
|
2859
|
-
EventSourceArn: smithy_client_1.expectString,
|
|
2860
|
-
RetentionDays: smithy_client_1.expectInt32,
|
|
2861
|
-
SizeBytes: smithy_client_1.expectLong,
|
|
2862
|
-
State: smithy_client_1.expectString,
|
|
2863
|
-
StateReason: smithy_client_1.expectString,
|
|
2864
|
-
});
|
|
2865
|
-
};
|
|
2866
|
-
const de_DescribeConnectionResponse = (output, context) => {
|
|
2867
|
-
return (0, smithy_client_1.take)(output, {
|
|
2868
|
-
AuthParameters: smithy_client_1._json,
|
|
2869
|
-
AuthorizationType: smithy_client_1.expectString,
|
|
2870
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
2871
|
-
ConnectionState: smithy_client_1.expectString,
|
|
2872
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2873
|
-
Description: smithy_client_1.expectString,
|
|
2874
|
-
LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2875
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2876
|
-
Name: smithy_client_1.expectString,
|
|
2877
|
-
SecretArn: smithy_client_1.expectString,
|
|
2878
|
-
StateReason: smithy_client_1.expectString,
|
|
2879
|
-
});
|
|
2880
|
-
};
|
|
2881
|
-
const de_DescribeEndpointResponse = (output, context) => {
|
|
2882
|
-
return (0, smithy_client_1.take)(output, {
|
|
2883
|
-
Arn: smithy_client_1.expectString,
|
|
2884
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2885
|
-
Description: smithy_client_1.expectString,
|
|
2886
|
-
EndpointId: smithy_client_1.expectString,
|
|
2887
|
-
EndpointUrl: smithy_client_1.expectString,
|
|
2888
|
-
EventBuses: smithy_client_1._json,
|
|
2889
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2890
|
-
Name: smithy_client_1.expectString,
|
|
2891
|
-
ReplicationConfig: smithy_client_1._json,
|
|
2892
|
-
RoleArn: smithy_client_1.expectString,
|
|
2893
|
-
RoutingConfig: smithy_client_1._json,
|
|
2894
|
-
State: smithy_client_1.expectString,
|
|
2895
|
-
StateReason: smithy_client_1.expectString,
|
|
2896
|
-
});
|
|
2897
|
-
};
|
|
2898
|
-
const de_DescribeEventSourceResponse = (output, context) => {
|
|
2899
|
-
return (0, smithy_client_1.take)(output, {
|
|
2900
|
-
Arn: smithy_client_1.expectString,
|
|
2901
|
-
CreatedBy: smithy_client_1.expectString,
|
|
2902
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2903
|
-
ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2904
|
-
Name: smithy_client_1.expectString,
|
|
2905
|
-
State: smithy_client_1.expectString,
|
|
2906
|
-
});
|
|
2907
|
-
};
|
|
2908
|
-
const de_DescribeReplayResponse = (output, context) => {
|
|
2909
|
-
return (0, smithy_client_1.take)(output, {
|
|
2910
|
-
Description: smithy_client_1.expectString,
|
|
2911
|
-
Destination: smithy_client_1._json,
|
|
2912
|
-
EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2913
|
-
EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2914
|
-
EventSourceArn: smithy_client_1.expectString,
|
|
2915
|
-
EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2916
|
-
ReplayArn: smithy_client_1.expectString,
|
|
2917
|
-
ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2918
|
-
ReplayName: smithy_client_1.expectString,
|
|
2919
|
-
ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2920
|
-
State: smithy_client_1.expectString,
|
|
2921
|
-
StateReason: smithy_client_1.expectString,
|
|
2922
|
-
});
|
|
2923
|
-
};
|
|
2924
|
-
const de_Endpoint = (output, context) => {
|
|
2925
|
-
return (0, smithy_client_1.take)(output, {
|
|
2926
|
-
Arn: smithy_client_1.expectString,
|
|
2927
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2928
|
-
Description: smithy_client_1.expectString,
|
|
2929
|
-
EndpointId: smithy_client_1.expectString,
|
|
2930
|
-
EndpointUrl: smithy_client_1.expectString,
|
|
2931
|
-
EventBuses: smithy_client_1._json,
|
|
2932
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2933
|
-
Name: smithy_client_1.expectString,
|
|
2934
|
-
ReplicationConfig: smithy_client_1._json,
|
|
2935
|
-
RoleArn: smithy_client_1.expectString,
|
|
2936
|
-
RoutingConfig: smithy_client_1._json,
|
|
2937
|
-
State: smithy_client_1.expectString,
|
|
2938
|
-
StateReason: smithy_client_1.expectString,
|
|
2939
|
-
});
|
|
2940
|
-
};
|
|
2941
|
-
const de_EndpointList = (output, context) => {
|
|
2942
|
-
const retVal = (output || [])
|
|
2943
|
-
.filter((e) => e != null)
|
|
2944
|
-
.map((entry) => {
|
|
2945
|
-
return de_Endpoint(entry, context);
|
|
2946
|
-
});
|
|
2947
|
-
return retVal;
|
|
2948
|
-
};
|
|
2949
|
-
const de_EventSource = (output, context) => {
|
|
2950
|
-
return (0, smithy_client_1.take)(output, {
|
|
2951
|
-
Arn: smithy_client_1.expectString,
|
|
2952
|
-
CreatedBy: smithy_client_1.expectString,
|
|
2953
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2954
|
-
ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2955
|
-
Name: smithy_client_1.expectString,
|
|
2956
|
-
State: smithy_client_1.expectString,
|
|
2957
|
-
});
|
|
2958
|
-
};
|
|
2959
|
-
const de_EventSourceList = (output, context) => {
|
|
2960
|
-
const retVal = (output || [])
|
|
2961
|
-
.filter((e) => e != null)
|
|
2962
|
-
.map((entry) => {
|
|
2963
|
-
return de_EventSource(entry, context);
|
|
2964
|
-
});
|
|
2965
|
-
return retVal;
|
|
2966
|
-
};
|
|
2967
|
-
const de_ListApiDestinationsResponse = (output, context) => {
|
|
2968
|
-
return (0, smithy_client_1.take)(output, {
|
|
2969
|
-
ApiDestinations: (_) => de_ApiDestinationResponseList(_, context),
|
|
2970
|
-
NextToken: smithy_client_1.expectString,
|
|
2971
|
-
});
|
|
2972
|
-
};
|
|
2973
|
-
const de_ListArchivesResponse = (output, context) => {
|
|
2974
|
-
return (0, smithy_client_1.take)(output, {
|
|
2975
|
-
Archives: (_) => de_ArchiveResponseList(_, context),
|
|
2976
|
-
NextToken: smithy_client_1.expectString,
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2979
|
-
const de_ListConnectionsResponse = (output, context) => {
|
|
2980
|
-
return (0, smithy_client_1.take)(output, {
|
|
2981
|
-
Connections: (_) => de_ConnectionResponseList(_, context),
|
|
2982
|
-
NextToken: smithy_client_1.expectString,
|
|
2983
|
-
});
|
|
2984
|
-
};
|
|
2985
|
-
const de_ListEndpointsResponse = (output, context) => {
|
|
2986
|
-
return (0, smithy_client_1.take)(output, {
|
|
2987
|
-
Endpoints: (_) => de_EndpointList(_, context),
|
|
2988
|
-
NextToken: smithy_client_1.expectString,
|
|
2989
|
-
});
|
|
2990
|
-
};
|
|
2991
|
-
const de_ListEventSourcesResponse = (output, context) => {
|
|
2992
|
-
return (0, smithy_client_1.take)(output, {
|
|
2993
|
-
EventSources: (_) => de_EventSourceList(_, context),
|
|
2994
|
-
NextToken: smithy_client_1.expectString,
|
|
2995
|
-
});
|
|
2996
|
-
};
|
|
2997
|
-
const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
|
|
2998
|
-
return (0, smithy_client_1.take)(output, {
|
|
2999
|
-
NextToken: smithy_client_1.expectString,
|
|
3000
|
-
PartnerEventSourceAccounts: (_) => de_PartnerEventSourceAccountList(_, context),
|
|
3001
|
-
});
|
|
3002
|
-
};
|
|
3003
|
-
const de_ListReplaysResponse = (output, context) => {
|
|
3004
|
-
return (0, smithy_client_1.take)(output, {
|
|
3005
|
-
NextToken: smithy_client_1.expectString,
|
|
3006
|
-
Replays: (_) => de_ReplayList(_, context),
|
|
3007
|
-
});
|
|
3008
|
-
};
|
|
3009
|
-
const de_PartnerEventSourceAccount = (output, context) => {
|
|
3010
|
-
return (0, smithy_client_1.take)(output, {
|
|
3011
|
-
Account: smithy_client_1.expectString,
|
|
3012
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3013
|
-
ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3014
|
-
State: smithy_client_1.expectString,
|
|
3015
|
-
});
|
|
3016
|
-
};
|
|
3017
|
-
const de_PartnerEventSourceAccountList = (output, context) => {
|
|
3018
|
-
const retVal = (output || [])
|
|
3019
|
-
.filter((e) => e != null)
|
|
3020
|
-
.map((entry) => {
|
|
3021
|
-
return de_PartnerEventSourceAccount(entry, context);
|
|
3022
|
-
});
|
|
3023
|
-
return retVal;
|
|
3024
|
-
};
|
|
3025
|
-
const de_Replay = (output, context) => {
|
|
3026
|
-
return (0, smithy_client_1.take)(output, {
|
|
3027
|
-
EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3028
|
-
EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3029
|
-
EventSourceArn: smithy_client_1.expectString,
|
|
3030
|
-
EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3031
|
-
ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3032
|
-
ReplayName: smithy_client_1.expectString,
|
|
3033
|
-
ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3034
|
-
State: smithy_client_1.expectString,
|
|
3035
|
-
StateReason: smithy_client_1.expectString,
|
|
3036
|
-
});
|
|
3037
|
-
};
|
|
3038
|
-
const de_ReplayList = (output, context) => {
|
|
3039
|
-
const retVal = (output || [])
|
|
3040
|
-
.filter((e) => e != null)
|
|
3041
|
-
.map((entry) => {
|
|
3042
|
-
return de_Replay(entry, context);
|
|
3043
|
-
});
|
|
3044
|
-
return retVal;
|
|
3045
|
-
};
|
|
3046
|
-
const de_StartReplayResponse = (output, context) => {
|
|
3047
|
-
return (0, smithy_client_1.take)(output, {
|
|
3048
|
-
ReplayArn: smithy_client_1.expectString,
|
|
3049
|
-
ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3050
|
-
State: smithy_client_1.expectString,
|
|
3051
|
-
StateReason: smithy_client_1.expectString,
|
|
3052
|
-
});
|
|
3053
|
-
};
|
|
3054
|
-
const de_UpdateApiDestinationResponse = (output, context) => {
|
|
3055
|
-
return (0, smithy_client_1.take)(output, {
|
|
3056
|
-
ApiDestinationArn: smithy_client_1.expectString,
|
|
3057
|
-
ApiDestinationState: smithy_client_1.expectString,
|
|
3058
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3059
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3060
|
-
});
|
|
3061
|
-
};
|
|
3062
|
-
const de_UpdateArchiveResponse = (output, context) => {
|
|
3063
|
-
return (0, smithy_client_1.take)(output, {
|
|
3064
|
-
ArchiveArn: smithy_client_1.expectString,
|
|
3065
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3066
|
-
State: smithy_client_1.expectString,
|
|
3067
|
-
StateReason: smithy_client_1.expectString,
|
|
3068
|
-
});
|
|
3069
|
-
};
|
|
3070
|
-
const de_UpdateConnectionResponse = (output, context) => {
|
|
3071
|
-
return (0, smithy_client_1.take)(output, {
|
|
3072
|
-
ConnectionArn: smithy_client_1.expectString,
|
|
3073
|
-
ConnectionState: smithy_client_1.expectString,
|
|
3074
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3075
|
-
LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3076
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3077
|
-
});
|
|
3078
|
-
};
|
|
3079
|
-
const deserializeMetadata = (output) => ({
|
|
3080
|
-
httpStatusCode: output.statusCode,
|
|
3081
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3082
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3083
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3084
|
-
});
|
|
3085
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3086
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EventBridgeServiceException_1.EventBridgeServiceException);
|
|
3087
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3088
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3089
|
-
const contents = {
|
|
3090
|
-
protocol,
|
|
3091
|
-
hostname,
|
|
3092
|
-
port,
|
|
3093
|
-
method: "POST",
|
|
3094
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3095
|
-
headers,
|
|
3096
|
-
};
|
|
3097
|
-
if (resolvedHostname !== undefined) {
|
|
3098
|
-
contents.hostname = resolvedHostname;
|
|
3099
|
-
}
|
|
3100
|
-
if (body !== undefined) {
|
|
3101
|
-
contents.body = body;
|
|
3102
|
-
}
|
|
3103
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3104
|
-
};
|
|
3105
|
-
function sharedHeaders(operation) {
|
|
3106
|
-
return {
|
|
3107
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3108
|
-
"x-amz-target": `AWSEvents.${operation}`,
|
|
3109
|
-
};
|
|
3110
|
-
}
|
|
3111
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3112
|
-
if (encoded.length) {
|
|
3113
|
-
return JSON.parse(encoded);
|
|
3114
|
-
}
|
|
3115
|
-
return {};
|
|
3116
|
-
});
|
|
3117
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3118
|
-
const value = await parseBody(errorBody, context);
|
|
3119
|
-
value.message = value.message ?? value.Message;
|
|
3120
|
-
return value;
|
|
3121
|
-
};
|
|
3122
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3123
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3124
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3125
|
-
let cleanValue = rawValue;
|
|
3126
|
-
if (typeof cleanValue === "number") {
|
|
3127
|
-
cleanValue = cleanValue.toString();
|
|
3128
|
-
}
|
|
3129
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3130
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3131
|
-
}
|
|
3132
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3133
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3134
|
-
}
|
|
3135
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3136
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3137
|
-
}
|
|
3138
|
-
return cleanValue;
|
|
3139
|
-
};
|
|
3140
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3141
|
-
if (headerKey !== undefined) {
|
|
3142
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3143
|
-
}
|
|
3144
|
-
if (data.code !== undefined) {
|
|
3145
|
-
return sanitizeErrorCode(data.code);
|
|
3146
|
-
}
|
|
3147
|
-
if (data["__type"] !== undefined) {
|
|
3148
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3149
|
-
}
|
|
3150
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|