@aws-sdk/client-notifications 3.928.0 → 3.930.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 +1809 -1672
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/NotificationsClient.js +2 -0
- package/dist-es/commands/AssociateChannelCommand.js +3 -9
- package/dist-es/commands/AssociateManagedNotificationAccountContactCommand.js +3 -9
- package/dist-es/commands/AssociateManagedNotificationAdditionalChannelCommand.js +3 -9
- package/dist-es/commands/AssociateOrganizationalUnitCommand.js +3 -9
- package/dist-es/commands/CreateEventRuleCommand.js +3 -9
- package/dist-es/commands/CreateNotificationConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteEventRuleCommand.js +3 -9
- package/dist-es/commands/DeleteNotificationConfigurationCommand.js +3 -9
- package/dist-es/commands/DeregisterNotificationHubCommand.js +3 -9
- package/dist-es/commands/DisableNotificationsAccessForOrganizationCommand.js +3 -9
- package/dist-es/commands/DisassociateChannelCommand.js +3 -9
- package/dist-es/commands/DisassociateManagedNotificationAccountContactCommand.js +3 -9
- package/dist-es/commands/DisassociateManagedNotificationAdditionalChannelCommand.js +3 -9
- package/dist-es/commands/DisassociateOrganizationalUnitCommand.js +3 -9
- package/dist-es/commands/EnableNotificationsAccessForOrganizationCommand.js +3 -9
- package/dist-es/commands/GetEventRuleCommand.js +3 -9
- package/dist-es/commands/GetManagedNotificationChildEventCommand.js +3 -9
- package/dist-es/commands/GetManagedNotificationConfigurationCommand.js +3 -9
- package/dist-es/commands/GetManagedNotificationEventCommand.js +3 -9
- package/dist-es/commands/GetNotificationConfigurationCommand.js +3 -9
- package/dist-es/commands/GetNotificationEventCommand.js +3 -9
- package/dist-es/commands/GetNotificationsAccessForOrganizationCommand.js +3 -9
- package/dist-es/commands/ListChannelsCommand.js +3 -9
- package/dist-es/commands/ListEventRulesCommand.js +3 -9
- package/dist-es/commands/ListManagedNotificationChannelAssociationsCommand.js +3 -9
- package/dist-es/commands/ListManagedNotificationChildEventsCommand.js +3 -9
- package/dist-es/commands/ListManagedNotificationConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListManagedNotificationEventsCommand.js +3 -9
- package/dist-es/commands/ListMemberAccountsCommand.js +3 -9
- package/dist-es/commands/ListNotificationConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListNotificationEventsCommand.js +3 -9
- package/dist-es/commands/ListNotificationHubsCommand.js +3 -9
- package/dist-es/commands/ListOrganizationalUnitsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RegisterNotificationHubCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateEventRuleCommand.js +3 -9
- package/dist-es/commands/UpdateNotificationConfigurationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1736 -0
- package/dist-types/NotificationsClient.d.ts +10 -1
- 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 +188 -0
- package/dist-types/ts3.4/NotificationsClient.d.ts +4 -0
- 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 +194 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -1396
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -353
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -473
|
@@ -1,1396 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { NotificationsServiceException as __BaseException } from "../models/NotificationsServiceException";
|
|
6
|
-
export const se_AssociateChannelCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/channels/associate/{arn}");
|
|
12
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
notificationConfigurationArn: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_AssociateManagedNotificationAccountContactCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/contacts/associate-managed-notification/{contactIdentifier}");
|
|
26
|
-
b.p("contactIdentifier", () => input.contactIdentifier, "{contactIdentifier}", false);
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
managedNotificationConfigurationArn: [],
|
|
30
|
-
}));
|
|
31
|
-
b.m("PUT").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_AssociateManagedNotificationAdditionalChannelCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {
|
|
37
|
-
"content-type": "application/json",
|
|
38
|
-
};
|
|
39
|
-
b.bp("/channels/associate-managed-notification/{channelArn}");
|
|
40
|
-
b.p("channelArn", () => input.channelArn, "{channelArn}", false);
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(take(input, {
|
|
43
|
-
managedNotificationConfigurationArn: [],
|
|
44
|
-
}));
|
|
45
|
-
b.m("PUT").h(headers).b(body);
|
|
46
|
-
return b.build();
|
|
47
|
-
};
|
|
48
|
-
export const se_AssociateOrganizationalUnitCommand = async (input, context) => {
|
|
49
|
-
const b = rb(input, context);
|
|
50
|
-
const headers = {
|
|
51
|
-
"content-type": "application/json",
|
|
52
|
-
};
|
|
53
|
-
b.bp("/organizational-units/associate/{organizationalUnitId}");
|
|
54
|
-
b.p("organizationalUnitId", () => input.organizationalUnitId, "{organizationalUnitId}", false);
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(take(input, {
|
|
57
|
-
notificationConfigurationArn: [],
|
|
58
|
-
}));
|
|
59
|
-
b.m("POST").h(headers).b(body);
|
|
60
|
-
return b.build();
|
|
61
|
-
};
|
|
62
|
-
export const se_CreateEventRuleCommand = async (input, context) => {
|
|
63
|
-
const b = rb(input, context);
|
|
64
|
-
const headers = {
|
|
65
|
-
"content-type": "application/json",
|
|
66
|
-
};
|
|
67
|
-
b.bp("/event-rules");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(take(input, {
|
|
70
|
-
eventPattern: [],
|
|
71
|
-
eventType: [],
|
|
72
|
-
notificationConfigurationArn: [],
|
|
73
|
-
regions: (_) => _json(_),
|
|
74
|
-
source: [],
|
|
75
|
-
}));
|
|
76
|
-
b.m("POST").h(headers).b(body);
|
|
77
|
-
return b.build();
|
|
78
|
-
};
|
|
79
|
-
export const se_CreateNotificationConfigurationCommand = async (input, context) => {
|
|
80
|
-
const b = rb(input, context);
|
|
81
|
-
const headers = {
|
|
82
|
-
"content-type": "application/json",
|
|
83
|
-
};
|
|
84
|
-
b.bp("/notification-configurations");
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify(take(input, {
|
|
87
|
-
aggregationDuration: [],
|
|
88
|
-
description: [],
|
|
89
|
-
name: [],
|
|
90
|
-
tags: (_) => _json(_),
|
|
91
|
-
}));
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_DeleteEventRuleCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/event-rules/{arn}");
|
|
99
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
100
|
-
let body;
|
|
101
|
-
b.m("DELETE").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_DeleteNotificationConfigurationCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {};
|
|
107
|
-
b.bp("/notification-configurations/{arn}");
|
|
108
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
109
|
-
let body;
|
|
110
|
-
b.m("DELETE").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
export const se_DeregisterNotificationHubCommand = async (input, context) => {
|
|
114
|
-
const b = rb(input, context);
|
|
115
|
-
const headers = {};
|
|
116
|
-
b.bp("/notification-hubs/{notificationHubRegion}");
|
|
117
|
-
b.p("notificationHubRegion", () => input.notificationHubRegion, "{notificationHubRegion}", false);
|
|
118
|
-
let body;
|
|
119
|
-
b.m("DELETE").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
export const se_DisableNotificationsAccessForOrganizationCommand = async (input, context) => {
|
|
123
|
-
const b = rb(input, context);
|
|
124
|
-
const headers = {};
|
|
125
|
-
b.bp("/organization/access");
|
|
126
|
-
let body;
|
|
127
|
-
b.m("DELETE").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_DisassociateChannelCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {
|
|
133
|
-
"content-type": "application/json",
|
|
134
|
-
};
|
|
135
|
-
b.bp("/channels/disassociate/{arn}");
|
|
136
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(take(input, {
|
|
139
|
-
notificationConfigurationArn: [],
|
|
140
|
-
}));
|
|
141
|
-
b.m("POST").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
export const se_DisassociateManagedNotificationAccountContactCommand = async (input, context) => {
|
|
145
|
-
const b = rb(input, context);
|
|
146
|
-
const headers = {
|
|
147
|
-
"content-type": "application/json",
|
|
148
|
-
};
|
|
149
|
-
b.bp("/contacts/disassociate-managed-notification/{contactIdentifier}");
|
|
150
|
-
b.p("contactIdentifier", () => input.contactIdentifier, "{contactIdentifier}", false);
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify(take(input, {
|
|
153
|
-
managedNotificationConfigurationArn: [],
|
|
154
|
-
}));
|
|
155
|
-
b.m("PUT").h(headers).b(body);
|
|
156
|
-
return b.build();
|
|
157
|
-
};
|
|
158
|
-
export const se_DisassociateManagedNotificationAdditionalChannelCommand = async (input, context) => {
|
|
159
|
-
const b = rb(input, context);
|
|
160
|
-
const headers = {
|
|
161
|
-
"content-type": "application/json",
|
|
162
|
-
};
|
|
163
|
-
b.bp("/channels/disassociate-managed-notification/{channelArn}");
|
|
164
|
-
b.p("channelArn", () => input.channelArn, "{channelArn}", false);
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(take(input, {
|
|
167
|
-
managedNotificationConfigurationArn: [],
|
|
168
|
-
}));
|
|
169
|
-
b.m("PUT").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
export const se_DisassociateOrganizationalUnitCommand = async (input, context) => {
|
|
173
|
-
const b = rb(input, context);
|
|
174
|
-
const headers = {
|
|
175
|
-
"content-type": "application/json",
|
|
176
|
-
};
|
|
177
|
-
b.bp("/organizational-units/disassociate/{organizationalUnitId}");
|
|
178
|
-
b.p("organizationalUnitId", () => input.organizationalUnitId, "{organizationalUnitId}", false);
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify(take(input, {
|
|
181
|
-
notificationConfigurationArn: [],
|
|
182
|
-
}));
|
|
183
|
-
b.m("POST").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
export const se_EnableNotificationsAccessForOrganizationCommand = async (input, context) => {
|
|
187
|
-
const b = rb(input, context);
|
|
188
|
-
const headers = {};
|
|
189
|
-
b.bp("/organization/access");
|
|
190
|
-
let body;
|
|
191
|
-
b.m("POST").h(headers).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
export const se_GetEventRuleCommand = async (input, context) => {
|
|
195
|
-
const b = rb(input, context);
|
|
196
|
-
const headers = {};
|
|
197
|
-
b.bp("/event-rules/{arn}");
|
|
198
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
199
|
-
let body;
|
|
200
|
-
b.m("GET").h(headers).b(body);
|
|
201
|
-
return b.build();
|
|
202
|
-
};
|
|
203
|
-
export const se_GetManagedNotificationChildEventCommand = async (input, context) => {
|
|
204
|
-
const b = rb(input, context);
|
|
205
|
-
const headers = {};
|
|
206
|
-
b.bp("/managed-notification-child-events/{arn}");
|
|
207
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
208
|
-
const query = map({
|
|
209
|
-
[_l]: [, input[_l]],
|
|
210
|
-
});
|
|
211
|
-
let body;
|
|
212
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
export const se_GetManagedNotificationConfigurationCommand = async (input, context) => {
|
|
216
|
-
const b = rb(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/managed-notification-configurations/{arn}");
|
|
219
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
220
|
-
let body;
|
|
221
|
-
b.m("GET").h(headers).b(body);
|
|
222
|
-
return b.build();
|
|
223
|
-
};
|
|
224
|
-
export const se_GetManagedNotificationEventCommand = async (input, context) => {
|
|
225
|
-
const b = rb(input, context);
|
|
226
|
-
const headers = {};
|
|
227
|
-
b.bp("/managed-notification-events/{arn}");
|
|
228
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
229
|
-
const query = map({
|
|
230
|
-
[_l]: [, input[_l]],
|
|
231
|
-
});
|
|
232
|
-
let body;
|
|
233
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
export const se_GetNotificationConfigurationCommand = async (input, context) => {
|
|
237
|
-
const b = rb(input, context);
|
|
238
|
-
const headers = {};
|
|
239
|
-
b.bp("/notification-configurations/{arn}");
|
|
240
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
241
|
-
let body;
|
|
242
|
-
b.m("GET").h(headers).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const se_GetNotificationEventCommand = async (input, context) => {
|
|
246
|
-
const b = rb(input, context);
|
|
247
|
-
const headers = {};
|
|
248
|
-
b.bp("/notification-events/{arn}");
|
|
249
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
250
|
-
const query = map({
|
|
251
|
-
[_l]: [, input[_l]],
|
|
252
|
-
});
|
|
253
|
-
let body;
|
|
254
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
255
|
-
return b.build();
|
|
256
|
-
};
|
|
257
|
-
export const se_GetNotificationsAccessForOrganizationCommand = async (input, context) => {
|
|
258
|
-
const b = rb(input, context);
|
|
259
|
-
const headers = {};
|
|
260
|
-
b.bp("/organization/access");
|
|
261
|
-
let body;
|
|
262
|
-
b.m("GET").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
export const se_ListChannelsCommand = async (input, context) => {
|
|
266
|
-
const b = rb(input, context);
|
|
267
|
-
const headers = {};
|
|
268
|
-
b.bp("/channels");
|
|
269
|
-
const query = map({
|
|
270
|
-
[_nCA]: [, __expectNonNull(input[_nCA], `notificationConfigurationArn`)],
|
|
271
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
272
|
-
[_nT]: [, input[_nT]],
|
|
273
|
-
});
|
|
274
|
-
let body;
|
|
275
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
276
|
-
return b.build();
|
|
277
|
-
};
|
|
278
|
-
export const se_ListEventRulesCommand = async (input, context) => {
|
|
279
|
-
const b = rb(input, context);
|
|
280
|
-
const headers = {};
|
|
281
|
-
b.bp("/event-rules");
|
|
282
|
-
const query = map({
|
|
283
|
-
[_nCA]: [, __expectNonNull(input[_nCA], `notificationConfigurationArn`)],
|
|
284
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
285
|
-
[_nT]: [, input[_nT]],
|
|
286
|
-
});
|
|
287
|
-
let body;
|
|
288
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
289
|
-
return b.build();
|
|
290
|
-
};
|
|
291
|
-
export const se_ListManagedNotificationChannelAssociationsCommand = async (input, context) => {
|
|
292
|
-
const b = rb(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/channels/list-managed-notification-channel-associations");
|
|
295
|
-
const query = map({
|
|
296
|
-
[_mNCA]: [, __expectNonNull(input[_mNCA], `managedNotificationConfigurationArn`)],
|
|
297
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
298
|
-
[_nT]: [, input[_nT]],
|
|
299
|
-
});
|
|
300
|
-
let body;
|
|
301
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
export const se_ListManagedNotificationChildEventsCommand = async (input, context) => {
|
|
305
|
-
const b = rb(input, context);
|
|
306
|
-
const headers = {};
|
|
307
|
-
b.bp("/list-managed-notification-child-events/{aggregateManagedNotificationEventArn}");
|
|
308
|
-
b.p("aggregateManagedNotificationEventArn", () => input.aggregateManagedNotificationEventArn, "{aggregateManagedNotificationEventArn}", false);
|
|
309
|
-
const query = map({
|
|
310
|
-
[_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
|
|
311
|
-
[_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
|
|
312
|
-
[_l]: [, input[_l]],
|
|
313
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
314
|
-
[_rA]: [, input[_rA]],
|
|
315
|
-
[_oUI]: [, input[_oUI]],
|
|
316
|
-
[_nT]: [, input[_nT]],
|
|
317
|
-
});
|
|
318
|
-
let body;
|
|
319
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
320
|
-
return b.build();
|
|
321
|
-
};
|
|
322
|
-
export const se_ListManagedNotificationConfigurationsCommand = async (input, context) => {
|
|
323
|
-
const b = rb(input, context);
|
|
324
|
-
const headers = {};
|
|
325
|
-
b.bp("/managed-notification-configurations");
|
|
326
|
-
const query = map({
|
|
327
|
-
[_cI]: [, input[_cI]],
|
|
328
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
329
|
-
[_nT]: [, input[_nT]],
|
|
330
|
-
});
|
|
331
|
-
let body;
|
|
332
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
export const se_ListManagedNotificationEventsCommand = async (input, context) => {
|
|
336
|
-
const b = rb(input, context);
|
|
337
|
-
const headers = {};
|
|
338
|
-
b.bp("/managed-notification-events");
|
|
339
|
-
const query = map({
|
|
340
|
-
[_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
|
|
341
|
-
[_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
|
|
342
|
-
[_l]: [, input[_l]],
|
|
343
|
-
[_s]: [, input[_s]],
|
|
344
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
345
|
-
[_nT]: [, input[_nT]],
|
|
346
|
-
[_oUI]: [, input[_oUI]],
|
|
347
|
-
[_rA]: [, input[_rA]],
|
|
348
|
-
});
|
|
349
|
-
let body;
|
|
350
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
351
|
-
return b.build();
|
|
352
|
-
};
|
|
353
|
-
export const se_ListMemberAccountsCommand = async (input, context) => {
|
|
354
|
-
const b = rb(input, context);
|
|
355
|
-
const headers = {};
|
|
356
|
-
b.bp("/list-member-accounts");
|
|
357
|
-
const query = map({
|
|
358
|
-
[_nCA]: [, __expectNonNull(input[_nCA], `notificationConfigurationArn`)],
|
|
359
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
360
|
-
[_nT]: [, input[_nT]],
|
|
361
|
-
[_mA]: [, input[_mA]],
|
|
362
|
-
[_st]: [, input[_st]],
|
|
363
|
-
[_oUI]: [, input[_oUI]],
|
|
364
|
-
});
|
|
365
|
-
let body;
|
|
366
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
367
|
-
return b.build();
|
|
368
|
-
};
|
|
369
|
-
export const se_ListNotificationConfigurationsCommand = async (input, context) => {
|
|
370
|
-
const b = rb(input, context);
|
|
371
|
-
const headers = {};
|
|
372
|
-
b.bp("/notification-configurations");
|
|
373
|
-
const query = map({
|
|
374
|
-
[_eRS]: [, input[_eRS]],
|
|
375
|
-
[_cA]: [, input[_cA]],
|
|
376
|
-
[_st]: [, input[_st]],
|
|
377
|
-
[_su]: [, input[_su]],
|
|
378
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
379
|
-
[_nT]: [, input[_nT]],
|
|
380
|
-
});
|
|
381
|
-
let body;
|
|
382
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
383
|
-
return b.build();
|
|
384
|
-
};
|
|
385
|
-
export const se_ListNotificationEventsCommand = async (input, context) => {
|
|
386
|
-
const b = rb(input, context);
|
|
387
|
-
const headers = {};
|
|
388
|
-
b.bp("/notification-events");
|
|
389
|
-
const query = map({
|
|
390
|
-
[_sT]: [() => input.startTime !== void 0, () => __serializeDateTime(input[_sT]).toString()],
|
|
391
|
-
[_eT]: [() => input.endTime !== void 0, () => __serializeDateTime(input[_eT]).toString()],
|
|
392
|
-
[_l]: [, input[_l]],
|
|
393
|
-
[_s]: [, input[_s]],
|
|
394
|
-
[_iCE]: [() => input.includeChildEvents !== void 0, () => input[_iCE].toString()],
|
|
395
|
-
[_aNEA]: [, input[_aNEA]],
|
|
396
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
397
|
-
[_nT]: [, input[_nT]],
|
|
398
|
-
[_oUI]: [, input[_oUI]],
|
|
399
|
-
});
|
|
400
|
-
let body;
|
|
401
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
402
|
-
return b.build();
|
|
403
|
-
};
|
|
404
|
-
export const se_ListNotificationHubsCommand = async (input, context) => {
|
|
405
|
-
const b = rb(input, context);
|
|
406
|
-
const headers = {};
|
|
407
|
-
b.bp("/notification-hubs");
|
|
408
|
-
const query = map({
|
|
409
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
410
|
-
[_nT]: [, input[_nT]],
|
|
411
|
-
});
|
|
412
|
-
let body;
|
|
413
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
414
|
-
return b.build();
|
|
415
|
-
};
|
|
416
|
-
export const se_ListOrganizationalUnitsCommand = async (input, context) => {
|
|
417
|
-
const b = rb(input, context);
|
|
418
|
-
const headers = {};
|
|
419
|
-
b.bp("/organizational-units");
|
|
420
|
-
const query = map({
|
|
421
|
-
[_nCA]: [, __expectNonNull(input[_nCA], `notificationConfigurationArn`)],
|
|
422
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
423
|
-
[_nT]: [, input[_nT]],
|
|
424
|
-
});
|
|
425
|
-
let body;
|
|
426
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
427
|
-
return b.build();
|
|
428
|
-
};
|
|
429
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
430
|
-
const b = rb(input, context);
|
|
431
|
-
const headers = {};
|
|
432
|
-
b.bp("/tags/{arn}");
|
|
433
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
434
|
-
let body;
|
|
435
|
-
b.m("GET").h(headers).b(body);
|
|
436
|
-
return b.build();
|
|
437
|
-
};
|
|
438
|
-
export const se_RegisterNotificationHubCommand = async (input, context) => {
|
|
439
|
-
const b = rb(input, context);
|
|
440
|
-
const headers = {
|
|
441
|
-
"content-type": "application/json",
|
|
442
|
-
};
|
|
443
|
-
b.bp("/notification-hubs");
|
|
444
|
-
let body;
|
|
445
|
-
body = JSON.stringify(take(input, {
|
|
446
|
-
notificationHubRegion: [],
|
|
447
|
-
}));
|
|
448
|
-
b.m("POST").h(headers).b(body);
|
|
449
|
-
return b.build();
|
|
450
|
-
};
|
|
451
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
452
|
-
const b = rb(input, context);
|
|
453
|
-
const headers = {
|
|
454
|
-
"content-type": "application/json",
|
|
455
|
-
};
|
|
456
|
-
b.bp("/tags/{arn}");
|
|
457
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
458
|
-
let body;
|
|
459
|
-
body = JSON.stringify(take(input, {
|
|
460
|
-
tags: (_) => _json(_),
|
|
461
|
-
}));
|
|
462
|
-
b.m("POST").h(headers).b(body);
|
|
463
|
-
return b.build();
|
|
464
|
-
};
|
|
465
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
466
|
-
const b = rb(input, context);
|
|
467
|
-
const headers = {};
|
|
468
|
-
b.bp("/tags/{arn}");
|
|
469
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
470
|
-
const query = map({
|
|
471
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
472
|
-
});
|
|
473
|
-
let body;
|
|
474
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
475
|
-
return b.build();
|
|
476
|
-
};
|
|
477
|
-
export const se_UpdateEventRuleCommand = async (input, context) => {
|
|
478
|
-
const b = rb(input, context);
|
|
479
|
-
const headers = {
|
|
480
|
-
"content-type": "application/json",
|
|
481
|
-
};
|
|
482
|
-
b.bp("/event-rules/{arn}");
|
|
483
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
484
|
-
let body;
|
|
485
|
-
body = JSON.stringify(take(input, {
|
|
486
|
-
eventPattern: [],
|
|
487
|
-
regions: (_) => _json(_),
|
|
488
|
-
}));
|
|
489
|
-
b.m("PUT").h(headers).b(body);
|
|
490
|
-
return b.build();
|
|
491
|
-
};
|
|
492
|
-
export const se_UpdateNotificationConfigurationCommand = async (input, context) => {
|
|
493
|
-
const b = rb(input, context);
|
|
494
|
-
const headers = {
|
|
495
|
-
"content-type": "application/json",
|
|
496
|
-
};
|
|
497
|
-
b.bp("/notification-configurations/{arn}");
|
|
498
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
499
|
-
let body;
|
|
500
|
-
body = JSON.stringify(take(input, {
|
|
501
|
-
aggregationDuration: [],
|
|
502
|
-
description: [],
|
|
503
|
-
name: [],
|
|
504
|
-
}));
|
|
505
|
-
b.m("PUT").h(headers).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
};
|
|
508
|
-
export const de_AssociateChannelCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = map({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
await collectBody(output.body, context);
|
|
516
|
-
return contents;
|
|
517
|
-
};
|
|
518
|
-
export const de_AssociateManagedNotificationAccountContactCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
520
|
-
return de_CommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const contents = map({
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
});
|
|
525
|
-
await collectBody(output.body, context);
|
|
526
|
-
return contents;
|
|
527
|
-
};
|
|
528
|
-
export const de_AssociateManagedNotificationAdditionalChannelCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
530
|
-
return de_CommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const contents = map({
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
});
|
|
535
|
-
await collectBody(output.body, context);
|
|
536
|
-
return contents;
|
|
537
|
-
};
|
|
538
|
-
export const de_AssociateOrganizationalUnitCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const contents = map({
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
});
|
|
545
|
-
await collectBody(output.body, context);
|
|
546
|
-
return contents;
|
|
547
|
-
};
|
|
548
|
-
export const de_CreateEventRuleCommand = async (output, context) => {
|
|
549
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
550
|
-
return de_CommandError(output, context);
|
|
551
|
-
}
|
|
552
|
-
const contents = map({
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
});
|
|
555
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
556
|
-
const doc = take(data, {
|
|
557
|
-
arn: __expectString,
|
|
558
|
-
notificationConfigurationArn: __expectString,
|
|
559
|
-
statusSummaryByRegion: _json,
|
|
560
|
-
});
|
|
561
|
-
Object.assign(contents, doc);
|
|
562
|
-
return contents;
|
|
563
|
-
};
|
|
564
|
-
export const de_CreateNotificationConfigurationCommand = async (output, context) => {
|
|
565
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
566
|
-
return de_CommandError(output, context);
|
|
567
|
-
}
|
|
568
|
-
const contents = map({
|
|
569
|
-
$metadata: deserializeMetadata(output),
|
|
570
|
-
});
|
|
571
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
572
|
-
const doc = take(data, {
|
|
573
|
-
arn: __expectString,
|
|
574
|
-
status: __expectString,
|
|
575
|
-
});
|
|
576
|
-
Object.assign(contents, doc);
|
|
577
|
-
return contents;
|
|
578
|
-
};
|
|
579
|
-
export const de_DeleteEventRuleCommand = async (output, context) => {
|
|
580
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
-
return de_CommandError(output, context);
|
|
582
|
-
}
|
|
583
|
-
const contents = map({
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
});
|
|
586
|
-
await collectBody(output.body, context);
|
|
587
|
-
return contents;
|
|
588
|
-
};
|
|
589
|
-
export const de_DeleteNotificationConfigurationCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const contents = map({
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
});
|
|
596
|
-
await collectBody(output.body, context);
|
|
597
|
-
return contents;
|
|
598
|
-
};
|
|
599
|
-
export const de_DeregisterNotificationHubCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const contents = map({
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
});
|
|
606
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
607
|
-
const doc = take(data, {
|
|
608
|
-
notificationHubRegion: __expectString,
|
|
609
|
-
statusSummary: _json,
|
|
610
|
-
});
|
|
611
|
-
Object.assign(contents, doc);
|
|
612
|
-
return contents;
|
|
613
|
-
};
|
|
614
|
-
export const de_DisableNotificationsAccessForOrganizationCommand = async (output, context) => {
|
|
615
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
-
return de_CommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const contents = map({
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
});
|
|
621
|
-
await collectBody(output.body, context);
|
|
622
|
-
return contents;
|
|
623
|
-
};
|
|
624
|
-
export const de_DisassociateChannelCommand = async (output, context) => {
|
|
625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return de_CommandError(output, context);
|
|
627
|
-
}
|
|
628
|
-
const contents = map({
|
|
629
|
-
$metadata: deserializeMetadata(output),
|
|
630
|
-
});
|
|
631
|
-
await collectBody(output.body, context);
|
|
632
|
-
return contents;
|
|
633
|
-
};
|
|
634
|
-
export const de_DisassociateManagedNotificationAccountContactCommand = async (output, context) => {
|
|
635
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
-
return de_CommandError(output, context);
|
|
637
|
-
}
|
|
638
|
-
const contents = map({
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
});
|
|
641
|
-
await collectBody(output.body, context);
|
|
642
|
-
return contents;
|
|
643
|
-
};
|
|
644
|
-
export const de_DisassociateManagedNotificationAdditionalChannelCommand = async (output, context) => {
|
|
645
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
|
-
return de_CommandError(output, context);
|
|
647
|
-
}
|
|
648
|
-
const contents = map({
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
});
|
|
651
|
-
await collectBody(output.body, context);
|
|
652
|
-
return contents;
|
|
653
|
-
};
|
|
654
|
-
export const de_DisassociateOrganizationalUnitCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return de_CommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const contents = map({
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
});
|
|
661
|
-
await collectBody(output.body, context);
|
|
662
|
-
return contents;
|
|
663
|
-
};
|
|
664
|
-
export const de_EnableNotificationsAccessForOrganizationCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const contents = map({
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
});
|
|
671
|
-
await collectBody(output.body, context);
|
|
672
|
-
return contents;
|
|
673
|
-
};
|
|
674
|
-
export const de_GetEventRuleCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const contents = map({
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
});
|
|
681
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
682
|
-
const doc = take(data, {
|
|
683
|
-
arn: __expectString,
|
|
684
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
685
|
-
eventPattern: __expectString,
|
|
686
|
-
eventType: __expectString,
|
|
687
|
-
managedRules: _json,
|
|
688
|
-
notificationConfigurationArn: __expectString,
|
|
689
|
-
regions: _json,
|
|
690
|
-
source: __expectString,
|
|
691
|
-
statusSummaryByRegion: _json,
|
|
692
|
-
});
|
|
693
|
-
Object.assign(contents, doc);
|
|
694
|
-
return contents;
|
|
695
|
-
};
|
|
696
|
-
export const de_GetManagedNotificationChildEventCommand = async (output, context) => {
|
|
697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const contents = map({
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
});
|
|
703
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
704
|
-
const doc = take(data, {
|
|
705
|
-
arn: __expectString,
|
|
706
|
-
content: (_) => de_ManagedNotificationChildEvent(_, context),
|
|
707
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
708
|
-
managedNotificationConfigurationArn: __expectString,
|
|
709
|
-
});
|
|
710
|
-
Object.assign(contents, doc);
|
|
711
|
-
return contents;
|
|
712
|
-
};
|
|
713
|
-
export const de_GetManagedNotificationConfigurationCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return de_CommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const contents = map({
|
|
718
|
-
$metadata: deserializeMetadata(output),
|
|
719
|
-
});
|
|
720
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
721
|
-
const doc = take(data, {
|
|
722
|
-
arn: __expectString,
|
|
723
|
-
category: __expectString,
|
|
724
|
-
description: __expectString,
|
|
725
|
-
name: __expectString,
|
|
726
|
-
subCategory: __expectString,
|
|
727
|
-
});
|
|
728
|
-
Object.assign(contents, doc);
|
|
729
|
-
return contents;
|
|
730
|
-
};
|
|
731
|
-
export const de_GetManagedNotificationEventCommand = async (output, context) => {
|
|
732
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
-
return de_CommandError(output, context);
|
|
734
|
-
}
|
|
735
|
-
const contents = map({
|
|
736
|
-
$metadata: deserializeMetadata(output),
|
|
737
|
-
});
|
|
738
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
739
|
-
const doc = take(data, {
|
|
740
|
-
arn: __expectString,
|
|
741
|
-
content: (_) => de_ManagedNotificationEvent(_, context),
|
|
742
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
743
|
-
managedNotificationConfigurationArn: __expectString,
|
|
744
|
-
});
|
|
745
|
-
Object.assign(contents, doc);
|
|
746
|
-
return contents;
|
|
747
|
-
};
|
|
748
|
-
export const de_GetNotificationConfigurationCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_CommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = map({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = take(data, {
|
|
757
|
-
aggregationDuration: __expectString,
|
|
758
|
-
arn: __expectString,
|
|
759
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
760
|
-
description: __expectString,
|
|
761
|
-
name: __expectString,
|
|
762
|
-
status: __expectString,
|
|
763
|
-
subtype: __expectString,
|
|
764
|
-
});
|
|
765
|
-
Object.assign(contents, doc);
|
|
766
|
-
return contents;
|
|
767
|
-
};
|
|
768
|
-
export const de_GetNotificationEventCommand = async (output, context) => {
|
|
769
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return de_CommandError(output, context);
|
|
771
|
-
}
|
|
772
|
-
const contents = map({
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
});
|
|
775
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
776
|
-
const doc = take(data, {
|
|
777
|
-
arn: __expectString,
|
|
778
|
-
content: (_) => de_NotificationEventSchema(_, context),
|
|
779
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
780
|
-
notificationConfigurationArn: __expectString,
|
|
781
|
-
});
|
|
782
|
-
Object.assign(contents, doc);
|
|
783
|
-
return contents;
|
|
784
|
-
};
|
|
785
|
-
export const de_GetNotificationsAccessForOrganizationCommand = async (output, context) => {
|
|
786
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
787
|
-
return de_CommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const contents = map({
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
});
|
|
792
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
793
|
-
const doc = take(data, {
|
|
794
|
-
notificationsAccessForOrganization: _json,
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
return contents;
|
|
798
|
-
};
|
|
799
|
-
export const de_ListChannelsCommand = async (output, context) => {
|
|
800
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return de_CommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const contents = map({
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
});
|
|
806
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
807
|
-
const doc = take(data, {
|
|
808
|
-
channels: _json,
|
|
809
|
-
nextToken: __expectString,
|
|
810
|
-
});
|
|
811
|
-
Object.assign(contents, doc);
|
|
812
|
-
return contents;
|
|
813
|
-
};
|
|
814
|
-
export const de_ListEventRulesCommand = async (output, context) => {
|
|
815
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
-
return de_CommandError(output, context);
|
|
817
|
-
}
|
|
818
|
-
const contents = map({
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
});
|
|
821
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
822
|
-
const doc = take(data, {
|
|
823
|
-
eventRules: (_) => de_EventRules(_, context),
|
|
824
|
-
nextToken: __expectString,
|
|
825
|
-
});
|
|
826
|
-
Object.assign(contents, doc);
|
|
827
|
-
return contents;
|
|
828
|
-
};
|
|
829
|
-
export const de_ListManagedNotificationChannelAssociationsCommand = async (output, context) => {
|
|
830
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
|
-
return de_CommandError(output, context);
|
|
832
|
-
}
|
|
833
|
-
const contents = map({
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
});
|
|
836
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
837
|
-
const doc = take(data, {
|
|
838
|
-
channelAssociations: _json,
|
|
839
|
-
nextToken: __expectString,
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
};
|
|
844
|
-
export const de_ListManagedNotificationChildEventsCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = map({
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
});
|
|
851
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
852
|
-
const doc = take(data, {
|
|
853
|
-
managedNotificationChildEvents: (_) => de_ManagedNotificationChildEvents(_, context),
|
|
854
|
-
nextToken: __expectString,
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
export const de_ListManagedNotificationConfigurationsCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = map({
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
});
|
|
866
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
867
|
-
const doc = take(data, {
|
|
868
|
-
managedNotificationConfigurations: _json,
|
|
869
|
-
nextToken: __expectString,
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
return contents;
|
|
873
|
-
};
|
|
874
|
-
export const de_ListManagedNotificationEventsCommand = async (output, context) => {
|
|
875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const contents = map({
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
});
|
|
881
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
882
|
-
const doc = take(data, {
|
|
883
|
-
managedNotificationEvents: (_) => de_ManagedNotificationEvents(_, context),
|
|
884
|
-
nextToken: __expectString,
|
|
885
|
-
});
|
|
886
|
-
Object.assign(contents, doc);
|
|
887
|
-
return contents;
|
|
888
|
-
};
|
|
889
|
-
export const de_ListMemberAccountsCommand = async (output, context) => {
|
|
890
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return de_CommandError(output, context);
|
|
892
|
-
}
|
|
893
|
-
const contents = map({
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
});
|
|
896
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
897
|
-
const doc = take(data, {
|
|
898
|
-
memberAccounts: _json,
|
|
899
|
-
nextToken: __expectString,
|
|
900
|
-
});
|
|
901
|
-
Object.assign(contents, doc);
|
|
902
|
-
return contents;
|
|
903
|
-
};
|
|
904
|
-
export const de_ListNotificationConfigurationsCommand = async (output, context) => {
|
|
905
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
|
-
return de_CommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const contents = map({
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
});
|
|
911
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
912
|
-
const doc = take(data, {
|
|
913
|
-
nextToken: __expectString,
|
|
914
|
-
notificationConfigurations: (_) => de_NotificationConfigurations(_, context),
|
|
915
|
-
});
|
|
916
|
-
Object.assign(contents, doc);
|
|
917
|
-
return contents;
|
|
918
|
-
};
|
|
919
|
-
export const de_ListNotificationEventsCommand = async (output, context) => {
|
|
920
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
-
return de_CommandError(output, context);
|
|
922
|
-
}
|
|
923
|
-
const contents = map({
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
});
|
|
926
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
927
|
-
const doc = take(data, {
|
|
928
|
-
nextToken: __expectString,
|
|
929
|
-
notificationEvents: (_) => de_NotificationEvents(_, context),
|
|
930
|
-
});
|
|
931
|
-
Object.assign(contents, doc);
|
|
932
|
-
return contents;
|
|
933
|
-
};
|
|
934
|
-
export const de_ListNotificationHubsCommand = async (output, context) => {
|
|
935
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
936
|
-
return de_CommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const contents = map({
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
});
|
|
941
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
942
|
-
const doc = take(data, {
|
|
943
|
-
nextToken: __expectString,
|
|
944
|
-
notificationHubs: (_) => de_NotificationHubs(_, context),
|
|
945
|
-
});
|
|
946
|
-
Object.assign(contents, doc);
|
|
947
|
-
return contents;
|
|
948
|
-
};
|
|
949
|
-
export const de_ListOrganizationalUnitsCommand = async (output, context) => {
|
|
950
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return de_CommandError(output, context);
|
|
952
|
-
}
|
|
953
|
-
const contents = map({
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
});
|
|
956
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
957
|
-
const doc = take(data, {
|
|
958
|
-
nextToken: __expectString,
|
|
959
|
-
organizationalUnits: _json,
|
|
960
|
-
});
|
|
961
|
-
Object.assign(contents, doc);
|
|
962
|
-
return contents;
|
|
963
|
-
};
|
|
964
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
965
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
|
-
return de_CommandError(output, context);
|
|
967
|
-
}
|
|
968
|
-
const contents = map({
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
});
|
|
971
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
972
|
-
const doc = take(data, {
|
|
973
|
-
tags: _json,
|
|
974
|
-
});
|
|
975
|
-
Object.assign(contents, doc);
|
|
976
|
-
return contents;
|
|
977
|
-
};
|
|
978
|
-
export const de_RegisterNotificationHubCommand = async (output, context) => {
|
|
979
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
980
|
-
return de_CommandError(output, context);
|
|
981
|
-
}
|
|
982
|
-
const contents = map({
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
});
|
|
985
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
986
|
-
const doc = take(data, {
|
|
987
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
988
|
-
lastActivationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
989
|
-
notificationHubRegion: __expectString,
|
|
990
|
-
statusSummary: _json,
|
|
991
|
-
});
|
|
992
|
-
Object.assign(contents, doc);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
996
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
997
|
-
return de_CommandError(output, context);
|
|
998
|
-
}
|
|
999
|
-
const contents = map({
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
});
|
|
1002
|
-
await collectBody(output.body, context);
|
|
1003
|
-
return contents;
|
|
1004
|
-
};
|
|
1005
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1006
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
-
return de_CommandError(output, context);
|
|
1008
|
-
}
|
|
1009
|
-
const contents = map({
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
});
|
|
1012
|
-
await collectBody(output.body, context);
|
|
1013
|
-
return contents;
|
|
1014
|
-
};
|
|
1015
|
-
export const de_UpdateEventRuleCommand = async (output, context) => {
|
|
1016
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1017
|
-
return de_CommandError(output, context);
|
|
1018
|
-
}
|
|
1019
|
-
const contents = map({
|
|
1020
|
-
$metadata: deserializeMetadata(output),
|
|
1021
|
-
});
|
|
1022
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1023
|
-
const doc = take(data, {
|
|
1024
|
-
arn: __expectString,
|
|
1025
|
-
notificationConfigurationArn: __expectString,
|
|
1026
|
-
statusSummaryByRegion: _json,
|
|
1027
|
-
});
|
|
1028
|
-
Object.assign(contents, doc);
|
|
1029
|
-
return contents;
|
|
1030
|
-
};
|
|
1031
|
-
export const de_UpdateNotificationConfigurationCommand = async (output, context) => {
|
|
1032
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return de_CommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const contents = map({
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
});
|
|
1038
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1039
|
-
const doc = take(data, {
|
|
1040
|
-
arn: __expectString,
|
|
1041
|
-
});
|
|
1042
|
-
Object.assign(contents, doc);
|
|
1043
|
-
return contents;
|
|
1044
|
-
};
|
|
1045
|
-
const de_CommandError = async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context),
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "AccessDeniedException":
|
|
1053
|
-
case "com.amazonaws.notifications#AccessDeniedException":
|
|
1054
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ConflictException":
|
|
1056
|
-
case "com.amazonaws.notifications#ConflictException":
|
|
1057
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "InternalServerException":
|
|
1059
|
-
case "com.amazonaws.notifications#InternalServerException":
|
|
1060
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ResourceNotFoundException":
|
|
1062
|
-
case "com.amazonaws.notifications#ResourceNotFoundException":
|
|
1063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ServiceQuotaExceededException":
|
|
1065
|
-
case "com.amazonaws.notifications#ServiceQuotaExceededException":
|
|
1066
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.notifications#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "com.amazonaws.notifications#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode,
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
1082
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1083
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1084
|
-
const contents = map({});
|
|
1085
|
-
const data = parsedOutput.body;
|
|
1086
|
-
const doc = take(data, {
|
|
1087
|
-
message: __expectString,
|
|
1088
|
-
});
|
|
1089
|
-
Object.assign(contents, doc);
|
|
1090
|
-
const exception = new AccessDeniedException({
|
|
1091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1092
|
-
...contents,
|
|
1093
|
-
});
|
|
1094
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1095
|
-
};
|
|
1096
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1097
|
-
const contents = map({});
|
|
1098
|
-
const data = parsedOutput.body;
|
|
1099
|
-
const doc = take(data, {
|
|
1100
|
-
message: __expectString,
|
|
1101
|
-
resourceId: __expectString,
|
|
1102
|
-
});
|
|
1103
|
-
Object.assign(contents, doc);
|
|
1104
|
-
const exception = new ConflictException({
|
|
1105
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
|
-
...contents,
|
|
1107
|
-
});
|
|
1108
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1109
|
-
};
|
|
1110
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1111
|
-
const contents = map({});
|
|
1112
|
-
const data = parsedOutput.body;
|
|
1113
|
-
const doc = take(data, {
|
|
1114
|
-
message: __expectString,
|
|
1115
|
-
});
|
|
1116
|
-
Object.assign(contents, doc);
|
|
1117
|
-
const exception = new InternalServerException({
|
|
1118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1119
|
-
...contents,
|
|
1120
|
-
});
|
|
1121
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1122
|
-
};
|
|
1123
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1124
|
-
const contents = map({});
|
|
1125
|
-
const data = parsedOutput.body;
|
|
1126
|
-
const doc = take(data, {
|
|
1127
|
-
message: __expectString,
|
|
1128
|
-
resourceId: __expectString,
|
|
1129
|
-
});
|
|
1130
|
-
Object.assign(contents, doc);
|
|
1131
|
-
const exception = new ResourceNotFoundException({
|
|
1132
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1133
|
-
...contents,
|
|
1134
|
-
});
|
|
1135
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1136
|
-
};
|
|
1137
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1138
|
-
const contents = map({});
|
|
1139
|
-
const data = parsedOutput.body;
|
|
1140
|
-
const doc = take(data, {
|
|
1141
|
-
message: __expectString,
|
|
1142
|
-
quotaCode: __expectString,
|
|
1143
|
-
resourceId: __expectString,
|
|
1144
|
-
resourceType: __expectString,
|
|
1145
|
-
serviceCode: __expectString,
|
|
1146
|
-
});
|
|
1147
|
-
Object.assign(contents, doc);
|
|
1148
|
-
const exception = new ServiceQuotaExceededException({
|
|
1149
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
-
...contents,
|
|
1151
|
-
});
|
|
1152
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1153
|
-
};
|
|
1154
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1155
|
-
const contents = map({
|
|
1156
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1157
|
-
});
|
|
1158
|
-
const data = parsedOutput.body;
|
|
1159
|
-
const doc = take(data, {
|
|
1160
|
-
message: __expectString,
|
|
1161
|
-
quotaCode: __expectString,
|
|
1162
|
-
serviceCode: __expectString,
|
|
1163
|
-
});
|
|
1164
|
-
Object.assign(contents, doc);
|
|
1165
|
-
const exception = new ThrottlingException({
|
|
1166
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1167
|
-
...contents,
|
|
1168
|
-
});
|
|
1169
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1170
|
-
};
|
|
1171
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1172
|
-
const contents = map({});
|
|
1173
|
-
const data = parsedOutput.body;
|
|
1174
|
-
const doc = take(data, {
|
|
1175
|
-
fieldList: _json,
|
|
1176
|
-
message: __expectString,
|
|
1177
|
-
reason: __expectString,
|
|
1178
|
-
});
|
|
1179
|
-
Object.assign(contents, doc);
|
|
1180
|
-
const exception = new ValidationException({
|
|
1181
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1182
|
-
...contents,
|
|
1183
|
-
});
|
|
1184
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1185
|
-
};
|
|
1186
|
-
const de_EventRules = (output, context) => {
|
|
1187
|
-
const retVal = (output || [])
|
|
1188
|
-
.filter((e) => e != null)
|
|
1189
|
-
.map((entry) => {
|
|
1190
|
-
return de_EventRuleStructure(entry, context);
|
|
1191
|
-
});
|
|
1192
|
-
return retVal;
|
|
1193
|
-
};
|
|
1194
|
-
const de_EventRuleStructure = (output, context) => {
|
|
1195
|
-
return take(output, {
|
|
1196
|
-
arn: __expectString,
|
|
1197
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1198
|
-
eventPattern: __expectString,
|
|
1199
|
-
eventType: __expectString,
|
|
1200
|
-
managedRules: _json,
|
|
1201
|
-
notificationConfigurationArn: __expectString,
|
|
1202
|
-
regions: _json,
|
|
1203
|
-
source: __expectString,
|
|
1204
|
-
statusSummaryByRegion: _json,
|
|
1205
|
-
});
|
|
1206
|
-
};
|
|
1207
|
-
const de_ManagedNotificationChildEvent = (output, context) => {
|
|
1208
|
-
return take(output, {
|
|
1209
|
-
aggregateManagedNotificationEventArn: __expectString,
|
|
1210
|
-
aggregationDetail: _json,
|
|
1211
|
-
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1212
|
-
eventStatus: __expectString,
|
|
1213
|
-
id: __expectString,
|
|
1214
|
-
messageComponents: _json,
|
|
1215
|
-
notificationType: __expectString,
|
|
1216
|
-
organizationalUnitId: __expectString,
|
|
1217
|
-
schemaVersion: __expectString,
|
|
1218
|
-
sourceEventDetailUrl: __expectString,
|
|
1219
|
-
sourceEventDetailUrlDisplayText: __expectString,
|
|
1220
|
-
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1221
|
-
textParts: _json,
|
|
1222
|
-
});
|
|
1223
|
-
};
|
|
1224
|
-
const de_ManagedNotificationChildEventOverview = (output, context) => {
|
|
1225
|
-
return take(output, {
|
|
1226
|
-
aggregateManagedNotificationEventArn: __expectString,
|
|
1227
|
-
arn: __expectString,
|
|
1228
|
-
childEvent: _json,
|
|
1229
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1230
|
-
managedNotificationConfigurationArn: __expectString,
|
|
1231
|
-
organizationalUnitId: __expectString,
|
|
1232
|
-
relatedAccount: __expectString,
|
|
1233
|
-
});
|
|
1234
|
-
};
|
|
1235
|
-
const de_ManagedNotificationChildEvents = (output, context) => {
|
|
1236
|
-
const retVal = (output || [])
|
|
1237
|
-
.filter((e) => e != null)
|
|
1238
|
-
.map((entry) => {
|
|
1239
|
-
return de_ManagedNotificationChildEventOverview(entry, context);
|
|
1240
|
-
});
|
|
1241
|
-
return retVal;
|
|
1242
|
-
};
|
|
1243
|
-
const de_ManagedNotificationEvent = (output, context) => {
|
|
1244
|
-
return take(output, {
|
|
1245
|
-
aggregationEventType: __expectString,
|
|
1246
|
-
aggregationSummary: _json,
|
|
1247
|
-
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1248
|
-
eventStatus: __expectString,
|
|
1249
|
-
id: __expectString,
|
|
1250
|
-
messageComponents: _json,
|
|
1251
|
-
notificationType: __expectString,
|
|
1252
|
-
organizationalUnitId: __expectString,
|
|
1253
|
-
schemaVersion: __expectString,
|
|
1254
|
-
sourceEventDetailUrl: __expectString,
|
|
1255
|
-
sourceEventDetailUrlDisplayText: __expectString,
|
|
1256
|
-
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1257
|
-
textParts: _json,
|
|
1258
|
-
});
|
|
1259
|
-
};
|
|
1260
|
-
const de_ManagedNotificationEventOverview = (output, context) => {
|
|
1261
|
-
return take(output, {
|
|
1262
|
-
aggregatedNotificationRegions: _json,
|
|
1263
|
-
aggregationEventType: __expectString,
|
|
1264
|
-
aggregationSummary: _json,
|
|
1265
|
-
arn: __expectString,
|
|
1266
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1267
|
-
managedNotificationConfigurationArn: __expectString,
|
|
1268
|
-
notificationEvent: _json,
|
|
1269
|
-
organizationalUnitId: __expectString,
|
|
1270
|
-
relatedAccount: __expectString,
|
|
1271
|
-
});
|
|
1272
|
-
};
|
|
1273
|
-
const de_ManagedNotificationEvents = (output, context) => {
|
|
1274
|
-
const retVal = (output || [])
|
|
1275
|
-
.filter((e) => e != null)
|
|
1276
|
-
.map((entry) => {
|
|
1277
|
-
return de_ManagedNotificationEventOverview(entry, context);
|
|
1278
|
-
});
|
|
1279
|
-
return retVal;
|
|
1280
|
-
};
|
|
1281
|
-
const de_NotificationConfigurations = (output, context) => {
|
|
1282
|
-
const retVal = (output || [])
|
|
1283
|
-
.filter((e) => e != null)
|
|
1284
|
-
.map((entry) => {
|
|
1285
|
-
return de_NotificationConfigurationStructure(entry, context);
|
|
1286
|
-
});
|
|
1287
|
-
return retVal;
|
|
1288
|
-
};
|
|
1289
|
-
const de_NotificationConfigurationStructure = (output, context) => {
|
|
1290
|
-
return take(output, {
|
|
1291
|
-
aggregationDuration: __expectString,
|
|
1292
|
-
arn: __expectString,
|
|
1293
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1294
|
-
description: __expectString,
|
|
1295
|
-
name: __expectString,
|
|
1296
|
-
status: __expectString,
|
|
1297
|
-
subtype: __expectString,
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
|
-
const de_NotificationEventOverview = (output, context) => {
|
|
1301
|
-
return take(output, {
|
|
1302
|
-
aggregateNotificationEventArn: __expectString,
|
|
1303
|
-
aggregationEventType: __expectString,
|
|
1304
|
-
aggregationSummary: _json,
|
|
1305
|
-
arn: __expectString,
|
|
1306
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1307
|
-
notificationConfigurationArn: __expectString,
|
|
1308
|
-
notificationEvent: _json,
|
|
1309
|
-
organizationalUnitId: __expectString,
|
|
1310
|
-
relatedAccount: __expectString,
|
|
1311
|
-
});
|
|
1312
|
-
};
|
|
1313
|
-
const de_NotificationEvents = (output, context) => {
|
|
1314
|
-
const retVal = (output || [])
|
|
1315
|
-
.filter((e) => e != null)
|
|
1316
|
-
.map((entry) => {
|
|
1317
|
-
return de_NotificationEventOverview(entry, context);
|
|
1318
|
-
});
|
|
1319
|
-
return retVal;
|
|
1320
|
-
};
|
|
1321
|
-
const de_NotificationEventSchema = (output, context) => {
|
|
1322
|
-
return take(output, {
|
|
1323
|
-
aggregateNotificationEventArn: __expectString,
|
|
1324
|
-
aggregationEventType: __expectString,
|
|
1325
|
-
aggregationSummary: _json,
|
|
1326
|
-
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1327
|
-
eventStatus: __expectString,
|
|
1328
|
-
id: __expectString,
|
|
1329
|
-
media: _json,
|
|
1330
|
-
messageComponents: _json,
|
|
1331
|
-
notificationType: __expectString,
|
|
1332
|
-
organizationalUnitId: __expectString,
|
|
1333
|
-
schemaVersion: __expectString,
|
|
1334
|
-
sourceEventDetailUrl: __expectString,
|
|
1335
|
-
sourceEventDetailUrlDisplayText: __expectString,
|
|
1336
|
-
sourceEventMetadata: (_) => de_SourceEventMetadata(_, context),
|
|
1337
|
-
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1338
|
-
textParts: _json,
|
|
1339
|
-
});
|
|
1340
|
-
};
|
|
1341
|
-
const de_NotificationHubOverview = (output, context) => {
|
|
1342
|
-
return take(output, {
|
|
1343
|
-
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1344
|
-
lastActivationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1345
|
-
notificationHubRegion: __expectString,
|
|
1346
|
-
statusSummary: _json,
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
const de_NotificationHubs = (output, context) => {
|
|
1350
|
-
const retVal = (output || [])
|
|
1351
|
-
.filter((e) => e != null)
|
|
1352
|
-
.map((entry) => {
|
|
1353
|
-
return de_NotificationHubOverview(entry, context);
|
|
1354
|
-
});
|
|
1355
|
-
return retVal;
|
|
1356
|
-
};
|
|
1357
|
-
const de_SourceEventMetadata = (output, context) => {
|
|
1358
|
-
return take(output, {
|
|
1359
|
-
eventOccurrenceTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1360
|
-
eventOriginRegion: __expectString,
|
|
1361
|
-
eventType: __expectString,
|
|
1362
|
-
eventTypeVersion: __expectString,
|
|
1363
|
-
relatedAccount: __expectString,
|
|
1364
|
-
relatedResources: _json,
|
|
1365
|
-
source: __expectString,
|
|
1366
|
-
sourceEventId: __expectString,
|
|
1367
|
-
});
|
|
1368
|
-
};
|
|
1369
|
-
const deserializeMetadata = (output) => ({
|
|
1370
|
-
httpStatusCode: output.statusCode,
|
|
1371
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1372
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1373
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1374
|
-
});
|
|
1375
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1376
|
-
const _aNEA = "aggregateNotificationEventArn";
|
|
1377
|
-
const _cA = "channelArn";
|
|
1378
|
-
const _cI = "channelIdentifier";
|
|
1379
|
-
const _eRS = "eventRuleSource";
|
|
1380
|
-
const _eT = "endTime";
|
|
1381
|
-
const _iCE = "includeChildEvents";
|
|
1382
|
-
const _l = "locale";
|
|
1383
|
-
const _mA = "memberAccount";
|
|
1384
|
-
const _mNCA = "managedNotificationConfigurationArn";
|
|
1385
|
-
const _mR = "maxResults";
|
|
1386
|
-
const _nCA = "notificationConfigurationArn";
|
|
1387
|
-
const _nT = "nextToken";
|
|
1388
|
-
const _oUI = "organizationalUnitId";
|
|
1389
|
-
const _rA = "relatedAccount";
|
|
1390
|
-
const _rAS = "retryAfterSeconds";
|
|
1391
|
-
const _ra = "retry-after";
|
|
1392
|
-
const _s = "source";
|
|
1393
|
-
const _sT = "startTime";
|
|
1394
|
-
const _st = "status";
|
|
1395
|
-
const _su = "subtype";
|
|
1396
|
-
const _tK = "tagKeys";
|