@aws-sdk/client-eventbridge 3.926.0 → 3.928.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/index.js +1912 -2314
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/EventBridgeClient.js +2 -0
- package/dist-es/commands/ActivateEventSourceCommand.js +3 -9
- package/dist-es/commands/CancelReplayCommand.js +3 -9
- package/dist-es/commands/CreateApiDestinationCommand.js +3 -9
- package/dist-es/commands/CreateArchiveCommand.js +3 -9
- package/dist-es/commands/CreateConnectionCommand.js +3 -10
- package/dist-es/commands/CreateEndpointCommand.js +3 -9
- package/dist-es/commands/CreateEventBusCommand.js +3 -9
- package/dist-es/commands/CreatePartnerEventSourceCommand.js +3 -9
- package/dist-es/commands/DeactivateEventSourceCommand.js +3 -9
- package/dist-es/commands/DeauthorizeConnectionCommand.js +3 -9
- package/dist-es/commands/DeleteApiDestinationCommand.js +3 -9
- package/dist-es/commands/DeleteArchiveCommand.js +3 -9
- package/dist-es/commands/DeleteConnectionCommand.js +3 -9
- package/dist-es/commands/DeleteEndpointCommand.js +3 -9
- package/dist-es/commands/DeleteEventBusCommand.js +3 -9
- package/dist-es/commands/DeletePartnerEventSourceCommand.js +3 -9
- package/dist-es/commands/DeleteRuleCommand.js +3 -9
- package/dist-es/commands/DescribeApiDestinationCommand.js +3 -9
- package/dist-es/commands/DescribeArchiveCommand.js +3 -9
- package/dist-es/commands/DescribeConnectionCommand.js +3 -10
- package/dist-es/commands/DescribeEndpointCommand.js +3 -9
- package/dist-es/commands/DescribeEventBusCommand.js +3 -9
- package/dist-es/commands/DescribeEventSourceCommand.js +3 -9
- package/dist-es/commands/DescribePartnerEventSourceCommand.js +3 -9
- package/dist-es/commands/DescribeReplayCommand.js +3 -9
- package/dist-es/commands/DescribeRuleCommand.js +3 -9
- package/dist-es/commands/DisableRuleCommand.js +3 -9
- package/dist-es/commands/EnableRuleCommand.js +3 -9
- package/dist-es/commands/ListApiDestinationsCommand.js +3 -9
- package/dist-es/commands/ListArchivesCommand.js +3 -9
- package/dist-es/commands/ListConnectionsCommand.js +3 -9
- package/dist-es/commands/ListEndpointsCommand.js +3 -9
- package/dist-es/commands/ListEventBusesCommand.js +3 -9
- package/dist-es/commands/ListEventSourcesCommand.js +3 -9
- package/dist-es/commands/ListPartnerEventSourceAccountsCommand.js +3 -9
- package/dist-es/commands/ListPartnerEventSourcesCommand.js +3 -9
- package/dist-es/commands/ListReplaysCommand.js +3 -9
- package/dist-es/commands/ListRuleNamesByTargetCommand.js +3 -9
- package/dist-es/commands/ListRulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTargetsByRuleCommand.js +3 -10
- package/dist-es/commands/PutEventsCommand.js +3 -9
- package/dist-es/commands/PutPartnerEventsCommand.js +3 -9
- package/dist-es/commands/PutPermissionCommand.js +3 -9
- package/dist-es/commands/PutRuleCommand.js +3 -9
- package/dist-es/commands/PutTargetsCommand.js +3 -10
- package/dist-es/commands/RemovePermissionCommand.js +3 -9
- package/dist-es/commands/RemoveTargetsCommand.js +3 -9
- package/dist-es/commands/StartReplayCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TestEventPatternCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateApiDestinationCommand.js +3 -9
- package/dist-es/commands/UpdateArchiveCommand.js +3 -9
- package/dist-es/commands/UpdateConnectionCommand.js +3 -10
- package/dist-es/commands/UpdateEndpointCommand.js +3 -9
- package/dist-es/commands/UpdateEventBusCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -152
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1768 -0
- package/dist-types/EventBridgeClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -96
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +294 -0
- package/dist-types/ts3.4/EventBridgeClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -70
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +300 -0
- package/package.json +7 -7
- package/dist-es/protocols/Aws_json1_1.js +0 -1705
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -515
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -689
|
@@ -1,1705 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { EventBridgeServiceException as __BaseException } from "../models/EventBridgeServiceException";
|
|
5
|
-
import { AccessDeniedException, ConcurrentModificationException, IllegalStatusException, InternalException, InvalidEventPatternException, InvalidStateException, LimitExceededException, ManagedRuleException, OperationDisabledException, PolicyLengthExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export const se_ActivateEventSourceCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("ActivateEventSource");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CancelReplayCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CancelReplay");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateApiDestinationCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateApiDestination");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateArchiveCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateArchive");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CreateConnectionCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateConnection");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateEndpointCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateEndpoint");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateEventBusCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateEventBus");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreatePartnerEventSourceCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreatePartnerEventSource");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeactivateEventSourceCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeactivateEventSource");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DeauthorizeConnectionCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeauthorizeConnection");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DeleteApiDestinationCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeleteApiDestination");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DeleteArchiveCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteArchive");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteConnection");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DeleteEndpoint");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DeleteEventBusCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DeleteEventBus");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeletePartnerEventSourceCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DeletePartnerEventSource");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DeleteRuleCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteRule");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DescribeApiDestinationCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DescribeApiDestination");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_DescribeArchiveCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeArchive");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_DescribeConnectionCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DescribeConnection");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_DescribeEndpointCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("DescribeEndpoint");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_DescribeEventBusCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("DescribeEventBus");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_DescribeEventSourceCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DescribeEventSource");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_DescribePartnerEventSourceCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DescribePartnerEventSource");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_DescribeReplayCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DescribeReplay");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_DescribeRuleCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DescribeRule");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_DisableRuleCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("DisableRule");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_EnableRuleCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("EnableRule");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_ListApiDestinationsCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("ListApiDestinations");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_ListArchivesCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("ListArchives");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_ListConnectionsCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListConnections");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_ListEndpointsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("ListEndpoints");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_ListEventBusesCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListEventBuses");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_ListEventSourcesCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("ListEventSources");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_ListPartnerEventSourceAccountsCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("ListPartnerEventSourceAccounts");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_ListPartnerEventSourcesCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("ListPartnerEventSources");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_ListReplaysCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("ListReplays");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_ListRuleNamesByTargetCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListRuleNamesByTarget");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_ListRulesCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("ListRules");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_ListTargetsByRuleCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("ListTargetsByRule");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_PutEventsCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("PutEvents");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(se_PutEventsRequest(input, context));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const se_PutPartnerEventsCommand = async (input, context) => {
|
|
259
|
-
const headers = sharedHeaders("PutPartnerEvents");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(se_PutPartnerEventsRequest(input, context));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
export const se_PutPermissionCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("PutPermission");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(_json(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
export const se_PutRuleCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("PutRule");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(_json(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_PutTargetsCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("PutTargets");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(_json(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
export const se_RemovePermissionCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("RemovePermission");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify(_json(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
export const se_RemoveTargetsCommand = async (input, context) => {
|
|
289
|
-
const headers = sharedHeaders("RemoveTargets");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(_json(input));
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
export const se_StartReplayCommand = async (input, context) => {
|
|
295
|
-
const headers = sharedHeaders("StartReplay");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(se_StartReplayRequest(input, context));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
301
|
-
const headers = sharedHeaders("TagResource");
|
|
302
|
-
let body;
|
|
303
|
-
body = JSON.stringify(_json(input));
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
export const se_TestEventPatternCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("TestEventPattern");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify(_json(input));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("UntagResource");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify(_json(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
export const se_UpdateApiDestinationCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("UpdateApiDestination");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify(_json(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
export const se_UpdateArchiveCommand = async (input, context) => {
|
|
325
|
-
const headers = sharedHeaders("UpdateArchive");
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify(_json(input));
|
|
328
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
-
};
|
|
330
|
-
export const se_UpdateConnectionCommand = async (input, context) => {
|
|
331
|
-
const headers = sharedHeaders("UpdateConnection");
|
|
332
|
-
let body;
|
|
333
|
-
body = JSON.stringify(_json(input));
|
|
334
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
-
};
|
|
336
|
-
export const se_UpdateEndpointCommand = async (input, context) => {
|
|
337
|
-
const headers = sharedHeaders("UpdateEndpoint");
|
|
338
|
-
let body;
|
|
339
|
-
body = JSON.stringify(_json(input));
|
|
340
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
|
-
};
|
|
342
|
-
export const se_UpdateEventBusCommand = async (input, context) => {
|
|
343
|
-
const headers = sharedHeaders("UpdateEventBus");
|
|
344
|
-
let body;
|
|
345
|
-
body = JSON.stringify(_json(input));
|
|
346
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
-
};
|
|
348
|
-
export const de_ActivateEventSourceCommand = async (output, context) => {
|
|
349
|
-
if (output.statusCode >= 300) {
|
|
350
|
-
return de_CommandError(output, context);
|
|
351
|
-
}
|
|
352
|
-
await collectBody(output.body, context);
|
|
353
|
-
const response = {
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
};
|
|
356
|
-
return response;
|
|
357
|
-
};
|
|
358
|
-
export const de_CancelReplayCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode >= 300) {
|
|
360
|
-
return de_CommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const data = await parseBody(output.body, context);
|
|
363
|
-
let contents = {};
|
|
364
|
-
contents = _json(data);
|
|
365
|
-
const response = {
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
...contents,
|
|
368
|
-
};
|
|
369
|
-
return response;
|
|
370
|
-
};
|
|
371
|
-
export const de_CreateApiDestinationCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const data = await parseBody(output.body, context);
|
|
376
|
-
let contents = {};
|
|
377
|
-
contents = de_CreateApiDestinationResponse(data, context);
|
|
378
|
-
const response = {
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
...contents,
|
|
381
|
-
};
|
|
382
|
-
return response;
|
|
383
|
-
};
|
|
384
|
-
export const de_CreateArchiveCommand = async (output, context) => {
|
|
385
|
-
if (output.statusCode >= 300) {
|
|
386
|
-
return de_CommandError(output, context);
|
|
387
|
-
}
|
|
388
|
-
const data = await parseBody(output.body, context);
|
|
389
|
-
let contents = {};
|
|
390
|
-
contents = de_CreateArchiveResponse(data, context);
|
|
391
|
-
const response = {
|
|
392
|
-
$metadata: deserializeMetadata(output),
|
|
393
|
-
...contents,
|
|
394
|
-
};
|
|
395
|
-
return response;
|
|
396
|
-
};
|
|
397
|
-
export const de_CreateConnectionCommand = async (output, context) => {
|
|
398
|
-
if (output.statusCode >= 300) {
|
|
399
|
-
return de_CommandError(output, context);
|
|
400
|
-
}
|
|
401
|
-
const data = await parseBody(output.body, context);
|
|
402
|
-
let contents = {};
|
|
403
|
-
contents = de_CreateConnectionResponse(data, context);
|
|
404
|
-
const response = {
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
...contents,
|
|
407
|
-
};
|
|
408
|
-
return response;
|
|
409
|
-
};
|
|
410
|
-
export const de_CreateEndpointCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const data = await parseBody(output.body, context);
|
|
415
|
-
let contents = {};
|
|
416
|
-
contents = _json(data);
|
|
417
|
-
const response = {
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
...contents,
|
|
420
|
-
};
|
|
421
|
-
return response;
|
|
422
|
-
};
|
|
423
|
-
export const de_CreateEventBusCommand = async (output, context) => {
|
|
424
|
-
if (output.statusCode >= 300) {
|
|
425
|
-
return de_CommandError(output, context);
|
|
426
|
-
}
|
|
427
|
-
const data = await parseBody(output.body, context);
|
|
428
|
-
let contents = {};
|
|
429
|
-
contents = _json(data);
|
|
430
|
-
const response = {
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
...contents,
|
|
433
|
-
};
|
|
434
|
-
return response;
|
|
435
|
-
};
|
|
436
|
-
export const de_CreatePartnerEventSourceCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode >= 300) {
|
|
438
|
-
return de_CommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const data = await parseBody(output.body, context);
|
|
441
|
-
let contents = {};
|
|
442
|
-
contents = _json(data);
|
|
443
|
-
const response = {
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
...contents,
|
|
446
|
-
};
|
|
447
|
-
return response;
|
|
448
|
-
};
|
|
449
|
-
export const de_DeactivateEventSourceCommand = async (output, context) => {
|
|
450
|
-
if (output.statusCode >= 300) {
|
|
451
|
-
return de_CommandError(output, context);
|
|
452
|
-
}
|
|
453
|
-
await collectBody(output.body, context);
|
|
454
|
-
const response = {
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
};
|
|
457
|
-
return response;
|
|
458
|
-
};
|
|
459
|
-
export const de_DeauthorizeConnectionCommand = async (output, context) => {
|
|
460
|
-
if (output.statusCode >= 300) {
|
|
461
|
-
return de_CommandError(output, context);
|
|
462
|
-
}
|
|
463
|
-
const data = await parseBody(output.body, context);
|
|
464
|
-
let contents = {};
|
|
465
|
-
contents = de_DeauthorizeConnectionResponse(data, context);
|
|
466
|
-
const response = {
|
|
467
|
-
$metadata: deserializeMetadata(output),
|
|
468
|
-
...contents,
|
|
469
|
-
};
|
|
470
|
-
return response;
|
|
471
|
-
};
|
|
472
|
-
export const de_DeleteApiDestinationCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const data = await parseBody(output.body, context);
|
|
477
|
-
let contents = {};
|
|
478
|
-
contents = _json(data);
|
|
479
|
-
const response = {
|
|
480
|
-
$metadata: deserializeMetadata(output),
|
|
481
|
-
...contents,
|
|
482
|
-
};
|
|
483
|
-
return response;
|
|
484
|
-
};
|
|
485
|
-
export const de_DeleteArchiveCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode >= 300) {
|
|
487
|
-
return de_CommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const data = await parseBody(output.body, context);
|
|
490
|
-
let contents = {};
|
|
491
|
-
contents = _json(data);
|
|
492
|
-
const response = {
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
...contents,
|
|
495
|
-
};
|
|
496
|
-
return response;
|
|
497
|
-
};
|
|
498
|
-
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode >= 300) {
|
|
500
|
-
return de_CommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const data = await parseBody(output.body, context);
|
|
503
|
-
let contents = {};
|
|
504
|
-
contents = de_DeleteConnectionResponse(data, context);
|
|
505
|
-
const response = {
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
...contents,
|
|
508
|
-
};
|
|
509
|
-
return response;
|
|
510
|
-
};
|
|
511
|
-
export const de_DeleteEndpointCommand = async (output, context) => {
|
|
512
|
-
if (output.statusCode >= 300) {
|
|
513
|
-
return de_CommandError(output, context);
|
|
514
|
-
}
|
|
515
|
-
const data = await parseBody(output.body, context);
|
|
516
|
-
let contents = {};
|
|
517
|
-
contents = _json(data);
|
|
518
|
-
const response = {
|
|
519
|
-
$metadata: deserializeMetadata(output),
|
|
520
|
-
...contents,
|
|
521
|
-
};
|
|
522
|
-
return response;
|
|
523
|
-
};
|
|
524
|
-
export const de_DeleteEventBusCommand = async (output, context) => {
|
|
525
|
-
if (output.statusCode >= 300) {
|
|
526
|
-
return de_CommandError(output, context);
|
|
527
|
-
}
|
|
528
|
-
await collectBody(output.body, context);
|
|
529
|
-
const response = {
|
|
530
|
-
$metadata: deserializeMetadata(output),
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
};
|
|
534
|
-
export const de_DeletePartnerEventSourceCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
await collectBody(output.body, context);
|
|
539
|
-
const response = {
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
};
|
|
542
|
-
return response;
|
|
543
|
-
};
|
|
544
|
-
export const de_DeleteRuleCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode >= 300) {
|
|
546
|
-
return de_CommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
await collectBody(output.body, context);
|
|
549
|
-
const response = {
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
};
|
|
552
|
-
return response;
|
|
553
|
-
};
|
|
554
|
-
export const de_DescribeApiDestinationCommand = async (output, context) => {
|
|
555
|
-
if (output.statusCode >= 300) {
|
|
556
|
-
return de_CommandError(output, context);
|
|
557
|
-
}
|
|
558
|
-
const data = await parseBody(output.body, context);
|
|
559
|
-
let contents = {};
|
|
560
|
-
contents = de_DescribeApiDestinationResponse(data, context);
|
|
561
|
-
const response = {
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
...contents,
|
|
564
|
-
};
|
|
565
|
-
return response;
|
|
566
|
-
};
|
|
567
|
-
export const de_DescribeArchiveCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode >= 300) {
|
|
569
|
-
return de_CommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
const data = await parseBody(output.body, context);
|
|
572
|
-
let contents = {};
|
|
573
|
-
contents = de_DescribeArchiveResponse(data, context);
|
|
574
|
-
const response = {
|
|
575
|
-
$metadata: deserializeMetadata(output),
|
|
576
|
-
...contents,
|
|
577
|
-
};
|
|
578
|
-
return response;
|
|
579
|
-
};
|
|
580
|
-
export const de_DescribeConnectionCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode >= 300) {
|
|
582
|
-
return de_CommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const data = await parseBody(output.body, context);
|
|
585
|
-
let contents = {};
|
|
586
|
-
contents = de_DescribeConnectionResponse(data, context);
|
|
587
|
-
const response = {
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
...contents,
|
|
590
|
-
};
|
|
591
|
-
return response;
|
|
592
|
-
};
|
|
593
|
-
export const de_DescribeEndpointCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode >= 300) {
|
|
595
|
-
return de_CommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const data = await parseBody(output.body, context);
|
|
598
|
-
let contents = {};
|
|
599
|
-
contents = de_DescribeEndpointResponse(data, context);
|
|
600
|
-
const response = {
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
...contents,
|
|
603
|
-
};
|
|
604
|
-
return response;
|
|
605
|
-
};
|
|
606
|
-
export const de_DescribeEventBusCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const data = await parseBody(output.body, context);
|
|
611
|
-
let contents = {};
|
|
612
|
-
contents = de_DescribeEventBusResponse(data, context);
|
|
613
|
-
const response = {
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
...contents,
|
|
616
|
-
};
|
|
617
|
-
return response;
|
|
618
|
-
};
|
|
619
|
-
export const de_DescribeEventSourceCommand = async (output, context) => {
|
|
620
|
-
if (output.statusCode >= 300) {
|
|
621
|
-
return de_CommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const data = await parseBody(output.body, context);
|
|
624
|
-
let contents = {};
|
|
625
|
-
contents = de_DescribeEventSourceResponse(data, context);
|
|
626
|
-
const response = {
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
...contents,
|
|
629
|
-
};
|
|
630
|
-
return response;
|
|
631
|
-
};
|
|
632
|
-
export const de_DescribePartnerEventSourceCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const data = await parseBody(output.body, context);
|
|
637
|
-
let contents = {};
|
|
638
|
-
contents = _json(data);
|
|
639
|
-
const response = {
|
|
640
|
-
$metadata: deserializeMetadata(output),
|
|
641
|
-
...contents,
|
|
642
|
-
};
|
|
643
|
-
return response;
|
|
644
|
-
};
|
|
645
|
-
export const de_DescribeReplayCommand = async (output, context) => {
|
|
646
|
-
if (output.statusCode >= 300) {
|
|
647
|
-
return de_CommandError(output, context);
|
|
648
|
-
}
|
|
649
|
-
const data = await parseBody(output.body, context);
|
|
650
|
-
let contents = {};
|
|
651
|
-
contents = de_DescribeReplayResponse(data, context);
|
|
652
|
-
const response = {
|
|
653
|
-
$metadata: deserializeMetadata(output),
|
|
654
|
-
...contents,
|
|
655
|
-
};
|
|
656
|
-
return response;
|
|
657
|
-
};
|
|
658
|
-
export const de_DescribeRuleCommand = async (output, context) => {
|
|
659
|
-
if (output.statusCode >= 300) {
|
|
660
|
-
return de_CommandError(output, context);
|
|
661
|
-
}
|
|
662
|
-
const data = await parseBody(output.body, context);
|
|
663
|
-
let contents = {};
|
|
664
|
-
contents = _json(data);
|
|
665
|
-
const response = {
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
...contents,
|
|
668
|
-
};
|
|
669
|
-
return response;
|
|
670
|
-
};
|
|
671
|
-
export const de_DisableRuleCommand = async (output, context) => {
|
|
672
|
-
if (output.statusCode >= 300) {
|
|
673
|
-
return de_CommandError(output, context);
|
|
674
|
-
}
|
|
675
|
-
await collectBody(output.body, context);
|
|
676
|
-
const response = {
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
};
|
|
679
|
-
return response;
|
|
680
|
-
};
|
|
681
|
-
export const de_EnableRuleCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode >= 300) {
|
|
683
|
-
return de_CommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
await collectBody(output.body, context);
|
|
686
|
-
const response = {
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
689
|
-
return response;
|
|
690
|
-
};
|
|
691
|
-
export const de_ListApiDestinationsCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const data = await parseBody(output.body, context);
|
|
696
|
-
let contents = {};
|
|
697
|
-
contents = de_ListApiDestinationsResponse(data, context);
|
|
698
|
-
const response = {
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
...contents,
|
|
701
|
-
};
|
|
702
|
-
return response;
|
|
703
|
-
};
|
|
704
|
-
export const de_ListArchivesCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode >= 300) {
|
|
706
|
-
return de_CommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const data = await parseBody(output.body, context);
|
|
709
|
-
let contents = {};
|
|
710
|
-
contents = de_ListArchivesResponse(data, context);
|
|
711
|
-
const response = {
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
...contents,
|
|
714
|
-
};
|
|
715
|
-
return response;
|
|
716
|
-
};
|
|
717
|
-
export const de_ListConnectionsCommand = async (output, context) => {
|
|
718
|
-
if (output.statusCode >= 300) {
|
|
719
|
-
return de_CommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const data = await parseBody(output.body, context);
|
|
722
|
-
let contents = {};
|
|
723
|
-
contents = de_ListConnectionsResponse(data, context);
|
|
724
|
-
const response = {
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
...contents,
|
|
727
|
-
};
|
|
728
|
-
return response;
|
|
729
|
-
};
|
|
730
|
-
export const de_ListEndpointsCommand = async (output, context) => {
|
|
731
|
-
if (output.statusCode >= 300) {
|
|
732
|
-
return de_CommandError(output, context);
|
|
733
|
-
}
|
|
734
|
-
const data = await parseBody(output.body, context);
|
|
735
|
-
let contents = {};
|
|
736
|
-
contents = de_ListEndpointsResponse(data, context);
|
|
737
|
-
const response = {
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
...contents,
|
|
740
|
-
};
|
|
741
|
-
return response;
|
|
742
|
-
};
|
|
743
|
-
export const de_ListEventBusesCommand = async (output, context) => {
|
|
744
|
-
if (output.statusCode >= 300) {
|
|
745
|
-
return de_CommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const data = await parseBody(output.body, context);
|
|
748
|
-
let contents = {};
|
|
749
|
-
contents = de_ListEventBusesResponse(data, context);
|
|
750
|
-
const response = {
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
...contents,
|
|
753
|
-
};
|
|
754
|
-
return response;
|
|
755
|
-
};
|
|
756
|
-
export const de_ListEventSourcesCommand = async (output, context) => {
|
|
757
|
-
if (output.statusCode >= 300) {
|
|
758
|
-
return de_CommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const data = await parseBody(output.body, context);
|
|
761
|
-
let contents = {};
|
|
762
|
-
contents = de_ListEventSourcesResponse(data, context);
|
|
763
|
-
const response = {
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
...contents,
|
|
766
|
-
};
|
|
767
|
-
return response;
|
|
768
|
-
};
|
|
769
|
-
export const de_ListPartnerEventSourceAccountsCommand = async (output, context) => {
|
|
770
|
-
if (output.statusCode >= 300) {
|
|
771
|
-
return de_CommandError(output, context);
|
|
772
|
-
}
|
|
773
|
-
const data = await parseBody(output.body, context);
|
|
774
|
-
let contents = {};
|
|
775
|
-
contents = de_ListPartnerEventSourceAccountsResponse(data, context);
|
|
776
|
-
const response = {
|
|
777
|
-
$metadata: deserializeMetadata(output),
|
|
778
|
-
...contents,
|
|
779
|
-
};
|
|
780
|
-
return response;
|
|
781
|
-
};
|
|
782
|
-
export const de_ListPartnerEventSourcesCommand = async (output, context) => {
|
|
783
|
-
if (output.statusCode >= 300) {
|
|
784
|
-
return de_CommandError(output, context);
|
|
785
|
-
}
|
|
786
|
-
const data = await parseBody(output.body, context);
|
|
787
|
-
let contents = {};
|
|
788
|
-
contents = _json(data);
|
|
789
|
-
const response = {
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
...contents,
|
|
792
|
-
};
|
|
793
|
-
return response;
|
|
794
|
-
};
|
|
795
|
-
export const de_ListReplaysCommand = async (output, context) => {
|
|
796
|
-
if (output.statusCode >= 300) {
|
|
797
|
-
return de_CommandError(output, context);
|
|
798
|
-
}
|
|
799
|
-
const data = await parseBody(output.body, context);
|
|
800
|
-
let contents = {};
|
|
801
|
-
contents = de_ListReplaysResponse(data, context);
|
|
802
|
-
const response = {
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
...contents,
|
|
805
|
-
};
|
|
806
|
-
return response;
|
|
807
|
-
};
|
|
808
|
-
export const de_ListRuleNamesByTargetCommand = async (output, context) => {
|
|
809
|
-
if (output.statusCode >= 300) {
|
|
810
|
-
return de_CommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const data = await parseBody(output.body, context);
|
|
813
|
-
let contents = {};
|
|
814
|
-
contents = _json(data);
|
|
815
|
-
const response = {
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
...contents,
|
|
818
|
-
};
|
|
819
|
-
return response;
|
|
820
|
-
};
|
|
821
|
-
export const de_ListRulesCommand = async (output, context) => {
|
|
822
|
-
if (output.statusCode >= 300) {
|
|
823
|
-
return de_CommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const data = await parseBody(output.body, context);
|
|
826
|
-
let contents = {};
|
|
827
|
-
contents = _json(data);
|
|
828
|
-
const response = {
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
...contents,
|
|
831
|
-
};
|
|
832
|
-
return response;
|
|
833
|
-
};
|
|
834
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
835
|
-
if (output.statusCode >= 300) {
|
|
836
|
-
return de_CommandError(output, context);
|
|
837
|
-
}
|
|
838
|
-
const data = await parseBody(output.body, context);
|
|
839
|
-
let contents = {};
|
|
840
|
-
contents = _json(data);
|
|
841
|
-
const response = {
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
...contents,
|
|
844
|
-
};
|
|
845
|
-
return response;
|
|
846
|
-
};
|
|
847
|
-
export const de_ListTargetsByRuleCommand = async (output, context) => {
|
|
848
|
-
if (output.statusCode >= 300) {
|
|
849
|
-
return de_CommandError(output, context);
|
|
850
|
-
}
|
|
851
|
-
const data = await parseBody(output.body, context);
|
|
852
|
-
let contents = {};
|
|
853
|
-
contents = _json(data);
|
|
854
|
-
const response = {
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
...contents,
|
|
857
|
-
};
|
|
858
|
-
return response;
|
|
859
|
-
};
|
|
860
|
-
export const de_PutEventsCommand = async (output, context) => {
|
|
861
|
-
if (output.statusCode >= 300) {
|
|
862
|
-
return de_CommandError(output, context);
|
|
863
|
-
}
|
|
864
|
-
const data = await parseBody(output.body, context);
|
|
865
|
-
let contents = {};
|
|
866
|
-
contents = _json(data);
|
|
867
|
-
const response = {
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
...contents,
|
|
870
|
-
};
|
|
871
|
-
return response;
|
|
872
|
-
};
|
|
873
|
-
export const de_PutPartnerEventsCommand = async (output, context) => {
|
|
874
|
-
if (output.statusCode >= 300) {
|
|
875
|
-
return de_CommandError(output, context);
|
|
876
|
-
}
|
|
877
|
-
const data = await parseBody(output.body, context);
|
|
878
|
-
let contents = {};
|
|
879
|
-
contents = _json(data);
|
|
880
|
-
const response = {
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
...contents,
|
|
883
|
-
};
|
|
884
|
-
return response;
|
|
885
|
-
};
|
|
886
|
-
export const de_PutPermissionCommand = async (output, context) => {
|
|
887
|
-
if (output.statusCode >= 300) {
|
|
888
|
-
return de_CommandError(output, context);
|
|
889
|
-
}
|
|
890
|
-
await collectBody(output.body, context);
|
|
891
|
-
const response = {
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
};
|
|
894
|
-
return response;
|
|
895
|
-
};
|
|
896
|
-
export const de_PutRuleCommand = async (output, context) => {
|
|
897
|
-
if (output.statusCode >= 300) {
|
|
898
|
-
return de_CommandError(output, context);
|
|
899
|
-
}
|
|
900
|
-
const data = await parseBody(output.body, context);
|
|
901
|
-
let contents = {};
|
|
902
|
-
contents = _json(data);
|
|
903
|
-
const response = {
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
...contents,
|
|
906
|
-
};
|
|
907
|
-
return response;
|
|
908
|
-
};
|
|
909
|
-
export const de_PutTargetsCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode >= 300) {
|
|
911
|
-
return de_CommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const data = await parseBody(output.body, context);
|
|
914
|
-
let contents = {};
|
|
915
|
-
contents = _json(data);
|
|
916
|
-
const response = {
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
...contents,
|
|
919
|
-
};
|
|
920
|
-
return response;
|
|
921
|
-
};
|
|
922
|
-
export const de_RemovePermissionCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
await collectBody(output.body, context);
|
|
927
|
-
const response = {
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
return response;
|
|
931
|
-
};
|
|
932
|
-
export const de_RemoveTargetsCommand = async (output, context) => {
|
|
933
|
-
if (output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const data = await parseBody(output.body, context);
|
|
937
|
-
let contents = {};
|
|
938
|
-
contents = _json(data);
|
|
939
|
-
const response = {
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
...contents,
|
|
942
|
-
};
|
|
943
|
-
return response;
|
|
944
|
-
};
|
|
945
|
-
export const de_StartReplayCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode >= 300) {
|
|
947
|
-
return de_CommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const data = await parseBody(output.body, context);
|
|
950
|
-
let contents = {};
|
|
951
|
-
contents = de_StartReplayResponse(data, context);
|
|
952
|
-
const response = {
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
...contents,
|
|
955
|
-
};
|
|
956
|
-
return response;
|
|
957
|
-
};
|
|
958
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
959
|
-
if (output.statusCode >= 300) {
|
|
960
|
-
return de_CommandError(output, context);
|
|
961
|
-
}
|
|
962
|
-
const data = await parseBody(output.body, context);
|
|
963
|
-
let contents = {};
|
|
964
|
-
contents = _json(data);
|
|
965
|
-
const response = {
|
|
966
|
-
$metadata: deserializeMetadata(output),
|
|
967
|
-
...contents,
|
|
968
|
-
};
|
|
969
|
-
return response;
|
|
970
|
-
};
|
|
971
|
-
export const de_TestEventPatternCommand = async (output, context) => {
|
|
972
|
-
if (output.statusCode >= 300) {
|
|
973
|
-
return de_CommandError(output, context);
|
|
974
|
-
}
|
|
975
|
-
const data = await parseBody(output.body, context);
|
|
976
|
-
let contents = {};
|
|
977
|
-
contents = _json(data);
|
|
978
|
-
const response = {
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
...contents,
|
|
981
|
-
};
|
|
982
|
-
return response;
|
|
983
|
-
};
|
|
984
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode >= 300) {
|
|
986
|
-
return de_CommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const data = await parseBody(output.body, context);
|
|
989
|
-
let contents = {};
|
|
990
|
-
contents = _json(data);
|
|
991
|
-
const response = {
|
|
992
|
-
$metadata: deserializeMetadata(output),
|
|
993
|
-
...contents,
|
|
994
|
-
};
|
|
995
|
-
return response;
|
|
996
|
-
};
|
|
997
|
-
export const de_UpdateApiDestinationCommand = async (output, context) => {
|
|
998
|
-
if (output.statusCode >= 300) {
|
|
999
|
-
return de_CommandError(output, context);
|
|
1000
|
-
}
|
|
1001
|
-
const data = await parseBody(output.body, context);
|
|
1002
|
-
let contents = {};
|
|
1003
|
-
contents = de_UpdateApiDestinationResponse(data, context);
|
|
1004
|
-
const response = {
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
...contents,
|
|
1007
|
-
};
|
|
1008
|
-
return response;
|
|
1009
|
-
};
|
|
1010
|
-
export const de_UpdateArchiveCommand = async (output, context) => {
|
|
1011
|
-
if (output.statusCode >= 300) {
|
|
1012
|
-
return de_CommandError(output, context);
|
|
1013
|
-
}
|
|
1014
|
-
const data = await parseBody(output.body, context);
|
|
1015
|
-
let contents = {};
|
|
1016
|
-
contents = de_UpdateArchiveResponse(data, context);
|
|
1017
|
-
const response = {
|
|
1018
|
-
$metadata: deserializeMetadata(output),
|
|
1019
|
-
...contents,
|
|
1020
|
-
};
|
|
1021
|
-
return response;
|
|
1022
|
-
};
|
|
1023
|
-
export const de_UpdateConnectionCommand = async (output, context) => {
|
|
1024
|
-
if (output.statusCode >= 300) {
|
|
1025
|
-
return de_CommandError(output, context);
|
|
1026
|
-
}
|
|
1027
|
-
const data = await parseBody(output.body, context);
|
|
1028
|
-
let contents = {};
|
|
1029
|
-
contents = de_UpdateConnectionResponse(data, context);
|
|
1030
|
-
const response = {
|
|
1031
|
-
$metadata: deserializeMetadata(output),
|
|
1032
|
-
...contents,
|
|
1033
|
-
};
|
|
1034
|
-
return response;
|
|
1035
|
-
};
|
|
1036
|
-
export const de_UpdateEndpointCommand = async (output, context) => {
|
|
1037
|
-
if (output.statusCode >= 300) {
|
|
1038
|
-
return de_CommandError(output, context);
|
|
1039
|
-
}
|
|
1040
|
-
const data = await parseBody(output.body, context);
|
|
1041
|
-
let contents = {};
|
|
1042
|
-
contents = _json(data);
|
|
1043
|
-
const response = {
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
...contents,
|
|
1046
|
-
};
|
|
1047
|
-
return response;
|
|
1048
|
-
};
|
|
1049
|
-
export const de_UpdateEventBusCommand = async (output, context) => {
|
|
1050
|
-
if (output.statusCode >= 300) {
|
|
1051
|
-
return de_CommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const data = await parseBody(output.body, context);
|
|
1054
|
-
let contents = {};
|
|
1055
|
-
contents = _json(data);
|
|
1056
|
-
const response = {
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
...contents,
|
|
1059
|
-
};
|
|
1060
|
-
return response;
|
|
1061
|
-
};
|
|
1062
|
-
const de_CommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "ConcurrentModificationException":
|
|
1070
|
-
case "com.amazonaws.eventbridge#ConcurrentModificationException":
|
|
1071
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InternalException":
|
|
1073
|
-
case "com.amazonaws.eventbridge#InternalException":
|
|
1074
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InvalidStateException":
|
|
1076
|
-
case "com.amazonaws.eventbridge#InvalidStateException":
|
|
1077
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "OperationDisabledException":
|
|
1079
|
-
case "com.amazonaws.eventbridge#OperationDisabledException":
|
|
1080
|
-
throw await de_OperationDisabledExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ResourceNotFoundException":
|
|
1082
|
-
case "com.amazonaws.eventbridge#ResourceNotFoundException":
|
|
1083
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "IllegalStatusException":
|
|
1085
|
-
case "com.amazonaws.eventbridge#IllegalStatusException":
|
|
1086
|
-
throw await de_IllegalStatusExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "LimitExceededException":
|
|
1088
|
-
case "com.amazonaws.eventbridge#LimitExceededException":
|
|
1089
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ResourceAlreadyExistsException":
|
|
1091
|
-
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException":
|
|
1092
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InvalidEventPatternException":
|
|
1094
|
-
case "com.amazonaws.eventbridge#InvalidEventPatternException":
|
|
1095
|
-
throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "AccessDeniedException":
|
|
1097
|
-
case "com.amazonaws.eventbridge#AccessDeniedException":
|
|
1098
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "ThrottlingException":
|
|
1100
|
-
case "com.amazonaws.eventbridge#ThrottlingException":
|
|
1101
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ManagedRuleException":
|
|
1103
|
-
case "com.amazonaws.eventbridge#ManagedRuleException":
|
|
1104
|
-
throw await de_ManagedRuleExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "PolicyLengthExceededException":
|
|
1106
|
-
case "com.amazonaws.eventbridge#PolicyLengthExceededException":
|
|
1107
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
1108
|
-
default:
|
|
1109
|
-
const parsedBody = parsedOutput.body;
|
|
1110
|
-
return throwDefaultError({
|
|
1111
|
-
output,
|
|
1112
|
-
parsedBody,
|
|
1113
|
-
errorCode,
|
|
1114
|
-
});
|
|
1115
|
-
}
|
|
1116
|
-
};
|
|
1117
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1118
|
-
const body = parsedOutput.body;
|
|
1119
|
-
const deserialized = _json(body);
|
|
1120
|
-
const exception = new AccessDeniedException({
|
|
1121
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1122
|
-
...deserialized,
|
|
1123
|
-
});
|
|
1124
|
-
return __decorateServiceException(exception, body);
|
|
1125
|
-
};
|
|
1126
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1127
|
-
const body = parsedOutput.body;
|
|
1128
|
-
const deserialized = _json(body);
|
|
1129
|
-
const exception = new ConcurrentModificationException({
|
|
1130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1131
|
-
...deserialized,
|
|
1132
|
-
});
|
|
1133
|
-
return __decorateServiceException(exception, body);
|
|
1134
|
-
};
|
|
1135
|
-
const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
|
|
1136
|
-
const body = parsedOutput.body;
|
|
1137
|
-
const deserialized = _json(body);
|
|
1138
|
-
const exception = new IllegalStatusException({
|
|
1139
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1140
|
-
...deserialized,
|
|
1141
|
-
});
|
|
1142
|
-
return __decorateServiceException(exception, body);
|
|
1143
|
-
};
|
|
1144
|
-
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
1145
|
-
const body = parsedOutput.body;
|
|
1146
|
-
const deserialized = _json(body);
|
|
1147
|
-
const exception = new InternalException({
|
|
1148
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1149
|
-
...deserialized,
|
|
1150
|
-
});
|
|
1151
|
-
return __decorateServiceException(exception, body);
|
|
1152
|
-
};
|
|
1153
|
-
const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
|
|
1154
|
-
const body = parsedOutput.body;
|
|
1155
|
-
const deserialized = _json(body);
|
|
1156
|
-
const exception = new InvalidEventPatternException({
|
|
1157
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1158
|
-
...deserialized,
|
|
1159
|
-
});
|
|
1160
|
-
return __decorateServiceException(exception, body);
|
|
1161
|
-
};
|
|
1162
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1163
|
-
const body = parsedOutput.body;
|
|
1164
|
-
const deserialized = _json(body);
|
|
1165
|
-
const exception = new InvalidStateException({
|
|
1166
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1167
|
-
...deserialized,
|
|
1168
|
-
});
|
|
1169
|
-
return __decorateServiceException(exception, body);
|
|
1170
|
-
};
|
|
1171
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1172
|
-
const body = parsedOutput.body;
|
|
1173
|
-
const deserialized = _json(body);
|
|
1174
|
-
const exception = new LimitExceededException({
|
|
1175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
|
-
...deserialized,
|
|
1177
|
-
});
|
|
1178
|
-
return __decorateServiceException(exception, body);
|
|
1179
|
-
};
|
|
1180
|
-
const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
|
|
1181
|
-
const body = parsedOutput.body;
|
|
1182
|
-
const deserialized = _json(body);
|
|
1183
|
-
const exception = new ManagedRuleException({
|
|
1184
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1185
|
-
...deserialized,
|
|
1186
|
-
});
|
|
1187
|
-
return __decorateServiceException(exception, body);
|
|
1188
|
-
};
|
|
1189
|
-
const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1190
|
-
const body = parsedOutput.body;
|
|
1191
|
-
const deserialized = _json(body);
|
|
1192
|
-
const exception = new OperationDisabledException({
|
|
1193
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1194
|
-
...deserialized,
|
|
1195
|
-
});
|
|
1196
|
-
return __decorateServiceException(exception, body);
|
|
1197
|
-
};
|
|
1198
|
-
const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
|
|
1199
|
-
const body = parsedOutput.body;
|
|
1200
|
-
const deserialized = _json(body);
|
|
1201
|
-
const exception = new PolicyLengthExceededException({
|
|
1202
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1203
|
-
...deserialized,
|
|
1204
|
-
});
|
|
1205
|
-
return __decorateServiceException(exception, body);
|
|
1206
|
-
};
|
|
1207
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1208
|
-
const body = parsedOutput.body;
|
|
1209
|
-
const deserialized = _json(body);
|
|
1210
|
-
const exception = new ResourceAlreadyExistsException({
|
|
1211
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1212
|
-
...deserialized,
|
|
1213
|
-
});
|
|
1214
|
-
return __decorateServiceException(exception, body);
|
|
1215
|
-
};
|
|
1216
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1217
|
-
const body = parsedOutput.body;
|
|
1218
|
-
const deserialized = _json(body);
|
|
1219
|
-
const exception = new ResourceNotFoundException({
|
|
1220
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1221
|
-
...deserialized,
|
|
1222
|
-
});
|
|
1223
|
-
return __decorateServiceException(exception, body);
|
|
1224
|
-
};
|
|
1225
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1226
|
-
const body = parsedOutput.body;
|
|
1227
|
-
const deserialized = _json(body);
|
|
1228
|
-
const exception = new ThrottlingException({
|
|
1229
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1230
|
-
...deserialized,
|
|
1231
|
-
});
|
|
1232
|
-
return __decorateServiceException(exception, body);
|
|
1233
|
-
};
|
|
1234
|
-
const se_PutEventsRequest = (input, context) => {
|
|
1235
|
-
return take(input, {
|
|
1236
|
-
EndpointId: [],
|
|
1237
|
-
Entries: (_) => se_PutEventsRequestEntryList(_, context),
|
|
1238
|
-
});
|
|
1239
|
-
};
|
|
1240
|
-
const se_PutEventsRequestEntry = (input, context) => {
|
|
1241
|
-
return take(input, {
|
|
1242
|
-
Detail: [],
|
|
1243
|
-
DetailType: [],
|
|
1244
|
-
EventBusName: [],
|
|
1245
|
-
Resources: _json,
|
|
1246
|
-
Source: [],
|
|
1247
|
-
Time: (_) => _.getTime() / 1_000,
|
|
1248
|
-
TraceHeader: [],
|
|
1249
|
-
});
|
|
1250
|
-
};
|
|
1251
|
-
const se_PutEventsRequestEntryList = (input, context) => {
|
|
1252
|
-
return input
|
|
1253
|
-
.filter((e) => e != null)
|
|
1254
|
-
.map((entry) => {
|
|
1255
|
-
return se_PutEventsRequestEntry(entry, context);
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
const se_PutPartnerEventsRequest = (input, context) => {
|
|
1259
|
-
return take(input, {
|
|
1260
|
-
Entries: (_) => se_PutPartnerEventsRequestEntryList(_, context),
|
|
1261
|
-
});
|
|
1262
|
-
};
|
|
1263
|
-
const se_PutPartnerEventsRequestEntry = (input, context) => {
|
|
1264
|
-
return take(input, {
|
|
1265
|
-
Detail: [],
|
|
1266
|
-
DetailType: [],
|
|
1267
|
-
Resources: _json,
|
|
1268
|
-
Source: [],
|
|
1269
|
-
Time: (_) => _.getTime() / 1_000,
|
|
1270
|
-
});
|
|
1271
|
-
};
|
|
1272
|
-
const se_PutPartnerEventsRequestEntryList = (input, context) => {
|
|
1273
|
-
return input
|
|
1274
|
-
.filter((e) => e != null)
|
|
1275
|
-
.map((entry) => {
|
|
1276
|
-
return se_PutPartnerEventsRequestEntry(entry, context);
|
|
1277
|
-
});
|
|
1278
|
-
};
|
|
1279
|
-
const se_StartReplayRequest = (input, context) => {
|
|
1280
|
-
return take(input, {
|
|
1281
|
-
Description: [],
|
|
1282
|
-
Destination: _json,
|
|
1283
|
-
EventEndTime: (_) => _.getTime() / 1_000,
|
|
1284
|
-
EventSourceArn: [],
|
|
1285
|
-
EventStartTime: (_) => _.getTime() / 1_000,
|
|
1286
|
-
ReplayName: [],
|
|
1287
|
-
});
|
|
1288
|
-
};
|
|
1289
|
-
const de_ApiDestination = (output, context) => {
|
|
1290
|
-
return take(output, {
|
|
1291
|
-
ApiDestinationArn: __expectString,
|
|
1292
|
-
ApiDestinationState: __expectString,
|
|
1293
|
-
ConnectionArn: __expectString,
|
|
1294
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1295
|
-
HttpMethod: __expectString,
|
|
1296
|
-
InvocationEndpoint: __expectString,
|
|
1297
|
-
InvocationRateLimitPerSecond: __expectInt32,
|
|
1298
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1299
|
-
Name: __expectString,
|
|
1300
|
-
});
|
|
1301
|
-
};
|
|
1302
|
-
const de_ApiDestinationResponseList = (output, context) => {
|
|
1303
|
-
const retVal = (output || [])
|
|
1304
|
-
.filter((e) => e != null)
|
|
1305
|
-
.map((entry) => {
|
|
1306
|
-
return de_ApiDestination(entry, context);
|
|
1307
|
-
});
|
|
1308
|
-
return retVal;
|
|
1309
|
-
};
|
|
1310
|
-
const de_Archive = (output, context) => {
|
|
1311
|
-
return take(output, {
|
|
1312
|
-
ArchiveName: __expectString,
|
|
1313
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1314
|
-
EventCount: __expectLong,
|
|
1315
|
-
EventSourceArn: __expectString,
|
|
1316
|
-
RetentionDays: __expectInt32,
|
|
1317
|
-
SizeBytes: __expectLong,
|
|
1318
|
-
State: __expectString,
|
|
1319
|
-
StateReason: __expectString,
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
const de_ArchiveResponseList = (output, context) => {
|
|
1323
|
-
const retVal = (output || [])
|
|
1324
|
-
.filter((e) => e != null)
|
|
1325
|
-
.map((entry) => {
|
|
1326
|
-
return de_Archive(entry, context);
|
|
1327
|
-
});
|
|
1328
|
-
return retVal;
|
|
1329
|
-
};
|
|
1330
|
-
const de_Connection = (output, context) => {
|
|
1331
|
-
return take(output, {
|
|
1332
|
-
AuthorizationType: __expectString,
|
|
1333
|
-
ConnectionArn: __expectString,
|
|
1334
|
-
ConnectionState: __expectString,
|
|
1335
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1336
|
-
LastAuthorizedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1337
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1338
|
-
Name: __expectString,
|
|
1339
|
-
StateReason: __expectString,
|
|
1340
|
-
});
|
|
1341
|
-
};
|
|
1342
|
-
const de_ConnectionResponseList = (output, context) => {
|
|
1343
|
-
const retVal = (output || [])
|
|
1344
|
-
.filter((e) => e != null)
|
|
1345
|
-
.map((entry) => {
|
|
1346
|
-
return de_Connection(entry, context);
|
|
1347
|
-
});
|
|
1348
|
-
return retVal;
|
|
1349
|
-
};
|
|
1350
|
-
const de_CreateApiDestinationResponse = (output, context) => {
|
|
1351
|
-
return take(output, {
|
|
1352
|
-
ApiDestinationArn: __expectString,
|
|
1353
|
-
ApiDestinationState: __expectString,
|
|
1354
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1355
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1356
|
-
});
|
|
1357
|
-
};
|
|
1358
|
-
const de_CreateArchiveResponse = (output, context) => {
|
|
1359
|
-
return take(output, {
|
|
1360
|
-
ArchiveArn: __expectString,
|
|
1361
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1362
|
-
State: __expectString,
|
|
1363
|
-
StateReason: __expectString,
|
|
1364
|
-
});
|
|
1365
|
-
};
|
|
1366
|
-
const de_CreateConnectionResponse = (output, context) => {
|
|
1367
|
-
return take(output, {
|
|
1368
|
-
ConnectionArn: __expectString,
|
|
1369
|
-
ConnectionState: __expectString,
|
|
1370
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1371
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1372
|
-
});
|
|
1373
|
-
};
|
|
1374
|
-
const de_DeauthorizeConnectionResponse = (output, context) => {
|
|
1375
|
-
return take(output, {
|
|
1376
|
-
ConnectionArn: __expectString,
|
|
1377
|
-
ConnectionState: __expectString,
|
|
1378
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1379
|
-
LastAuthorizedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1380
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1381
|
-
});
|
|
1382
|
-
};
|
|
1383
|
-
const de_DeleteConnectionResponse = (output, context) => {
|
|
1384
|
-
return take(output, {
|
|
1385
|
-
ConnectionArn: __expectString,
|
|
1386
|
-
ConnectionState: __expectString,
|
|
1387
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1388
|
-
LastAuthorizedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1389
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1390
|
-
});
|
|
1391
|
-
};
|
|
1392
|
-
const de_DescribeApiDestinationResponse = (output, context) => {
|
|
1393
|
-
return take(output, {
|
|
1394
|
-
ApiDestinationArn: __expectString,
|
|
1395
|
-
ApiDestinationState: __expectString,
|
|
1396
|
-
ConnectionArn: __expectString,
|
|
1397
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1398
|
-
Description: __expectString,
|
|
1399
|
-
HttpMethod: __expectString,
|
|
1400
|
-
InvocationEndpoint: __expectString,
|
|
1401
|
-
InvocationRateLimitPerSecond: __expectInt32,
|
|
1402
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1403
|
-
Name: __expectString,
|
|
1404
|
-
});
|
|
1405
|
-
};
|
|
1406
|
-
const de_DescribeArchiveResponse = (output, context) => {
|
|
1407
|
-
return take(output, {
|
|
1408
|
-
ArchiveArn: __expectString,
|
|
1409
|
-
ArchiveName: __expectString,
|
|
1410
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1411
|
-
Description: __expectString,
|
|
1412
|
-
EventCount: __expectLong,
|
|
1413
|
-
EventPattern: __expectString,
|
|
1414
|
-
EventSourceArn: __expectString,
|
|
1415
|
-
KmsKeyIdentifier: __expectString,
|
|
1416
|
-
RetentionDays: __expectInt32,
|
|
1417
|
-
SizeBytes: __expectLong,
|
|
1418
|
-
State: __expectString,
|
|
1419
|
-
StateReason: __expectString,
|
|
1420
|
-
});
|
|
1421
|
-
};
|
|
1422
|
-
const de_DescribeConnectionResponse = (output, context) => {
|
|
1423
|
-
return take(output, {
|
|
1424
|
-
AuthParameters: _json,
|
|
1425
|
-
AuthorizationType: __expectString,
|
|
1426
|
-
ConnectionArn: __expectString,
|
|
1427
|
-
ConnectionState: __expectString,
|
|
1428
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1429
|
-
Description: __expectString,
|
|
1430
|
-
InvocationConnectivityParameters: _json,
|
|
1431
|
-
KmsKeyIdentifier: __expectString,
|
|
1432
|
-
LastAuthorizedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1433
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1434
|
-
Name: __expectString,
|
|
1435
|
-
SecretArn: __expectString,
|
|
1436
|
-
StateReason: __expectString,
|
|
1437
|
-
});
|
|
1438
|
-
};
|
|
1439
|
-
const de_DescribeEndpointResponse = (output, context) => {
|
|
1440
|
-
return take(output, {
|
|
1441
|
-
Arn: __expectString,
|
|
1442
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1443
|
-
Description: __expectString,
|
|
1444
|
-
EndpointId: __expectString,
|
|
1445
|
-
EndpointUrl: __expectString,
|
|
1446
|
-
EventBuses: _json,
|
|
1447
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1448
|
-
Name: __expectString,
|
|
1449
|
-
ReplicationConfig: _json,
|
|
1450
|
-
RoleArn: __expectString,
|
|
1451
|
-
RoutingConfig: _json,
|
|
1452
|
-
State: __expectString,
|
|
1453
|
-
StateReason: __expectString,
|
|
1454
|
-
});
|
|
1455
|
-
};
|
|
1456
|
-
const de_DescribeEventBusResponse = (output, context) => {
|
|
1457
|
-
return take(output, {
|
|
1458
|
-
Arn: __expectString,
|
|
1459
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1460
|
-
DeadLetterConfig: _json,
|
|
1461
|
-
Description: __expectString,
|
|
1462
|
-
KmsKeyIdentifier: __expectString,
|
|
1463
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1464
|
-
LogConfig: _json,
|
|
1465
|
-
Name: __expectString,
|
|
1466
|
-
Policy: __expectString,
|
|
1467
|
-
});
|
|
1468
|
-
};
|
|
1469
|
-
const de_DescribeEventSourceResponse = (output, context) => {
|
|
1470
|
-
return take(output, {
|
|
1471
|
-
Arn: __expectString,
|
|
1472
|
-
CreatedBy: __expectString,
|
|
1473
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1474
|
-
ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1475
|
-
Name: __expectString,
|
|
1476
|
-
State: __expectString,
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
const de_DescribeReplayResponse = (output, context) => {
|
|
1480
|
-
return take(output, {
|
|
1481
|
-
Description: __expectString,
|
|
1482
|
-
Destination: _json,
|
|
1483
|
-
EventEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1484
|
-
EventLastReplayedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1485
|
-
EventSourceArn: __expectString,
|
|
1486
|
-
EventStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1487
|
-
ReplayArn: __expectString,
|
|
1488
|
-
ReplayEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1489
|
-
ReplayName: __expectString,
|
|
1490
|
-
ReplayStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1491
|
-
State: __expectString,
|
|
1492
|
-
StateReason: __expectString,
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
const de_Endpoint = (output, context) => {
|
|
1496
|
-
return take(output, {
|
|
1497
|
-
Arn: __expectString,
|
|
1498
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1499
|
-
Description: __expectString,
|
|
1500
|
-
EndpointId: __expectString,
|
|
1501
|
-
EndpointUrl: __expectString,
|
|
1502
|
-
EventBuses: _json,
|
|
1503
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1504
|
-
Name: __expectString,
|
|
1505
|
-
ReplicationConfig: _json,
|
|
1506
|
-
RoleArn: __expectString,
|
|
1507
|
-
RoutingConfig: _json,
|
|
1508
|
-
State: __expectString,
|
|
1509
|
-
StateReason: __expectString,
|
|
1510
|
-
});
|
|
1511
|
-
};
|
|
1512
|
-
const de_EndpointList = (output, context) => {
|
|
1513
|
-
const retVal = (output || [])
|
|
1514
|
-
.filter((e) => e != null)
|
|
1515
|
-
.map((entry) => {
|
|
1516
|
-
return de_Endpoint(entry, context);
|
|
1517
|
-
});
|
|
1518
|
-
return retVal;
|
|
1519
|
-
};
|
|
1520
|
-
const de_EventBus = (output, context) => {
|
|
1521
|
-
return take(output, {
|
|
1522
|
-
Arn: __expectString,
|
|
1523
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1524
|
-
Description: __expectString,
|
|
1525
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1526
|
-
Name: __expectString,
|
|
1527
|
-
Policy: __expectString,
|
|
1528
|
-
});
|
|
1529
|
-
};
|
|
1530
|
-
const de_EventBusList = (output, context) => {
|
|
1531
|
-
const retVal = (output || [])
|
|
1532
|
-
.filter((e) => e != null)
|
|
1533
|
-
.map((entry) => {
|
|
1534
|
-
return de_EventBus(entry, context);
|
|
1535
|
-
});
|
|
1536
|
-
return retVal;
|
|
1537
|
-
};
|
|
1538
|
-
const de_EventSource = (output, context) => {
|
|
1539
|
-
return take(output, {
|
|
1540
|
-
Arn: __expectString,
|
|
1541
|
-
CreatedBy: __expectString,
|
|
1542
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1543
|
-
ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1544
|
-
Name: __expectString,
|
|
1545
|
-
State: __expectString,
|
|
1546
|
-
});
|
|
1547
|
-
};
|
|
1548
|
-
const de_EventSourceList = (output, context) => {
|
|
1549
|
-
const retVal = (output || [])
|
|
1550
|
-
.filter((e) => e != null)
|
|
1551
|
-
.map((entry) => {
|
|
1552
|
-
return de_EventSource(entry, context);
|
|
1553
|
-
});
|
|
1554
|
-
return retVal;
|
|
1555
|
-
};
|
|
1556
|
-
const de_ListApiDestinationsResponse = (output, context) => {
|
|
1557
|
-
return take(output, {
|
|
1558
|
-
ApiDestinations: (_) => de_ApiDestinationResponseList(_, context),
|
|
1559
|
-
NextToken: __expectString,
|
|
1560
|
-
});
|
|
1561
|
-
};
|
|
1562
|
-
const de_ListArchivesResponse = (output, context) => {
|
|
1563
|
-
return take(output, {
|
|
1564
|
-
Archives: (_) => de_ArchiveResponseList(_, context),
|
|
1565
|
-
NextToken: __expectString,
|
|
1566
|
-
});
|
|
1567
|
-
};
|
|
1568
|
-
const de_ListConnectionsResponse = (output, context) => {
|
|
1569
|
-
return take(output, {
|
|
1570
|
-
Connections: (_) => de_ConnectionResponseList(_, context),
|
|
1571
|
-
NextToken: __expectString,
|
|
1572
|
-
});
|
|
1573
|
-
};
|
|
1574
|
-
const de_ListEndpointsResponse = (output, context) => {
|
|
1575
|
-
return take(output, {
|
|
1576
|
-
Endpoints: (_) => de_EndpointList(_, context),
|
|
1577
|
-
NextToken: __expectString,
|
|
1578
|
-
});
|
|
1579
|
-
};
|
|
1580
|
-
const de_ListEventBusesResponse = (output, context) => {
|
|
1581
|
-
return take(output, {
|
|
1582
|
-
EventBuses: (_) => de_EventBusList(_, context),
|
|
1583
|
-
NextToken: __expectString,
|
|
1584
|
-
});
|
|
1585
|
-
};
|
|
1586
|
-
const de_ListEventSourcesResponse = (output, context) => {
|
|
1587
|
-
return take(output, {
|
|
1588
|
-
EventSources: (_) => de_EventSourceList(_, context),
|
|
1589
|
-
NextToken: __expectString,
|
|
1590
|
-
});
|
|
1591
|
-
};
|
|
1592
|
-
const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
|
|
1593
|
-
return take(output, {
|
|
1594
|
-
NextToken: __expectString,
|
|
1595
|
-
PartnerEventSourceAccounts: (_) => de_PartnerEventSourceAccountList(_, context),
|
|
1596
|
-
});
|
|
1597
|
-
};
|
|
1598
|
-
const de_ListReplaysResponse = (output, context) => {
|
|
1599
|
-
return take(output, {
|
|
1600
|
-
NextToken: __expectString,
|
|
1601
|
-
Replays: (_) => de_ReplayList(_, context),
|
|
1602
|
-
});
|
|
1603
|
-
};
|
|
1604
|
-
const de_PartnerEventSourceAccount = (output, context) => {
|
|
1605
|
-
return take(output, {
|
|
1606
|
-
Account: __expectString,
|
|
1607
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1608
|
-
ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1609
|
-
State: __expectString,
|
|
1610
|
-
});
|
|
1611
|
-
};
|
|
1612
|
-
const de_PartnerEventSourceAccountList = (output, context) => {
|
|
1613
|
-
const retVal = (output || [])
|
|
1614
|
-
.filter((e) => e != null)
|
|
1615
|
-
.map((entry) => {
|
|
1616
|
-
return de_PartnerEventSourceAccount(entry, context);
|
|
1617
|
-
});
|
|
1618
|
-
return retVal;
|
|
1619
|
-
};
|
|
1620
|
-
const de_Replay = (output, context) => {
|
|
1621
|
-
return take(output, {
|
|
1622
|
-
EventEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1623
|
-
EventLastReplayedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1624
|
-
EventSourceArn: __expectString,
|
|
1625
|
-
EventStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1626
|
-
ReplayEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1627
|
-
ReplayName: __expectString,
|
|
1628
|
-
ReplayStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1629
|
-
State: __expectString,
|
|
1630
|
-
StateReason: __expectString,
|
|
1631
|
-
});
|
|
1632
|
-
};
|
|
1633
|
-
const de_ReplayList = (output, context) => {
|
|
1634
|
-
const retVal = (output || [])
|
|
1635
|
-
.filter((e) => e != null)
|
|
1636
|
-
.map((entry) => {
|
|
1637
|
-
return de_Replay(entry, context);
|
|
1638
|
-
});
|
|
1639
|
-
return retVal;
|
|
1640
|
-
};
|
|
1641
|
-
const de_StartReplayResponse = (output, context) => {
|
|
1642
|
-
return take(output, {
|
|
1643
|
-
ReplayArn: __expectString,
|
|
1644
|
-
ReplayStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1645
|
-
State: __expectString,
|
|
1646
|
-
StateReason: __expectString,
|
|
1647
|
-
});
|
|
1648
|
-
};
|
|
1649
|
-
const de_UpdateApiDestinationResponse = (output, context) => {
|
|
1650
|
-
return take(output, {
|
|
1651
|
-
ApiDestinationArn: __expectString,
|
|
1652
|
-
ApiDestinationState: __expectString,
|
|
1653
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1654
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1655
|
-
});
|
|
1656
|
-
};
|
|
1657
|
-
const de_UpdateArchiveResponse = (output, context) => {
|
|
1658
|
-
return take(output, {
|
|
1659
|
-
ArchiveArn: __expectString,
|
|
1660
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1661
|
-
State: __expectString,
|
|
1662
|
-
StateReason: __expectString,
|
|
1663
|
-
});
|
|
1664
|
-
};
|
|
1665
|
-
const de_UpdateConnectionResponse = (output, context) => {
|
|
1666
|
-
return take(output, {
|
|
1667
|
-
ConnectionArn: __expectString,
|
|
1668
|
-
ConnectionState: __expectString,
|
|
1669
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1670
|
-
LastAuthorizedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1671
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1672
|
-
});
|
|
1673
|
-
};
|
|
1674
|
-
const deserializeMetadata = (output) => ({
|
|
1675
|
-
httpStatusCode: output.statusCode,
|
|
1676
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1677
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1678
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1679
|
-
});
|
|
1680
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1681
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1682
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1683
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1684
|
-
const contents = {
|
|
1685
|
-
protocol,
|
|
1686
|
-
hostname,
|
|
1687
|
-
port,
|
|
1688
|
-
method: "POST",
|
|
1689
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1690
|
-
headers,
|
|
1691
|
-
};
|
|
1692
|
-
if (resolvedHostname !== undefined) {
|
|
1693
|
-
contents.hostname = resolvedHostname;
|
|
1694
|
-
}
|
|
1695
|
-
if (body !== undefined) {
|
|
1696
|
-
contents.body = body;
|
|
1697
|
-
}
|
|
1698
|
-
return new __HttpRequest(contents);
|
|
1699
|
-
};
|
|
1700
|
-
function sharedHeaders(operation) {
|
|
1701
|
-
return {
|
|
1702
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1703
|
-
"x-amz-target": `AWSEvents.${operation}`,
|
|
1704
|
-
};
|
|
1705
|
-
}
|