@aws-sdk/client-mailmanager 3.893.0 → 3.895.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist-cjs/index.js +4076 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/MailManager.js +0 -131
  4. package/dist-cjs/MailManagerClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateAddonInstanceCommand.js +0 -26
  7. package/dist-cjs/commands/CreateAddonSubscriptionCommand.js +0 -26
  8. package/dist-cjs/commands/CreateAddressListCommand.js +0 -26
  9. package/dist-cjs/commands/CreateAddressListImportJobCommand.js +0 -27
  10. package/dist-cjs/commands/CreateArchiveCommand.js +0 -26
  11. package/dist-cjs/commands/CreateIngressPointCommand.js +0 -27
  12. package/dist-cjs/commands/CreateRelayCommand.js +0 -26
  13. package/dist-cjs/commands/CreateRuleSetCommand.js +0 -27
  14. package/dist-cjs/commands/CreateTrafficPolicyCommand.js +0 -26
  15. package/dist-cjs/commands/DeleteAddonInstanceCommand.js +0 -26
  16. package/dist-cjs/commands/DeleteAddonSubscriptionCommand.js +0 -26
  17. package/dist-cjs/commands/DeleteAddressListCommand.js +0 -26
  18. package/dist-cjs/commands/DeleteArchiveCommand.js +0 -26
  19. package/dist-cjs/commands/DeleteIngressPointCommand.js +0 -26
  20. package/dist-cjs/commands/DeleteRelayCommand.js +0 -26
  21. package/dist-cjs/commands/DeleteRuleSetCommand.js +0 -26
  22. package/dist-cjs/commands/DeleteTrafficPolicyCommand.js +0 -26
  23. package/dist-cjs/commands/DeregisterMemberFromAddressListCommand.js +0 -27
  24. package/dist-cjs/commands/GetAddonInstanceCommand.js +0 -26
  25. package/dist-cjs/commands/GetAddonSubscriptionCommand.js +0 -26
  26. package/dist-cjs/commands/GetAddressListCommand.js +0 -26
  27. package/dist-cjs/commands/GetAddressListImportJobCommand.js +0 -27
  28. package/dist-cjs/commands/GetArchiveCommand.js +0 -26
  29. package/dist-cjs/commands/GetArchiveExportCommand.js +0 -26
  30. package/dist-cjs/commands/GetArchiveMessageCommand.js +0 -27
  31. package/dist-cjs/commands/GetArchiveMessageContentCommand.js +0 -26
  32. package/dist-cjs/commands/GetArchiveSearchCommand.js +0 -26
  33. package/dist-cjs/commands/GetArchiveSearchResultsCommand.js +0 -27
  34. package/dist-cjs/commands/GetIngressPointCommand.js +0 -26
  35. package/dist-cjs/commands/GetMemberOfAddressListCommand.js +0 -27
  36. package/dist-cjs/commands/GetRelayCommand.js +0 -26
  37. package/dist-cjs/commands/GetRuleSetCommand.js +0 -27
  38. package/dist-cjs/commands/GetTrafficPolicyCommand.js +0 -26
  39. package/dist-cjs/commands/ListAddonInstancesCommand.js +0 -26
  40. package/dist-cjs/commands/ListAddonSubscriptionsCommand.js +0 -26
  41. package/dist-cjs/commands/ListAddressListImportJobsCommand.js +0 -27
  42. package/dist-cjs/commands/ListAddressListsCommand.js +0 -26
  43. package/dist-cjs/commands/ListArchiveExportsCommand.js +0 -26
  44. package/dist-cjs/commands/ListArchiveSearchesCommand.js +0 -26
  45. package/dist-cjs/commands/ListArchivesCommand.js +0 -26
  46. package/dist-cjs/commands/ListIngressPointsCommand.js +0 -26
  47. package/dist-cjs/commands/ListMembersOfAddressListCommand.js +0 -27
  48. package/dist-cjs/commands/ListRelaysCommand.js +0 -26
  49. package/dist-cjs/commands/ListRuleSetsCommand.js +0 -26
  50. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  51. package/dist-cjs/commands/ListTrafficPoliciesCommand.js +0 -26
  52. package/dist-cjs/commands/RegisterMemberToAddressListCommand.js +0 -27
  53. package/dist-cjs/commands/StartAddressListImportJobCommand.js +0 -26
  54. package/dist-cjs/commands/StartArchiveExportCommand.js +0 -26
  55. package/dist-cjs/commands/StartArchiveSearchCommand.js +0 -26
  56. package/dist-cjs/commands/StopAddressListImportJobCommand.js +0 -26
  57. package/dist-cjs/commands/StopArchiveExportCommand.js +0 -26
  58. package/dist-cjs/commands/StopArchiveSearchCommand.js +0 -26
  59. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  60. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  61. package/dist-cjs/commands/UpdateArchiveCommand.js +0 -26
  62. package/dist-cjs/commands/UpdateIngressPointCommand.js +0 -27
  63. package/dist-cjs/commands/UpdateRelayCommand.js +0 -26
  64. package/dist-cjs/commands/UpdateRuleSetCommand.js +0 -27
  65. package/dist-cjs/commands/UpdateTrafficPolicyCommand.js +0 -26
  66. package/dist-cjs/commands/index.js +0 -63
  67. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  68. package/dist-cjs/extensionConfiguration.js +0 -2
  69. package/dist-cjs/models/MailManagerServiceException.js +0 -12
  70. package/dist-cjs/models/index.js +0 -4
  71. package/dist-cjs/models/models_0.js +0 -697
  72. package/dist-cjs/pagination/Interfaces.js +0 -2
  73. package/dist-cjs/pagination/ListAddonInstancesPaginator.js +0 -7
  74. package/dist-cjs/pagination/ListAddonSubscriptionsPaginator.js +0 -7
  75. package/dist-cjs/pagination/ListAddressListImportJobsPaginator.js +0 -7
  76. package/dist-cjs/pagination/ListAddressListsPaginator.js +0 -7
  77. package/dist-cjs/pagination/ListArchiveExportsPaginator.js +0 -7
  78. package/dist-cjs/pagination/ListArchiveSearchesPaginator.js +0 -7
  79. package/dist-cjs/pagination/ListArchivesPaginator.js +0 -7
  80. package/dist-cjs/pagination/ListIngressPointsPaginator.js +0 -7
  81. package/dist-cjs/pagination/ListMembersOfAddressListPaginator.js +0 -7
  82. package/dist-cjs/pagination/ListRelaysPaginator.js +0 -7
  83. package/dist-cjs/pagination/ListRuleSetsPaginator.js +0 -7
  84. package/dist-cjs/pagination/ListTrafficPoliciesPaginator.js +0 -7
  85. package/dist-cjs/pagination/index.js +0 -16
  86. package/dist-cjs/protocols/Aws_json1_0.js +0 -2040
  87. package/dist-cjs/runtimeExtensions.js +0 -13
@@ -1,2040 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_StartArchiveSearchCommand = exports.se_StartArchiveExportCommand = exports.se_StartAddressListImportJobCommand = exports.se_RegisterMemberToAddressListCommand = exports.se_ListTrafficPoliciesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleSetsCommand = exports.se_ListRelaysCommand = exports.se_ListMembersOfAddressListCommand = exports.se_ListIngressPointsCommand = exports.se_ListArchiveSearchesCommand = exports.se_ListArchivesCommand = exports.se_ListArchiveExportsCommand = exports.se_ListAddressListsCommand = exports.se_ListAddressListImportJobsCommand = exports.se_ListAddonSubscriptionsCommand = exports.se_ListAddonInstancesCommand = exports.se_GetTrafficPolicyCommand = exports.se_GetRuleSetCommand = exports.se_GetRelayCommand = exports.se_GetMemberOfAddressListCommand = exports.se_GetIngressPointCommand = exports.se_GetArchiveSearchResultsCommand = exports.se_GetArchiveSearchCommand = exports.se_GetArchiveMessageContentCommand = exports.se_GetArchiveMessageCommand = exports.se_GetArchiveExportCommand = exports.se_GetArchiveCommand = exports.se_GetAddressListImportJobCommand = exports.se_GetAddressListCommand = exports.se_GetAddonSubscriptionCommand = exports.se_GetAddonInstanceCommand = exports.se_DeregisterMemberFromAddressListCommand = exports.se_DeleteTrafficPolicyCommand = exports.se_DeleteRuleSetCommand = exports.se_DeleteRelayCommand = exports.se_DeleteIngressPointCommand = exports.se_DeleteArchiveCommand = exports.se_DeleteAddressListCommand = exports.se_DeleteAddonSubscriptionCommand = exports.se_DeleteAddonInstanceCommand = exports.se_CreateTrafficPolicyCommand = exports.se_CreateRuleSetCommand = exports.se_CreateRelayCommand = exports.se_CreateIngressPointCommand = exports.se_CreateArchiveCommand = exports.se_CreateAddressListImportJobCommand = exports.se_CreateAddressListCommand = exports.se_CreateAddonSubscriptionCommand = exports.se_CreateAddonInstanceCommand = void 0;
4
- exports.de_ListArchiveSearchesCommand = exports.de_ListArchivesCommand = exports.de_ListArchiveExportsCommand = exports.de_ListAddressListsCommand = exports.de_ListAddressListImportJobsCommand = exports.de_ListAddonSubscriptionsCommand = exports.de_ListAddonInstancesCommand = exports.de_GetTrafficPolicyCommand = exports.de_GetRuleSetCommand = exports.de_GetRelayCommand = exports.de_GetMemberOfAddressListCommand = exports.de_GetIngressPointCommand = exports.de_GetArchiveSearchResultsCommand = exports.de_GetArchiveSearchCommand = exports.de_GetArchiveMessageContentCommand = exports.de_GetArchiveMessageCommand = exports.de_GetArchiveExportCommand = exports.de_GetArchiveCommand = exports.de_GetAddressListImportJobCommand = exports.de_GetAddressListCommand = exports.de_GetAddonSubscriptionCommand = exports.de_GetAddonInstanceCommand = exports.de_DeregisterMemberFromAddressListCommand = exports.de_DeleteTrafficPolicyCommand = exports.de_DeleteRuleSetCommand = exports.de_DeleteRelayCommand = exports.de_DeleteIngressPointCommand = exports.de_DeleteArchiveCommand = exports.de_DeleteAddressListCommand = exports.de_DeleteAddonSubscriptionCommand = exports.de_DeleteAddonInstanceCommand = exports.de_CreateTrafficPolicyCommand = exports.de_CreateRuleSetCommand = exports.de_CreateRelayCommand = exports.de_CreateIngressPointCommand = exports.de_CreateArchiveCommand = exports.de_CreateAddressListImportJobCommand = exports.de_CreateAddressListCommand = exports.de_CreateAddonSubscriptionCommand = exports.de_CreateAddonInstanceCommand = exports.se_UpdateTrafficPolicyCommand = exports.se_UpdateRuleSetCommand = exports.se_UpdateRelayCommand = exports.se_UpdateIngressPointCommand = exports.se_UpdateArchiveCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopArchiveSearchCommand = exports.se_StopArchiveExportCommand = exports.se_StopAddressListImportJobCommand = void 0;
5
- exports.de_UpdateTrafficPolicyCommand = exports.de_UpdateRuleSetCommand = exports.de_UpdateRelayCommand = exports.de_UpdateIngressPointCommand = exports.de_UpdateArchiveCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopArchiveSearchCommand = exports.de_StopArchiveExportCommand = exports.de_StopAddressListImportJobCommand = exports.de_StartArchiveSearchCommand = exports.de_StartArchiveExportCommand = exports.de_StartAddressListImportJobCommand = exports.de_RegisterMemberToAddressListCommand = exports.de_ListTrafficPoliciesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleSetsCommand = exports.de_ListRelaysCommand = exports.de_ListMembersOfAddressListCommand = exports.de_ListIngressPointsCommand = void 0;
6
- const core_1 = require("@aws-sdk/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
8
- const smithy_client_1 = require("@smithy/smithy-client");
9
- const uuid_1 = require("uuid");
10
- const MailManagerServiceException_1 = require("../models/MailManagerServiceException");
11
- const models_0_1 = require("../models/models_0");
12
- const se_CreateAddonInstanceCommand = async (input, context) => {
13
- const headers = sharedHeaders("CreateAddonInstance");
14
- let body;
15
- body = JSON.stringify(se_CreateAddonInstanceRequest(input, context));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- exports.se_CreateAddonInstanceCommand = se_CreateAddonInstanceCommand;
19
- const se_CreateAddonSubscriptionCommand = async (input, context) => {
20
- const headers = sharedHeaders("CreateAddonSubscription");
21
- let body;
22
- body = JSON.stringify(se_CreateAddonSubscriptionRequest(input, context));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- exports.se_CreateAddonSubscriptionCommand = se_CreateAddonSubscriptionCommand;
26
- const se_CreateAddressListCommand = async (input, context) => {
27
- const headers = sharedHeaders("CreateAddressList");
28
- let body;
29
- body = JSON.stringify(se_CreateAddressListRequest(input, context));
30
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
- };
32
- exports.se_CreateAddressListCommand = se_CreateAddressListCommand;
33
- const se_CreateAddressListImportJobCommand = async (input, context) => {
34
- const headers = sharedHeaders("CreateAddressListImportJob");
35
- let body;
36
- body = JSON.stringify(se_CreateAddressListImportJobRequest(input, context));
37
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
- };
39
- exports.se_CreateAddressListImportJobCommand = se_CreateAddressListImportJobCommand;
40
- const se_CreateArchiveCommand = async (input, context) => {
41
- const headers = sharedHeaders("CreateArchive");
42
- let body;
43
- body = JSON.stringify(se_CreateArchiveRequest(input, context));
44
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
45
- };
46
- exports.se_CreateArchiveCommand = se_CreateArchiveCommand;
47
- const se_CreateIngressPointCommand = async (input, context) => {
48
- const headers = sharedHeaders("CreateIngressPoint");
49
- let body;
50
- body = JSON.stringify(se_CreateIngressPointRequest(input, context));
51
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
- };
53
- exports.se_CreateIngressPointCommand = se_CreateIngressPointCommand;
54
- const se_CreateRelayCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateRelay");
56
- let body;
57
- body = JSON.stringify(se_CreateRelayRequest(input, context));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- exports.se_CreateRelayCommand = se_CreateRelayCommand;
61
- const se_CreateRuleSetCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateRuleSet");
63
- let body;
64
- body = JSON.stringify(se_CreateRuleSetRequest(input, context));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- exports.se_CreateRuleSetCommand = se_CreateRuleSetCommand;
68
- const se_CreateTrafficPolicyCommand = async (input, context) => {
69
- const headers = sharedHeaders("CreateTrafficPolicy");
70
- let body;
71
- body = JSON.stringify(se_CreateTrafficPolicyRequest(input, context));
72
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
73
- };
74
- exports.se_CreateTrafficPolicyCommand = se_CreateTrafficPolicyCommand;
75
- const se_DeleteAddonInstanceCommand = async (input, context) => {
76
- const headers = sharedHeaders("DeleteAddonInstance");
77
- let body;
78
- body = JSON.stringify((0, smithy_client_1._json)(input));
79
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
80
- };
81
- exports.se_DeleteAddonInstanceCommand = se_DeleteAddonInstanceCommand;
82
- const se_DeleteAddonSubscriptionCommand = async (input, context) => {
83
- const headers = sharedHeaders("DeleteAddonSubscription");
84
- let body;
85
- body = JSON.stringify((0, smithy_client_1._json)(input));
86
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
- };
88
- exports.se_DeleteAddonSubscriptionCommand = se_DeleteAddonSubscriptionCommand;
89
- const se_DeleteAddressListCommand = async (input, context) => {
90
- const headers = sharedHeaders("DeleteAddressList");
91
- let body;
92
- body = JSON.stringify((0, smithy_client_1._json)(input));
93
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
- };
95
- exports.se_DeleteAddressListCommand = se_DeleteAddressListCommand;
96
- const se_DeleteArchiveCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteArchive");
98
- let body;
99
- body = JSON.stringify((0, smithy_client_1._json)(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- exports.se_DeleteArchiveCommand = se_DeleteArchiveCommand;
103
- const se_DeleteIngressPointCommand = async (input, context) => {
104
- const headers = sharedHeaders("DeleteIngressPoint");
105
- let body;
106
- body = JSON.stringify((0, smithy_client_1._json)(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- exports.se_DeleteIngressPointCommand = se_DeleteIngressPointCommand;
110
- const se_DeleteRelayCommand = async (input, context) => {
111
- const headers = sharedHeaders("DeleteRelay");
112
- let body;
113
- body = JSON.stringify((0, smithy_client_1._json)(input));
114
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
115
- };
116
- exports.se_DeleteRelayCommand = se_DeleteRelayCommand;
117
- const se_DeleteRuleSetCommand = async (input, context) => {
118
- const headers = sharedHeaders("DeleteRuleSet");
119
- let body;
120
- body = JSON.stringify((0, smithy_client_1._json)(input));
121
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
122
- };
123
- exports.se_DeleteRuleSetCommand = se_DeleteRuleSetCommand;
124
- const se_DeleteTrafficPolicyCommand = async (input, context) => {
125
- const headers = sharedHeaders("DeleteTrafficPolicy");
126
- let body;
127
- body = JSON.stringify((0, smithy_client_1._json)(input));
128
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
129
- };
130
- exports.se_DeleteTrafficPolicyCommand = se_DeleteTrafficPolicyCommand;
131
- const se_DeregisterMemberFromAddressListCommand = async (input, context) => {
132
- const headers = sharedHeaders("DeregisterMemberFromAddressList");
133
- let body;
134
- body = JSON.stringify((0, smithy_client_1._json)(input));
135
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
- };
137
- exports.se_DeregisterMemberFromAddressListCommand = se_DeregisterMemberFromAddressListCommand;
138
- const se_GetAddonInstanceCommand = async (input, context) => {
139
- const headers = sharedHeaders("GetAddonInstance");
140
- let body;
141
- body = JSON.stringify((0, smithy_client_1._json)(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- exports.se_GetAddonInstanceCommand = se_GetAddonInstanceCommand;
145
- const se_GetAddonSubscriptionCommand = async (input, context) => {
146
- const headers = sharedHeaders("GetAddonSubscription");
147
- let body;
148
- body = JSON.stringify((0, smithy_client_1._json)(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- exports.se_GetAddonSubscriptionCommand = se_GetAddonSubscriptionCommand;
152
- const se_GetAddressListCommand = async (input, context) => {
153
- const headers = sharedHeaders("GetAddressList");
154
- let body;
155
- body = JSON.stringify((0, smithy_client_1._json)(input));
156
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
- };
158
- exports.se_GetAddressListCommand = se_GetAddressListCommand;
159
- const se_GetAddressListImportJobCommand = async (input, context) => {
160
- const headers = sharedHeaders("GetAddressListImportJob");
161
- let body;
162
- body = JSON.stringify((0, smithy_client_1._json)(input));
163
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
164
- };
165
- exports.se_GetAddressListImportJobCommand = se_GetAddressListImportJobCommand;
166
- const se_GetArchiveCommand = async (input, context) => {
167
- const headers = sharedHeaders("GetArchive");
168
- let body;
169
- body = JSON.stringify((0, smithy_client_1._json)(input));
170
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
171
- };
172
- exports.se_GetArchiveCommand = se_GetArchiveCommand;
173
- const se_GetArchiveExportCommand = async (input, context) => {
174
- const headers = sharedHeaders("GetArchiveExport");
175
- let body;
176
- body = JSON.stringify((0, smithy_client_1._json)(input));
177
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
- };
179
- exports.se_GetArchiveExportCommand = se_GetArchiveExportCommand;
180
- const se_GetArchiveMessageCommand = async (input, context) => {
181
- const headers = sharedHeaders("GetArchiveMessage");
182
- let body;
183
- body = JSON.stringify((0, smithy_client_1._json)(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- exports.se_GetArchiveMessageCommand = se_GetArchiveMessageCommand;
187
- const se_GetArchiveMessageContentCommand = async (input, context) => {
188
- const headers = sharedHeaders("GetArchiveMessageContent");
189
- let body;
190
- body = JSON.stringify((0, smithy_client_1._json)(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- exports.se_GetArchiveMessageContentCommand = se_GetArchiveMessageContentCommand;
194
- const se_GetArchiveSearchCommand = async (input, context) => {
195
- const headers = sharedHeaders("GetArchiveSearch");
196
- let body;
197
- body = JSON.stringify((0, smithy_client_1._json)(input));
198
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
199
- };
200
- exports.se_GetArchiveSearchCommand = se_GetArchiveSearchCommand;
201
- const se_GetArchiveSearchResultsCommand = async (input, context) => {
202
- const headers = sharedHeaders("GetArchiveSearchResults");
203
- let body;
204
- body = JSON.stringify((0, smithy_client_1._json)(input));
205
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
- };
207
- exports.se_GetArchiveSearchResultsCommand = se_GetArchiveSearchResultsCommand;
208
- const se_GetIngressPointCommand = async (input, context) => {
209
- const headers = sharedHeaders("GetIngressPoint");
210
- let body;
211
- body = JSON.stringify((0, smithy_client_1._json)(input));
212
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
213
- };
214
- exports.se_GetIngressPointCommand = se_GetIngressPointCommand;
215
- const se_GetMemberOfAddressListCommand = async (input, context) => {
216
- const headers = sharedHeaders("GetMemberOfAddressList");
217
- let body;
218
- body = JSON.stringify((0, smithy_client_1._json)(input));
219
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
- };
221
- exports.se_GetMemberOfAddressListCommand = se_GetMemberOfAddressListCommand;
222
- const se_GetRelayCommand = async (input, context) => {
223
- const headers = sharedHeaders("GetRelay");
224
- let body;
225
- body = JSON.stringify((0, smithy_client_1._json)(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- exports.se_GetRelayCommand = se_GetRelayCommand;
229
- const se_GetRuleSetCommand = async (input, context) => {
230
- const headers = sharedHeaders("GetRuleSet");
231
- let body;
232
- body = JSON.stringify((0, smithy_client_1._json)(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- exports.se_GetRuleSetCommand = se_GetRuleSetCommand;
236
- const se_GetTrafficPolicyCommand = async (input, context) => {
237
- const headers = sharedHeaders("GetTrafficPolicy");
238
- let body;
239
- body = JSON.stringify((0, smithy_client_1._json)(input));
240
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
241
- };
242
- exports.se_GetTrafficPolicyCommand = se_GetTrafficPolicyCommand;
243
- const se_ListAddonInstancesCommand = async (input, context) => {
244
- const headers = sharedHeaders("ListAddonInstances");
245
- let body;
246
- body = JSON.stringify((0, smithy_client_1._json)(input));
247
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
- };
249
- exports.se_ListAddonInstancesCommand = se_ListAddonInstancesCommand;
250
- const se_ListAddonSubscriptionsCommand = async (input, context) => {
251
- const headers = sharedHeaders("ListAddonSubscriptions");
252
- let body;
253
- body = JSON.stringify((0, smithy_client_1._json)(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- exports.se_ListAddonSubscriptionsCommand = se_ListAddonSubscriptionsCommand;
257
- const se_ListAddressListImportJobsCommand = async (input, context) => {
258
- const headers = sharedHeaders("ListAddressListImportJobs");
259
- let body;
260
- body = JSON.stringify((0, smithy_client_1._json)(input));
261
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
- };
263
- exports.se_ListAddressListImportJobsCommand = se_ListAddressListImportJobsCommand;
264
- const se_ListAddressListsCommand = async (input, context) => {
265
- const headers = sharedHeaders("ListAddressLists");
266
- let body;
267
- body = JSON.stringify((0, smithy_client_1._json)(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- exports.se_ListAddressListsCommand = se_ListAddressListsCommand;
271
- const se_ListArchiveExportsCommand = async (input, context) => {
272
- const headers = sharedHeaders("ListArchiveExports");
273
- let body;
274
- body = JSON.stringify((0, smithy_client_1._json)(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- exports.se_ListArchiveExportsCommand = se_ListArchiveExportsCommand;
278
- const se_ListArchivesCommand = async (input, context) => {
279
- const headers = sharedHeaders("ListArchives");
280
- let body;
281
- body = JSON.stringify((0, smithy_client_1._json)(input));
282
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
- };
284
- exports.se_ListArchivesCommand = se_ListArchivesCommand;
285
- const se_ListArchiveSearchesCommand = async (input, context) => {
286
- const headers = sharedHeaders("ListArchiveSearches");
287
- let body;
288
- body = JSON.stringify((0, smithy_client_1._json)(input));
289
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
290
- };
291
- exports.se_ListArchiveSearchesCommand = se_ListArchiveSearchesCommand;
292
- const se_ListIngressPointsCommand = async (input, context) => {
293
- const headers = sharedHeaders("ListIngressPoints");
294
- let body;
295
- body = JSON.stringify((0, smithy_client_1._json)(input));
296
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
- };
298
- exports.se_ListIngressPointsCommand = se_ListIngressPointsCommand;
299
- const se_ListMembersOfAddressListCommand = async (input, context) => {
300
- const headers = sharedHeaders("ListMembersOfAddressList");
301
- let body;
302
- body = JSON.stringify((0, smithy_client_1._json)(input));
303
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
- };
305
- exports.se_ListMembersOfAddressListCommand = se_ListMembersOfAddressListCommand;
306
- const se_ListRelaysCommand = async (input, context) => {
307
- const headers = sharedHeaders("ListRelays");
308
- let body;
309
- body = JSON.stringify((0, smithy_client_1._json)(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- exports.se_ListRelaysCommand = se_ListRelaysCommand;
313
- const se_ListRuleSetsCommand = async (input, context) => {
314
- const headers = sharedHeaders("ListRuleSets");
315
- let body;
316
- body = JSON.stringify((0, smithy_client_1._json)(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- exports.se_ListRuleSetsCommand = se_ListRuleSetsCommand;
320
- const se_ListTagsForResourceCommand = async (input, context) => {
321
- const headers = sharedHeaders("ListTagsForResource");
322
- let body;
323
- body = JSON.stringify((0, smithy_client_1._json)(input));
324
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
- };
326
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
327
- const se_ListTrafficPoliciesCommand = async (input, context) => {
328
- const headers = sharedHeaders("ListTrafficPolicies");
329
- let body;
330
- body = JSON.stringify((0, smithy_client_1._json)(input));
331
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
332
- };
333
- exports.se_ListTrafficPoliciesCommand = se_ListTrafficPoliciesCommand;
334
- const se_RegisterMemberToAddressListCommand = async (input, context) => {
335
- const headers = sharedHeaders("RegisterMemberToAddressList");
336
- let body;
337
- body = JSON.stringify((0, smithy_client_1._json)(input));
338
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
- };
340
- exports.se_RegisterMemberToAddressListCommand = se_RegisterMemberToAddressListCommand;
341
- const se_StartAddressListImportJobCommand = async (input, context) => {
342
- const headers = sharedHeaders("StartAddressListImportJob");
343
- let body;
344
- body = JSON.stringify((0, smithy_client_1._json)(input));
345
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
- };
347
- exports.se_StartAddressListImportJobCommand = se_StartAddressListImportJobCommand;
348
- const se_StartArchiveExportCommand = async (input, context) => {
349
- const headers = sharedHeaders("StartArchiveExport");
350
- let body;
351
- body = JSON.stringify(se_StartArchiveExportRequest(input, context));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- exports.se_StartArchiveExportCommand = se_StartArchiveExportCommand;
355
- const se_StartArchiveSearchCommand = async (input, context) => {
356
- const headers = sharedHeaders("StartArchiveSearch");
357
- let body;
358
- body = JSON.stringify(se_StartArchiveSearchRequest(input, context));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- exports.se_StartArchiveSearchCommand = se_StartArchiveSearchCommand;
362
- const se_StopAddressListImportJobCommand = async (input, context) => {
363
- const headers = sharedHeaders("StopAddressListImportJob");
364
- let body;
365
- body = JSON.stringify((0, smithy_client_1._json)(input));
366
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
- };
368
- exports.se_StopAddressListImportJobCommand = se_StopAddressListImportJobCommand;
369
- const se_StopArchiveExportCommand = async (input, context) => {
370
- const headers = sharedHeaders("StopArchiveExport");
371
- let body;
372
- body = JSON.stringify((0, smithy_client_1._json)(input));
373
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
- };
375
- exports.se_StopArchiveExportCommand = se_StopArchiveExportCommand;
376
- const se_StopArchiveSearchCommand = async (input, context) => {
377
- const headers = sharedHeaders("StopArchiveSearch");
378
- let body;
379
- body = JSON.stringify((0, smithy_client_1._json)(input));
380
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
381
- };
382
- exports.se_StopArchiveSearchCommand = se_StopArchiveSearchCommand;
383
- const se_TagResourceCommand = async (input, context) => {
384
- const headers = sharedHeaders("TagResource");
385
- let body;
386
- body = JSON.stringify((0, smithy_client_1._json)(input));
387
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
- };
389
- exports.se_TagResourceCommand = se_TagResourceCommand;
390
- const se_UntagResourceCommand = async (input, context) => {
391
- const headers = sharedHeaders("UntagResource");
392
- let body;
393
- body = JSON.stringify((0, smithy_client_1._json)(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
397
- const se_UpdateArchiveCommand = async (input, context) => {
398
- const headers = sharedHeaders("UpdateArchive");
399
- let body;
400
- body = JSON.stringify((0, smithy_client_1._json)(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- exports.se_UpdateArchiveCommand = se_UpdateArchiveCommand;
404
- const se_UpdateIngressPointCommand = async (input, context) => {
405
- const headers = sharedHeaders("UpdateIngressPoint");
406
- let body;
407
- body = JSON.stringify((0, smithy_client_1._json)(input));
408
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
- };
410
- exports.se_UpdateIngressPointCommand = se_UpdateIngressPointCommand;
411
- const se_UpdateRelayCommand = async (input, context) => {
412
- const headers = sharedHeaders("UpdateRelay");
413
- let body;
414
- body = JSON.stringify((0, smithy_client_1._json)(input));
415
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
416
- };
417
- exports.se_UpdateRelayCommand = se_UpdateRelayCommand;
418
- const se_UpdateRuleSetCommand = async (input, context) => {
419
- const headers = sharedHeaders("UpdateRuleSet");
420
- let body;
421
- body = JSON.stringify(se_UpdateRuleSetRequest(input, context));
422
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
423
- };
424
- exports.se_UpdateRuleSetCommand = se_UpdateRuleSetCommand;
425
- const se_UpdateTrafficPolicyCommand = async (input, context) => {
426
- const headers = sharedHeaders("UpdateTrafficPolicy");
427
- let body;
428
- body = JSON.stringify((0, smithy_client_1._json)(input));
429
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
- };
431
- exports.se_UpdateTrafficPolicyCommand = se_UpdateTrafficPolicyCommand;
432
- const de_CreateAddonInstanceCommand = async (output, context) => {
433
- if (output.statusCode >= 300) {
434
- return de_CommandError(output, context);
435
- }
436
- const data = await (0, core_1.parseJsonBody)(output.body, context);
437
- let contents = {};
438
- contents = (0, smithy_client_1._json)(data);
439
- const response = {
440
- $metadata: deserializeMetadata(output),
441
- ...contents,
442
- };
443
- return response;
444
- };
445
- exports.de_CreateAddonInstanceCommand = de_CreateAddonInstanceCommand;
446
- const de_CreateAddonSubscriptionCommand = async (output, context) => {
447
- if (output.statusCode >= 300) {
448
- return de_CommandError(output, context);
449
- }
450
- const data = await (0, core_1.parseJsonBody)(output.body, context);
451
- let contents = {};
452
- contents = (0, smithy_client_1._json)(data);
453
- const response = {
454
- $metadata: deserializeMetadata(output),
455
- ...contents,
456
- };
457
- return response;
458
- };
459
- exports.de_CreateAddonSubscriptionCommand = de_CreateAddonSubscriptionCommand;
460
- const de_CreateAddressListCommand = async (output, context) => {
461
- if (output.statusCode >= 300) {
462
- return de_CommandError(output, context);
463
- }
464
- const data = await (0, core_1.parseJsonBody)(output.body, context);
465
- let contents = {};
466
- contents = (0, smithy_client_1._json)(data);
467
- const response = {
468
- $metadata: deserializeMetadata(output),
469
- ...contents,
470
- };
471
- return response;
472
- };
473
- exports.de_CreateAddressListCommand = de_CreateAddressListCommand;
474
- const de_CreateAddressListImportJobCommand = async (output, context) => {
475
- if (output.statusCode >= 300) {
476
- return de_CommandError(output, context);
477
- }
478
- const data = await (0, core_1.parseJsonBody)(output.body, context);
479
- let contents = {};
480
- contents = (0, smithy_client_1._json)(data);
481
- const response = {
482
- $metadata: deserializeMetadata(output),
483
- ...contents,
484
- };
485
- return response;
486
- };
487
- exports.de_CreateAddressListImportJobCommand = de_CreateAddressListImportJobCommand;
488
- const de_CreateArchiveCommand = async (output, context) => {
489
- if (output.statusCode >= 300) {
490
- return de_CommandError(output, context);
491
- }
492
- const data = await (0, core_1.parseJsonBody)(output.body, context);
493
- let contents = {};
494
- contents = (0, smithy_client_1._json)(data);
495
- const response = {
496
- $metadata: deserializeMetadata(output),
497
- ...contents,
498
- };
499
- return response;
500
- };
501
- exports.de_CreateArchiveCommand = de_CreateArchiveCommand;
502
- const de_CreateIngressPointCommand = async (output, context) => {
503
- if (output.statusCode >= 300) {
504
- return de_CommandError(output, context);
505
- }
506
- const data = await (0, core_1.parseJsonBody)(output.body, context);
507
- let contents = {};
508
- contents = (0, smithy_client_1._json)(data);
509
- const response = {
510
- $metadata: deserializeMetadata(output),
511
- ...contents,
512
- };
513
- return response;
514
- };
515
- exports.de_CreateIngressPointCommand = de_CreateIngressPointCommand;
516
- const de_CreateRelayCommand = async (output, context) => {
517
- if (output.statusCode >= 300) {
518
- return de_CommandError(output, context);
519
- }
520
- const data = await (0, core_1.parseJsonBody)(output.body, context);
521
- let contents = {};
522
- contents = (0, smithy_client_1._json)(data);
523
- const response = {
524
- $metadata: deserializeMetadata(output),
525
- ...contents,
526
- };
527
- return response;
528
- };
529
- exports.de_CreateRelayCommand = de_CreateRelayCommand;
530
- const de_CreateRuleSetCommand = async (output, context) => {
531
- if (output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const data = await (0, core_1.parseJsonBody)(output.body, context);
535
- let contents = {};
536
- contents = (0, smithy_client_1._json)(data);
537
- const response = {
538
- $metadata: deserializeMetadata(output),
539
- ...contents,
540
- };
541
- return response;
542
- };
543
- exports.de_CreateRuleSetCommand = de_CreateRuleSetCommand;
544
- const de_CreateTrafficPolicyCommand = async (output, context) => {
545
- if (output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const data = await (0, core_1.parseJsonBody)(output.body, context);
549
- let contents = {};
550
- contents = (0, smithy_client_1._json)(data);
551
- const response = {
552
- $metadata: deserializeMetadata(output),
553
- ...contents,
554
- };
555
- return response;
556
- };
557
- exports.de_CreateTrafficPolicyCommand = de_CreateTrafficPolicyCommand;
558
- const de_DeleteAddonInstanceCommand = async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await (0, core_1.parseJsonBody)(output.body, context);
563
- let contents = {};
564
- contents = (0, smithy_client_1._json)(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents,
568
- };
569
- return response;
570
- };
571
- exports.de_DeleteAddonInstanceCommand = de_DeleteAddonInstanceCommand;
572
- const de_DeleteAddonSubscriptionCommand = async (output, context) => {
573
- if (output.statusCode >= 300) {
574
- return de_CommandError(output, context);
575
- }
576
- const data = await (0, core_1.parseJsonBody)(output.body, context);
577
- let contents = {};
578
- contents = (0, smithy_client_1._json)(data);
579
- const response = {
580
- $metadata: deserializeMetadata(output),
581
- ...contents,
582
- };
583
- return response;
584
- };
585
- exports.de_DeleteAddonSubscriptionCommand = de_DeleteAddonSubscriptionCommand;
586
- const de_DeleteAddressListCommand = async (output, context) => {
587
- if (output.statusCode >= 300) {
588
- return de_CommandError(output, context);
589
- }
590
- const data = await (0, core_1.parseJsonBody)(output.body, context);
591
- let contents = {};
592
- contents = (0, smithy_client_1._json)(data);
593
- const response = {
594
- $metadata: deserializeMetadata(output),
595
- ...contents,
596
- };
597
- return response;
598
- };
599
- exports.de_DeleteAddressListCommand = de_DeleteAddressListCommand;
600
- const de_DeleteArchiveCommand = async (output, context) => {
601
- if (output.statusCode >= 300) {
602
- return de_CommandError(output, context);
603
- }
604
- const data = await (0, core_1.parseJsonBody)(output.body, context);
605
- let contents = {};
606
- contents = (0, smithy_client_1._json)(data);
607
- const response = {
608
- $metadata: deserializeMetadata(output),
609
- ...contents,
610
- };
611
- return response;
612
- };
613
- exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
614
- const de_DeleteIngressPointCommand = async (output, context) => {
615
- if (output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const data = await (0, core_1.parseJsonBody)(output.body, context);
619
- let contents = {};
620
- contents = (0, smithy_client_1._json)(data);
621
- const response = {
622
- $metadata: deserializeMetadata(output),
623
- ...contents,
624
- };
625
- return response;
626
- };
627
- exports.de_DeleteIngressPointCommand = de_DeleteIngressPointCommand;
628
- const de_DeleteRelayCommand = async (output, context) => {
629
- if (output.statusCode >= 300) {
630
- return de_CommandError(output, context);
631
- }
632
- const data = await (0, core_1.parseJsonBody)(output.body, context);
633
- let contents = {};
634
- contents = (0, smithy_client_1._json)(data);
635
- const response = {
636
- $metadata: deserializeMetadata(output),
637
- ...contents,
638
- };
639
- return response;
640
- };
641
- exports.de_DeleteRelayCommand = de_DeleteRelayCommand;
642
- const de_DeleteRuleSetCommand = async (output, context) => {
643
- if (output.statusCode >= 300) {
644
- return de_CommandError(output, context);
645
- }
646
- const data = await (0, core_1.parseJsonBody)(output.body, context);
647
- let contents = {};
648
- contents = (0, smithy_client_1._json)(data);
649
- const response = {
650
- $metadata: deserializeMetadata(output),
651
- ...contents,
652
- };
653
- return response;
654
- };
655
- exports.de_DeleteRuleSetCommand = de_DeleteRuleSetCommand;
656
- const de_DeleteTrafficPolicyCommand = async (output, context) => {
657
- if (output.statusCode >= 300) {
658
- return de_CommandError(output, context);
659
- }
660
- const data = await (0, core_1.parseJsonBody)(output.body, context);
661
- let contents = {};
662
- contents = (0, smithy_client_1._json)(data);
663
- const response = {
664
- $metadata: deserializeMetadata(output),
665
- ...contents,
666
- };
667
- return response;
668
- };
669
- exports.de_DeleteTrafficPolicyCommand = de_DeleteTrafficPolicyCommand;
670
- const de_DeregisterMemberFromAddressListCommand = async (output, context) => {
671
- if (output.statusCode >= 300) {
672
- return de_CommandError(output, context);
673
- }
674
- const data = await (0, core_1.parseJsonBody)(output.body, context);
675
- let contents = {};
676
- contents = (0, smithy_client_1._json)(data);
677
- const response = {
678
- $metadata: deserializeMetadata(output),
679
- ...contents,
680
- };
681
- return response;
682
- };
683
- exports.de_DeregisterMemberFromAddressListCommand = de_DeregisterMemberFromAddressListCommand;
684
- const de_GetAddonInstanceCommand = async (output, context) => {
685
- if (output.statusCode >= 300) {
686
- return de_CommandError(output, context);
687
- }
688
- const data = await (0, core_1.parseJsonBody)(output.body, context);
689
- let contents = {};
690
- contents = de_GetAddonInstanceResponse(data, context);
691
- const response = {
692
- $metadata: deserializeMetadata(output),
693
- ...contents,
694
- };
695
- return response;
696
- };
697
- exports.de_GetAddonInstanceCommand = de_GetAddonInstanceCommand;
698
- const de_GetAddonSubscriptionCommand = async (output, context) => {
699
- if (output.statusCode >= 300) {
700
- return de_CommandError(output, context);
701
- }
702
- const data = await (0, core_1.parseJsonBody)(output.body, context);
703
- let contents = {};
704
- contents = de_GetAddonSubscriptionResponse(data, context);
705
- const response = {
706
- $metadata: deserializeMetadata(output),
707
- ...contents,
708
- };
709
- return response;
710
- };
711
- exports.de_GetAddonSubscriptionCommand = de_GetAddonSubscriptionCommand;
712
- const de_GetAddressListCommand = async (output, context) => {
713
- if (output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const data = await (0, core_1.parseJsonBody)(output.body, context);
717
- let contents = {};
718
- contents = de_GetAddressListResponse(data, context);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- ...contents,
722
- };
723
- return response;
724
- };
725
- exports.de_GetAddressListCommand = de_GetAddressListCommand;
726
- const de_GetAddressListImportJobCommand = async (output, context) => {
727
- if (output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const data = await (0, core_1.parseJsonBody)(output.body, context);
731
- let contents = {};
732
- contents = de_GetAddressListImportJobResponse(data, context);
733
- const response = {
734
- $metadata: deserializeMetadata(output),
735
- ...contents,
736
- };
737
- return response;
738
- };
739
- exports.de_GetAddressListImportJobCommand = de_GetAddressListImportJobCommand;
740
- const de_GetArchiveCommand = async (output, context) => {
741
- if (output.statusCode >= 300) {
742
- return de_CommandError(output, context);
743
- }
744
- const data = await (0, core_1.parseJsonBody)(output.body, context);
745
- let contents = {};
746
- contents = de_GetArchiveResponse(data, context);
747
- const response = {
748
- $metadata: deserializeMetadata(output),
749
- ...contents,
750
- };
751
- return response;
752
- };
753
- exports.de_GetArchiveCommand = de_GetArchiveCommand;
754
- const de_GetArchiveExportCommand = async (output, context) => {
755
- if (output.statusCode >= 300) {
756
- return de_CommandError(output, context);
757
- }
758
- const data = await (0, core_1.parseJsonBody)(output.body, context);
759
- let contents = {};
760
- contents = de_GetArchiveExportResponse(data, context);
761
- const response = {
762
- $metadata: deserializeMetadata(output),
763
- ...contents,
764
- };
765
- return response;
766
- };
767
- exports.de_GetArchiveExportCommand = de_GetArchiveExportCommand;
768
- const de_GetArchiveMessageCommand = async (output, context) => {
769
- if (output.statusCode >= 300) {
770
- return de_CommandError(output, context);
771
- }
772
- const data = await (0, core_1.parseJsonBody)(output.body, context);
773
- let contents = {};
774
- contents = de_GetArchiveMessageResponse(data, context);
775
- const response = {
776
- $metadata: deserializeMetadata(output),
777
- ...contents,
778
- };
779
- return response;
780
- };
781
- exports.de_GetArchiveMessageCommand = de_GetArchiveMessageCommand;
782
- const de_GetArchiveMessageContentCommand = async (output, context) => {
783
- if (output.statusCode >= 300) {
784
- return de_CommandError(output, context);
785
- }
786
- const data = await (0, core_1.parseJsonBody)(output.body, context);
787
- let contents = {};
788
- contents = (0, smithy_client_1._json)(data);
789
- const response = {
790
- $metadata: deserializeMetadata(output),
791
- ...contents,
792
- };
793
- return response;
794
- };
795
- exports.de_GetArchiveMessageContentCommand = de_GetArchiveMessageContentCommand;
796
- const de_GetArchiveSearchCommand = async (output, context) => {
797
- if (output.statusCode >= 300) {
798
- return de_CommandError(output, context);
799
- }
800
- const data = await (0, core_1.parseJsonBody)(output.body, context);
801
- let contents = {};
802
- contents = de_GetArchiveSearchResponse(data, context);
803
- const response = {
804
- $metadata: deserializeMetadata(output),
805
- ...contents,
806
- };
807
- return response;
808
- };
809
- exports.de_GetArchiveSearchCommand = de_GetArchiveSearchCommand;
810
- const de_GetArchiveSearchResultsCommand = async (output, context) => {
811
- if (output.statusCode >= 300) {
812
- return de_CommandError(output, context);
813
- }
814
- const data = await (0, core_1.parseJsonBody)(output.body, context);
815
- let contents = {};
816
- contents = de_GetArchiveSearchResultsResponse(data, context);
817
- const response = {
818
- $metadata: deserializeMetadata(output),
819
- ...contents,
820
- };
821
- return response;
822
- };
823
- exports.de_GetArchiveSearchResultsCommand = de_GetArchiveSearchResultsCommand;
824
- const de_GetIngressPointCommand = async (output, context) => {
825
- if (output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const data = await (0, core_1.parseJsonBody)(output.body, context);
829
- let contents = {};
830
- contents = de_GetIngressPointResponse(data, context);
831
- const response = {
832
- $metadata: deserializeMetadata(output),
833
- ...contents,
834
- };
835
- return response;
836
- };
837
- exports.de_GetIngressPointCommand = de_GetIngressPointCommand;
838
- const de_GetMemberOfAddressListCommand = async (output, context) => {
839
- if (output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const data = await (0, core_1.parseJsonBody)(output.body, context);
843
- let contents = {};
844
- contents = de_GetMemberOfAddressListResponse(data, context);
845
- const response = {
846
- $metadata: deserializeMetadata(output),
847
- ...contents,
848
- };
849
- return response;
850
- };
851
- exports.de_GetMemberOfAddressListCommand = de_GetMemberOfAddressListCommand;
852
- const de_GetRelayCommand = async (output, context) => {
853
- if (output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const data = await (0, core_1.parseJsonBody)(output.body, context);
857
- let contents = {};
858
- contents = de_GetRelayResponse(data, context);
859
- const response = {
860
- $metadata: deserializeMetadata(output),
861
- ...contents,
862
- };
863
- return response;
864
- };
865
- exports.de_GetRelayCommand = de_GetRelayCommand;
866
- const de_GetRuleSetCommand = async (output, context) => {
867
- if (output.statusCode >= 300) {
868
- return de_CommandError(output, context);
869
- }
870
- const data = await (0, core_1.parseJsonBody)(output.body, context);
871
- let contents = {};
872
- contents = de_GetRuleSetResponse(data, context);
873
- const response = {
874
- $metadata: deserializeMetadata(output),
875
- ...contents,
876
- };
877
- return response;
878
- };
879
- exports.de_GetRuleSetCommand = de_GetRuleSetCommand;
880
- const de_GetTrafficPolicyCommand = async (output, context) => {
881
- if (output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const data = await (0, core_1.parseJsonBody)(output.body, context);
885
- let contents = {};
886
- contents = de_GetTrafficPolicyResponse(data, context);
887
- const response = {
888
- $metadata: deserializeMetadata(output),
889
- ...contents,
890
- };
891
- return response;
892
- };
893
- exports.de_GetTrafficPolicyCommand = de_GetTrafficPolicyCommand;
894
- const de_ListAddonInstancesCommand = async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await (0, core_1.parseJsonBody)(output.body, context);
899
- let contents = {};
900
- contents = de_ListAddonInstancesResponse(data, context);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents,
904
- };
905
- return response;
906
- };
907
- exports.de_ListAddonInstancesCommand = de_ListAddonInstancesCommand;
908
- const de_ListAddonSubscriptionsCommand = async (output, context) => {
909
- if (output.statusCode >= 300) {
910
- return de_CommandError(output, context);
911
- }
912
- const data = await (0, core_1.parseJsonBody)(output.body, context);
913
- let contents = {};
914
- contents = de_ListAddonSubscriptionsResponse(data, context);
915
- const response = {
916
- $metadata: deserializeMetadata(output),
917
- ...contents,
918
- };
919
- return response;
920
- };
921
- exports.de_ListAddonSubscriptionsCommand = de_ListAddonSubscriptionsCommand;
922
- const de_ListAddressListImportJobsCommand = async (output, context) => {
923
- if (output.statusCode >= 300) {
924
- return de_CommandError(output, context);
925
- }
926
- const data = await (0, core_1.parseJsonBody)(output.body, context);
927
- let contents = {};
928
- contents = de_ListAddressListImportJobsResponse(data, context);
929
- const response = {
930
- $metadata: deserializeMetadata(output),
931
- ...contents,
932
- };
933
- return response;
934
- };
935
- exports.de_ListAddressListImportJobsCommand = de_ListAddressListImportJobsCommand;
936
- const de_ListAddressListsCommand = async (output, context) => {
937
- if (output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const data = await (0, core_1.parseJsonBody)(output.body, context);
941
- let contents = {};
942
- contents = de_ListAddressListsResponse(data, context);
943
- const response = {
944
- $metadata: deserializeMetadata(output),
945
- ...contents,
946
- };
947
- return response;
948
- };
949
- exports.de_ListAddressListsCommand = de_ListAddressListsCommand;
950
- const de_ListArchiveExportsCommand = async (output, context) => {
951
- if (output.statusCode >= 300) {
952
- return de_CommandError(output, context);
953
- }
954
- const data = await (0, core_1.parseJsonBody)(output.body, context);
955
- let contents = {};
956
- contents = de_ListArchiveExportsResponse(data, context);
957
- const response = {
958
- $metadata: deserializeMetadata(output),
959
- ...contents,
960
- };
961
- return response;
962
- };
963
- exports.de_ListArchiveExportsCommand = de_ListArchiveExportsCommand;
964
- const de_ListArchivesCommand = async (output, context) => {
965
- if (output.statusCode >= 300) {
966
- return de_CommandError(output, context);
967
- }
968
- const data = await (0, core_1.parseJsonBody)(output.body, context);
969
- let contents = {};
970
- contents = de_ListArchivesResponse(data, context);
971
- const response = {
972
- $metadata: deserializeMetadata(output),
973
- ...contents,
974
- };
975
- return response;
976
- };
977
- exports.de_ListArchivesCommand = de_ListArchivesCommand;
978
- const de_ListArchiveSearchesCommand = async (output, context) => {
979
- if (output.statusCode >= 300) {
980
- return de_CommandError(output, context);
981
- }
982
- const data = await (0, core_1.parseJsonBody)(output.body, context);
983
- let contents = {};
984
- contents = de_ListArchiveSearchesResponse(data, context);
985
- const response = {
986
- $metadata: deserializeMetadata(output),
987
- ...contents,
988
- };
989
- return response;
990
- };
991
- exports.de_ListArchiveSearchesCommand = de_ListArchiveSearchesCommand;
992
- const de_ListIngressPointsCommand = async (output, context) => {
993
- if (output.statusCode >= 300) {
994
- return de_CommandError(output, context);
995
- }
996
- const data = await (0, core_1.parseJsonBody)(output.body, context);
997
- let contents = {};
998
- contents = (0, smithy_client_1._json)(data);
999
- const response = {
1000
- $metadata: deserializeMetadata(output),
1001
- ...contents,
1002
- };
1003
- return response;
1004
- };
1005
- exports.de_ListIngressPointsCommand = de_ListIngressPointsCommand;
1006
- const de_ListMembersOfAddressListCommand = async (output, context) => {
1007
- if (output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1011
- let contents = {};
1012
- contents = de_ListMembersOfAddressListResponse(data, context);
1013
- const response = {
1014
- $metadata: deserializeMetadata(output),
1015
- ...contents,
1016
- };
1017
- return response;
1018
- };
1019
- exports.de_ListMembersOfAddressListCommand = de_ListMembersOfAddressListCommand;
1020
- const de_ListRelaysCommand = async (output, context) => {
1021
- if (output.statusCode >= 300) {
1022
- return de_CommandError(output, context);
1023
- }
1024
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1025
- let contents = {};
1026
- contents = de_ListRelaysResponse(data, context);
1027
- const response = {
1028
- $metadata: deserializeMetadata(output),
1029
- ...contents,
1030
- };
1031
- return response;
1032
- };
1033
- exports.de_ListRelaysCommand = de_ListRelaysCommand;
1034
- const de_ListRuleSetsCommand = async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CommandError(output, context);
1037
- }
1038
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1039
- let contents = {};
1040
- contents = de_ListRuleSetsResponse(data, context);
1041
- const response = {
1042
- $metadata: deserializeMetadata(output),
1043
- ...contents,
1044
- };
1045
- return response;
1046
- };
1047
- exports.de_ListRuleSetsCommand = de_ListRuleSetsCommand;
1048
- const de_ListTagsForResourceCommand = async (output, context) => {
1049
- if (output.statusCode >= 300) {
1050
- return de_CommandError(output, context);
1051
- }
1052
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1053
- let contents = {};
1054
- contents = (0, smithy_client_1._json)(data);
1055
- const response = {
1056
- $metadata: deserializeMetadata(output),
1057
- ...contents,
1058
- };
1059
- return response;
1060
- };
1061
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1062
- const de_ListTrafficPoliciesCommand = async (output, context) => {
1063
- if (output.statusCode >= 300) {
1064
- return de_CommandError(output, context);
1065
- }
1066
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1067
- let contents = {};
1068
- contents = (0, smithy_client_1._json)(data);
1069
- const response = {
1070
- $metadata: deserializeMetadata(output),
1071
- ...contents,
1072
- };
1073
- return response;
1074
- };
1075
- exports.de_ListTrafficPoliciesCommand = de_ListTrafficPoliciesCommand;
1076
- const de_RegisterMemberToAddressListCommand = async (output, context) => {
1077
- if (output.statusCode >= 300) {
1078
- return de_CommandError(output, context);
1079
- }
1080
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1081
- let contents = {};
1082
- contents = (0, smithy_client_1._json)(data);
1083
- const response = {
1084
- $metadata: deserializeMetadata(output),
1085
- ...contents,
1086
- };
1087
- return response;
1088
- };
1089
- exports.de_RegisterMemberToAddressListCommand = de_RegisterMemberToAddressListCommand;
1090
- const de_StartAddressListImportJobCommand = async (output, context) => {
1091
- if (output.statusCode >= 300) {
1092
- return de_CommandError(output, context);
1093
- }
1094
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1095
- let contents = {};
1096
- contents = (0, smithy_client_1._json)(data);
1097
- const response = {
1098
- $metadata: deserializeMetadata(output),
1099
- ...contents,
1100
- };
1101
- return response;
1102
- };
1103
- exports.de_StartAddressListImportJobCommand = de_StartAddressListImportJobCommand;
1104
- const de_StartArchiveExportCommand = async (output, context) => {
1105
- if (output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1109
- let contents = {};
1110
- contents = (0, smithy_client_1._json)(data);
1111
- const response = {
1112
- $metadata: deserializeMetadata(output),
1113
- ...contents,
1114
- };
1115
- return response;
1116
- };
1117
- exports.de_StartArchiveExportCommand = de_StartArchiveExportCommand;
1118
- const de_StartArchiveSearchCommand = async (output, context) => {
1119
- if (output.statusCode >= 300) {
1120
- return de_CommandError(output, context);
1121
- }
1122
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1123
- let contents = {};
1124
- contents = (0, smithy_client_1._json)(data);
1125
- const response = {
1126
- $metadata: deserializeMetadata(output),
1127
- ...contents,
1128
- };
1129
- return response;
1130
- };
1131
- exports.de_StartArchiveSearchCommand = de_StartArchiveSearchCommand;
1132
- const de_StopAddressListImportJobCommand = async (output, context) => {
1133
- if (output.statusCode >= 300) {
1134
- return de_CommandError(output, context);
1135
- }
1136
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1137
- let contents = {};
1138
- contents = (0, smithy_client_1._json)(data);
1139
- const response = {
1140
- $metadata: deserializeMetadata(output),
1141
- ...contents,
1142
- };
1143
- return response;
1144
- };
1145
- exports.de_StopAddressListImportJobCommand = de_StopAddressListImportJobCommand;
1146
- const de_StopArchiveExportCommand = async (output, context) => {
1147
- if (output.statusCode >= 300) {
1148
- return de_CommandError(output, context);
1149
- }
1150
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1151
- let contents = {};
1152
- contents = (0, smithy_client_1._json)(data);
1153
- const response = {
1154
- $metadata: deserializeMetadata(output),
1155
- ...contents,
1156
- };
1157
- return response;
1158
- };
1159
- exports.de_StopArchiveExportCommand = de_StopArchiveExportCommand;
1160
- const de_StopArchiveSearchCommand = async (output, context) => {
1161
- if (output.statusCode >= 300) {
1162
- return de_CommandError(output, context);
1163
- }
1164
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1165
- let contents = {};
1166
- contents = (0, smithy_client_1._json)(data);
1167
- const response = {
1168
- $metadata: deserializeMetadata(output),
1169
- ...contents,
1170
- };
1171
- return response;
1172
- };
1173
- exports.de_StopArchiveSearchCommand = de_StopArchiveSearchCommand;
1174
- const de_TagResourceCommand = async (output, context) => {
1175
- if (output.statusCode >= 300) {
1176
- return de_CommandError(output, context);
1177
- }
1178
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1179
- let contents = {};
1180
- contents = (0, smithy_client_1._json)(data);
1181
- const response = {
1182
- $metadata: deserializeMetadata(output),
1183
- ...contents,
1184
- };
1185
- return response;
1186
- };
1187
- exports.de_TagResourceCommand = de_TagResourceCommand;
1188
- const de_UntagResourceCommand = async (output, context) => {
1189
- if (output.statusCode >= 300) {
1190
- return de_CommandError(output, context);
1191
- }
1192
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1193
- let contents = {};
1194
- contents = (0, smithy_client_1._json)(data);
1195
- const response = {
1196
- $metadata: deserializeMetadata(output),
1197
- ...contents,
1198
- };
1199
- return response;
1200
- };
1201
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1202
- const de_UpdateArchiveCommand = async (output, context) => {
1203
- if (output.statusCode >= 300) {
1204
- return de_CommandError(output, context);
1205
- }
1206
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1207
- let contents = {};
1208
- contents = (0, smithy_client_1._json)(data);
1209
- const response = {
1210
- $metadata: deserializeMetadata(output),
1211
- ...contents,
1212
- };
1213
- return response;
1214
- };
1215
- exports.de_UpdateArchiveCommand = de_UpdateArchiveCommand;
1216
- const de_UpdateIngressPointCommand = async (output, context) => {
1217
- if (output.statusCode >= 300) {
1218
- return de_CommandError(output, context);
1219
- }
1220
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1221
- let contents = {};
1222
- contents = (0, smithy_client_1._json)(data);
1223
- const response = {
1224
- $metadata: deserializeMetadata(output),
1225
- ...contents,
1226
- };
1227
- return response;
1228
- };
1229
- exports.de_UpdateIngressPointCommand = de_UpdateIngressPointCommand;
1230
- const de_UpdateRelayCommand = async (output, context) => {
1231
- if (output.statusCode >= 300) {
1232
- return de_CommandError(output, context);
1233
- }
1234
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1235
- let contents = {};
1236
- contents = (0, smithy_client_1._json)(data);
1237
- const response = {
1238
- $metadata: deserializeMetadata(output),
1239
- ...contents,
1240
- };
1241
- return response;
1242
- };
1243
- exports.de_UpdateRelayCommand = de_UpdateRelayCommand;
1244
- const de_UpdateRuleSetCommand = async (output, context) => {
1245
- if (output.statusCode >= 300) {
1246
- return de_CommandError(output, context);
1247
- }
1248
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1249
- let contents = {};
1250
- contents = (0, smithy_client_1._json)(data);
1251
- const response = {
1252
- $metadata: deserializeMetadata(output),
1253
- ...contents,
1254
- };
1255
- return response;
1256
- };
1257
- exports.de_UpdateRuleSetCommand = de_UpdateRuleSetCommand;
1258
- const de_UpdateTrafficPolicyCommand = async (output, context) => {
1259
- if (output.statusCode >= 300) {
1260
- return de_CommandError(output, context);
1261
- }
1262
- const data = await (0, core_1.parseJsonBody)(output.body, context);
1263
- let contents = {};
1264
- contents = (0, smithy_client_1._json)(data);
1265
- const response = {
1266
- $metadata: deserializeMetadata(output),
1267
- ...contents,
1268
- };
1269
- return response;
1270
- };
1271
- exports.de_UpdateTrafficPolicyCommand = de_UpdateTrafficPolicyCommand;
1272
- const de_CommandError = async (output, context) => {
1273
- const parsedOutput = {
1274
- ...output,
1275
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
1276
- };
1277
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1278
- switch (errorCode) {
1279
- case "ConflictException":
1280
- case "com.amazonaws.mailmanager#ConflictException":
1281
- throw await de_ConflictExceptionRes(parsedOutput, context);
1282
- case "ResourceNotFoundException":
1283
- case "com.amazonaws.mailmanager#ResourceNotFoundException":
1284
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1285
- case "ServiceQuotaExceededException":
1286
- case "com.amazonaws.mailmanager#ServiceQuotaExceededException":
1287
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1288
- case "ValidationException":
1289
- case "com.amazonaws.mailmanager#ValidationException":
1290
- throw await de_ValidationExceptionRes(parsedOutput, context);
1291
- case "AccessDeniedException":
1292
- case "com.amazonaws.mailmanager#AccessDeniedException":
1293
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1294
- case "ThrottlingException":
1295
- case "com.amazonaws.mailmanager#ThrottlingException":
1296
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1297
- default:
1298
- const parsedBody = parsedOutput.body;
1299
- return throwDefaultError({
1300
- output,
1301
- parsedBody,
1302
- errorCode,
1303
- });
1304
- }
1305
- };
1306
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1307
- const body = parsedOutput.body;
1308
- const deserialized = (0, smithy_client_1._json)(body);
1309
- const exception = new models_0_1.AccessDeniedException({
1310
- $metadata: deserializeMetadata(parsedOutput),
1311
- ...deserialized,
1312
- });
1313
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1314
- };
1315
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1316
- const body = parsedOutput.body;
1317
- const deserialized = (0, smithy_client_1._json)(body);
1318
- const exception = new models_0_1.ConflictException({
1319
- $metadata: deserializeMetadata(parsedOutput),
1320
- ...deserialized,
1321
- });
1322
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1323
- };
1324
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1325
- const body = parsedOutput.body;
1326
- const deserialized = (0, smithy_client_1._json)(body);
1327
- const exception = new models_0_1.ResourceNotFoundException({
1328
- $metadata: deserializeMetadata(parsedOutput),
1329
- ...deserialized,
1330
- });
1331
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1332
- };
1333
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1334
- const body = parsedOutput.body;
1335
- const deserialized = (0, smithy_client_1._json)(body);
1336
- const exception = new models_0_1.ServiceQuotaExceededException({
1337
- $metadata: deserializeMetadata(parsedOutput),
1338
- ...deserialized,
1339
- });
1340
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1341
- };
1342
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1343
- const body = parsedOutput.body;
1344
- const deserialized = (0, smithy_client_1._json)(body);
1345
- const exception = new models_0_1.ThrottlingException({
1346
- $metadata: deserializeMetadata(parsedOutput),
1347
- ...deserialized,
1348
- });
1349
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1350
- };
1351
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1352
- const body = parsedOutput.body;
1353
- const deserialized = (0, smithy_client_1._json)(body);
1354
- const exception = new models_0_1.ValidationException({
1355
- $metadata: deserializeMetadata(parsedOutput),
1356
- ...deserialized,
1357
- });
1358
- return (0, smithy_client_1.decorateServiceException)(exception, body);
1359
- };
1360
- const se_CreateAddonInstanceRequest = (input, context) => {
1361
- return (0, smithy_client_1.take)(input, {
1362
- AddonSubscriptionId: [],
1363
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1364
- Tags: smithy_client_1._json,
1365
- });
1366
- };
1367
- const se_CreateAddonSubscriptionRequest = (input, context) => {
1368
- return (0, smithy_client_1.take)(input, {
1369
- AddonName: [],
1370
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1371
- Tags: smithy_client_1._json,
1372
- });
1373
- };
1374
- const se_CreateAddressListImportJobRequest = (input, context) => {
1375
- return (0, smithy_client_1.take)(input, {
1376
- AddressListId: [],
1377
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1378
- ImportDataFormat: smithy_client_1._json,
1379
- Name: [],
1380
- });
1381
- };
1382
- const se_CreateAddressListRequest = (input, context) => {
1383
- return (0, smithy_client_1.take)(input, {
1384
- AddressListName: [],
1385
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1386
- Tags: smithy_client_1._json,
1387
- });
1388
- };
1389
- const se_CreateArchiveRequest = (input, context) => {
1390
- return (0, smithy_client_1.take)(input, {
1391
- ArchiveName: [],
1392
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1393
- KmsKeyArn: [],
1394
- Retention: smithy_client_1._json,
1395
- Tags: smithy_client_1._json,
1396
- });
1397
- };
1398
- const se_CreateIngressPointRequest = (input, context) => {
1399
- return (0, smithy_client_1.take)(input, {
1400
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1401
- IngressPointConfiguration: smithy_client_1._json,
1402
- IngressPointName: [],
1403
- NetworkConfiguration: smithy_client_1._json,
1404
- RuleSetId: [],
1405
- Tags: smithy_client_1._json,
1406
- TrafficPolicyId: [],
1407
- Type: [],
1408
- });
1409
- };
1410
- const se_CreateRelayRequest = (input, context) => {
1411
- return (0, smithy_client_1.take)(input, {
1412
- Authentication: smithy_client_1._json,
1413
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1414
- RelayName: [],
1415
- ServerName: [],
1416
- ServerPort: [],
1417
- Tags: smithy_client_1._json,
1418
- });
1419
- };
1420
- const se_CreateRuleSetRequest = (input, context) => {
1421
- return (0, smithy_client_1.take)(input, {
1422
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1423
- RuleSetName: [],
1424
- Rules: (_) => se_Rules(_, context),
1425
- Tags: smithy_client_1._json,
1426
- });
1427
- };
1428
- const se_CreateTrafficPolicyRequest = (input, context) => {
1429
- return (0, smithy_client_1.take)(input, {
1430
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1431
- DefaultAction: [],
1432
- MaxMessageSizeBytes: [],
1433
- PolicyStatements: smithy_client_1._json,
1434
- Tags: smithy_client_1._json,
1435
- TrafficPolicyName: [],
1436
- });
1437
- };
1438
- const se_Rule = (input, context) => {
1439
- return (0, smithy_client_1.take)(input, {
1440
- Actions: smithy_client_1._json,
1441
- Conditions: (_) => se_RuleConditions(_, context),
1442
- Name: [],
1443
- Unless: (_) => se_RuleConditions(_, context),
1444
- });
1445
- };
1446
- const se_RuleCondition = (input, context) => {
1447
- return models_0_1.RuleCondition.visit(input, {
1448
- BooleanExpression: (value) => ({ BooleanExpression: (0, smithy_client_1._json)(value) }),
1449
- DmarcExpression: (value) => ({ DmarcExpression: (0, smithy_client_1._json)(value) }),
1450
- IpExpression: (value) => ({ IpExpression: (0, smithy_client_1._json)(value) }),
1451
- NumberExpression: (value) => ({ NumberExpression: se_RuleNumberExpression(value, context) }),
1452
- StringExpression: (value) => ({ StringExpression: (0, smithy_client_1._json)(value) }),
1453
- VerdictExpression: (value) => ({ VerdictExpression: (0, smithy_client_1._json)(value) }),
1454
- _: (name, value) => ({ [name]: value }),
1455
- });
1456
- };
1457
- const se_RuleConditions = (input, context) => {
1458
- return input
1459
- .filter((e) => e != null)
1460
- .map((entry) => {
1461
- return se_RuleCondition(entry, context);
1462
- });
1463
- };
1464
- const se_RuleNumberExpression = (input, context) => {
1465
- return (0, smithy_client_1.take)(input, {
1466
- Evaluate: smithy_client_1._json,
1467
- Operator: [],
1468
- Value: smithy_client_1.serializeFloat,
1469
- });
1470
- };
1471
- const se_Rules = (input, context) => {
1472
- return input
1473
- .filter((e) => e != null)
1474
- .map((entry) => {
1475
- return se_Rule(entry, context);
1476
- });
1477
- };
1478
- const se_StartArchiveExportRequest = (input, context) => {
1479
- return (0, smithy_client_1.take)(input, {
1480
- ArchiveId: [],
1481
- ExportDestinationConfiguration: smithy_client_1._json,
1482
- Filters: smithy_client_1._json,
1483
- FromTimestamp: (_) => _.getTime() / 1_000,
1484
- IncludeMetadata: [],
1485
- MaxResults: [],
1486
- ToTimestamp: (_) => _.getTime() / 1_000,
1487
- });
1488
- };
1489
- const se_StartArchiveSearchRequest = (input, context) => {
1490
- return (0, smithy_client_1.take)(input, {
1491
- ArchiveId: [],
1492
- Filters: smithy_client_1._json,
1493
- FromTimestamp: (_) => _.getTime() / 1_000,
1494
- MaxResults: [],
1495
- ToTimestamp: (_) => _.getTime() / 1_000,
1496
- });
1497
- };
1498
- const se_UpdateRuleSetRequest = (input, context) => {
1499
- return (0, smithy_client_1.take)(input, {
1500
- RuleSetId: [],
1501
- RuleSetName: [],
1502
- Rules: (_) => se_Rules(_, context),
1503
- });
1504
- };
1505
- const de_AddonInstance = (output, context) => {
1506
- return (0, smithy_client_1.take)(output, {
1507
- AddonInstanceArn: smithy_client_1.expectString,
1508
- AddonInstanceId: smithy_client_1.expectString,
1509
- AddonName: smithy_client_1.expectString,
1510
- AddonSubscriptionId: smithy_client_1.expectString,
1511
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1512
- });
1513
- };
1514
- const de_AddonInstances = (output, context) => {
1515
- const retVal = (output || [])
1516
- .filter((e) => e != null)
1517
- .map((entry) => {
1518
- return de_AddonInstance(entry, context);
1519
- });
1520
- return retVal;
1521
- };
1522
- const de_AddonSubscription = (output, context) => {
1523
- return (0, smithy_client_1.take)(output, {
1524
- AddonName: smithy_client_1.expectString,
1525
- AddonSubscriptionArn: smithy_client_1.expectString,
1526
- AddonSubscriptionId: smithy_client_1.expectString,
1527
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1528
- });
1529
- };
1530
- const de_AddonSubscriptions = (output, context) => {
1531
- const retVal = (output || [])
1532
- .filter((e) => e != null)
1533
- .map((entry) => {
1534
- return de_AddonSubscription(entry, context);
1535
- });
1536
- return retVal;
1537
- };
1538
- const de_AddressList = (output, context) => {
1539
- return (0, smithy_client_1.take)(output, {
1540
- AddressListArn: smithy_client_1.expectString,
1541
- AddressListId: smithy_client_1.expectString,
1542
- AddressListName: smithy_client_1.expectString,
1543
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1544
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1545
- });
1546
- };
1547
- const de_AddressLists = (output, context) => {
1548
- const retVal = (output || [])
1549
- .filter((e) => e != null)
1550
- .map((entry) => {
1551
- return de_AddressList(entry, context);
1552
- });
1553
- return retVal;
1554
- };
1555
- const de_Archive = (output, context) => {
1556
- return (0, smithy_client_1.take)(output, {
1557
- ArchiveId: smithy_client_1.expectString,
1558
- ArchiveName: smithy_client_1.expectString,
1559
- ArchiveState: smithy_client_1.expectString,
1560
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1561
- });
1562
- };
1563
- const de_ArchivesList = (output, context) => {
1564
- const retVal = (output || [])
1565
- .filter((e) => e != null)
1566
- .map((entry) => {
1567
- return de_Archive(entry, context);
1568
- });
1569
- return retVal;
1570
- };
1571
- const de_ExportStatus = (output, context) => {
1572
- return (0, smithy_client_1.take)(output, {
1573
- CompletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1574
- ErrorMessage: smithy_client_1.expectString,
1575
- State: smithy_client_1.expectString,
1576
- SubmissionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1577
- });
1578
- };
1579
- const de_ExportSummary = (output, context) => {
1580
- return (0, smithy_client_1.take)(output, {
1581
- ExportId: smithy_client_1.expectString,
1582
- Status: (_) => de_ExportStatus(_, context),
1583
- });
1584
- };
1585
- const de_ExportSummaryList = (output, context) => {
1586
- const retVal = (output || [])
1587
- .filter((e) => e != null)
1588
- .map((entry) => {
1589
- return de_ExportSummary(entry, context);
1590
- });
1591
- return retVal;
1592
- };
1593
- const de_GetAddonInstanceResponse = (output, context) => {
1594
- return (0, smithy_client_1.take)(output, {
1595
- AddonInstanceArn: smithy_client_1.expectString,
1596
- AddonName: smithy_client_1.expectString,
1597
- AddonSubscriptionId: smithy_client_1.expectString,
1598
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1599
- });
1600
- };
1601
- const de_GetAddonSubscriptionResponse = (output, context) => {
1602
- return (0, smithy_client_1.take)(output, {
1603
- AddonName: smithy_client_1.expectString,
1604
- AddonSubscriptionArn: smithy_client_1.expectString,
1605
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1606
- });
1607
- };
1608
- const de_GetAddressListImportJobResponse = (output, context) => {
1609
- return (0, smithy_client_1.take)(output, {
1610
- AddressListId: smithy_client_1.expectString,
1611
- CompletedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1612
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1613
- Error: smithy_client_1.expectString,
1614
- FailedItemsCount: smithy_client_1.expectInt32,
1615
- ImportDataFormat: smithy_client_1._json,
1616
- ImportedItemsCount: smithy_client_1.expectInt32,
1617
- JobId: smithy_client_1.expectString,
1618
- Name: smithy_client_1.expectString,
1619
- PreSignedUrl: smithy_client_1.expectString,
1620
- StartTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1621
- Status: smithy_client_1.expectString,
1622
- });
1623
- };
1624
- const de_GetAddressListResponse = (output, context) => {
1625
- return (0, smithy_client_1.take)(output, {
1626
- AddressListArn: smithy_client_1.expectString,
1627
- AddressListId: smithy_client_1.expectString,
1628
- AddressListName: smithy_client_1.expectString,
1629
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1630
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1631
- });
1632
- };
1633
- const de_GetArchiveExportResponse = (output, context) => {
1634
- return (0, smithy_client_1.take)(output, {
1635
- ArchiveId: smithy_client_1.expectString,
1636
- ExportDestinationConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1637
- Filters: smithy_client_1._json,
1638
- FromTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1639
- MaxResults: smithy_client_1.expectInt32,
1640
- Status: (_) => de_ExportStatus(_, context),
1641
- ToTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1642
- });
1643
- };
1644
- const de_GetArchiveMessageResponse = (output, context) => {
1645
- return (0, smithy_client_1.take)(output, {
1646
- Envelope: smithy_client_1._json,
1647
- MessageDownloadLink: smithy_client_1.expectString,
1648
- Metadata: (_) => de_Metadata(_, context),
1649
- });
1650
- };
1651
- const de_GetArchiveResponse = (output, context) => {
1652
- return (0, smithy_client_1.take)(output, {
1653
- ArchiveArn: smithy_client_1.expectString,
1654
- ArchiveId: smithy_client_1.expectString,
1655
- ArchiveName: smithy_client_1.expectString,
1656
- ArchiveState: smithy_client_1.expectString,
1657
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1658
- KmsKeyArn: smithy_client_1.expectString,
1659
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1660
- Retention: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1661
- });
1662
- };
1663
- const de_GetArchiveSearchResponse = (output, context) => {
1664
- return (0, smithy_client_1.take)(output, {
1665
- ArchiveId: smithy_client_1.expectString,
1666
- Filters: smithy_client_1._json,
1667
- FromTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1668
- MaxResults: smithy_client_1.expectInt32,
1669
- Status: (_) => de_SearchStatus(_, context),
1670
- ToTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1671
- });
1672
- };
1673
- const de_GetArchiveSearchResultsResponse = (output, context) => {
1674
- return (0, smithy_client_1.take)(output, {
1675
- Rows: (_) => de_RowsList(_, context),
1676
- });
1677
- };
1678
- const de_GetIngressPointResponse = (output, context) => {
1679
- return (0, smithy_client_1.take)(output, {
1680
- ARecord: smithy_client_1.expectString,
1681
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1682
- IngressPointArn: smithy_client_1.expectString,
1683
- IngressPointAuthConfiguration: (_) => de_IngressPointAuthConfiguration(_, context),
1684
- IngressPointId: smithy_client_1.expectString,
1685
- IngressPointName: smithy_client_1.expectString,
1686
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1687
- NetworkConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1688
- RuleSetId: smithy_client_1.expectString,
1689
- Status: smithy_client_1.expectString,
1690
- TrafficPolicyId: smithy_client_1.expectString,
1691
- Type: smithy_client_1.expectString,
1692
- });
1693
- };
1694
- const de_GetMemberOfAddressListResponse = (output, context) => {
1695
- return (0, smithy_client_1.take)(output, {
1696
- Address: smithy_client_1.expectString,
1697
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1698
- });
1699
- };
1700
- const de_GetRelayResponse = (output, context) => {
1701
- return (0, smithy_client_1.take)(output, {
1702
- Authentication: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1703
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1704
- LastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1705
- RelayArn: smithy_client_1.expectString,
1706
- RelayId: smithy_client_1.expectString,
1707
- RelayName: smithy_client_1.expectString,
1708
- ServerName: smithy_client_1.expectString,
1709
- ServerPort: smithy_client_1.expectInt32,
1710
- });
1711
- };
1712
- const de_GetRuleSetResponse = (output, context) => {
1713
- return (0, smithy_client_1.take)(output, {
1714
- CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1715
- LastModificationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1716
- RuleSetArn: smithy_client_1.expectString,
1717
- RuleSetId: smithy_client_1.expectString,
1718
- RuleSetName: smithy_client_1.expectString,
1719
- Rules: (_) => de_Rules(_, context),
1720
- });
1721
- };
1722
- const de_GetTrafficPolicyResponse = (output, context) => {
1723
- return (0, smithy_client_1.take)(output, {
1724
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1725
- DefaultAction: smithy_client_1.expectString,
1726
- LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1727
- MaxMessageSizeBytes: smithy_client_1.expectInt32,
1728
- PolicyStatements: smithy_client_1._json,
1729
- TrafficPolicyArn: smithy_client_1.expectString,
1730
- TrafficPolicyId: smithy_client_1.expectString,
1731
- TrafficPolicyName: smithy_client_1.expectString,
1732
- });
1733
- };
1734
- const de_ImportJob = (output, context) => {
1735
- return (0, smithy_client_1.take)(output, {
1736
- AddressListId: smithy_client_1.expectString,
1737
- CompletedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1738
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1739
- Error: smithy_client_1.expectString,
1740
- FailedItemsCount: smithy_client_1.expectInt32,
1741
- ImportDataFormat: smithy_client_1._json,
1742
- ImportedItemsCount: smithy_client_1.expectInt32,
1743
- JobId: smithy_client_1.expectString,
1744
- Name: smithy_client_1.expectString,
1745
- PreSignedUrl: smithy_client_1.expectString,
1746
- StartTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1747
- Status: smithy_client_1.expectString,
1748
- });
1749
- };
1750
- const de_ImportJobs = (output, context) => {
1751
- const retVal = (output || [])
1752
- .filter((e) => e != null)
1753
- .map((entry) => {
1754
- return de_ImportJob(entry, context);
1755
- });
1756
- return retVal;
1757
- };
1758
- const de_IngressPointAuthConfiguration = (output, context) => {
1759
- return (0, smithy_client_1.take)(output, {
1760
- IngressPointPasswordConfiguration: (_) => de_IngressPointPasswordConfiguration(_, context),
1761
- SecretArn: smithy_client_1.expectString,
1762
- });
1763
- };
1764
- const de_IngressPointPasswordConfiguration = (output, context) => {
1765
- return (0, smithy_client_1.take)(output, {
1766
- PreviousSmtpPasswordExpiryTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1767
- PreviousSmtpPasswordVersion: smithy_client_1.expectString,
1768
- SmtpPasswordVersion: smithy_client_1.expectString,
1769
- });
1770
- };
1771
- const de_ListAddonInstancesResponse = (output, context) => {
1772
- return (0, smithy_client_1.take)(output, {
1773
- AddonInstances: (_) => de_AddonInstances(_, context),
1774
- NextToken: smithy_client_1.expectString,
1775
- });
1776
- };
1777
- const de_ListAddonSubscriptionsResponse = (output, context) => {
1778
- return (0, smithy_client_1.take)(output, {
1779
- AddonSubscriptions: (_) => de_AddonSubscriptions(_, context),
1780
- NextToken: smithy_client_1.expectString,
1781
- });
1782
- };
1783
- const de_ListAddressListImportJobsResponse = (output, context) => {
1784
- return (0, smithy_client_1.take)(output, {
1785
- ImportJobs: (_) => de_ImportJobs(_, context),
1786
- NextToken: smithy_client_1.expectString,
1787
- });
1788
- };
1789
- const de_ListAddressListsResponse = (output, context) => {
1790
- return (0, smithy_client_1.take)(output, {
1791
- AddressLists: (_) => de_AddressLists(_, context),
1792
- NextToken: smithy_client_1.expectString,
1793
- });
1794
- };
1795
- const de_ListArchiveExportsResponse = (output, context) => {
1796
- return (0, smithy_client_1.take)(output, {
1797
- Exports: (_) => de_ExportSummaryList(_, context),
1798
- NextToken: smithy_client_1.expectString,
1799
- });
1800
- };
1801
- const de_ListArchiveSearchesResponse = (output, context) => {
1802
- return (0, smithy_client_1.take)(output, {
1803
- NextToken: smithy_client_1.expectString,
1804
- Searches: (_) => de_SearchSummaryList(_, context),
1805
- });
1806
- };
1807
- const de_ListArchivesResponse = (output, context) => {
1808
- return (0, smithy_client_1.take)(output, {
1809
- Archives: (_) => de_ArchivesList(_, context),
1810
- NextToken: smithy_client_1.expectString,
1811
- });
1812
- };
1813
- const de_ListMembersOfAddressListResponse = (output, context) => {
1814
- return (0, smithy_client_1.take)(output, {
1815
- Addresses: (_) => de_SavedAddresses(_, context),
1816
- NextToken: smithy_client_1.expectString,
1817
- });
1818
- };
1819
- const de_ListRelaysResponse = (output, context) => {
1820
- return (0, smithy_client_1.take)(output, {
1821
- NextToken: smithy_client_1.expectString,
1822
- Relays: (_) => de_Relays(_, context),
1823
- });
1824
- };
1825
- const de_ListRuleSetsResponse = (output, context) => {
1826
- return (0, smithy_client_1.take)(output, {
1827
- NextToken: smithy_client_1.expectString,
1828
- RuleSets: (_) => de_RuleSets(_, context),
1829
- });
1830
- };
1831
- const de_Metadata = (output, context) => {
1832
- return (0, smithy_client_1.take)(output, {
1833
- ConfigurationSet: smithy_client_1.expectString,
1834
- IngressPointId: smithy_client_1.expectString,
1835
- RuleSetId: smithy_client_1.expectString,
1836
- SenderHostname: smithy_client_1.expectString,
1837
- SenderIpAddress: smithy_client_1.expectString,
1838
- SendingMethod: smithy_client_1.expectString,
1839
- SendingPool: smithy_client_1.expectString,
1840
- SourceArn: smithy_client_1.expectString,
1841
- SourceIdentity: smithy_client_1.expectString,
1842
- Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1843
- TlsCipherSuite: smithy_client_1.expectString,
1844
- TlsProtocol: smithy_client_1.expectString,
1845
- TrafficPolicyId: smithy_client_1.expectString,
1846
- });
1847
- };
1848
- const de_Relay = (output, context) => {
1849
- return (0, smithy_client_1.take)(output, {
1850
- LastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1851
- RelayId: smithy_client_1.expectString,
1852
- RelayName: smithy_client_1.expectString,
1853
- });
1854
- };
1855
- const de_Relays = (output, context) => {
1856
- const retVal = (output || [])
1857
- .filter((e) => e != null)
1858
- .map((entry) => {
1859
- return de_Relay(entry, context);
1860
- });
1861
- return retVal;
1862
- };
1863
- const de_Row = (output, context) => {
1864
- return (0, smithy_client_1.take)(output, {
1865
- ArchivedMessageId: smithy_client_1.expectString,
1866
- Cc: smithy_client_1.expectString,
1867
- Date: smithy_client_1.expectString,
1868
- Envelope: smithy_client_1._json,
1869
- From: smithy_client_1.expectString,
1870
- HasAttachments: smithy_client_1.expectBoolean,
1871
- InReplyTo: smithy_client_1.expectString,
1872
- IngressPointId: smithy_client_1.expectString,
1873
- MessageId: smithy_client_1.expectString,
1874
- ReceivedHeaders: smithy_client_1._json,
1875
- ReceivedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1876
- SenderHostname: smithy_client_1.expectString,
1877
- SenderIpAddress: smithy_client_1.expectString,
1878
- SourceArn: smithy_client_1.expectString,
1879
- Subject: smithy_client_1.expectString,
1880
- To: smithy_client_1.expectString,
1881
- XMailer: smithy_client_1.expectString,
1882
- XOriginalMailer: smithy_client_1.expectString,
1883
- XPriority: smithy_client_1.expectString,
1884
- });
1885
- };
1886
- const de_RowsList = (output, context) => {
1887
- const retVal = (output || [])
1888
- .filter((e) => e != null)
1889
- .map((entry) => {
1890
- return de_Row(entry, context);
1891
- });
1892
- return retVal;
1893
- };
1894
- const de_Rule = (output, context) => {
1895
- return (0, smithy_client_1.take)(output, {
1896
- Actions: smithy_client_1._json,
1897
- Conditions: (_) => de_RuleConditions(_, context),
1898
- Name: smithy_client_1.expectString,
1899
- Unless: (_) => de_RuleConditions(_, context),
1900
- });
1901
- };
1902
- const de_RuleCondition = (output, context) => {
1903
- if (output.BooleanExpression != null) {
1904
- return {
1905
- BooleanExpression: (0, smithy_client_1._json)(output.BooleanExpression),
1906
- };
1907
- }
1908
- if (output.DmarcExpression != null) {
1909
- return {
1910
- DmarcExpression: (0, smithy_client_1._json)(output.DmarcExpression),
1911
- };
1912
- }
1913
- if (output.IpExpression != null) {
1914
- return {
1915
- IpExpression: (0, smithy_client_1._json)(output.IpExpression),
1916
- };
1917
- }
1918
- if (output.NumberExpression != null) {
1919
- return {
1920
- NumberExpression: de_RuleNumberExpression(output.NumberExpression, context),
1921
- };
1922
- }
1923
- if (output.StringExpression != null) {
1924
- return {
1925
- StringExpression: (0, smithy_client_1._json)(output.StringExpression),
1926
- };
1927
- }
1928
- if (output.VerdictExpression != null) {
1929
- return {
1930
- VerdictExpression: (0, smithy_client_1._json)(output.VerdictExpression),
1931
- };
1932
- }
1933
- return { $unknown: Object.entries(output)[0] };
1934
- };
1935
- const de_RuleConditions = (output, context) => {
1936
- const retVal = (output || [])
1937
- .filter((e) => e != null)
1938
- .map((entry) => {
1939
- return de_RuleCondition((0, core_1.awsExpectUnion)(entry), context);
1940
- });
1941
- return retVal;
1942
- };
1943
- const de_RuleNumberExpression = (output, context) => {
1944
- return (0, smithy_client_1.take)(output, {
1945
- Evaluate: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1946
- Operator: smithy_client_1.expectString,
1947
- Value: smithy_client_1.limitedParseDouble,
1948
- });
1949
- };
1950
- const de_Rules = (output, context) => {
1951
- const retVal = (output || [])
1952
- .filter((e) => e != null)
1953
- .map((entry) => {
1954
- return de_Rule(entry, context);
1955
- });
1956
- return retVal;
1957
- };
1958
- const de_RuleSet = (output, context) => {
1959
- return (0, smithy_client_1.take)(output, {
1960
- LastModificationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1961
- RuleSetId: smithy_client_1.expectString,
1962
- RuleSetName: smithy_client_1.expectString,
1963
- });
1964
- };
1965
- const de_RuleSets = (output, context) => {
1966
- const retVal = (output || [])
1967
- .filter((e) => e != null)
1968
- .map((entry) => {
1969
- return de_RuleSet(entry, context);
1970
- });
1971
- return retVal;
1972
- };
1973
- const de_SavedAddress = (output, context) => {
1974
- return (0, smithy_client_1.take)(output, {
1975
- Address: smithy_client_1.expectString,
1976
- CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1977
- });
1978
- };
1979
- const de_SavedAddresses = (output, context) => {
1980
- const retVal = (output || [])
1981
- .filter((e) => e != null)
1982
- .map((entry) => {
1983
- return de_SavedAddress(entry, context);
1984
- });
1985
- return retVal;
1986
- };
1987
- const de_SearchStatus = (output, context) => {
1988
- return (0, smithy_client_1.take)(output, {
1989
- CompletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1990
- ErrorMessage: smithy_client_1.expectString,
1991
- State: smithy_client_1.expectString,
1992
- SubmissionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1993
- });
1994
- };
1995
- const de_SearchSummary = (output, context) => {
1996
- return (0, smithy_client_1.take)(output, {
1997
- SearchId: smithy_client_1.expectString,
1998
- Status: (_) => de_SearchStatus(_, context),
1999
- });
2000
- };
2001
- const de_SearchSummaryList = (output, context) => {
2002
- const retVal = (output || [])
2003
- .filter((e) => e != null)
2004
- .map((entry) => {
2005
- return de_SearchSummary(entry, context);
2006
- });
2007
- return retVal;
2008
- };
2009
- const deserializeMetadata = (output) => ({
2010
- httpStatusCode: output.statusCode,
2011
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2012
- extendedRequestId: output.headers["x-amz-id-2"],
2013
- cfId: output.headers["x-amz-cf-id"],
2014
- });
2015
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2016
- const throwDefaultError = (0, smithy_client_1.withBaseException)(MailManagerServiceException_1.MailManagerServiceException);
2017
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2018
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2019
- const contents = {
2020
- protocol,
2021
- hostname,
2022
- port,
2023
- method: "POST",
2024
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2025
- headers,
2026
- };
2027
- if (resolvedHostname !== undefined) {
2028
- contents.hostname = resolvedHostname;
2029
- }
2030
- if (body !== undefined) {
2031
- contents.body = body;
2032
- }
2033
- return new protocol_http_1.HttpRequest(contents);
2034
- };
2035
- function sharedHeaders(operation) {
2036
- return {
2037
- "content-type": "application/x-amz-json-1.0",
2038
- "x-amz-target": `MailManagerSvc.${operation}`,
2039
- };
2040
- }