@aws-sdk/client-route53resolver 3.926.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist-cjs/index.js +1972 -2124
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/Route53ResolverClient.js +2 -0
  4. package/dist-es/commands/AssociateFirewallRuleGroupCommand.js +3 -9
  5. package/dist-es/commands/AssociateResolverEndpointIpAddressCommand.js +3 -9
  6. package/dist-es/commands/AssociateResolverQueryLogConfigCommand.js +3 -9
  7. package/dist-es/commands/AssociateResolverRuleCommand.js +3 -9
  8. package/dist-es/commands/CreateFirewallDomainListCommand.js +3 -9
  9. package/dist-es/commands/CreateFirewallRuleCommand.js +3 -9
  10. package/dist-es/commands/CreateFirewallRuleGroupCommand.js +3 -9
  11. package/dist-es/commands/CreateOutpostResolverCommand.js +3 -9
  12. package/dist-es/commands/CreateResolverEndpointCommand.js +3 -9
  13. package/dist-es/commands/CreateResolverQueryLogConfigCommand.js +3 -9
  14. package/dist-es/commands/CreateResolverRuleCommand.js +3 -9
  15. package/dist-es/commands/DeleteFirewallDomainListCommand.js +3 -9
  16. package/dist-es/commands/DeleteFirewallRuleCommand.js +3 -9
  17. package/dist-es/commands/DeleteFirewallRuleGroupCommand.js +3 -9
  18. package/dist-es/commands/DeleteOutpostResolverCommand.js +3 -9
  19. package/dist-es/commands/DeleteResolverEndpointCommand.js +3 -9
  20. package/dist-es/commands/DeleteResolverQueryLogConfigCommand.js +3 -9
  21. package/dist-es/commands/DeleteResolverRuleCommand.js +3 -9
  22. package/dist-es/commands/DisassociateFirewallRuleGroupCommand.js +3 -9
  23. package/dist-es/commands/DisassociateResolverEndpointIpAddressCommand.js +3 -9
  24. package/dist-es/commands/DisassociateResolverQueryLogConfigCommand.js +3 -9
  25. package/dist-es/commands/DisassociateResolverRuleCommand.js +3 -9
  26. package/dist-es/commands/GetFirewallConfigCommand.js +3 -9
  27. package/dist-es/commands/GetFirewallDomainListCommand.js +3 -9
  28. package/dist-es/commands/GetFirewallRuleGroupAssociationCommand.js +3 -9
  29. package/dist-es/commands/GetFirewallRuleGroupCommand.js +3 -9
  30. package/dist-es/commands/GetFirewallRuleGroupPolicyCommand.js +3 -9
  31. package/dist-es/commands/GetOutpostResolverCommand.js +3 -9
  32. package/dist-es/commands/GetResolverConfigCommand.js +3 -9
  33. package/dist-es/commands/GetResolverDnssecConfigCommand.js +3 -9
  34. package/dist-es/commands/GetResolverEndpointCommand.js +3 -9
  35. package/dist-es/commands/GetResolverQueryLogConfigAssociationCommand.js +3 -9
  36. package/dist-es/commands/GetResolverQueryLogConfigCommand.js +3 -9
  37. package/dist-es/commands/GetResolverQueryLogConfigPolicyCommand.js +3 -9
  38. package/dist-es/commands/GetResolverRuleAssociationCommand.js +3 -9
  39. package/dist-es/commands/GetResolverRuleCommand.js +3 -9
  40. package/dist-es/commands/GetResolverRulePolicyCommand.js +3 -9
  41. package/dist-es/commands/ImportFirewallDomainsCommand.js +3 -9
  42. package/dist-es/commands/ListFirewallConfigsCommand.js +3 -9
  43. package/dist-es/commands/ListFirewallDomainListsCommand.js +3 -9
  44. package/dist-es/commands/ListFirewallDomainsCommand.js +3 -9
  45. package/dist-es/commands/ListFirewallRuleGroupAssociationsCommand.js +3 -9
  46. package/dist-es/commands/ListFirewallRuleGroupsCommand.js +3 -9
  47. package/dist-es/commands/ListFirewallRulesCommand.js +3 -9
  48. package/dist-es/commands/ListOutpostResolversCommand.js +3 -9
  49. package/dist-es/commands/ListResolverConfigsCommand.js +3 -9
  50. package/dist-es/commands/ListResolverDnssecConfigsCommand.js +3 -9
  51. package/dist-es/commands/ListResolverEndpointIpAddressesCommand.js +3 -9
  52. package/dist-es/commands/ListResolverEndpointsCommand.js +3 -9
  53. package/dist-es/commands/ListResolverQueryLogConfigAssociationsCommand.js +3 -9
  54. package/dist-es/commands/ListResolverQueryLogConfigsCommand.js +3 -9
  55. package/dist-es/commands/ListResolverRuleAssociationsCommand.js +3 -9
  56. package/dist-es/commands/ListResolverRulesCommand.js +3 -9
  57. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  58. package/dist-es/commands/PutFirewallRuleGroupPolicyCommand.js +3 -9
  59. package/dist-es/commands/PutResolverQueryLogConfigPolicyCommand.js +3 -9
  60. package/dist-es/commands/PutResolverRulePolicyCommand.js +3 -9
  61. package/dist-es/commands/TagResourceCommand.js +3 -9
  62. package/dist-es/commands/UntagResourceCommand.js +3 -9
  63. package/dist-es/commands/UpdateFirewallConfigCommand.js +3 -9
  64. package/dist-es/commands/UpdateFirewallDomainsCommand.js +3 -9
  65. package/dist-es/commands/UpdateFirewallRuleCommand.js +3 -9
  66. package/dist-es/commands/UpdateFirewallRuleGroupAssociationCommand.js +3 -9
  67. package/dist-es/commands/UpdateOutpostResolverCommand.js +3 -9
  68. package/dist-es/commands/UpdateResolverConfigCommand.js +3 -9
  69. package/dist-es/commands/UpdateResolverDnssecConfigCommand.js +3 -9
  70. package/dist-es/commands/UpdateResolverEndpointCommand.js +3 -9
  71. package/dist-es/commands/UpdateResolverRuleCommand.js +3 -9
  72. package/dist-es/runtimeConfig.shared.js +7 -0
  73. package/dist-es/schemas/schemas_0.js +1789 -0
  74. package/dist-types/Route53ResolverClient.d.ts +10 -1
  75. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  76. package/dist-types/runtimeConfig.d.ts +1 -0
  77. package/dist-types/runtimeConfig.native.d.ts +1 -0
  78. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  79. package/dist-types/schemas/schemas_0.d.ts +271 -0
  80. package/dist-types/ts3.4/Route53ResolverClient.d.ts +4 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  85. package/dist-types/ts3.4/schemas/schemas_0.d.ts +276 -0
  86. package/package.json +5 -6
  87. package/dist-es/protocols/Aws_json1_1.js +0 -1601
  88. package/dist-types/protocols/Aws_json1_1.d.ts +0 -614
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -821
@@ -1,1601 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InternalServiceErrorException, InvalidNextTokenException, InvalidParameterException, InvalidPolicyDocument, InvalidRequestException, InvalidTagException, LimitExceededException, ResourceExistsException, ResourceInUseException, ResourceNotFoundException, ResourceUnavailableException, ServiceQuotaExceededException, ThrottlingException, UnknownResourceException, ValidationException, } from "../models/models_0";
6
- import { Route53ResolverServiceException as __BaseException } from "../models/Route53ResolverServiceException";
7
- export const se_AssociateFirewallRuleGroupCommand = async (input, context) => {
8
- const headers = sharedHeaders("AssociateFirewallRuleGroup");
9
- let body;
10
- body = JSON.stringify(se_AssociateFirewallRuleGroupRequest(input, context));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_AssociateResolverEndpointIpAddressCommand = async (input, context) => {
14
- const headers = sharedHeaders("AssociateResolverEndpointIpAddress");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_AssociateResolverQueryLogConfigCommand = async (input, context) => {
20
- const headers = sharedHeaders("AssociateResolverQueryLogConfig");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_AssociateResolverRuleCommand = async (input, context) => {
26
- const headers = sharedHeaders("AssociateResolverRule");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_CreateFirewallDomainListCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateFirewallDomainList");
33
- let body;
34
- body = JSON.stringify(se_CreateFirewallDomainListRequest(input, context));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_CreateFirewallRuleCommand = async (input, context) => {
38
- const headers = sharedHeaders("CreateFirewallRule");
39
- let body;
40
- body = JSON.stringify(se_CreateFirewallRuleRequest(input, context));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_CreateFirewallRuleGroupCommand = async (input, context) => {
44
- const headers = sharedHeaders("CreateFirewallRuleGroup");
45
- let body;
46
- body = JSON.stringify(se_CreateFirewallRuleGroupRequest(input, context));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_CreateOutpostResolverCommand = async (input, context) => {
50
- const headers = sharedHeaders("CreateOutpostResolver");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_CreateResolverEndpointCommand = async (input, context) => {
56
- const headers = sharedHeaders("CreateResolverEndpoint");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_CreateResolverQueryLogConfigCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateResolverQueryLogConfig");
63
- let body;
64
- body = JSON.stringify(se_CreateResolverQueryLogConfigRequest(input, context));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_CreateResolverRuleCommand = async (input, context) => {
68
- const headers = sharedHeaders("CreateResolverRule");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_DeleteFirewallDomainListCommand = async (input, context) => {
74
- const headers = sharedHeaders("DeleteFirewallDomainList");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_DeleteFirewallRuleCommand = async (input, context) => {
80
- const headers = sharedHeaders("DeleteFirewallRule");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_DeleteFirewallRuleGroupCommand = async (input, context) => {
86
- const headers = sharedHeaders("DeleteFirewallRuleGroup");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_DeleteOutpostResolverCommand = async (input, context) => {
92
- const headers = sharedHeaders("DeleteOutpostResolver");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_DeleteResolverEndpointCommand = async (input, context) => {
98
- const headers = sharedHeaders("DeleteResolverEndpoint");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_DeleteResolverQueryLogConfigCommand = async (input, context) => {
104
- const headers = sharedHeaders("DeleteResolverQueryLogConfig");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteResolverRuleCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteResolverRule");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DisassociateFirewallRuleGroupCommand = async (input, context) => {
116
- const headers = sharedHeaders("DisassociateFirewallRuleGroup");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_DisassociateResolverEndpointIpAddressCommand = async (input, context) => {
122
- const headers = sharedHeaders("DisassociateResolverEndpointIpAddress");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_DisassociateResolverQueryLogConfigCommand = async (input, context) => {
128
- const headers = sharedHeaders("DisassociateResolverQueryLogConfig");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_DisassociateResolverRuleCommand = async (input, context) => {
134
- const headers = sharedHeaders("DisassociateResolverRule");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_GetFirewallConfigCommand = async (input, context) => {
140
- const headers = sharedHeaders("GetFirewallConfig");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_GetFirewallDomainListCommand = async (input, context) => {
146
- const headers = sharedHeaders("GetFirewallDomainList");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_GetFirewallRuleGroupCommand = async (input, context) => {
152
- const headers = sharedHeaders("GetFirewallRuleGroup");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_GetFirewallRuleGroupAssociationCommand = async (input, context) => {
158
- const headers = sharedHeaders("GetFirewallRuleGroupAssociation");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_GetFirewallRuleGroupPolicyCommand = async (input, context) => {
164
- const headers = sharedHeaders("GetFirewallRuleGroupPolicy");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_GetOutpostResolverCommand = async (input, context) => {
170
- const headers = sharedHeaders("GetOutpostResolver");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_GetResolverConfigCommand = async (input, context) => {
176
- const headers = sharedHeaders("GetResolverConfig");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_GetResolverDnssecConfigCommand = async (input, context) => {
182
- const headers = sharedHeaders("GetResolverDnssecConfig");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_GetResolverEndpointCommand = async (input, context) => {
188
- const headers = sharedHeaders("GetResolverEndpoint");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_GetResolverQueryLogConfigCommand = async (input, context) => {
194
- const headers = sharedHeaders("GetResolverQueryLogConfig");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_GetResolverQueryLogConfigAssociationCommand = async (input, context) => {
200
- const headers = sharedHeaders("GetResolverQueryLogConfigAssociation");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_GetResolverQueryLogConfigPolicyCommand = async (input, context) => {
206
- const headers = sharedHeaders("GetResolverQueryLogConfigPolicy");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_GetResolverRuleCommand = async (input, context) => {
212
- const headers = sharedHeaders("GetResolverRule");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_GetResolverRuleAssociationCommand = async (input, context) => {
218
- const headers = sharedHeaders("GetResolverRuleAssociation");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_GetResolverRulePolicyCommand = async (input, context) => {
224
- const headers = sharedHeaders("GetResolverRulePolicy");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_ImportFirewallDomainsCommand = async (input, context) => {
230
- const headers = sharedHeaders("ImportFirewallDomains");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_ListFirewallConfigsCommand = async (input, context) => {
236
- const headers = sharedHeaders("ListFirewallConfigs");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_ListFirewallDomainListsCommand = async (input, context) => {
242
- const headers = sharedHeaders("ListFirewallDomainLists");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_ListFirewallDomainsCommand = async (input, context) => {
248
- const headers = sharedHeaders("ListFirewallDomains");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_ListFirewallRuleGroupAssociationsCommand = async (input, context) => {
254
- const headers = sharedHeaders("ListFirewallRuleGroupAssociations");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_ListFirewallRuleGroupsCommand = async (input, context) => {
260
- const headers = sharedHeaders("ListFirewallRuleGroups");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_ListFirewallRulesCommand = async (input, context) => {
266
- const headers = sharedHeaders("ListFirewallRules");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_ListOutpostResolversCommand = async (input, context) => {
272
- const headers = sharedHeaders("ListOutpostResolvers");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_ListResolverConfigsCommand = async (input, context) => {
278
- const headers = sharedHeaders("ListResolverConfigs");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_ListResolverDnssecConfigsCommand = async (input, context) => {
284
- const headers = sharedHeaders("ListResolverDnssecConfigs");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_ListResolverEndpointIpAddressesCommand = async (input, context) => {
290
- const headers = sharedHeaders("ListResolverEndpointIpAddresses");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_ListResolverEndpointsCommand = async (input, context) => {
296
- const headers = sharedHeaders("ListResolverEndpoints");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_ListResolverQueryLogConfigAssociationsCommand = async (input, context) => {
302
- const headers = sharedHeaders("ListResolverQueryLogConfigAssociations");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_ListResolverQueryLogConfigsCommand = async (input, context) => {
308
- const headers = sharedHeaders("ListResolverQueryLogConfigs");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_ListResolverRuleAssociationsCommand = async (input, context) => {
314
- const headers = sharedHeaders("ListResolverRuleAssociations");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_ListResolverRulesCommand = async (input, context) => {
320
- const headers = sharedHeaders("ListResolverRules");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_ListTagsForResourceCommand = async (input, context) => {
326
- const headers = sharedHeaders("ListTagsForResource");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_PutFirewallRuleGroupPolicyCommand = async (input, context) => {
332
- const headers = sharedHeaders("PutFirewallRuleGroupPolicy");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_PutResolverQueryLogConfigPolicyCommand = async (input, context) => {
338
- const headers = sharedHeaders("PutResolverQueryLogConfigPolicy");
339
- let body;
340
- body = JSON.stringify(_json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_PutResolverRulePolicyCommand = async (input, context) => {
344
- const headers = sharedHeaders("PutResolverRulePolicy");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_TagResourceCommand = async (input, context) => {
350
- const headers = sharedHeaders("TagResource");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_UntagResourceCommand = async (input, context) => {
356
- const headers = sharedHeaders("UntagResource");
357
- let body;
358
- body = JSON.stringify(_json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_UpdateFirewallConfigCommand = async (input, context) => {
362
- const headers = sharedHeaders("UpdateFirewallConfig");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_UpdateFirewallDomainsCommand = async (input, context) => {
368
- const headers = sharedHeaders("UpdateFirewallDomains");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_UpdateFirewallRuleCommand = async (input, context) => {
374
- const headers = sharedHeaders("UpdateFirewallRule");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_UpdateFirewallRuleGroupAssociationCommand = async (input, context) => {
380
- const headers = sharedHeaders("UpdateFirewallRuleGroupAssociation");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const se_UpdateOutpostResolverCommand = async (input, context) => {
386
- const headers = sharedHeaders("UpdateOutpostResolver");
387
- let body;
388
- body = JSON.stringify(_json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- export const se_UpdateResolverConfigCommand = async (input, context) => {
392
- const headers = sharedHeaders("UpdateResolverConfig");
393
- let body;
394
- body = JSON.stringify(_json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- export const se_UpdateResolverDnssecConfigCommand = async (input, context) => {
398
- const headers = sharedHeaders("UpdateResolverDnssecConfig");
399
- let body;
400
- body = JSON.stringify(_json(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- export const se_UpdateResolverEndpointCommand = async (input, context) => {
404
- const headers = sharedHeaders("UpdateResolverEndpoint");
405
- let body;
406
- body = JSON.stringify(_json(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- export const se_UpdateResolverRuleCommand = async (input, context) => {
410
- const headers = sharedHeaders("UpdateResolverRule");
411
- let body;
412
- body = JSON.stringify(_json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- export const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
416
- if (output.statusCode >= 300) {
417
- return de_CommandError(output, context);
418
- }
419
- const data = await parseBody(output.body, context);
420
- let contents = {};
421
- contents = _json(data);
422
- const response = {
423
- $metadata: deserializeMetadata(output),
424
- ...contents,
425
- };
426
- return response;
427
- };
428
- export const de_AssociateResolverEndpointIpAddressCommand = async (output, context) => {
429
- if (output.statusCode >= 300) {
430
- return de_CommandError(output, context);
431
- }
432
- const data = await parseBody(output.body, context);
433
- let contents = {};
434
- contents = _json(data);
435
- const response = {
436
- $metadata: deserializeMetadata(output),
437
- ...contents,
438
- };
439
- return response;
440
- };
441
- export const de_AssociateResolverQueryLogConfigCommand = async (output, context) => {
442
- if (output.statusCode >= 300) {
443
- return de_CommandError(output, context);
444
- }
445
- const data = await parseBody(output.body, context);
446
- let contents = {};
447
- contents = _json(data);
448
- const response = {
449
- $metadata: deserializeMetadata(output),
450
- ...contents,
451
- };
452
- return response;
453
- };
454
- export const de_AssociateResolverRuleCommand = async (output, context) => {
455
- if (output.statusCode >= 300) {
456
- return de_CommandError(output, context);
457
- }
458
- const data = await parseBody(output.body, context);
459
- let contents = {};
460
- contents = _json(data);
461
- const response = {
462
- $metadata: deserializeMetadata(output),
463
- ...contents,
464
- };
465
- return response;
466
- };
467
- export const de_CreateFirewallDomainListCommand = async (output, context) => {
468
- if (output.statusCode >= 300) {
469
- return de_CommandError(output, context);
470
- }
471
- const data = await parseBody(output.body, context);
472
- let contents = {};
473
- contents = _json(data);
474
- const response = {
475
- $metadata: deserializeMetadata(output),
476
- ...contents,
477
- };
478
- return response;
479
- };
480
- export const de_CreateFirewallRuleCommand = async (output, context) => {
481
- if (output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const data = await parseBody(output.body, context);
485
- let contents = {};
486
- contents = _json(data);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- ...contents,
490
- };
491
- return response;
492
- };
493
- export const de_CreateFirewallRuleGroupCommand = async (output, context) => {
494
- if (output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const data = await parseBody(output.body, context);
498
- let contents = {};
499
- contents = _json(data);
500
- const response = {
501
- $metadata: deserializeMetadata(output),
502
- ...contents,
503
- };
504
- return response;
505
- };
506
- export const de_CreateOutpostResolverCommand = async (output, context) => {
507
- if (output.statusCode >= 300) {
508
- return de_CommandError(output, context);
509
- }
510
- const data = await parseBody(output.body, context);
511
- let contents = {};
512
- contents = _json(data);
513
- const response = {
514
- $metadata: deserializeMetadata(output),
515
- ...contents,
516
- };
517
- return response;
518
- };
519
- export const de_CreateResolverEndpointCommand = async (output, context) => {
520
- if (output.statusCode >= 300) {
521
- return de_CommandError(output, context);
522
- }
523
- const data = await parseBody(output.body, context);
524
- let contents = {};
525
- contents = _json(data);
526
- const response = {
527
- $metadata: deserializeMetadata(output),
528
- ...contents,
529
- };
530
- return response;
531
- };
532
- export const de_CreateResolverQueryLogConfigCommand = async (output, context) => {
533
- if (output.statusCode >= 300) {
534
- return de_CommandError(output, context);
535
- }
536
- const data = await parseBody(output.body, context);
537
- let contents = {};
538
- contents = _json(data);
539
- const response = {
540
- $metadata: deserializeMetadata(output),
541
- ...contents,
542
- };
543
- return response;
544
- };
545
- export const de_CreateResolverRuleCommand = async (output, context) => {
546
- if (output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const data = await parseBody(output.body, context);
550
- let contents = {};
551
- contents = _json(data);
552
- const response = {
553
- $metadata: deserializeMetadata(output),
554
- ...contents,
555
- };
556
- return response;
557
- };
558
- export const de_DeleteFirewallDomainListCommand = async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await parseBody(output.body, context);
563
- let contents = {};
564
- contents = _json(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents,
568
- };
569
- return response;
570
- };
571
- export const de_DeleteFirewallRuleCommand = async (output, context) => {
572
- if (output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const data = await parseBody(output.body, context);
576
- let contents = {};
577
- contents = _json(data);
578
- const response = {
579
- $metadata: deserializeMetadata(output),
580
- ...contents,
581
- };
582
- return response;
583
- };
584
- export const de_DeleteFirewallRuleGroupCommand = async (output, context) => {
585
- if (output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- const data = await parseBody(output.body, context);
589
- let contents = {};
590
- contents = _json(data);
591
- const response = {
592
- $metadata: deserializeMetadata(output),
593
- ...contents,
594
- };
595
- return response;
596
- };
597
- export const de_DeleteOutpostResolverCommand = async (output, context) => {
598
- if (output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const data = await parseBody(output.body, context);
602
- let contents = {};
603
- contents = _json(data);
604
- const response = {
605
- $metadata: deserializeMetadata(output),
606
- ...contents,
607
- };
608
- return response;
609
- };
610
- export const de_DeleteResolverEndpointCommand = async (output, context) => {
611
- if (output.statusCode >= 300) {
612
- return de_CommandError(output, context);
613
- }
614
- const data = await parseBody(output.body, context);
615
- let contents = {};
616
- contents = _json(data);
617
- const response = {
618
- $metadata: deserializeMetadata(output),
619
- ...contents,
620
- };
621
- return response;
622
- };
623
- export const de_DeleteResolverQueryLogConfigCommand = async (output, context) => {
624
- if (output.statusCode >= 300) {
625
- return de_CommandError(output, context);
626
- }
627
- const data = await parseBody(output.body, context);
628
- let contents = {};
629
- contents = _json(data);
630
- const response = {
631
- $metadata: deserializeMetadata(output),
632
- ...contents,
633
- };
634
- return response;
635
- };
636
- export const de_DeleteResolverRuleCommand = async (output, context) => {
637
- if (output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const data = await parseBody(output.body, context);
641
- let contents = {};
642
- contents = _json(data);
643
- const response = {
644
- $metadata: deserializeMetadata(output),
645
- ...contents,
646
- };
647
- return response;
648
- };
649
- export const de_DisassociateFirewallRuleGroupCommand = async (output, context) => {
650
- if (output.statusCode >= 300) {
651
- return de_CommandError(output, context);
652
- }
653
- const data = await parseBody(output.body, context);
654
- let contents = {};
655
- contents = _json(data);
656
- const response = {
657
- $metadata: deserializeMetadata(output),
658
- ...contents,
659
- };
660
- return response;
661
- };
662
- export const de_DisassociateResolverEndpointIpAddressCommand = async (output, context) => {
663
- if (output.statusCode >= 300) {
664
- return de_CommandError(output, context);
665
- }
666
- const data = await parseBody(output.body, context);
667
- let contents = {};
668
- contents = _json(data);
669
- const response = {
670
- $metadata: deserializeMetadata(output),
671
- ...contents,
672
- };
673
- return response;
674
- };
675
- export const de_DisassociateResolverQueryLogConfigCommand = async (output, context) => {
676
- if (output.statusCode >= 300) {
677
- return de_CommandError(output, context);
678
- }
679
- const data = await parseBody(output.body, context);
680
- let contents = {};
681
- contents = _json(data);
682
- const response = {
683
- $metadata: deserializeMetadata(output),
684
- ...contents,
685
- };
686
- return response;
687
- };
688
- export const de_DisassociateResolverRuleCommand = async (output, context) => {
689
- if (output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const data = await parseBody(output.body, context);
693
- let contents = {};
694
- contents = _json(data);
695
- const response = {
696
- $metadata: deserializeMetadata(output),
697
- ...contents,
698
- };
699
- return response;
700
- };
701
- export const de_GetFirewallConfigCommand = async (output, context) => {
702
- if (output.statusCode >= 300) {
703
- return de_CommandError(output, context);
704
- }
705
- const data = await parseBody(output.body, context);
706
- let contents = {};
707
- contents = _json(data);
708
- const response = {
709
- $metadata: deserializeMetadata(output),
710
- ...contents,
711
- };
712
- return response;
713
- };
714
- export const de_GetFirewallDomainListCommand = async (output, context) => {
715
- if (output.statusCode >= 300) {
716
- return de_CommandError(output, context);
717
- }
718
- const data = await parseBody(output.body, context);
719
- let contents = {};
720
- contents = _json(data);
721
- const response = {
722
- $metadata: deserializeMetadata(output),
723
- ...contents,
724
- };
725
- return response;
726
- };
727
- export const de_GetFirewallRuleGroupCommand = async (output, context) => {
728
- if (output.statusCode >= 300) {
729
- return de_CommandError(output, context);
730
- }
731
- const data = await parseBody(output.body, context);
732
- let contents = {};
733
- contents = _json(data);
734
- const response = {
735
- $metadata: deserializeMetadata(output),
736
- ...contents,
737
- };
738
- return response;
739
- };
740
- export const de_GetFirewallRuleGroupAssociationCommand = async (output, context) => {
741
- if (output.statusCode >= 300) {
742
- return de_CommandError(output, context);
743
- }
744
- const data = await parseBody(output.body, context);
745
- let contents = {};
746
- contents = _json(data);
747
- const response = {
748
- $metadata: deserializeMetadata(output),
749
- ...contents,
750
- };
751
- return response;
752
- };
753
- export const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
754
- if (output.statusCode >= 300) {
755
- return de_CommandError(output, context);
756
- }
757
- const data = await parseBody(output.body, context);
758
- let contents = {};
759
- contents = _json(data);
760
- const response = {
761
- $metadata: deserializeMetadata(output),
762
- ...contents,
763
- };
764
- return response;
765
- };
766
- export const de_GetOutpostResolverCommand = async (output, context) => {
767
- if (output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- const data = await parseBody(output.body, context);
771
- let contents = {};
772
- contents = _json(data);
773
- const response = {
774
- $metadata: deserializeMetadata(output),
775
- ...contents,
776
- };
777
- return response;
778
- };
779
- export const de_GetResolverConfigCommand = async (output, context) => {
780
- if (output.statusCode >= 300) {
781
- return de_CommandError(output, context);
782
- }
783
- const data = await parseBody(output.body, context);
784
- let contents = {};
785
- contents = _json(data);
786
- const response = {
787
- $metadata: deserializeMetadata(output),
788
- ...contents,
789
- };
790
- return response;
791
- };
792
- export const de_GetResolverDnssecConfigCommand = async (output, context) => {
793
- if (output.statusCode >= 300) {
794
- return de_CommandError(output, context);
795
- }
796
- const data = await parseBody(output.body, context);
797
- let contents = {};
798
- contents = _json(data);
799
- const response = {
800
- $metadata: deserializeMetadata(output),
801
- ...contents,
802
- };
803
- return response;
804
- };
805
- export const de_GetResolverEndpointCommand = async (output, context) => {
806
- if (output.statusCode >= 300) {
807
- return de_CommandError(output, context);
808
- }
809
- const data = await parseBody(output.body, context);
810
- let contents = {};
811
- contents = _json(data);
812
- const response = {
813
- $metadata: deserializeMetadata(output),
814
- ...contents,
815
- };
816
- return response;
817
- };
818
- export const de_GetResolverQueryLogConfigCommand = async (output, context) => {
819
- if (output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const data = await parseBody(output.body, context);
823
- let contents = {};
824
- contents = _json(data);
825
- const response = {
826
- $metadata: deserializeMetadata(output),
827
- ...contents,
828
- };
829
- return response;
830
- };
831
- export const de_GetResolverQueryLogConfigAssociationCommand = async (output, context) => {
832
- if (output.statusCode >= 300) {
833
- return de_CommandError(output, context);
834
- }
835
- const data = await parseBody(output.body, context);
836
- let contents = {};
837
- contents = _json(data);
838
- const response = {
839
- $metadata: deserializeMetadata(output),
840
- ...contents,
841
- };
842
- return response;
843
- };
844
- export const de_GetResolverQueryLogConfigPolicyCommand = async (output, context) => {
845
- if (output.statusCode >= 300) {
846
- return de_CommandError(output, context);
847
- }
848
- const data = await parseBody(output.body, context);
849
- let contents = {};
850
- contents = _json(data);
851
- const response = {
852
- $metadata: deserializeMetadata(output),
853
- ...contents,
854
- };
855
- return response;
856
- };
857
- export const de_GetResolverRuleCommand = async (output, context) => {
858
- if (output.statusCode >= 300) {
859
- return de_CommandError(output, context);
860
- }
861
- const data = await parseBody(output.body, context);
862
- let contents = {};
863
- contents = _json(data);
864
- const response = {
865
- $metadata: deserializeMetadata(output),
866
- ...contents,
867
- };
868
- return response;
869
- };
870
- export const de_GetResolverRuleAssociationCommand = async (output, context) => {
871
- if (output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const data = await parseBody(output.body, context);
875
- let contents = {};
876
- contents = _json(data);
877
- const response = {
878
- $metadata: deserializeMetadata(output),
879
- ...contents,
880
- };
881
- return response;
882
- };
883
- export const de_GetResolverRulePolicyCommand = async (output, context) => {
884
- if (output.statusCode >= 300) {
885
- return de_CommandError(output, context);
886
- }
887
- const data = await parseBody(output.body, context);
888
- let contents = {};
889
- contents = _json(data);
890
- const response = {
891
- $metadata: deserializeMetadata(output),
892
- ...contents,
893
- };
894
- return response;
895
- };
896
- export const de_ImportFirewallDomainsCommand = async (output, context) => {
897
- if (output.statusCode >= 300) {
898
- return de_CommandError(output, context);
899
- }
900
- const data = await parseBody(output.body, context);
901
- let contents = {};
902
- contents = _json(data);
903
- const response = {
904
- $metadata: deserializeMetadata(output),
905
- ...contents,
906
- };
907
- return response;
908
- };
909
- export const de_ListFirewallConfigsCommand = async (output, context) => {
910
- if (output.statusCode >= 300) {
911
- return de_CommandError(output, context);
912
- }
913
- const data = await parseBody(output.body, context);
914
- let contents = {};
915
- contents = _json(data);
916
- const response = {
917
- $metadata: deserializeMetadata(output),
918
- ...contents,
919
- };
920
- return response;
921
- };
922
- export const de_ListFirewallDomainListsCommand = async (output, context) => {
923
- if (output.statusCode >= 300) {
924
- return de_CommandError(output, context);
925
- }
926
- const data = await parseBody(output.body, context);
927
- let contents = {};
928
- contents = _json(data);
929
- const response = {
930
- $metadata: deserializeMetadata(output),
931
- ...contents,
932
- };
933
- return response;
934
- };
935
- export const de_ListFirewallDomainsCommand = async (output, context) => {
936
- if (output.statusCode >= 300) {
937
- return de_CommandError(output, context);
938
- }
939
- const data = await parseBody(output.body, context);
940
- let contents = {};
941
- contents = _json(data);
942
- const response = {
943
- $metadata: deserializeMetadata(output),
944
- ...contents,
945
- };
946
- return response;
947
- };
948
- export const de_ListFirewallRuleGroupAssociationsCommand = async (output, context) => {
949
- if (output.statusCode >= 300) {
950
- return de_CommandError(output, context);
951
- }
952
- const data = await parseBody(output.body, context);
953
- let contents = {};
954
- contents = _json(data);
955
- const response = {
956
- $metadata: deserializeMetadata(output),
957
- ...contents,
958
- };
959
- return response;
960
- };
961
- export const de_ListFirewallRuleGroupsCommand = async (output, context) => {
962
- if (output.statusCode >= 300) {
963
- return de_CommandError(output, context);
964
- }
965
- const data = await parseBody(output.body, context);
966
- let contents = {};
967
- contents = _json(data);
968
- const response = {
969
- $metadata: deserializeMetadata(output),
970
- ...contents,
971
- };
972
- return response;
973
- };
974
- export const de_ListFirewallRulesCommand = async (output, context) => {
975
- if (output.statusCode >= 300) {
976
- return de_CommandError(output, context);
977
- }
978
- const data = await parseBody(output.body, context);
979
- let contents = {};
980
- contents = _json(data);
981
- const response = {
982
- $metadata: deserializeMetadata(output),
983
- ...contents,
984
- };
985
- return response;
986
- };
987
- export const de_ListOutpostResolversCommand = async (output, context) => {
988
- if (output.statusCode >= 300) {
989
- return de_CommandError(output, context);
990
- }
991
- const data = await parseBody(output.body, context);
992
- let contents = {};
993
- contents = _json(data);
994
- const response = {
995
- $metadata: deserializeMetadata(output),
996
- ...contents,
997
- };
998
- return response;
999
- };
1000
- export const de_ListResolverConfigsCommand = async (output, context) => {
1001
- if (output.statusCode >= 300) {
1002
- return de_CommandError(output, context);
1003
- }
1004
- const data = await parseBody(output.body, context);
1005
- let contents = {};
1006
- contents = _json(data);
1007
- const response = {
1008
- $metadata: deserializeMetadata(output),
1009
- ...contents,
1010
- };
1011
- return response;
1012
- };
1013
- export const de_ListResolverDnssecConfigsCommand = async (output, context) => {
1014
- if (output.statusCode >= 300) {
1015
- return de_CommandError(output, context);
1016
- }
1017
- const data = await parseBody(output.body, context);
1018
- let contents = {};
1019
- contents = _json(data);
1020
- const response = {
1021
- $metadata: deserializeMetadata(output),
1022
- ...contents,
1023
- };
1024
- return response;
1025
- };
1026
- export const de_ListResolverEndpointIpAddressesCommand = async (output, context) => {
1027
- if (output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const data = await parseBody(output.body, context);
1031
- let contents = {};
1032
- contents = _json(data);
1033
- const response = {
1034
- $metadata: deserializeMetadata(output),
1035
- ...contents,
1036
- };
1037
- return response;
1038
- };
1039
- export const de_ListResolverEndpointsCommand = async (output, context) => {
1040
- if (output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const data = await parseBody(output.body, context);
1044
- let contents = {};
1045
- contents = _json(data);
1046
- const response = {
1047
- $metadata: deserializeMetadata(output),
1048
- ...contents,
1049
- };
1050
- return response;
1051
- };
1052
- export const de_ListResolverQueryLogConfigAssociationsCommand = async (output, context) => {
1053
- if (output.statusCode >= 300) {
1054
- return de_CommandError(output, context);
1055
- }
1056
- const data = await parseBody(output.body, context);
1057
- let contents = {};
1058
- contents = _json(data);
1059
- const response = {
1060
- $metadata: deserializeMetadata(output),
1061
- ...contents,
1062
- };
1063
- return response;
1064
- };
1065
- export const de_ListResolverQueryLogConfigsCommand = async (output, context) => {
1066
- if (output.statusCode >= 300) {
1067
- return de_CommandError(output, context);
1068
- }
1069
- const data = await parseBody(output.body, context);
1070
- let contents = {};
1071
- contents = _json(data);
1072
- const response = {
1073
- $metadata: deserializeMetadata(output),
1074
- ...contents,
1075
- };
1076
- return response;
1077
- };
1078
- export const de_ListResolverRuleAssociationsCommand = async (output, context) => {
1079
- if (output.statusCode >= 300) {
1080
- return de_CommandError(output, context);
1081
- }
1082
- const data = await parseBody(output.body, context);
1083
- let contents = {};
1084
- contents = _json(data);
1085
- const response = {
1086
- $metadata: deserializeMetadata(output),
1087
- ...contents,
1088
- };
1089
- return response;
1090
- };
1091
- export const de_ListResolverRulesCommand = async (output, context) => {
1092
- if (output.statusCode >= 300) {
1093
- return de_CommandError(output, context);
1094
- }
1095
- const data = await parseBody(output.body, context);
1096
- let contents = {};
1097
- contents = _json(data);
1098
- const response = {
1099
- $metadata: deserializeMetadata(output),
1100
- ...contents,
1101
- };
1102
- return response;
1103
- };
1104
- export const de_ListTagsForResourceCommand = async (output, context) => {
1105
- if (output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const data = await parseBody(output.body, context);
1109
- let contents = {};
1110
- contents = _json(data);
1111
- const response = {
1112
- $metadata: deserializeMetadata(output),
1113
- ...contents,
1114
- };
1115
- return response;
1116
- };
1117
- export const de_PutFirewallRuleGroupPolicyCommand = async (output, context) => {
1118
- if (output.statusCode >= 300) {
1119
- return de_CommandError(output, context);
1120
- }
1121
- const data = await parseBody(output.body, context);
1122
- let contents = {};
1123
- contents = _json(data);
1124
- const response = {
1125
- $metadata: deserializeMetadata(output),
1126
- ...contents,
1127
- };
1128
- return response;
1129
- };
1130
- export const de_PutResolverQueryLogConfigPolicyCommand = async (output, context) => {
1131
- if (output.statusCode >= 300) {
1132
- return de_CommandError(output, context);
1133
- }
1134
- const data = await parseBody(output.body, context);
1135
- let contents = {};
1136
- contents = _json(data);
1137
- const response = {
1138
- $metadata: deserializeMetadata(output),
1139
- ...contents,
1140
- };
1141
- return response;
1142
- };
1143
- export const de_PutResolverRulePolicyCommand = async (output, context) => {
1144
- if (output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const data = await parseBody(output.body, context);
1148
- let contents = {};
1149
- contents = _json(data);
1150
- const response = {
1151
- $metadata: deserializeMetadata(output),
1152
- ...contents,
1153
- };
1154
- return response;
1155
- };
1156
- export const de_TagResourceCommand = async (output, context) => {
1157
- if (output.statusCode >= 300) {
1158
- return de_CommandError(output, context);
1159
- }
1160
- const data = await parseBody(output.body, context);
1161
- let contents = {};
1162
- contents = _json(data);
1163
- const response = {
1164
- $metadata: deserializeMetadata(output),
1165
- ...contents,
1166
- };
1167
- return response;
1168
- };
1169
- export const de_UntagResourceCommand = async (output, context) => {
1170
- if (output.statusCode >= 300) {
1171
- return de_CommandError(output, context);
1172
- }
1173
- const data = await parseBody(output.body, context);
1174
- let contents = {};
1175
- contents = _json(data);
1176
- const response = {
1177
- $metadata: deserializeMetadata(output),
1178
- ...contents,
1179
- };
1180
- return response;
1181
- };
1182
- export const de_UpdateFirewallConfigCommand = async (output, context) => {
1183
- if (output.statusCode >= 300) {
1184
- return de_CommandError(output, context);
1185
- }
1186
- const data = await parseBody(output.body, context);
1187
- let contents = {};
1188
- contents = _json(data);
1189
- const response = {
1190
- $metadata: deserializeMetadata(output),
1191
- ...contents,
1192
- };
1193
- return response;
1194
- };
1195
- export const de_UpdateFirewallDomainsCommand = async (output, context) => {
1196
- if (output.statusCode >= 300) {
1197
- return de_CommandError(output, context);
1198
- }
1199
- const data = await parseBody(output.body, context);
1200
- let contents = {};
1201
- contents = _json(data);
1202
- const response = {
1203
- $metadata: deserializeMetadata(output),
1204
- ...contents,
1205
- };
1206
- return response;
1207
- };
1208
- export const de_UpdateFirewallRuleCommand = async (output, context) => {
1209
- if (output.statusCode >= 300) {
1210
- return de_CommandError(output, context);
1211
- }
1212
- const data = await parseBody(output.body, context);
1213
- let contents = {};
1214
- contents = _json(data);
1215
- const response = {
1216
- $metadata: deserializeMetadata(output),
1217
- ...contents,
1218
- };
1219
- return response;
1220
- };
1221
- export const de_UpdateFirewallRuleGroupAssociationCommand = async (output, context) => {
1222
- if (output.statusCode >= 300) {
1223
- return de_CommandError(output, context);
1224
- }
1225
- const data = await parseBody(output.body, context);
1226
- let contents = {};
1227
- contents = _json(data);
1228
- const response = {
1229
- $metadata: deserializeMetadata(output),
1230
- ...contents,
1231
- };
1232
- return response;
1233
- };
1234
- export const de_UpdateOutpostResolverCommand = async (output, context) => {
1235
- if (output.statusCode >= 300) {
1236
- return de_CommandError(output, context);
1237
- }
1238
- const data = await parseBody(output.body, context);
1239
- let contents = {};
1240
- contents = _json(data);
1241
- const response = {
1242
- $metadata: deserializeMetadata(output),
1243
- ...contents,
1244
- };
1245
- return response;
1246
- };
1247
- export const de_UpdateResolverConfigCommand = async (output, context) => {
1248
- if (output.statusCode >= 300) {
1249
- return de_CommandError(output, context);
1250
- }
1251
- const data = await parseBody(output.body, context);
1252
- let contents = {};
1253
- contents = _json(data);
1254
- const response = {
1255
- $metadata: deserializeMetadata(output),
1256
- ...contents,
1257
- };
1258
- return response;
1259
- };
1260
- export const de_UpdateResolverDnssecConfigCommand = async (output, context) => {
1261
- if (output.statusCode >= 300) {
1262
- return de_CommandError(output, context);
1263
- }
1264
- const data = await parseBody(output.body, context);
1265
- let contents = {};
1266
- contents = _json(data);
1267
- const response = {
1268
- $metadata: deserializeMetadata(output),
1269
- ...contents,
1270
- };
1271
- return response;
1272
- };
1273
- export const de_UpdateResolverEndpointCommand = async (output, context) => {
1274
- if (output.statusCode >= 300) {
1275
- return de_CommandError(output, context);
1276
- }
1277
- const data = await parseBody(output.body, context);
1278
- let contents = {};
1279
- contents = _json(data);
1280
- const response = {
1281
- $metadata: deserializeMetadata(output),
1282
- ...contents,
1283
- };
1284
- return response;
1285
- };
1286
- export const de_UpdateResolverRuleCommand = async (output, context) => {
1287
- if (output.statusCode >= 300) {
1288
- return de_CommandError(output, context);
1289
- }
1290
- const data = await parseBody(output.body, context);
1291
- let contents = {};
1292
- contents = _json(data);
1293
- const response = {
1294
- $metadata: deserializeMetadata(output),
1295
- ...contents,
1296
- };
1297
- return response;
1298
- };
1299
- const de_CommandError = async (output, context) => {
1300
- const parsedOutput = {
1301
- ...output,
1302
- body: await parseErrorBody(output.body, context),
1303
- };
1304
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1305
- switch (errorCode) {
1306
- case "AccessDeniedException":
1307
- case "com.amazonaws.route53resolver#AccessDeniedException":
1308
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1309
- case "ConflictException":
1310
- case "com.amazonaws.route53resolver#ConflictException":
1311
- throw await de_ConflictExceptionRes(parsedOutput, context);
1312
- case "InternalServiceErrorException":
1313
- case "com.amazonaws.route53resolver#InternalServiceErrorException":
1314
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1315
- case "LimitExceededException":
1316
- case "com.amazonaws.route53resolver#LimitExceededException":
1317
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1318
- case "ResourceNotFoundException":
1319
- case "com.amazonaws.route53resolver#ResourceNotFoundException":
1320
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1321
- case "ThrottlingException":
1322
- case "com.amazonaws.route53resolver#ThrottlingException":
1323
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1324
- case "ValidationException":
1325
- case "com.amazonaws.route53resolver#ValidationException":
1326
- throw await de_ValidationExceptionRes(parsedOutput, context);
1327
- case "InvalidParameterException":
1328
- case "com.amazonaws.route53resolver#InvalidParameterException":
1329
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1330
- case "InvalidRequestException":
1331
- case "com.amazonaws.route53resolver#InvalidRequestException":
1332
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1333
- case "ResourceExistsException":
1334
- case "com.amazonaws.route53resolver#ResourceExistsException":
1335
- throw await de_ResourceExistsExceptionRes(parsedOutput, context);
1336
- case "ResourceUnavailableException":
1337
- case "com.amazonaws.route53resolver#ResourceUnavailableException":
1338
- throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
1339
- case "ServiceQuotaExceededException":
1340
- case "com.amazonaws.route53resolver#ServiceQuotaExceededException":
1341
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1342
- case "ResourceInUseException":
1343
- case "com.amazonaws.route53resolver#ResourceInUseException":
1344
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1345
- case "UnknownResourceException":
1346
- case "com.amazonaws.route53resolver#UnknownResourceException":
1347
- throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1348
- case "InvalidNextTokenException":
1349
- case "com.amazonaws.route53resolver#InvalidNextTokenException":
1350
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1351
- case "InvalidPolicyDocument":
1352
- case "com.amazonaws.route53resolver#InvalidPolicyDocument":
1353
- throw await de_InvalidPolicyDocumentRes(parsedOutput, context);
1354
- case "InvalidTagException":
1355
- case "com.amazonaws.route53resolver#InvalidTagException":
1356
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
1357
- default:
1358
- const parsedBody = parsedOutput.body;
1359
- return throwDefaultError({
1360
- output,
1361
- parsedBody,
1362
- errorCode,
1363
- });
1364
- }
1365
- };
1366
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1367
- const body = parsedOutput.body;
1368
- const deserialized = _json(body);
1369
- const exception = new AccessDeniedException({
1370
- $metadata: deserializeMetadata(parsedOutput),
1371
- ...deserialized,
1372
- });
1373
- return __decorateServiceException(exception, body);
1374
- };
1375
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1376
- const body = parsedOutput.body;
1377
- const deserialized = _json(body);
1378
- const exception = new ConflictException({
1379
- $metadata: deserializeMetadata(parsedOutput),
1380
- ...deserialized,
1381
- });
1382
- return __decorateServiceException(exception, body);
1383
- };
1384
- const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
1385
- const body = parsedOutput.body;
1386
- const deserialized = _json(body);
1387
- const exception = new InternalServiceErrorException({
1388
- $metadata: deserializeMetadata(parsedOutput),
1389
- ...deserialized,
1390
- });
1391
- return __decorateServiceException(exception, body);
1392
- };
1393
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1394
- const body = parsedOutput.body;
1395
- const deserialized = _json(body);
1396
- const exception = new InvalidNextTokenException({
1397
- $metadata: deserializeMetadata(parsedOutput),
1398
- ...deserialized,
1399
- });
1400
- return __decorateServiceException(exception, body);
1401
- };
1402
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1403
- const body = parsedOutput.body;
1404
- const deserialized = _json(body);
1405
- const exception = new InvalidParameterException({
1406
- $metadata: deserializeMetadata(parsedOutput),
1407
- ...deserialized,
1408
- });
1409
- return __decorateServiceException(exception, body);
1410
- };
1411
- const de_InvalidPolicyDocumentRes = async (parsedOutput, context) => {
1412
- const body = parsedOutput.body;
1413
- const deserialized = _json(body);
1414
- const exception = new InvalidPolicyDocument({
1415
- $metadata: deserializeMetadata(parsedOutput),
1416
- ...deserialized,
1417
- });
1418
- return __decorateServiceException(exception, body);
1419
- };
1420
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1421
- const body = parsedOutput.body;
1422
- const deserialized = _json(body);
1423
- const exception = new InvalidRequestException({
1424
- $metadata: deserializeMetadata(parsedOutput),
1425
- ...deserialized,
1426
- });
1427
- return __decorateServiceException(exception, body);
1428
- };
1429
- const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
1430
- const body = parsedOutput.body;
1431
- const deserialized = _json(body);
1432
- const exception = new InvalidTagException({
1433
- $metadata: deserializeMetadata(parsedOutput),
1434
- ...deserialized,
1435
- });
1436
- return __decorateServiceException(exception, body);
1437
- };
1438
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1439
- const body = parsedOutput.body;
1440
- const deserialized = _json(body);
1441
- const exception = new LimitExceededException({
1442
- $metadata: deserializeMetadata(parsedOutput),
1443
- ...deserialized,
1444
- });
1445
- return __decorateServiceException(exception, body);
1446
- };
1447
- const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
1448
- const body = parsedOutput.body;
1449
- const deserialized = _json(body);
1450
- const exception = new ResourceExistsException({
1451
- $metadata: deserializeMetadata(parsedOutput),
1452
- ...deserialized,
1453
- });
1454
- return __decorateServiceException(exception, body);
1455
- };
1456
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1457
- const body = parsedOutput.body;
1458
- const deserialized = _json(body);
1459
- const exception = new ResourceInUseException({
1460
- $metadata: deserializeMetadata(parsedOutput),
1461
- ...deserialized,
1462
- });
1463
- return __decorateServiceException(exception, body);
1464
- };
1465
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1466
- const body = parsedOutput.body;
1467
- const deserialized = _json(body);
1468
- const exception = new ResourceNotFoundException({
1469
- $metadata: deserializeMetadata(parsedOutput),
1470
- ...deserialized,
1471
- });
1472
- return __decorateServiceException(exception, body);
1473
- };
1474
- const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
1475
- const body = parsedOutput.body;
1476
- const deserialized = _json(body);
1477
- const exception = new ResourceUnavailableException({
1478
- $metadata: deserializeMetadata(parsedOutput),
1479
- ...deserialized,
1480
- });
1481
- return __decorateServiceException(exception, body);
1482
- };
1483
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1484
- const body = parsedOutput.body;
1485
- const deserialized = _json(body);
1486
- const exception = new ServiceQuotaExceededException({
1487
- $metadata: deserializeMetadata(parsedOutput),
1488
- ...deserialized,
1489
- });
1490
- return __decorateServiceException(exception, body);
1491
- };
1492
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1493
- const body = parsedOutput.body;
1494
- const deserialized = _json(body);
1495
- const exception = new ThrottlingException({
1496
- $metadata: deserializeMetadata(parsedOutput),
1497
- ...deserialized,
1498
- });
1499
- return __decorateServiceException(exception, body);
1500
- };
1501
- const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
1502
- const body = parsedOutput.body;
1503
- const deserialized = _json(body);
1504
- const exception = new UnknownResourceException({
1505
- $metadata: deserializeMetadata(parsedOutput),
1506
- ...deserialized,
1507
- });
1508
- return __decorateServiceException(exception, body);
1509
- };
1510
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1511
- const body = parsedOutput.body;
1512
- const deserialized = _json(body);
1513
- const exception = new ValidationException({
1514
- $metadata: deserializeMetadata(parsedOutput),
1515
- ...deserialized,
1516
- });
1517
- return __decorateServiceException(exception, body);
1518
- };
1519
- const se_AssociateFirewallRuleGroupRequest = (input, context) => {
1520
- return take(input, {
1521
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
1522
- FirewallRuleGroupId: [],
1523
- MutationProtection: [],
1524
- Name: [],
1525
- Priority: [],
1526
- Tags: _json,
1527
- VpcId: [],
1528
- });
1529
- };
1530
- const se_CreateFirewallDomainListRequest = (input, context) => {
1531
- return take(input, {
1532
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
1533
- Name: [],
1534
- Tags: _json,
1535
- });
1536
- };
1537
- const se_CreateFirewallRuleGroupRequest = (input, context) => {
1538
- return take(input, {
1539
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
1540
- Name: [],
1541
- Tags: _json,
1542
- });
1543
- };
1544
- const se_CreateFirewallRuleRequest = (input, context) => {
1545
- return take(input, {
1546
- Action: [],
1547
- BlockOverrideDnsType: [],
1548
- BlockOverrideDomain: [],
1549
- BlockOverrideTtl: [],
1550
- BlockResponse: [],
1551
- ConfidenceThreshold: [],
1552
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
1553
- DnsThreatProtection: [],
1554
- FirewallDomainListId: [],
1555
- FirewallDomainRedirectionAction: [],
1556
- FirewallRuleGroupId: [],
1557
- Name: [],
1558
- Priority: [],
1559
- Qtype: [],
1560
- });
1561
- };
1562
- const se_CreateResolverQueryLogConfigRequest = (input, context) => {
1563
- return take(input, {
1564
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
1565
- DestinationArn: [],
1566
- Name: [],
1567
- Tags: _json,
1568
- });
1569
- };
1570
- const deserializeMetadata = (output) => ({
1571
- httpStatusCode: output.statusCode,
1572
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1573
- extendedRequestId: output.headers["x-amz-id-2"],
1574
- cfId: output.headers["x-amz-cf-id"],
1575
- });
1576
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1577
- const throwDefaultError = withBaseException(__BaseException);
1578
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1580
- const contents = {
1581
- protocol,
1582
- hostname,
1583
- port,
1584
- method: "POST",
1585
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1586
- headers,
1587
- };
1588
- if (resolvedHostname !== undefined) {
1589
- contents.hostname = resolvedHostname;
1590
- }
1591
- if (body !== undefined) {
1592
- contents.body = body;
1593
- }
1594
- return new __HttpRequest(contents);
1595
- };
1596
- function sharedHeaders(operation) {
1597
- return {
1598
- "content-type": "application/x-amz-json-1.1",
1599
- "x-amz-target": `Route53Resolver.${operation}`,
1600
- };
1601
- }