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