@aws-sdk/client-elasticsearch-service 3.303.0 → 3.309.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 (105) hide show
  1. package/dist-cjs/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +2 -2
  2. package/dist-cjs/commands/AddTagsCommand.js +2 -2
  3. package/dist-cjs/commands/AssociatePackageCommand.js +2 -2
  4. package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +2 -2
  5. package/dist-cjs/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +2 -2
  6. package/dist-cjs/commands/CreateElasticsearchDomainCommand.js +2 -2
  7. package/dist-cjs/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +2 -2
  8. package/dist-cjs/commands/CreatePackageCommand.js +2 -2
  9. package/dist-cjs/commands/CreateVpcEndpointCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteElasticsearchDomainCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteElasticsearchServiceRoleCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js +2 -2
  14. package/dist-cjs/commands/DeletePackageCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteVpcEndpointCommand.js +2 -2
  16. package/dist-cjs/commands/DescribeDomainAutoTunesCommand.js +2 -2
  17. package/dist-cjs/commands/DescribeDomainChangeProgressCommand.js +2 -2
  18. package/dist-cjs/commands/DescribeElasticsearchDomainCommand.js +2 -2
  19. package/dist-cjs/commands/DescribeElasticsearchDomainConfigCommand.js +2 -2
  20. package/dist-cjs/commands/DescribeElasticsearchDomainsCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribePackagesCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeReservedElasticsearchInstancesCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +2 -2
  28. package/dist-cjs/commands/DissociatePackageCommand.js +2 -2
  29. package/dist-cjs/commands/GetCompatibleElasticsearchVersionsCommand.js +2 -2
  30. package/dist-cjs/commands/GetPackageVersionHistoryCommand.js +2 -2
  31. package/dist-cjs/commands/GetUpgradeHistoryCommand.js +2 -2
  32. package/dist-cjs/commands/GetUpgradeStatusCommand.js +2 -2
  33. package/dist-cjs/commands/ListDomainNamesCommand.js +2 -2
  34. package/dist-cjs/commands/ListDomainsForPackageCommand.js +2 -2
  35. package/dist-cjs/commands/ListElasticsearchInstanceTypesCommand.js +2 -2
  36. package/dist-cjs/commands/ListElasticsearchVersionsCommand.js +2 -2
  37. package/dist-cjs/commands/ListPackagesForDomainCommand.js +2 -2
  38. package/dist-cjs/commands/ListTagsCommand.js +2 -2
  39. package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +2 -2
  40. package/dist-cjs/commands/ListVpcEndpointsCommand.js +2 -2
  41. package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +2 -2
  42. package/dist-cjs/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +2 -2
  43. package/dist-cjs/commands/RejectInboundCrossClusterSearchConnectionCommand.js +2 -2
  44. package/dist-cjs/commands/RemoveTagsCommand.js +2 -2
  45. package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +2 -2
  46. package/dist-cjs/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +2 -2
  47. package/dist-cjs/commands/UpdateElasticsearchDomainConfigCommand.js +2 -2
  48. package/dist-cjs/commands/UpdatePackageCommand.js +2 -2
  49. package/dist-cjs/commands/UpdateVpcEndpointCommand.js +2 -2
  50. package/dist-cjs/commands/UpgradeElasticsearchDomainCommand.js +2 -2
  51. package/dist-cjs/protocols/Aws_restJson1.js +891 -975
  52. package/dist-es/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +3 -3
  53. package/dist-es/commands/AddTagsCommand.js +3 -3
  54. package/dist-es/commands/AssociatePackageCommand.js +3 -3
  55. package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +3 -3
  56. package/dist-es/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  57. package/dist-es/commands/CreateElasticsearchDomainCommand.js +3 -3
  58. package/dist-es/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +3 -3
  59. package/dist-es/commands/CreatePackageCommand.js +3 -3
  60. package/dist-es/commands/CreateVpcEndpointCommand.js +3 -3
  61. package/dist-es/commands/DeleteElasticsearchDomainCommand.js +3 -3
  62. package/dist-es/commands/DeleteElasticsearchServiceRoleCommand.js +3 -3
  63. package/dist-es/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +3 -3
  64. package/dist-es/commands/DeleteOutboundCrossClusterSearchConnectionCommand.js +3 -3
  65. package/dist-es/commands/DeletePackageCommand.js +3 -3
  66. package/dist-es/commands/DeleteVpcEndpointCommand.js +3 -3
  67. package/dist-es/commands/DescribeDomainAutoTunesCommand.js +3 -3
  68. package/dist-es/commands/DescribeDomainChangeProgressCommand.js +3 -3
  69. package/dist-es/commands/DescribeElasticsearchDomainCommand.js +3 -3
  70. package/dist-es/commands/DescribeElasticsearchDomainConfigCommand.js +3 -3
  71. package/dist-es/commands/DescribeElasticsearchDomainsCommand.js +3 -3
  72. package/dist-es/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +3 -3
  73. package/dist-es/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +3 -3
  74. package/dist-es/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +3 -3
  75. package/dist-es/commands/DescribePackagesCommand.js +3 -3
  76. package/dist-es/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +3 -3
  77. package/dist-es/commands/DescribeReservedElasticsearchInstancesCommand.js +3 -3
  78. package/dist-es/commands/DescribeVpcEndpointsCommand.js +3 -3
  79. package/dist-es/commands/DissociatePackageCommand.js +3 -3
  80. package/dist-es/commands/GetCompatibleElasticsearchVersionsCommand.js +3 -3
  81. package/dist-es/commands/GetPackageVersionHistoryCommand.js +3 -3
  82. package/dist-es/commands/GetUpgradeHistoryCommand.js +3 -3
  83. package/dist-es/commands/GetUpgradeStatusCommand.js +3 -3
  84. package/dist-es/commands/ListDomainNamesCommand.js +3 -3
  85. package/dist-es/commands/ListDomainsForPackageCommand.js +3 -3
  86. package/dist-es/commands/ListElasticsearchInstanceTypesCommand.js +3 -3
  87. package/dist-es/commands/ListElasticsearchVersionsCommand.js +3 -3
  88. package/dist-es/commands/ListPackagesForDomainCommand.js +3 -3
  89. package/dist-es/commands/ListTagsCommand.js +3 -3
  90. package/dist-es/commands/ListVpcEndpointAccessCommand.js +3 -3
  91. package/dist-es/commands/ListVpcEndpointsCommand.js +3 -3
  92. package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +3 -3
  93. package/dist-es/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +3 -3
  94. package/dist-es/commands/RejectInboundCrossClusterSearchConnectionCommand.js +3 -3
  95. package/dist-es/commands/RemoveTagsCommand.js +3 -3
  96. package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +3 -3
  97. package/dist-es/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +3 -3
  98. package/dist-es/commands/UpdateElasticsearchDomainConfigCommand.js +3 -3
  99. package/dist-es/commands/UpdatePackageCommand.js +3 -3
  100. package/dist-es/commands/UpdateVpcEndpointCommand.js +3 -3
  101. package/dist-es/commands/UpgradeElasticsearchDomainCommand.js +3 -3
  102. package/dist-es/protocols/Aws_restJson1.js +789 -873
  103. package/dist-types/protocols/Aws_restJson1.d.ts +400 -100
  104. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +100 -100
  105. package/package.json +29 -29
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ElasticsearchServiceServiceException as __BaseException } from "../models/ElasticsearchServiceServiceException";
4
4
  import { AccessDeniedException, BaseException, ConflictException, DisabledOperationException, InternalException, InvalidPaginationTokenException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = async (input, context) => {
5
+ export const se_AcceptInboundCrossClusterSearchConnectionCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
8
8
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -19,7 +19,7 @@ export const serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionComm
19
19
  body,
20
20
  });
21
21
  };
22
- export const serializeAws_restJson1AddTagsCommand = async (input, context) => {
22
+ export const se_AddTagsCommand = async (input, context) => {
23
23
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
24
  const headers = {
25
25
  "content-type": "application/json",
@@ -28,7 +28,7 @@ export const serializeAws_restJson1AddTagsCommand = async (input, context) => {
28
28
  let body;
29
29
  body = JSON.stringify({
30
30
  ...(input.ARN != null && { ARN: input.ARN }),
31
- ...(input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
31
+ ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
32
32
  });
33
33
  return new __HttpRequest({
34
34
  protocol,
@@ -40,7 +40,7 @@ export const serializeAws_restJson1AddTagsCommand = async (input, context) => {
40
40
  body,
41
41
  });
42
42
  };
43
- export const serializeAws_restJson1AssociatePackageCommand = async (input, context) => {
43
+ export const se_AssociatePackageCommand = async (input, context) => {
44
44
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
45
  const headers = {};
46
46
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -58,7 +58,7 @@ export const serializeAws_restJson1AssociatePackageCommand = async (input, conte
58
58
  body,
59
59
  });
60
60
  };
61
- export const serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (input, context) => {
61
+ export const se_AuthorizeVpcEndpointAccessCommand = async (input, context) => {
62
62
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
63
  const headers = {
64
64
  "content-type": "application/json",
@@ -80,7 +80,7 @@ export const serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (in
80
80
  body,
81
81
  });
82
82
  };
83
- export const serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
83
+ export const se_CancelElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
84
84
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
85
  const headers = {
86
86
  "content-type": "application/json",
@@ -101,7 +101,7 @@ export const serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateComma
101
101
  body,
102
102
  });
103
103
  };
104
- export const serializeAws_restJson1CreateElasticsearchDomainCommand = async (input, context) => {
104
+ export const se_CreateElasticsearchDomainCommand = async (input, context) => {
105
105
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
106
  const headers = {
107
107
  "content-type": "application/json",
@@ -110,41 +110,33 @@ export const serializeAws_restJson1CreateElasticsearchDomainCommand = async (inp
110
110
  let body;
111
111
  body = JSON.stringify({
112
112
  ...(input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies }),
113
- ...(input.AdvancedOptions != null && {
114
- AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
115
- }),
113
+ ...(input.AdvancedOptions != null && { AdvancedOptions: se_AdvancedOptions(input.AdvancedOptions, context) }),
116
114
  ...(input.AdvancedSecurityOptions != null && {
117
- AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
118
- }),
119
- ...(input.AutoTuneOptions != null && {
120
- AutoTuneOptions: serializeAws_restJson1AutoTuneOptionsInput(input.AutoTuneOptions, context),
121
- }),
122
- ...(input.CognitoOptions != null && {
123
- CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
115
+ AdvancedSecurityOptions: se_AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
124
116
  }),
117
+ ...(input.AutoTuneOptions != null && { AutoTuneOptions: se_AutoTuneOptionsInput(input.AutoTuneOptions, context) }),
118
+ ...(input.CognitoOptions != null && { CognitoOptions: se_CognitoOptions(input.CognitoOptions, context) }),
125
119
  ...(input.DomainEndpointOptions != null && {
126
- DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
120
+ DomainEndpointOptions: se_DomainEndpointOptions(input.DomainEndpointOptions, context),
127
121
  }),
128
122
  ...(input.DomainName != null && { DomainName: input.DomainName }),
129
- ...(input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
123
+ ...(input.EBSOptions != null && { EBSOptions: se_EBSOptions(input.EBSOptions, context) }),
130
124
  ...(input.ElasticsearchClusterConfig != null && {
131
- ElasticsearchClusterConfig: serializeAws_restJson1ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
125
+ ElasticsearchClusterConfig: se_ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
132
126
  }),
133
127
  ...(input.ElasticsearchVersion != null && { ElasticsearchVersion: input.ElasticsearchVersion }),
134
128
  ...(input.EncryptionAtRestOptions != null && {
135
- EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
129
+ EncryptionAtRestOptions: se_EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
136
130
  }),
137
131
  ...(input.LogPublishingOptions != null && {
138
- LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
132
+ LogPublishingOptions: se_LogPublishingOptions(input.LogPublishingOptions, context),
139
133
  }),
140
134
  ...(input.NodeToNodeEncryptionOptions != null && {
141
- NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
135
+ NodeToNodeEncryptionOptions: se_NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
142
136
  }),
143
- ...(input.SnapshotOptions != null && {
144
- SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
145
- }),
146
- ...(input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
147
- ...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
137
+ ...(input.SnapshotOptions != null && { SnapshotOptions: se_SnapshotOptions(input.SnapshotOptions, context) }),
138
+ ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
139
+ ...(input.VPCOptions != null && { VPCOptions: se_VPCOptions(input.VPCOptions, context) }),
148
140
  });
149
141
  return new __HttpRequest({
150
142
  protocol,
@@ -156,7 +148,7 @@ export const serializeAws_restJson1CreateElasticsearchDomainCommand = async (inp
156
148
  body,
157
149
  });
158
150
  };
159
- export const serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
151
+ export const se_CreateOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
160
152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
153
  const headers = {
162
154
  "content-type": "application/json",
@@ -166,11 +158,9 @@ export const serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCom
166
158
  body = JSON.stringify({
167
159
  ...(input.ConnectionAlias != null && { ConnectionAlias: input.ConnectionAlias }),
168
160
  ...(input.DestinationDomainInfo != null && {
169
- DestinationDomainInfo: serializeAws_restJson1DomainInformation(input.DestinationDomainInfo, context),
170
- }),
171
- ...(input.SourceDomainInfo != null && {
172
- SourceDomainInfo: serializeAws_restJson1DomainInformation(input.SourceDomainInfo, context),
161
+ DestinationDomainInfo: se_DomainInformation(input.DestinationDomainInfo, context),
173
162
  }),
163
+ ...(input.SourceDomainInfo != null && { SourceDomainInfo: se_DomainInformation(input.SourceDomainInfo, context) }),
174
164
  });
175
165
  return new __HttpRequest({
176
166
  protocol,
@@ -182,7 +172,7 @@ export const serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCom
182
172
  body,
183
173
  });
184
174
  };
185
- export const serializeAws_restJson1CreatePackageCommand = async (input, context) => {
175
+ export const se_CreatePackageCommand = async (input, context) => {
186
176
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
187
177
  const headers = {
188
178
  "content-type": "application/json",
@@ -192,9 +182,7 @@ export const serializeAws_restJson1CreatePackageCommand = async (input, context)
192
182
  body = JSON.stringify({
193
183
  ...(input.PackageDescription != null && { PackageDescription: input.PackageDescription }),
194
184
  ...(input.PackageName != null && { PackageName: input.PackageName }),
195
- ...(input.PackageSource != null && {
196
- PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
197
- }),
185
+ ...(input.PackageSource != null && { PackageSource: se_PackageSource(input.PackageSource, context) }),
198
186
  ...(input.PackageType != null && { PackageType: input.PackageType }),
199
187
  });
200
188
  return new __HttpRequest({
@@ -207,7 +195,7 @@ export const serializeAws_restJson1CreatePackageCommand = async (input, context)
207
195
  body,
208
196
  });
209
197
  };
210
- export const serializeAws_restJson1CreateVpcEndpointCommand = async (input, context) => {
198
+ export const se_CreateVpcEndpointCommand = async (input, context) => {
211
199
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
200
  const headers = {
213
201
  "content-type": "application/json",
@@ -217,7 +205,7 @@ export const serializeAws_restJson1CreateVpcEndpointCommand = async (input, cont
217
205
  body = JSON.stringify({
218
206
  ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
219
207
  ...(input.DomainArn != null && { DomainArn: input.DomainArn }),
220
- ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
208
+ ...(input.VpcOptions != null && { VpcOptions: se_VPCOptions(input.VpcOptions, context) }),
221
209
  });
222
210
  return new __HttpRequest({
223
211
  protocol,
@@ -229,7 +217,7 @@ export const serializeAws_restJson1CreateVpcEndpointCommand = async (input, cont
229
217
  body,
230
218
  });
231
219
  };
232
- export const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (input, context) => {
220
+ export const se_DeleteElasticsearchDomainCommand = async (input, context) => {
233
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
222
  const headers = {};
235
223
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
@@ -245,7 +233,7 @@ export const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (inp
245
233
  body,
246
234
  });
247
235
  };
248
- export const serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = async (input, context) => {
236
+ export const se_DeleteElasticsearchServiceRoleCommand = async (input, context) => {
249
237
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
238
  const headers = {
251
239
  "content-type": "application/json",
@@ -263,7 +251,7 @@ export const serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = async
263
251
  body,
264
252
  });
265
253
  };
266
- export const serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = async (input, context) => {
254
+ export const se_DeleteInboundCrossClusterSearchConnectionCommand = async (input, context) => {
267
255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
256
  const headers = {};
269
257
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -280,7 +268,7 @@ export const serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionComm
280
268
  body,
281
269
  });
282
270
  };
283
- export const serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
271
+ export const se_DeleteOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
284
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
285
273
  const headers = {};
286
274
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -297,7 +285,7 @@ export const serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCom
297
285
  body,
298
286
  });
299
287
  };
300
- export const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
288
+ export const se_DeletePackageCommand = async (input, context) => {
301
289
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
290
  const headers = {};
303
291
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}";
@@ -313,7 +301,7 @@ export const serializeAws_restJson1DeletePackageCommand = async (input, context)
313
301
  body,
314
302
  });
315
303
  };
316
- export const serializeAws_restJson1DeleteVpcEndpointCommand = async (input, context) => {
304
+ export const se_DeleteVpcEndpointCommand = async (input, context) => {
317
305
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
318
306
  const headers = {};
319
307
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -330,7 +318,7 @@ export const serializeAws_restJson1DeleteVpcEndpointCommand = async (input, cont
330
318
  body,
331
319
  });
332
320
  };
333
- export const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, context) => {
321
+ export const se_DescribeDomainAutoTunesCommand = async (input, context) => {
334
322
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
335
323
  const headers = {
336
324
  "content-type": "application/json",
@@ -353,7 +341,7 @@ export const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input
353
341
  body,
354
342
  });
355
343
  };
356
- export const serializeAws_restJson1DescribeDomainChangeProgressCommand = async (input, context) => {
344
+ export const se_DescribeDomainChangeProgressCommand = async (input, context) => {
357
345
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
346
  const headers = {};
359
347
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -374,7 +362,7 @@ export const serializeAws_restJson1DescribeDomainChangeProgressCommand = async (
374
362
  body,
375
363
  });
376
364
  };
377
- export const serializeAws_restJson1DescribeElasticsearchDomainCommand = async (input, context) => {
365
+ export const se_DescribeElasticsearchDomainCommand = async (input, context) => {
378
366
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
379
367
  const headers = {};
380
368
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
@@ -390,7 +378,7 @@ export const serializeAws_restJson1DescribeElasticsearchDomainCommand = async (i
390
378
  body,
391
379
  });
392
380
  };
393
- export const serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (input, context) => {
381
+ export const se_DescribeElasticsearchDomainConfigCommand = async (input, context) => {
394
382
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
383
  const headers = {};
396
384
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
@@ -406,7 +394,7 @@ export const serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = as
406
394
  body,
407
395
  });
408
396
  };
409
- export const serializeAws_restJson1DescribeElasticsearchDomainsCommand = async (input, context) => {
397
+ export const se_DescribeElasticsearchDomainsCommand = async (input, context) => {
410
398
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
411
399
  const headers = {
412
400
  "content-type": "application/json",
@@ -414,7 +402,7 @@ export const serializeAws_restJson1DescribeElasticsearchDomainsCommand = async (
414
402
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain-info";
415
403
  let body;
416
404
  body = JSON.stringify({
417
- ...(input.DomainNames != null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) }),
405
+ ...(input.DomainNames != null && { DomainNames: se_DomainNameList(input.DomainNames, context) }),
418
406
  });
419
407
  return new __HttpRequest({
420
408
  protocol,
@@ -426,7 +414,7 @@ export const serializeAws_restJson1DescribeElasticsearchDomainsCommand = async (
426
414
  body,
427
415
  });
428
416
  };
429
- export const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = async (input, context) => {
417
+ export const se_DescribeElasticsearchInstanceTypeLimitsCommand = async (input, context) => {
430
418
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
431
419
  const headers = {};
432
420
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -448,7 +436,7 @@ export const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsComman
448
436
  body,
449
437
  });
450
438
  };
451
- export const serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = async (input, context) => {
439
+ export const se_DescribeInboundCrossClusterSearchConnectionsCommand = async (input, context) => {
452
440
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
453
441
  const headers = {
454
442
  "content-type": "application/json",
@@ -457,7 +445,7 @@ export const serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsC
457
445
  "/2015-01-01/es/ccs/inboundConnection/search";
458
446
  let body;
459
447
  body = JSON.stringify({
460
- ...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
448
+ ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
461
449
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
462
450
  ...(input.NextToken != null && { NextToken: input.NextToken }),
463
451
  });
@@ -471,7 +459,7 @@ export const serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsC
471
459
  body,
472
460
  });
473
461
  };
474
- export const serializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = async (input, context) => {
462
+ export const se_DescribeOutboundCrossClusterSearchConnectionsCommand = async (input, context) => {
475
463
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
464
  const headers = {
477
465
  "content-type": "application/json",
@@ -480,7 +468,7 @@ export const serializeAws_restJson1DescribeOutboundCrossClusterSearchConnections
480
468
  "/2015-01-01/es/ccs/outboundConnection/search";
481
469
  let body;
482
470
  body = JSON.stringify({
483
- ...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
471
+ ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
484
472
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
485
473
  ...(input.NextToken != null && { NextToken: input.NextToken }),
486
474
  });
@@ -494,7 +482,7 @@ export const serializeAws_restJson1DescribeOutboundCrossClusterSearchConnections
494
482
  body,
495
483
  });
496
484
  };
497
- export const serializeAws_restJson1DescribePackagesCommand = async (input, context) => {
485
+ export const se_DescribePackagesCommand = async (input, context) => {
498
486
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
499
487
  const headers = {
500
488
  "content-type": "application/json",
@@ -502,7 +490,7 @@ export const serializeAws_restJson1DescribePackagesCommand = async (input, conte
502
490
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/describe";
503
491
  let body;
504
492
  body = JSON.stringify({
505
- ...(input.Filters != null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) }),
493
+ ...(input.Filters != null && { Filters: se_DescribePackagesFilterList(input.Filters, context) }),
506
494
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
507
495
  ...(input.NextToken != null && { NextToken: input.NextToken }),
508
496
  });
@@ -516,7 +504,7 @@ export const serializeAws_restJson1DescribePackagesCommand = async (input, conte
516
504
  body,
517
505
  });
518
506
  };
519
- export const serializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = async (input, context) => {
507
+ export const se_DescribeReservedElasticsearchInstanceOfferingsCommand = async (input, context) => {
520
508
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
509
  const headers = {};
522
510
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstanceOfferings";
@@ -537,7 +525,7 @@ export const serializeAws_restJson1DescribeReservedElasticsearchInstanceOffering
537
525
  body,
538
526
  });
539
527
  };
540
- export const serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = async (input, context) => {
528
+ export const se_DescribeReservedElasticsearchInstancesCommand = async (input, context) => {
541
529
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
530
  const headers = {};
543
531
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstances";
@@ -558,7 +546,7 @@ export const serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand
558
546
  body,
559
547
  });
560
548
  };
561
- export const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, context) => {
549
+ export const se_DescribeVpcEndpointsCommand = async (input, context) => {
562
550
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
563
551
  const headers = {
564
552
  "content-type": "application/json",
@@ -566,9 +554,7 @@ export const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, c
566
554
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/describe";
567
555
  let body;
568
556
  body = JSON.stringify({
569
- ...(input.VpcEndpointIds != null && {
570
- VpcEndpointIds: serializeAws_restJson1VpcEndpointIdList(input.VpcEndpointIds, context),
571
- }),
557
+ ...(input.VpcEndpointIds != null && { VpcEndpointIds: se_VpcEndpointIdList(input.VpcEndpointIds, context) }),
572
558
  });
573
559
  return new __HttpRequest({
574
560
  protocol,
@@ -580,7 +566,7 @@ export const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, c
580
566
  body,
581
567
  });
582
568
  };
583
- export const serializeAws_restJson1DissociatePackageCommand = async (input, context) => {
569
+ export const se_DissociatePackageCommand = async (input, context) => {
584
570
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
585
571
  const headers = {};
586
572
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -598,7 +584,7 @@ export const serializeAws_restJson1DissociatePackageCommand = async (input, cont
598
584
  body,
599
585
  });
600
586
  };
601
- export const serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async (input, context) => {
587
+ export const se_GetCompatibleElasticsearchVersionsCommand = async (input, context) => {
602
588
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
603
589
  const headers = {};
604
590
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/compatibleVersions";
@@ -617,7 +603,7 @@ export const serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = a
617
603
  body,
618
604
  });
619
605
  };
620
- export const serializeAws_restJson1GetPackageVersionHistoryCommand = async (input, context) => {
606
+ export const se_GetPackageVersionHistoryCommand = async (input, context) => {
621
607
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
608
  const headers = {};
623
609
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/history";
@@ -638,7 +624,7 @@ export const serializeAws_restJson1GetPackageVersionHistoryCommand = async (inpu
638
624
  body,
639
625
  });
640
626
  };
641
- export const serializeAws_restJson1GetUpgradeHistoryCommand = async (input, context) => {
627
+ export const se_GetUpgradeHistoryCommand = async (input, context) => {
642
628
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
643
629
  const headers = {};
644
630
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -660,7 +646,7 @@ export const serializeAws_restJson1GetUpgradeHistoryCommand = async (input, cont
660
646
  body,
661
647
  });
662
648
  };
663
- export const serializeAws_restJson1GetUpgradeStatusCommand = async (input, context) => {
649
+ export const se_GetUpgradeStatusCommand = async (input, context) => {
664
650
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
651
  const headers = {};
666
652
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -677,7 +663,7 @@ export const serializeAws_restJson1GetUpgradeStatusCommand = async (input, conte
677
663
  body,
678
664
  });
679
665
  };
680
- export const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
666
+ export const se_ListDomainNamesCommand = async (input, context) => {
681
667
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
668
  const headers = {};
683
669
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain";
@@ -696,7 +682,7 @@ export const serializeAws_restJson1ListDomainNamesCommand = async (input, contex
696
682
  body,
697
683
  });
698
684
  };
699
- export const serializeAws_restJson1ListDomainsForPackageCommand = async (input, context) => {
685
+ export const se_ListDomainsForPackageCommand = async (input, context) => {
700
686
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
701
687
  const headers = {};
702
688
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/domains";
@@ -717,7 +703,7 @@ export const serializeAws_restJson1ListDomainsForPackageCommand = async (input,
717
703
  body,
718
704
  });
719
705
  };
720
- export const serializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (input, context) => {
706
+ export const se_ListElasticsearchInstanceTypesCommand = async (input, context) => {
721
707
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
722
708
  const headers = {};
723
709
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -740,7 +726,7 @@ export const serializeAws_restJson1ListElasticsearchInstanceTypesCommand = async
740
726
  body,
741
727
  });
742
728
  };
743
- export const serializeAws_restJson1ListElasticsearchVersionsCommand = async (input, context) => {
729
+ export const se_ListElasticsearchVersionsCommand = async (input, context) => {
744
730
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
745
731
  const headers = {};
746
732
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/versions";
@@ -760,7 +746,7 @@ export const serializeAws_restJson1ListElasticsearchVersionsCommand = async (inp
760
746
  body,
761
747
  });
762
748
  };
763
- export const serializeAws_restJson1ListPackagesForDomainCommand = async (input, context) => {
749
+ export const se_ListPackagesForDomainCommand = async (input, context) => {
764
750
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
765
751
  const headers = {};
766
752
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain/{DomainName}/packages";
@@ -781,7 +767,7 @@ export const serializeAws_restJson1ListPackagesForDomainCommand = async (input,
781
767
  body,
782
768
  });
783
769
  };
784
- export const serializeAws_restJson1ListTagsCommand = async (input, context) => {
770
+ export const se_ListTagsCommand = async (input, context) => {
785
771
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
772
  const headers = {};
787
773
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
@@ -800,7 +786,7 @@ export const serializeAws_restJson1ListTagsCommand = async (input, context) => {
800
786
  body,
801
787
  });
802
788
  };
803
- export const serializeAws_restJson1ListVpcEndpointAccessCommand = async (input, context) => {
789
+ export const se_ListVpcEndpointAccessCommand = async (input, context) => {
804
790
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
805
791
  const headers = {};
806
792
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -821,7 +807,7 @@ export const serializeAws_restJson1ListVpcEndpointAccessCommand = async (input,
821
807
  body,
822
808
  });
823
809
  };
824
- export const serializeAws_restJson1ListVpcEndpointsCommand = async (input, context) => {
810
+ export const se_ListVpcEndpointsCommand = async (input, context) => {
825
811
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
826
812
  const headers = {};
827
813
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
@@ -840,7 +826,7 @@ export const serializeAws_restJson1ListVpcEndpointsCommand = async (input, conte
840
826
  body,
841
827
  });
842
828
  };
843
- export const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (input, context) => {
829
+ export const se_ListVpcEndpointsForDomainCommand = async (input, context) => {
844
830
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
845
831
  const headers = {};
846
832
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -861,7 +847,7 @@ export const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (inp
861
847
  body,
862
848
  });
863
849
  };
864
- export const serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = async (input, context) => {
850
+ export const se_PurchaseReservedElasticsearchInstanceOfferingCommand = async (input, context) => {
865
851
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
866
852
  const headers = {
867
853
  "content-type": "application/json",
@@ -886,7 +872,7 @@ export const serializeAws_restJson1PurchaseReservedElasticsearchInstanceOffering
886
872
  body,
887
873
  });
888
874
  };
889
- export const serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = async (input, context) => {
875
+ export const se_RejectInboundCrossClusterSearchConnectionCommand = async (input, context) => {
890
876
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
891
877
  const headers = {};
892
878
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -903,7 +889,7 @@ export const serializeAws_restJson1RejectInboundCrossClusterSearchConnectionComm
903
889
  body,
904
890
  });
905
891
  };
906
- export const serializeAws_restJson1RemoveTagsCommand = async (input, context) => {
892
+ export const se_RemoveTagsCommand = async (input, context) => {
907
893
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
908
894
  const headers = {
909
895
  "content-type": "application/json",
@@ -912,7 +898,7 @@ export const serializeAws_restJson1RemoveTagsCommand = async (input, context) =>
912
898
  let body;
913
899
  body = JSON.stringify({
914
900
  ...(input.ARN != null && { ARN: input.ARN }),
915
- ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) }),
901
+ ...(input.TagKeys != null && { TagKeys: se_StringList(input.TagKeys, context) }),
916
902
  });
917
903
  return new __HttpRequest({
918
904
  protocol,
@@ -924,7 +910,7 @@ export const serializeAws_restJson1RemoveTagsCommand = async (input, context) =>
924
910
  body,
925
911
  });
926
912
  };
927
- export const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (input, context) => {
913
+ export const se_RevokeVpcEndpointAccessCommand = async (input, context) => {
928
914
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
929
915
  const headers = {
930
916
  "content-type": "application/json",
@@ -946,7 +932,7 @@ export const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (input
946
932
  body,
947
933
  });
948
934
  };
949
- export const serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
935
+ export const se_StartElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
950
936
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
951
937
  const headers = {
952
938
  "content-type": "application/json",
@@ -967,7 +953,7 @@ export const serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateComman
967
953
  body,
968
954
  });
969
955
  };
970
- export const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (input, context) => {
956
+ export const se_UpdateElasticsearchDomainConfigCommand = async (input, context) => {
971
957
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
972
958
  const headers = {
973
959
  "content-type": "application/json",
@@ -977,39 +963,31 @@ export const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = asyn
977
963
  let body;
978
964
  body = JSON.stringify({
979
965
  ...(input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies }),
980
- ...(input.AdvancedOptions != null && {
981
- AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
982
- }),
966
+ ...(input.AdvancedOptions != null && { AdvancedOptions: se_AdvancedOptions(input.AdvancedOptions, context) }),
983
967
  ...(input.AdvancedSecurityOptions != null && {
984
- AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
985
- }),
986
- ...(input.AutoTuneOptions != null && {
987
- AutoTuneOptions: serializeAws_restJson1AutoTuneOptions(input.AutoTuneOptions, context),
988
- }),
989
- ...(input.CognitoOptions != null && {
990
- CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
968
+ AdvancedSecurityOptions: se_AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
991
969
  }),
970
+ ...(input.AutoTuneOptions != null && { AutoTuneOptions: se_AutoTuneOptions(input.AutoTuneOptions, context) }),
971
+ ...(input.CognitoOptions != null && { CognitoOptions: se_CognitoOptions(input.CognitoOptions, context) }),
992
972
  ...(input.DomainEndpointOptions != null && {
993
- DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
973
+ DomainEndpointOptions: se_DomainEndpointOptions(input.DomainEndpointOptions, context),
994
974
  }),
995
975
  ...(input.DryRun != null && { DryRun: input.DryRun }),
996
- ...(input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
976
+ ...(input.EBSOptions != null && { EBSOptions: se_EBSOptions(input.EBSOptions, context) }),
997
977
  ...(input.ElasticsearchClusterConfig != null && {
998
- ElasticsearchClusterConfig: serializeAws_restJson1ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
978
+ ElasticsearchClusterConfig: se_ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
999
979
  }),
1000
980
  ...(input.EncryptionAtRestOptions != null && {
1001
- EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
981
+ EncryptionAtRestOptions: se_EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
1002
982
  }),
1003
983
  ...(input.LogPublishingOptions != null && {
1004
- LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
984
+ LogPublishingOptions: se_LogPublishingOptions(input.LogPublishingOptions, context),
1005
985
  }),
1006
986
  ...(input.NodeToNodeEncryptionOptions != null && {
1007
- NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
1008
- }),
1009
- ...(input.SnapshotOptions != null && {
1010
- SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
987
+ NodeToNodeEncryptionOptions: se_NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
1011
988
  }),
1012
- ...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
989
+ ...(input.SnapshotOptions != null && { SnapshotOptions: se_SnapshotOptions(input.SnapshotOptions, context) }),
990
+ ...(input.VPCOptions != null && { VPCOptions: se_VPCOptions(input.VPCOptions, context) }),
1013
991
  });
1014
992
  return new __HttpRequest({
1015
993
  protocol,
@@ -1021,7 +999,7 @@ export const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = asyn
1021
999
  body,
1022
1000
  });
1023
1001
  };
1024
- export const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
1002
+ export const se_UpdatePackageCommand = async (input, context) => {
1025
1003
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1026
1004
  const headers = {
1027
1005
  "content-type": "application/json",
@@ -1032,9 +1010,7 @@ export const serializeAws_restJson1UpdatePackageCommand = async (input, context)
1032
1010
  ...(input.CommitMessage != null && { CommitMessage: input.CommitMessage }),
1033
1011
  ...(input.PackageDescription != null && { PackageDescription: input.PackageDescription }),
1034
1012
  ...(input.PackageID != null && { PackageID: input.PackageID }),
1035
- ...(input.PackageSource != null && {
1036
- PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
1037
- }),
1013
+ ...(input.PackageSource != null && { PackageSource: se_PackageSource(input.PackageSource, context) }),
1038
1014
  });
1039
1015
  return new __HttpRequest({
1040
1016
  protocol,
@@ -1046,7 +1022,7 @@ export const serializeAws_restJson1UpdatePackageCommand = async (input, context)
1046
1022
  body,
1047
1023
  });
1048
1024
  };
1049
- export const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, context) => {
1025
+ export const se_UpdateVpcEndpointCommand = async (input, context) => {
1050
1026
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1051
1027
  const headers = {
1052
1028
  "content-type": "application/json",
@@ -1055,7 +1031,7 @@ export const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, cont
1055
1031
  let body;
1056
1032
  body = JSON.stringify({
1057
1033
  ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
1058
- ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
1034
+ ...(input.VpcOptions != null && { VpcOptions: se_VPCOptions(input.VpcOptions, context) }),
1059
1035
  });
1060
1036
  return new __HttpRequest({
1061
1037
  protocol,
@@ -1067,7 +1043,7 @@ export const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, cont
1067
1043
  body,
1068
1044
  });
1069
1045
  };
1070
- export const serializeAws_restJson1UpgradeElasticsearchDomainCommand = async (input, context) => {
1046
+ export const se_UpgradeElasticsearchDomainCommand = async (input, context) => {
1071
1047
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1072
1048
  const headers = {
1073
1049
  "content-type": "application/json",
@@ -1089,20 +1065,20 @@ export const serializeAws_restJson1UpgradeElasticsearchDomainCommand = async (in
1089
1065
  body,
1090
1066
  });
1091
1067
  };
1092
- export const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = async (output, context) => {
1068
+ export const de_AcceptInboundCrossClusterSearchConnectionCommand = async (output, context) => {
1093
1069
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
- return deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandError(output, context);
1070
+ return de_AcceptInboundCrossClusterSearchConnectionCommandError(output, context);
1095
1071
  }
1096
1072
  const contents = map({
1097
1073
  $metadata: deserializeMetadata(output),
1098
1074
  });
1099
1075
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1100
1076
  if (data.CrossClusterSearchConnection != null) {
1101
- contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1077
+ contents.CrossClusterSearchConnection = de_InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1102
1078
  }
1103
1079
  return contents;
1104
1080
  };
1105
- const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1081
+ const de_AcceptInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1106
1082
  const parsedOutput = {
1107
1083
  ...output,
1108
1084
  body: await parseErrorBody(output.body, context),
@@ -1111,13 +1087,13 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandEr
1111
1087
  switch (errorCode) {
1112
1088
  case "DisabledOperationException":
1113
1089
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1114
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1090
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1115
1091
  case "LimitExceededException":
1116
1092
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1117
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1093
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1118
1094
  case "ResourceNotFoundException":
1119
1095
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1120
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1096
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1121
1097
  default:
1122
1098
  const parsedBody = parsedOutput.body;
1123
1099
  throwDefaultError({
@@ -1128,9 +1104,9 @@ const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandEr
1128
1104
  });
1129
1105
  }
1130
1106
  };
1131
- export const deserializeAws_restJson1AddTagsCommand = async (output, context) => {
1107
+ export const de_AddTagsCommand = async (output, context) => {
1132
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1133
- return deserializeAws_restJson1AddTagsCommandError(output, context);
1109
+ return de_AddTagsCommandError(output, context);
1134
1110
  }
1135
1111
  const contents = map({
1136
1112
  $metadata: deserializeMetadata(output),
@@ -1138,7 +1114,7 @@ export const deserializeAws_restJson1AddTagsCommand = async (output, context) =>
1138
1114
  await collectBody(output.body, context);
1139
1115
  return contents;
1140
1116
  };
1141
- const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
1117
+ const de_AddTagsCommandError = async (output, context) => {
1142
1118
  const parsedOutput = {
1143
1119
  ...output,
1144
1120
  body: await parseErrorBody(output.body, context),
@@ -1147,16 +1123,16 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
1147
1123
  switch (errorCode) {
1148
1124
  case "BaseException":
1149
1125
  case "com.amazonaws.elasticsearchservice#BaseException":
1150
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1126
+ throw await de_BaseExceptionRes(parsedOutput, context);
1151
1127
  case "InternalException":
1152
1128
  case "com.amazonaws.elasticsearchservice#InternalException":
1153
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1129
+ throw await de_InternalExceptionRes(parsedOutput, context);
1154
1130
  case "LimitExceededException":
1155
1131
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1156
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1132
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1157
1133
  case "ValidationException":
1158
1134
  case "com.amazonaws.elasticsearchservice#ValidationException":
1159
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1135
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1160
1136
  default:
1161
1137
  const parsedBody = parsedOutput.body;
1162
1138
  throwDefaultError({
@@ -1167,20 +1143,20 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
1167
1143
  });
1168
1144
  }
1169
1145
  };
1170
- export const deserializeAws_restJson1AssociatePackageCommand = async (output, context) => {
1146
+ export const de_AssociatePackageCommand = async (output, context) => {
1171
1147
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1172
- return deserializeAws_restJson1AssociatePackageCommandError(output, context);
1148
+ return de_AssociatePackageCommandError(output, context);
1173
1149
  }
1174
1150
  const contents = map({
1175
1151
  $metadata: deserializeMetadata(output),
1176
1152
  });
1177
1153
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1178
1154
  if (data.DomainPackageDetails != null) {
1179
- contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
1155
+ contents.DomainPackageDetails = de_DomainPackageDetails(data.DomainPackageDetails, context);
1180
1156
  }
1181
1157
  return contents;
1182
1158
  };
1183
- const deserializeAws_restJson1AssociatePackageCommandError = async (output, context) => {
1159
+ const de_AssociatePackageCommandError = async (output, context) => {
1184
1160
  const parsedOutput = {
1185
1161
  ...output,
1186
1162
  body: await parseErrorBody(output.body, context),
@@ -1189,22 +1165,22 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
1189
1165
  switch (errorCode) {
1190
1166
  case "AccessDeniedException":
1191
1167
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
1192
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1168
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1193
1169
  case "BaseException":
1194
1170
  case "com.amazonaws.elasticsearchservice#BaseException":
1195
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1171
+ throw await de_BaseExceptionRes(parsedOutput, context);
1196
1172
  case "ConflictException":
1197
1173
  case "com.amazonaws.elasticsearchservice#ConflictException":
1198
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1174
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1199
1175
  case "InternalException":
1200
1176
  case "com.amazonaws.elasticsearchservice#InternalException":
1201
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1177
+ throw await de_InternalExceptionRes(parsedOutput, context);
1202
1178
  case "ResourceNotFoundException":
1203
1179
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1204
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1180
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1205
1181
  case "ValidationException":
1206
1182
  case "com.amazonaws.elasticsearchservice#ValidationException":
1207
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1183
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1208
1184
  default:
1209
1185
  const parsedBody = parsedOutput.body;
1210
1186
  throwDefaultError({
@@ -1215,20 +1191,20 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
1215
1191
  });
1216
1192
  }
1217
1193
  };
1218
- export const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (output, context) => {
1194
+ export const de_AuthorizeVpcEndpointAccessCommand = async (output, context) => {
1219
1195
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1220
- return deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError(output, context);
1196
+ return de_AuthorizeVpcEndpointAccessCommandError(output, context);
1221
1197
  }
1222
1198
  const contents = map({
1223
1199
  $metadata: deserializeMetadata(output),
1224
1200
  });
1225
1201
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1226
1202
  if (data.AuthorizedPrincipal != null) {
1227
- contents.AuthorizedPrincipal = deserializeAws_restJson1AuthorizedPrincipal(data.AuthorizedPrincipal, context);
1203
+ contents.AuthorizedPrincipal = de_AuthorizedPrincipal(data.AuthorizedPrincipal, context);
1228
1204
  }
1229
1205
  return contents;
1230
1206
  };
1231
- const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
1207
+ const de_AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
1232
1208
  const parsedOutput = {
1233
1209
  ...output,
1234
1210
  body: await parseErrorBody(output.body, context),
@@ -1237,22 +1213,22 @@ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (ou
1237
1213
  switch (errorCode) {
1238
1214
  case "BaseException":
1239
1215
  case "com.amazonaws.elasticsearchservice#BaseException":
1240
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1216
+ throw await de_BaseExceptionRes(parsedOutput, context);
1241
1217
  case "DisabledOperationException":
1242
1218
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1243
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1219
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1244
1220
  case "InternalException":
1245
1221
  case "com.amazonaws.elasticsearchservice#InternalException":
1246
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1222
+ throw await de_InternalExceptionRes(parsedOutput, context);
1247
1223
  case "LimitExceededException":
1248
1224
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1249
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1225
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1250
1226
  case "ResourceNotFoundException":
1251
1227
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1252
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1228
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1253
1229
  case "ValidationException":
1254
1230
  case "com.amazonaws.elasticsearchservice#ValidationException":
1255
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1231
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1256
1232
  default:
1257
1233
  const parsedBody = parsedOutput.body;
1258
1234
  throwDefaultError({
@@ -1263,20 +1239,20 @@ const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (ou
1263
1239
  });
1264
1240
  }
1265
1241
  };
1266
- export const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
1242
+ export const de_CancelElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
1267
1243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1268
- return deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError(output, context);
1244
+ return de_CancelElasticsearchServiceSoftwareUpdateCommandError(output, context);
1269
1245
  }
1270
1246
  const contents = map({
1271
1247
  $metadata: deserializeMetadata(output),
1272
1248
  });
1273
1249
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1274
1250
  if (data.ServiceSoftwareOptions != null) {
1275
- contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
1251
+ contents.ServiceSoftwareOptions = de_ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
1276
1252
  }
1277
1253
  return contents;
1278
1254
  };
1279
- const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
1255
+ const de_CancelElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
1280
1256
  const parsedOutput = {
1281
1257
  ...output,
1282
1258
  body: await parseErrorBody(output.body, context),
@@ -1285,16 +1261,16 @@ const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandErr
1285
1261
  switch (errorCode) {
1286
1262
  case "BaseException":
1287
1263
  case "com.amazonaws.elasticsearchservice#BaseException":
1288
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1264
+ throw await de_BaseExceptionRes(parsedOutput, context);
1289
1265
  case "InternalException":
1290
1266
  case "com.amazonaws.elasticsearchservice#InternalException":
1291
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1267
+ throw await de_InternalExceptionRes(parsedOutput, context);
1292
1268
  case "ResourceNotFoundException":
1293
1269
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1294
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1270
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1295
1271
  case "ValidationException":
1296
1272
  case "com.amazonaws.elasticsearchservice#ValidationException":
1297
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1273
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1298
1274
  default:
1299
1275
  const parsedBody = parsedOutput.body;
1300
1276
  throwDefaultError({
@@ -1305,20 +1281,20 @@ const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandErr
1305
1281
  });
1306
1282
  }
1307
1283
  };
1308
- export const deserializeAws_restJson1CreateElasticsearchDomainCommand = async (output, context) => {
1284
+ export const de_CreateElasticsearchDomainCommand = async (output, context) => {
1309
1285
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
- return deserializeAws_restJson1CreateElasticsearchDomainCommandError(output, context);
1286
+ return de_CreateElasticsearchDomainCommandError(output, context);
1311
1287
  }
1312
1288
  const contents = map({
1313
1289
  $metadata: deserializeMetadata(output),
1314
1290
  });
1315
1291
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1316
1292
  if (data.DomainStatus != null) {
1317
- contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1293
+ contents.DomainStatus = de_ElasticsearchDomainStatus(data.DomainStatus, context);
1318
1294
  }
1319
1295
  return contents;
1320
1296
  };
1321
- const deserializeAws_restJson1CreateElasticsearchDomainCommandError = async (output, context) => {
1297
+ const de_CreateElasticsearchDomainCommandError = async (output, context) => {
1322
1298
  const parsedOutput = {
1323
1299
  ...output,
1324
1300
  body: await parseErrorBody(output.body, context),
@@ -1327,25 +1303,25 @@ const deserializeAws_restJson1CreateElasticsearchDomainCommandError = async (out
1327
1303
  switch (errorCode) {
1328
1304
  case "BaseException":
1329
1305
  case "com.amazonaws.elasticsearchservice#BaseException":
1330
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1306
+ throw await de_BaseExceptionRes(parsedOutput, context);
1331
1307
  case "DisabledOperationException":
1332
1308
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1333
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1309
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1334
1310
  case "InternalException":
1335
1311
  case "com.amazonaws.elasticsearchservice#InternalException":
1336
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1312
+ throw await de_InternalExceptionRes(parsedOutput, context);
1337
1313
  case "InvalidTypeException":
1338
1314
  case "com.amazonaws.elasticsearchservice#InvalidTypeException":
1339
- throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
1315
+ throw await de_InvalidTypeExceptionRes(parsedOutput, context);
1340
1316
  case "LimitExceededException":
1341
1317
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1342
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1318
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1343
1319
  case "ResourceAlreadyExistsException":
1344
1320
  case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
1345
- throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
1321
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1346
1322
  case "ValidationException":
1347
1323
  case "com.amazonaws.elasticsearchservice#ValidationException":
1348
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1324
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1349
1325
  default:
1350
1326
  const parsedBody = parsedOutput.body;
1351
1327
  throwDefaultError({
@@ -1356,9 +1332,9 @@ const deserializeAws_restJson1CreateElasticsearchDomainCommandError = async (out
1356
1332
  });
1357
1333
  }
1358
1334
  };
1359
- export const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
1335
+ export const de_CreateOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
1360
1336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1361
- return deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandError(output, context);
1337
+ return de_CreateOutboundCrossClusterSearchConnectionCommandError(output, context);
1362
1338
  }
1363
1339
  const contents = map({
1364
1340
  $metadata: deserializeMetadata(output),
@@ -1368,20 +1344,20 @@ export const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionC
1368
1344
  contents.ConnectionAlias = __expectString(data.ConnectionAlias);
1369
1345
  }
1370
1346
  if (data.ConnectionStatus != null) {
1371
- contents.ConnectionStatus = deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(data.ConnectionStatus, context);
1347
+ contents.ConnectionStatus = de_OutboundCrossClusterSearchConnectionStatus(data.ConnectionStatus, context);
1372
1348
  }
1373
1349
  if (data.CrossClusterSearchConnectionId != null) {
1374
1350
  contents.CrossClusterSearchConnectionId = __expectString(data.CrossClusterSearchConnectionId);
1375
1351
  }
1376
1352
  if (data.DestinationDomainInfo != null) {
1377
- contents.DestinationDomainInfo = deserializeAws_restJson1DomainInformation(data.DestinationDomainInfo, context);
1353
+ contents.DestinationDomainInfo = de_DomainInformation(data.DestinationDomainInfo, context);
1378
1354
  }
1379
1355
  if (data.SourceDomainInfo != null) {
1380
- contents.SourceDomainInfo = deserializeAws_restJson1DomainInformation(data.SourceDomainInfo, context);
1356
+ contents.SourceDomainInfo = de_DomainInformation(data.SourceDomainInfo, context);
1381
1357
  }
1382
1358
  return contents;
1383
1359
  };
1384
- const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1360
+ const de_CreateOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1385
1361
  const parsedOutput = {
1386
1362
  ...output,
1387
1363
  body: await parseErrorBody(output.body, context),
@@ -1390,16 +1366,16 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandE
1390
1366
  switch (errorCode) {
1391
1367
  case "DisabledOperationException":
1392
1368
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1393
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1369
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1394
1370
  case "InternalException":
1395
1371
  case "com.amazonaws.elasticsearchservice#InternalException":
1396
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1372
+ throw await de_InternalExceptionRes(parsedOutput, context);
1397
1373
  case "LimitExceededException":
1398
1374
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1399
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1375
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1400
1376
  case "ResourceAlreadyExistsException":
1401
1377
  case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
1402
- throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
1378
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1403
1379
  default:
1404
1380
  const parsedBody = parsedOutput.body;
1405
1381
  throwDefaultError({
@@ -1410,20 +1386,20 @@ const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandE
1410
1386
  });
1411
1387
  }
1412
1388
  };
1413
- export const deserializeAws_restJson1CreatePackageCommand = async (output, context) => {
1389
+ export const de_CreatePackageCommand = async (output, context) => {
1414
1390
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
- return deserializeAws_restJson1CreatePackageCommandError(output, context);
1391
+ return de_CreatePackageCommandError(output, context);
1416
1392
  }
1417
1393
  const contents = map({
1418
1394
  $metadata: deserializeMetadata(output),
1419
1395
  });
1420
1396
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1421
1397
  if (data.PackageDetails != null) {
1422
- contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1398
+ contents.PackageDetails = de_PackageDetails(data.PackageDetails, context);
1423
1399
  }
1424
1400
  return contents;
1425
1401
  };
1426
- const deserializeAws_restJson1CreatePackageCommandError = async (output, context) => {
1402
+ const de_CreatePackageCommandError = async (output, context) => {
1427
1403
  const parsedOutput = {
1428
1404
  ...output,
1429
1405
  body: await parseErrorBody(output.body, context),
@@ -1432,25 +1408,25 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
1432
1408
  switch (errorCode) {
1433
1409
  case "AccessDeniedException":
1434
1410
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
1435
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1411
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1436
1412
  case "BaseException":
1437
1413
  case "com.amazonaws.elasticsearchservice#BaseException":
1438
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1414
+ throw await de_BaseExceptionRes(parsedOutput, context);
1439
1415
  case "InternalException":
1440
1416
  case "com.amazonaws.elasticsearchservice#InternalException":
1441
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1417
+ throw await de_InternalExceptionRes(parsedOutput, context);
1442
1418
  case "InvalidTypeException":
1443
1419
  case "com.amazonaws.elasticsearchservice#InvalidTypeException":
1444
- throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
1420
+ throw await de_InvalidTypeExceptionRes(parsedOutput, context);
1445
1421
  case "LimitExceededException":
1446
1422
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1447
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1423
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1448
1424
  case "ResourceAlreadyExistsException":
1449
1425
  case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
1450
- throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
1426
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1451
1427
  case "ValidationException":
1452
1428
  case "com.amazonaws.elasticsearchservice#ValidationException":
1453
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1429
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1454
1430
  default:
1455
1431
  const parsedBody = parsedOutput.body;
1456
1432
  throwDefaultError({
@@ -1461,20 +1437,20 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
1461
1437
  });
1462
1438
  }
1463
1439
  };
1464
- export const deserializeAws_restJson1CreateVpcEndpointCommand = async (output, context) => {
1440
+ export const de_CreateVpcEndpointCommand = async (output, context) => {
1465
1441
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1466
- return deserializeAws_restJson1CreateVpcEndpointCommandError(output, context);
1442
+ return de_CreateVpcEndpointCommandError(output, context);
1467
1443
  }
1468
1444
  const contents = map({
1469
1445
  $metadata: deserializeMetadata(output),
1470
1446
  });
1471
1447
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1472
1448
  if (data.VpcEndpoint != null) {
1473
- contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
1449
+ contents.VpcEndpoint = de_VpcEndpoint(data.VpcEndpoint, context);
1474
1450
  }
1475
1451
  return contents;
1476
1452
  };
1477
- const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, context) => {
1453
+ const de_CreateVpcEndpointCommandError = async (output, context) => {
1478
1454
  const parsedOutput = {
1479
1455
  ...output,
1480
1456
  body: await parseErrorBody(output.body, context),
@@ -1483,22 +1459,22 @@ const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, con
1483
1459
  switch (errorCode) {
1484
1460
  case "BaseException":
1485
1461
  case "com.amazonaws.elasticsearchservice#BaseException":
1486
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1462
+ throw await de_BaseExceptionRes(parsedOutput, context);
1487
1463
  case "ConflictException":
1488
1464
  case "com.amazonaws.elasticsearchservice#ConflictException":
1489
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1465
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1490
1466
  case "DisabledOperationException":
1491
1467
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1492
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1468
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1493
1469
  case "InternalException":
1494
1470
  case "com.amazonaws.elasticsearchservice#InternalException":
1495
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1471
+ throw await de_InternalExceptionRes(parsedOutput, context);
1496
1472
  case "LimitExceededException":
1497
1473
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1498
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1474
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1499
1475
  case "ValidationException":
1500
1476
  case "com.amazonaws.elasticsearchservice#ValidationException":
1501
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1477
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1502
1478
  default:
1503
1479
  const parsedBody = parsedOutput.body;
1504
1480
  throwDefaultError({
@@ -1509,20 +1485,20 @@ const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, con
1509
1485
  });
1510
1486
  }
1511
1487
  };
1512
- export const deserializeAws_restJson1DeleteElasticsearchDomainCommand = async (output, context) => {
1488
+ export const de_DeleteElasticsearchDomainCommand = async (output, context) => {
1513
1489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1514
- return deserializeAws_restJson1DeleteElasticsearchDomainCommandError(output, context);
1490
+ return de_DeleteElasticsearchDomainCommandError(output, context);
1515
1491
  }
1516
1492
  const contents = map({
1517
1493
  $metadata: deserializeMetadata(output),
1518
1494
  });
1519
1495
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1520
1496
  if (data.DomainStatus != null) {
1521
- contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1497
+ contents.DomainStatus = de_ElasticsearchDomainStatus(data.DomainStatus, context);
1522
1498
  }
1523
1499
  return contents;
1524
1500
  };
1525
- const deserializeAws_restJson1DeleteElasticsearchDomainCommandError = async (output, context) => {
1501
+ const de_DeleteElasticsearchDomainCommandError = async (output, context) => {
1526
1502
  const parsedOutput = {
1527
1503
  ...output,
1528
1504
  body: await parseErrorBody(output.body, context),
@@ -1531,16 +1507,16 @@ const deserializeAws_restJson1DeleteElasticsearchDomainCommandError = async (out
1531
1507
  switch (errorCode) {
1532
1508
  case "BaseException":
1533
1509
  case "com.amazonaws.elasticsearchservice#BaseException":
1534
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1510
+ throw await de_BaseExceptionRes(parsedOutput, context);
1535
1511
  case "InternalException":
1536
1512
  case "com.amazonaws.elasticsearchservice#InternalException":
1537
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1513
+ throw await de_InternalExceptionRes(parsedOutput, context);
1538
1514
  case "ResourceNotFoundException":
1539
1515
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1540
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1516
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1541
1517
  case "ValidationException":
1542
1518
  case "com.amazonaws.elasticsearchservice#ValidationException":
1543
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1519
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1544
1520
  default:
1545
1521
  const parsedBody = parsedOutput.body;
1546
1522
  throwDefaultError({
@@ -1551,9 +1527,9 @@ const deserializeAws_restJson1DeleteElasticsearchDomainCommandError = async (out
1551
1527
  });
1552
1528
  }
1553
1529
  };
1554
- export const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = async (output, context) => {
1530
+ export const de_DeleteElasticsearchServiceRoleCommand = async (output, context) => {
1555
1531
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1556
- return deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError(output, context);
1532
+ return de_DeleteElasticsearchServiceRoleCommandError(output, context);
1557
1533
  }
1558
1534
  const contents = map({
1559
1535
  $metadata: deserializeMetadata(output),
@@ -1561,7 +1537,7 @@ export const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = asy
1561
1537
  await collectBody(output.body, context);
1562
1538
  return contents;
1563
1539
  };
1564
- const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = async (output, context) => {
1540
+ const de_DeleteElasticsearchServiceRoleCommandError = async (output, context) => {
1565
1541
  const parsedOutput = {
1566
1542
  ...output,
1567
1543
  body: await parseErrorBody(output.body, context),
@@ -1570,13 +1546,13 @@ const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = async
1570
1546
  switch (errorCode) {
1571
1547
  case "BaseException":
1572
1548
  case "com.amazonaws.elasticsearchservice#BaseException":
1573
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1549
+ throw await de_BaseExceptionRes(parsedOutput, context);
1574
1550
  case "InternalException":
1575
1551
  case "com.amazonaws.elasticsearchservice#InternalException":
1576
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1552
+ throw await de_InternalExceptionRes(parsedOutput, context);
1577
1553
  case "ValidationException":
1578
1554
  case "com.amazonaws.elasticsearchservice#ValidationException":
1579
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1555
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1580
1556
  default:
1581
1557
  const parsedBody = parsedOutput.body;
1582
1558
  throwDefaultError({
@@ -1587,20 +1563,20 @@ const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = async
1587
1563
  });
1588
1564
  }
1589
1565
  };
1590
- export const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = async (output, context) => {
1566
+ export const de_DeleteInboundCrossClusterSearchConnectionCommand = async (output, context) => {
1591
1567
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1592
- return deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandError(output, context);
1568
+ return de_DeleteInboundCrossClusterSearchConnectionCommandError(output, context);
1593
1569
  }
1594
1570
  const contents = map({
1595
1571
  $metadata: deserializeMetadata(output),
1596
1572
  });
1597
1573
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1598
1574
  if (data.CrossClusterSearchConnection != null) {
1599
- contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1575
+ contents.CrossClusterSearchConnection = de_InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1600
1576
  }
1601
1577
  return contents;
1602
1578
  };
1603
- const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1579
+ const de_DeleteInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1604
1580
  const parsedOutput = {
1605
1581
  ...output,
1606
1582
  body: await parseErrorBody(output.body, context),
@@ -1609,10 +1585,10 @@ const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandEr
1609
1585
  switch (errorCode) {
1610
1586
  case "DisabledOperationException":
1611
1587
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1612
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1588
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1613
1589
  case "ResourceNotFoundException":
1614
1590
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1615
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1591
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
1592
  default:
1617
1593
  const parsedBody = parsedOutput.body;
1618
1594
  throwDefaultError({
@@ -1623,20 +1599,20 @@ const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandEr
1623
1599
  });
1624
1600
  }
1625
1601
  };
1626
- export const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
1602
+ export const de_DeleteOutboundCrossClusterSearchConnectionCommand = async (output, context) => {
1627
1603
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1628
- return deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandError(output, context);
1604
+ return de_DeleteOutboundCrossClusterSearchConnectionCommandError(output, context);
1629
1605
  }
1630
1606
  const contents = map({
1631
1607
  $metadata: deserializeMetadata(output),
1632
1608
  });
1633
1609
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1634
1610
  if (data.CrossClusterSearchConnection != null) {
1635
- contents.CrossClusterSearchConnection = deserializeAws_restJson1OutboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1611
+ contents.CrossClusterSearchConnection = de_OutboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
1636
1612
  }
1637
1613
  return contents;
1638
1614
  };
1639
- const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1615
+ const de_DeleteOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
1640
1616
  const parsedOutput = {
1641
1617
  ...output,
1642
1618
  body: await parseErrorBody(output.body, context),
@@ -1645,10 +1621,10 @@ const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandE
1645
1621
  switch (errorCode) {
1646
1622
  case "DisabledOperationException":
1647
1623
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1648
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1624
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1649
1625
  case "ResourceNotFoundException":
1650
1626
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1651
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1627
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1652
1628
  default:
1653
1629
  const parsedBody = parsedOutput.body;
1654
1630
  throwDefaultError({
@@ -1659,20 +1635,20 @@ const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandE
1659
1635
  });
1660
1636
  }
1661
1637
  };
1662
- export const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
1638
+ export const de_DeletePackageCommand = async (output, context) => {
1663
1639
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1664
- return deserializeAws_restJson1DeletePackageCommandError(output, context);
1640
+ return de_DeletePackageCommandError(output, context);
1665
1641
  }
1666
1642
  const contents = map({
1667
1643
  $metadata: deserializeMetadata(output),
1668
1644
  });
1669
1645
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1670
1646
  if (data.PackageDetails != null) {
1671
- contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
1647
+ contents.PackageDetails = de_PackageDetails(data.PackageDetails, context);
1672
1648
  }
1673
1649
  return contents;
1674
1650
  };
1675
- const deserializeAws_restJson1DeletePackageCommandError = async (output, context) => {
1651
+ const de_DeletePackageCommandError = async (output, context) => {
1676
1652
  const parsedOutput = {
1677
1653
  ...output,
1678
1654
  body: await parseErrorBody(output.body, context),
@@ -1681,22 +1657,22 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1681
1657
  switch (errorCode) {
1682
1658
  case "AccessDeniedException":
1683
1659
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
1684
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1660
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1685
1661
  case "BaseException":
1686
1662
  case "com.amazonaws.elasticsearchservice#BaseException":
1687
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1663
+ throw await de_BaseExceptionRes(parsedOutput, context);
1688
1664
  case "ConflictException":
1689
1665
  case "com.amazonaws.elasticsearchservice#ConflictException":
1690
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1666
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1691
1667
  case "InternalException":
1692
1668
  case "com.amazonaws.elasticsearchservice#InternalException":
1693
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1669
+ throw await de_InternalExceptionRes(parsedOutput, context);
1694
1670
  case "ResourceNotFoundException":
1695
1671
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1696
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1672
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1697
1673
  case "ValidationException":
1698
1674
  case "com.amazonaws.elasticsearchservice#ValidationException":
1699
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1675
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1700
1676
  default:
1701
1677
  const parsedBody = parsedOutput.body;
1702
1678
  throwDefaultError({
@@ -1707,20 +1683,20 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
1707
1683
  });
1708
1684
  }
1709
1685
  };
1710
- export const deserializeAws_restJson1DeleteVpcEndpointCommand = async (output, context) => {
1686
+ export const de_DeleteVpcEndpointCommand = async (output, context) => {
1711
1687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
- return deserializeAws_restJson1DeleteVpcEndpointCommandError(output, context);
1688
+ return de_DeleteVpcEndpointCommandError(output, context);
1713
1689
  }
1714
1690
  const contents = map({
1715
1691
  $metadata: deserializeMetadata(output),
1716
1692
  });
1717
1693
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1718
1694
  if (data.VpcEndpointSummary != null) {
1719
- contents.VpcEndpointSummary = deserializeAws_restJson1VpcEndpointSummary(data.VpcEndpointSummary, context);
1695
+ contents.VpcEndpointSummary = de_VpcEndpointSummary(data.VpcEndpointSummary, context);
1720
1696
  }
1721
1697
  return contents;
1722
1698
  };
1723
- const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, context) => {
1699
+ const de_DeleteVpcEndpointCommandError = async (output, context) => {
1724
1700
  const parsedOutput = {
1725
1701
  ...output,
1726
1702
  body: await parseErrorBody(output.body, context),
@@ -1729,16 +1705,16 @@ const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, con
1729
1705
  switch (errorCode) {
1730
1706
  case "BaseException":
1731
1707
  case "com.amazonaws.elasticsearchservice#BaseException":
1732
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1708
+ throw await de_BaseExceptionRes(parsedOutput, context);
1733
1709
  case "DisabledOperationException":
1734
1710
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
1735
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
1711
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
1736
1712
  case "InternalException":
1737
1713
  case "com.amazonaws.elasticsearchservice#InternalException":
1738
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1714
+ throw await de_InternalExceptionRes(parsedOutput, context);
1739
1715
  case "ResourceNotFoundException":
1740
1716
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1741
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1717
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1742
1718
  default:
1743
1719
  const parsedBody = parsedOutput.body;
1744
1720
  throwDefaultError({
@@ -1749,23 +1725,23 @@ const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, con
1749
1725
  });
1750
1726
  }
1751
1727
  };
1752
- export const deserializeAws_restJson1DescribeDomainAutoTunesCommand = async (output, context) => {
1728
+ export const de_DescribeDomainAutoTunesCommand = async (output, context) => {
1753
1729
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1754
- return deserializeAws_restJson1DescribeDomainAutoTunesCommandError(output, context);
1730
+ return de_DescribeDomainAutoTunesCommandError(output, context);
1755
1731
  }
1756
1732
  const contents = map({
1757
1733
  $metadata: deserializeMetadata(output),
1758
1734
  });
1759
1735
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1760
1736
  if (data.AutoTunes != null) {
1761
- contents.AutoTunes = deserializeAws_restJson1AutoTuneList(data.AutoTunes, context);
1737
+ contents.AutoTunes = de_AutoTuneList(data.AutoTunes, context);
1762
1738
  }
1763
1739
  if (data.NextToken != null) {
1764
1740
  contents.NextToken = __expectString(data.NextToken);
1765
1741
  }
1766
1742
  return contents;
1767
1743
  };
1768
- const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (output, context) => {
1744
+ const de_DescribeDomainAutoTunesCommandError = async (output, context) => {
1769
1745
  const parsedOutput = {
1770
1746
  ...output,
1771
1747
  body: await parseErrorBody(output.body, context),
@@ -1774,16 +1750,16 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
1774
1750
  switch (errorCode) {
1775
1751
  case "BaseException":
1776
1752
  case "com.amazonaws.elasticsearchservice#BaseException":
1777
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1753
+ throw await de_BaseExceptionRes(parsedOutput, context);
1778
1754
  case "InternalException":
1779
1755
  case "com.amazonaws.elasticsearchservice#InternalException":
1780
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1756
+ throw await de_InternalExceptionRes(parsedOutput, context);
1781
1757
  case "ResourceNotFoundException":
1782
1758
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1783
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1759
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1784
1760
  case "ValidationException":
1785
1761
  case "com.amazonaws.elasticsearchservice#ValidationException":
1786
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1762
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1787
1763
  default:
1788
1764
  const parsedBody = parsedOutput.body;
1789
1765
  throwDefaultError({
@@ -1794,20 +1770,20 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
1794
1770
  });
1795
1771
  }
1796
1772
  };
1797
- export const deserializeAws_restJson1DescribeDomainChangeProgressCommand = async (output, context) => {
1773
+ export const de_DescribeDomainChangeProgressCommand = async (output, context) => {
1798
1774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1799
- return deserializeAws_restJson1DescribeDomainChangeProgressCommandError(output, context);
1775
+ return de_DescribeDomainChangeProgressCommandError(output, context);
1800
1776
  }
1801
1777
  const contents = map({
1802
1778
  $metadata: deserializeMetadata(output),
1803
1779
  });
1804
1780
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1805
1781
  if (data.ChangeProgressStatus != null) {
1806
- contents.ChangeProgressStatus = deserializeAws_restJson1ChangeProgressStatusDetails(data.ChangeProgressStatus, context);
1782
+ contents.ChangeProgressStatus = de_ChangeProgressStatusDetails(data.ChangeProgressStatus, context);
1807
1783
  }
1808
1784
  return contents;
1809
1785
  };
1810
- const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (output, context) => {
1786
+ const de_DescribeDomainChangeProgressCommandError = async (output, context) => {
1811
1787
  const parsedOutput = {
1812
1788
  ...output,
1813
1789
  body: await parseErrorBody(output.body, context),
@@ -1816,16 +1792,16 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
1816
1792
  switch (errorCode) {
1817
1793
  case "BaseException":
1818
1794
  case "com.amazonaws.elasticsearchservice#BaseException":
1819
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1795
+ throw await de_BaseExceptionRes(parsedOutput, context);
1820
1796
  case "InternalException":
1821
1797
  case "com.amazonaws.elasticsearchservice#InternalException":
1822
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1798
+ throw await de_InternalExceptionRes(parsedOutput, context);
1823
1799
  case "ResourceNotFoundException":
1824
1800
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1825
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1801
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1826
1802
  case "ValidationException":
1827
1803
  case "com.amazonaws.elasticsearchservice#ValidationException":
1828
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1804
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1829
1805
  default:
1830
1806
  const parsedBody = parsedOutput.body;
1831
1807
  throwDefaultError({
@@ -1836,20 +1812,20 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
1836
1812
  });
1837
1813
  }
1838
1814
  };
1839
- export const deserializeAws_restJson1DescribeElasticsearchDomainCommand = async (output, context) => {
1815
+ export const de_DescribeElasticsearchDomainCommand = async (output, context) => {
1840
1816
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1841
- return deserializeAws_restJson1DescribeElasticsearchDomainCommandError(output, context);
1817
+ return de_DescribeElasticsearchDomainCommandError(output, context);
1842
1818
  }
1843
1819
  const contents = map({
1844
1820
  $metadata: deserializeMetadata(output),
1845
1821
  });
1846
1822
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1847
1823
  if (data.DomainStatus != null) {
1848
- contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
1824
+ contents.DomainStatus = de_ElasticsearchDomainStatus(data.DomainStatus, context);
1849
1825
  }
1850
1826
  return contents;
1851
1827
  };
1852
- const deserializeAws_restJson1DescribeElasticsearchDomainCommandError = async (output, context) => {
1828
+ const de_DescribeElasticsearchDomainCommandError = async (output, context) => {
1853
1829
  const parsedOutput = {
1854
1830
  ...output,
1855
1831
  body: await parseErrorBody(output.body, context),
@@ -1858,16 +1834,16 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommandError = async (o
1858
1834
  switch (errorCode) {
1859
1835
  case "BaseException":
1860
1836
  case "com.amazonaws.elasticsearchservice#BaseException":
1861
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1837
+ throw await de_BaseExceptionRes(parsedOutput, context);
1862
1838
  case "InternalException":
1863
1839
  case "com.amazonaws.elasticsearchservice#InternalException":
1864
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1840
+ throw await de_InternalExceptionRes(parsedOutput, context);
1865
1841
  case "ResourceNotFoundException":
1866
1842
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1867
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1843
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1868
1844
  case "ValidationException":
1869
1845
  case "com.amazonaws.elasticsearchservice#ValidationException":
1870
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1846
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1871
1847
  default:
1872
1848
  const parsedBody = parsedOutput.body;
1873
1849
  throwDefaultError({
@@ -1878,20 +1854,20 @@ const deserializeAws_restJson1DescribeElasticsearchDomainCommandError = async (o
1878
1854
  });
1879
1855
  }
1880
1856
  };
1881
- export const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (output, context) => {
1857
+ export const de_DescribeElasticsearchDomainConfigCommand = async (output, context) => {
1882
1858
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1883
- return deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError(output, context);
1859
+ return de_DescribeElasticsearchDomainConfigCommandError(output, context);
1884
1860
  }
1885
1861
  const contents = map({
1886
1862
  $metadata: deserializeMetadata(output),
1887
1863
  });
1888
1864
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1889
1865
  if (data.DomainConfig != null) {
1890
- contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
1866
+ contents.DomainConfig = de_ElasticsearchDomainConfig(data.DomainConfig, context);
1891
1867
  }
1892
1868
  return contents;
1893
1869
  };
1894
- const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = async (output, context) => {
1870
+ const de_DescribeElasticsearchDomainConfigCommandError = async (output, context) => {
1895
1871
  const parsedOutput = {
1896
1872
  ...output,
1897
1873
  body: await parseErrorBody(output.body, context),
@@ -1900,16 +1876,16 @@ const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = as
1900
1876
  switch (errorCode) {
1901
1877
  case "BaseException":
1902
1878
  case "com.amazonaws.elasticsearchservice#BaseException":
1903
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1879
+ throw await de_BaseExceptionRes(parsedOutput, context);
1904
1880
  case "InternalException":
1905
1881
  case "com.amazonaws.elasticsearchservice#InternalException":
1906
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1882
+ throw await de_InternalExceptionRes(parsedOutput, context);
1907
1883
  case "ResourceNotFoundException":
1908
1884
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1909
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1885
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1910
1886
  case "ValidationException":
1911
1887
  case "com.amazonaws.elasticsearchservice#ValidationException":
1912
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1888
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1913
1889
  default:
1914
1890
  const parsedBody = parsedOutput.body;
1915
1891
  throwDefaultError({
@@ -1920,20 +1896,20 @@ const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = as
1920
1896
  });
1921
1897
  }
1922
1898
  };
1923
- export const deserializeAws_restJson1DescribeElasticsearchDomainsCommand = async (output, context) => {
1899
+ export const de_DescribeElasticsearchDomainsCommand = async (output, context) => {
1924
1900
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1925
- return deserializeAws_restJson1DescribeElasticsearchDomainsCommandError(output, context);
1901
+ return de_DescribeElasticsearchDomainsCommandError(output, context);
1926
1902
  }
1927
1903
  const contents = map({
1928
1904
  $metadata: deserializeMetadata(output),
1929
1905
  });
1930
1906
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1931
1907
  if (data.DomainStatusList != null) {
1932
- contents.DomainStatusList = deserializeAws_restJson1ElasticsearchDomainStatusList(data.DomainStatusList, context);
1908
+ contents.DomainStatusList = de_ElasticsearchDomainStatusList(data.DomainStatusList, context);
1933
1909
  }
1934
1910
  return contents;
1935
1911
  };
1936
- const deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = async (output, context) => {
1912
+ const de_DescribeElasticsearchDomainsCommandError = async (output, context) => {
1937
1913
  const parsedOutput = {
1938
1914
  ...output,
1939
1915
  body: await parseErrorBody(output.body, context),
@@ -1942,13 +1918,13 @@ const deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = async (
1942
1918
  switch (errorCode) {
1943
1919
  case "BaseException":
1944
1920
  case "com.amazonaws.elasticsearchservice#BaseException":
1945
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1921
+ throw await de_BaseExceptionRes(parsedOutput, context);
1946
1922
  case "InternalException":
1947
1923
  case "com.amazonaws.elasticsearchservice#InternalException":
1948
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1924
+ throw await de_InternalExceptionRes(parsedOutput, context);
1949
1925
  case "ValidationException":
1950
1926
  case "com.amazonaws.elasticsearchservice#ValidationException":
1951
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1927
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1952
1928
  default:
1953
1929
  const parsedBody = parsedOutput.body;
1954
1930
  throwDefaultError({
@@ -1959,20 +1935,20 @@ const deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = async (
1959
1935
  });
1960
1936
  }
1961
1937
  };
1962
- export const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = async (output, context) => {
1938
+ export const de_DescribeElasticsearchInstanceTypeLimitsCommand = async (output, context) => {
1963
1939
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1964
- return deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError(output, context);
1940
+ return de_DescribeElasticsearchInstanceTypeLimitsCommandError(output, context);
1965
1941
  }
1966
1942
  const contents = map({
1967
1943
  $metadata: deserializeMetadata(output),
1968
1944
  });
1969
1945
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1970
1946
  if (data.LimitsByRole != null) {
1971
- contents.LimitsByRole = deserializeAws_restJson1LimitsByRole(data.LimitsByRole, context);
1947
+ contents.LimitsByRole = de_LimitsByRole(data.LimitsByRole, context);
1972
1948
  }
1973
1949
  return contents;
1974
1950
  };
1975
- const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError = async (output, context) => {
1951
+ const de_DescribeElasticsearchInstanceTypeLimitsCommandError = async (output, context) => {
1976
1952
  const parsedOutput = {
1977
1953
  ...output,
1978
1954
  body: await parseErrorBody(output.body, context),
@@ -1981,22 +1957,22 @@ const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandErro
1981
1957
  switch (errorCode) {
1982
1958
  case "BaseException":
1983
1959
  case "com.amazonaws.elasticsearchservice#BaseException":
1984
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
1960
+ throw await de_BaseExceptionRes(parsedOutput, context);
1985
1961
  case "InternalException":
1986
1962
  case "com.amazonaws.elasticsearchservice#InternalException":
1987
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
1963
+ throw await de_InternalExceptionRes(parsedOutput, context);
1988
1964
  case "InvalidTypeException":
1989
1965
  case "com.amazonaws.elasticsearchservice#InvalidTypeException":
1990
- throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
1966
+ throw await de_InvalidTypeExceptionRes(parsedOutput, context);
1991
1967
  case "LimitExceededException":
1992
1968
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
1993
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1969
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1994
1970
  case "ResourceNotFoundException":
1995
1971
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
1996
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1972
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1997
1973
  case "ValidationException":
1998
1974
  case "com.amazonaws.elasticsearchservice#ValidationException":
1999
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1975
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2000
1976
  default:
2001
1977
  const parsedBody = parsedOutput.body;
2002
1978
  throwDefaultError({
@@ -2007,23 +1983,23 @@ const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandErro
2007
1983
  });
2008
1984
  }
2009
1985
  };
2010
- export const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = async (output, context) => {
1986
+ export const de_DescribeInboundCrossClusterSearchConnectionsCommand = async (output, context) => {
2011
1987
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2012
- return deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandError(output, context);
1988
+ return de_DescribeInboundCrossClusterSearchConnectionsCommandError(output, context);
2013
1989
  }
2014
1990
  const contents = map({
2015
1991
  $metadata: deserializeMetadata(output),
2016
1992
  });
2017
1993
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2018
1994
  if (data.CrossClusterSearchConnections != null) {
2019
- contents.CrossClusterSearchConnections = deserializeAws_restJson1InboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
1995
+ contents.CrossClusterSearchConnections = de_InboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2020
1996
  }
2021
1997
  if (data.NextToken != null) {
2022
1998
  contents.NextToken = __expectString(data.NextToken);
2023
1999
  }
2024
2000
  return contents;
2025
2001
  };
2026
- const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
2002
+ const de_DescribeInboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
2027
2003
  const parsedOutput = {
2028
2004
  ...output,
2029
2005
  body: await parseErrorBody(output.body, context),
@@ -2032,10 +2008,10 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2032
2008
  switch (errorCode) {
2033
2009
  case "DisabledOperationException":
2034
2010
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2035
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2011
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2036
2012
  case "InvalidPaginationTokenException":
2037
2013
  case "com.amazonaws.elasticsearchservice#InvalidPaginationTokenException":
2038
- throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
2014
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
2039
2015
  default:
2040
2016
  const parsedBody = parsedOutput.body;
2041
2017
  throwDefaultError({
@@ -2046,23 +2022,23 @@ const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComman
2046
2022
  });
2047
2023
  }
2048
2024
  };
2049
- export const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = async (output, context) => {
2025
+ export const de_DescribeOutboundCrossClusterSearchConnectionsCommand = async (output, context) => {
2050
2026
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
- return deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommandError(output, context);
2027
+ return de_DescribeOutboundCrossClusterSearchConnectionsCommandError(output, context);
2052
2028
  }
2053
2029
  const contents = map({
2054
2030
  $metadata: deserializeMetadata(output),
2055
2031
  });
2056
2032
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2057
2033
  if (data.CrossClusterSearchConnections != null) {
2058
- contents.CrossClusterSearchConnections = deserializeAws_restJson1OutboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2034
+ contents.CrossClusterSearchConnections = de_OutboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
2059
2035
  }
2060
2036
  if (data.NextToken != null) {
2061
2037
  contents.NextToken = __expectString(data.NextToken);
2062
2038
  }
2063
2039
  return contents;
2064
2040
  };
2065
- const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
2041
+ const de_DescribeOutboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
2066
2042
  const parsedOutput = {
2067
2043
  ...output,
2068
2044
  body: await parseErrorBody(output.body, context),
@@ -2071,10 +2047,10 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2071
2047
  switch (errorCode) {
2072
2048
  case "DisabledOperationException":
2073
2049
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2074
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2050
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2075
2051
  case "InvalidPaginationTokenException":
2076
2052
  case "com.amazonaws.elasticsearchservice#InvalidPaginationTokenException":
2077
- throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
2053
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
2078
2054
  default:
2079
2055
  const parsedBody = parsedOutput.body;
2080
2056
  throwDefaultError({
@@ -2085,9 +2061,9 @@ const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsComma
2085
2061
  });
2086
2062
  }
2087
2063
  };
2088
- export const deserializeAws_restJson1DescribePackagesCommand = async (output, context) => {
2064
+ export const de_DescribePackagesCommand = async (output, context) => {
2089
2065
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2090
- return deserializeAws_restJson1DescribePackagesCommandError(output, context);
2066
+ return de_DescribePackagesCommandError(output, context);
2091
2067
  }
2092
2068
  const contents = map({
2093
2069
  $metadata: deserializeMetadata(output),
@@ -2097,11 +2073,11 @@ export const deserializeAws_restJson1DescribePackagesCommand = async (output, co
2097
2073
  contents.NextToken = __expectString(data.NextToken);
2098
2074
  }
2099
2075
  if (data.PackageDetailsList != null) {
2100
- contents.PackageDetailsList = deserializeAws_restJson1PackageDetailsList(data.PackageDetailsList, context);
2076
+ contents.PackageDetailsList = de_PackageDetailsList(data.PackageDetailsList, context);
2101
2077
  }
2102
2078
  return contents;
2103
2079
  };
2104
- const deserializeAws_restJson1DescribePackagesCommandError = async (output, context) => {
2080
+ const de_DescribePackagesCommandError = async (output, context) => {
2105
2081
  const parsedOutput = {
2106
2082
  ...output,
2107
2083
  body: await parseErrorBody(output.body, context),
@@ -2110,19 +2086,19 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
2110
2086
  switch (errorCode) {
2111
2087
  case "AccessDeniedException":
2112
2088
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2113
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2089
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2114
2090
  case "BaseException":
2115
2091
  case "com.amazonaws.elasticsearchservice#BaseException":
2116
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2092
+ throw await de_BaseExceptionRes(parsedOutput, context);
2117
2093
  case "InternalException":
2118
2094
  case "com.amazonaws.elasticsearchservice#InternalException":
2119
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2095
+ throw await de_InternalExceptionRes(parsedOutput, context);
2120
2096
  case "ResourceNotFoundException":
2121
2097
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2122
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2098
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2123
2099
  case "ValidationException":
2124
2100
  case "com.amazonaws.elasticsearchservice#ValidationException":
2125
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2101
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2126
2102
  default:
2127
2103
  const parsedBody = parsedOutput.body;
2128
2104
  throwDefaultError({
@@ -2133,9 +2109,9 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
2133
2109
  });
2134
2110
  }
2135
2111
  };
2136
- export const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = async (output, context) => {
2112
+ export const de_DescribeReservedElasticsearchInstanceOfferingsCommand = async (output, context) => {
2137
2113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
- return deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommandError(output, context);
2114
+ return de_DescribeReservedElasticsearchInstanceOfferingsCommandError(output, context);
2139
2115
  }
2140
2116
  const contents = map({
2141
2117
  $metadata: deserializeMetadata(output),
@@ -2145,11 +2121,11 @@ export const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferi
2145
2121
  contents.NextToken = __expectString(data.NextToken);
2146
2122
  }
2147
2123
  if (data.ReservedElasticsearchInstanceOfferings != null) {
2148
- contents.ReservedElasticsearchInstanceOfferings = deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList(data.ReservedElasticsearchInstanceOfferings, context);
2124
+ contents.ReservedElasticsearchInstanceOfferings = de_ReservedElasticsearchInstanceOfferingList(data.ReservedElasticsearchInstanceOfferings, context);
2149
2125
  }
2150
2126
  return contents;
2151
2127
  };
2152
- const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommandError = async (output, context) => {
2128
+ const de_DescribeReservedElasticsearchInstanceOfferingsCommandError = async (output, context) => {
2153
2129
  const parsedOutput = {
2154
2130
  ...output,
2155
2131
  body: await parseErrorBody(output.body, context),
@@ -2158,16 +2134,16 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2158
2134
  switch (errorCode) {
2159
2135
  case "DisabledOperationException":
2160
2136
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2161
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2137
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2162
2138
  case "InternalException":
2163
2139
  case "com.amazonaws.elasticsearchservice#InternalException":
2164
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2140
+ throw await de_InternalExceptionRes(parsedOutput, context);
2165
2141
  case "ResourceNotFoundException":
2166
2142
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2167
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2143
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2168
2144
  case "ValidationException":
2169
2145
  case "com.amazonaws.elasticsearchservice#ValidationException":
2170
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2146
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2171
2147
  default:
2172
2148
  const parsedBody = parsedOutput.body;
2173
2149
  throwDefaultError({
@@ -2178,9 +2154,9 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
2178
2154
  });
2179
2155
  }
2180
2156
  };
2181
- export const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = async (output, context) => {
2157
+ export const de_DescribeReservedElasticsearchInstancesCommand = async (output, context) => {
2182
2158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2183
- return deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError(output, context);
2159
+ return de_DescribeReservedElasticsearchInstancesCommandError(output, context);
2184
2160
  }
2185
2161
  const contents = map({
2186
2162
  $metadata: deserializeMetadata(output),
@@ -2190,11 +2166,11 @@ export const deserializeAws_restJson1DescribeReservedElasticsearchInstancesComma
2190
2166
  contents.NextToken = __expectString(data.NextToken);
2191
2167
  }
2192
2168
  if (data.ReservedElasticsearchInstances != null) {
2193
- contents.ReservedElasticsearchInstances = deserializeAws_restJson1ReservedElasticsearchInstanceList(data.ReservedElasticsearchInstances, context);
2169
+ contents.ReservedElasticsearchInstances = de_ReservedElasticsearchInstanceList(data.ReservedElasticsearchInstances, context);
2194
2170
  }
2195
2171
  return contents;
2196
2172
  };
2197
- const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError = async (output, context) => {
2173
+ const de_DescribeReservedElasticsearchInstancesCommandError = async (output, context) => {
2198
2174
  const parsedOutput = {
2199
2175
  ...output,
2200
2176
  body: await parseErrorBody(output.body, context),
@@ -2203,16 +2179,16 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError
2203
2179
  switch (errorCode) {
2204
2180
  case "DisabledOperationException":
2205
2181
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2206
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2182
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2207
2183
  case "InternalException":
2208
2184
  case "com.amazonaws.elasticsearchservice#InternalException":
2209
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2185
+ throw await de_InternalExceptionRes(parsedOutput, context);
2210
2186
  case "ResourceNotFoundException":
2211
2187
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2212
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2188
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2213
2189
  case "ValidationException":
2214
2190
  case "com.amazonaws.elasticsearchservice#ValidationException":
2215
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2191
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2216
2192
  default:
2217
2193
  const parsedBody = parsedOutput.body;
2218
2194
  throwDefaultError({
@@ -2223,23 +2199,23 @@ const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError
2223
2199
  });
2224
2200
  }
2225
2201
  };
2226
- export const deserializeAws_restJson1DescribeVpcEndpointsCommand = async (output, context) => {
2202
+ export const de_DescribeVpcEndpointsCommand = async (output, context) => {
2227
2203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2228
- return deserializeAws_restJson1DescribeVpcEndpointsCommandError(output, context);
2204
+ return de_DescribeVpcEndpointsCommandError(output, context);
2229
2205
  }
2230
2206
  const contents = map({
2231
2207
  $metadata: deserializeMetadata(output),
2232
2208
  });
2233
2209
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2234
2210
  if (data.VpcEndpointErrors != null) {
2235
- contents.VpcEndpointErrors = deserializeAws_restJson1VpcEndpointErrorList(data.VpcEndpointErrors, context);
2211
+ contents.VpcEndpointErrors = de_VpcEndpointErrorList(data.VpcEndpointErrors, context);
2236
2212
  }
2237
2213
  if (data.VpcEndpoints != null) {
2238
- contents.VpcEndpoints = deserializeAws_restJson1VpcEndpoints(data.VpcEndpoints, context);
2214
+ contents.VpcEndpoints = de_VpcEndpoints(data.VpcEndpoints, context);
2239
2215
  }
2240
2216
  return contents;
2241
2217
  };
2242
- const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output, context) => {
2218
+ const de_DescribeVpcEndpointsCommandError = async (output, context) => {
2243
2219
  const parsedOutput = {
2244
2220
  ...output,
2245
2221
  body: await parseErrorBody(output.body, context),
@@ -2248,16 +2224,16 @@ const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output,
2248
2224
  switch (errorCode) {
2249
2225
  case "BaseException":
2250
2226
  case "com.amazonaws.elasticsearchservice#BaseException":
2251
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2227
+ throw await de_BaseExceptionRes(parsedOutput, context);
2252
2228
  case "DisabledOperationException":
2253
2229
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2254
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2230
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2255
2231
  case "InternalException":
2256
2232
  case "com.amazonaws.elasticsearchservice#InternalException":
2257
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2233
+ throw await de_InternalExceptionRes(parsedOutput, context);
2258
2234
  case "ValidationException":
2259
2235
  case "com.amazonaws.elasticsearchservice#ValidationException":
2260
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2236
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2261
2237
  default:
2262
2238
  const parsedBody = parsedOutput.body;
2263
2239
  throwDefaultError({
@@ -2268,20 +2244,20 @@ const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output,
2268
2244
  });
2269
2245
  }
2270
2246
  };
2271
- export const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
2247
+ export const de_DissociatePackageCommand = async (output, context) => {
2272
2248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2273
- return deserializeAws_restJson1DissociatePackageCommandError(output, context);
2249
+ return de_DissociatePackageCommandError(output, context);
2274
2250
  }
2275
2251
  const contents = map({
2276
2252
  $metadata: deserializeMetadata(output),
2277
2253
  });
2278
2254
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2279
2255
  if (data.DomainPackageDetails != null) {
2280
- contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
2256
+ contents.DomainPackageDetails = de_DomainPackageDetails(data.DomainPackageDetails, context);
2281
2257
  }
2282
2258
  return contents;
2283
2259
  };
2284
- const deserializeAws_restJson1DissociatePackageCommandError = async (output, context) => {
2260
+ const de_DissociatePackageCommandError = async (output, context) => {
2285
2261
  const parsedOutput = {
2286
2262
  ...output,
2287
2263
  body: await parseErrorBody(output.body, context),
@@ -2290,22 +2266,22 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
2290
2266
  switch (errorCode) {
2291
2267
  case "AccessDeniedException":
2292
2268
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2293
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2269
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2294
2270
  case "BaseException":
2295
2271
  case "com.amazonaws.elasticsearchservice#BaseException":
2296
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2272
+ throw await de_BaseExceptionRes(parsedOutput, context);
2297
2273
  case "ConflictException":
2298
2274
  case "com.amazonaws.elasticsearchservice#ConflictException":
2299
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2275
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2300
2276
  case "InternalException":
2301
2277
  case "com.amazonaws.elasticsearchservice#InternalException":
2302
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2278
+ throw await de_InternalExceptionRes(parsedOutput, context);
2303
2279
  case "ResourceNotFoundException":
2304
2280
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2305
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2281
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2306
2282
  case "ValidationException":
2307
2283
  case "com.amazonaws.elasticsearchservice#ValidationException":
2308
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2284
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2309
2285
  default:
2310
2286
  const parsedBody = parsedOutput.body;
2311
2287
  throwDefaultError({
@@ -2316,20 +2292,20 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
2316
2292
  });
2317
2293
  }
2318
2294
  };
2319
- export const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async (output, context) => {
2295
+ export const de_GetCompatibleElasticsearchVersionsCommand = async (output, context) => {
2320
2296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2321
- return deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError(output, context);
2297
+ return de_GetCompatibleElasticsearchVersionsCommandError(output, context);
2322
2298
  }
2323
2299
  const contents = map({
2324
2300
  $metadata: deserializeMetadata(output),
2325
2301
  });
2326
2302
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2327
2303
  if (data.CompatibleElasticsearchVersions != null) {
2328
- contents.CompatibleElasticsearchVersions = deserializeAws_restJson1CompatibleElasticsearchVersionsList(data.CompatibleElasticsearchVersions, context);
2304
+ contents.CompatibleElasticsearchVersions = de_CompatibleElasticsearchVersionsList(data.CompatibleElasticsearchVersions, context);
2329
2305
  }
2330
2306
  return contents;
2331
2307
  };
2332
- const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = async (output, context) => {
2308
+ const de_GetCompatibleElasticsearchVersionsCommandError = async (output, context) => {
2333
2309
  const parsedOutput = {
2334
2310
  ...output,
2335
2311
  body: await parseErrorBody(output.body, context),
@@ -2338,19 +2314,19 @@ const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = a
2338
2314
  switch (errorCode) {
2339
2315
  case "BaseException":
2340
2316
  case "com.amazonaws.elasticsearchservice#BaseException":
2341
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2317
+ throw await de_BaseExceptionRes(parsedOutput, context);
2342
2318
  case "DisabledOperationException":
2343
2319
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2344
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2320
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2345
2321
  case "InternalException":
2346
2322
  case "com.amazonaws.elasticsearchservice#InternalException":
2347
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2323
+ throw await de_InternalExceptionRes(parsedOutput, context);
2348
2324
  case "ResourceNotFoundException":
2349
2325
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2350
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2326
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2351
2327
  case "ValidationException":
2352
2328
  case "com.amazonaws.elasticsearchservice#ValidationException":
2353
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2329
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2354
2330
  default:
2355
2331
  const parsedBody = parsedOutput.body;
2356
2332
  throwDefaultError({
@@ -2361,9 +2337,9 @@ const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = a
2361
2337
  });
2362
2338
  }
2363
2339
  };
2364
- export const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (output, context) => {
2340
+ export const de_GetPackageVersionHistoryCommand = async (output, context) => {
2365
2341
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2366
- return deserializeAws_restJson1GetPackageVersionHistoryCommandError(output, context);
2342
+ return de_GetPackageVersionHistoryCommandError(output, context);
2367
2343
  }
2368
2344
  const contents = map({
2369
2345
  $metadata: deserializeMetadata(output),
@@ -2376,11 +2352,11 @@ export const deserializeAws_restJson1GetPackageVersionHistoryCommand = async (ou
2376
2352
  contents.PackageID = __expectString(data.PackageID);
2377
2353
  }
2378
2354
  if (data.PackageVersionHistoryList != null) {
2379
- contents.PackageVersionHistoryList = deserializeAws_restJson1PackageVersionHistoryList(data.PackageVersionHistoryList, context);
2355
+ contents.PackageVersionHistoryList = de_PackageVersionHistoryList(data.PackageVersionHistoryList, context);
2380
2356
  }
2381
2357
  return contents;
2382
2358
  };
2383
- const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (output, context) => {
2359
+ const de_GetPackageVersionHistoryCommandError = async (output, context) => {
2384
2360
  const parsedOutput = {
2385
2361
  ...output,
2386
2362
  body: await parseErrorBody(output.body, context),
@@ -2389,19 +2365,19 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
2389
2365
  switch (errorCode) {
2390
2366
  case "AccessDeniedException":
2391
2367
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2392
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2368
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2393
2369
  case "BaseException":
2394
2370
  case "com.amazonaws.elasticsearchservice#BaseException":
2395
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2371
+ throw await de_BaseExceptionRes(parsedOutput, context);
2396
2372
  case "InternalException":
2397
2373
  case "com.amazonaws.elasticsearchservice#InternalException":
2398
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2374
+ throw await de_InternalExceptionRes(parsedOutput, context);
2399
2375
  case "ResourceNotFoundException":
2400
2376
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2401
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2377
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2402
2378
  case "ValidationException":
2403
2379
  case "com.amazonaws.elasticsearchservice#ValidationException":
2404
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2380
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2405
2381
  default:
2406
2382
  const parsedBody = parsedOutput.body;
2407
2383
  throwDefaultError({
@@ -2412,9 +2388,9 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
2412
2388
  });
2413
2389
  }
2414
2390
  };
2415
- export const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, context) => {
2391
+ export const de_GetUpgradeHistoryCommand = async (output, context) => {
2416
2392
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2417
- return deserializeAws_restJson1GetUpgradeHistoryCommandError(output, context);
2393
+ return de_GetUpgradeHistoryCommandError(output, context);
2418
2394
  }
2419
2395
  const contents = map({
2420
2396
  $metadata: deserializeMetadata(output),
@@ -2424,11 +2400,11 @@ export const deserializeAws_restJson1GetUpgradeHistoryCommand = async (output, c
2424
2400
  contents.NextToken = __expectString(data.NextToken);
2425
2401
  }
2426
2402
  if (data.UpgradeHistories != null) {
2427
- contents.UpgradeHistories = deserializeAws_restJson1UpgradeHistoryList(data.UpgradeHistories, context);
2403
+ contents.UpgradeHistories = de_UpgradeHistoryList(data.UpgradeHistories, context);
2428
2404
  }
2429
2405
  return contents;
2430
2406
  };
2431
- const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, context) => {
2407
+ const de_GetUpgradeHistoryCommandError = async (output, context) => {
2432
2408
  const parsedOutput = {
2433
2409
  ...output,
2434
2410
  body: await parseErrorBody(output.body, context),
@@ -2437,19 +2413,19 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
2437
2413
  switch (errorCode) {
2438
2414
  case "BaseException":
2439
2415
  case "com.amazonaws.elasticsearchservice#BaseException":
2440
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2416
+ throw await de_BaseExceptionRes(parsedOutput, context);
2441
2417
  case "DisabledOperationException":
2442
2418
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2443
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2419
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2444
2420
  case "InternalException":
2445
2421
  case "com.amazonaws.elasticsearchservice#InternalException":
2446
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2422
+ throw await de_InternalExceptionRes(parsedOutput, context);
2447
2423
  case "ResourceNotFoundException":
2448
2424
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2449
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2425
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2450
2426
  case "ValidationException":
2451
2427
  case "com.amazonaws.elasticsearchservice#ValidationException":
2452
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2428
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2453
2429
  default:
2454
2430
  const parsedBody = parsedOutput.body;
2455
2431
  throwDefaultError({
@@ -2460,9 +2436,9 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
2460
2436
  });
2461
2437
  }
2462
2438
  };
2463
- export const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
2439
+ export const de_GetUpgradeStatusCommand = async (output, context) => {
2464
2440
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2465
- return deserializeAws_restJson1GetUpgradeStatusCommandError(output, context);
2441
+ return de_GetUpgradeStatusCommandError(output, context);
2466
2442
  }
2467
2443
  const contents = map({
2468
2444
  $metadata: deserializeMetadata(output),
@@ -2479,7 +2455,7 @@ export const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, co
2479
2455
  }
2480
2456
  return contents;
2481
2457
  };
2482
- const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
2458
+ const de_GetUpgradeStatusCommandError = async (output, context) => {
2483
2459
  const parsedOutput = {
2484
2460
  ...output,
2485
2461
  body: await parseErrorBody(output.body, context),
@@ -2488,19 +2464,19 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2488
2464
  switch (errorCode) {
2489
2465
  case "BaseException":
2490
2466
  case "com.amazonaws.elasticsearchservice#BaseException":
2491
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2467
+ throw await de_BaseExceptionRes(parsedOutput, context);
2492
2468
  case "DisabledOperationException":
2493
2469
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2494
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2470
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2495
2471
  case "InternalException":
2496
2472
  case "com.amazonaws.elasticsearchservice#InternalException":
2497
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2473
+ throw await de_InternalExceptionRes(parsedOutput, context);
2498
2474
  case "ResourceNotFoundException":
2499
2475
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2500
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2476
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2501
2477
  case "ValidationException":
2502
2478
  case "com.amazonaws.elasticsearchservice#ValidationException":
2503
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2479
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2504
2480
  default:
2505
2481
  const parsedBody = parsedOutput.body;
2506
2482
  throwDefaultError({
@@ -2511,20 +2487,20 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
2511
2487
  });
2512
2488
  }
2513
2489
  };
2514
- export const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
2490
+ export const de_ListDomainNamesCommand = async (output, context) => {
2515
2491
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2516
- return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
2492
+ return de_ListDomainNamesCommandError(output, context);
2517
2493
  }
2518
2494
  const contents = map({
2519
2495
  $metadata: deserializeMetadata(output),
2520
2496
  });
2521
2497
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2522
2498
  if (data.DomainNames != null) {
2523
- contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
2499
+ contents.DomainNames = de_DomainInfoList(data.DomainNames, context);
2524
2500
  }
2525
2501
  return contents;
2526
2502
  };
2527
- const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
2503
+ const de_ListDomainNamesCommandError = async (output, context) => {
2528
2504
  const parsedOutput = {
2529
2505
  ...output,
2530
2506
  body: await parseErrorBody(output.body, context),
@@ -2533,10 +2509,10 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2533
2509
  switch (errorCode) {
2534
2510
  case "BaseException":
2535
2511
  case "com.amazonaws.elasticsearchservice#BaseException":
2536
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2512
+ throw await de_BaseExceptionRes(parsedOutput, context);
2537
2513
  case "ValidationException":
2538
2514
  case "com.amazonaws.elasticsearchservice#ValidationException":
2539
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2515
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2540
2516
  default:
2541
2517
  const parsedBody = parsedOutput.body;
2542
2518
  throwDefaultError({
@@ -2547,23 +2523,23 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
2547
2523
  });
2548
2524
  }
2549
2525
  };
2550
- export const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
2526
+ export const de_ListDomainsForPackageCommand = async (output, context) => {
2551
2527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2552
- return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
2528
+ return de_ListDomainsForPackageCommandError(output, context);
2553
2529
  }
2554
2530
  const contents = map({
2555
2531
  $metadata: deserializeMetadata(output),
2556
2532
  });
2557
2533
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2558
2534
  if (data.DomainPackageDetailsList != null) {
2559
- contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2535
+ contents.DomainPackageDetailsList = de_DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2560
2536
  }
2561
2537
  if (data.NextToken != null) {
2562
2538
  contents.NextToken = __expectString(data.NextToken);
2563
2539
  }
2564
2540
  return contents;
2565
2541
  };
2566
- const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
2542
+ const de_ListDomainsForPackageCommandError = async (output, context) => {
2567
2543
  const parsedOutput = {
2568
2544
  ...output,
2569
2545
  body: await parseErrorBody(output.body, context),
@@ -2572,19 +2548,19 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
2572
2548
  switch (errorCode) {
2573
2549
  case "AccessDeniedException":
2574
2550
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2575
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2551
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2576
2552
  case "BaseException":
2577
2553
  case "com.amazonaws.elasticsearchservice#BaseException":
2578
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2554
+ throw await de_BaseExceptionRes(parsedOutput, context);
2579
2555
  case "InternalException":
2580
2556
  case "com.amazonaws.elasticsearchservice#InternalException":
2581
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2557
+ throw await de_InternalExceptionRes(parsedOutput, context);
2582
2558
  case "ResourceNotFoundException":
2583
2559
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2584
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2560
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2585
2561
  case "ValidationException":
2586
2562
  case "com.amazonaws.elasticsearchservice#ValidationException":
2587
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2563
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2588
2564
  default:
2589
2565
  const parsedBody = parsedOutput.body;
2590
2566
  throwDefaultError({
@@ -2595,23 +2571,23 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
2595
2571
  });
2596
2572
  }
2597
2573
  };
2598
- export const deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (output, context) => {
2574
+ export const de_ListElasticsearchInstanceTypesCommand = async (output, context) => {
2599
2575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2600
- return deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError(output, context);
2576
+ return de_ListElasticsearchInstanceTypesCommandError(output, context);
2601
2577
  }
2602
2578
  const contents = map({
2603
2579
  $metadata: deserializeMetadata(output),
2604
2580
  });
2605
2581
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2606
2582
  if (data.ElasticsearchInstanceTypes != null) {
2607
- contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
2583
+ contents.ElasticsearchInstanceTypes = de_ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
2608
2584
  }
2609
2585
  if (data.NextToken != null) {
2610
2586
  contents.NextToken = __expectString(data.NextToken);
2611
2587
  }
2612
2588
  return contents;
2613
2589
  };
2614
- const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async (output, context) => {
2590
+ const de_ListElasticsearchInstanceTypesCommandError = async (output, context) => {
2615
2591
  const parsedOutput = {
2616
2592
  ...output,
2617
2593
  body: await parseErrorBody(output.body, context),
@@ -2620,16 +2596,16 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async
2620
2596
  switch (errorCode) {
2621
2597
  case "BaseException":
2622
2598
  case "com.amazonaws.elasticsearchservice#BaseException":
2623
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2599
+ throw await de_BaseExceptionRes(parsedOutput, context);
2624
2600
  case "InternalException":
2625
2601
  case "com.amazonaws.elasticsearchservice#InternalException":
2626
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2602
+ throw await de_InternalExceptionRes(parsedOutput, context);
2627
2603
  case "ResourceNotFoundException":
2628
2604
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2629
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2605
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2630
2606
  case "ValidationException":
2631
2607
  case "com.amazonaws.elasticsearchservice#ValidationException":
2632
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2608
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2633
2609
  default:
2634
2610
  const parsedBody = parsedOutput.body;
2635
2611
  throwDefaultError({
@@ -2640,23 +2616,23 @@ const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async
2640
2616
  });
2641
2617
  }
2642
2618
  };
2643
- export const deserializeAws_restJson1ListElasticsearchVersionsCommand = async (output, context) => {
2619
+ export const de_ListElasticsearchVersionsCommand = async (output, context) => {
2644
2620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2645
- return deserializeAws_restJson1ListElasticsearchVersionsCommandError(output, context);
2621
+ return de_ListElasticsearchVersionsCommandError(output, context);
2646
2622
  }
2647
2623
  const contents = map({
2648
2624
  $metadata: deserializeMetadata(output),
2649
2625
  });
2650
2626
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2651
2627
  if (data.ElasticsearchVersions != null) {
2652
- contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
2628
+ contents.ElasticsearchVersions = de_ElasticsearchVersionList(data.ElasticsearchVersions, context);
2653
2629
  }
2654
2630
  if (data.NextToken != null) {
2655
2631
  contents.NextToken = __expectString(data.NextToken);
2656
2632
  }
2657
2633
  return contents;
2658
2634
  };
2659
- const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (output, context) => {
2635
+ const de_ListElasticsearchVersionsCommandError = async (output, context) => {
2660
2636
  const parsedOutput = {
2661
2637
  ...output,
2662
2638
  body: await parseErrorBody(output.body, context),
@@ -2665,16 +2641,16 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (out
2665
2641
  switch (errorCode) {
2666
2642
  case "BaseException":
2667
2643
  case "com.amazonaws.elasticsearchservice#BaseException":
2668
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2644
+ throw await de_BaseExceptionRes(parsedOutput, context);
2669
2645
  case "InternalException":
2670
2646
  case "com.amazonaws.elasticsearchservice#InternalException":
2671
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2647
+ throw await de_InternalExceptionRes(parsedOutput, context);
2672
2648
  case "ResourceNotFoundException":
2673
2649
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2674
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2650
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2675
2651
  case "ValidationException":
2676
2652
  case "com.amazonaws.elasticsearchservice#ValidationException":
2677
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2653
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2678
2654
  default:
2679
2655
  const parsedBody = parsedOutput.body;
2680
2656
  throwDefaultError({
@@ -2685,23 +2661,23 @@ const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (out
2685
2661
  });
2686
2662
  }
2687
2663
  };
2688
- export const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
2664
+ export const de_ListPackagesForDomainCommand = async (output, context) => {
2689
2665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2690
- return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
2666
+ return de_ListPackagesForDomainCommandError(output, context);
2691
2667
  }
2692
2668
  const contents = map({
2693
2669
  $metadata: deserializeMetadata(output),
2694
2670
  });
2695
2671
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2696
2672
  if (data.DomainPackageDetailsList != null) {
2697
- contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2673
+ contents.DomainPackageDetailsList = de_DomainPackageDetailsList(data.DomainPackageDetailsList, context);
2698
2674
  }
2699
2675
  if (data.NextToken != null) {
2700
2676
  contents.NextToken = __expectString(data.NextToken);
2701
2677
  }
2702
2678
  return contents;
2703
2679
  };
2704
- const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
2680
+ const de_ListPackagesForDomainCommandError = async (output, context) => {
2705
2681
  const parsedOutput = {
2706
2682
  ...output,
2707
2683
  body: await parseErrorBody(output.body, context),
@@ -2710,19 +2686,19 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2710
2686
  switch (errorCode) {
2711
2687
  case "AccessDeniedException":
2712
2688
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
2713
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2689
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2714
2690
  case "BaseException":
2715
2691
  case "com.amazonaws.elasticsearchservice#BaseException":
2716
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2692
+ throw await de_BaseExceptionRes(parsedOutput, context);
2717
2693
  case "InternalException":
2718
2694
  case "com.amazonaws.elasticsearchservice#InternalException":
2719
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2695
+ throw await de_InternalExceptionRes(parsedOutput, context);
2720
2696
  case "ResourceNotFoundException":
2721
2697
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2722
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2698
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2723
2699
  case "ValidationException":
2724
2700
  case "com.amazonaws.elasticsearchservice#ValidationException":
2725
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2701
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2726
2702
  default:
2727
2703
  const parsedBody = parsedOutput.body;
2728
2704
  throwDefaultError({
@@ -2733,20 +2709,20 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
2733
2709
  });
2734
2710
  }
2735
2711
  };
2736
- export const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
2712
+ export const de_ListTagsCommand = async (output, context) => {
2737
2713
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2738
- return deserializeAws_restJson1ListTagsCommandError(output, context);
2714
+ return de_ListTagsCommandError(output, context);
2739
2715
  }
2740
2716
  const contents = map({
2741
2717
  $metadata: deserializeMetadata(output),
2742
2718
  });
2743
2719
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2744
2720
  if (data.TagList != null) {
2745
- contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
2721
+ contents.TagList = de_TagList(data.TagList, context);
2746
2722
  }
2747
2723
  return contents;
2748
2724
  };
2749
- const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
2725
+ const de_ListTagsCommandError = async (output, context) => {
2750
2726
  const parsedOutput = {
2751
2727
  ...output,
2752
2728
  body: await parseErrorBody(output.body, context),
@@ -2755,16 +2731,16 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2755
2731
  switch (errorCode) {
2756
2732
  case "BaseException":
2757
2733
  case "com.amazonaws.elasticsearchservice#BaseException":
2758
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2734
+ throw await de_BaseExceptionRes(parsedOutput, context);
2759
2735
  case "InternalException":
2760
2736
  case "com.amazonaws.elasticsearchservice#InternalException":
2761
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2737
+ throw await de_InternalExceptionRes(parsedOutput, context);
2762
2738
  case "ResourceNotFoundException":
2763
2739
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2764
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2740
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2765
2741
  case "ValidationException":
2766
2742
  case "com.amazonaws.elasticsearchservice#ValidationException":
2767
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2743
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2768
2744
  default:
2769
2745
  const parsedBody = parsedOutput.body;
2770
2746
  throwDefaultError({
@@ -2775,23 +2751,23 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
2775
2751
  });
2776
2752
  }
2777
2753
  };
2778
- export const deserializeAws_restJson1ListVpcEndpointAccessCommand = async (output, context) => {
2754
+ export const de_ListVpcEndpointAccessCommand = async (output, context) => {
2779
2755
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2780
- return deserializeAws_restJson1ListVpcEndpointAccessCommandError(output, context);
2756
+ return de_ListVpcEndpointAccessCommandError(output, context);
2781
2757
  }
2782
2758
  const contents = map({
2783
2759
  $metadata: deserializeMetadata(output),
2784
2760
  });
2785
2761
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2786
2762
  if (data.AuthorizedPrincipalList != null) {
2787
- contents.AuthorizedPrincipalList = deserializeAws_restJson1AuthorizedPrincipalList(data.AuthorizedPrincipalList, context);
2763
+ contents.AuthorizedPrincipalList = de_AuthorizedPrincipalList(data.AuthorizedPrincipalList, context);
2788
2764
  }
2789
2765
  if (data.NextToken != null) {
2790
2766
  contents.NextToken = __expectString(data.NextToken);
2791
2767
  }
2792
2768
  return contents;
2793
2769
  };
2794
- const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output, context) => {
2770
+ const de_ListVpcEndpointAccessCommandError = async (output, context) => {
2795
2771
  const parsedOutput = {
2796
2772
  ...output,
2797
2773
  body: await parseErrorBody(output.body, context),
@@ -2800,16 +2776,16 @@ const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output,
2800
2776
  switch (errorCode) {
2801
2777
  case "BaseException":
2802
2778
  case "com.amazonaws.elasticsearchservice#BaseException":
2803
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2779
+ throw await de_BaseExceptionRes(parsedOutput, context);
2804
2780
  case "DisabledOperationException":
2805
2781
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2806
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2782
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2807
2783
  case "InternalException":
2808
2784
  case "com.amazonaws.elasticsearchservice#InternalException":
2809
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2785
+ throw await de_InternalExceptionRes(parsedOutput, context);
2810
2786
  case "ResourceNotFoundException":
2811
2787
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2812
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2788
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2813
2789
  default:
2814
2790
  const parsedBody = parsedOutput.body;
2815
2791
  throwDefaultError({
@@ -2820,9 +2796,9 @@ const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output,
2820
2796
  });
2821
2797
  }
2822
2798
  };
2823
- export const deserializeAws_restJson1ListVpcEndpointsCommand = async (output, context) => {
2799
+ export const de_ListVpcEndpointsCommand = async (output, context) => {
2824
2800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2825
- return deserializeAws_restJson1ListVpcEndpointsCommandError(output, context);
2801
+ return de_ListVpcEndpointsCommandError(output, context);
2826
2802
  }
2827
2803
  const contents = map({
2828
2804
  $metadata: deserializeMetadata(output),
@@ -2832,11 +2808,11 @@ export const deserializeAws_restJson1ListVpcEndpointsCommand = async (output, co
2832
2808
  contents.NextToken = __expectString(data.NextToken);
2833
2809
  }
2834
2810
  if (data.VpcEndpointSummaryList != null) {
2835
- contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2811
+ contents.VpcEndpointSummaryList = de_VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2836
2812
  }
2837
2813
  return contents;
2838
2814
  };
2839
- const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, context) => {
2815
+ const de_ListVpcEndpointsCommandError = async (output, context) => {
2840
2816
  const parsedOutput = {
2841
2817
  ...output,
2842
2818
  body: await parseErrorBody(output.body, context),
@@ -2845,13 +2821,13 @@ const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, cont
2845
2821
  switch (errorCode) {
2846
2822
  case "BaseException":
2847
2823
  case "com.amazonaws.elasticsearchservice#BaseException":
2848
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2824
+ throw await de_BaseExceptionRes(parsedOutput, context);
2849
2825
  case "DisabledOperationException":
2850
2826
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2851
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2827
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2852
2828
  case "InternalException":
2853
2829
  case "com.amazonaws.elasticsearchservice#InternalException":
2854
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2830
+ throw await de_InternalExceptionRes(parsedOutput, context);
2855
2831
  default:
2856
2832
  const parsedBody = parsedOutput.body;
2857
2833
  throwDefaultError({
@@ -2862,9 +2838,9 @@ const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, cont
2862
2838
  });
2863
2839
  }
2864
2840
  };
2865
- export const deserializeAws_restJson1ListVpcEndpointsForDomainCommand = async (output, context) => {
2841
+ export const de_ListVpcEndpointsForDomainCommand = async (output, context) => {
2866
2842
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2867
- return deserializeAws_restJson1ListVpcEndpointsForDomainCommandError(output, context);
2843
+ return de_ListVpcEndpointsForDomainCommandError(output, context);
2868
2844
  }
2869
2845
  const contents = map({
2870
2846
  $metadata: deserializeMetadata(output),
@@ -2874,11 +2850,11 @@ export const deserializeAws_restJson1ListVpcEndpointsForDomainCommand = async (o
2874
2850
  contents.NextToken = __expectString(data.NextToken);
2875
2851
  }
2876
2852
  if (data.VpcEndpointSummaryList != null) {
2877
- contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2853
+ contents.VpcEndpointSummaryList = de_VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
2878
2854
  }
2879
2855
  return contents;
2880
2856
  };
2881
- const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (output, context) => {
2857
+ const de_ListVpcEndpointsForDomainCommandError = async (output, context) => {
2882
2858
  const parsedOutput = {
2883
2859
  ...output,
2884
2860
  body: await parseErrorBody(output.body, context),
@@ -2887,16 +2863,16 @@ const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (out
2887
2863
  switch (errorCode) {
2888
2864
  case "BaseException":
2889
2865
  case "com.amazonaws.elasticsearchservice#BaseException":
2890
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2866
+ throw await de_BaseExceptionRes(parsedOutput, context);
2891
2867
  case "DisabledOperationException":
2892
2868
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2893
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2869
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2894
2870
  case "InternalException":
2895
2871
  case "com.amazonaws.elasticsearchservice#InternalException":
2896
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2872
+ throw await de_InternalExceptionRes(parsedOutput, context);
2897
2873
  case "ResourceNotFoundException":
2898
2874
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2899
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2875
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2900
2876
  default:
2901
2877
  const parsedBody = parsedOutput.body;
2902
2878
  throwDefaultError({
@@ -2907,9 +2883,9 @@ const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (out
2907
2883
  });
2908
2884
  }
2909
2885
  };
2910
- export const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = async (output, context) => {
2886
+ export const de_PurchaseReservedElasticsearchInstanceOfferingCommand = async (output, context) => {
2911
2887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2912
- return deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommandError(output, context);
2888
+ return de_PurchaseReservedElasticsearchInstanceOfferingCommandError(output, context);
2913
2889
  }
2914
2890
  const contents = map({
2915
2891
  $metadata: deserializeMetadata(output),
@@ -2923,7 +2899,7 @@ export const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferi
2923
2899
  }
2924
2900
  return contents;
2925
2901
  };
2926
- const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommandError = async (output, context) => {
2902
+ const de_PurchaseReservedElasticsearchInstanceOfferingCommandError = async (output, context) => {
2927
2903
  const parsedOutput = {
2928
2904
  ...output,
2929
2905
  body: await parseErrorBody(output.body, context),
@@ -2932,22 +2908,22 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
2932
2908
  switch (errorCode) {
2933
2909
  case "DisabledOperationException":
2934
2910
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2935
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2911
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2936
2912
  case "InternalException":
2937
2913
  case "com.amazonaws.elasticsearchservice#InternalException":
2938
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2914
+ throw await de_InternalExceptionRes(parsedOutput, context);
2939
2915
  case "LimitExceededException":
2940
2916
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
2941
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
2917
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2942
2918
  case "ResourceAlreadyExistsException":
2943
2919
  case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
2944
- throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
2920
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
2945
2921
  case "ResourceNotFoundException":
2946
2922
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2947
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2923
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2948
2924
  case "ValidationException":
2949
2925
  case "com.amazonaws.elasticsearchservice#ValidationException":
2950
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2926
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2951
2927
  default:
2952
2928
  const parsedBody = parsedOutput.body;
2953
2929
  throwDefaultError({
@@ -2958,20 +2934,20 @@ const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
2958
2934
  });
2959
2935
  }
2960
2936
  };
2961
- export const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = async (output, context) => {
2937
+ export const de_RejectInboundCrossClusterSearchConnectionCommand = async (output, context) => {
2962
2938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2963
- return deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandError(output, context);
2939
+ return de_RejectInboundCrossClusterSearchConnectionCommandError(output, context);
2964
2940
  }
2965
2941
  const contents = map({
2966
2942
  $metadata: deserializeMetadata(output),
2967
2943
  });
2968
2944
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2969
2945
  if (data.CrossClusterSearchConnection != null) {
2970
- contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
2946
+ contents.CrossClusterSearchConnection = de_InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
2971
2947
  }
2972
2948
  return contents;
2973
2949
  };
2974
- const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
2950
+ const de_RejectInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
2975
2951
  const parsedOutput = {
2976
2952
  ...output,
2977
2953
  body: await parseErrorBody(output.body, context),
@@ -2980,10 +2956,10 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandEr
2980
2956
  switch (errorCode) {
2981
2957
  case "DisabledOperationException":
2982
2958
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
2983
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
2959
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
2984
2960
  case "ResourceNotFoundException":
2985
2961
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
2986
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2962
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2987
2963
  default:
2988
2964
  const parsedBody = parsedOutput.body;
2989
2965
  throwDefaultError({
@@ -2994,9 +2970,9 @@ const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandEr
2994
2970
  });
2995
2971
  }
2996
2972
  };
2997
- export const deserializeAws_restJson1RemoveTagsCommand = async (output, context) => {
2973
+ export const de_RemoveTagsCommand = async (output, context) => {
2998
2974
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2999
- return deserializeAws_restJson1RemoveTagsCommandError(output, context);
2975
+ return de_RemoveTagsCommandError(output, context);
3000
2976
  }
3001
2977
  const contents = map({
3002
2978
  $metadata: deserializeMetadata(output),
@@ -3004,7 +2980,7 @@ export const deserializeAws_restJson1RemoveTagsCommand = async (output, context)
3004
2980
  await collectBody(output.body, context);
3005
2981
  return contents;
3006
2982
  };
3007
- const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) => {
2983
+ const de_RemoveTagsCommandError = async (output, context) => {
3008
2984
  const parsedOutput = {
3009
2985
  ...output,
3010
2986
  body: await parseErrorBody(output.body, context),
@@ -3013,13 +2989,13 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
3013
2989
  switch (errorCode) {
3014
2990
  case "BaseException":
3015
2991
  case "com.amazonaws.elasticsearchservice#BaseException":
3016
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
2992
+ throw await de_BaseExceptionRes(parsedOutput, context);
3017
2993
  case "InternalException":
3018
2994
  case "com.amazonaws.elasticsearchservice#InternalException":
3019
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
2995
+ throw await de_InternalExceptionRes(parsedOutput, context);
3020
2996
  case "ValidationException":
3021
2997
  case "com.amazonaws.elasticsearchservice#ValidationException":
3022
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2998
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3023
2999
  default:
3024
3000
  const parsedBody = parsedOutput.body;
3025
3001
  throwDefaultError({
@@ -3030,9 +3006,9 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
3030
3006
  });
3031
3007
  }
3032
3008
  };
3033
- export const deserializeAws_restJson1RevokeVpcEndpointAccessCommand = async (output, context) => {
3009
+ export const de_RevokeVpcEndpointAccessCommand = async (output, context) => {
3034
3010
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3035
- return deserializeAws_restJson1RevokeVpcEndpointAccessCommandError(output, context);
3011
+ return de_RevokeVpcEndpointAccessCommandError(output, context);
3036
3012
  }
3037
3013
  const contents = map({
3038
3014
  $metadata: deserializeMetadata(output),
@@ -3040,7 +3016,7 @@ export const deserializeAws_restJson1RevokeVpcEndpointAccessCommand = async (out
3040
3016
  await collectBody(output.body, context);
3041
3017
  return contents;
3042
3018
  };
3043
- const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (output, context) => {
3019
+ const de_RevokeVpcEndpointAccessCommandError = async (output, context) => {
3044
3020
  const parsedOutput = {
3045
3021
  ...output,
3046
3022
  body: await parseErrorBody(output.body, context),
@@ -3049,19 +3025,19 @@ const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (outpu
3049
3025
  switch (errorCode) {
3050
3026
  case "BaseException":
3051
3027
  case "com.amazonaws.elasticsearchservice#BaseException":
3052
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3028
+ throw await de_BaseExceptionRes(parsedOutput, context);
3053
3029
  case "DisabledOperationException":
3054
3030
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
3055
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3031
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
3056
3032
  case "InternalException":
3057
3033
  case "com.amazonaws.elasticsearchservice#InternalException":
3058
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3034
+ throw await de_InternalExceptionRes(parsedOutput, context);
3059
3035
  case "ResourceNotFoundException":
3060
3036
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3061
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3037
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3062
3038
  case "ValidationException":
3063
3039
  case "com.amazonaws.elasticsearchservice#ValidationException":
3064
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3040
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3065
3041
  default:
3066
3042
  const parsedBody = parsedOutput.body;
3067
3043
  throwDefaultError({
@@ -3072,20 +3048,20 @@ const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (outpu
3072
3048
  });
3073
3049
  }
3074
3050
  };
3075
- export const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
3051
+ export const de_StartElasticsearchServiceSoftwareUpdateCommand = async (output, context) => {
3076
3052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3077
- return deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError(output, context);
3053
+ return de_StartElasticsearchServiceSoftwareUpdateCommandError(output, context);
3078
3054
  }
3079
3055
  const contents = map({
3080
3056
  $metadata: deserializeMetadata(output),
3081
3057
  });
3082
3058
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3083
3059
  if (data.ServiceSoftwareOptions != null) {
3084
- contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
3060
+ contents.ServiceSoftwareOptions = de_ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
3085
3061
  }
3086
3062
  return contents;
3087
3063
  };
3088
- const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
3064
+ const de_StartElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
3089
3065
  const parsedOutput = {
3090
3066
  ...output,
3091
3067
  body: await parseErrorBody(output.body, context),
@@ -3094,16 +3070,16 @@ const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandErro
3094
3070
  switch (errorCode) {
3095
3071
  case "BaseException":
3096
3072
  case "com.amazonaws.elasticsearchservice#BaseException":
3097
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3073
+ throw await de_BaseExceptionRes(parsedOutput, context);
3098
3074
  case "InternalException":
3099
3075
  case "com.amazonaws.elasticsearchservice#InternalException":
3100
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3076
+ throw await de_InternalExceptionRes(parsedOutput, context);
3101
3077
  case "ResourceNotFoundException":
3102
3078
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3103
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3079
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3104
3080
  case "ValidationException":
3105
3081
  case "com.amazonaws.elasticsearchservice#ValidationException":
3106
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3082
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3107
3083
  default:
3108
3084
  const parsedBody = parsedOutput.body;
3109
3085
  throwDefaultError({
@@ -3114,23 +3090,23 @@ const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandErro
3114
3090
  });
3115
3091
  }
3116
3092
  };
3117
- export const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (output, context) => {
3093
+ export const de_UpdateElasticsearchDomainConfigCommand = async (output, context) => {
3118
3094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3119
- return deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError(output, context);
3095
+ return de_UpdateElasticsearchDomainConfigCommandError(output, context);
3120
3096
  }
3121
3097
  const contents = map({
3122
3098
  $metadata: deserializeMetadata(output),
3123
3099
  });
3124
3100
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3125
3101
  if (data.DomainConfig != null) {
3126
- contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
3102
+ contents.DomainConfig = de_ElasticsearchDomainConfig(data.DomainConfig, context);
3127
3103
  }
3128
3104
  if (data.DryRunResults != null) {
3129
- contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
3105
+ contents.DryRunResults = de_DryRunResults(data.DryRunResults, context);
3130
3106
  }
3131
3107
  return contents;
3132
3108
  };
3133
- const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = async (output, context) => {
3109
+ const de_UpdateElasticsearchDomainConfigCommandError = async (output, context) => {
3134
3110
  const parsedOutput = {
3135
3111
  ...output,
3136
3112
  body: await parseErrorBody(output.body, context),
@@ -3139,22 +3115,22 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = asyn
3139
3115
  switch (errorCode) {
3140
3116
  case "BaseException":
3141
3117
  case "com.amazonaws.elasticsearchservice#BaseException":
3142
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3118
+ throw await de_BaseExceptionRes(parsedOutput, context);
3143
3119
  case "InternalException":
3144
3120
  case "com.amazonaws.elasticsearchservice#InternalException":
3145
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3121
+ throw await de_InternalExceptionRes(parsedOutput, context);
3146
3122
  case "InvalidTypeException":
3147
3123
  case "com.amazonaws.elasticsearchservice#InvalidTypeException":
3148
- throw await deserializeAws_restJson1InvalidTypeExceptionResponse(parsedOutput, context);
3124
+ throw await de_InvalidTypeExceptionRes(parsedOutput, context);
3149
3125
  case "LimitExceededException":
3150
3126
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
3151
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3127
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3152
3128
  case "ResourceNotFoundException":
3153
3129
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3154
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3130
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3155
3131
  case "ValidationException":
3156
3132
  case "com.amazonaws.elasticsearchservice#ValidationException":
3157
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3133
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3158
3134
  default:
3159
3135
  const parsedBody = parsedOutput.body;
3160
3136
  throwDefaultError({
@@ -3165,20 +3141,20 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = asyn
3165
3141
  });
3166
3142
  }
3167
3143
  };
3168
- export const deserializeAws_restJson1UpdatePackageCommand = async (output, context) => {
3144
+ export const de_UpdatePackageCommand = async (output, context) => {
3169
3145
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3170
- return deserializeAws_restJson1UpdatePackageCommandError(output, context);
3146
+ return de_UpdatePackageCommandError(output, context);
3171
3147
  }
3172
3148
  const contents = map({
3173
3149
  $metadata: deserializeMetadata(output),
3174
3150
  });
3175
3151
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3176
3152
  if (data.PackageDetails != null) {
3177
- contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
3153
+ contents.PackageDetails = de_PackageDetails(data.PackageDetails, context);
3178
3154
  }
3179
3155
  return contents;
3180
3156
  };
3181
- const deserializeAws_restJson1UpdatePackageCommandError = async (output, context) => {
3157
+ const de_UpdatePackageCommandError = async (output, context) => {
3182
3158
  const parsedOutput = {
3183
3159
  ...output,
3184
3160
  body: await parseErrorBody(output.body, context),
@@ -3187,22 +3163,22 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
3187
3163
  switch (errorCode) {
3188
3164
  case "AccessDeniedException":
3189
3165
  case "com.amazonaws.elasticsearchservice#AccessDeniedException":
3190
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3166
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3191
3167
  case "BaseException":
3192
3168
  case "com.amazonaws.elasticsearchservice#BaseException":
3193
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3169
+ throw await de_BaseExceptionRes(parsedOutput, context);
3194
3170
  case "InternalException":
3195
3171
  case "com.amazonaws.elasticsearchservice#InternalException":
3196
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3172
+ throw await de_InternalExceptionRes(parsedOutput, context);
3197
3173
  case "LimitExceededException":
3198
3174
  case "com.amazonaws.elasticsearchservice#LimitExceededException":
3199
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3175
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3200
3176
  case "ResourceNotFoundException":
3201
3177
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3202
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3178
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3203
3179
  case "ValidationException":
3204
3180
  case "com.amazonaws.elasticsearchservice#ValidationException":
3205
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3181
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3206
3182
  default:
3207
3183
  const parsedBody = parsedOutput.body;
3208
3184
  throwDefaultError({
@@ -3213,20 +3189,20 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
3213
3189
  });
3214
3190
  }
3215
3191
  };
3216
- export const deserializeAws_restJson1UpdateVpcEndpointCommand = async (output, context) => {
3192
+ export const de_UpdateVpcEndpointCommand = async (output, context) => {
3217
3193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3218
- return deserializeAws_restJson1UpdateVpcEndpointCommandError(output, context);
3194
+ return de_UpdateVpcEndpointCommandError(output, context);
3219
3195
  }
3220
3196
  const contents = map({
3221
3197
  $metadata: deserializeMetadata(output),
3222
3198
  });
3223
3199
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3224
3200
  if (data.VpcEndpoint != null) {
3225
- contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
3201
+ contents.VpcEndpoint = de_VpcEndpoint(data.VpcEndpoint, context);
3226
3202
  }
3227
3203
  return contents;
3228
3204
  };
3229
- const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, context) => {
3205
+ const de_UpdateVpcEndpointCommandError = async (output, context) => {
3230
3206
  const parsedOutput = {
3231
3207
  ...output,
3232
3208
  body: await parseErrorBody(output.body, context),
@@ -3235,22 +3211,22 @@ const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, con
3235
3211
  switch (errorCode) {
3236
3212
  case "BaseException":
3237
3213
  case "com.amazonaws.elasticsearchservice#BaseException":
3238
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3214
+ throw await de_BaseExceptionRes(parsedOutput, context);
3239
3215
  case "ConflictException":
3240
3216
  case "com.amazonaws.elasticsearchservice#ConflictException":
3241
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3217
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3242
3218
  case "DisabledOperationException":
3243
3219
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
3244
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3220
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
3245
3221
  case "InternalException":
3246
3222
  case "com.amazonaws.elasticsearchservice#InternalException":
3247
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3223
+ throw await de_InternalExceptionRes(parsedOutput, context);
3248
3224
  case "ResourceNotFoundException":
3249
3225
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3250
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3226
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3251
3227
  case "ValidationException":
3252
3228
  case "com.amazonaws.elasticsearchservice#ValidationException":
3253
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3229
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3254
3230
  default:
3255
3231
  const parsedBody = parsedOutput.body;
3256
3232
  throwDefaultError({
@@ -3261,16 +3237,16 @@ const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, con
3261
3237
  });
3262
3238
  }
3263
3239
  };
3264
- export const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (output, context) => {
3240
+ export const de_UpgradeElasticsearchDomainCommand = async (output, context) => {
3265
3241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3266
- return deserializeAws_restJson1UpgradeElasticsearchDomainCommandError(output, context);
3242
+ return de_UpgradeElasticsearchDomainCommandError(output, context);
3267
3243
  }
3268
3244
  const contents = map({
3269
3245
  $metadata: deserializeMetadata(output),
3270
3246
  });
3271
3247
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3272
3248
  if (data.ChangeProgressDetails != null) {
3273
- contents.ChangeProgressDetails = deserializeAws_restJson1ChangeProgressDetails(data.ChangeProgressDetails, context);
3249
+ contents.ChangeProgressDetails = de_ChangeProgressDetails(data.ChangeProgressDetails, context);
3274
3250
  }
3275
3251
  if (data.DomainName != null) {
3276
3252
  contents.DomainName = __expectString(data.DomainName);
@@ -3283,7 +3259,7 @@ export const deserializeAws_restJson1UpgradeElasticsearchDomainCommand = async (
3283
3259
  }
3284
3260
  return contents;
3285
3261
  };
3286
- const deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = async (output, context) => {
3262
+ const de_UpgradeElasticsearchDomainCommandError = async (output, context) => {
3287
3263
  const parsedOutput = {
3288
3264
  ...output,
3289
3265
  body: await parseErrorBody(output.body, context),
@@ -3292,22 +3268,22 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = async (ou
3292
3268
  switch (errorCode) {
3293
3269
  case "BaseException":
3294
3270
  case "com.amazonaws.elasticsearchservice#BaseException":
3295
- throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
3271
+ throw await de_BaseExceptionRes(parsedOutput, context);
3296
3272
  case "DisabledOperationException":
3297
3273
  case "com.amazonaws.elasticsearchservice#DisabledOperationException":
3298
- throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
3274
+ throw await de_DisabledOperationExceptionRes(parsedOutput, context);
3299
3275
  case "InternalException":
3300
3276
  case "com.amazonaws.elasticsearchservice#InternalException":
3301
- throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
3277
+ throw await de_InternalExceptionRes(parsedOutput, context);
3302
3278
  case "ResourceAlreadyExistsException":
3303
3279
  case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
3304
- throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
3280
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3305
3281
  case "ResourceNotFoundException":
3306
3282
  case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
3307
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3283
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3308
3284
  case "ValidationException":
3309
3285
  case "com.amazonaws.elasticsearchservice#ValidationException":
3310
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3286
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3311
3287
  default:
3312
3288
  const parsedBody = parsedOutput.body;
3313
3289
  throwDefaultError({
@@ -3319,7 +3295,7 @@ const deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = async (ou
3319
3295
  }
3320
3296
  };
3321
3297
  const map = __map;
3322
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
3298
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3323
3299
  const contents = map({});
3324
3300
  const data = parsedOutput.body;
3325
3301
  if (data.message != null) {
@@ -3331,7 +3307,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
3331
3307
  });
3332
3308
  return __decorateServiceException(exception, parsedOutput.body);
3333
3309
  };
3334
- const deserializeAws_restJson1BaseExceptionResponse = async (parsedOutput, context) => {
3310
+ const de_BaseExceptionRes = async (parsedOutput, context) => {
3335
3311
  const contents = map({});
3336
3312
  const data = parsedOutput.body;
3337
3313
  if (data.message != null) {
@@ -3343,7 +3319,7 @@ const deserializeAws_restJson1BaseExceptionResponse = async (parsedOutput, conte
3343
3319
  });
3344
3320
  return __decorateServiceException(exception, parsedOutput.body);
3345
3321
  };
3346
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
3322
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3347
3323
  const contents = map({});
3348
3324
  const data = parsedOutput.body;
3349
3325
  if (data.message != null) {
@@ -3355,7 +3331,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
3355
3331
  });
3356
3332
  return __decorateServiceException(exception, parsedOutput.body);
3357
3333
  };
3358
- const deserializeAws_restJson1DisabledOperationExceptionResponse = async (parsedOutput, context) => {
3334
+ const de_DisabledOperationExceptionRes = async (parsedOutput, context) => {
3359
3335
  const contents = map({});
3360
3336
  const data = parsedOutput.body;
3361
3337
  if (data.message != null) {
@@ -3367,7 +3343,7 @@ const deserializeAws_restJson1DisabledOperationExceptionResponse = async (parsed
3367
3343
  });
3368
3344
  return __decorateServiceException(exception, parsedOutput.body);
3369
3345
  };
3370
- const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, context) => {
3346
+ const de_InternalExceptionRes = async (parsedOutput, context) => {
3371
3347
  const contents = map({});
3372
3348
  const data = parsedOutput.body;
3373
3349
  if (data.message != null) {
@@ -3379,7 +3355,7 @@ const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, c
3379
3355
  });
3380
3356
  return __decorateServiceException(exception, parsedOutput.body);
3381
3357
  };
3382
- const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
3358
+ const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
3383
3359
  const contents = map({});
3384
3360
  const data = parsedOutput.body;
3385
3361
  if (data.message != null) {
@@ -3391,7 +3367,7 @@ const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (p
3391
3367
  });
3392
3368
  return __decorateServiceException(exception, parsedOutput.body);
3393
3369
  };
3394
- const deserializeAws_restJson1InvalidTypeExceptionResponse = async (parsedOutput, context) => {
3370
+ const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
3395
3371
  const contents = map({});
3396
3372
  const data = parsedOutput.body;
3397
3373
  if (data.message != null) {
@@ -3403,7 +3379,7 @@ const deserializeAws_restJson1InvalidTypeExceptionResponse = async (parsedOutput
3403
3379
  });
3404
3380
  return __decorateServiceException(exception, parsedOutput.body);
3405
3381
  };
3406
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
3382
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3407
3383
  const contents = map({});
3408
3384
  const data = parsedOutput.body;
3409
3385
  if (data.message != null) {
@@ -3415,7 +3391,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
3415
3391
  });
3416
3392
  return __decorateServiceException(exception, parsedOutput.body);
3417
3393
  };
3418
- const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
3394
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3419
3395
  const contents = map({});
3420
3396
  const data = parsedOutput.body;
3421
3397
  if (data.message != null) {
@@ -3427,7 +3403,7 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
3427
3403
  });
3428
3404
  return __decorateServiceException(exception, parsedOutput.body);
3429
3405
  };
3430
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
3406
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3431
3407
  const contents = map({});
3432
3408
  const data = parsedOutput.body;
3433
3409
  if (data.message != null) {
@@ -3439,7 +3415,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
3439
3415
  });
3440
3416
  return __decorateServiceException(exception, parsedOutput.body);
3441
3417
  };
3442
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
3418
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
3443
3419
  const contents = map({});
3444
3420
  const data = parsedOutput.body;
3445
3421
  if (data.message != null) {
@@ -3451,7 +3427,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
3451
3427
  });
3452
3428
  return __decorateServiceException(exception, parsedOutput.body);
3453
3429
  };
3454
- const serializeAws_restJson1AdvancedOptions = (input, context) => {
3430
+ const se_AdvancedOptions = (input, context) => {
3455
3431
  return Object.entries(input).reduce((acc, [key, value]) => {
3456
3432
  if (value === null) {
3457
3433
  return acc;
@@ -3460,7 +3436,7 @@ const serializeAws_restJson1AdvancedOptions = (input, context) => {
3460
3436
  return acc;
3461
3437
  }, {});
3462
3438
  };
3463
- const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
3439
+ const se_AdvancedSecurityOptionsInput = (input, context) => {
3464
3440
  return {
3465
3441
  ...(input.AnonymousAuthEnabled != null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled }),
3466
3442
  ...(input.Enabled != null && { Enabled: input.Enabled }),
@@ -3468,47 +3444,45 @@ const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
3468
3444
  InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled,
3469
3445
  }),
3470
3446
  ...(input.MasterUserOptions != null && {
3471
- MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
3472
- }),
3473
- ...(input.SAMLOptions != null && {
3474
- SAMLOptions: serializeAws_restJson1SAMLOptionsInput(input.SAMLOptions, context),
3447
+ MasterUserOptions: se_MasterUserOptions(input.MasterUserOptions, context),
3475
3448
  }),
3449
+ ...(input.SAMLOptions != null && { SAMLOptions: se_SAMLOptionsInput(input.SAMLOptions, context) }),
3476
3450
  };
3477
3451
  };
3478
- const serializeAws_restJson1AutoTuneMaintenanceSchedule = (input, context) => {
3452
+ const se_AutoTuneMaintenanceSchedule = (input, context) => {
3479
3453
  return {
3480
3454
  ...(input.CronExpressionForRecurrence != null && {
3481
3455
  CronExpressionForRecurrence: input.CronExpressionForRecurrence,
3482
3456
  }),
3483
- ...(input.Duration != null && { Duration: serializeAws_restJson1Duration(input.Duration, context) }),
3457
+ ...(input.Duration != null && { Duration: se_Duration(input.Duration, context) }),
3484
3458
  ...(input.StartAt != null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }),
3485
3459
  };
3486
3460
  };
3487
- const serializeAws_restJson1AutoTuneMaintenanceScheduleList = (input, context) => {
3461
+ const se_AutoTuneMaintenanceScheduleList = (input, context) => {
3488
3462
  return input
3489
3463
  .filter((e) => e != null)
3490
3464
  .map((entry) => {
3491
- return serializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context);
3465
+ return se_AutoTuneMaintenanceSchedule(entry, context);
3492
3466
  });
3493
3467
  };
3494
- const serializeAws_restJson1AutoTuneOptions = (input, context) => {
3468
+ const se_AutoTuneOptions = (input, context) => {
3495
3469
  return {
3496
3470
  ...(input.DesiredState != null && { DesiredState: input.DesiredState }),
3497
3471
  ...(input.MaintenanceSchedules != null && {
3498
- MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3472
+ MaintenanceSchedules: se_AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3499
3473
  }),
3500
3474
  ...(input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }),
3501
3475
  };
3502
3476
  };
3503
- const serializeAws_restJson1AutoTuneOptionsInput = (input, context) => {
3477
+ const se_AutoTuneOptionsInput = (input, context) => {
3504
3478
  return {
3505
3479
  ...(input.DesiredState != null && { DesiredState: input.DesiredState }),
3506
3480
  ...(input.MaintenanceSchedules != null && {
3507
- MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3481
+ MaintenanceSchedules: se_AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
3508
3482
  }),
3509
3483
  };
3510
3484
  };
3511
- const serializeAws_restJson1CognitoOptions = (input, context) => {
3485
+ const se_CognitoOptions = (input, context) => {
3512
3486
  return {
3513
3487
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3514
3488
  ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
@@ -3516,32 +3490,32 @@ const serializeAws_restJson1CognitoOptions = (input, context) => {
3516
3490
  ...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
3517
3491
  };
3518
3492
  };
3519
- const serializeAws_restJson1ColdStorageOptions = (input, context) => {
3493
+ const se_ColdStorageOptions = (input, context) => {
3520
3494
  return {
3521
3495
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3522
3496
  };
3523
3497
  };
3524
- const serializeAws_restJson1DescribePackagesFilter = (input, context) => {
3498
+ const se_DescribePackagesFilter = (input, context) => {
3525
3499
  return {
3526
3500
  ...(input.Name != null && { Name: input.Name }),
3527
- ...(input.Value != null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }),
3501
+ ...(input.Value != null && { Value: se_DescribePackagesFilterValues(input.Value, context) }),
3528
3502
  };
3529
3503
  };
3530
- const serializeAws_restJson1DescribePackagesFilterList = (input, context) => {
3504
+ const se_DescribePackagesFilterList = (input, context) => {
3531
3505
  return input
3532
3506
  .filter((e) => e != null)
3533
3507
  .map((entry) => {
3534
- return serializeAws_restJson1DescribePackagesFilter(entry, context);
3508
+ return se_DescribePackagesFilter(entry, context);
3535
3509
  });
3536
3510
  };
3537
- const serializeAws_restJson1DescribePackagesFilterValues = (input, context) => {
3511
+ const se_DescribePackagesFilterValues = (input, context) => {
3538
3512
  return input
3539
3513
  .filter((e) => e != null)
3540
3514
  .map((entry) => {
3541
3515
  return entry;
3542
3516
  });
3543
3517
  };
3544
- const serializeAws_restJson1DomainEndpointOptions = (input, context) => {
3518
+ const se_DomainEndpointOptions = (input, context) => {
3545
3519
  return {
3546
3520
  ...(input.CustomEndpoint != null && { CustomEndpoint: input.CustomEndpoint }),
3547
3521
  ...(input.CustomEndpointCertificateArn != null && {
@@ -3552,27 +3526,27 @@ const serializeAws_restJson1DomainEndpointOptions = (input, context) => {
3552
3526
  ...(input.TLSSecurityPolicy != null && { TLSSecurityPolicy: input.TLSSecurityPolicy }),
3553
3527
  };
3554
3528
  };
3555
- const serializeAws_restJson1DomainInformation = (input, context) => {
3529
+ const se_DomainInformation = (input, context) => {
3556
3530
  return {
3557
3531
  ...(input.DomainName != null && { DomainName: input.DomainName }),
3558
3532
  ...(input.OwnerId != null && { OwnerId: input.OwnerId }),
3559
3533
  ...(input.Region != null && { Region: input.Region }),
3560
3534
  };
3561
3535
  };
3562
- const serializeAws_restJson1DomainNameList = (input, context) => {
3536
+ const se_DomainNameList = (input, context) => {
3563
3537
  return input
3564
3538
  .filter((e) => e != null)
3565
3539
  .map((entry) => {
3566
3540
  return entry;
3567
3541
  });
3568
3542
  };
3569
- const serializeAws_restJson1Duration = (input, context) => {
3543
+ const se_Duration = (input, context) => {
3570
3544
  return {
3571
3545
  ...(input.Unit != null && { Unit: input.Unit }),
3572
3546
  ...(input.Value != null && { Value: input.Value }),
3573
3547
  };
3574
3548
  };
3575
- const serializeAws_restJson1EBSOptions = (input, context) => {
3549
+ const se_EBSOptions = (input, context) => {
3576
3550
  return {
3577
3551
  ...(input.EBSEnabled != null && { EBSEnabled: input.EBSEnabled }),
3578
3552
  ...(input.Iops != null && { Iops: input.Iops }),
@@ -3581,10 +3555,10 @@ const serializeAws_restJson1EBSOptions = (input, context) => {
3581
3555
  ...(input.VolumeType != null && { VolumeType: input.VolumeType }),
3582
3556
  };
3583
3557
  };
3584
- const serializeAws_restJson1ElasticsearchClusterConfig = (input, context) => {
3558
+ const se_ElasticsearchClusterConfig = (input, context) => {
3585
3559
  return {
3586
3560
  ...(input.ColdStorageOptions != null && {
3587
- ColdStorageOptions: serializeAws_restJson1ColdStorageOptions(input.ColdStorageOptions, context),
3561
+ ColdStorageOptions: se_ColdStorageOptions(input.ColdStorageOptions, context),
3588
3562
  }),
3589
3563
  ...(input.DedicatedMasterCount != null && { DedicatedMasterCount: input.DedicatedMasterCount }),
3590
3564
  ...(input.DedicatedMasterEnabled != null && { DedicatedMasterEnabled: input.DedicatedMasterEnabled }),
@@ -3595,73 +3569,73 @@ const serializeAws_restJson1ElasticsearchClusterConfig = (input, context) => {
3595
3569
  ...(input.WarmEnabled != null && { WarmEnabled: input.WarmEnabled }),
3596
3570
  ...(input.WarmType != null && { WarmType: input.WarmType }),
3597
3571
  ...(input.ZoneAwarenessConfig != null && {
3598
- ZoneAwarenessConfig: serializeAws_restJson1ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
3572
+ ZoneAwarenessConfig: se_ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
3599
3573
  }),
3600
3574
  ...(input.ZoneAwarenessEnabled != null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }),
3601
3575
  };
3602
3576
  };
3603
- const serializeAws_restJson1EncryptionAtRestOptions = (input, context) => {
3577
+ const se_EncryptionAtRestOptions = (input, context) => {
3604
3578
  return {
3605
3579
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3606
3580
  ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3607
3581
  };
3608
3582
  };
3609
- const serializeAws_restJson1Filter = (input, context) => {
3583
+ const se_Filter = (input, context) => {
3610
3584
  return {
3611
3585
  ...(input.Name != null && { Name: input.Name }),
3612
- ...(input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
3586
+ ...(input.Values != null && { Values: se_ValueStringList(input.Values, context) }),
3613
3587
  };
3614
3588
  };
3615
- const serializeAws_restJson1FilterList = (input, context) => {
3589
+ const se_FilterList = (input, context) => {
3616
3590
  return input
3617
3591
  .filter((e) => e != null)
3618
3592
  .map((entry) => {
3619
- return serializeAws_restJson1Filter(entry, context);
3593
+ return se_Filter(entry, context);
3620
3594
  });
3621
3595
  };
3622
- const serializeAws_restJson1LogPublishingOption = (input, context) => {
3596
+ const se_LogPublishingOption = (input, context) => {
3623
3597
  return {
3624
3598
  ...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
3625
3599
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3626
3600
  };
3627
3601
  };
3628
- const serializeAws_restJson1LogPublishingOptions = (input, context) => {
3602
+ const se_LogPublishingOptions = (input, context) => {
3629
3603
  return Object.entries(input).reduce((acc, [key, value]) => {
3630
3604
  if (value === null) {
3631
3605
  return acc;
3632
3606
  }
3633
- acc[key] = serializeAws_restJson1LogPublishingOption(value, context);
3607
+ acc[key] = se_LogPublishingOption(value, context);
3634
3608
  return acc;
3635
3609
  }, {});
3636
3610
  };
3637
- const serializeAws_restJson1MasterUserOptions = (input, context) => {
3611
+ const se_MasterUserOptions = (input, context) => {
3638
3612
  return {
3639
3613
  ...(input.MasterUserARN != null && { MasterUserARN: input.MasterUserARN }),
3640
3614
  ...(input.MasterUserName != null && { MasterUserName: input.MasterUserName }),
3641
3615
  ...(input.MasterUserPassword != null && { MasterUserPassword: input.MasterUserPassword }),
3642
3616
  };
3643
3617
  };
3644
- const serializeAws_restJson1NodeToNodeEncryptionOptions = (input, context) => {
3618
+ const se_NodeToNodeEncryptionOptions = (input, context) => {
3645
3619
  return {
3646
3620
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3647
3621
  };
3648
3622
  };
3649
- const serializeAws_restJson1PackageSource = (input, context) => {
3623
+ const se_PackageSource = (input, context) => {
3650
3624
  return {
3651
3625
  ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
3652
3626
  ...(input.S3Key != null && { S3Key: input.S3Key }),
3653
3627
  };
3654
3628
  };
3655
- const serializeAws_restJson1SAMLIdp = (input, context) => {
3629
+ const se_SAMLIdp = (input, context) => {
3656
3630
  return {
3657
3631
  ...(input.EntityId != null && { EntityId: input.EntityId }),
3658
3632
  ...(input.MetadataContent != null && { MetadataContent: input.MetadataContent }),
3659
3633
  };
3660
3634
  };
3661
- const serializeAws_restJson1SAMLOptionsInput = (input, context) => {
3635
+ const se_SAMLOptionsInput = (input, context) => {
3662
3636
  return {
3663
3637
  ...(input.Enabled != null && { Enabled: input.Enabled }),
3664
- ...(input.Idp != null && { Idp: serializeAws_restJson1SAMLIdp(input.Idp, context) }),
3638
+ ...(input.Idp != null && { Idp: se_SAMLIdp(input.Idp, context) }),
3665
3639
  ...(input.MasterBackendRole != null && { MasterBackendRole: input.MasterBackendRole }),
3666
3640
  ...(input.MasterUserName != null && { MasterUserName: input.MasterUserName }),
3667
3641
  ...(input.RolesKey != null && { RolesKey: input.RolesKey }),
@@ -3669,82 +3643,80 @@ const serializeAws_restJson1SAMLOptionsInput = (input, context) => {
3669
3643
  ...(input.SubjectKey != null && { SubjectKey: input.SubjectKey }),
3670
3644
  };
3671
3645
  };
3672
- const serializeAws_restJson1SnapshotOptions = (input, context) => {
3646
+ const se_SnapshotOptions = (input, context) => {
3673
3647
  return {
3674
3648
  ...(input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
3675
3649
  };
3676
3650
  };
3677
- const serializeAws_restJson1StringList = (input, context) => {
3651
+ const se_StringList = (input, context) => {
3678
3652
  return input
3679
3653
  .filter((e) => e != null)
3680
3654
  .map((entry) => {
3681
3655
  return entry;
3682
3656
  });
3683
3657
  };
3684
- const serializeAws_restJson1Tag = (input, context) => {
3658
+ const se_Tag = (input, context) => {
3685
3659
  return {
3686
3660
  ...(input.Key != null && { Key: input.Key }),
3687
3661
  ...(input.Value != null && { Value: input.Value }),
3688
3662
  };
3689
3663
  };
3690
- const serializeAws_restJson1TagList = (input, context) => {
3664
+ const se_TagList = (input, context) => {
3691
3665
  return input
3692
3666
  .filter((e) => e != null)
3693
3667
  .map((entry) => {
3694
- return serializeAws_restJson1Tag(entry, context);
3668
+ return se_Tag(entry, context);
3695
3669
  });
3696
3670
  };
3697
- const serializeAws_restJson1ValueStringList = (input, context) => {
3671
+ const se_ValueStringList = (input, context) => {
3698
3672
  return input
3699
3673
  .filter((e) => e != null)
3700
3674
  .map((entry) => {
3701
3675
  return entry;
3702
3676
  });
3703
3677
  };
3704
- const serializeAws_restJson1VpcEndpointIdList = (input, context) => {
3678
+ const se_VpcEndpointIdList = (input, context) => {
3705
3679
  return input
3706
3680
  .filter((e) => e != null)
3707
3681
  .map((entry) => {
3708
3682
  return entry;
3709
3683
  });
3710
3684
  };
3711
- const serializeAws_restJson1VPCOptions = (input, context) => {
3685
+ const se_VPCOptions = (input, context) => {
3712
3686
  return {
3713
- ...(input.SecurityGroupIds != null && {
3714
- SecurityGroupIds: serializeAws_restJson1StringList(input.SecurityGroupIds, context),
3715
- }),
3716
- ...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
3687
+ ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_StringList(input.SecurityGroupIds, context) }),
3688
+ ...(input.SubnetIds != null && { SubnetIds: se_StringList(input.SubnetIds, context) }),
3717
3689
  };
3718
3690
  };
3719
- const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
3691
+ const se_ZoneAwarenessConfig = (input, context) => {
3720
3692
  return {
3721
3693
  ...(input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
3722
3694
  };
3723
3695
  };
3724
- const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
3696
+ const de_AccessPoliciesStatus = (output, context) => {
3725
3697
  return {
3726
3698
  Options: __expectString(output.Options),
3727
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3699
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
3728
3700
  };
3729
3701
  };
3730
- const deserializeAws_restJson1AdditionalLimit = (output, context) => {
3702
+ const de_AdditionalLimit = (output, context) => {
3731
3703
  return {
3732
3704
  LimitName: __expectString(output.LimitName),
3733
- LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
3705
+ LimitValues: output.LimitValues != null ? de_LimitValueList(output.LimitValues, context) : undefined,
3734
3706
  };
3735
3707
  };
3736
- const deserializeAws_restJson1AdditionalLimitList = (output, context) => {
3708
+ const de_AdditionalLimitList = (output, context) => {
3737
3709
  const retVal = (output || [])
3738
3710
  .filter((e) => e != null)
3739
3711
  .map((entry) => {
3740
3712
  if (entry === null) {
3741
3713
  return null;
3742
3714
  }
3743
- return deserializeAws_restJson1AdditionalLimit(entry, context);
3715
+ return de_AdditionalLimit(entry, context);
3744
3716
  });
3745
3717
  return retVal;
3746
3718
  };
3747
- const deserializeAws_restJson1AdvancedOptions = (output, context) => {
3719
+ const de_AdvancedOptions = (output, context) => {
3748
3720
  return Object.entries(output).reduce((acc, [key, value]) => {
3749
3721
  if (value === null) {
3750
3722
  return acc;
@@ -3753,13 +3725,13 @@ const deserializeAws_restJson1AdvancedOptions = (output, context) => {
3753
3725
  return acc;
3754
3726
  }, {});
3755
3727
  };
3756
- const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
3728
+ const de_AdvancedOptionsStatus = (output, context) => {
3757
3729
  return {
3758
- Options: output.Options != null ? deserializeAws_restJson1AdvancedOptions(output.Options, context) : undefined,
3759
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3730
+ Options: output.Options != null ? de_AdvancedOptions(output.Options, context) : undefined,
3731
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
3760
3732
  };
3761
3733
  };
3762
- const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
3734
+ const de_AdvancedSecurityOptions = (output, context) => {
3763
3735
  return {
3764
3736
  AnonymousAuthDisableDate: output.AnonymousAuthDisableDate != null
3765
3737
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AnonymousAuthDisableDate)))
@@ -3767,98 +3739,96 @@ const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
3767
3739
  AnonymousAuthEnabled: __expectBoolean(output.AnonymousAuthEnabled),
3768
3740
  Enabled: __expectBoolean(output.Enabled),
3769
3741
  InternalUserDatabaseEnabled: __expectBoolean(output.InternalUserDatabaseEnabled),
3770
- SAMLOptions: output.SAMLOptions != null ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
3742
+ SAMLOptions: output.SAMLOptions != null ? de_SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
3771
3743
  };
3772
3744
  };
3773
- const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context) => {
3745
+ const de_AdvancedSecurityOptionsStatus = (output, context) => {
3774
3746
  return {
3775
- Options: output.Options != null ? deserializeAws_restJson1AdvancedSecurityOptions(output.Options, context) : undefined,
3776
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3747
+ Options: output.Options != null ? de_AdvancedSecurityOptions(output.Options, context) : undefined,
3748
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
3777
3749
  };
3778
3750
  };
3779
- const deserializeAws_restJson1AuthorizedPrincipal = (output, context) => {
3751
+ const de_AuthorizedPrincipal = (output, context) => {
3780
3752
  return {
3781
3753
  Principal: __expectString(output.Principal),
3782
3754
  PrincipalType: __expectString(output.PrincipalType),
3783
3755
  };
3784
3756
  };
3785
- const deserializeAws_restJson1AuthorizedPrincipalList = (output, context) => {
3757
+ const de_AuthorizedPrincipalList = (output, context) => {
3786
3758
  const retVal = (output || [])
3787
3759
  .filter((e) => e != null)
3788
3760
  .map((entry) => {
3789
3761
  if (entry === null) {
3790
3762
  return null;
3791
3763
  }
3792
- return deserializeAws_restJson1AuthorizedPrincipal(entry, context);
3764
+ return de_AuthorizedPrincipal(entry, context);
3793
3765
  });
3794
3766
  return retVal;
3795
3767
  };
3796
- const deserializeAws_restJson1AutoTune = (output, context) => {
3768
+ const de_AutoTune = (output, context) => {
3797
3769
  return {
3798
- AutoTuneDetails: output.AutoTuneDetails != null
3799
- ? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
3800
- : undefined,
3770
+ AutoTuneDetails: output.AutoTuneDetails != null ? de_AutoTuneDetails(output.AutoTuneDetails, context) : undefined,
3801
3771
  AutoTuneType: __expectString(output.AutoTuneType),
3802
3772
  };
3803
3773
  };
3804
- const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
3774
+ const de_AutoTuneDetails = (output, context) => {
3805
3775
  return {
3806
3776
  ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails != null
3807
- ? deserializeAws_restJson1ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
3777
+ ? de_ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
3808
3778
  : undefined,
3809
3779
  };
3810
3780
  };
3811
- const deserializeAws_restJson1AutoTuneList = (output, context) => {
3781
+ const de_AutoTuneList = (output, context) => {
3812
3782
  const retVal = (output || [])
3813
3783
  .filter((e) => e != null)
3814
3784
  .map((entry) => {
3815
3785
  if (entry === null) {
3816
3786
  return null;
3817
3787
  }
3818
- return deserializeAws_restJson1AutoTune(entry, context);
3788
+ return de_AutoTune(entry, context);
3819
3789
  });
3820
3790
  return retVal;
3821
3791
  };
3822
- const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
3792
+ const de_AutoTuneMaintenanceSchedule = (output, context) => {
3823
3793
  return {
3824
3794
  CronExpressionForRecurrence: __expectString(output.CronExpressionForRecurrence),
3825
- Duration: output.Duration != null ? deserializeAws_restJson1Duration(output.Duration, context) : undefined,
3795
+ Duration: output.Duration != null ? de_Duration(output.Duration, context) : undefined,
3826
3796
  StartAt: output.StartAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt))) : undefined,
3827
3797
  };
3828
3798
  };
3829
- const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context) => {
3799
+ const de_AutoTuneMaintenanceScheduleList = (output, context) => {
3830
3800
  const retVal = (output || [])
3831
3801
  .filter((e) => e != null)
3832
3802
  .map((entry) => {
3833
3803
  if (entry === null) {
3834
3804
  return null;
3835
3805
  }
3836
- return deserializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context);
3806
+ return de_AutoTuneMaintenanceSchedule(entry, context);
3837
3807
  });
3838
3808
  return retVal;
3839
3809
  };
3840
- const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
3810
+ const de_AutoTuneOptions = (output, context) => {
3841
3811
  return {
3842
3812
  DesiredState: __expectString(output.DesiredState),
3843
3813
  MaintenanceSchedules: output.MaintenanceSchedules != null
3844
- ? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
3814
+ ? de_AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
3845
3815
  : undefined,
3846
3816
  RollbackOnDisable: __expectString(output.RollbackOnDisable),
3847
3817
  };
3848
3818
  };
3849
- const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
3819
+ const de_AutoTuneOptionsOutput = (output, context) => {
3850
3820
  return {
3851
3821
  ErrorMessage: __expectString(output.ErrorMessage),
3852
3822
  State: __expectString(output.State),
3853
3823
  };
3854
3824
  };
3855
- const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
3825
+ const de_AutoTuneOptionsStatus = (output, context) => {
3856
3826
  return {
3857
- Options: output.Options != null ? deserializeAws_restJson1AutoTuneOptions(output.Options, context) : undefined,
3858
- Status: output.Status != null ? deserializeAws_restJson1AutoTuneStatus(output.Status, context) : undefined,
3827
+ Options: output.Options != null ? de_AutoTuneOptions(output.Options, context) : undefined,
3828
+ Status: output.Status != null ? de_AutoTuneStatus(output.Status, context) : undefined,
3859
3829
  };
3860
3830
  };
3861
- const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
3831
+ const de_AutoTuneStatus = (output, context) => {
3862
3832
  return {
3863
3833
  CreationDate: output.CreationDate != null
3864
3834
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
@@ -3870,13 +3840,13 @@ const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
3870
3840
  UpdateVersion: __expectInt32(output.UpdateVersion),
3871
3841
  };
3872
3842
  };
3873
- const deserializeAws_restJson1ChangeProgressDetails = (output, context) => {
3843
+ const de_ChangeProgressDetails = (output, context) => {
3874
3844
  return {
3875
3845
  ChangeId: __expectString(output.ChangeId),
3876
3846
  Message: __expectString(output.Message),
3877
3847
  };
3878
3848
  };
3879
- const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
3849
+ const de_ChangeProgressStage = (output, context) => {
3880
3850
  return {
3881
3851
  Description: __expectString(output.Description),
3882
3852
  LastUpdated: output.LastUpdated != null
@@ -3886,35 +3856,31 @@ const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
3886
3856
  Status: __expectString(output.Status),
3887
3857
  };
3888
3858
  };
3889
- const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
3859
+ const de_ChangeProgressStageList = (output, context) => {
3890
3860
  const retVal = (output || [])
3891
3861
  .filter((e) => e != null)
3892
3862
  .map((entry) => {
3893
3863
  if (entry === null) {
3894
3864
  return null;
3895
3865
  }
3896
- return deserializeAws_restJson1ChangeProgressStage(entry, context);
3866
+ return de_ChangeProgressStage(entry, context);
3897
3867
  });
3898
3868
  return retVal;
3899
3869
  };
3900
- const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) => {
3870
+ const de_ChangeProgressStatusDetails = (output, context) => {
3901
3871
  return {
3902
3872
  ChangeId: __expectString(output.ChangeId),
3903
3873
  ChangeProgressStages: output.ChangeProgressStages != null
3904
- ? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
3905
- : undefined,
3906
- CompletedProperties: output.CompletedProperties != null
3907
- ? deserializeAws_restJson1StringList(output.CompletedProperties, context)
3908
- : undefined,
3909
- PendingProperties: output.PendingProperties != null
3910
- ? deserializeAws_restJson1StringList(output.PendingProperties, context)
3874
+ ? de_ChangeProgressStageList(output.ChangeProgressStages, context)
3911
3875
  : undefined,
3876
+ CompletedProperties: output.CompletedProperties != null ? de_StringList(output.CompletedProperties, context) : undefined,
3877
+ PendingProperties: output.PendingProperties != null ? de_StringList(output.PendingProperties, context) : undefined,
3912
3878
  StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3913
3879
  Status: __expectString(output.Status),
3914
3880
  TotalNumberOfStages: __expectInt32(output.TotalNumberOfStages),
3915
3881
  };
3916
3882
  };
3917
- const deserializeAws_restJson1CognitoOptions = (output, context) => {
3883
+ const de_CognitoOptions = (output, context) => {
3918
3884
  return {
3919
3885
  Enabled: __expectBoolean(output.Enabled),
3920
3886
  IdentityPoolId: __expectString(output.IdentityPoolId),
@@ -3922,37 +3888,35 @@ const deserializeAws_restJson1CognitoOptions = (output, context) => {
3922
3888
  UserPoolId: __expectString(output.UserPoolId),
3923
3889
  };
3924
3890
  };
3925
- const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
3891
+ const de_CognitoOptionsStatus = (output, context) => {
3926
3892
  return {
3927
- Options: output.Options != null ? deserializeAws_restJson1CognitoOptions(output.Options, context) : undefined,
3928
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3893
+ Options: output.Options != null ? de_CognitoOptions(output.Options, context) : undefined,
3894
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
3929
3895
  };
3930
3896
  };
3931
- const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
3897
+ const de_ColdStorageOptions = (output, context) => {
3932
3898
  return {
3933
3899
  Enabled: __expectBoolean(output.Enabled),
3934
3900
  };
3935
3901
  };
3936
- const deserializeAws_restJson1CompatibleElasticsearchVersionsList = (output, context) => {
3902
+ const de_CompatibleElasticsearchVersionsList = (output, context) => {
3937
3903
  const retVal = (output || [])
3938
3904
  .filter((e) => e != null)
3939
3905
  .map((entry) => {
3940
3906
  if (entry === null) {
3941
3907
  return null;
3942
3908
  }
3943
- return deserializeAws_restJson1CompatibleVersionsMap(entry, context);
3909
+ return de_CompatibleVersionsMap(entry, context);
3944
3910
  });
3945
3911
  return retVal;
3946
3912
  };
3947
- const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
3913
+ const de_CompatibleVersionsMap = (output, context) => {
3948
3914
  return {
3949
3915
  SourceVersion: __expectString(output.SourceVersion),
3950
- TargetVersions: output.TargetVersions != null
3951
- ? deserializeAws_restJson1ElasticsearchVersionList(output.TargetVersions, context)
3952
- : undefined,
3916
+ TargetVersions: output.TargetVersions != null ? de_ElasticsearchVersionList(output.TargetVersions, context) : undefined,
3953
3917
  };
3954
3918
  };
3955
- const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
3919
+ const de_DomainEndpointOptions = (output, context) => {
3956
3920
  return {
3957
3921
  CustomEndpoint: __expectString(output.CustomEndpoint),
3958
3922
  CustomEndpointCertificateArn: __expectString(output.CustomEndpointCertificateArn),
@@ -3961,41 +3925,41 @@ const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
3961
3925
  TLSSecurityPolicy: __expectString(output.TLSSecurityPolicy),
3962
3926
  };
3963
3927
  };
3964
- const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) => {
3928
+ const de_DomainEndpointOptionsStatus = (output, context) => {
3965
3929
  return {
3966
- Options: output.Options != null ? deserializeAws_restJson1DomainEndpointOptions(output.Options, context) : undefined,
3967
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
3930
+ Options: output.Options != null ? de_DomainEndpointOptions(output.Options, context) : undefined,
3931
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
3968
3932
  };
3969
3933
  };
3970
- const deserializeAws_restJson1DomainInfo = (output, context) => {
3934
+ const de_DomainInfo = (output, context) => {
3971
3935
  return {
3972
3936
  DomainName: __expectString(output.DomainName),
3973
3937
  EngineType: __expectString(output.EngineType),
3974
3938
  };
3975
3939
  };
3976
- const deserializeAws_restJson1DomainInfoList = (output, context) => {
3940
+ const de_DomainInfoList = (output, context) => {
3977
3941
  const retVal = (output || [])
3978
3942
  .filter((e) => e != null)
3979
3943
  .map((entry) => {
3980
3944
  if (entry === null) {
3981
3945
  return null;
3982
3946
  }
3983
- return deserializeAws_restJson1DomainInfo(entry, context);
3947
+ return de_DomainInfo(entry, context);
3984
3948
  });
3985
3949
  return retVal;
3986
3950
  };
3987
- const deserializeAws_restJson1DomainInformation = (output, context) => {
3951
+ const de_DomainInformation = (output, context) => {
3988
3952
  return {
3989
3953
  DomainName: __expectString(output.DomainName),
3990
3954
  OwnerId: __expectString(output.OwnerId),
3991
3955
  Region: __expectString(output.Region),
3992
3956
  };
3993
3957
  };
3994
- const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
3958
+ const de_DomainPackageDetails = (output, context) => {
3995
3959
  return {
3996
3960
  DomainName: __expectString(output.DomainName),
3997
3961
  DomainPackageStatus: __expectString(output.DomainPackageStatus),
3998
- ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
3962
+ ErrorDetails: output.ErrorDetails != null ? de_ErrorDetails(output.ErrorDetails, context) : undefined,
3999
3963
  LastUpdated: output.LastUpdated != null
4000
3964
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
4001
3965
  : undefined,
@@ -4006,30 +3970,30 @@ const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
4006
3970
  ReferencePath: __expectString(output.ReferencePath),
4007
3971
  };
4008
3972
  };
4009
- const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
3973
+ const de_DomainPackageDetailsList = (output, context) => {
4010
3974
  const retVal = (output || [])
4011
3975
  .filter((e) => e != null)
4012
3976
  .map((entry) => {
4013
3977
  if (entry === null) {
4014
3978
  return null;
4015
3979
  }
4016
- return deserializeAws_restJson1DomainPackageDetails(entry, context);
3980
+ return de_DomainPackageDetails(entry, context);
4017
3981
  });
4018
3982
  return retVal;
4019
3983
  };
4020
- const deserializeAws_restJson1DryRunResults = (output, context) => {
3984
+ const de_DryRunResults = (output, context) => {
4021
3985
  return {
4022
3986
  DeploymentType: __expectString(output.DeploymentType),
4023
3987
  Message: __expectString(output.Message),
4024
3988
  };
4025
3989
  };
4026
- const deserializeAws_restJson1Duration = (output, context) => {
3990
+ const de_Duration = (output, context) => {
4027
3991
  return {
4028
3992
  Unit: __expectString(output.Unit),
4029
3993
  Value: __expectLong(output.Value),
4030
3994
  };
4031
3995
  };
4032
- const deserializeAws_restJson1EBSOptions = (output, context) => {
3996
+ const de_EBSOptions = (output, context) => {
4033
3997
  return {
4034
3998
  EBSEnabled: __expectBoolean(output.EBSEnabled),
4035
3999
  Iops: __expectInt32(output.Iops),
@@ -4038,17 +4002,15 @@ const deserializeAws_restJson1EBSOptions = (output, context) => {
4038
4002
  VolumeType: __expectString(output.VolumeType),
4039
4003
  };
4040
4004
  };
4041
- const deserializeAws_restJson1EBSOptionsStatus = (output, context) => {
4005
+ const de_EBSOptionsStatus = (output, context) => {
4042
4006
  return {
4043
- Options: output.Options != null ? deserializeAws_restJson1EBSOptions(output.Options, context) : undefined,
4044
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4007
+ Options: output.Options != null ? de_EBSOptions(output.Options, context) : undefined,
4008
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4045
4009
  };
4046
4010
  };
4047
- const deserializeAws_restJson1ElasticsearchClusterConfig = (output, context) => {
4011
+ const de_ElasticsearchClusterConfig = (output, context) => {
4048
4012
  return {
4049
- ColdStorageOptions: output.ColdStorageOptions != null
4050
- ? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
4051
- : undefined,
4013
+ ColdStorageOptions: output.ColdStorageOptions != null ? de_ColdStorageOptions(output.ColdStorageOptions, context) : undefined,
4052
4014
  DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount),
4053
4015
  DedicatedMasterEnabled: __expectBoolean(output.DedicatedMasterEnabled),
4054
4016
  DedicatedMasterType: __expectString(output.DedicatedMasterType),
@@ -4057,128 +4019,106 @@ const deserializeAws_restJson1ElasticsearchClusterConfig = (output, context) =>
4057
4019
  WarmCount: __expectInt32(output.WarmCount),
4058
4020
  WarmEnabled: __expectBoolean(output.WarmEnabled),
4059
4021
  WarmType: __expectString(output.WarmType),
4060
- ZoneAwarenessConfig: output.ZoneAwarenessConfig != null
4061
- ? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
4062
- : undefined,
4022
+ ZoneAwarenessConfig: output.ZoneAwarenessConfig != null ? de_ZoneAwarenessConfig(output.ZoneAwarenessConfig, context) : undefined,
4063
4023
  ZoneAwarenessEnabled: __expectBoolean(output.ZoneAwarenessEnabled),
4064
4024
  };
4065
4025
  };
4066
- const deserializeAws_restJson1ElasticsearchClusterConfigStatus = (output, context) => {
4026
+ const de_ElasticsearchClusterConfigStatus = (output, context) => {
4067
4027
  return {
4068
- Options: output.Options != null ? deserializeAws_restJson1ElasticsearchClusterConfig(output.Options, context) : undefined,
4069
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4028
+ Options: output.Options != null ? de_ElasticsearchClusterConfig(output.Options, context) : undefined,
4029
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4070
4030
  };
4071
4031
  };
4072
- const deserializeAws_restJson1ElasticsearchDomainConfig = (output, context) => {
4032
+ const de_ElasticsearchDomainConfig = (output, context) => {
4073
4033
  return {
4074
- AccessPolicies: output.AccessPolicies != null
4075
- ? deserializeAws_restJson1AccessPoliciesStatus(output.AccessPolicies, context)
4076
- : undefined,
4077
- AdvancedOptions: output.AdvancedOptions != null
4078
- ? deserializeAws_restJson1AdvancedOptionsStatus(output.AdvancedOptions, context)
4079
- : undefined,
4034
+ AccessPolicies: output.AccessPolicies != null ? de_AccessPoliciesStatus(output.AccessPolicies, context) : undefined,
4035
+ AdvancedOptions: output.AdvancedOptions != null ? de_AdvancedOptionsStatus(output.AdvancedOptions, context) : undefined,
4080
4036
  AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
4081
- ? deserializeAws_restJson1AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
4082
- : undefined,
4083
- AutoTuneOptions: output.AutoTuneOptions != null
4084
- ? deserializeAws_restJson1AutoTuneOptionsStatus(output.AutoTuneOptions, context)
4037
+ ? de_AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
4085
4038
  : undefined,
4039
+ AutoTuneOptions: output.AutoTuneOptions != null ? de_AutoTuneOptionsStatus(output.AutoTuneOptions, context) : undefined,
4086
4040
  ChangeProgressDetails: output.ChangeProgressDetails != null
4087
- ? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
4088
- : undefined,
4089
- CognitoOptions: output.CognitoOptions != null
4090
- ? deserializeAws_restJson1CognitoOptionsStatus(output.CognitoOptions, context)
4041
+ ? de_ChangeProgressDetails(output.ChangeProgressDetails, context)
4091
4042
  : undefined,
4043
+ CognitoOptions: output.CognitoOptions != null ? de_CognitoOptionsStatus(output.CognitoOptions, context) : undefined,
4092
4044
  DomainEndpointOptions: output.DomainEndpointOptions != null
4093
- ? deserializeAws_restJson1DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
4045
+ ? de_DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
4094
4046
  : undefined,
4095
- EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptionsStatus(output.EBSOptions, context) : undefined,
4047
+ EBSOptions: output.EBSOptions != null ? de_EBSOptionsStatus(output.EBSOptions, context) : undefined,
4096
4048
  ElasticsearchClusterConfig: output.ElasticsearchClusterConfig != null
4097
- ? deserializeAws_restJson1ElasticsearchClusterConfigStatus(output.ElasticsearchClusterConfig, context)
4049
+ ? de_ElasticsearchClusterConfigStatus(output.ElasticsearchClusterConfig, context)
4098
4050
  : undefined,
4099
4051
  ElasticsearchVersion: output.ElasticsearchVersion != null
4100
- ? deserializeAws_restJson1ElasticsearchVersionStatus(output.ElasticsearchVersion, context)
4052
+ ? de_ElasticsearchVersionStatus(output.ElasticsearchVersion, context)
4101
4053
  : undefined,
4102
4054
  EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
4103
- ? deserializeAws_restJson1EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
4055
+ ? de_EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
4104
4056
  : undefined,
4105
4057
  LogPublishingOptions: output.LogPublishingOptions != null
4106
- ? deserializeAws_restJson1LogPublishingOptionsStatus(output.LogPublishingOptions, context)
4058
+ ? de_LogPublishingOptionsStatus(output.LogPublishingOptions, context)
4107
4059
  : undefined,
4108
4060
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
4109
- ? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
4110
- : undefined,
4111
- SnapshotOptions: output.SnapshotOptions != null
4112
- ? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
4061
+ ? de_NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
4113
4062
  : undefined,
4114
- VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
4063
+ SnapshotOptions: output.SnapshotOptions != null ? de_SnapshotOptionsStatus(output.SnapshotOptions, context) : undefined,
4064
+ VPCOptions: output.VPCOptions != null ? de_VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
4115
4065
  };
4116
4066
  };
4117
- const deserializeAws_restJson1ElasticsearchDomainStatus = (output, context) => {
4067
+ const de_ElasticsearchDomainStatus = (output, context) => {
4118
4068
  return {
4119
4069
  ARN: __expectString(output.ARN),
4120
4070
  AccessPolicies: __expectString(output.AccessPolicies),
4121
- AdvancedOptions: output.AdvancedOptions != null
4122
- ? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
4123
- : undefined,
4071
+ AdvancedOptions: output.AdvancedOptions != null ? de_AdvancedOptions(output.AdvancedOptions, context) : undefined,
4124
4072
  AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
4125
- ? deserializeAws_restJson1AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
4126
- : undefined,
4127
- AutoTuneOptions: output.AutoTuneOptions != null
4128
- ? deserializeAws_restJson1AutoTuneOptionsOutput(output.AutoTuneOptions, context)
4073
+ ? de_AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
4129
4074
  : undefined,
4075
+ AutoTuneOptions: output.AutoTuneOptions != null ? de_AutoTuneOptionsOutput(output.AutoTuneOptions, context) : undefined,
4130
4076
  ChangeProgressDetails: output.ChangeProgressDetails != null
4131
- ? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
4132
- : undefined,
4133
- CognitoOptions: output.CognitoOptions != null
4134
- ? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
4077
+ ? de_ChangeProgressDetails(output.ChangeProgressDetails, context)
4135
4078
  : undefined,
4079
+ CognitoOptions: output.CognitoOptions != null ? de_CognitoOptions(output.CognitoOptions, context) : undefined,
4136
4080
  Created: __expectBoolean(output.Created),
4137
4081
  Deleted: __expectBoolean(output.Deleted),
4138
4082
  DomainEndpointOptions: output.DomainEndpointOptions != null
4139
- ? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
4083
+ ? de_DomainEndpointOptions(output.DomainEndpointOptions, context)
4140
4084
  : undefined,
4141
4085
  DomainId: __expectString(output.DomainId),
4142
4086
  DomainName: __expectString(output.DomainName),
4143
- EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context) : undefined,
4087
+ EBSOptions: output.EBSOptions != null ? de_EBSOptions(output.EBSOptions, context) : undefined,
4144
4088
  ElasticsearchClusterConfig: output.ElasticsearchClusterConfig != null
4145
- ? deserializeAws_restJson1ElasticsearchClusterConfig(output.ElasticsearchClusterConfig, context)
4089
+ ? de_ElasticsearchClusterConfig(output.ElasticsearchClusterConfig, context)
4146
4090
  : undefined,
4147
4091
  ElasticsearchVersion: __expectString(output.ElasticsearchVersion),
4148
4092
  EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
4149
- ? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
4093
+ ? de_EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
4150
4094
  : undefined,
4151
4095
  Endpoint: __expectString(output.Endpoint),
4152
- Endpoints: output.Endpoints != null ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context) : undefined,
4153
- LogPublishingOptions: output.LogPublishingOptions != null
4154
- ? deserializeAws_restJson1LogPublishingOptions(output.LogPublishingOptions, context)
4155
- : undefined,
4096
+ Endpoints: output.Endpoints != null ? de_EndpointsMap(output.Endpoints, context) : undefined,
4097
+ LogPublishingOptions: output.LogPublishingOptions != null ? de_LogPublishingOptions(output.LogPublishingOptions, context) : undefined,
4156
4098
  NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
4157
- ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
4099
+ ? de_NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
4158
4100
  : undefined,
4159
4101
  Processing: __expectBoolean(output.Processing),
4160
4102
  ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
4161
- ? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
4162
- : undefined,
4163
- SnapshotOptions: output.SnapshotOptions != null
4164
- ? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
4103
+ ? de_ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
4165
4104
  : undefined,
4105
+ SnapshotOptions: output.SnapshotOptions != null ? de_SnapshotOptions(output.SnapshotOptions, context) : undefined,
4166
4106
  UpgradeProcessing: __expectBoolean(output.UpgradeProcessing),
4167
- VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
4107
+ VPCOptions: output.VPCOptions != null ? de_VPCDerivedInfo(output.VPCOptions, context) : undefined,
4168
4108
  };
4169
4109
  };
4170
- const deserializeAws_restJson1ElasticsearchDomainStatusList = (output, context) => {
4110
+ const de_ElasticsearchDomainStatusList = (output, context) => {
4171
4111
  const retVal = (output || [])
4172
4112
  .filter((e) => e != null)
4173
4113
  .map((entry) => {
4174
4114
  if (entry === null) {
4175
4115
  return null;
4176
4116
  }
4177
- return deserializeAws_restJson1ElasticsearchDomainStatus(entry, context);
4117
+ return de_ElasticsearchDomainStatus(entry, context);
4178
4118
  });
4179
4119
  return retVal;
4180
4120
  };
4181
- const deserializeAws_restJson1ElasticsearchInstanceTypeList = (output, context) => {
4121
+ const de_ElasticsearchInstanceTypeList = (output, context) => {
4182
4122
  const retVal = (output || [])
4183
4123
  .filter((e) => e != null)
4184
4124
  .map((entry) => {
@@ -4189,7 +4129,7 @@ const deserializeAws_restJson1ElasticsearchInstanceTypeList = (output, context)
4189
4129
  });
4190
4130
  return retVal;
4191
4131
  };
4192
- const deserializeAws_restJson1ElasticsearchVersionList = (output, context) => {
4132
+ const de_ElasticsearchVersionList = (output, context) => {
4193
4133
  const retVal = (output || [])
4194
4134
  .filter((e) => e != null)
4195
4135
  .map((entry) => {
@@ -4200,25 +4140,25 @@ const deserializeAws_restJson1ElasticsearchVersionList = (output, context) => {
4200
4140
  });
4201
4141
  return retVal;
4202
4142
  };
4203
- const deserializeAws_restJson1ElasticsearchVersionStatus = (output, context) => {
4143
+ const de_ElasticsearchVersionStatus = (output, context) => {
4204
4144
  return {
4205
4145
  Options: __expectString(output.Options),
4206
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4146
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4207
4147
  };
4208
4148
  };
4209
- const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
4149
+ const de_EncryptionAtRestOptions = (output, context) => {
4210
4150
  return {
4211
4151
  Enabled: __expectBoolean(output.Enabled),
4212
4152
  KmsKeyId: __expectString(output.KmsKeyId),
4213
4153
  };
4214
4154
  };
4215
- const deserializeAws_restJson1EncryptionAtRestOptionsStatus = (output, context) => {
4155
+ const de_EncryptionAtRestOptionsStatus = (output, context) => {
4216
4156
  return {
4217
- Options: output.Options != null ? deserializeAws_restJson1EncryptionAtRestOptions(output.Options, context) : undefined,
4218
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4157
+ Options: output.Options != null ? de_EncryptionAtRestOptions(output.Options, context) : undefined,
4158
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4219
4159
  };
4220
4160
  };
4221
- const deserializeAws_restJson1EndpointsMap = (output, context) => {
4161
+ const de_EndpointsMap = (output, context) => {
4222
4162
  return Object.entries(output).reduce((acc, [key, value]) => {
4223
4163
  if (value === null) {
4224
4164
  return acc;
@@ -4227,57 +4167,51 @@ const deserializeAws_restJson1EndpointsMap = (output, context) => {
4227
4167
  return acc;
4228
4168
  }, {});
4229
4169
  };
4230
- const deserializeAws_restJson1ErrorDetails = (output, context) => {
4170
+ const de_ErrorDetails = (output, context) => {
4231
4171
  return {
4232
4172
  ErrorMessage: __expectString(output.ErrorMessage),
4233
4173
  ErrorType: __expectString(output.ErrorType),
4234
4174
  };
4235
4175
  };
4236
- const deserializeAws_restJson1InboundCrossClusterSearchConnection = (output, context) => {
4176
+ const de_InboundCrossClusterSearchConnection = (output, context) => {
4237
4177
  return {
4238
4178
  ConnectionStatus: output.ConnectionStatus != null
4239
- ? deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4179
+ ? de_InboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4240
4180
  : undefined,
4241
4181
  CrossClusterSearchConnectionId: __expectString(output.CrossClusterSearchConnectionId),
4242
- DestinationDomainInfo: output.DestinationDomainInfo != null
4243
- ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
4244
- : undefined,
4245
- SourceDomainInfo: output.SourceDomainInfo != null
4246
- ? deserializeAws_restJson1DomainInformation(output.SourceDomainInfo, context)
4247
- : undefined,
4182
+ DestinationDomainInfo: output.DestinationDomainInfo != null ? de_DomainInformation(output.DestinationDomainInfo, context) : undefined,
4183
+ SourceDomainInfo: output.SourceDomainInfo != null ? de_DomainInformation(output.SourceDomainInfo, context) : undefined,
4248
4184
  };
4249
4185
  };
4250
- const deserializeAws_restJson1InboundCrossClusterSearchConnections = (output, context) => {
4186
+ const de_InboundCrossClusterSearchConnections = (output, context) => {
4251
4187
  const retVal = (output || [])
4252
4188
  .filter((e) => e != null)
4253
4189
  .map((entry) => {
4254
4190
  if (entry === null) {
4255
4191
  return null;
4256
4192
  }
4257
- return deserializeAws_restJson1InboundCrossClusterSearchConnection(entry, context);
4193
+ return de_InboundCrossClusterSearchConnection(entry, context);
4258
4194
  });
4259
4195
  return retVal;
4260
4196
  };
4261
- const deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = (output, context) => {
4197
+ const de_InboundCrossClusterSearchConnectionStatus = (output, context) => {
4262
4198
  return {
4263
4199
  Message: __expectString(output.Message),
4264
4200
  StatusCode: __expectString(output.StatusCode),
4265
4201
  };
4266
4202
  };
4267
- const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
4203
+ const de_InstanceCountLimits = (output, context) => {
4268
4204
  return {
4269
4205
  MaximumInstanceCount: __expectInt32(output.MaximumInstanceCount),
4270
4206
  MinimumInstanceCount: __expectInt32(output.MinimumInstanceCount),
4271
4207
  };
4272
4208
  };
4273
- const deserializeAws_restJson1InstanceLimits = (output, context) => {
4209
+ const de_InstanceLimits = (output, context) => {
4274
4210
  return {
4275
- InstanceCountLimits: output.InstanceCountLimits != null
4276
- ? deserializeAws_restJson1InstanceCountLimits(output.InstanceCountLimits, context)
4277
- : undefined,
4211
+ InstanceCountLimits: output.InstanceCountLimits != null ? de_InstanceCountLimits(output.InstanceCountLimits, context) : undefined,
4278
4212
  };
4279
4213
  };
4280
- const deserializeAws_restJson1Issues = (output, context) => {
4214
+ const de_Issues = (output, context) => {
4281
4215
  const retVal = (output || [])
4282
4216
  .filter((e) => e != null)
4283
4217
  .map((entry) => {
@@ -4288,27 +4222,23 @@ const deserializeAws_restJson1Issues = (output, context) => {
4288
4222
  });
4289
4223
  return retVal;
4290
4224
  };
4291
- const deserializeAws_restJson1Limits = (output, context) => {
4225
+ const de_Limits = (output, context) => {
4292
4226
  return {
4293
- AdditionalLimits: output.AdditionalLimits != null
4294
- ? deserializeAws_restJson1AdditionalLimitList(output.AdditionalLimits, context)
4295
- : undefined,
4296
- InstanceLimits: output.InstanceLimits != null
4297
- ? deserializeAws_restJson1InstanceLimits(output.InstanceLimits, context)
4298
- : undefined,
4299
- StorageTypes: output.StorageTypes != null ? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context) : undefined,
4227
+ AdditionalLimits: output.AdditionalLimits != null ? de_AdditionalLimitList(output.AdditionalLimits, context) : undefined,
4228
+ InstanceLimits: output.InstanceLimits != null ? de_InstanceLimits(output.InstanceLimits, context) : undefined,
4229
+ StorageTypes: output.StorageTypes != null ? de_StorageTypeList(output.StorageTypes, context) : undefined,
4300
4230
  };
4301
4231
  };
4302
- const deserializeAws_restJson1LimitsByRole = (output, context) => {
4232
+ const de_LimitsByRole = (output, context) => {
4303
4233
  return Object.entries(output).reduce((acc, [key, value]) => {
4304
4234
  if (value === null) {
4305
4235
  return acc;
4306
4236
  }
4307
- acc[key] = deserializeAws_restJson1Limits(value, context);
4237
+ acc[key] = de_Limits(value, context);
4308
4238
  return acc;
4309
4239
  }, {});
4310
4240
  };
4311
- const deserializeAws_restJson1LimitValueList = (output, context) => {
4241
+ const de_LimitValueList = (output, context) => {
4312
4242
  const retVal = (output || [])
4313
4243
  .filter((e) => e != null)
4314
4244
  .map((entry) => {
@@ -4319,39 +4249,39 @@ const deserializeAws_restJson1LimitValueList = (output, context) => {
4319
4249
  });
4320
4250
  return retVal;
4321
4251
  };
4322
- const deserializeAws_restJson1LogPublishingOption = (output, context) => {
4252
+ const de_LogPublishingOption = (output, context) => {
4323
4253
  return {
4324
4254
  CloudWatchLogsLogGroupArn: __expectString(output.CloudWatchLogsLogGroupArn),
4325
4255
  Enabled: __expectBoolean(output.Enabled),
4326
4256
  };
4327
4257
  };
4328
- const deserializeAws_restJson1LogPublishingOptions = (output, context) => {
4258
+ const de_LogPublishingOptions = (output, context) => {
4329
4259
  return Object.entries(output).reduce((acc, [key, value]) => {
4330
4260
  if (value === null) {
4331
4261
  return acc;
4332
4262
  }
4333
- acc[key] = deserializeAws_restJson1LogPublishingOption(value, context);
4263
+ acc[key] = de_LogPublishingOption(value, context);
4334
4264
  return acc;
4335
4265
  }, {});
4336
4266
  };
4337
- const deserializeAws_restJson1LogPublishingOptionsStatus = (output, context) => {
4267
+ const de_LogPublishingOptionsStatus = (output, context) => {
4338
4268
  return {
4339
- Options: output.Options != null ? deserializeAws_restJson1LogPublishingOptions(output.Options, context) : undefined,
4340
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4269
+ Options: output.Options != null ? de_LogPublishingOptions(output.Options, context) : undefined,
4270
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4341
4271
  };
4342
4272
  };
4343
- const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) => {
4273
+ const de_NodeToNodeEncryptionOptions = (output, context) => {
4344
4274
  return {
4345
4275
  Enabled: __expectBoolean(output.Enabled),
4346
4276
  };
4347
4277
  };
4348
- const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, context) => {
4278
+ const de_NodeToNodeEncryptionOptionsStatus = (output, context) => {
4349
4279
  return {
4350
- Options: output.Options != null ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.Options, context) : undefined,
4351
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4280
+ Options: output.Options != null ? de_NodeToNodeEncryptionOptions(output.Options, context) : undefined,
4281
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4352
4282
  };
4353
4283
  };
4354
- const deserializeAws_restJson1OptionStatus = (output, context) => {
4284
+ const de_OptionStatus = (output, context) => {
4355
4285
  return {
4356
4286
  CreationDate: output.CreationDate != null
4357
4287
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
@@ -4362,43 +4292,39 @@ const deserializeAws_restJson1OptionStatus = (output, context) => {
4362
4292
  UpdateVersion: __expectInt32(output.UpdateVersion),
4363
4293
  };
4364
4294
  };
4365
- const deserializeAws_restJson1OutboundCrossClusterSearchConnection = (output, context) => {
4295
+ const de_OutboundCrossClusterSearchConnection = (output, context) => {
4366
4296
  return {
4367
4297
  ConnectionAlias: __expectString(output.ConnectionAlias),
4368
4298
  ConnectionStatus: output.ConnectionStatus != null
4369
- ? deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4299
+ ? de_OutboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
4370
4300
  : undefined,
4371
4301
  CrossClusterSearchConnectionId: __expectString(output.CrossClusterSearchConnectionId),
4372
- DestinationDomainInfo: output.DestinationDomainInfo != null
4373
- ? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
4374
- : undefined,
4375
- SourceDomainInfo: output.SourceDomainInfo != null
4376
- ? deserializeAws_restJson1DomainInformation(output.SourceDomainInfo, context)
4377
- : undefined,
4302
+ DestinationDomainInfo: output.DestinationDomainInfo != null ? de_DomainInformation(output.DestinationDomainInfo, context) : undefined,
4303
+ SourceDomainInfo: output.SourceDomainInfo != null ? de_DomainInformation(output.SourceDomainInfo, context) : undefined,
4378
4304
  };
4379
4305
  };
4380
- const deserializeAws_restJson1OutboundCrossClusterSearchConnections = (output, context) => {
4306
+ const de_OutboundCrossClusterSearchConnections = (output, context) => {
4381
4307
  const retVal = (output || [])
4382
4308
  .filter((e) => e != null)
4383
4309
  .map((entry) => {
4384
4310
  if (entry === null) {
4385
4311
  return null;
4386
4312
  }
4387
- return deserializeAws_restJson1OutboundCrossClusterSearchConnection(entry, context);
4313
+ return de_OutboundCrossClusterSearchConnection(entry, context);
4388
4314
  });
4389
4315
  return retVal;
4390
4316
  };
4391
- const deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus = (output, context) => {
4317
+ const de_OutboundCrossClusterSearchConnectionStatus = (output, context) => {
4392
4318
  return {
4393
4319
  Message: __expectString(output.Message),
4394
4320
  StatusCode: __expectString(output.StatusCode),
4395
4321
  };
4396
4322
  };
4397
- const deserializeAws_restJson1PackageDetails = (output, context) => {
4323
+ const de_PackageDetails = (output, context) => {
4398
4324
  return {
4399
4325
  AvailablePackageVersion: __expectString(output.AvailablePackageVersion),
4400
4326
  CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
4401
- ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
4327
+ ErrorDetails: output.ErrorDetails != null ? de_ErrorDetails(output.ErrorDetails, context) : undefined,
4402
4328
  LastUpdatedAt: output.LastUpdatedAt != null
4403
4329
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
4404
4330
  : undefined,
@@ -4409,53 +4335,53 @@ const deserializeAws_restJson1PackageDetails = (output, context) => {
4409
4335
  PackageType: __expectString(output.PackageType),
4410
4336
  };
4411
4337
  };
4412
- const deserializeAws_restJson1PackageDetailsList = (output, context) => {
4338
+ const de_PackageDetailsList = (output, context) => {
4413
4339
  const retVal = (output || [])
4414
4340
  .filter((e) => e != null)
4415
4341
  .map((entry) => {
4416
4342
  if (entry === null) {
4417
4343
  return null;
4418
4344
  }
4419
- return deserializeAws_restJson1PackageDetails(entry, context);
4345
+ return de_PackageDetails(entry, context);
4420
4346
  });
4421
4347
  return retVal;
4422
4348
  };
4423
- const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
4349
+ const de_PackageVersionHistory = (output, context) => {
4424
4350
  return {
4425
4351
  CommitMessage: __expectString(output.CommitMessage),
4426
4352
  CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
4427
4353
  PackageVersion: __expectString(output.PackageVersion),
4428
4354
  };
4429
4355
  };
4430
- const deserializeAws_restJson1PackageVersionHistoryList = (output, context) => {
4356
+ const de_PackageVersionHistoryList = (output, context) => {
4431
4357
  const retVal = (output || [])
4432
4358
  .filter((e) => e != null)
4433
4359
  .map((entry) => {
4434
4360
  if (entry === null) {
4435
4361
  return null;
4436
4362
  }
4437
- return deserializeAws_restJson1PackageVersionHistory(entry, context);
4363
+ return de_PackageVersionHistory(entry, context);
4438
4364
  });
4439
4365
  return retVal;
4440
4366
  };
4441
- const deserializeAws_restJson1RecurringCharge = (output, context) => {
4367
+ const de_RecurringCharge = (output, context) => {
4442
4368
  return {
4443
4369
  RecurringChargeAmount: __limitedParseDouble(output.RecurringChargeAmount),
4444
4370
  RecurringChargeFrequency: __expectString(output.RecurringChargeFrequency),
4445
4371
  };
4446
4372
  };
4447
- const deserializeAws_restJson1RecurringChargeList = (output, context) => {
4373
+ const de_RecurringChargeList = (output, context) => {
4448
4374
  const retVal = (output || [])
4449
4375
  .filter((e) => e != null)
4450
4376
  .map((entry) => {
4451
4377
  if (entry === null) {
4452
4378
  return null;
4453
4379
  }
4454
- return deserializeAws_restJson1RecurringCharge(entry, context);
4380
+ return de_RecurringCharge(entry, context);
4455
4381
  });
4456
4382
  return retVal;
4457
4383
  };
4458
- const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context) => {
4384
+ const de_ReservedElasticsearchInstance = (output, context) => {
4459
4385
  return {
4460
4386
  CurrencyCode: __expectString(output.CurrencyCode),
4461
4387
  Duration: __expectInt32(output.Duration),
@@ -4463,9 +4389,7 @@ const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context)
4463
4389
  ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
4464
4390
  FixedPrice: __limitedParseDouble(output.FixedPrice),
4465
4391
  PaymentOption: __expectString(output.PaymentOption),
4466
- RecurringCharges: output.RecurringCharges != null
4467
- ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
4468
- : undefined,
4392
+ RecurringCharges: output.RecurringCharges != null ? de_RecurringChargeList(output.RecurringCharges, context) : undefined,
4469
4393
  ReservationName: __expectString(output.ReservationName),
4470
4394
  ReservedElasticsearchInstanceId: __expectString(output.ReservedElasticsearchInstanceId),
4471
4395
  ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
@@ -4474,58 +4398,56 @@ const deserializeAws_restJson1ReservedElasticsearchInstance = (output, context)
4474
4398
  UsagePrice: __limitedParseDouble(output.UsagePrice),
4475
4399
  };
4476
4400
  };
4477
- const deserializeAws_restJson1ReservedElasticsearchInstanceList = (output, context) => {
4401
+ const de_ReservedElasticsearchInstanceList = (output, context) => {
4478
4402
  const retVal = (output || [])
4479
4403
  .filter((e) => e != null)
4480
4404
  .map((entry) => {
4481
4405
  if (entry === null) {
4482
4406
  return null;
4483
4407
  }
4484
- return deserializeAws_restJson1ReservedElasticsearchInstance(entry, context);
4408
+ return de_ReservedElasticsearchInstance(entry, context);
4485
4409
  });
4486
4410
  return retVal;
4487
4411
  };
4488
- const deserializeAws_restJson1ReservedElasticsearchInstanceOffering = (output, context) => {
4412
+ const de_ReservedElasticsearchInstanceOffering = (output, context) => {
4489
4413
  return {
4490
4414
  CurrencyCode: __expectString(output.CurrencyCode),
4491
4415
  Duration: __expectInt32(output.Duration),
4492
4416
  ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
4493
4417
  FixedPrice: __limitedParseDouble(output.FixedPrice),
4494
4418
  PaymentOption: __expectString(output.PaymentOption),
4495
- RecurringCharges: output.RecurringCharges != null
4496
- ? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
4497
- : undefined,
4419
+ RecurringCharges: output.RecurringCharges != null ? de_RecurringChargeList(output.RecurringCharges, context) : undefined,
4498
4420
  ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
4499
4421
  UsagePrice: __limitedParseDouble(output.UsagePrice),
4500
4422
  };
4501
4423
  };
4502
- const deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = (output, context) => {
4424
+ const de_ReservedElasticsearchInstanceOfferingList = (output, context) => {
4503
4425
  const retVal = (output || [])
4504
4426
  .filter((e) => e != null)
4505
4427
  .map((entry) => {
4506
4428
  if (entry === null) {
4507
4429
  return null;
4508
4430
  }
4509
- return deserializeAws_restJson1ReservedElasticsearchInstanceOffering(entry, context);
4431
+ return de_ReservedElasticsearchInstanceOffering(entry, context);
4510
4432
  });
4511
4433
  return retVal;
4512
4434
  };
4513
- const deserializeAws_restJson1SAMLIdp = (output, context) => {
4435
+ const de_SAMLIdp = (output, context) => {
4514
4436
  return {
4515
4437
  EntityId: __expectString(output.EntityId),
4516
4438
  MetadataContent: __expectString(output.MetadataContent),
4517
4439
  };
4518
4440
  };
4519
- const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
4441
+ const de_SAMLOptionsOutput = (output, context) => {
4520
4442
  return {
4521
4443
  Enabled: __expectBoolean(output.Enabled),
4522
- Idp: output.Idp != null ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined,
4444
+ Idp: output.Idp != null ? de_SAMLIdp(output.Idp, context) : undefined,
4523
4445
  RolesKey: __expectString(output.RolesKey),
4524
4446
  SessionTimeoutMinutes: __expectInt32(output.SessionTimeoutMinutes),
4525
4447
  SubjectKey: __expectString(output.SubjectKey),
4526
4448
  };
4527
4449
  };
4528
- const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
4450
+ const de_ScheduledAutoTuneDetails = (output, context) => {
4529
4451
  return {
4530
4452
  Action: __expectString(output.Action),
4531
4453
  ActionType: __expectString(output.ActionType),
@@ -4533,7 +4455,7 @@ const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
4533
4455
  Severity: __expectString(output.Severity),
4534
4456
  };
4535
4457
  };
4536
- const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
4458
+ const de_ServiceSoftwareOptions = (output, context) => {
4537
4459
  return {
4538
4460
  AutomatedUpdateDate: output.AutomatedUpdateDate != null
4539
4461
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutomatedUpdateDate)))
@@ -4547,55 +4469,53 @@ const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
4547
4469
  UpdateStatus: __expectString(output.UpdateStatus),
4548
4470
  };
4549
4471
  };
4550
- const deserializeAws_restJson1SnapshotOptions = (output, context) => {
4472
+ const de_SnapshotOptions = (output, context) => {
4551
4473
  return {
4552
4474
  AutomatedSnapshotStartHour: __expectInt32(output.AutomatedSnapshotStartHour),
4553
4475
  };
4554
4476
  };
4555
- const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
4477
+ const de_SnapshotOptionsStatus = (output, context) => {
4556
4478
  return {
4557
- Options: output.Options != null ? deserializeAws_restJson1SnapshotOptions(output.Options, context) : undefined,
4558
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4479
+ Options: output.Options != null ? de_SnapshotOptions(output.Options, context) : undefined,
4480
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4559
4481
  };
4560
4482
  };
4561
- const deserializeAws_restJson1StorageType = (output, context) => {
4483
+ const de_StorageType = (output, context) => {
4562
4484
  return {
4563
4485
  StorageSubTypeName: __expectString(output.StorageSubTypeName),
4564
- StorageTypeLimits: output.StorageTypeLimits != null
4565
- ? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
4566
- : undefined,
4486
+ StorageTypeLimits: output.StorageTypeLimits != null ? de_StorageTypeLimitList(output.StorageTypeLimits, context) : undefined,
4567
4487
  StorageTypeName: __expectString(output.StorageTypeName),
4568
4488
  };
4569
4489
  };
4570
- const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
4490
+ const de_StorageTypeLimit = (output, context) => {
4571
4491
  return {
4572
4492
  LimitName: __expectString(output.LimitName),
4573
- LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
4493
+ LimitValues: output.LimitValues != null ? de_LimitValueList(output.LimitValues, context) : undefined,
4574
4494
  };
4575
4495
  };
4576
- const deserializeAws_restJson1StorageTypeLimitList = (output, context) => {
4496
+ const de_StorageTypeLimitList = (output, context) => {
4577
4497
  const retVal = (output || [])
4578
4498
  .filter((e) => e != null)
4579
4499
  .map((entry) => {
4580
4500
  if (entry === null) {
4581
4501
  return null;
4582
4502
  }
4583
- return deserializeAws_restJson1StorageTypeLimit(entry, context);
4503
+ return de_StorageTypeLimit(entry, context);
4584
4504
  });
4585
4505
  return retVal;
4586
4506
  };
4587
- const deserializeAws_restJson1StorageTypeList = (output, context) => {
4507
+ const de_StorageTypeList = (output, context) => {
4588
4508
  const retVal = (output || [])
4589
4509
  .filter((e) => e != null)
4590
4510
  .map((entry) => {
4591
4511
  if (entry === null) {
4592
4512
  return null;
4593
4513
  }
4594
- return deserializeAws_restJson1StorageType(entry, context);
4514
+ return de_StorageType(entry, context);
4595
4515
  });
4596
4516
  return retVal;
4597
4517
  };
4598
- const deserializeAws_restJson1StringList = (output, context) => {
4518
+ const de_StringList = (output, context) => {
4599
4519
  const retVal = (output || [])
4600
4520
  .filter((e) => e != null)
4601
4521
  .map((entry) => {
@@ -4606,121 +4526,117 @@ const deserializeAws_restJson1StringList = (output, context) => {
4606
4526
  });
4607
4527
  return retVal;
4608
4528
  };
4609
- const deserializeAws_restJson1Tag = (output, context) => {
4529
+ const de_Tag = (output, context) => {
4610
4530
  return {
4611
4531
  Key: __expectString(output.Key),
4612
4532
  Value: __expectString(output.Value),
4613
4533
  };
4614
4534
  };
4615
- const deserializeAws_restJson1TagList = (output, context) => {
4535
+ const de_TagList = (output, context) => {
4616
4536
  const retVal = (output || [])
4617
4537
  .filter((e) => e != null)
4618
4538
  .map((entry) => {
4619
4539
  if (entry === null) {
4620
4540
  return null;
4621
4541
  }
4622
- return deserializeAws_restJson1Tag(entry, context);
4542
+ return de_Tag(entry, context);
4623
4543
  });
4624
4544
  return retVal;
4625
4545
  };
4626
- const deserializeAws_restJson1UpgradeHistory = (output, context) => {
4546
+ const de_UpgradeHistory = (output, context) => {
4627
4547
  return {
4628
4548
  StartTimestamp: output.StartTimestamp != null
4629
4549
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTimestamp)))
4630
4550
  : undefined,
4631
- StepsList: output.StepsList != null ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context) : undefined,
4551
+ StepsList: output.StepsList != null ? de_UpgradeStepsList(output.StepsList, context) : undefined,
4632
4552
  UpgradeName: __expectString(output.UpgradeName),
4633
4553
  UpgradeStatus: __expectString(output.UpgradeStatus),
4634
4554
  };
4635
4555
  };
4636
- const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
4556
+ const de_UpgradeHistoryList = (output, context) => {
4637
4557
  const retVal = (output || [])
4638
4558
  .filter((e) => e != null)
4639
4559
  .map((entry) => {
4640
4560
  if (entry === null) {
4641
4561
  return null;
4642
4562
  }
4643
- return deserializeAws_restJson1UpgradeHistory(entry, context);
4563
+ return de_UpgradeHistory(entry, context);
4644
4564
  });
4645
4565
  return retVal;
4646
4566
  };
4647
- const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
4567
+ const de_UpgradeStepItem = (output, context) => {
4648
4568
  return {
4649
- Issues: output.Issues != null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined,
4569
+ Issues: output.Issues != null ? de_Issues(output.Issues, context) : undefined,
4650
4570
  ProgressPercent: __limitedParseDouble(output.ProgressPercent),
4651
4571
  UpgradeStep: __expectString(output.UpgradeStep),
4652
4572
  UpgradeStepStatus: __expectString(output.UpgradeStepStatus),
4653
4573
  };
4654
4574
  };
4655
- const deserializeAws_restJson1UpgradeStepsList = (output, context) => {
4575
+ const de_UpgradeStepsList = (output, context) => {
4656
4576
  const retVal = (output || [])
4657
4577
  .filter((e) => e != null)
4658
4578
  .map((entry) => {
4659
4579
  if (entry === null) {
4660
4580
  return null;
4661
4581
  }
4662
- return deserializeAws_restJson1UpgradeStepItem(entry, context);
4582
+ return de_UpgradeStepItem(entry, context);
4663
4583
  });
4664
4584
  return retVal;
4665
4585
  };
4666
- const deserializeAws_restJson1VPCDerivedInfo = (output, context) => {
4586
+ const de_VPCDerivedInfo = (output, context) => {
4667
4587
  return {
4668
- AvailabilityZones: output.AvailabilityZones != null
4669
- ? deserializeAws_restJson1StringList(output.AvailabilityZones, context)
4670
- : undefined,
4671
- SecurityGroupIds: output.SecurityGroupIds != null
4672
- ? deserializeAws_restJson1StringList(output.SecurityGroupIds, context)
4673
- : undefined,
4674
- SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1StringList(output.SubnetIds, context) : undefined,
4588
+ AvailabilityZones: output.AvailabilityZones != null ? de_StringList(output.AvailabilityZones, context) : undefined,
4589
+ SecurityGroupIds: output.SecurityGroupIds != null ? de_StringList(output.SecurityGroupIds, context) : undefined,
4590
+ SubnetIds: output.SubnetIds != null ? de_StringList(output.SubnetIds, context) : undefined,
4675
4591
  VPCId: __expectString(output.VPCId),
4676
4592
  };
4677
4593
  };
4678
- const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
4594
+ const de_VPCDerivedInfoStatus = (output, context) => {
4679
4595
  return {
4680
- Options: output.Options != null ? deserializeAws_restJson1VPCDerivedInfo(output.Options, context) : undefined,
4681
- Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
4596
+ Options: output.Options != null ? de_VPCDerivedInfo(output.Options, context) : undefined,
4597
+ Status: output.Status != null ? de_OptionStatus(output.Status, context) : undefined,
4682
4598
  };
4683
4599
  };
4684
- const deserializeAws_restJson1VpcEndpoint = (output, context) => {
4600
+ const de_VpcEndpoint = (output, context) => {
4685
4601
  return {
4686
4602
  DomainArn: __expectString(output.DomainArn),
4687
4603
  Endpoint: __expectString(output.Endpoint),
4688
4604
  Status: __expectString(output.Status),
4689
4605
  VpcEndpointId: __expectString(output.VpcEndpointId),
4690
4606
  VpcEndpointOwner: __expectString(output.VpcEndpointOwner),
4691
- VpcOptions: output.VpcOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VpcOptions, context) : undefined,
4607
+ VpcOptions: output.VpcOptions != null ? de_VPCDerivedInfo(output.VpcOptions, context) : undefined,
4692
4608
  };
4693
4609
  };
4694
- const deserializeAws_restJson1VpcEndpointError = (output, context) => {
4610
+ const de_VpcEndpointError = (output, context) => {
4695
4611
  return {
4696
4612
  ErrorCode: __expectString(output.ErrorCode),
4697
4613
  ErrorMessage: __expectString(output.ErrorMessage),
4698
4614
  VpcEndpointId: __expectString(output.VpcEndpointId),
4699
4615
  };
4700
4616
  };
4701
- const deserializeAws_restJson1VpcEndpointErrorList = (output, context) => {
4617
+ const de_VpcEndpointErrorList = (output, context) => {
4702
4618
  const retVal = (output || [])
4703
4619
  .filter((e) => e != null)
4704
4620
  .map((entry) => {
4705
4621
  if (entry === null) {
4706
4622
  return null;
4707
4623
  }
4708
- return deserializeAws_restJson1VpcEndpointError(entry, context);
4624
+ return de_VpcEndpointError(entry, context);
4709
4625
  });
4710
4626
  return retVal;
4711
4627
  };
4712
- const deserializeAws_restJson1VpcEndpoints = (output, context) => {
4628
+ const de_VpcEndpoints = (output, context) => {
4713
4629
  const retVal = (output || [])
4714
4630
  .filter((e) => e != null)
4715
4631
  .map((entry) => {
4716
4632
  if (entry === null) {
4717
4633
  return null;
4718
4634
  }
4719
- return deserializeAws_restJson1VpcEndpoint(entry, context);
4635
+ return de_VpcEndpoint(entry, context);
4720
4636
  });
4721
4637
  return retVal;
4722
4638
  };
4723
- const deserializeAws_restJson1VpcEndpointSummary = (output, context) => {
4639
+ const de_VpcEndpointSummary = (output, context) => {
4724
4640
  return {
4725
4641
  DomainArn: __expectString(output.DomainArn),
4726
4642
  Status: __expectString(output.Status),
@@ -4728,18 +4644,18 @@ const deserializeAws_restJson1VpcEndpointSummary = (output, context) => {
4728
4644
  VpcEndpointOwner: __expectString(output.VpcEndpointOwner),
4729
4645
  };
4730
4646
  };
4731
- const deserializeAws_restJson1VpcEndpointSummaryList = (output, context) => {
4647
+ const de_VpcEndpointSummaryList = (output, context) => {
4732
4648
  const retVal = (output || [])
4733
4649
  .filter((e) => e != null)
4734
4650
  .map((entry) => {
4735
4651
  if (entry === null) {
4736
4652
  return null;
4737
4653
  }
4738
- return deserializeAws_restJson1VpcEndpointSummary(entry, context);
4654
+ return de_VpcEndpointSummary(entry, context);
4739
4655
  });
4740
4656
  return retVal;
4741
4657
  };
4742
- const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4658
+ const de_ZoneAwarenessConfig = (output, context) => {
4743
4659
  return {
4744
4660
  AvailabilityZoneCount: __expectInt32(output.AvailabilityZoneCount),
4745
4661
  };