@aws-sdk/client-route-53 3.929.0 → 3.931.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 (91) hide show
  1. package/dist-cjs/index.js +3942 -5218
  2. package/dist-cjs/runtimeConfig.shared.js +6 -0
  3. package/dist-es/Route53Client.js +2 -0
  4. package/dist-es/commands/ActivateKeySigningKeyCommand.js +3 -10
  5. package/dist-es/commands/AssociateVPCWithHostedZoneCommand.js +3 -10
  6. package/dist-es/commands/ChangeCidrCollectionCommand.js +3 -10
  7. package/dist-es/commands/ChangeResourceRecordSetsCommand.js +2 -6
  8. package/dist-es/commands/ChangeTagsForResourceCommand.js +3 -9
  9. package/dist-es/commands/CreateCidrCollectionCommand.js +3 -9
  10. package/dist-es/commands/CreateHealthCheckCommand.js +3 -9
  11. package/dist-es/commands/CreateHostedZoneCommand.js +3 -10
  12. package/dist-es/commands/CreateKeySigningKeyCommand.js +3 -10
  13. package/dist-es/commands/CreateQueryLoggingConfigCommand.js +3 -10
  14. package/dist-es/commands/CreateReusableDelegationSetCommand.js +3 -10
  15. package/dist-es/commands/CreateTrafficPolicyCommand.js +3 -9
  16. package/dist-es/commands/CreateTrafficPolicyInstanceCommand.js +3 -10
  17. package/dist-es/commands/CreateTrafficPolicyVersionCommand.js +3 -10
  18. package/dist-es/commands/CreateVPCAssociationAuthorizationCommand.js +3 -10
  19. package/dist-es/commands/DeactivateKeySigningKeyCommand.js +3 -10
  20. package/dist-es/commands/DeleteCidrCollectionCommand.js +3 -10
  21. package/dist-es/commands/DeleteHealthCheckCommand.js +3 -9
  22. package/dist-es/commands/DeleteHostedZoneCommand.js +3 -10
  23. package/dist-es/commands/DeleteKeySigningKeyCommand.js +3 -10
  24. package/dist-es/commands/DeleteQueryLoggingConfigCommand.js +3 -10
  25. package/dist-es/commands/DeleteReusableDelegationSetCommand.js +3 -10
  26. package/dist-es/commands/DeleteTrafficPolicyCommand.js +3 -10
  27. package/dist-es/commands/DeleteTrafficPolicyInstanceCommand.js +3 -10
  28. package/dist-es/commands/DeleteVPCAssociationAuthorizationCommand.js +3 -10
  29. package/dist-es/commands/DisableHostedZoneDNSSECCommand.js +3 -10
  30. package/dist-es/commands/DisassociateVPCFromHostedZoneCommand.js +3 -10
  31. package/dist-es/commands/EnableHostedZoneDNSSECCommand.js +3 -10
  32. package/dist-es/commands/GetAccountLimitCommand.js +3 -9
  33. package/dist-es/commands/GetChangeCommand.js +3 -10
  34. package/dist-es/commands/GetCheckerIpRangesCommand.js +3 -9
  35. package/dist-es/commands/GetDNSSECCommand.js +3 -10
  36. package/dist-es/commands/GetGeoLocationCommand.js +3 -9
  37. package/dist-es/commands/GetHealthCheckCommand.js +3 -9
  38. package/dist-es/commands/GetHealthCheckCountCommand.js +3 -9
  39. package/dist-es/commands/GetHealthCheckLastFailureReasonCommand.js +3 -9
  40. package/dist-es/commands/GetHealthCheckStatusCommand.js +3 -9
  41. package/dist-es/commands/GetHostedZoneCommand.js +3 -10
  42. package/dist-es/commands/GetHostedZoneCountCommand.js +3 -9
  43. package/dist-es/commands/GetHostedZoneLimitCommand.js +3 -10
  44. package/dist-es/commands/GetQueryLoggingConfigCommand.js +3 -10
  45. package/dist-es/commands/GetReusableDelegationSetCommand.js +3 -10
  46. package/dist-es/commands/GetReusableDelegationSetLimitCommand.js +3 -10
  47. package/dist-es/commands/GetTrafficPolicyCommand.js +3 -10
  48. package/dist-es/commands/GetTrafficPolicyInstanceCommand.js +3 -10
  49. package/dist-es/commands/GetTrafficPolicyInstanceCountCommand.js +3 -9
  50. package/dist-es/commands/ListCidrBlocksCommand.js +3 -9
  51. package/dist-es/commands/ListCidrCollectionsCommand.js +3 -9
  52. package/dist-es/commands/ListCidrLocationsCommand.js +3 -9
  53. package/dist-es/commands/ListGeoLocationsCommand.js +3 -9
  54. package/dist-es/commands/ListHealthChecksCommand.js +3 -9
  55. package/dist-es/commands/ListHostedZonesByNameCommand.js +3 -10
  56. package/dist-es/commands/ListHostedZonesByVPCCommand.js +3 -9
  57. package/dist-es/commands/ListHostedZonesCommand.js +3 -10
  58. package/dist-es/commands/ListQueryLoggingConfigsCommand.js +3 -10
  59. package/dist-es/commands/ListResourceRecordSetsCommand.js +3 -10
  60. package/dist-es/commands/ListReusableDelegationSetsCommand.js +3 -9
  61. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  62. package/dist-es/commands/ListTagsForResourcesCommand.js +3 -9
  63. package/dist-es/commands/ListTrafficPoliciesCommand.js +3 -9
  64. package/dist-es/commands/ListTrafficPolicyInstancesByHostedZoneCommand.js +3 -10
  65. package/dist-es/commands/ListTrafficPolicyInstancesByPolicyCommand.js +3 -9
  66. package/dist-es/commands/ListTrafficPolicyInstancesCommand.js +3 -9
  67. package/dist-es/commands/ListTrafficPolicyVersionsCommand.js +3 -10
  68. package/dist-es/commands/ListVPCAssociationAuthorizationsCommand.js +3 -10
  69. package/dist-es/commands/TestDNSAnswerCommand.js +3 -10
  70. package/dist-es/commands/UpdateHealthCheckCommand.js +3 -9
  71. package/dist-es/commands/UpdateHostedZoneCommentCommand.js +3 -10
  72. package/dist-es/commands/UpdateTrafficPolicyCommentCommand.js +3 -10
  73. package/dist-es/commands/UpdateTrafficPolicyInstanceCommand.js +3 -10
  74. package/dist-es/runtimeConfig.shared.js +6 -0
  75. package/dist-es/schemas/schemas_0.js +3797 -0
  76. package/dist-types/Route53Client.d.ts +10 -1
  77. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  78. package/dist-types/runtimeConfig.d.ts +1 -0
  79. package/dist-types/runtimeConfig.native.d.ts +1 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  81. package/dist-types/schemas/schemas_0.d.ts +355 -0
  82. package/dist-types/ts3.4/Route53Client.d.ts +4 -0
  83. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -0
  84. package/dist-types/ts3.4/runtimeConfig.d.ts +6 -0
  85. package/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -0
  86. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +7 -0
  87. package/dist-types/ts3.4/schemas/schemas_0.d.ts +360 -0
  88. package/package.json +35 -36
  89. package/dist-es/protocols/Aws_restXml.js +0 -4684
  90. package/dist-types/protocols/Aws_restXml.d.ts +0 -632
  91. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +0 -845
@@ -1,4684 +0,0 @@
1
- import { loadRestXmlErrorCode, parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { XmlNode as __XmlNode } from "@aws-sdk/xml-builder";
3
- import { requestBuilder as rb } from "@smithy/core";
4
- import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, getArrayIfSingleItem as __getArrayIfSingleItem, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
5
- import { CidrBlockInUseException, CidrCollectionAlreadyExistsException, CidrCollectionInUseException, CidrCollectionVersionMismatchException, ConcurrentModification, ConflictingDomainExists, ConflictingTypes, DelegationSetAlreadyCreated, DelegationSetAlreadyReusable, DelegationSetInUse, DelegationSetNotAvailable, DelegationSetNotReusable, DNSSECNotFound, HealthCheckAlreadyExists, HealthCheckInUse, HealthCheckVersionMismatch, HostedZoneAlreadyExists, HostedZoneNotEmpty, HostedZoneNotFound, HostedZoneNotPrivate, HostedZonePartiallyDelegated, IncompatibleVersion, InsufficientCloudWatchLogsResourcePolicy, InvalidArgument, InvalidChangeBatch, InvalidDomainName, InvalidInput, InvalidKeySigningKeyName, InvalidKeySigningKeyStatus, InvalidKMSArn, InvalidPaginationToken, InvalidSigningStatus, InvalidTrafficPolicyDocument, InvalidVPCId, KeySigningKeyAlreadyExists, KeySigningKeyInParentDSRecord, KeySigningKeyInUse, KeySigningKeyWithActiveStatusNotFound, LastVPCAssociation, LimitsExceeded, NoSuchChange, NoSuchCidrCollectionException, NoSuchCidrLocationException, NoSuchCloudWatchLogsLogGroup, NoSuchDelegationSet, NoSuchGeoLocation, NoSuchHealthCheck, NoSuchHostedZone, NoSuchKeySigningKey, NoSuchQueryLoggingConfig, NoSuchTrafficPolicy, NoSuchTrafficPolicyInstance, NotAuthorizedException, PriorRequestNotComplete, PublicZoneVPCAssociation, QueryLoggingConfigAlreadyExists, ThrottlingException, TooManyHealthChecks, TooManyHostedZones, TooManyKeySigningKeys, TooManyTrafficPolicies, TooManyTrafficPolicyInstances, TooManyTrafficPolicyVersionsForCurrentPolicy, TooManyVPCAssociationAuthorizations, TrafficPolicyAlreadyExists, TrafficPolicyInstanceAlreadyExists, TrafficPolicyInUse, VPCAssociationAuthorizationNotFound, VPCAssociationNotFound, } from "../models/models_0";
6
- import { Route53ServiceException as __BaseException } from "../models/Route53ServiceException";
7
- export const se_ActivateKeySigningKeyCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {};
10
- b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate");
11
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
12
- b.p("Name", () => input.Name, "{Name}", false);
13
- let body;
14
- b.m("POST").h(headers).b(body);
15
- return b.build();
16
- };
17
- export const se_AssociateVPCWithHostedZoneCommand = async (input, context) => {
18
- const b = rb(input, context);
19
- const headers = {
20
- "content-type": "application/xml",
21
- };
22
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc");
23
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
24
- let body;
25
- body = _ve;
26
- const bn = new __XmlNode(_AVPCWHZR);
27
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
28
- if (input[_C] != null) {
29
- bn.c(__XmlNode.of(_AVPCC, input[_C]).n(_C));
30
- }
31
- if (input[_VPC] != null) {
32
- bn.c(se_VPC(input[_VPC], context).n(_VPC));
33
- }
34
- body += bn.toString();
35
- b.m("POST").h(headers).b(body);
36
- return b.build();
37
- };
38
- export const se_ChangeCidrCollectionCommand = async (input, context) => {
39
- const b = rb(input, context);
40
- const headers = {
41
- "content-type": "application/xml",
42
- };
43
- b.bp("/2013-04-01/cidrcollection/{Id}");
44
- b.p("Id", () => input.Id, "{Id}", false);
45
- let body;
46
- body = _ve;
47
- const bn = new __XmlNode(_CCCR);
48
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
49
- bn.lc(input, "Changes", "Changes", () => se_CidrCollectionChanges(input[_Ch], context));
50
- if (input[_CV] != null) {
51
- bn.c(__XmlNode.of(_CV, String(input[_CV])).n(_CV));
52
- }
53
- body += bn.toString();
54
- b.m("POST").h(headers).b(body);
55
- return b.build();
56
- };
57
- export const se_ChangeResourceRecordSetsCommand = async (input, context) => {
58
- const b = rb(input, context);
59
- const headers = {
60
- "content-type": "application/xml",
61
- };
62
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset");
63
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
64
- let body;
65
- body = _ve;
66
- const bn = new __XmlNode(_CRRSR);
67
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
68
- if (input[_CB] != null) {
69
- bn.c(se_ChangeBatch(input[_CB], context).n(_CB));
70
- }
71
- body += bn.toString();
72
- b.m("POST").h(headers).b(body);
73
- return b.build();
74
- };
75
- export const se_ChangeTagsForResourceCommand = async (input, context) => {
76
- const b = rb(input, context);
77
- const headers = {
78
- "content-type": "application/xml",
79
- };
80
- b.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}");
81
- b.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
82
- b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
83
- let body;
84
- body = _ve;
85
- const bn = new __XmlNode(_CTFRR);
86
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
87
- bn.lc(input, "AddTags", "AddTags", () => se_TagList(input[_AT], context));
88
- bn.lc(input, "RemoveTagKeys", "RemoveTagKeys", () => se_TagKeyList(input[_RTK], context));
89
- body += bn.toString();
90
- b.m("POST").h(headers).b(body);
91
- return b.build();
92
- };
93
- export const se_CreateCidrCollectionCommand = async (input, context) => {
94
- const b = rb(input, context);
95
- const headers = {
96
- "content-type": "application/xml",
97
- };
98
- b.bp("/2013-04-01/cidrcollection");
99
- let body;
100
- body = _ve;
101
- const bn = new __XmlNode(_CCCRr);
102
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
103
- if (input[_CR] != null) {
104
- bn.c(__XmlNode.of(_CN, input[_CR]).n(_CR));
105
- }
106
- if (input[_N] != null) {
107
- bn.c(__XmlNode.of(_CNo, input[_N]).n(_N));
108
- }
109
- body += bn.toString();
110
- b.m("POST").h(headers).b(body);
111
- return b.build();
112
- };
113
- export const se_CreateHealthCheckCommand = async (input, context) => {
114
- const b = rb(input, context);
115
- const headers = {
116
- "content-type": "application/xml",
117
- };
118
- b.bp("/2013-04-01/healthcheck");
119
- let body;
120
- body = _ve;
121
- const bn = new __XmlNode(_CHCR);
122
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
123
- if (input[_CR] != null) {
124
- bn.c(__XmlNode.of(_HCN, input[_CR]).n(_CR));
125
- }
126
- if (input[_HCC] != null) {
127
- bn.c(se_HealthCheckConfig(input[_HCC], context).n(_HCC));
128
- }
129
- body += bn.toString();
130
- b.m("POST").h(headers).b(body);
131
- return b.build();
132
- };
133
- export const se_CreateHostedZoneCommand = async (input, context) => {
134
- const b = rb(input, context);
135
- const headers = {
136
- "content-type": "application/xml",
137
- };
138
- b.bp("/2013-04-01/hostedzone");
139
- let body;
140
- body = _ve;
141
- const bn = new __XmlNode(_CHZR);
142
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
143
- if (input[_CR] != null) {
144
- bn.c(__XmlNode.of(_No, input[_CR]).n(_CR));
145
- }
146
- if (input[_DSI] != null) {
147
- bn.c(__XmlNode.of(_RI, input[_DSI]).n(_DSI));
148
- }
149
- if (input[_HZC] != null) {
150
- bn.c(se_HostedZoneConfig(input[_HZC], context).n(_HZC));
151
- }
152
- if (input[_N] != null) {
153
- bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N));
154
- }
155
- if (input[_VPC] != null) {
156
- bn.c(se_VPC(input[_VPC], context).n(_VPC));
157
- }
158
- body += bn.toString();
159
- b.m("POST").h(headers).b(body);
160
- return b.build();
161
- };
162
- export const se_CreateKeySigningKeyCommand = async (input, context) => {
163
- const b = rb(input, context);
164
- const headers = {
165
- "content-type": "application/xml",
166
- };
167
- b.bp("/2013-04-01/keysigningkey");
168
- let body;
169
- body = _ve;
170
- const bn = new __XmlNode(_CKSKR);
171
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
172
- if (input[_CR] != null) {
173
- bn.c(__XmlNode.of(_No, input[_CR]).n(_CR));
174
- }
175
- if (input[_HZI] != null) {
176
- bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI));
177
- }
178
- if (input[_KMSA] != null) {
179
- bn.c(__XmlNode.of(_SKS, input[_KMSA]).n(_KMSA));
180
- }
181
- if (input[_N] != null) {
182
- bn.c(__XmlNode.of(_SKN, input[_N]).n(_N));
183
- }
184
- if (input[_S] != null) {
185
- bn.c(__XmlNode.of(_SKSi, input[_S]).n(_S));
186
- }
187
- body += bn.toString();
188
- b.m("POST").h(headers).b(body);
189
- return b.build();
190
- };
191
- export const se_CreateQueryLoggingConfigCommand = async (input, context) => {
192
- const b = rb(input, context);
193
- const headers = {
194
- "content-type": "application/xml",
195
- };
196
- b.bp("/2013-04-01/queryloggingconfig");
197
- let body;
198
- body = _ve;
199
- const bn = new __XmlNode(_CQLCR);
200
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
201
- bn.cc(input, _CWLLGA);
202
- if (input[_HZI] != null) {
203
- bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI));
204
- }
205
- body += bn.toString();
206
- b.m("POST").h(headers).b(body);
207
- return b.build();
208
- };
209
- export const se_CreateReusableDelegationSetCommand = async (input, context) => {
210
- const b = rb(input, context);
211
- const headers = {
212
- "content-type": "application/xml",
213
- };
214
- b.bp("/2013-04-01/delegationset");
215
- let body;
216
- body = _ve;
217
- const bn = new __XmlNode(_CRDSR);
218
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
219
- if (input[_CR] != null) {
220
- bn.c(__XmlNode.of(_No, input[_CR]).n(_CR));
221
- }
222
- if (input[_HZI] != null) {
223
- bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI));
224
- }
225
- body += bn.toString();
226
- b.m("POST").h(headers).b(body);
227
- return b.build();
228
- };
229
- export const se_CreateTrafficPolicyCommand = async (input, context) => {
230
- const b = rb(input, context);
231
- const headers = {
232
- "content-type": "application/xml",
233
- };
234
- b.bp("/2013-04-01/trafficpolicy");
235
- let body;
236
- body = _ve;
237
- const bn = new __XmlNode(_CTPR);
238
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
239
- if (input[_C] != null) {
240
- bn.c(__XmlNode.of(_TPC, input[_C]).n(_C));
241
- }
242
- if (input[_D] != null) {
243
- bn.c(__XmlNode.of(_TPD, input[_D]).n(_D));
244
- }
245
- if (input[_N] != null) {
246
- bn.c(__XmlNode.of(_TPN, input[_N]).n(_N));
247
- }
248
- body += bn.toString();
249
- b.m("POST").h(headers).b(body);
250
- return b.build();
251
- };
252
- export const se_CreateTrafficPolicyInstanceCommand = async (input, context) => {
253
- const b = rb(input, context);
254
- const headers = {
255
- "content-type": "application/xml",
256
- };
257
- b.bp("/2013-04-01/trafficpolicyinstance");
258
- let body;
259
- body = _ve;
260
- const bn = new __XmlNode(_CTPIR);
261
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
262
- if (input[_HZI] != null) {
263
- bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI));
264
- }
265
- if (input[_N] != null) {
266
- bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N));
267
- }
268
- if (input[_TTL] != null) {
269
- bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
270
- }
271
- bn.cc(input, _TPI);
272
- if (input[_TPV] != null) {
273
- bn.c(__XmlNode.of(_TPV, String(input[_TPV])).n(_TPV));
274
- }
275
- body += bn.toString();
276
- b.m("POST").h(headers).b(body);
277
- return b.build();
278
- };
279
- export const se_CreateTrafficPolicyVersionCommand = async (input, context) => {
280
- const b = rb(input, context);
281
- const headers = {
282
- "content-type": "application/xml",
283
- };
284
- b.bp("/2013-04-01/trafficpolicy/{Id}");
285
- b.p("Id", () => input.Id, "{Id}", false);
286
- let body;
287
- body = _ve;
288
- const bn = new __XmlNode(_CTPVR);
289
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
290
- if (input[_C] != null) {
291
- bn.c(__XmlNode.of(_TPC, input[_C]).n(_C));
292
- }
293
- if (input[_D] != null) {
294
- bn.c(__XmlNode.of(_TPD, input[_D]).n(_D));
295
- }
296
- body += bn.toString();
297
- b.m("POST").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_CreateVPCAssociationAuthorizationCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {
303
- "content-type": "application/xml",
304
- };
305
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation");
306
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
307
- let body;
308
- body = _ve;
309
- const bn = new __XmlNode(_CVPCAAR);
310
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
311
- if (input[_VPC] != null) {
312
- bn.c(se_VPC(input[_VPC], context).n(_VPC));
313
- }
314
- body += bn.toString();
315
- b.m("POST").h(headers).b(body);
316
- return b.build();
317
- };
318
- export const se_DeactivateKeySigningKeyCommand = async (input, context) => {
319
- const b = rb(input, context);
320
- const headers = {};
321
- b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate");
322
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
323
- b.p("Name", () => input.Name, "{Name}", false);
324
- let body;
325
- b.m("POST").h(headers).b(body);
326
- return b.build();
327
- };
328
- export const se_DeleteCidrCollectionCommand = async (input, context) => {
329
- const b = rb(input, context);
330
- const headers = {};
331
- b.bp("/2013-04-01/cidrcollection/{Id}");
332
- b.p("Id", () => input.Id, "{Id}", false);
333
- let body;
334
- b.m("DELETE").h(headers).b(body);
335
- return b.build();
336
- };
337
- export const se_DeleteHealthCheckCommand = async (input, context) => {
338
- const b = rb(input, context);
339
- const headers = {};
340
- b.bp("/2013-04-01/healthcheck/{HealthCheckId}");
341
- b.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
342
- let body;
343
- b.m("DELETE").h(headers).b(body);
344
- return b.build();
345
- };
346
- export const se_DeleteHostedZoneCommand = async (input, context) => {
347
- const b = rb(input, context);
348
- const headers = {};
349
- b.bp("/2013-04-01/hostedzone/{Id}");
350
- b.p("Id", () => input.Id, "{Id}", false);
351
- let body;
352
- b.m("DELETE").h(headers).b(body);
353
- return b.build();
354
- };
355
- export const se_DeleteKeySigningKeyCommand = async (input, context) => {
356
- const b = rb(input, context);
357
- const headers = {};
358
- b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}");
359
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
360
- b.p("Name", () => input.Name, "{Name}", false);
361
- let body;
362
- b.m("DELETE").h(headers).b(body);
363
- return b.build();
364
- };
365
- export const se_DeleteQueryLoggingConfigCommand = async (input, context) => {
366
- const b = rb(input, context);
367
- const headers = {};
368
- b.bp("/2013-04-01/queryloggingconfig/{Id}");
369
- b.p("Id", () => input.Id, "{Id}", false);
370
- let body;
371
- b.m("DELETE").h(headers).b(body);
372
- return b.build();
373
- };
374
- export const se_DeleteReusableDelegationSetCommand = async (input, context) => {
375
- const b = rb(input, context);
376
- const headers = {};
377
- b.bp("/2013-04-01/delegationset/{Id}");
378
- b.p("Id", () => input.Id, "{Id}", false);
379
- let body;
380
- b.m("DELETE").h(headers).b(body);
381
- return b.build();
382
- };
383
- export const se_DeleteTrafficPolicyCommand = async (input, context) => {
384
- const b = rb(input, context);
385
- const headers = {};
386
- b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
387
- b.p("Id", () => input.Id, "{Id}", false);
388
- b.p("Version", () => input.Version.toString(), "{Version}", false);
389
- let body;
390
- b.m("DELETE").h(headers).b(body);
391
- return b.build();
392
- };
393
- export const se_DeleteTrafficPolicyInstanceCommand = async (input, context) => {
394
- const b = rb(input, context);
395
- const headers = {};
396
- b.bp("/2013-04-01/trafficpolicyinstance/{Id}");
397
- b.p("Id", () => input.Id, "{Id}", false);
398
- let body;
399
- b.m("DELETE").h(headers).b(body);
400
- return b.build();
401
- };
402
- export const se_DeleteVPCAssociationAuthorizationCommand = async (input, context) => {
403
- const b = rb(input, context);
404
- const headers = {
405
- "content-type": "application/xml",
406
- };
407
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation");
408
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
409
- let body;
410
- body = _ve;
411
- const bn = new __XmlNode(_DVPCAAR);
412
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
413
- if (input[_VPC] != null) {
414
- bn.c(se_VPC(input[_VPC], context).n(_VPC));
415
- }
416
- body += bn.toString();
417
- b.m("POST").h(headers).b(body);
418
- return b.build();
419
- };
420
- export const se_DisableHostedZoneDNSSECCommand = async (input, context) => {
421
- const b = rb(input, context);
422
- const headers = {};
423
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec");
424
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
425
- let body;
426
- b.m("POST").h(headers).b(body);
427
- return b.build();
428
- };
429
- export const se_DisassociateVPCFromHostedZoneCommand = async (input, context) => {
430
- const b = rb(input, context);
431
- const headers = {
432
- "content-type": "application/xml",
433
- };
434
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc");
435
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
436
- let body;
437
- body = _ve;
438
- const bn = new __XmlNode(_DVPCFHZR);
439
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
440
- if (input[_C] != null) {
441
- bn.c(__XmlNode.of(_DVPCC, input[_C]).n(_C));
442
- }
443
- if (input[_VPC] != null) {
444
- bn.c(se_VPC(input[_VPC], context).n(_VPC));
445
- }
446
- body += bn.toString();
447
- b.m("POST").h(headers).b(body);
448
- return b.build();
449
- };
450
- export const se_EnableHostedZoneDNSSECCommand = async (input, context) => {
451
- const b = rb(input, context);
452
- const headers = {};
453
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec");
454
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
455
- let body;
456
- b.m("POST").h(headers).b(body);
457
- return b.build();
458
- };
459
- export const se_GetAccountLimitCommand = async (input, context) => {
460
- const b = rb(input, context);
461
- const headers = {};
462
- b.bp("/2013-04-01/accountlimit/{Type}");
463
- b.p("Type", () => input.Type, "{Type}", false);
464
- let body;
465
- b.m("GET").h(headers).b(body);
466
- return b.build();
467
- };
468
- export const se_GetChangeCommand = async (input, context) => {
469
- const b = rb(input, context);
470
- const headers = {};
471
- b.bp("/2013-04-01/change/{Id}");
472
- b.p("Id", () => input.Id, "{Id}", false);
473
- let body;
474
- b.m("GET").h(headers).b(body);
475
- return b.build();
476
- };
477
- export const se_GetCheckerIpRangesCommand = async (input, context) => {
478
- const b = rb(input, context);
479
- const headers = {};
480
- b.bp("/2013-04-01/checkeripranges");
481
- let body;
482
- b.m("GET").h(headers).b(body);
483
- return b.build();
484
- };
485
- export const se_GetDNSSECCommand = async (input, context) => {
486
- const b = rb(input, context);
487
- const headers = {};
488
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec");
489
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
490
- let body;
491
- b.m("GET").h(headers).b(body);
492
- return b.build();
493
- };
494
- export const se_GetGeoLocationCommand = async (input, context) => {
495
- const b = rb(input, context);
496
- const headers = {};
497
- b.bp("/2013-04-01/geolocation");
498
- const query = map({
499
- [_c]: [, input[_CC]],
500
- [_co]: [, input[_CCo]],
501
- [_s]: [, input[_SC]],
502
- });
503
- let body;
504
- b.m("GET").h(headers).q(query).b(body);
505
- return b.build();
506
- };
507
- export const se_GetHealthCheckCommand = async (input, context) => {
508
- const b = rb(input, context);
509
- const headers = {};
510
- b.bp("/2013-04-01/healthcheck/{HealthCheckId}");
511
- b.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
512
- let body;
513
- b.m("GET").h(headers).b(body);
514
- return b.build();
515
- };
516
- export const se_GetHealthCheckCountCommand = async (input, context) => {
517
- const b = rb(input, context);
518
- const headers = {};
519
- b.bp("/2013-04-01/healthcheckcount");
520
- let body;
521
- b.m("GET").h(headers).b(body);
522
- return b.build();
523
- };
524
- export const se_GetHealthCheckLastFailureReasonCommand = async (input, context) => {
525
- const b = rb(input, context);
526
- const headers = {};
527
- b.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason");
528
- b.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
529
- let body;
530
- b.m("GET").h(headers).b(body);
531
- return b.build();
532
- };
533
- export const se_GetHealthCheckStatusCommand = async (input, context) => {
534
- const b = rb(input, context);
535
- const headers = {};
536
- b.bp("/2013-04-01/healthcheck/{HealthCheckId}/status");
537
- b.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
538
- let body;
539
- b.m("GET").h(headers).b(body);
540
- return b.build();
541
- };
542
- export const se_GetHostedZoneCommand = async (input, context) => {
543
- const b = rb(input, context);
544
- const headers = {};
545
- b.bp("/2013-04-01/hostedzone/{Id}");
546
- b.p("Id", () => input.Id, "{Id}", false);
547
- let body;
548
- b.m("GET").h(headers).b(body);
549
- return b.build();
550
- };
551
- export const se_GetHostedZoneCountCommand = async (input, context) => {
552
- const b = rb(input, context);
553
- const headers = {};
554
- b.bp("/2013-04-01/hostedzonecount");
555
- let body;
556
- b.m("GET").h(headers).b(body);
557
- return b.build();
558
- };
559
- export const se_GetHostedZoneLimitCommand = async (input, context) => {
560
- const b = rb(input, context);
561
- const headers = {};
562
- b.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}");
563
- b.p("Type", () => input.Type, "{Type}", false);
564
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
565
- let body;
566
- b.m("GET").h(headers).b(body);
567
- return b.build();
568
- };
569
- export const se_GetQueryLoggingConfigCommand = async (input, context) => {
570
- const b = rb(input, context);
571
- const headers = {};
572
- b.bp("/2013-04-01/queryloggingconfig/{Id}");
573
- b.p("Id", () => input.Id, "{Id}", false);
574
- let body;
575
- b.m("GET").h(headers).b(body);
576
- return b.build();
577
- };
578
- export const se_GetReusableDelegationSetCommand = async (input, context) => {
579
- const b = rb(input, context);
580
- const headers = {};
581
- b.bp("/2013-04-01/delegationset/{Id}");
582
- b.p("Id", () => input.Id, "{Id}", false);
583
- let body;
584
- b.m("GET").h(headers).b(body);
585
- return b.build();
586
- };
587
- export const se_GetReusableDelegationSetLimitCommand = async (input, context) => {
588
- const b = rb(input, context);
589
- const headers = {};
590
- b.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}");
591
- b.p("Type", () => input.Type, "{Type}", false);
592
- b.p("DelegationSetId", () => input.DelegationSetId, "{DelegationSetId}", false);
593
- let body;
594
- b.m("GET").h(headers).b(body);
595
- return b.build();
596
- };
597
- export const se_GetTrafficPolicyCommand = async (input, context) => {
598
- const b = rb(input, context);
599
- const headers = {};
600
- b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
601
- b.p("Id", () => input.Id, "{Id}", false);
602
- b.p("Version", () => input.Version.toString(), "{Version}", false);
603
- let body;
604
- b.m("GET").h(headers).b(body);
605
- return b.build();
606
- };
607
- export const se_GetTrafficPolicyInstanceCommand = async (input, context) => {
608
- const b = rb(input, context);
609
- const headers = {};
610
- b.bp("/2013-04-01/trafficpolicyinstance/{Id}");
611
- b.p("Id", () => input.Id, "{Id}", false);
612
- let body;
613
- b.m("GET").h(headers).b(body);
614
- return b.build();
615
- };
616
- export const se_GetTrafficPolicyInstanceCountCommand = async (input, context) => {
617
- const b = rb(input, context);
618
- const headers = {};
619
- b.bp("/2013-04-01/trafficpolicyinstancecount");
620
- let body;
621
- b.m("GET").h(headers).b(body);
622
- return b.build();
623
- };
624
- export const se_ListCidrBlocksCommand = async (input, context) => {
625
- const b = rb(input, context);
626
- const headers = {};
627
- b.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks");
628
- b.p("CollectionId", () => input.CollectionId, "{CollectionId}", false);
629
- const query = map({
630
- [_l]: [, input[_LN]],
631
- [_n]: [, input[_NT]],
632
- [_m]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
633
- });
634
- let body;
635
- b.m("GET").h(headers).q(query).b(body);
636
- return b.build();
637
- };
638
- export const se_ListCidrCollectionsCommand = async (input, context) => {
639
- const b = rb(input, context);
640
- const headers = {};
641
- b.bp("/2013-04-01/cidrcollection");
642
- const query = map({
643
- [_n]: [, input[_NT]],
644
- [_m]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
645
- });
646
- let body;
647
- b.m("GET").h(headers).q(query).b(body);
648
- return b.build();
649
- };
650
- export const se_ListCidrLocationsCommand = async (input, context) => {
651
- const b = rb(input, context);
652
- const headers = {};
653
- b.bp("/2013-04-01/cidrcollection/{CollectionId}");
654
- b.p("CollectionId", () => input.CollectionId, "{CollectionId}", false);
655
- const query = map({
656
- [_n]: [, input[_NT]],
657
- [_m]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
658
- });
659
- let body;
660
- b.m("GET").h(headers).q(query).b(body);
661
- return b.build();
662
- };
663
- export const se_ListGeoLocationsCommand = async (input, context) => {
664
- const b = rb(input, context);
665
- const headers = {};
666
- b.bp("/2013-04-01/geolocations");
667
- const query = map({
668
- [_st]: [, input[_SCC]],
669
- [_sta]: [, input[_SCCt]],
670
- [_star]: [, input[_SSC]],
671
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
672
- });
673
- let body;
674
- b.m("GET").h(headers).q(query).b(body);
675
- return b.build();
676
- };
677
- export const se_ListHealthChecksCommand = async (input, context) => {
678
- const b = rb(input, context);
679
- const headers = {};
680
- b.bp("/2013-04-01/healthcheck");
681
- const query = map({
682
- [_mar]: [, input[_M]],
683
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
684
- });
685
- let body;
686
- b.m("GET").h(headers).q(query).b(body);
687
- return b.build();
688
- };
689
- export const se_ListHostedZonesCommand = async (input, context) => {
690
- const b = rb(input, context);
691
- const headers = {};
692
- b.bp("/2013-04-01/hostedzone");
693
- const query = map({
694
- [_mar]: [, input[_M]],
695
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
696
- [_d]: [, input[_DSI]],
697
- [_h]: [, input[_HZT]],
698
- });
699
- let body;
700
- b.m("GET").h(headers).q(query).b(body);
701
- return b.build();
702
- };
703
- export const se_ListHostedZonesByNameCommand = async (input, context) => {
704
- const b = rb(input, context);
705
- const headers = {};
706
- b.bp("/2013-04-01/hostedzonesbyname");
707
- const query = map({
708
- [_dn]: [, input[_DNSN]],
709
- [_ho]: [, input[_HZI]],
710
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
711
- });
712
- let body;
713
- b.m("GET").h(headers).q(query).b(body);
714
- return b.build();
715
- };
716
- export const se_ListHostedZonesByVPCCommand = async (input, context) => {
717
- const b = rb(input, context);
718
- const headers = {};
719
- b.bp("/2013-04-01/hostedzonesbyvpc");
720
- const query = map({
721
- [_v]: [, __expectNonNull(input[_VPCI], `VPCId`)],
722
- [_vp]: [, __expectNonNull(input[_VPCR], `VPCRegion`)],
723
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
724
- [_n]: [, input[_NT]],
725
- });
726
- let body;
727
- b.m("GET").h(headers).q(query).b(body);
728
- return b.build();
729
- };
730
- export const se_ListQueryLoggingConfigsCommand = async (input, context) => {
731
- const b = rb(input, context);
732
- const headers = {};
733
- b.bp("/2013-04-01/queryloggingconfig");
734
- const query = map({
735
- [_ho]: [, input[_HZI]],
736
- [_n]: [, input[_NT]],
737
- [_m]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
738
- });
739
- let body;
740
- b.m("GET").h(headers).q(query).b(body);
741
- return b.build();
742
- };
743
- export const se_ListResourceRecordSetsCommand = async (input, context) => {
744
- const b = rb(input, context);
745
- const headers = {};
746
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset");
747
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
748
- const query = map({
749
- [_na]: [, input[_SRN]],
750
- [_t]: [, input[_SRT]],
751
- [_i]: [, input[_SRI]],
752
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
753
- });
754
- let body;
755
- b.m("GET").h(headers).q(query).b(body);
756
- return b.build();
757
- };
758
- export const se_ListReusableDelegationSetsCommand = async (input, context) => {
759
- const b = rb(input, context);
760
- const headers = {};
761
- b.bp("/2013-04-01/delegationset");
762
- const query = map({
763
- [_mar]: [, input[_M]],
764
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
765
- });
766
- let body;
767
- b.m("GET").h(headers).q(query).b(body);
768
- return b.build();
769
- };
770
- export const se_ListTagsForResourceCommand = async (input, context) => {
771
- const b = rb(input, context);
772
- const headers = {};
773
- b.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}");
774
- b.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
775
- b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
776
- let body;
777
- b.m("GET").h(headers).b(body);
778
- return b.build();
779
- };
780
- export const se_ListTagsForResourcesCommand = async (input, context) => {
781
- const b = rb(input, context);
782
- const headers = {
783
- "content-type": "application/xml",
784
- };
785
- b.bp("/2013-04-01/tags/{ResourceType}");
786
- b.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
787
- let body;
788
- body = _ve;
789
- const bn = new __XmlNode(_LTFRR);
790
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
791
- bn.lc(input, "ResourceIds", "ResourceIds", () => se_TagResourceIdList(input[_RIe], context));
792
- body += bn.toString();
793
- b.m("POST").h(headers).b(body);
794
- return b.build();
795
- };
796
- export const se_ListTrafficPoliciesCommand = async (input, context) => {
797
- const b = rb(input, context);
798
- const headers = {};
799
- b.bp("/2013-04-01/trafficpolicies");
800
- const query = map({
801
- [_tr]: [, input[_TPIM]],
802
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
803
- });
804
- let body;
805
- b.m("GET").h(headers).q(query).b(body);
806
- return b.build();
807
- };
808
- export const se_ListTrafficPolicyInstancesCommand = async (input, context) => {
809
- const b = rb(input, context);
810
- const headers = {};
811
- b.bp("/2013-04-01/trafficpolicyinstances");
812
- const query = map({
813
- [_ho]: [, input[_HZIM]],
814
- [_tra]: [, input[_TPINM]],
815
- [_traf]: [, input[_TPITM]],
816
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
817
- });
818
- let body;
819
- b.m("GET").h(headers).q(query).b(body);
820
- return b.build();
821
- };
822
- export const se_ListTrafficPolicyInstancesByHostedZoneCommand = async (input, context) => {
823
- const b = rb(input, context);
824
- const headers = {};
825
- b.bp("/2013-04-01/trafficpolicyinstances/hostedzone");
826
- const query = map({
827
- [_id]: [, __expectNonNull(input[_HZI], `HostedZoneId`)],
828
- [_tra]: [, input[_TPINM]],
829
- [_traf]: [, input[_TPITM]],
830
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
831
- });
832
- let body;
833
- b.m("GET").h(headers).q(query).b(body);
834
- return b.build();
835
- };
836
- export const se_ListTrafficPolicyInstancesByPolicyCommand = async (input, context) => {
837
- const b = rb(input, context);
838
- const headers = {};
839
- b.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");
840
- const query = map({
841
- [_id]: [, __expectNonNull(input[_TPI], `TrafficPolicyId`)],
842
- [_ver]: [
843
- __expectNonNull(input.TrafficPolicyVersion, `TrafficPolicyVersion`) != null,
844
- () => input[_TPV].toString(),
845
- ],
846
- [_ho]: [, input[_HZIM]],
847
- [_tra]: [, input[_TPINM]],
848
- [_traf]: [, input[_TPITM]],
849
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
850
- });
851
- let body;
852
- b.m("GET").h(headers).q(query).b(body);
853
- return b.build();
854
- };
855
- export const se_ListTrafficPolicyVersionsCommand = async (input, context) => {
856
- const b = rb(input, context);
857
- const headers = {};
858
- b.bp("/2013-04-01/trafficpolicies/{Id}/versions");
859
- b.p("Id", () => input.Id, "{Id}", false);
860
- const query = map({
861
- [_traff]: [, input[_TPVM]],
862
- [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
863
- });
864
- let body;
865
- b.m("GET").h(headers).q(query).b(body);
866
- return b.build();
867
- };
868
- export const se_ListVPCAssociationAuthorizationsCommand = async (input, context) => {
869
- const b = rb(input, context);
870
- const headers = {};
871
- b.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation");
872
- b.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
873
- const query = map({
874
- [_n]: [, input[_NT]],
875
- [_m]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
876
- });
877
- let body;
878
- b.m("GET").h(headers).q(query).b(body);
879
- return b.build();
880
- };
881
- export const se_TestDNSAnswerCommand = async (input, context) => {
882
- const b = rb(input, context);
883
- const headers = {};
884
- b.bp("/2013-04-01/testdnsanswer");
885
- const query = map({
886
- [_ho]: [, __expectNonNull(input[_HZI], `HostedZoneId`)],
887
- [_r]: [, __expectNonNull(input[_RN], `RecordName`)],
888
- [_re]: [, __expectNonNull(input[_RT], `RecordType`)],
889
- [_res]: [, input[_RIP]],
890
- [_e]: [, input[_EDNSCSIP]],
891
- [_ed]: [, input[_EDNSCSM]],
892
- });
893
- let body;
894
- b.m("GET").h(headers).q(query).b(body);
895
- return b.build();
896
- };
897
- export const se_UpdateHealthCheckCommand = async (input, context) => {
898
- const b = rb(input, context);
899
- const headers = {
900
- "content-type": "application/xml",
901
- };
902
- b.bp("/2013-04-01/healthcheck/{HealthCheckId}");
903
- b.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
904
- let body;
905
- body = _ve;
906
- const bn = new __XmlNode(_UHCR);
907
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
908
- if (input[_AI] != null) {
909
- bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI));
910
- }
911
- bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC], context));
912
- if (input[_Di] != null) {
913
- bn.c(__XmlNode.of(_Di, String(input[_Di])).n(_Di));
914
- }
915
- if (input[_ESNI] != null) {
916
- bn.c(__XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI));
917
- }
918
- if (input[_FT] != null) {
919
- bn.c(__XmlNode.of(_FT, String(input[_FT])).n(_FT));
920
- }
921
- bn.cc(input, _FQDN);
922
- if (input[_HCV] != null) {
923
- bn.c(__XmlNode.of(_HCV, String(input[_HCV])).n(_HCV));
924
- }
925
- if (input[_HT] != null) {
926
- bn.c(__XmlNode.of(_HT, String(input[_HT])).n(_HT));
927
- }
928
- bn.cc(input, _IPA);
929
- bn.cc(input, _IDHS);
930
- if (input[_I] != null) {
931
- bn.c(__XmlNode.of(_I, String(input[_I])).n(_I));
932
- }
933
- if (input[_P] != null) {
934
- bn.c(__XmlNode.of(_P, String(input[_P])).n(_P));
935
- }
936
- bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R], context));
937
- bn.lc(input, "ResetElements", "ResetElements", () => se_ResettableElementNameList(input[_RE], context));
938
- bn.cc(input, _RP);
939
- bn.cc(input, _SS);
940
- body += bn.toString();
941
- b.m("POST").h(headers).b(body);
942
- return b.build();
943
- };
944
- export const se_UpdateHostedZoneCommentCommand = async (input, context) => {
945
- const b = rb(input, context);
946
- const headers = {
947
- "content-type": "application/xml",
948
- };
949
- b.bp("/2013-04-01/hostedzone/{Id}");
950
- b.p("Id", () => input.Id, "{Id}", false);
951
- let body;
952
- body = _ve;
953
- const bn = new __XmlNode(_UHZCR);
954
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
955
- if (input[_C] != null) {
956
- bn.c(__XmlNode.of(_RD, input[_C]).n(_C));
957
- }
958
- body += bn.toString();
959
- b.m("POST").h(headers).b(body);
960
- return b.build();
961
- };
962
- export const se_UpdateTrafficPolicyCommentCommand = async (input, context) => {
963
- const b = rb(input, context);
964
- const headers = {
965
- "content-type": "application/xml",
966
- };
967
- b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
968
- b.p("Id", () => input.Id, "{Id}", false);
969
- b.p("Version", () => input.Version.toString(), "{Version}", false);
970
- let body;
971
- body = _ve;
972
- const bn = new __XmlNode(_UTPCR);
973
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
974
- if (input[_C] != null) {
975
- bn.c(__XmlNode.of(_TPC, input[_C]).n(_C));
976
- }
977
- body += bn.toString();
978
- b.m("POST").h(headers).b(body);
979
- return b.build();
980
- };
981
- export const se_UpdateTrafficPolicyInstanceCommand = async (input, context) => {
982
- const b = rb(input, context);
983
- const headers = {
984
- "content-type": "application/xml",
985
- };
986
- b.bp("/2013-04-01/trafficpolicyinstance/{Id}");
987
- b.p("Id", () => input.Id, "{Id}", false);
988
- let body;
989
- body = _ve;
990
- const bn = new __XmlNode(_UTPIR);
991
- bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
992
- if (input[_TTL] != null) {
993
- bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
994
- }
995
- bn.cc(input, _TPI);
996
- if (input[_TPV] != null) {
997
- bn.c(__XmlNode.of(_TPV, String(input[_TPV])).n(_TPV));
998
- }
999
- body += bn.toString();
1000
- b.m("POST").h(headers).b(body);
1001
- return b.build();
1002
- };
1003
- export const de_ActivateKeySigningKeyCommand = async (output, context) => {
1004
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1005
- return de_CommandError(output, context);
1006
- }
1007
- const contents = map({
1008
- $metadata: deserializeMetadata(output),
1009
- });
1010
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1011
- if (data[_CI] != null) {
1012
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1013
- }
1014
- return contents;
1015
- };
1016
- export const de_AssociateVPCWithHostedZoneCommand = async (output, context) => {
1017
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1018
- return de_CommandError(output, context);
1019
- }
1020
- const contents = map({
1021
- $metadata: deserializeMetadata(output),
1022
- });
1023
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1024
- if (data[_CI] != null) {
1025
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1026
- }
1027
- return contents;
1028
- };
1029
- export const de_ChangeCidrCollectionCommand = async (output, context) => {
1030
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
- return de_CommandError(output, context);
1032
- }
1033
- const contents = map({
1034
- $metadata: deserializeMetadata(output),
1035
- });
1036
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1037
- if (data[_Id] != null) {
1038
- contents[_Id] = __expectString(data[_Id]);
1039
- }
1040
- return contents;
1041
- };
1042
- export const de_ChangeResourceRecordSetsCommand = async (output, context) => {
1043
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
- return de_CommandError(output, context);
1045
- }
1046
- const contents = map({
1047
- $metadata: deserializeMetadata(output),
1048
- });
1049
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1050
- if (data[_CI] != null) {
1051
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1052
- }
1053
- return contents;
1054
- };
1055
- export const de_ChangeTagsForResourceCommand = async (output, context) => {
1056
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1057
- return de_CommandError(output, context);
1058
- }
1059
- const contents = map({
1060
- $metadata: deserializeMetadata(output),
1061
- });
1062
- await collectBody(output.body, context);
1063
- return contents;
1064
- };
1065
- export const de_CreateCidrCollectionCommand = async (output, context) => {
1066
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1067
- return de_CommandError(output, context);
1068
- }
1069
- const contents = map({
1070
- $metadata: deserializeMetadata(output),
1071
- [_L]: [, output.headers[_l]],
1072
- });
1073
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1074
- if (data[_Co] != null) {
1075
- contents[_Co] = de_CidrCollection(data[_Co], context);
1076
- }
1077
- return contents;
1078
- };
1079
- export const de_CreateHealthCheckCommand = async (output, context) => {
1080
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1081
- return de_CommandError(output, context);
1082
- }
1083
- const contents = map({
1084
- $metadata: deserializeMetadata(output),
1085
- [_L]: [, output.headers[_l]],
1086
- });
1087
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1088
- if (data[_HC] != null) {
1089
- contents[_HC] = de_HealthCheck(data[_HC], context);
1090
- }
1091
- return contents;
1092
- };
1093
- export const de_CreateHostedZoneCommand = async (output, context) => {
1094
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1095
- return de_CommandError(output, context);
1096
- }
1097
- const contents = map({
1098
- $metadata: deserializeMetadata(output),
1099
- [_L]: [, output.headers[_l]],
1100
- });
1101
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1102
- if (data[_CI] != null) {
1103
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1104
- }
1105
- if (data[_DS] != null) {
1106
- contents[_DS] = de_DelegationSet(data[_DS], context);
1107
- }
1108
- if (data[_HZ] != null) {
1109
- contents[_HZ] = de_HostedZone(data[_HZ], context);
1110
- }
1111
- if (data[_VPC] != null) {
1112
- contents[_VPC] = de_VPC(data[_VPC], context);
1113
- }
1114
- return contents;
1115
- };
1116
- export const de_CreateKeySigningKeyCommand = async (output, context) => {
1117
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1118
- return de_CommandError(output, context);
1119
- }
1120
- const contents = map({
1121
- $metadata: deserializeMetadata(output),
1122
- [_L]: [, output.headers[_l]],
1123
- });
1124
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1125
- if (data[_CI] != null) {
1126
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1127
- }
1128
- if (data[_KSK] != null) {
1129
- contents[_KSK] = de_KeySigningKey(data[_KSK], context);
1130
- }
1131
- return contents;
1132
- };
1133
- export const de_CreateQueryLoggingConfigCommand = async (output, context) => {
1134
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1135
- return de_CommandError(output, context);
1136
- }
1137
- const contents = map({
1138
- $metadata: deserializeMetadata(output),
1139
- [_L]: [, output.headers[_l]],
1140
- });
1141
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1142
- if (data[_QLC] != null) {
1143
- contents[_QLC] = de_QueryLoggingConfig(data[_QLC], context);
1144
- }
1145
- return contents;
1146
- };
1147
- export const de_CreateReusableDelegationSetCommand = async (output, context) => {
1148
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const contents = map({
1152
- $metadata: deserializeMetadata(output),
1153
- [_L]: [, output.headers[_l]],
1154
- });
1155
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1156
- if (data[_DS] != null) {
1157
- contents[_DS] = de_DelegationSet(data[_DS], context);
1158
- }
1159
- return contents;
1160
- };
1161
- export const de_CreateTrafficPolicyCommand = async (output, context) => {
1162
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1163
- return de_CommandError(output, context);
1164
- }
1165
- const contents = map({
1166
- $metadata: deserializeMetadata(output),
1167
- [_L]: [, output.headers[_l]],
1168
- });
1169
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1170
- if (data[_TP] != null) {
1171
- contents[_TP] = de_TrafficPolicy(data[_TP], context);
1172
- }
1173
- return contents;
1174
- };
1175
- export const de_CreateTrafficPolicyInstanceCommand = async (output, context) => {
1176
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const contents = map({
1180
- $metadata: deserializeMetadata(output),
1181
- [_L]: [, output.headers[_l]],
1182
- });
1183
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1184
- if (data[_TPIr] != null) {
1185
- contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context);
1186
- }
1187
- return contents;
1188
- };
1189
- export const de_CreateTrafficPolicyVersionCommand = async (output, context) => {
1190
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1191
- return de_CommandError(output, context);
1192
- }
1193
- const contents = map({
1194
- $metadata: deserializeMetadata(output),
1195
- [_L]: [, output.headers[_l]],
1196
- });
1197
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1198
- if (data[_TP] != null) {
1199
- contents[_TP] = de_TrafficPolicy(data[_TP], context);
1200
- }
1201
- return contents;
1202
- };
1203
- export const de_CreateVPCAssociationAuthorizationCommand = async (output, context) => {
1204
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- const contents = map({
1208
- $metadata: deserializeMetadata(output),
1209
- });
1210
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1211
- if (data[_HZI] != null) {
1212
- contents[_HZI] = __expectString(data[_HZI]);
1213
- }
1214
- if (data[_VPC] != null) {
1215
- contents[_VPC] = de_VPC(data[_VPC], context);
1216
- }
1217
- return contents;
1218
- };
1219
- export const de_DeactivateKeySigningKeyCommand = async (output, context) => {
1220
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1221
- return de_CommandError(output, context);
1222
- }
1223
- const contents = map({
1224
- $metadata: deserializeMetadata(output),
1225
- });
1226
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1227
- if (data[_CI] != null) {
1228
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1229
- }
1230
- return contents;
1231
- };
1232
- export const de_DeleteCidrCollectionCommand = async (output, context) => {
1233
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1234
- return de_CommandError(output, context);
1235
- }
1236
- const contents = map({
1237
- $metadata: deserializeMetadata(output),
1238
- });
1239
- await collectBody(output.body, context);
1240
- return contents;
1241
- };
1242
- export const de_DeleteHealthCheckCommand = async (output, context) => {
1243
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1244
- return de_CommandError(output, context);
1245
- }
1246
- const contents = map({
1247
- $metadata: deserializeMetadata(output),
1248
- });
1249
- await collectBody(output.body, context);
1250
- return contents;
1251
- };
1252
- export const de_DeleteHostedZoneCommand = async (output, context) => {
1253
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1254
- return de_CommandError(output, context);
1255
- }
1256
- const contents = map({
1257
- $metadata: deserializeMetadata(output),
1258
- });
1259
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1260
- if (data[_CI] != null) {
1261
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1262
- }
1263
- return contents;
1264
- };
1265
- export const de_DeleteKeySigningKeyCommand = async (output, context) => {
1266
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
- return de_CommandError(output, context);
1268
- }
1269
- const contents = map({
1270
- $metadata: deserializeMetadata(output),
1271
- });
1272
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1273
- if (data[_CI] != null) {
1274
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1275
- }
1276
- return contents;
1277
- };
1278
- export const de_DeleteQueryLoggingConfigCommand = async (output, context) => {
1279
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
- return de_CommandError(output, context);
1281
- }
1282
- const contents = map({
1283
- $metadata: deserializeMetadata(output),
1284
- });
1285
- await collectBody(output.body, context);
1286
- return contents;
1287
- };
1288
- export const de_DeleteReusableDelegationSetCommand = async (output, context) => {
1289
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1290
- return de_CommandError(output, context);
1291
- }
1292
- const contents = map({
1293
- $metadata: deserializeMetadata(output),
1294
- });
1295
- await collectBody(output.body, context);
1296
- return contents;
1297
- };
1298
- export const de_DeleteTrafficPolicyCommand = async (output, context) => {
1299
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
- return de_CommandError(output, context);
1301
- }
1302
- const contents = map({
1303
- $metadata: deserializeMetadata(output),
1304
- });
1305
- await collectBody(output.body, context);
1306
- return contents;
1307
- };
1308
- export const de_DeleteTrafficPolicyInstanceCommand = async (output, context) => {
1309
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
- return de_CommandError(output, context);
1311
- }
1312
- const contents = map({
1313
- $metadata: deserializeMetadata(output),
1314
- });
1315
- await collectBody(output.body, context);
1316
- return contents;
1317
- };
1318
- export const de_DeleteVPCAssociationAuthorizationCommand = async (output, context) => {
1319
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1320
- return de_CommandError(output, context);
1321
- }
1322
- const contents = map({
1323
- $metadata: deserializeMetadata(output),
1324
- });
1325
- await collectBody(output.body, context);
1326
- return contents;
1327
- };
1328
- export const de_DisableHostedZoneDNSSECCommand = async (output, context) => {
1329
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1330
- return de_CommandError(output, context);
1331
- }
1332
- const contents = map({
1333
- $metadata: deserializeMetadata(output),
1334
- });
1335
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1336
- if (data[_CI] != null) {
1337
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1338
- }
1339
- return contents;
1340
- };
1341
- export const de_DisassociateVPCFromHostedZoneCommand = async (output, context) => {
1342
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1343
- return de_CommandError(output, context);
1344
- }
1345
- const contents = map({
1346
- $metadata: deserializeMetadata(output),
1347
- });
1348
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1349
- if (data[_CI] != null) {
1350
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1351
- }
1352
- return contents;
1353
- };
1354
- export const de_EnableHostedZoneDNSSECCommand = async (output, context) => {
1355
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1356
- return de_CommandError(output, context);
1357
- }
1358
- const contents = map({
1359
- $metadata: deserializeMetadata(output),
1360
- });
1361
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1362
- if (data[_CI] != null) {
1363
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1364
- }
1365
- return contents;
1366
- };
1367
- export const de_GetAccountLimitCommand = async (output, context) => {
1368
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1369
- return de_CommandError(output, context);
1370
- }
1371
- const contents = map({
1372
- $metadata: deserializeMetadata(output),
1373
- });
1374
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1375
- if (data[_Cou] != null) {
1376
- contents[_Cou] = __strictParseLong(data[_Cou]);
1377
- }
1378
- if (data[_Li] != null) {
1379
- contents[_Li] = de_AccountLimit(data[_Li], context);
1380
- }
1381
- return contents;
1382
- };
1383
- export const de_GetChangeCommand = async (output, context) => {
1384
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1385
- return de_CommandError(output, context);
1386
- }
1387
- const contents = map({
1388
- $metadata: deserializeMetadata(output),
1389
- });
1390
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1391
- if (data[_CI] != null) {
1392
- contents[_CI] = de_ChangeInfo(data[_CI], context);
1393
- }
1394
- return contents;
1395
- };
1396
- export const de_GetCheckerIpRangesCommand = async (output, context) => {
1397
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1398
- return de_CommandError(output, context);
1399
- }
1400
- const contents = map({
1401
- $metadata: deserializeMetadata(output),
1402
- });
1403
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1404
- if (String(data.CheckerIpRanges).trim() === "") {
1405
- contents[_CIR] = [];
1406
- }
1407
- else if (data[_CIR] != null && data[_CIR][_me] != null) {
1408
- contents[_CIR] = de_CheckerIpRanges(__getArrayIfSingleItem(data[_CIR][_me]), context);
1409
- }
1410
- return contents;
1411
- };
1412
- export const de_GetDNSSECCommand = async (output, context) => {
1413
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1414
- return de_CommandError(output, context);
1415
- }
1416
- const contents = map({
1417
- $metadata: deserializeMetadata(output),
1418
- });
1419
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1420
- if (String(data.KeySigningKeys).trim() === "") {
1421
- contents[_KSKe] = [];
1422
- }
1423
- else if (data[_KSKe] != null && data[_KSKe][_me] != null) {
1424
- contents[_KSKe] = de_KeySigningKeys(__getArrayIfSingleItem(data[_KSKe][_me]), context);
1425
- }
1426
- if (data[_S] != null) {
1427
- contents[_S] = de_DNSSECStatus(data[_S], context);
1428
- }
1429
- return contents;
1430
- };
1431
- export const de_GetGeoLocationCommand = async (output, context) => {
1432
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1433
- return de_CommandError(output, context);
1434
- }
1435
- const contents = map({
1436
- $metadata: deserializeMetadata(output),
1437
- });
1438
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1439
- if (data[_GLD] != null) {
1440
- contents[_GLD] = de_GeoLocationDetails(data[_GLD], context);
1441
- }
1442
- return contents;
1443
- };
1444
- export const de_GetHealthCheckCommand = async (output, context) => {
1445
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
- return de_CommandError(output, context);
1447
- }
1448
- const contents = map({
1449
- $metadata: deserializeMetadata(output),
1450
- });
1451
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1452
- if (data[_HC] != null) {
1453
- contents[_HC] = de_HealthCheck(data[_HC], context);
1454
- }
1455
- return contents;
1456
- };
1457
- export const de_GetHealthCheckCountCommand = async (output, context) => {
1458
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1459
- return de_CommandError(output, context);
1460
- }
1461
- const contents = map({
1462
- $metadata: deserializeMetadata(output),
1463
- });
1464
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1465
- if (data[_HCCe] != null) {
1466
- contents[_HCCe] = __strictParseLong(data[_HCCe]);
1467
- }
1468
- return contents;
1469
- };
1470
- export const de_GetHealthCheckLastFailureReasonCommand = async (output, context) => {
1471
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
- return de_CommandError(output, context);
1473
- }
1474
- const contents = map({
1475
- $metadata: deserializeMetadata(output),
1476
- });
1477
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1478
- if (String(data.HealthCheckObservations).trim() === "") {
1479
- contents[_HCO] = [];
1480
- }
1481
- else if (data[_HCO] != null && data[_HCO][_HCOe] != null) {
1482
- contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context);
1483
- }
1484
- return contents;
1485
- };
1486
- export const de_GetHealthCheckStatusCommand = async (output, context) => {
1487
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1488
- return de_CommandError(output, context);
1489
- }
1490
- const contents = map({
1491
- $metadata: deserializeMetadata(output),
1492
- });
1493
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1494
- if (String(data.HealthCheckObservations).trim() === "") {
1495
- contents[_HCO] = [];
1496
- }
1497
- else if (data[_HCO] != null && data[_HCO][_HCOe] != null) {
1498
- contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context);
1499
- }
1500
- return contents;
1501
- };
1502
- export const de_GetHostedZoneCommand = async (output, context) => {
1503
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1504
- return de_CommandError(output, context);
1505
- }
1506
- const contents = map({
1507
- $metadata: deserializeMetadata(output),
1508
- });
1509
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1510
- if (data[_DS] != null) {
1511
- contents[_DS] = de_DelegationSet(data[_DS], context);
1512
- }
1513
- if (data[_HZ] != null) {
1514
- contents[_HZ] = de_HostedZone(data[_HZ], context);
1515
- }
1516
- if (String(data.VPCs).trim() === "") {
1517
- contents[_VPCs] = [];
1518
- }
1519
- else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) {
1520
- contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context);
1521
- }
1522
- return contents;
1523
- };
1524
- export const de_GetHostedZoneCountCommand = async (output, context) => {
1525
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1526
- return de_CommandError(output, context);
1527
- }
1528
- const contents = map({
1529
- $metadata: deserializeMetadata(output),
1530
- });
1531
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1532
- if (data[_HZCo] != null) {
1533
- contents[_HZCo] = __strictParseLong(data[_HZCo]);
1534
- }
1535
- return contents;
1536
- };
1537
- export const de_GetHostedZoneLimitCommand = async (output, context) => {
1538
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1539
- return de_CommandError(output, context);
1540
- }
1541
- const contents = map({
1542
- $metadata: deserializeMetadata(output),
1543
- });
1544
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1545
- if (data[_Cou] != null) {
1546
- contents[_Cou] = __strictParseLong(data[_Cou]);
1547
- }
1548
- if (data[_Li] != null) {
1549
- contents[_Li] = de_HostedZoneLimit(data[_Li], context);
1550
- }
1551
- return contents;
1552
- };
1553
- export const de_GetQueryLoggingConfigCommand = async (output, context) => {
1554
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1555
- return de_CommandError(output, context);
1556
- }
1557
- const contents = map({
1558
- $metadata: deserializeMetadata(output),
1559
- });
1560
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1561
- if (data[_QLC] != null) {
1562
- contents[_QLC] = de_QueryLoggingConfig(data[_QLC], context);
1563
- }
1564
- return contents;
1565
- };
1566
- export const de_GetReusableDelegationSetCommand = async (output, context) => {
1567
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1568
- return de_CommandError(output, context);
1569
- }
1570
- const contents = map({
1571
- $metadata: deserializeMetadata(output),
1572
- });
1573
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1574
- if (data[_DS] != null) {
1575
- contents[_DS] = de_DelegationSet(data[_DS], context);
1576
- }
1577
- return contents;
1578
- };
1579
- export const de_GetReusableDelegationSetLimitCommand = async (output, context) => {
1580
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
- return de_CommandError(output, context);
1582
- }
1583
- const contents = map({
1584
- $metadata: deserializeMetadata(output),
1585
- });
1586
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1587
- if (data[_Cou] != null) {
1588
- contents[_Cou] = __strictParseLong(data[_Cou]);
1589
- }
1590
- if (data[_Li] != null) {
1591
- contents[_Li] = de_ReusableDelegationSetLimit(data[_Li], context);
1592
- }
1593
- return contents;
1594
- };
1595
- export const de_GetTrafficPolicyCommand = async (output, context) => {
1596
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1597
- return de_CommandError(output, context);
1598
- }
1599
- const contents = map({
1600
- $metadata: deserializeMetadata(output),
1601
- });
1602
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1603
- if (data[_TP] != null) {
1604
- contents[_TP] = de_TrafficPolicy(data[_TP], context);
1605
- }
1606
- return contents;
1607
- };
1608
- export const de_GetTrafficPolicyInstanceCommand = async (output, context) => {
1609
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1610
- return de_CommandError(output, context);
1611
- }
1612
- const contents = map({
1613
- $metadata: deserializeMetadata(output),
1614
- });
1615
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1616
- if (data[_TPIr] != null) {
1617
- contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context);
1618
- }
1619
- return contents;
1620
- };
1621
- export const de_GetTrafficPolicyInstanceCountCommand = async (output, context) => {
1622
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1623
- return de_CommandError(output, context);
1624
- }
1625
- const contents = map({
1626
- $metadata: deserializeMetadata(output),
1627
- });
1628
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1629
- if (data[_TPIC] != null) {
1630
- contents[_TPIC] = __strictParseInt32(data[_TPIC]);
1631
- }
1632
- return contents;
1633
- };
1634
- export const de_ListCidrBlocksCommand = async (output, context) => {
1635
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1636
- return de_CommandError(output, context);
1637
- }
1638
- const contents = map({
1639
- $metadata: deserializeMetadata(output),
1640
- });
1641
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1642
- if (String(data.CidrBlocks).trim() === "") {
1643
- contents[_CBi] = [];
1644
- }
1645
- else if (data[_CBi] != null && data[_CBi][_me] != null) {
1646
- contents[_CBi] = de_CidrBlockSummaries(__getArrayIfSingleItem(data[_CBi][_me]), context);
1647
- }
1648
- if (data[_NT] != null) {
1649
- contents[_NT] = __expectString(data[_NT]);
1650
- }
1651
- return contents;
1652
- };
1653
- export const de_ListCidrCollectionsCommand = async (output, context) => {
1654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_CommandError(output, context);
1656
- }
1657
- const contents = map({
1658
- $metadata: deserializeMetadata(output),
1659
- });
1660
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1661
- if (String(data.CidrCollections).trim() === "") {
1662
- contents[_CCi] = [];
1663
- }
1664
- else if (data[_CCi] != null && data[_CCi][_me] != null) {
1665
- contents[_CCi] = de_CollectionSummaries(__getArrayIfSingleItem(data[_CCi][_me]), context);
1666
- }
1667
- if (data[_NT] != null) {
1668
- contents[_NT] = __expectString(data[_NT]);
1669
- }
1670
- return contents;
1671
- };
1672
- export const de_ListCidrLocationsCommand = async (output, context) => {
1673
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1674
- return de_CommandError(output, context);
1675
- }
1676
- const contents = map({
1677
- $metadata: deserializeMetadata(output),
1678
- });
1679
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1680
- if (String(data.CidrLocations).trim() === "") {
1681
- contents[_CL] = [];
1682
- }
1683
- else if (data[_CL] != null && data[_CL][_me] != null) {
1684
- contents[_CL] = de_LocationSummaries(__getArrayIfSingleItem(data[_CL][_me]), context);
1685
- }
1686
- if (data[_NT] != null) {
1687
- contents[_NT] = __expectString(data[_NT]);
1688
- }
1689
- return contents;
1690
- };
1691
- export const de_ListGeoLocationsCommand = async (output, context) => {
1692
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1693
- return de_CommandError(output, context);
1694
- }
1695
- const contents = map({
1696
- $metadata: deserializeMetadata(output),
1697
- });
1698
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1699
- if (String(data.GeoLocationDetailsList).trim() === "") {
1700
- contents[_GLDL] = [];
1701
- }
1702
- else if (data[_GLDL] != null && data[_GLDL][_GLD] != null) {
1703
- contents[_GLDL] = de_GeoLocationDetailsList(__getArrayIfSingleItem(data[_GLDL][_GLD]), context);
1704
- }
1705
- if (data[_IT] != null) {
1706
- contents[_IT] = __parseBoolean(data[_IT]);
1707
- }
1708
- if (data[_MI] != null) {
1709
- contents[_MI] = __strictParseInt32(data[_MI]);
1710
- }
1711
- if (data[_NCC] != null) {
1712
- contents[_NCC] = __expectString(data[_NCC]);
1713
- }
1714
- if (data[_NCCe] != null) {
1715
- contents[_NCCe] = __expectString(data[_NCCe]);
1716
- }
1717
- if (data[_NSC] != null) {
1718
- contents[_NSC] = __expectString(data[_NSC]);
1719
- }
1720
- return contents;
1721
- };
1722
- export const de_ListHealthChecksCommand = async (output, context) => {
1723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1724
- return de_CommandError(output, context);
1725
- }
1726
- const contents = map({
1727
- $metadata: deserializeMetadata(output),
1728
- });
1729
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1730
- if (String(data.HealthChecks).trim() === "") {
1731
- contents[_HCe] = [];
1732
- }
1733
- else if (data[_HCe] != null && data[_HCe][_HC] != null) {
1734
- contents[_HCe] = de_HealthChecks(__getArrayIfSingleItem(data[_HCe][_HC]), context);
1735
- }
1736
- if (data[_IT] != null) {
1737
- contents[_IT] = __parseBoolean(data[_IT]);
1738
- }
1739
- if (data[_M] != null) {
1740
- contents[_M] = __expectString(data[_M]);
1741
- }
1742
- if (data[_MI] != null) {
1743
- contents[_MI] = __strictParseInt32(data[_MI]);
1744
- }
1745
- if (data[_NM] != null) {
1746
- contents[_NM] = __expectString(data[_NM]);
1747
- }
1748
- return contents;
1749
- };
1750
- export const de_ListHostedZonesCommand = async (output, context) => {
1751
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1752
- return de_CommandError(output, context);
1753
- }
1754
- const contents = map({
1755
- $metadata: deserializeMetadata(output),
1756
- });
1757
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1758
- if (String(data.HostedZones).trim() === "") {
1759
- contents[_HZo] = [];
1760
- }
1761
- else if (data[_HZo] != null && data[_HZo][_HZ] != null) {
1762
- contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context);
1763
- }
1764
- if (data[_IT] != null) {
1765
- contents[_IT] = __parseBoolean(data[_IT]);
1766
- }
1767
- if (data[_M] != null) {
1768
- contents[_M] = __expectString(data[_M]);
1769
- }
1770
- if (data[_MI] != null) {
1771
- contents[_MI] = __strictParseInt32(data[_MI]);
1772
- }
1773
- if (data[_NM] != null) {
1774
- contents[_NM] = __expectString(data[_NM]);
1775
- }
1776
- return contents;
1777
- };
1778
- export const de_ListHostedZonesByNameCommand = async (output, context) => {
1779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
- return de_CommandError(output, context);
1781
- }
1782
- const contents = map({
1783
- $metadata: deserializeMetadata(output),
1784
- });
1785
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1786
- if (data[_DNSN] != null) {
1787
- contents[_DNSN] = __expectString(data[_DNSN]);
1788
- }
1789
- if (data[_HZI] != null) {
1790
- contents[_HZI] = __expectString(data[_HZI]);
1791
- }
1792
- if (String(data.HostedZones).trim() === "") {
1793
- contents[_HZo] = [];
1794
- }
1795
- else if (data[_HZo] != null && data[_HZo][_HZ] != null) {
1796
- contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context);
1797
- }
1798
- if (data[_IT] != null) {
1799
- contents[_IT] = __parseBoolean(data[_IT]);
1800
- }
1801
- if (data[_MI] != null) {
1802
- contents[_MI] = __strictParseInt32(data[_MI]);
1803
- }
1804
- if (data[_NDNSN] != null) {
1805
- contents[_NDNSN] = __expectString(data[_NDNSN]);
1806
- }
1807
- if (data[_NHZI] != null) {
1808
- contents[_NHZI] = __expectString(data[_NHZI]);
1809
- }
1810
- return contents;
1811
- };
1812
- export const de_ListHostedZonesByVPCCommand = async (output, context) => {
1813
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_CommandError(output, context);
1815
- }
1816
- const contents = map({
1817
- $metadata: deserializeMetadata(output),
1818
- });
1819
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1820
- if (String(data.HostedZoneSummaries).trim() === "") {
1821
- contents[_HZS] = [];
1822
- }
1823
- else if (data[_HZS] != null && data[_HZS][_HZSo] != null) {
1824
- contents[_HZS] = de_HostedZoneSummaries(__getArrayIfSingleItem(data[_HZS][_HZSo]), context);
1825
- }
1826
- if (data[_MI] != null) {
1827
- contents[_MI] = __strictParseInt32(data[_MI]);
1828
- }
1829
- if (data[_NT] != null) {
1830
- contents[_NT] = __expectString(data[_NT]);
1831
- }
1832
- return contents;
1833
- };
1834
- export const de_ListQueryLoggingConfigsCommand = async (output, context) => {
1835
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1836
- return de_CommandError(output, context);
1837
- }
1838
- const contents = map({
1839
- $metadata: deserializeMetadata(output),
1840
- });
1841
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1842
- if (data[_NT] != null) {
1843
- contents[_NT] = __expectString(data[_NT]);
1844
- }
1845
- if (String(data.QueryLoggingConfigs).trim() === "") {
1846
- contents[_QLCu] = [];
1847
- }
1848
- else if (data[_QLCu] != null && data[_QLCu][_QLC] != null) {
1849
- contents[_QLCu] = de_QueryLoggingConfigs(__getArrayIfSingleItem(data[_QLCu][_QLC]), context);
1850
- }
1851
- return contents;
1852
- };
1853
- export const de_ListResourceRecordSetsCommand = async (output, context) => {
1854
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
- return de_CommandError(output, context);
1856
- }
1857
- const contents = map({
1858
- $metadata: deserializeMetadata(output),
1859
- });
1860
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1861
- if (data[_IT] != null) {
1862
- contents[_IT] = __parseBoolean(data[_IT]);
1863
- }
1864
- if (data[_MI] != null) {
1865
- contents[_MI] = __strictParseInt32(data[_MI]);
1866
- }
1867
- if (data[_NRI] != null) {
1868
- contents[_NRI] = __expectString(data[_NRI]);
1869
- }
1870
- if (data[_NRN] != null) {
1871
- contents[_NRN] = __expectString(data[_NRN]);
1872
- }
1873
- if (data[_NRT] != null) {
1874
- contents[_NRT] = __expectString(data[_NRT]);
1875
- }
1876
- if (String(data.ResourceRecordSets).trim() === "") {
1877
- contents[_RRS] = [];
1878
- }
1879
- else if (data[_RRS] != null && data[_RRS][_RRSe] != null) {
1880
- contents[_RRS] = de_ResourceRecordSets(__getArrayIfSingleItem(data[_RRS][_RRSe]), context);
1881
- }
1882
- return contents;
1883
- };
1884
- export const de_ListReusableDelegationSetsCommand = async (output, context) => {
1885
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1886
- return de_CommandError(output, context);
1887
- }
1888
- const contents = map({
1889
- $metadata: deserializeMetadata(output),
1890
- });
1891
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1892
- if (String(data.DelegationSets).trim() === "") {
1893
- contents[_DSe] = [];
1894
- }
1895
- else if (data[_DSe] != null && data[_DSe][_DS] != null) {
1896
- contents[_DSe] = de_DelegationSets(__getArrayIfSingleItem(data[_DSe][_DS]), context);
1897
- }
1898
- if (data[_IT] != null) {
1899
- contents[_IT] = __parseBoolean(data[_IT]);
1900
- }
1901
- if (data[_M] != null) {
1902
- contents[_M] = __expectString(data[_M]);
1903
- }
1904
- if (data[_MI] != null) {
1905
- contents[_MI] = __strictParseInt32(data[_MI]);
1906
- }
1907
- if (data[_NM] != null) {
1908
- contents[_NM] = __expectString(data[_NM]);
1909
- }
1910
- return contents;
1911
- };
1912
- export const de_ListTagsForResourceCommand = async (output, context) => {
1913
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1914
- return de_CommandError(output, context);
1915
- }
1916
- const contents = map({
1917
- $metadata: deserializeMetadata(output),
1918
- });
1919
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1920
- if (data[_RTS] != null) {
1921
- contents[_RTS] = de_ResourceTagSet(data[_RTS], context);
1922
- }
1923
- return contents;
1924
- };
1925
- export const de_ListTagsForResourcesCommand = async (output, context) => {
1926
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1927
- return de_CommandError(output, context);
1928
- }
1929
- const contents = map({
1930
- $metadata: deserializeMetadata(output),
1931
- });
1932
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1933
- if (String(data.ResourceTagSets).trim() === "") {
1934
- contents[_RTSe] = [];
1935
- }
1936
- else if (data[_RTSe] != null && data[_RTSe][_RTS] != null) {
1937
- contents[_RTSe] = de_ResourceTagSetList(__getArrayIfSingleItem(data[_RTSe][_RTS]), context);
1938
- }
1939
- return contents;
1940
- };
1941
- export const de_ListTrafficPoliciesCommand = async (output, context) => {
1942
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1943
- return de_CommandError(output, context);
1944
- }
1945
- const contents = map({
1946
- $metadata: deserializeMetadata(output),
1947
- });
1948
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1949
- if (data[_IT] != null) {
1950
- contents[_IT] = __parseBoolean(data[_IT]);
1951
- }
1952
- if (data[_MI] != null) {
1953
- contents[_MI] = __strictParseInt32(data[_MI]);
1954
- }
1955
- if (data[_TPIM] != null) {
1956
- contents[_TPIM] = __expectString(data[_TPIM]);
1957
- }
1958
- if (String(data.TrafficPolicySummaries).trim() === "") {
1959
- contents[_TPS] = [];
1960
- }
1961
- else if (data[_TPS] != null && data[_TPS][_TPSr] != null) {
1962
- contents[_TPS] = de_TrafficPolicySummaries(__getArrayIfSingleItem(data[_TPS][_TPSr]), context);
1963
- }
1964
- return contents;
1965
- };
1966
- export const de_ListTrafficPolicyInstancesCommand = async (output, context) => {
1967
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1968
- return de_CommandError(output, context);
1969
- }
1970
- const contents = map({
1971
- $metadata: deserializeMetadata(output),
1972
- });
1973
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1974
- if (data[_HZIM] != null) {
1975
- contents[_HZIM] = __expectString(data[_HZIM]);
1976
- }
1977
- if (data[_IT] != null) {
1978
- contents[_IT] = __parseBoolean(data[_IT]);
1979
- }
1980
- if (data[_MI] != null) {
1981
- contents[_MI] = __strictParseInt32(data[_MI]);
1982
- }
1983
- if (data[_TPINM] != null) {
1984
- contents[_TPINM] = __expectString(data[_TPINM]);
1985
- }
1986
- if (data[_TPITM] != null) {
1987
- contents[_TPITM] = __expectString(data[_TPITM]);
1988
- }
1989
- if (String(data.TrafficPolicyInstances).trim() === "") {
1990
- contents[_TPIra] = [];
1991
- }
1992
- else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) {
1993
- contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context);
1994
- }
1995
- return contents;
1996
- };
1997
- export const de_ListTrafficPolicyInstancesByHostedZoneCommand = async (output, context) => {
1998
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1999
- return de_CommandError(output, context);
2000
- }
2001
- const contents = map({
2002
- $metadata: deserializeMetadata(output),
2003
- });
2004
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2005
- if (data[_IT] != null) {
2006
- contents[_IT] = __parseBoolean(data[_IT]);
2007
- }
2008
- if (data[_MI] != null) {
2009
- contents[_MI] = __strictParseInt32(data[_MI]);
2010
- }
2011
- if (data[_TPINM] != null) {
2012
- contents[_TPINM] = __expectString(data[_TPINM]);
2013
- }
2014
- if (data[_TPITM] != null) {
2015
- contents[_TPITM] = __expectString(data[_TPITM]);
2016
- }
2017
- if (String(data.TrafficPolicyInstances).trim() === "") {
2018
- contents[_TPIra] = [];
2019
- }
2020
- else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) {
2021
- contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context);
2022
- }
2023
- return contents;
2024
- };
2025
- export const de_ListTrafficPolicyInstancesByPolicyCommand = async (output, context) => {
2026
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2027
- return de_CommandError(output, context);
2028
- }
2029
- const contents = map({
2030
- $metadata: deserializeMetadata(output),
2031
- });
2032
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2033
- if (data[_HZIM] != null) {
2034
- contents[_HZIM] = __expectString(data[_HZIM]);
2035
- }
2036
- if (data[_IT] != null) {
2037
- contents[_IT] = __parseBoolean(data[_IT]);
2038
- }
2039
- if (data[_MI] != null) {
2040
- contents[_MI] = __strictParseInt32(data[_MI]);
2041
- }
2042
- if (data[_TPINM] != null) {
2043
- contents[_TPINM] = __expectString(data[_TPINM]);
2044
- }
2045
- if (data[_TPITM] != null) {
2046
- contents[_TPITM] = __expectString(data[_TPITM]);
2047
- }
2048
- if (String(data.TrafficPolicyInstances).trim() === "") {
2049
- contents[_TPIra] = [];
2050
- }
2051
- else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) {
2052
- contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context);
2053
- }
2054
- return contents;
2055
- };
2056
- export const de_ListTrafficPolicyVersionsCommand = async (output, context) => {
2057
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2058
- return de_CommandError(output, context);
2059
- }
2060
- const contents = map({
2061
- $metadata: deserializeMetadata(output),
2062
- });
2063
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2064
- if (data[_IT] != null) {
2065
- contents[_IT] = __parseBoolean(data[_IT]);
2066
- }
2067
- if (data[_MI] != null) {
2068
- contents[_MI] = __strictParseInt32(data[_MI]);
2069
- }
2070
- if (String(data.TrafficPolicies).trim() === "") {
2071
- contents[_TPr] = [];
2072
- }
2073
- else if (data[_TPr] != null && data[_TPr][_TP] != null) {
2074
- contents[_TPr] = de_TrafficPolicies(__getArrayIfSingleItem(data[_TPr][_TP]), context);
2075
- }
2076
- if (data[_TPVM] != null) {
2077
- contents[_TPVM] = __expectString(data[_TPVM]);
2078
- }
2079
- return contents;
2080
- };
2081
- export const de_ListVPCAssociationAuthorizationsCommand = async (output, context) => {
2082
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2083
- return de_CommandError(output, context);
2084
- }
2085
- const contents = map({
2086
- $metadata: deserializeMetadata(output),
2087
- });
2088
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2089
- if (data[_HZI] != null) {
2090
- contents[_HZI] = __expectString(data[_HZI]);
2091
- }
2092
- if (data[_NT] != null) {
2093
- contents[_NT] = __expectString(data[_NT]);
2094
- }
2095
- if (String(data.VPCs).trim() === "") {
2096
- contents[_VPCs] = [];
2097
- }
2098
- else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) {
2099
- contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context);
2100
- }
2101
- return contents;
2102
- };
2103
- export const de_TestDNSAnswerCommand = async (output, context) => {
2104
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2105
- return de_CommandError(output, context);
2106
- }
2107
- const contents = map({
2108
- $metadata: deserializeMetadata(output),
2109
- });
2110
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2111
- if (data[_Na] != null) {
2112
- contents[_Na] = __expectString(data[_Na]);
2113
- }
2114
- if (data[_Pr] != null) {
2115
- contents[_Pr] = __expectString(data[_Pr]);
2116
- }
2117
- if (String(data.RecordData).trim() === "") {
2118
- contents[_RDe] = [];
2119
- }
2120
- else if (data[_RDe] != null && data[_RDe][_RDE] != null) {
2121
- contents[_RDe] = de_RecordData(__getArrayIfSingleItem(data[_RDe][_RDE]), context);
2122
- }
2123
- if (data[_RN] != null) {
2124
- contents[_RN] = __expectString(data[_RN]);
2125
- }
2126
- if (data[_RT] != null) {
2127
- contents[_RT] = __expectString(data[_RT]);
2128
- }
2129
- if (data[_RC] != null) {
2130
- contents[_RC] = __expectString(data[_RC]);
2131
- }
2132
- return contents;
2133
- };
2134
- export const de_UpdateHealthCheckCommand = async (output, context) => {
2135
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2136
- return de_CommandError(output, context);
2137
- }
2138
- const contents = map({
2139
- $metadata: deserializeMetadata(output),
2140
- });
2141
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2142
- if (data[_HC] != null) {
2143
- contents[_HC] = de_HealthCheck(data[_HC], context);
2144
- }
2145
- return contents;
2146
- };
2147
- export const de_UpdateHostedZoneCommentCommand = async (output, context) => {
2148
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2149
- return de_CommandError(output, context);
2150
- }
2151
- const contents = map({
2152
- $metadata: deserializeMetadata(output),
2153
- });
2154
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2155
- if (data[_HZ] != null) {
2156
- contents[_HZ] = de_HostedZone(data[_HZ], context);
2157
- }
2158
- return contents;
2159
- };
2160
- export const de_UpdateTrafficPolicyCommentCommand = async (output, context) => {
2161
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2162
- return de_CommandError(output, context);
2163
- }
2164
- const contents = map({
2165
- $metadata: deserializeMetadata(output),
2166
- });
2167
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2168
- if (data[_TP] != null) {
2169
- contents[_TP] = de_TrafficPolicy(data[_TP], context);
2170
- }
2171
- return contents;
2172
- };
2173
- export const de_UpdateTrafficPolicyInstanceCommand = async (output, context) => {
2174
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2175
- return de_CommandError(output, context);
2176
- }
2177
- const contents = map({
2178
- $metadata: deserializeMetadata(output),
2179
- });
2180
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2181
- if (data[_TPIr] != null) {
2182
- contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context);
2183
- }
2184
- return contents;
2185
- };
2186
- const de_CommandError = async (output, context) => {
2187
- const parsedOutput = {
2188
- ...output,
2189
- body: await parseErrorBody(output.body, context),
2190
- };
2191
- const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2192
- switch (errorCode) {
2193
- case "ConcurrentModification":
2194
- case "com.amazonaws.route53#ConcurrentModification":
2195
- throw await de_ConcurrentModificationRes(parsedOutput, context);
2196
- case "InvalidInput":
2197
- case "com.amazonaws.route53#InvalidInput":
2198
- throw await de_InvalidInputRes(parsedOutput, context);
2199
- case "InvalidKMSArn":
2200
- case "com.amazonaws.route53#InvalidKMSArn":
2201
- throw await de_InvalidKMSArnRes(parsedOutput, context);
2202
- case "InvalidKeySigningKeyStatus":
2203
- case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
2204
- throw await de_InvalidKeySigningKeyStatusRes(parsedOutput, context);
2205
- case "InvalidSigningStatus":
2206
- case "com.amazonaws.route53#InvalidSigningStatus":
2207
- throw await de_InvalidSigningStatusRes(parsedOutput, context);
2208
- case "NoSuchKeySigningKey":
2209
- case "com.amazonaws.route53#NoSuchKeySigningKey":
2210
- throw await de_NoSuchKeySigningKeyRes(parsedOutput, context);
2211
- case "ConflictingDomainExists":
2212
- case "com.amazonaws.route53#ConflictingDomainExists":
2213
- throw await de_ConflictingDomainExistsRes(parsedOutput, context);
2214
- case "InvalidVPCId":
2215
- case "com.amazonaws.route53#InvalidVPCId":
2216
- throw await de_InvalidVPCIdRes(parsedOutput, context);
2217
- case "LimitsExceeded":
2218
- case "com.amazonaws.route53#LimitsExceeded":
2219
- throw await de_LimitsExceededRes(parsedOutput, context);
2220
- case "NoSuchHostedZone":
2221
- case "com.amazonaws.route53#NoSuchHostedZone":
2222
- throw await de_NoSuchHostedZoneRes(parsedOutput, context);
2223
- case "NotAuthorizedException":
2224
- case "com.amazonaws.route53#NotAuthorizedException":
2225
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
2226
- case "PriorRequestNotComplete":
2227
- case "com.amazonaws.route53#PriorRequestNotComplete":
2228
- throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
2229
- case "PublicZoneVPCAssociation":
2230
- case "com.amazonaws.route53#PublicZoneVPCAssociation":
2231
- throw await de_PublicZoneVPCAssociationRes(parsedOutput, context);
2232
- case "CidrBlockInUseException":
2233
- case "com.amazonaws.route53#CidrBlockInUseException":
2234
- throw await de_CidrBlockInUseExceptionRes(parsedOutput, context);
2235
- case "CidrCollectionVersionMismatchException":
2236
- case "com.amazonaws.route53#CidrCollectionVersionMismatchException":
2237
- throw await de_CidrCollectionVersionMismatchExceptionRes(parsedOutput, context);
2238
- case "NoSuchCidrCollectionException":
2239
- case "com.amazonaws.route53#NoSuchCidrCollectionException":
2240
- throw await de_NoSuchCidrCollectionExceptionRes(parsedOutput, context);
2241
- case "InvalidChangeBatch":
2242
- case "com.amazonaws.route53#InvalidChangeBatch":
2243
- throw await de_InvalidChangeBatchRes(parsedOutput, context);
2244
- case "NoSuchHealthCheck":
2245
- case "com.amazonaws.route53#NoSuchHealthCheck":
2246
- throw await de_NoSuchHealthCheckRes(parsedOutput, context);
2247
- case "ThrottlingException":
2248
- case "com.amazonaws.route53#ThrottlingException":
2249
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2250
- case "CidrCollectionAlreadyExistsException":
2251
- case "com.amazonaws.route53#CidrCollectionAlreadyExistsException":
2252
- throw await de_CidrCollectionAlreadyExistsExceptionRes(parsedOutput, context);
2253
- case "HealthCheckAlreadyExists":
2254
- case "com.amazonaws.route53#HealthCheckAlreadyExists":
2255
- throw await de_HealthCheckAlreadyExistsRes(parsedOutput, context);
2256
- case "TooManyHealthChecks":
2257
- case "com.amazonaws.route53#TooManyHealthChecks":
2258
- throw await de_TooManyHealthChecksRes(parsedOutput, context);
2259
- case "DelegationSetNotAvailable":
2260
- case "com.amazonaws.route53#DelegationSetNotAvailable":
2261
- throw await de_DelegationSetNotAvailableRes(parsedOutput, context);
2262
- case "DelegationSetNotReusable":
2263
- case "com.amazonaws.route53#DelegationSetNotReusable":
2264
- throw await de_DelegationSetNotReusableRes(parsedOutput, context);
2265
- case "HostedZoneAlreadyExists":
2266
- case "com.amazonaws.route53#HostedZoneAlreadyExists":
2267
- throw await de_HostedZoneAlreadyExistsRes(parsedOutput, context);
2268
- case "InvalidDomainName":
2269
- case "com.amazonaws.route53#InvalidDomainName":
2270
- throw await de_InvalidDomainNameRes(parsedOutput, context);
2271
- case "NoSuchDelegationSet":
2272
- case "com.amazonaws.route53#NoSuchDelegationSet":
2273
- throw await de_NoSuchDelegationSetRes(parsedOutput, context);
2274
- case "TooManyHostedZones":
2275
- case "com.amazonaws.route53#TooManyHostedZones":
2276
- throw await de_TooManyHostedZonesRes(parsedOutput, context);
2277
- case "InvalidArgument":
2278
- case "com.amazonaws.route53#InvalidArgument":
2279
- throw await de_InvalidArgumentRes(parsedOutput, context);
2280
- case "InvalidKeySigningKeyName":
2281
- case "com.amazonaws.route53#InvalidKeySigningKeyName":
2282
- throw await de_InvalidKeySigningKeyNameRes(parsedOutput, context);
2283
- case "KeySigningKeyAlreadyExists":
2284
- case "com.amazonaws.route53#KeySigningKeyAlreadyExists":
2285
- throw await de_KeySigningKeyAlreadyExistsRes(parsedOutput, context);
2286
- case "TooManyKeySigningKeys":
2287
- case "com.amazonaws.route53#TooManyKeySigningKeys":
2288
- throw await de_TooManyKeySigningKeysRes(parsedOutput, context);
2289
- case "InsufficientCloudWatchLogsResourcePolicy":
2290
- case "com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":
2291
- throw await de_InsufficientCloudWatchLogsResourcePolicyRes(parsedOutput, context);
2292
- case "NoSuchCloudWatchLogsLogGroup":
2293
- case "com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":
2294
- throw await de_NoSuchCloudWatchLogsLogGroupRes(parsedOutput, context);
2295
- case "QueryLoggingConfigAlreadyExists":
2296
- case "com.amazonaws.route53#QueryLoggingConfigAlreadyExists":
2297
- throw await de_QueryLoggingConfigAlreadyExistsRes(parsedOutput, context);
2298
- case "DelegationSetAlreadyCreated":
2299
- case "com.amazonaws.route53#DelegationSetAlreadyCreated":
2300
- throw await de_DelegationSetAlreadyCreatedRes(parsedOutput, context);
2301
- case "DelegationSetAlreadyReusable":
2302
- case "com.amazonaws.route53#DelegationSetAlreadyReusable":
2303
- throw await de_DelegationSetAlreadyReusableRes(parsedOutput, context);
2304
- case "HostedZoneNotFound":
2305
- case "com.amazonaws.route53#HostedZoneNotFound":
2306
- throw await de_HostedZoneNotFoundRes(parsedOutput, context);
2307
- case "InvalidTrafficPolicyDocument":
2308
- case "com.amazonaws.route53#InvalidTrafficPolicyDocument":
2309
- throw await de_InvalidTrafficPolicyDocumentRes(parsedOutput, context);
2310
- case "TooManyTrafficPolicies":
2311
- case "com.amazonaws.route53#TooManyTrafficPolicies":
2312
- throw await de_TooManyTrafficPoliciesRes(parsedOutput, context);
2313
- case "TrafficPolicyAlreadyExists":
2314
- case "com.amazonaws.route53#TrafficPolicyAlreadyExists":
2315
- throw await de_TrafficPolicyAlreadyExistsRes(parsedOutput, context);
2316
- case "NoSuchTrafficPolicy":
2317
- case "com.amazonaws.route53#NoSuchTrafficPolicy":
2318
- throw await de_NoSuchTrafficPolicyRes(parsedOutput, context);
2319
- case "TooManyTrafficPolicyInstances":
2320
- case "com.amazonaws.route53#TooManyTrafficPolicyInstances":
2321
- throw await de_TooManyTrafficPolicyInstancesRes(parsedOutput, context);
2322
- case "TrafficPolicyInstanceAlreadyExists":
2323
- case "com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":
2324
- throw await de_TrafficPolicyInstanceAlreadyExistsRes(parsedOutput, context);
2325
- case "TooManyTrafficPolicyVersionsForCurrentPolicy":
2326
- case "com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":
2327
- throw await de_TooManyTrafficPolicyVersionsForCurrentPolicyRes(parsedOutput, context);
2328
- case "TooManyVPCAssociationAuthorizations":
2329
- case "com.amazonaws.route53#TooManyVPCAssociationAuthorizations":
2330
- throw await de_TooManyVPCAssociationAuthorizationsRes(parsedOutput, context);
2331
- case "KeySigningKeyInParentDSRecord":
2332
- case "com.amazonaws.route53#KeySigningKeyInParentDSRecord":
2333
- throw await de_KeySigningKeyInParentDSRecordRes(parsedOutput, context);
2334
- case "KeySigningKeyInUse":
2335
- case "com.amazonaws.route53#KeySigningKeyInUse":
2336
- throw await de_KeySigningKeyInUseRes(parsedOutput, context);
2337
- case "CidrCollectionInUseException":
2338
- case "com.amazonaws.route53#CidrCollectionInUseException":
2339
- throw await de_CidrCollectionInUseExceptionRes(parsedOutput, context);
2340
- case "HealthCheckInUse":
2341
- case "com.amazonaws.route53#HealthCheckInUse":
2342
- throw await de_HealthCheckInUseRes(parsedOutput, context);
2343
- case "HostedZoneNotEmpty":
2344
- case "com.amazonaws.route53#HostedZoneNotEmpty":
2345
- throw await de_HostedZoneNotEmptyRes(parsedOutput, context);
2346
- case "NoSuchQueryLoggingConfig":
2347
- case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
2348
- throw await de_NoSuchQueryLoggingConfigRes(parsedOutput, context);
2349
- case "DelegationSetInUse":
2350
- case "com.amazonaws.route53#DelegationSetInUse":
2351
- throw await de_DelegationSetInUseRes(parsedOutput, context);
2352
- case "TrafficPolicyInUse":
2353
- case "com.amazonaws.route53#TrafficPolicyInUse":
2354
- throw await de_TrafficPolicyInUseRes(parsedOutput, context);
2355
- case "NoSuchTrafficPolicyInstance":
2356
- case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
2357
- throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
2358
- case "VPCAssociationAuthorizationNotFound":
2359
- case "com.amazonaws.route53#VPCAssociationAuthorizationNotFound":
2360
- throw await de_VPCAssociationAuthorizationNotFoundRes(parsedOutput, context);
2361
- case "DNSSECNotFound":
2362
- case "com.amazonaws.route53#DNSSECNotFound":
2363
- throw await de_DNSSECNotFoundRes(parsedOutput, context);
2364
- case "LastVPCAssociation":
2365
- case "com.amazonaws.route53#LastVPCAssociation":
2366
- throw await de_LastVPCAssociationRes(parsedOutput, context);
2367
- case "VPCAssociationNotFound":
2368
- case "com.amazonaws.route53#VPCAssociationNotFound":
2369
- throw await de_VPCAssociationNotFoundRes(parsedOutput, context);
2370
- case "HostedZonePartiallyDelegated":
2371
- case "com.amazonaws.route53#HostedZonePartiallyDelegated":
2372
- throw await de_HostedZonePartiallyDelegatedRes(parsedOutput, context);
2373
- case "KeySigningKeyWithActiveStatusNotFound":
2374
- case "com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":
2375
- throw await de_KeySigningKeyWithActiveStatusNotFoundRes(parsedOutput, context);
2376
- case "NoSuchChange":
2377
- case "com.amazonaws.route53#NoSuchChange":
2378
- throw await de_NoSuchChangeRes(parsedOutput, context);
2379
- case "NoSuchGeoLocation":
2380
- case "com.amazonaws.route53#NoSuchGeoLocation":
2381
- throw await de_NoSuchGeoLocationRes(parsedOutput, context);
2382
- case "IncompatibleVersion":
2383
- case "com.amazonaws.route53#IncompatibleVersion":
2384
- throw await de_IncompatibleVersionRes(parsedOutput, context);
2385
- case "HostedZoneNotPrivate":
2386
- case "com.amazonaws.route53#HostedZoneNotPrivate":
2387
- throw await de_HostedZoneNotPrivateRes(parsedOutput, context);
2388
- case "NoSuchCidrLocationException":
2389
- case "com.amazonaws.route53#NoSuchCidrLocationException":
2390
- throw await de_NoSuchCidrLocationExceptionRes(parsedOutput, context);
2391
- case "InvalidPaginationToken":
2392
- case "com.amazonaws.route53#InvalidPaginationToken":
2393
- throw await de_InvalidPaginationTokenRes(parsedOutput, context);
2394
- case "HealthCheckVersionMismatch":
2395
- case "com.amazonaws.route53#HealthCheckVersionMismatch":
2396
- throw await de_HealthCheckVersionMismatchRes(parsedOutput, context);
2397
- case "ConflictingTypes":
2398
- case "com.amazonaws.route53#ConflictingTypes":
2399
- throw await de_ConflictingTypesRes(parsedOutput, context);
2400
- default:
2401
- const parsedBody = parsedOutput.body;
2402
- return throwDefaultError({
2403
- output,
2404
- parsedBody: parsedBody.Error,
2405
- errorCode,
2406
- });
2407
- }
2408
- };
2409
- const throwDefaultError = withBaseException(__BaseException);
2410
- const de_CidrBlockInUseExceptionRes = async (parsedOutput, context) => {
2411
- const contents = map({});
2412
- const data = parsedOutput.body.Error;
2413
- if (data[_Me] != null) {
2414
- contents[_Me] = __expectString(data[_Me]);
2415
- }
2416
- const exception = new CidrBlockInUseException({
2417
- $metadata: deserializeMetadata(parsedOutput),
2418
- ...contents,
2419
- });
2420
- return __decorateServiceException(exception, parsedOutput.body.Error);
2421
- };
2422
- const de_CidrCollectionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2423
- const contents = map({});
2424
- const data = parsedOutput.body.Error;
2425
- if (data[_Me] != null) {
2426
- contents[_Me] = __expectString(data[_Me]);
2427
- }
2428
- const exception = new CidrCollectionAlreadyExistsException({
2429
- $metadata: deserializeMetadata(parsedOutput),
2430
- ...contents,
2431
- });
2432
- return __decorateServiceException(exception, parsedOutput.body.Error);
2433
- };
2434
- const de_CidrCollectionInUseExceptionRes = async (parsedOutput, context) => {
2435
- const contents = map({});
2436
- const data = parsedOutput.body.Error;
2437
- if (data[_Me] != null) {
2438
- contents[_Me] = __expectString(data[_Me]);
2439
- }
2440
- const exception = new CidrCollectionInUseException({
2441
- $metadata: deserializeMetadata(parsedOutput),
2442
- ...contents,
2443
- });
2444
- return __decorateServiceException(exception, parsedOutput.body.Error);
2445
- };
2446
- const de_CidrCollectionVersionMismatchExceptionRes = async (parsedOutput, context) => {
2447
- const contents = map({});
2448
- const data = parsedOutput.body.Error;
2449
- if (data[_Me] != null) {
2450
- contents[_Me] = __expectString(data[_Me]);
2451
- }
2452
- const exception = new CidrCollectionVersionMismatchException({
2453
- $metadata: deserializeMetadata(parsedOutput),
2454
- ...contents,
2455
- });
2456
- return __decorateServiceException(exception, parsedOutput.body.Error);
2457
- };
2458
- const de_ConcurrentModificationRes = async (parsedOutput, context) => {
2459
- const contents = map({});
2460
- const data = parsedOutput.body.Error;
2461
- if (data[_mes] != null) {
2462
- contents[_mes] = __expectString(data[_mes]);
2463
- }
2464
- const exception = new ConcurrentModification({
2465
- $metadata: deserializeMetadata(parsedOutput),
2466
- ...contents,
2467
- });
2468
- return __decorateServiceException(exception, parsedOutput.body.Error);
2469
- };
2470
- const de_ConflictingDomainExistsRes = async (parsedOutput, context) => {
2471
- const contents = map({});
2472
- const data = parsedOutput.body.Error;
2473
- if (data[_mes] != null) {
2474
- contents[_mes] = __expectString(data[_mes]);
2475
- }
2476
- const exception = new ConflictingDomainExists({
2477
- $metadata: deserializeMetadata(parsedOutput),
2478
- ...contents,
2479
- });
2480
- return __decorateServiceException(exception, parsedOutput.body.Error);
2481
- };
2482
- const de_ConflictingTypesRes = async (parsedOutput, context) => {
2483
- const contents = map({});
2484
- const data = parsedOutput.body.Error;
2485
- if (data[_mes] != null) {
2486
- contents[_mes] = __expectString(data[_mes]);
2487
- }
2488
- const exception = new ConflictingTypes({
2489
- $metadata: deserializeMetadata(parsedOutput),
2490
- ...contents,
2491
- });
2492
- return __decorateServiceException(exception, parsedOutput.body.Error);
2493
- };
2494
- const de_DelegationSetAlreadyCreatedRes = async (parsedOutput, context) => {
2495
- const contents = map({});
2496
- const data = parsedOutput.body.Error;
2497
- if (data[_mes] != null) {
2498
- contents[_mes] = __expectString(data[_mes]);
2499
- }
2500
- const exception = new DelegationSetAlreadyCreated({
2501
- $metadata: deserializeMetadata(parsedOutput),
2502
- ...contents,
2503
- });
2504
- return __decorateServiceException(exception, parsedOutput.body.Error);
2505
- };
2506
- const de_DelegationSetAlreadyReusableRes = async (parsedOutput, context) => {
2507
- const contents = map({});
2508
- const data = parsedOutput.body.Error;
2509
- if (data[_mes] != null) {
2510
- contents[_mes] = __expectString(data[_mes]);
2511
- }
2512
- const exception = new DelegationSetAlreadyReusable({
2513
- $metadata: deserializeMetadata(parsedOutput),
2514
- ...contents,
2515
- });
2516
- return __decorateServiceException(exception, parsedOutput.body.Error);
2517
- };
2518
- const de_DelegationSetInUseRes = async (parsedOutput, context) => {
2519
- const contents = map({});
2520
- const data = parsedOutput.body.Error;
2521
- if (data[_mes] != null) {
2522
- contents[_mes] = __expectString(data[_mes]);
2523
- }
2524
- const exception = new DelegationSetInUse({
2525
- $metadata: deserializeMetadata(parsedOutput),
2526
- ...contents,
2527
- });
2528
- return __decorateServiceException(exception, parsedOutput.body.Error);
2529
- };
2530
- const de_DelegationSetNotAvailableRes = async (parsedOutput, context) => {
2531
- const contents = map({});
2532
- const data = parsedOutput.body.Error;
2533
- if (data[_mes] != null) {
2534
- contents[_mes] = __expectString(data[_mes]);
2535
- }
2536
- const exception = new DelegationSetNotAvailable({
2537
- $metadata: deserializeMetadata(parsedOutput),
2538
- ...contents,
2539
- });
2540
- return __decorateServiceException(exception, parsedOutput.body.Error);
2541
- };
2542
- const de_DelegationSetNotReusableRes = async (parsedOutput, context) => {
2543
- const contents = map({});
2544
- const data = parsedOutput.body.Error;
2545
- if (data[_mes] != null) {
2546
- contents[_mes] = __expectString(data[_mes]);
2547
- }
2548
- const exception = new DelegationSetNotReusable({
2549
- $metadata: deserializeMetadata(parsedOutput),
2550
- ...contents,
2551
- });
2552
- return __decorateServiceException(exception, parsedOutput.body.Error);
2553
- };
2554
- const de_DNSSECNotFoundRes = async (parsedOutput, context) => {
2555
- const contents = map({});
2556
- const data = parsedOutput.body.Error;
2557
- if (data[_mes] != null) {
2558
- contents[_mes] = __expectString(data[_mes]);
2559
- }
2560
- const exception = new DNSSECNotFound({
2561
- $metadata: deserializeMetadata(parsedOutput),
2562
- ...contents,
2563
- });
2564
- return __decorateServiceException(exception, parsedOutput.body.Error);
2565
- };
2566
- const de_HealthCheckAlreadyExistsRes = async (parsedOutput, context) => {
2567
- const contents = map({});
2568
- const data = parsedOutput.body.Error;
2569
- if (data[_mes] != null) {
2570
- contents[_mes] = __expectString(data[_mes]);
2571
- }
2572
- const exception = new HealthCheckAlreadyExists({
2573
- $metadata: deserializeMetadata(parsedOutput),
2574
- ...contents,
2575
- });
2576
- return __decorateServiceException(exception, parsedOutput.body.Error);
2577
- };
2578
- const de_HealthCheckInUseRes = async (parsedOutput, context) => {
2579
- const contents = map({});
2580
- const data = parsedOutput.body.Error;
2581
- if (data[_mes] != null) {
2582
- contents[_mes] = __expectString(data[_mes]);
2583
- }
2584
- const exception = new HealthCheckInUse({
2585
- $metadata: deserializeMetadata(parsedOutput),
2586
- ...contents,
2587
- });
2588
- return __decorateServiceException(exception, parsedOutput.body.Error);
2589
- };
2590
- const de_HealthCheckVersionMismatchRes = async (parsedOutput, context) => {
2591
- const contents = map({});
2592
- const data = parsedOutput.body.Error;
2593
- if (data[_mes] != null) {
2594
- contents[_mes] = __expectString(data[_mes]);
2595
- }
2596
- const exception = new HealthCheckVersionMismatch({
2597
- $metadata: deserializeMetadata(parsedOutput),
2598
- ...contents,
2599
- });
2600
- return __decorateServiceException(exception, parsedOutput.body.Error);
2601
- };
2602
- const de_HostedZoneAlreadyExistsRes = async (parsedOutput, context) => {
2603
- const contents = map({});
2604
- const data = parsedOutput.body.Error;
2605
- if (data[_mes] != null) {
2606
- contents[_mes] = __expectString(data[_mes]);
2607
- }
2608
- const exception = new HostedZoneAlreadyExists({
2609
- $metadata: deserializeMetadata(parsedOutput),
2610
- ...contents,
2611
- });
2612
- return __decorateServiceException(exception, parsedOutput.body.Error);
2613
- };
2614
- const de_HostedZoneNotEmptyRes = async (parsedOutput, context) => {
2615
- const contents = map({});
2616
- const data = parsedOutput.body.Error;
2617
- if (data[_mes] != null) {
2618
- contents[_mes] = __expectString(data[_mes]);
2619
- }
2620
- const exception = new HostedZoneNotEmpty({
2621
- $metadata: deserializeMetadata(parsedOutput),
2622
- ...contents,
2623
- });
2624
- return __decorateServiceException(exception, parsedOutput.body.Error);
2625
- };
2626
- const de_HostedZoneNotFoundRes = async (parsedOutput, context) => {
2627
- const contents = map({});
2628
- const data = parsedOutput.body.Error;
2629
- if (data[_mes] != null) {
2630
- contents[_mes] = __expectString(data[_mes]);
2631
- }
2632
- const exception = new HostedZoneNotFound({
2633
- $metadata: deserializeMetadata(parsedOutput),
2634
- ...contents,
2635
- });
2636
- return __decorateServiceException(exception, parsedOutput.body.Error);
2637
- };
2638
- const de_HostedZoneNotPrivateRes = async (parsedOutput, context) => {
2639
- const contents = map({});
2640
- const data = parsedOutput.body.Error;
2641
- if (data[_mes] != null) {
2642
- contents[_mes] = __expectString(data[_mes]);
2643
- }
2644
- const exception = new HostedZoneNotPrivate({
2645
- $metadata: deserializeMetadata(parsedOutput),
2646
- ...contents,
2647
- });
2648
- return __decorateServiceException(exception, parsedOutput.body.Error);
2649
- };
2650
- const de_HostedZonePartiallyDelegatedRes = async (parsedOutput, context) => {
2651
- const contents = map({});
2652
- const data = parsedOutput.body.Error;
2653
- if (data[_mes] != null) {
2654
- contents[_mes] = __expectString(data[_mes]);
2655
- }
2656
- const exception = new HostedZonePartiallyDelegated({
2657
- $metadata: deserializeMetadata(parsedOutput),
2658
- ...contents,
2659
- });
2660
- return __decorateServiceException(exception, parsedOutput.body.Error);
2661
- };
2662
- const de_IncompatibleVersionRes = async (parsedOutput, context) => {
2663
- const contents = map({});
2664
- const data = parsedOutput.body.Error;
2665
- if (data[_mes] != null) {
2666
- contents[_mes] = __expectString(data[_mes]);
2667
- }
2668
- const exception = new IncompatibleVersion({
2669
- $metadata: deserializeMetadata(parsedOutput),
2670
- ...contents,
2671
- });
2672
- return __decorateServiceException(exception, parsedOutput.body.Error);
2673
- };
2674
- const de_InsufficientCloudWatchLogsResourcePolicyRes = async (parsedOutput, context) => {
2675
- const contents = map({});
2676
- const data = parsedOutput.body.Error;
2677
- if (data[_mes] != null) {
2678
- contents[_mes] = __expectString(data[_mes]);
2679
- }
2680
- const exception = new InsufficientCloudWatchLogsResourcePolicy({
2681
- $metadata: deserializeMetadata(parsedOutput),
2682
- ...contents,
2683
- });
2684
- return __decorateServiceException(exception, parsedOutput.body.Error);
2685
- };
2686
- const de_InvalidArgumentRes = async (parsedOutput, context) => {
2687
- const contents = map({});
2688
- const data = parsedOutput.body.Error;
2689
- if (data[_mes] != null) {
2690
- contents[_mes] = __expectString(data[_mes]);
2691
- }
2692
- const exception = new InvalidArgument({
2693
- $metadata: deserializeMetadata(parsedOutput),
2694
- ...contents,
2695
- });
2696
- return __decorateServiceException(exception, parsedOutput.body.Error);
2697
- };
2698
- const de_InvalidChangeBatchRes = async (parsedOutput, context) => {
2699
- const contents = map({});
2700
- const data = parsedOutput.body.Error;
2701
- if (data[_mes] != null) {
2702
- contents[_mes] = __expectString(data[_mes]);
2703
- }
2704
- if (String(data.messages).trim() === "") {
2705
- contents[_mess] = [];
2706
- }
2707
- else if (data[_mess] != null && data[_mess][_Me] != null) {
2708
- contents[_mess] = de_ErrorMessages(__getArrayIfSingleItem(data[_mess][_Me]), context);
2709
- }
2710
- const exception = new InvalidChangeBatch({
2711
- $metadata: deserializeMetadata(parsedOutput),
2712
- ...contents,
2713
- });
2714
- return __decorateServiceException(exception, parsedOutput.body.Error);
2715
- };
2716
- const de_InvalidDomainNameRes = async (parsedOutput, context) => {
2717
- const contents = map({});
2718
- const data = parsedOutput.body.Error;
2719
- if (data[_mes] != null) {
2720
- contents[_mes] = __expectString(data[_mes]);
2721
- }
2722
- const exception = new InvalidDomainName({
2723
- $metadata: deserializeMetadata(parsedOutput),
2724
- ...contents,
2725
- });
2726
- return __decorateServiceException(exception, parsedOutput.body.Error);
2727
- };
2728
- const de_InvalidInputRes = async (parsedOutput, context) => {
2729
- const contents = map({});
2730
- const data = parsedOutput.body.Error;
2731
- if (data[_mes] != null) {
2732
- contents[_mes] = __expectString(data[_mes]);
2733
- }
2734
- const exception = new InvalidInput({
2735
- $metadata: deserializeMetadata(parsedOutput),
2736
- ...contents,
2737
- });
2738
- return __decorateServiceException(exception, parsedOutput.body.Error);
2739
- };
2740
- const de_InvalidKeySigningKeyNameRes = async (parsedOutput, context) => {
2741
- const contents = map({});
2742
- const data = parsedOutput.body.Error;
2743
- if (data[_mes] != null) {
2744
- contents[_mes] = __expectString(data[_mes]);
2745
- }
2746
- const exception = new InvalidKeySigningKeyName({
2747
- $metadata: deserializeMetadata(parsedOutput),
2748
- ...contents,
2749
- });
2750
- return __decorateServiceException(exception, parsedOutput.body.Error);
2751
- };
2752
- const de_InvalidKeySigningKeyStatusRes = async (parsedOutput, context) => {
2753
- const contents = map({});
2754
- const data = parsedOutput.body.Error;
2755
- if (data[_mes] != null) {
2756
- contents[_mes] = __expectString(data[_mes]);
2757
- }
2758
- const exception = new InvalidKeySigningKeyStatus({
2759
- $metadata: deserializeMetadata(parsedOutput),
2760
- ...contents,
2761
- });
2762
- return __decorateServiceException(exception, parsedOutput.body.Error);
2763
- };
2764
- const de_InvalidKMSArnRes = async (parsedOutput, context) => {
2765
- const contents = map({});
2766
- const data = parsedOutput.body.Error;
2767
- if (data[_mes] != null) {
2768
- contents[_mes] = __expectString(data[_mes]);
2769
- }
2770
- const exception = new InvalidKMSArn({
2771
- $metadata: deserializeMetadata(parsedOutput),
2772
- ...contents,
2773
- });
2774
- return __decorateServiceException(exception, parsedOutput.body.Error);
2775
- };
2776
- const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
2777
- const contents = map({});
2778
- const data = parsedOutput.body.Error;
2779
- if (data[_mes] != null) {
2780
- contents[_mes] = __expectString(data[_mes]);
2781
- }
2782
- const exception = new InvalidPaginationToken({
2783
- $metadata: deserializeMetadata(parsedOutput),
2784
- ...contents,
2785
- });
2786
- return __decorateServiceException(exception, parsedOutput.body.Error);
2787
- };
2788
- const de_InvalidSigningStatusRes = async (parsedOutput, context) => {
2789
- const contents = map({});
2790
- const data = parsedOutput.body.Error;
2791
- if (data[_mes] != null) {
2792
- contents[_mes] = __expectString(data[_mes]);
2793
- }
2794
- const exception = new InvalidSigningStatus({
2795
- $metadata: deserializeMetadata(parsedOutput),
2796
- ...contents,
2797
- });
2798
- return __decorateServiceException(exception, parsedOutput.body.Error);
2799
- };
2800
- const de_InvalidTrafficPolicyDocumentRes = async (parsedOutput, context) => {
2801
- const contents = map({});
2802
- const data = parsedOutput.body.Error;
2803
- if (data[_mes] != null) {
2804
- contents[_mes] = __expectString(data[_mes]);
2805
- }
2806
- const exception = new InvalidTrafficPolicyDocument({
2807
- $metadata: deserializeMetadata(parsedOutput),
2808
- ...contents,
2809
- });
2810
- return __decorateServiceException(exception, parsedOutput.body.Error);
2811
- };
2812
- const de_InvalidVPCIdRes = async (parsedOutput, context) => {
2813
- const contents = map({});
2814
- const data = parsedOutput.body.Error;
2815
- if (data[_mes] != null) {
2816
- contents[_mes] = __expectString(data[_mes]);
2817
- }
2818
- const exception = new InvalidVPCId({
2819
- $metadata: deserializeMetadata(parsedOutput),
2820
- ...contents,
2821
- });
2822
- return __decorateServiceException(exception, parsedOutput.body.Error);
2823
- };
2824
- const de_KeySigningKeyAlreadyExistsRes = async (parsedOutput, context) => {
2825
- const contents = map({});
2826
- const data = parsedOutput.body.Error;
2827
- if (data[_mes] != null) {
2828
- contents[_mes] = __expectString(data[_mes]);
2829
- }
2830
- const exception = new KeySigningKeyAlreadyExists({
2831
- $metadata: deserializeMetadata(parsedOutput),
2832
- ...contents,
2833
- });
2834
- return __decorateServiceException(exception, parsedOutput.body.Error);
2835
- };
2836
- const de_KeySigningKeyInParentDSRecordRes = async (parsedOutput, context) => {
2837
- const contents = map({});
2838
- const data = parsedOutput.body.Error;
2839
- if (data[_mes] != null) {
2840
- contents[_mes] = __expectString(data[_mes]);
2841
- }
2842
- const exception = new KeySigningKeyInParentDSRecord({
2843
- $metadata: deserializeMetadata(parsedOutput),
2844
- ...contents,
2845
- });
2846
- return __decorateServiceException(exception, parsedOutput.body.Error);
2847
- };
2848
- const de_KeySigningKeyInUseRes = async (parsedOutput, context) => {
2849
- const contents = map({});
2850
- const data = parsedOutput.body.Error;
2851
- if (data[_mes] != null) {
2852
- contents[_mes] = __expectString(data[_mes]);
2853
- }
2854
- const exception = new KeySigningKeyInUse({
2855
- $metadata: deserializeMetadata(parsedOutput),
2856
- ...contents,
2857
- });
2858
- return __decorateServiceException(exception, parsedOutput.body.Error);
2859
- };
2860
- const de_KeySigningKeyWithActiveStatusNotFoundRes = async (parsedOutput, context) => {
2861
- const contents = map({});
2862
- const data = parsedOutput.body.Error;
2863
- if (data[_mes] != null) {
2864
- contents[_mes] = __expectString(data[_mes]);
2865
- }
2866
- const exception = new KeySigningKeyWithActiveStatusNotFound({
2867
- $metadata: deserializeMetadata(parsedOutput),
2868
- ...contents,
2869
- });
2870
- return __decorateServiceException(exception, parsedOutput.body.Error);
2871
- };
2872
- const de_LastVPCAssociationRes = async (parsedOutput, context) => {
2873
- const contents = map({});
2874
- const data = parsedOutput.body.Error;
2875
- if (data[_mes] != null) {
2876
- contents[_mes] = __expectString(data[_mes]);
2877
- }
2878
- const exception = new LastVPCAssociation({
2879
- $metadata: deserializeMetadata(parsedOutput),
2880
- ...contents,
2881
- });
2882
- return __decorateServiceException(exception, parsedOutput.body.Error);
2883
- };
2884
- const de_LimitsExceededRes = async (parsedOutput, context) => {
2885
- const contents = map({});
2886
- const data = parsedOutput.body.Error;
2887
- if (data[_mes] != null) {
2888
- contents[_mes] = __expectString(data[_mes]);
2889
- }
2890
- const exception = new LimitsExceeded({
2891
- $metadata: deserializeMetadata(parsedOutput),
2892
- ...contents,
2893
- });
2894
- return __decorateServiceException(exception, parsedOutput.body.Error);
2895
- };
2896
- const de_NoSuchChangeRes = async (parsedOutput, context) => {
2897
- const contents = map({});
2898
- const data = parsedOutput.body.Error;
2899
- if (data[_mes] != null) {
2900
- contents[_mes] = __expectString(data[_mes]);
2901
- }
2902
- const exception = new NoSuchChange({
2903
- $metadata: deserializeMetadata(parsedOutput),
2904
- ...contents,
2905
- });
2906
- return __decorateServiceException(exception, parsedOutput.body.Error);
2907
- };
2908
- const de_NoSuchCidrCollectionExceptionRes = async (parsedOutput, context) => {
2909
- const contents = map({});
2910
- const data = parsedOutput.body.Error;
2911
- if (data[_Me] != null) {
2912
- contents[_Me] = __expectString(data[_Me]);
2913
- }
2914
- const exception = new NoSuchCidrCollectionException({
2915
- $metadata: deserializeMetadata(parsedOutput),
2916
- ...contents,
2917
- });
2918
- return __decorateServiceException(exception, parsedOutput.body.Error);
2919
- };
2920
- const de_NoSuchCidrLocationExceptionRes = async (parsedOutput, context) => {
2921
- const contents = map({});
2922
- const data = parsedOutput.body.Error;
2923
- if (data[_Me] != null) {
2924
- contents[_Me] = __expectString(data[_Me]);
2925
- }
2926
- const exception = new NoSuchCidrLocationException({
2927
- $metadata: deserializeMetadata(parsedOutput),
2928
- ...contents,
2929
- });
2930
- return __decorateServiceException(exception, parsedOutput.body.Error);
2931
- };
2932
- const de_NoSuchCloudWatchLogsLogGroupRes = async (parsedOutput, context) => {
2933
- const contents = map({});
2934
- const data = parsedOutput.body.Error;
2935
- if (data[_mes] != null) {
2936
- contents[_mes] = __expectString(data[_mes]);
2937
- }
2938
- const exception = new NoSuchCloudWatchLogsLogGroup({
2939
- $metadata: deserializeMetadata(parsedOutput),
2940
- ...contents,
2941
- });
2942
- return __decorateServiceException(exception, parsedOutput.body.Error);
2943
- };
2944
- const de_NoSuchDelegationSetRes = async (parsedOutput, context) => {
2945
- const contents = map({});
2946
- const data = parsedOutput.body.Error;
2947
- if (data[_mes] != null) {
2948
- contents[_mes] = __expectString(data[_mes]);
2949
- }
2950
- const exception = new NoSuchDelegationSet({
2951
- $metadata: deserializeMetadata(parsedOutput),
2952
- ...contents,
2953
- });
2954
- return __decorateServiceException(exception, parsedOutput.body.Error);
2955
- };
2956
- const de_NoSuchGeoLocationRes = async (parsedOutput, context) => {
2957
- const contents = map({});
2958
- const data = parsedOutput.body.Error;
2959
- if (data[_mes] != null) {
2960
- contents[_mes] = __expectString(data[_mes]);
2961
- }
2962
- const exception = new NoSuchGeoLocation({
2963
- $metadata: deserializeMetadata(parsedOutput),
2964
- ...contents,
2965
- });
2966
- return __decorateServiceException(exception, parsedOutput.body.Error);
2967
- };
2968
- const de_NoSuchHealthCheckRes = async (parsedOutput, context) => {
2969
- const contents = map({});
2970
- const data = parsedOutput.body.Error;
2971
- if (data[_mes] != null) {
2972
- contents[_mes] = __expectString(data[_mes]);
2973
- }
2974
- const exception = new NoSuchHealthCheck({
2975
- $metadata: deserializeMetadata(parsedOutput),
2976
- ...contents,
2977
- });
2978
- return __decorateServiceException(exception, parsedOutput.body.Error);
2979
- };
2980
- const de_NoSuchHostedZoneRes = async (parsedOutput, context) => {
2981
- const contents = map({});
2982
- const data = parsedOutput.body.Error;
2983
- if (data[_mes] != null) {
2984
- contents[_mes] = __expectString(data[_mes]);
2985
- }
2986
- const exception = new NoSuchHostedZone({
2987
- $metadata: deserializeMetadata(parsedOutput),
2988
- ...contents,
2989
- });
2990
- return __decorateServiceException(exception, parsedOutput.body.Error);
2991
- };
2992
- const de_NoSuchKeySigningKeyRes = async (parsedOutput, context) => {
2993
- const contents = map({});
2994
- const data = parsedOutput.body.Error;
2995
- if (data[_mes] != null) {
2996
- contents[_mes] = __expectString(data[_mes]);
2997
- }
2998
- const exception = new NoSuchKeySigningKey({
2999
- $metadata: deserializeMetadata(parsedOutput),
3000
- ...contents,
3001
- });
3002
- return __decorateServiceException(exception, parsedOutput.body.Error);
3003
- };
3004
- const de_NoSuchQueryLoggingConfigRes = async (parsedOutput, context) => {
3005
- const contents = map({});
3006
- const data = parsedOutput.body.Error;
3007
- if (data[_mes] != null) {
3008
- contents[_mes] = __expectString(data[_mes]);
3009
- }
3010
- const exception = new NoSuchQueryLoggingConfig({
3011
- $metadata: deserializeMetadata(parsedOutput),
3012
- ...contents,
3013
- });
3014
- return __decorateServiceException(exception, parsedOutput.body.Error);
3015
- };
3016
- const de_NoSuchTrafficPolicyRes = async (parsedOutput, context) => {
3017
- const contents = map({});
3018
- const data = parsedOutput.body.Error;
3019
- if (data[_mes] != null) {
3020
- contents[_mes] = __expectString(data[_mes]);
3021
- }
3022
- const exception = new NoSuchTrafficPolicy({
3023
- $metadata: deserializeMetadata(parsedOutput),
3024
- ...contents,
3025
- });
3026
- return __decorateServiceException(exception, parsedOutput.body.Error);
3027
- };
3028
- const de_NoSuchTrafficPolicyInstanceRes = async (parsedOutput, context) => {
3029
- const contents = map({});
3030
- const data = parsedOutput.body.Error;
3031
- if (data[_mes] != null) {
3032
- contents[_mes] = __expectString(data[_mes]);
3033
- }
3034
- const exception = new NoSuchTrafficPolicyInstance({
3035
- $metadata: deserializeMetadata(parsedOutput),
3036
- ...contents,
3037
- });
3038
- return __decorateServiceException(exception, parsedOutput.body.Error);
3039
- };
3040
- const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
3041
- const contents = map({});
3042
- const data = parsedOutput.body.Error;
3043
- if (data[_mes] != null) {
3044
- contents[_mes] = __expectString(data[_mes]);
3045
- }
3046
- const exception = new NotAuthorizedException({
3047
- $metadata: deserializeMetadata(parsedOutput),
3048
- ...contents,
3049
- });
3050
- return __decorateServiceException(exception, parsedOutput.body.Error);
3051
- };
3052
- const de_PriorRequestNotCompleteRes = async (parsedOutput, context) => {
3053
- const contents = map({});
3054
- const data = parsedOutput.body.Error;
3055
- if (data[_mes] != null) {
3056
- contents[_mes] = __expectString(data[_mes]);
3057
- }
3058
- const exception = new PriorRequestNotComplete({
3059
- $metadata: deserializeMetadata(parsedOutput),
3060
- ...contents,
3061
- });
3062
- return __decorateServiceException(exception, parsedOutput.body.Error);
3063
- };
3064
- const de_PublicZoneVPCAssociationRes = async (parsedOutput, context) => {
3065
- const contents = map({});
3066
- const data = parsedOutput.body.Error;
3067
- if (data[_mes] != null) {
3068
- contents[_mes] = __expectString(data[_mes]);
3069
- }
3070
- const exception = new PublicZoneVPCAssociation({
3071
- $metadata: deserializeMetadata(parsedOutput),
3072
- ...contents,
3073
- });
3074
- return __decorateServiceException(exception, parsedOutput.body.Error);
3075
- };
3076
- const de_QueryLoggingConfigAlreadyExistsRes = async (parsedOutput, context) => {
3077
- const contents = map({});
3078
- const data = parsedOutput.body.Error;
3079
- if (data[_mes] != null) {
3080
- contents[_mes] = __expectString(data[_mes]);
3081
- }
3082
- const exception = new QueryLoggingConfigAlreadyExists({
3083
- $metadata: deserializeMetadata(parsedOutput),
3084
- ...contents,
3085
- });
3086
- return __decorateServiceException(exception, parsedOutput.body.Error);
3087
- };
3088
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3089
- const contents = map({});
3090
- const data = parsedOutput.body.Error;
3091
- if (data[_mes] != null) {
3092
- contents[_mes] = __expectString(data[_mes]);
3093
- }
3094
- const exception = new ThrottlingException({
3095
- $metadata: deserializeMetadata(parsedOutput),
3096
- ...contents,
3097
- });
3098
- return __decorateServiceException(exception, parsedOutput.body.Error);
3099
- };
3100
- const de_TooManyHealthChecksRes = async (parsedOutput, context) => {
3101
- const contents = map({});
3102
- const data = parsedOutput.body.Error;
3103
- if (data[_mes] != null) {
3104
- contents[_mes] = __expectString(data[_mes]);
3105
- }
3106
- const exception = new TooManyHealthChecks({
3107
- $metadata: deserializeMetadata(parsedOutput),
3108
- ...contents,
3109
- });
3110
- return __decorateServiceException(exception, parsedOutput.body.Error);
3111
- };
3112
- const de_TooManyHostedZonesRes = async (parsedOutput, context) => {
3113
- const contents = map({});
3114
- const data = parsedOutput.body.Error;
3115
- if (data[_mes] != null) {
3116
- contents[_mes] = __expectString(data[_mes]);
3117
- }
3118
- const exception = new TooManyHostedZones({
3119
- $metadata: deserializeMetadata(parsedOutput),
3120
- ...contents,
3121
- });
3122
- return __decorateServiceException(exception, parsedOutput.body.Error);
3123
- };
3124
- const de_TooManyKeySigningKeysRes = async (parsedOutput, context) => {
3125
- const contents = map({});
3126
- const data = parsedOutput.body.Error;
3127
- if (data[_mes] != null) {
3128
- contents[_mes] = __expectString(data[_mes]);
3129
- }
3130
- const exception = new TooManyKeySigningKeys({
3131
- $metadata: deserializeMetadata(parsedOutput),
3132
- ...contents,
3133
- });
3134
- return __decorateServiceException(exception, parsedOutput.body.Error);
3135
- };
3136
- const de_TooManyTrafficPoliciesRes = async (parsedOutput, context) => {
3137
- const contents = map({});
3138
- const data = parsedOutput.body.Error;
3139
- if (data[_mes] != null) {
3140
- contents[_mes] = __expectString(data[_mes]);
3141
- }
3142
- const exception = new TooManyTrafficPolicies({
3143
- $metadata: deserializeMetadata(parsedOutput),
3144
- ...contents,
3145
- });
3146
- return __decorateServiceException(exception, parsedOutput.body.Error);
3147
- };
3148
- const de_TooManyTrafficPolicyInstancesRes = async (parsedOutput, context) => {
3149
- const contents = map({});
3150
- const data = parsedOutput.body.Error;
3151
- if (data[_mes] != null) {
3152
- contents[_mes] = __expectString(data[_mes]);
3153
- }
3154
- const exception = new TooManyTrafficPolicyInstances({
3155
- $metadata: deserializeMetadata(parsedOutput),
3156
- ...contents,
3157
- });
3158
- return __decorateServiceException(exception, parsedOutput.body.Error);
3159
- };
3160
- const de_TooManyTrafficPolicyVersionsForCurrentPolicyRes = async (parsedOutput, context) => {
3161
- const contents = map({});
3162
- const data = parsedOutput.body.Error;
3163
- if (data[_mes] != null) {
3164
- contents[_mes] = __expectString(data[_mes]);
3165
- }
3166
- const exception = new TooManyTrafficPolicyVersionsForCurrentPolicy({
3167
- $metadata: deserializeMetadata(parsedOutput),
3168
- ...contents,
3169
- });
3170
- return __decorateServiceException(exception, parsedOutput.body.Error);
3171
- };
3172
- const de_TooManyVPCAssociationAuthorizationsRes = async (parsedOutput, context) => {
3173
- const contents = map({});
3174
- const data = parsedOutput.body.Error;
3175
- if (data[_mes] != null) {
3176
- contents[_mes] = __expectString(data[_mes]);
3177
- }
3178
- const exception = new TooManyVPCAssociationAuthorizations({
3179
- $metadata: deserializeMetadata(parsedOutput),
3180
- ...contents,
3181
- });
3182
- return __decorateServiceException(exception, parsedOutput.body.Error);
3183
- };
3184
- const de_TrafficPolicyAlreadyExistsRes = async (parsedOutput, context) => {
3185
- const contents = map({});
3186
- const data = parsedOutput.body.Error;
3187
- if (data[_mes] != null) {
3188
- contents[_mes] = __expectString(data[_mes]);
3189
- }
3190
- const exception = new TrafficPolicyAlreadyExists({
3191
- $metadata: deserializeMetadata(parsedOutput),
3192
- ...contents,
3193
- });
3194
- return __decorateServiceException(exception, parsedOutput.body.Error);
3195
- };
3196
- const de_TrafficPolicyInstanceAlreadyExistsRes = async (parsedOutput, context) => {
3197
- const contents = map({});
3198
- const data = parsedOutput.body.Error;
3199
- if (data[_mes] != null) {
3200
- contents[_mes] = __expectString(data[_mes]);
3201
- }
3202
- const exception = new TrafficPolicyInstanceAlreadyExists({
3203
- $metadata: deserializeMetadata(parsedOutput),
3204
- ...contents,
3205
- });
3206
- return __decorateServiceException(exception, parsedOutput.body.Error);
3207
- };
3208
- const de_TrafficPolicyInUseRes = async (parsedOutput, context) => {
3209
- const contents = map({});
3210
- const data = parsedOutput.body.Error;
3211
- if (data[_mes] != null) {
3212
- contents[_mes] = __expectString(data[_mes]);
3213
- }
3214
- const exception = new TrafficPolicyInUse({
3215
- $metadata: deserializeMetadata(parsedOutput),
3216
- ...contents,
3217
- });
3218
- return __decorateServiceException(exception, parsedOutput.body.Error);
3219
- };
3220
- const de_VPCAssociationAuthorizationNotFoundRes = async (parsedOutput, context) => {
3221
- const contents = map({});
3222
- const data = parsedOutput.body.Error;
3223
- if (data[_mes] != null) {
3224
- contents[_mes] = __expectString(data[_mes]);
3225
- }
3226
- const exception = new VPCAssociationAuthorizationNotFound({
3227
- $metadata: deserializeMetadata(parsedOutput),
3228
- ...contents,
3229
- });
3230
- return __decorateServiceException(exception, parsedOutput.body.Error);
3231
- };
3232
- const de_VPCAssociationNotFoundRes = async (parsedOutput, context) => {
3233
- const contents = map({});
3234
- const data = parsedOutput.body.Error;
3235
- if (data[_mes] != null) {
3236
- contents[_mes] = __expectString(data[_mes]);
3237
- }
3238
- const exception = new VPCAssociationNotFound({
3239
- $metadata: deserializeMetadata(parsedOutput),
3240
- ...contents,
3241
- });
3242
- return __decorateServiceException(exception, parsedOutput.body.Error);
3243
- };
3244
- const se_AlarmIdentifier = (input, context) => {
3245
- const bn = new __XmlNode(_AI);
3246
- if (input[_Re] != null) {
3247
- bn.c(__XmlNode.of(_CWR, input[_Re]).n(_Re));
3248
- }
3249
- if (input[_N] != null) {
3250
- bn.c(__XmlNode.of(_AN, input[_N]).n(_N));
3251
- }
3252
- return bn;
3253
- };
3254
- const se_AliasTarget = (input, context) => {
3255
- const bn = new __XmlNode(_ATl);
3256
- if (input[_HZI] != null) {
3257
- bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI));
3258
- }
3259
- bn.cc(input, _DNSN);
3260
- if (input[_ETH] != null) {
3261
- bn.c(__XmlNode.of(_AHE, String(input[_ETH])).n(_ETH));
3262
- }
3263
- return bn;
3264
- };
3265
- const se_Change = (input, context) => {
3266
- const bn = new __XmlNode(_Cha);
3267
- if (input[_A] != null) {
3268
- bn.c(__XmlNode.of(_CA, input[_A]).n(_A));
3269
- }
3270
- if (input[_RRSe] != null) {
3271
- bn.c(se_ResourceRecordSet(input[_RRSe], context).n(_RRSe));
3272
- }
3273
- return bn;
3274
- };
3275
- const se_ChangeBatch = (input, context) => {
3276
- const bn = new __XmlNode(_CB);
3277
- if (input[_C] != null) {
3278
- bn.c(__XmlNode.of(_RD, input[_C]).n(_C));
3279
- }
3280
- bn.lc(input, "Changes", "Changes", () => se_Changes(input[_Ch], context));
3281
- return bn;
3282
- };
3283
- const se_Changes = (input, context) => {
3284
- return input
3285
- .filter((e) => e != null)
3286
- .map((entry) => {
3287
- const n = se_Change(entry, context);
3288
- return n.n(_Cha);
3289
- });
3290
- };
3291
- const se_ChildHealthCheckList = (input, context) => {
3292
- return input
3293
- .filter((e) => e != null)
3294
- .map((entry) => {
3295
- const n = __XmlNode.of(_HCI, entry);
3296
- return n.n(_CHCh);
3297
- });
3298
- };
3299
- const se_CidrCollectionChange = (input, context) => {
3300
- const bn = new __XmlNode(_CCC);
3301
- if (input[_LN] != null) {
3302
- bn.c(__XmlNode.of(_CLNDNA, input[_LN]).n(_LN));
3303
- }
3304
- if (input[_A] != null) {
3305
- bn.c(__XmlNode.of(_CCCA, input[_A]).n(_A));
3306
- }
3307
- bn.lc(input, "CidrList", "CidrList", () => se_CidrList(input[_CLi], context));
3308
- return bn;
3309
- };
3310
- const se_CidrCollectionChanges = (input, context) => {
3311
- return input
3312
- .filter((e) => e != null)
3313
- .map((entry) => {
3314
- const n = se_CidrCollectionChange(entry, context);
3315
- return n.n(_me);
3316
- });
3317
- };
3318
- const se_CidrList = (input, context) => {
3319
- return input
3320
- .filter((e) => e != null)
3321
- .map((entry) => {
3322
- const n = __XmlNode.of(_Ci, entry);
3323
- return n.n(_Ci);
3324
- });
3325
- };
3326
- const se_CidrRoutingConfig = (input, context) => {
3327
- const bn = new __XmlNode(_CRC);
3328
- if (input[_CIo] != null) {
3329
- bn.c(__XmlNode.of(_UUID, input[_CIo]).n(_CIo));
3330
- }
3331
- if (input[_LN] != null) {
3332
- bn.c(__XmlNode.of(_CLNDA, input[_LN]).n(_LN));
3333
- }
3334
- return bn;
3335
- };
3336
- const se_Coordinates = (input, context) => {
3337
- const bn = new __XmlNode(_Coo);
3338
- bn.cc(input, _La);
3339
- bn.cc(input, _Lo);
3340
- return bn;
3341
- };
3342
- const se_GeoLocation = (input, context) => {
3343
- const bn = new __XmlNode(_GL);
3344
- if (input[_CC] != null) {
3345
- bn.c(__XmlNode.of(_GLCC, input[_CC]).n(_CC));
3346
- }
3347
- if (input[_CCo] != null) {
3348
- bn.c(__XmlNode.of(_GLCCe, input[_CCo]).n(_CCo));
3349
- }
3350
- if (input[_SC] != null) {
3351
- bn.c(__XmlNode.of(_GLSC, input[_SC]).n(_SC));
3352
- }
3353
- return bn;
3354
- };
3355
- const se_GeoProximityLocation = (input, context) => {
3356
- const bn = new __XmlNode(_GPL);
3357
- bn.cc(input, _AWSR);
3358
- bn.cc(input, _LZG);
3359
- if (input[_Coo] != null) {
3360
- bn.c(se_Coordinates(input[_Coo], context).n(_Coo));
3361
- }
3362
- if (input[_B] != null) {
3363
- bn.c(__XmlNode.of(_B, String(input[_B])).n(_B));
3364
- }
3365
- return bn;
3366
- };
3367
- const se_HealthCheckConfig = (input, context) => {
3368
- const bn = new __XmlNode(_HCC);
3369
- bn.cc(input, _IPA);
3370
- if (input[_P] != null) {
3371
- bn.c(__XmlNode.of(_P, String(input[_P])).n(_P));
3372
- }
3373
- if (input[_T] != null) {
3374
- bn.c(__XmlNode.of(_HCT, input[_T]).n(_T));
3375
- }
3376
- bn.cc(input, _RP);
3377
- bn.cc(input, _FQDN);
3378
- bn.cc(input, _SS);
3379
- if (input[_RIeq] != null) {
3380
- bn.c(__XmlNode.of(_RIeq, String(input[_RIeq])).n(_RIeq));
3381
- }
3382
- if (input[_FT] != null) {
3383
- bn.c(__XmlNode.of(_FT, String(input[_FT])).n(_FT));
3384
- }
3385
- if (input[_ML] != null) {
3386
- bn.c(__XmlNode.of(_ML, String(input[_ML])).n(_ML));
3387
- }
3388
- if (input[_I] != null) {
3389
- bn.c(__XmlNode.of(_I, String(input[_I])).n(_I));
3390
- }
3391
- if (input[_Di] != null) {
3392
- bn.c(__XmlNode.of(_Di, String(input[_Di])).n(_Di));
3393
- }
3394
- if (input[_HT] != null) {
3395
- bn.c(__XmlNode.of(_HT, String(input[_HT])).n(_HT));
3396
- }
3397
- bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC], context));
3398
- if (input[_ESNI] != null) {
3399
- bn.c(__XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI));
3400
- }
3401
- bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R], context));
3402
- if (input[_AI] != null) {
3403
- bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI));
3404
- }
3405
- bn.cc(input, _IDHS);
3406
- bn.cc(input, _RCA);
3407
- return bn;
3408
- };
3409
- const se_HealthCheckRegionList = (input, context) => {
3410
- return input
3411
- .filter((e) => e != null)
3412
- .map((entry) => {
3413
- const n = __XmlNode.of(_HCR, entry);
3414
- return n.n(_Re);
3415
- });
3416
- };
3417
- const se_HostedZoneConfig = (input, context) => {
3418
- const bn = new __XmlNode(_HZC);
3419
- if (input[_C] != null) {
3420
- bn.c(__XmlNode.of(_RD, input[_C]).n(_C));
3421
- }
3422
- if (input[_PZ] != null) {
3423
- bn.c(__XmlNode.of(_IPZ, String(input[_PZ])).n(_PZ));
3424
- }
3425
- return bn;
3426
- };
3427
- const se_ResettableElementNameList = (input, context) => {
3428
- return input
3429
- .filter((e) => e != null)
3430
- .map((entry) => {
3431
- const n = __XmlNode.of(_REN, entry);
3432
- return n.n(_REN);
3433
- });
3434
- };
3435
- const se_ResourceRecord = (input, context) => {
3436
- const bn = new __XmlNode(_RR);
3437
- if (input[_V] != null) {
3438
- bn.c(__XmlNode.of(_RDa, input[_V]).n(_V));
3439
- }
3440
- return bn;
3441
- };
3442
- const se_ResourceRecords = (input, context) => {
3443
- return input
3444
- .filter((e) => e != null)
3445
- .map((entry) => {
3446
- const n = se_ResourceRecord(entry, context);
3447
- return n.n(_RR);
3448
- });
3449
- };
3450
- const se_ResourceRecordSet = (input, context) => {
3451
- const bn = new __XmlNode(_RRSe);
3452
- if (input[_N] != null) {
3453
- bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N));
3454
- }
3455
- if (input[_T] != null) {
3456
- bn.c(__XmlNode.of(_RRT, input[_T]).n(_T));
3457
- }
3458
- if (input[_SI] != null) {
3459
- bn.c(__XmlNode.of(_RRSI, input[_SI]).n(_SI));
3460
- }
3461
- if (input[_W] != null) {
3462
- bn.c(__XmlNode.of(_RRSW, String(input[_W])).n(_W));
3463
- }
3464
- if (input[_Re] != null) {
3465
- bn.c(__XmlNode.of(_RRSR, input[_Re]).n(_Re));
3466
- }
3467
- if (input[_GL] != null) {
3468
- bn.c(se_GeoLocation(input[_GL], context).n(_GL));
3469
- }
3470
- if (input[_F] != null) {
3471
- bn.c(__XmlNode.of(_RRSF, input[_F]).n(_F));
3472
- }
3473
- if (input[_MVA] != null) {
3474
- bn.c(__XmlNode.of(_RRSMVA, String(input[_MVA])).n(_MVA));
3475
- }
3476
- if (input[_TTL] != null) {
3477
- bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
3478
- }
3479
- bn.lc(input, "ResourceRecords", "ResourceRecords", () => se_ResourceRecords(input[_RRe], context));
3480
- if (input[_ATl] != null) {
3481
- bn.c(se_AliasTarget(input[_ATl], context).n(_ATl));
3482
- }
3483
- bn.cc(input, _HCI);
3484
- bn.cc(input, _TPII);
3485
- if (input[_CRC] != null) {
3486
- bn.c(se_CidrRoutingConfig(input[_CRC], context).n(_CRC));
3487
- }
3488
- if (input[_GPL] != null) {
3489
- bn.c(se_GeoProximityLocation(input[_GPL], context).n(_GPL));
3490
- }
3491
- return bn;
3492
- };
3493
- const se_Tag = (input, context) => {
3494
- const bn = new __XmlNode(_Ta);
3495
- if (input[_K] != null) {
3496
- bn.c(__XmlNode.of(_TK, input[_K]).n(_K));
3497
- }
3498
- if (input[_V] != null) {
3499
- bn.c(__XmlNode.of(_TV, input[_V]).n(_V));
3500
- }
3501
- return bn;
3502
- };
3503
- const se_TagKeyList = (input, context) => {
3504
- return input
3505
- .filter((e) => e != null)
3506
- .map((entry) => {
3507
- const n = __XmlNode.of(_TK, entry);
3508
- return n.n(_K);
3509
- });
3510
- };
3511
- const se_TagList = (input, context) => {
3512
- return input
3513
- .filter((e) => e != null)
3514
- .map((entry) => {
3515
- const n = se_Tag(entry, context);
3516
- return n.n(_Ta);
3517
- });
3518
- };
3519
- const se_TagResourceIdList = (input, context) => {
3520
- return input
3521
- .filter((e) => e != null)
3522
- .map((entry) => {
3523
- const n = __XmlNode.of(_TRI, entry);
3524
- return n.n(_RI);
3525
- });
3526
- };
3527
- const se_VPC = (input, context) => {
3528
- const bn = new __XmlNode(_VPC);
3529
- bn.cc(input, _VPCR);
3530
- bn.cc(input, _VPCI);
3531
- return bn;
3532
- };
3533
- const de_AccountLimit = (output, context) => {
3534
- const contents = {};
3535
- if (output[_T] != null) {
3536
- contents[_T] = __expectString(output[_T]);
3537
- }
3538
- if (output[_V] != null) {
3539
- contents[_V] = __strictParseLong(output[_V]);
3540
- }
3541
- return contents;
3542
- };
3543
- const de_AlarmIdentifier = (output, context) => {
3544
- const contents = {};
3545
- if (output[_Re] != null) {
3546
- contents[_Re] = __expectString(output[_Re]);
3547
- }
3548
- if (output[_N] != null) {
3549
- contents[_N] = __expectString(output[_N]);
3550
- }
3551
- return contents;
3552
- };
3553
- const de_AliasTarget = (output, context) => {
3554
- const contents = {};
3555
- if (output[_HZI] != null) {
3556
- contents[_HZI] = __expectString(output[_HZI]);
3557
- }
3558
- if (output[_DNSN] != null) {
3559
- contents[_DNSN] = __expectString(output[_DNSN]);
3560
- }
3561
- if (output[_ETH] != null) {
3562
- contents[_ETH] = __parseBoolean(output[_ETH]);
3563
- }
3564
- return contents;
3565
- };
3566
- const de_ChangeInfo = (output, context) => {
3567
- const contents = {};
3568
- if (output[_Id] != null) {
3569
- contents[_Id] = __expectString(output[_Id]);
3570
- }
3571
- if (output[_S] != null) {
3572
- contents[_S] = __expectString(output[_S]);
3573
- }
3574
- if (output[_SA] != null) {
3575
- contents[_SA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SA]));
3576
- }
3577
- if (output[_C] != null) {
3578
- contents[_C] = __expectString(output[_C]);
3579
- }
3580
- return contents;
3581
- };
3582
- const de_CheckerIpRanges = (output, context) => {
3583
- return (output || [])
3584
- .filter((e) => e != null)
3585
- .map((entry) => {
3586
- return __expectString(entry);
3587
- });
3588
- };
3589
- const de_ChildHealthCheckList = (output, context) => {
3590
- return (output || [])
3591
- .filter((e) => e != null)
3592
- .map((entry) => {
3593
- return __expectString(entry);
3594
- });
3595
- };
3596
- const de_CidrBlockSummaries = (output, context) => {
3597
- return (output || [])
3598
- .filter((e) => e != null)
3599
- .map((entry) => {
3600
- return de_CidrBlockSummary(entry, context);
3601
- });
3602
- };
3603
- const de_CidrBlockSummary = (output, context) => {
3604
- const contents = {};
3605
- if (output[_CBid] != null) {
3606
- contents[_CBid] = __expectString(output[_CBid]);
3607
- }
3608
- if (output[_LN] != null) {
3609
- contents[_LN] = __expectString(output[_LN]);
3610
- }
3611
- return contents;
3612
- };
3613
- const de_CidrCollection = (output, context) => {
3614
- const contents = {};
3615
- if (output[_Ar] != null) {
3616
- contents[_Ar] = __expectString(output[_Ar]);
3617
- }
3618
- if (output[_Id] != null) {
3619
- contents[_Id] = __expectString(output[_Id]);
3620
- }
3621
- if (output[_N] != null) {
3622
- contents[_N] = __expectString(output[_N]);
3623
- }
3624
- if (output[_Ve] != null) {
3625
- contents[_Ve] = __strictParseLong(output[_Ve]);
3626
- }
3627
- return contents;
3628
- };
3629
- const de_CidrRoutingConfig = (output, context) => {
3630
- const contents = {};
3631
- if (output[_CIo] != null) {
3632
- contents[_CIo] = __expectString(output[_CIo]);
3633
- }
3634
- if (output[_LN] != null) {
3635
- contents[_LN] = __expectString(output[_LN]);
3636
- }
3637
- return contents;
3638
- };
3639
- const de_CloudWatchAlarmConfiguration = (output, context) => {
3640
- const contents = {};
3641
- if (output[_EP] != null) {
3642
- contents[_EP] = __strictParseInt32(output[_EP]);
3643
- }
3644
- if (output[_Th] != null) {
3645
- contents[_Th] = __strictParseFloat(output[_Th]);
3646
- }
3647
- if (output[_CO] != null) {
3648
- contents[_CO] = __expectString(output[_CO]);
3649
- }
3650
- if (output[_Pe] != null) {
3651
- contents[_Pe] = __strictParseInt32(output[_Pe]);
3652
- }
3653
- if (output[_MN] != null) {
3654
- contents[_MN] = __expectString(output[_MN]);
3655
- }
3656
- if (output[_Nam] != null) {
3657
- contents[_Nam] = __expectString(output[_Nam]);
3658
- }
3659
- if (output[_St] != null) {
3660
- contents[_St] = __expectString(output[_St]);
3661
- }
3662
- if (String(output.Dimensions).trim() === "") {
3663
- contents[_Dim] = [];
3664
- }
3665
- else if (output[_Dim] != null && output[_Dim][_Dime] != null) {
3666
- contents[_Dim] = de_DimensionList(__getArrayIfSingleItem(output[_Dim][_Dime]), context);
3667
- }
3668
- return contents;
3669
- };
3670
- const de_CollectionSummaries = (output, context) => {
3671
- return (output || [])
3672
- .filter((e) => e != null)
3673
- .map((entry) => {
3674
- return de_CollectionSummary(entry, context);
3675
- });
3676
- };
3677
- const de_CollectionSummary = (output, context) => {
3678
- const contents = {};
3679
- if (output[_Ar] != null) {
3680
- contents[_Ar] = __expectString(output[_Ar]);
3681
- }
3682
- if (output[_Id] != null) {
3683
- contents[_Id] = __expectString(output[_Id]);
3684
- }
3685
- if (output[_N] != null) {
3686
- contents[_N] = __expectString(output[_N]);
3687
- }
3688
- if (output[_Ve] != null) {
3689
- contents[_Ve] = __strictParseLong(output[_Ve]);
3690
- }
3691
- return contents;
3692
- };
3693
- const de_Coordinates = (output, context) => {
3694
- const contents = {};
3695
- if (output[_La] != null) {
3696
- contents[_La] = __expectString(output[_La]);
3697
- }
3698
- if (output[_Lo] != null) {
3699
- contents[_Lo] = __expectString(output[_Lo]);
3700
- }
3701
- return contents;
3702
- };
3703
- const de_DelegationSet = (output, context) => {
3704
- const contents = {};
3705
- if (output[_Id] != null) {
3706
- contents[_Id] = __expectString(output[_Id]);
3707
- }
3708
- if (output[_CR] != null) {
3709
- contents[_CR] = __expectString(output[_CR]);
3710
- }
3711
- if (String(output.NameServers).trim() === "") {
3712
- contents[_NS] = [];
3713
- }
3714
- else if (output[_NS] != null && output[_NS][_NSa] != null) {
3715
- contents[_NS] = de_DelegationSetNameServers(__getArrayIfSingleItem(output[_NS][_NSa]), context);
3716
- }
3717
- return contents;
3718
- };
3719
- const de_DelegationSetNameServers = (output, context) => {
3720
- return (output || [])
3721
- .filter((e) => e != null)
3722
- .map((entry) => {
3723
- return __expectString(entry);
3724
- });
3725
- };
3726
- const de_DelegationSets = (output, context) => {
3727
- return (output || [])
3728
- .filter((e) => e != null)
3729
- .map((entry) => {
3730
- return de_DelegationSet(entry, context);
3731
- });
3732
- };
3733
- const de_Dimension = (output, context) => {
3734
- const contents = {};
3735
- if (output[_N] != null) {
3736
- contents[_N] = __expectString(output[_N]);
3737
- }
3738
- if (output[_V] != null) {
3739
- contents[_V] = __expectString(output[_V]);
3740
- }
3741
- return contents;
3742
- };
3743
- const de_DimensionList = (output, context) => {
3744
- return (output || [])
3745
- .filter((e) => e != null)
3746
- .map((entry) => {
3747
- return de_Dimension(entry, context);
3748
- });
3749
- };
3750
- const de_DNSSECStatus = (output, context) => {
3751
- const contents = {};
3752
- if (output[_SSe] != null) {
3753
- contents[_SSe] = __expectString(output[_SSe]);
3754
- }
3755
- if (output[_SM] != null) {
3756
- contents[_SM] = __expectString(output[_SM]);
3757
- }
3758
- return contents;
3759
- };
3760
- const de_ErrorMessages = (output, context) => {
3761
- return (output || [])
3762
- .filter((e) => e != null)
3763
- .map((entry) => {
3764
- return __expectString(entry);
3765
- });
3766
- };
3767
- const de_GeoLocation = (output, context) => {
3768
- const contents = {};
3769
- if (output[_CC] != null) {
3770
- contents[_CC] = __expectString(output[_CC]);
3771
- }
3772
- if (output[_CCo] != null) {
3773
- contents[_CCo] = __expectString(output[_CCo]);
3774
- }
3775
- if (output[_SC] != null) {
3776
- contents[_SC] = __expectString(output[_SC]);
3777
- }
3778
- return contents;
3779
- };
3780
- const de_GeoLocationDetails = (output, context) => {
3781
- const contents = {};
3782
- if (output[_CC] != null) {
3783
- contents[_CC] = __expectString(output[_CC]);
3784
- }
3785
- if (output[_CNon] != null) {
3786
- contents[_CNon] = __expectString(output[_CNon]);
3787
- }
3788
- if (output[_CCo] != null) {
3789
- contents[_CCo] = __expectString(output[_CCo]);
3790
- }
3791
- if (output[_CNou] != null) {
3792
- contents[_CNou] = __expectString(output[_CNou]);
3793
- }
3794
- if (output[_SC] != null) {
3795
- contents[_SC] = __expectString(output[_SC]);
3796
- }
3797
- if (output[_SN] != null) {
3798
- contents[_SN] = __expectString(output[_SN]);
3799
- }
3800
- return contents;
3801
- };
3802
- const de_GeoLocationDetailsList = (output, context) => {
3803
- return (output || [])
3804
- .filter((e) => e != null)
3805
- .map((entry) => {
3806
- return de_GeoLocationDetails(entry, context);
3807
- });
3808
- };
3809
- const de_GeoProximityLocation = (output, context) => {
3810
- const contents = {};
3811
- if (output[_AWSR] != null) {
3812
- contents[_AWSR] = __expectString(output[_AWSR]);
3813
- }
3814
- if (output[_LZG] != null) {
3815
- contents[_LZG] = __expectString(output[_LZG]);
3816
- }
3817
- if (output[_Coo] != null) {
3818
- contents[_Coo] = de_Coordinates(output[_Coo], context);
3819
- }
3820
- if (output[_B] != null) {
3821
- contents[_B] = __strictParseInt32(output[_B]);
3822
- }
3823
- return contents;
3824
- };
3825
- const de_HealthCheck = (output, context) => {
3826
- const contents = {};
3827
- if (output[_Id] != null) {
3828
- contents[_Id] = __expectString(output[_Id]);
3829
- }
3830
- if (output[_CR] != null) {
3831
- contents[_CR] = __expectString(output[_CR]);
3832
- }
3833
- if (output[_LS] != null) {
3834
- contents[_LS] = de_LinkedService(output[_LS], context);
3835
- }
3836
- if (output[_HCC] != null) {
3837
- contents[_HCC] = de_HealthCheckConfig(output[_HCC], context);
3838
- }
3839
- if (output[_HCV] != null) {
3840
- contents[_HCV] = __strictParseLong(output[_HCV]);
3841
- }
3842
- if (output[_CWAC] != null) {
3843
- contents[_CWAC] = de_CloudWatchAlarmConfiguration(output[_CWAC], context);
3844
- }
3845
- return contents;
3846
- };
3847
- const de_HealthCheckConfig = (output, context) => {
3848
- const contents = {};
3849
- if (output[_IPA] != null) {
3850
- contents[_IPA] = __expectString(output[_IPA]);
3851
- }
3852
- if (output[_P] != null) {
3853
- contents[_P] = __strictParseInt32(output[_P]);
3854
- }
3855
- if (output[_T] != null) {
3856
- contents[_T] = __expectString(output[_T]);
3857
- }
3858
- if (output[_RP] != null) {
3859
- contents[_RP] = __expectString(output[_RP]);
3860
- }
3861
- if (output[_FQDN] != null) {
3862
- contents[_FQDN] = __expectString(output[_FQDN]);
3863
- }
3864
- if (output[_SS] != null) {
3865
- contents[_SS] = __expectString(output[_SS]);
3866
- }
3867
- if (output[_RIeq] != null) {
3868
- contents[_RIeq] = __strictParseInt32(output[_RIeq]);
3869
- }
3870
- if (output[_FT] != null) {
3871
- contents[_FT] = __strictParseInt32(output[_FT]);
3872
- }
3873
- if (output[_ML] != null) {
3874
- contents[_ML] = __parseBoolean(output[_ML]);
3875
- }
3876
- if (output[_I] != null) {
3877
- contents[_I] = __parseBoolean(output[_I]);
3878
- }
3879
- if (output[_Di] != null) {
3880
- contents[_Di] = __parseBoolean(output[_Di]);
3881
- }
3882
- if (output[_HT] != null) {
3883
- contents[_HT] = __strictParseInt32(output[_HT]);
3884
- }
3885
- if (String(output.ChildHealthChecks).trim() === "") {
3886
- contents[_CHC] = [];
3887
- }
3888
- else if (output[_CHC] != null && output[_CHC][_CHCh] != null) {
3889
- contents[_CHC] = de_ChildHealthCheckList(__getArrayIfSingleItem(output[_CHC][_CHCh]), context);
3890
- }
3891
- if (output[_ESNI] != null) {
3892
- contents[_ESNI] = __parseBoolean(output[_ESNI]);
3893
- }
3894
- if (String(output.Regions).trim() === "") {
3895
- contents[_R] = [];
3896
- }
3897
- else if (output[_R] != null && output[_R][_Re] != null) {
3898
- contents[_R] = de_HealthCheckRegionList(__getArrayIfSingleItem(output[_R][_Re]), context);
3899
- }
3900
- if (output[_AI] != null) {
3901
- contents[_AI] = de_AlarmIdentifier(output[_AI], context);
3902
- }
3903
- if (output[_IDHS] != null) {
3904
- contents[_IDHS] = __expectString(output[_IDHS]);
3905
- }
3906
- if (output[_RCA] != null) {
3907
- contents[_RCA] = __expectString(output[_RCA]);
3908
- }
3909
- return contents;
3910
- };
3911
- const de_HealthCheckObservation = (output, context) => {
3912
- const contents = {};
3913
- if (output[_Re] != null) {
3914
- contents[_Re] = __expectString(output[_Re]);
3915
- }
3916
- if (output[_IPA] != null) {
3917
- contents[_IPA] = __expectString(output[_IPA]);
3918
- }
3919
- if (output[_SR] != null) {
3920
- contents[_SR] = de_StatusReport(output[_SR], context);
3921
- }
3922
- return contents;
3923
- };
3924
- const de_HealthCheckObservations = (output, context) => {
3925
- return (output || [])
3926
- .filter((e) => e != null)
3927
- .map((entry) => {
3928
- return de_HealthCheckObservation(entry, context);
3929
- });
3930
- };
3931
- const de_HealthCheckRegionList = (output, context) => {
3932
- return (output || [])
3933
- .filter((e) => e != null)
3934
- .map((entry) => {
3935
- return __expectString(entry);
3936
- });
3937
- };
3938
- const de_HealthChecks = (output, context) => {
3939
- return (output || [])
3940
- .filter((e) => e != null)
3941
- .map((entry) => {
3942
- return de_HealthCheck(entry, context);
3943
- });
3944
- };
3945
- const de_HostedZone = (output, context) => {
3946
- const contents = {};
3947
- if (output[_Id] != null) {
3948
- contents[_Id] = __expectString(output[_Id]);
3949
- }
3950
- if (output[_N] != null) {
3951
- contents[_N] = __expectString(output[_N]);
3952
- }
3953
- if (output[_CR] != null) {
3954
- contents[_CR] = __expectString(output[_CR]);
3955
- }
3956
- if (output[_Con] != null) {
3957
- contents[_Con] = de_HostedZoneConfig(output[_Con], context);
3958
- }
3959
- if (output[_RRSC] != null) {
3960
- contents[_RRSC] = __strictParseLong(output[_RRSC]);
3961
- }
3962
- if (output[_LS] != null) {
3963
- contents[_LS] = de_LinkedService(output[_LS], context);
3964
- }
3965
- return contents;
3966
- };
3967
- const de_HostedZoneConfig = (output, context) => {
3968
- const contents = {};
3969
- if (output[_C] != null) {
3970
- contents[_C] = __expectString(output[_C]);
3971
- }
3972
- if (output[_PZ] != null) {
3973
- contents[_PZ] = __parseBoolean(output[_PZ]);
3974
- }
3975
- return contents;
3976
- };
3977
- const de_HostedZoneLimit = (output, context) => {
3978
- const contents = {};
3979
- if (output[_T] != null) {
3980
- contents[_T] = __expectString(output[_T]);
3981
- }
3982
- if (output[_V] != null) {
3983
- contents[_V] = __strictParseLong(output[_V]);
3984
- }
3985
- return contents;
3986
- };
3987
- const de_HostedZoneOwner = (output, context) => {
3988
- const contents = {};
3989
- if (output[_OA] != null) {
3990
- contents[_OA] = __expectString(output[_OA]);
3991
- }
3992
- if (output[_OS] != null) {
3993
- contents[_OS] = __expectString(output[_OS]);
3994
- }
3995
- return contents;
3996
- };
3997
- const de_HostedZones = (output, context) => {
3998
- return (output || [])
3999
- .filter((e) => e != null)
4000
- .map((entry) => {
4001
- return de_HostedZone(entry, context);
4002
- });
4003
- };
4004
- const de_HostedZoneSummaries = (output, context) => {
4005
- return (output || [])
4006
- .filter((e) => e != null)
4007
- .map((entry) => {
4008
- return de_HostedZoneSummary(entry, context);
4009
- });
4010
- };
4011
- const de_HostedZoneSummary = (output, context) => {
4012
- const contents = {};
4013
- if (output[_HZI] != null) {
4014
- contents[_HZI] = __expectString(output[_HZI]);
4015
- }
4016
- if (output[_N] != null) {
4017
- contents[_N] = __expectString(output[_N]);
4018
- }
4019
- if (output[_O] != null) {
4020
- contents[_O] = de_HostedZoneOwner(output[_O], context);
4021
- }
4022
- return contents;
4023
- };
4024
- const de_KeySigningKey = (output, context) => {
4025
- const contents = {};
4026
- if (output[_N] != null) {
4027
- contents[_N] = __expectString(output[_N]);
4028
- }
4029
- if (output[_KA] != null) {
4030
- contents[_KA] = __expectString(output[_KA]);
4031
- }
4032
- if (output[_Fl] != null) {
4033
- contents[_Fl] = __strictParseInt32(output[_Fl]);
4034
- }
4035
- if (output[_SAM] != null) {
4036
- contents[_SAM] = __expectString(output[_SAM]);
4037
- }
4038
- if (output[_SAT] != null) {
4039
- contents[_SAT] = __strictParseInt32(output[_SAT]);
4040
- }
4041
- if (output[_DAM] != null) {
4042
- contents[_DAM] = __expectString(output[_DAM]);
4043
- }
4044
- if (output[_DAT] != null) {
4045
- contents[_DAT] = __strictParseInt32(output[_DAT]);
4046
- }
4047
- if (output[_KT] != null) {
4048
- contents[_KT] = __strictParseInt32(output[_KT]);
4049
- }
4050
- if (output[_DV] != null) {
4051
- contents[_DV] = __expectString(output[_DV]);
4052
- }
4053
- if (output[_PK] != null) {
4054
- contents[_PK] = __expectString(output[_PK]);
4055
- }
4056
- if (output[_DSR] != null) {
4057
- contents[_DSR] = __expectString(output[_DSR]);
4058
- }
4059
- if (output[_DNSKEYR] != null) {
4060
- contents[_DNSKEYR] = __expectString(output[_DNSKEYR]);
4061
- }
4062
- if (output[_S] != null) {
4063
- contents[_S] = __expectString(output[_S]);
4064
- }
4065
- if (output[_SM] != null) {
4066
- contents[_SM] = __expectString(output[_SM]);
4067
- }
4068
- if (output[_CD] != null) {
4069
- contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD]));
4070
- }
4071
- if (output[_LMD] != null) {
4072
- contents[_LMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMD]));
4073
- }
4074
- return contents;
4075
- };
4076
- const de_KeySigningKeys = (output, context) => {
4077
- return (output || [])
4078
- .filter((e) => e != null)
4079
- .map((entry) => {
4080
- return de_KeySigningKey(entry, context);
4081
- });
4082
- };
4083
- const de_LinkedService = (output, context) => {
4084
- const contents = {};
4085
- if (output[_SP] != null) {
4086
- contents[_SP] = __expectString(output[_SP]);
4087
- }
4088
- if (output[_De] != null) {
4089
- contents[_De] = __expectString(output[_De]);
4090
- }
4091
- return contents;
4092
- };
4093
- const de_LocationSummaries = (output, context) => {
4094
- return (output || [])
4095
- .filter((e) => e != null)
4096
- .map((entry) => {
4097
- return de_LocationSummary(entry, context);
4098
- });
4099
- };
4100
- const de_LocationSummary = (output, context) => {
4101
- const contents = {};
4102
- if (output[_LN] != null) {
4103
- contents[_LN] = __expectString(output[_LN]);
4104
- }
4105
- return contents;
4106
- };
4107
- const de_QueryLoggingConfig = (output, context) => {
4108
- const contents = {};
4109
- if (output[_Id] != null) {
4110
- contents[_Id] = __expectString(output[_Id]);
4111
- }
4112
- if (output[_HZI] != null) {
4113
- contents[_HZI] = __expectString(output[_HZI]);
4114
- }
4115
- if (output[_CWLLGA] != null) {
4116
- contents[_CWLLGA] = __expectString(output[_CWLLGA]);
4117
- }
4118
- return contents;
4119
- };
4120
- const de_QueryLoggingConfigs = (output, context) => {
4121
- return (output || [])
4122
- .filter((e) => e != null)
4123
- .map((entry) => {
4124
- return de_QueryLoggingConfig(entry, context);
4125
- });
4126
- };
4127
- const de_RecordData = (output, context) => {
4128
- return (output || [])
4129
- .filter((e) => e != null)
4130
- .map((entry) => {
4131
- return __expectString(entry);
4132
- });
4133
- };
4134
- const de_ResourceRecord = (output, context) => {
4135
- const contents = {};
4136
- if (output[_V] != null) {
4137
- contents[_V] = __expectString(output[_V]);
4138
- }
4139
- return contents;
4140
- };
4141
- const de_ResourceRecords = (output, context) => {
4142
- return (output || [])
4143
- .filter((e) => e != null)
4144
- .map((entry) => {
4145
- return de_ResourceRecord(entry, context);
4146
- });
4147
- };
4148
- const de_ResourceRecordSet = (output, context) => {
4149
- const contents = {};
4150
- if (output[_N] != null) {
4151
- contents[_N] = __expectString(output[_N]);
4152
- }
4153
- if (output[_T] != null) {
4154
- contents[_T] = __expectString(output[_T]);
4155
- }
4156
- if (output[_SI] != null) {
4157
- contents[_SI] = __expectString(output[_SI]);
4158
- }
4159
- if (output[_W] != null) {
4160
- contents[_W] = __strictParseLong(output[_W]);
4161
- }
4162
- if (output[_Re] != null) {
4163
- contents[_Re] = __expectString(output[_Re]);
4164
- }
4165
- if (output[_GL] != null) {
4166
- contents[_GL] = de_GeoLocation(output[_GL], context);
4167
- }
4168
- if (output[_F] != null) {
4169
- contents[_F] = __expectString(output[_F]);
4170
- }
4171
- if (output[_MVA] != null) {
4172
- contents[_MVA] = __parseBoolean(output[_MVA]);
4173
- }
4174
- if (output[_TTL] != null) {
4175
- contents[_TTL] = __strictParseLong(output[_TTL]);
4176
- }
4177
- if (String(output.ResourceRecords).trim() === "") {
4178
- contents[_RRe] = [];
4179
- }
4180
- else if (output[_RRe] != null && output[_RRe][_RR] != null) {
4181
- contents[_RRe] = de_ResourceRecords(__getArrayIfSingleItem(output[_RRe][_RR]), context);
4182
- }
4183
- if (output[_ATl] != null) {
4184
- contents[_ATl] = de_AliasTarget(output[_ATl], context);
4185
- }
4186
- if (output[_HCI] != null) {
4187
- contents[_HCI] = __expectString(output[_HCI]);
4188
- }
4189
- if (output[_TPII] != null) {
4190
- contents[_TPII] = __expectString(output[_TPII]);
4191
- }
4192
- if (output[_CRC] != null) {
4193
- contents[_CRC] = de_CidrRoutingConfig(output[_CRC], context);
4194
- }
4195
- if (output[_GPL] != null) {
4196
- contents[_GPL] = de_GeoProximityLocation(output[_GPL], context);
4197
- }
4198
- return contents;
4199
- };
4200
- const de_ResourceRecordSets = (output, context) => {
4201
- return (output || [])
4202
- .filter((e) => e != null)
4203
- .map((entry) => {
4204
- return de_ResourceRecordSet(entry, context);
4205
- });
4206
- };
4207
- const de_ResourceTagSet = (output, context) => {
4208
- const contents = {};
4209
- if (output[_RTe] != null) {
4210
- contents[_RTe] = __expectString(output[_RTe]);
4211
- }
4212
- if (output[_RI] != null) {
4213
- contents[_RI] = __expectString(output[_RI]);
4214
- }
4215
- if (String(output.Tags).trim() === "") {
4216
- contents[_Tag] = [];
4217
- }
4218
- else if (output[_Tag] != null && output[_Tag][_Ta] != null) {
4219
- contents[_Tag] = de_TagList(__getArrayIfSingleItem(output[_Tag][_Ta]), context);
4220
- }
4221
- return contents;
4222
- };
4223
- const de_ResourceTagSetList = (output, context) => {
4224
- return (output || [])
4225
- .filter((e) => e != null)
4226
- .map((entry) => {
4227
- return de_ResourceTagSet(entry, context);
4228
- });
4229
- };
4230
- const de_ReusableDelegationSetLimit = (output, context) => {
4231
- const contents = {};
4232
- if (output[_T] != null) {
4233
- contents[_T] = __expectString(output[_T]);
4234
- }
4235
- if (output[_V] != null) {
4236
- contents[_V] = __strictParseLong(output[_V]);
4237
- }
4238
- return contents;
4239
- };
4240
- const de_StatusReport = (output, context) => {
4241
- const contents = {};
4242
- if (output[_S] != null) {
4243
- contents[_S] = __expectString(output[_S]);
4244
- }
4245
- if (output[_CT] != null) {
4246
- contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT]));
4247
- }
4248
- return contents;
4249
- };
4250
- const de_Tag = (output, context) => {
4251
- const contents = {};
4252
- if (output[_K] != null) {
4253
- contents[_K] = __expectString(output[_K]);
4254
- }
4255
- if (output[_V] != null) {
4256
- contents[_V] = __expectString(output[_V]);
4257
- }
4258
- return contents;
4259
- };
4260
- const de_TagList = (output, context) => {
4261
- return (output || [])
4262
- .filter((e) => e != null)
4263
- .map((entry) => {
4264
- return de_Tag(entry, context);
4265
- });
4266
- };
4267
- const de_TrafficPolicies = (output, context) => {
4268
- return (output || [])
4269
- .filter((e) => e != null)
4270
- .map((entry) => {
4271
- return de_TrafficPolicy(entry, context);
4272
- });
4273
- };
4274
- const de_TrafficPolicy = (output, context) => {
4275
- const contents = {};
4276
- if (output[_Id] != null) {
4277
- contents[_Id] = __expectString(output[_Id]);
4278
- }
4279
- if (output[_Ve] != null) {
4280
- contents[_Ve] = __strictParseInt32(output[_Ve]);
4281
- }
4282
- if (output[_N] != null) {
4283
- contents[_N] = __expectString(output[_N]);
4284
- }
4285
- if (output[_T] != null) {
4286
- contents[_T] = __expectString(output[_T]);
4287
- }
4288
- if (output[_D] != null) {
4289
- contents[_D] = __expectString(output[_D]);
4290
- }
4291
- if (output[_C] != null) {
4292
- contents[_C] = __expectString(output[_C]);
4293
- }
4294
- return contents;
4295
- };
4296
- const de_TrafficPolicyInstance = (output, context) => {
4297
- const contents = {};
4298
- if (output[_Id] != null) {
4299
- contents[_Id] = __expectString(output[_Id]);
4300
- }
4301
- if (output[_HZI] != null) {
4302
- contents[_HZI] = __expectString(output[_HZI]);
4303
- }
4304
- if (output[_N] != null) {
4305
- contents[_N] = __expectString(output[_N]);
4306
- }
4307
- if (output[_TTL] != null) {
4308
- contents[_TTL] = __strictParseLong(output[_TTL]);
4309
- }
4310
- if (output[_Sta] != null) {
4311
- contents[_Sta] = __expectString(output[_Sta]);
4312
- }
4313
- if (output[_Me] != null) {
4314
- contents[_Me] = __expectString(output[_Me]);
4315
- }
4316
- if (output[_TPI] != null) {
4317
- contents[_TPI] = __expectString(output[_TPI]);
4318
- }
4319
- if (output[_TPV] != null) {
4320
- contents[_TPV] = __strictParseInt32(output[_TPV]);
4321
- }
4322
- if (output[_TPT] != null) {
4323
- contents[_TPT] = __expectString(output[_TPT]);
4324
- }
4325
- return contents;
4326
- };
4327
- const de_TrafficPolicyInstances = (output, context) => {
4328
- return (output || [])
4329
- .filter((e) => e != null)
4330
- .map((entry) => {
4331
- return de_TrafficPolicyInstance(entry, context);
4332
- });
4333
- };
4334
- const de_TrafficPolicySummaries = (output, context) => {
4335
- return (output || [])
4336
- .filter((e) => e != null)
4337
- .map((entry) => {
4338
- return de_TrafficPolicySummary(entry, context);
4339
- });
4340
- };
4341
- const de_TrafficPolicySummary = (output, context) => {
4342
- const contents = {};
4343
- if (output[_Id] != null) {
4344
- contents[_Id] = __expectString(output[_Id]);
4345
- }
4346
- if (output[_N] != null) {
4347
- contents[_N] = __expectString(output[_N]);
4348
- }
4349
- if (output[_T] != null) {
4350
- contents[_T] = __expectString(output[_T]);
4351
- }
4352
- if (output[_LV] != null) {
4353
- contents[_LV] = __strictParseInt32(output[_LV]);
4354
- }
4355
- if (output[_TPCr] != null) {
4356
- contents[_TPCr] = __strictParseInt32(output[_TPCr]);
4357
- }
4358
- return contents;
4359
- };
4360
- const de_VPC = (output, context) => {
4361
- const contents = {};
4362
- if (output[_VPCR] != null) {
4363
- contents[_VPCR] = __expectString(output[_VPCR]);
4364
- }
4365
- if (output[_VPCI] != null) {
4366
- contents[_VPCI] = __expectString(output[_VPCI]);
4367
- }
4368
- return contents;
4369
- };
4370
- const de_VPCs = (output, context) => {
4371
- return (output || [])
4372
- .filter((e) => e != null)
4373
- .map((entry) => {
4374
- return de_VPC(entry, context);
4375
- });
4376
- };
4377
- const deserializeMetadata = (output) => ({
4378
- httpStatusCode: output.statusCode,
4379
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4380
- extendedRequestId: output.headers["x-amz-id-2"],
4381
- cfId: output.headers["x-amz-cf-id"],
4382
- });
4383
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4384
- const _A = "Action";
4385
- const _AHE = "AliasHealthEnabled";
4386
- const _AI = "AlarmIdentifier";
4387
- const _AN = "AlarmName";
4388
- const _AT = "AddTags";
4389
- const _ATl = "AliasTarget";
4390
- const _AVPCC = "AssociateVPCComment";
4391
- const _AVPCWHZR = "AssociateVPCWithHostedZoneRequest";
4392
- const _AWSR = "AWSRegion";
4393
- const _Ar = "Arn";
4394
- const _B = "Bias";
4395
- const _C = "Comment";
4396
- const _CA = "ChangeAction";
4397
- const _CB = "ChangeBatch";
4398
- const _CBi = "CidrBlocks";
4399
- const _CBid = "CidrBlock";
4400
- const _CC = "ContinentCode";
4401
- const _CCC = "CidrCollectionChange";
4402
- const _CCCA = "CidrCollectionChangeAction";
4403
- const _CCCR = "ChangeCidrCollectionRequest";
4404
- const _CCCRr = "CreateCidrCollectionRequest";
4405
- const _CCi = "CidrCollections";
4406
- const _CCo = "CountryCode";
4407
- const _CD = "CreatedDate";
4408
- const _CHC = "ChildHealthChecks";
4409
- const _CHCR = "CreateHealthCheckRequest";
4410
- const _CHCh = "ChildHealthCheck";
4411
- const _CHZR = "CreateHostedZoneRequest";
4412
- const _CI = "ChangeInfo";
4413
- const _CIR = "CheckerIpRanges";
4414
- const _CIo = "CollectionId";
4415
- const _CKSKR = "CreateKeySigningKeyRequest";
4416
- const _CL = "CidrLocations";
4417
- const _CLNDA = "CidrLocationNameDefaultAllowed";
4418
- const _CLNDNA = "CidrLocationNameDefaultNotAllowed";
4419
- const _CLi = "CidrList";
4420
- const _CN = "CidrNonce";
4421
- const _CNo = "CollectionName";
4422
- const _CNon = "ContinentName";
4423
- const _CNou = "CountryName";
4424
- const _CO = "ComparisonOperator";
4425
- const _CQLCR = "CreateQueryLoggingConfigRequest";
4426
- const _CR = "CallerReference";
4427
- const _CRC = "CidrRoutingConfig";
4428
- const _CRDSR = "CreateReusableDelegationSetRequest";
4429
- const _CRRSR = "ChangeResourceRecordSetsRequest";
4430
- const _CT = "CheckedTime";
4431
- const _CTFRR = "ChangeTagsForResourceRequest";
4432
- const _CTPIR = "CreateTrafficPolicyInstanceRequest";
4433
- const _CTPR = "CreateTrafficPolicyRequest";
4434
- const _CTPVR = "CreateTrafficPolicyVersionRequest";
4435
- const _CV = "CollectionVersion";
4436
- const _CVPCAAR = "CreateVPCAssociationAuthorizationRequest";
4437
- const _CWAC = "CloudWatchAlarmConfiguration";
4438
- const _CWLLGA = "CloudWatchLogsLogGroupArn";
4439
- const _CWR = "CloudWatchRegion";
4440
- const _Ch = "Changes";
4441
- const _Cha = "Change";
4442
- const _Ci = "Cidr";
4443
- const _Co = "Collection";
4444
- const _Con = "Config";
4445
- const _Coo = "Coordinates";
4446
- const _Cou = "Count";
4447
- const _D = "Document";
4448
- const _DAM = "DigestAlgorithmMnemonic";
4449
- const _DAT = "DigestAlgorithmType";
4450
- const _DNSKEYR = "DNSKEYRecord";
4451
- const _DNSN = "DNSName";
4452
- const _DS = "DelegationSet";
4453
- const _DSI = "DelegationSetId";
4454
- const _DSR = "DSRecord";
4455
- const _DSe = "DelegationSets";
4456
- const _DV = "DigestValue";
4457
- const _DVPCAAR = "DeleteVPCAssociationAuthorizationRequest";
4458
- const _DVPCC = "DisassociateVPCComment";
4459
- const _DVPCFHZR = "DisassociateVPCFromHostedZoneRequest";
4460
- const _De = "Description";
4461
- const _Di = "Disabled";
4462
- const _Dim = "Dimensions";
4463
- const _Dime = "Dimension";
4464
- const _EDNSCSIP = "EDNS0ClientSubnetIP";
4465
- const _EDNSCSM = "EDNS0ClientSubnetMask";
4466
- const _EP = "EvaluationPeriods";
4467
- const _ESNI = "EnableSNI";
4468
- const _ETH = "EvaluateTargetHealth";
4469
- const _F = "Failover";
4470
- const _FQDN = "FullyQualifiedDomainName";
4471
- const _FT = "FailureThreshold";
4472
- const _Fl = "Flag";
4473
- const _GL = "GeoLocation";
4474
- const _GLCC = "GeoLocationContinentCode";
4475
- const _GLCCe = "GeoLocationCountryCode";
4476
- const _GLD = "GeoLocationDetails";
4477
- const _GLDL = "GeoLocationDetailsList";
4478
- const _GLSC = "GeoLocationSubdivisionCode";
4479
- const _GPL = "GeoProximityLocation";
4480
- const _HC = "HealthCheck";
4481
- const _HCC = "HealthCheckConfig";
4482
- const _HCCe = "HealthCheckCount";
4483
- const _HCI = "HealthCheckId";
4484
- const _HCN = "HealthCheckNonce";
4485
- const _HCO = "HealthCheckObservations";
4486
- const _HCOe = "HealthCheckObservation";
4487
- const _HCR = "HealthCheckRegion";
4488
- const _HCT = "HealthCheckType";
4489
- const _HCV = "HealthCheckVersion";
4490
- const _HCe = "HealthChecks";
4491
- const _HT = "HealthThreshold";
4492
- const _HZ = "HostedZone";
4493
- const _HZC = "HostedZoneConfig";
4494
- const _HZCo = "HostedZoneCount";
4495
- const _HZI = "HostedZoneId";
4496
- const _HZIM = "HostedZoneIdMarker";
4497
- const _HZS = "HostedZoneSummaries";
4498
- const _HZSo = "HostedZoneSummary";
4499
- const _HZT = "HostedZoneType";
4500
- const _HZo = "HostedZones";
4501
- const _I = "Inverted";
4502
- const _IDHS = "InsufficientDataHealthStatus";
4503
- const _IPA = "IPAddress";
4504
- const _IPZ = "IsPrivateZone";
4505
- const _IT = "IsTruncated";
4506
- const _Id = "Id";
4507
- const _K = "Key";
4508
- const _KA = "KmsArn";
4509
- const _KMSA = "KeyManagementServiceArn";
4510
- const _KSK = "KeySigningKey";
4511
- const _KSKe = "KeySigningKeys";
4512
- const _KT = "KeyTag";
4513
- const _L = "Location";
4514
- const _LMD = "LastModifiedDate";
4515
- const _LN = "LocationName";
4516
- const _LS = "LinkedService";
4517
- const _LTFRR = "ListTagsForResourcesRequest";
4518
- const _LV = "LatestVersion";
4519
- const _LZG = "LocalZoneGroup";
4520
- const _La = "Latitude";
4521
- const _Li = "Limit";
4522
- const _Lo = "Longitude";
4523
- const _M = "Marker";
4524
- const _MI = "MaxItems";
4525
- const _ML = "MeasureLatency";
4526
- const _MN = "MetricName";
4527
- const _MR = "MaxResults";
4528
- const _MVA = "MultiValueAnswer";
4529
- const _Me = "Message";
4530
- const _N = "Name";
4531
- const _NCC = "NextContinentCode";
4532
- const _NCCe = "NextCountryCode";
4533
- const _NDNSN = "NextDNSName";
4534
- const _NHZI = "NextHostedZoneId";
4535
- const _NM = "NextMarker";
4536
- const _NRI = "NextRecordIdentifier";
4537
- const _NRN = "NextRecordName";
4538
- const _NRT = "NextRecordType";
4539
- const _NS = "NameServers";
4540
- const _NSC = "NextSubdivisionCode";
4541
- const _NSa = "NameServer";
4542
- const _NT = "NextToken";
4543
- const _Na = "Nameserver";
4544
- const _Nam = "Namespace";
4545
- const _No = "Nonce";
4546
- const _O = "Owner";
4547
- const _OA = "OwningAccount";
4548
- const _OS = "OwningService";
4549
- const _P = "Port";
4550
- const _PK = "PublicKey";
4551
- const _PZ = "PrivateZone";
4552
- const _Pe = "Period";
4553
- const _Pr = "Protocol";
4554
- const _QLC = "QueryLoggingConfig";
4555
- const _QLCu = "QueryLoggingConfigs";
4556
- const _R = "Regions";
4557
- const _RC = "ResponseCode";
4558
- const _RCA = "RoutingControlArn";
4559
- const _RD = "ResourceDescription";
4560
- const _RDE = "RecordDataEntry";
4561
- const _RDa = "RData";
4562
- const _RDe = "RecordData";
4563
- const _RE = "ResetElements";
4564
- const _REN = "ResettableElementName";
4565
- const _RI = "ResourceId";
4566
- const _RIP = "ResolverIP";
4567
- const _RIe = "ResourceIds";
4568
- const _RIeq = "RequestInterval";
4569
- const _RN = "RecordName";
4570
- const _RP = "ResourcePath";
4571
- const _RR = "ResourceRecord";
4572
- const _RRS = "ResourceRecordSets";
4573
- const _RRSC = "ResourceRecordSetCount";
4574
- const _RRSF = "ResourceRecordSetFailover";
4575
- const _RRSI = "ResourceRecordSetIdentifier";
4576
- const _RRSMVA = "ResourceRecordSetMultiValueAnswer";
4577
- const _RRSR = "ResourceRecordSetRegion";
4578
- const _RRSW = "ResourceRecordSetWeight";
4579
- const _RRSe = "ResourceRecordSet";
4580
- const _RRT = "RRType";
4581
- const _RRe = "ResourceRecords";
4582
- const _RT = "RecordType";
4583
- const _RTK = "RemoveTagKeys";
4584
- const _RTS = "ResourceTagSet";
4585
- const _RTSe = "ResourceTagSets";
4586
- const _RTe = "ResourceType";
4587
- const _Re = "Region";
4588
- const _S = "Status";
4589
- const _SA = "SubmittedAt";
4590
- const _SAM = "SigningAlgorithmMnemonic";
4591
- const _SAT = "SigningAlgorithmType";
4592
- const _SC = "SubdivisionCode";
4593
- const _SCC = "StartContinentCode";
4594
- const _SCCt = "StartCountryCode";
4595
- const _SI = "SetIdentifier";
4596
- const _SKN = "SigningKeyName";
4597
- const _SKS = "SigningKeyString";
4598
- const _SKSi = "SigningKeyStatus";
4599
- const _SM = "StatusMessage";
4600
- const _SN = "SubdivisionName";
4601
- const _SP = "ServicePrincipal";
4602
- const _SR = "StatusReport";
4603
- const _SRI = "StartRecordIdentifier";
4604
- const _SRN = "StartRecordName";
4605
- const _SRT = "StartRecordType";
4606
- const _SS = "SearchString";
4607
- const _SSC = "StartSubdivisionCode";
4608
- const _SSe = "ServeSignature";
4609
- const _St = "Statistic";
4610
- const _Sta = "State";
4611
- const _T = "Type";
4612
- const _TK = "TagKey";
4613
- const _TP = "TrafficPolicy";
4614
- const _TPC = "TrafficPolicyComment";
4615
- const _TPCr = "TrafficPolicyCount";
4616
- const _TPD = "TrafficPolicyDocument";
4617
- const _TPI = "TrafficPolicyId";
4618
- const _TPIC = "TrafficPolicyInstanceCount";
4619
- const _TPII = "TrafficPolicyInstanceId";
4620
- const _TPIM = "TrafficPolicyIdMarker";
4621
- const _TPINM = "TrafficPolicyInstanceNameMarker";
4622
- const _TPITM = "TrafficPolicyInstanceTypeMarker";
4623
- const _TPIr = "TrafficPolicyInstance";
4624
- const _TPIra = "TrafficPolicyInstances";
4625
- const _TPN = "TrafficPolicyName";
4626
- const _TPS = "TrafficPolicySummaries";
4627
- const _TPSr = "TrafficPolicySummary";
4628
- const _TPT = "TrafficPolicyType";
4629
- const _TPV = "TrafficPolicyVersion";
4630
- const _TPVM = "TrafficPolicyVersionMarker";
4631
- const _TPr = "TrafficPolicies";
4632
- const _TRI = "TagResourceId";
4633
- const _TTL = "TTL";
4634
- const _TV = "TagValue";
4635
- const _Ta = "Tag";
4636
- const _Tag = "Tags";
4637
- const _Th = "Threshold";
4638
- const _UHCR = "UpdateHealthCheckRequest";
4639
- const _UHZCR = "UpdateHostedZoneCommentRequest";
4640
- const _UTPCR = "UpdateTrafficPolicyCommentRequest";
4641
- const _UTPIR = "UpdateTrafficPolicyInstanceRequest";
4642
- const _UUID = "UUID";
4643
- const _V = "Value";
4644
- const _VPC = "VPC";
4645
- const _VPCI = "VPCId";
4646
- const _VPCR = "VPCRegion";
4647
- const _VPCs = "VPCs";
4648
- const _Ve = "Version";
4649
- const _W = "Weight";
4650
- const _c = "continentcode";
4651
- const _co = "countrycode";
4652
- const _d = "delegationsetid";
4653
- const _dn = "dnsname";
4654
- const _e = "edns0clientsubnetip";
4655
- const _ed = "edns0clientsubnetmask";
4656
- const _h = "hostedzonetype";
4657
- const _ho = "hostedzoneid";
4658
- const _i = "identifier";
4659
- const _id = "id";
4660
- const _l = "location";
4661
- const _m = "maxresults";
4662
- const _ma = "maxitems";
4663
- const _mar = "marker";
4664
- const _me = "member";
4665
- const _mes = "message";
4666
- const _mess = "messages";
4667
- const _n = "nexttoken";
4668
- const _na = "name";
4669
- const _r = "recordname";
4670
- const _re = "recordtype";
4671
- const _res = "resolverip";
4672
- const _s = "subdivisioncode";
4673
- const _st = "startcontinentcode";
4674
- const _sta = "startcountrycode";
4675
- const _star = "startsubdivisioncode";
4676
- const _t = "type";
4677
- const _tr = "trafficpolicyid";
4678
- const _tra = "trafficpolicyinstancename";
4679
- const _traf = "trafficpolicyinstancetype";
4680
- const _traff = "trafficpolicyversion";
4681
- const _v = "vpcid";
4682
- const _ve = '<?xml version="1.0" encoding="UTF-8"?>';
4683
- const _ver = "version";
4684
- const _vp = "vpcregion";