@aws-sdk/client-elasticsearch-service 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +452 -586
- package/dist-es/protocols/Aws_restJson1.js +383 -517
- package/package.json +26 -26
|
@@ -46,8 +46,7 @@ export var serializeAws_restJson1AddTagsCommand = function (input, context) { re
|
|
|
46
46
|
"content-type": "application/json",
|
|
47
47
|
};
|
|
48
48
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/tags";
|
|
49
|
-
body = JSON.stringify(__assign(__assign({}, (input.ARN
|
|
50
|
-
input.TagList !== null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })));
|
|
49
|
+
body = JSON.stringify(__assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })));
|
|
51
50
|
return [2, new __HttpRequest({
|
|
52
51
|
protocol: protocol,
|
|
53
52
|
hostname: hostname,
|
|
@@ -114,7 +113,7 @@ export var serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand
|
|
|
114
113
|
};
|
|
115
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
116
115
|
"/2015-01-01/es/serviceSoftwareUpdate/cancel";
|
|
117
|
-
body = JSON.stringify(__assign({}, (input.DomainName
|
|
116
|
+
body = JSON.stringify(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })));
|
|
118
117
|
return [2, new __HttpRequest({
|
|
119
118
|
protocol: protocol,
|
|
120
119
|
hostname: hostname,
|
|
@@ -138,42 +137,27 @@ export var serializeAws_restJson1CreateElasticsearchDomainCommand = function (in
|
|
|
138
137
|
"content-type": "application/json",
|
|
139
138
|
};
|
|
140
139
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/es/domain";
|
|
141
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies
|
|
142
|
-
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
143
|
-
input.AdvancedOptions !== null && {
|
|
140
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions != null && {
|
|
144
141
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
145
|
-
})), (input.AdvancedSecurityOptions
|
|
146
|
-
input.AdvancedSecurityOptions !== null && {
|
|
142
|
+
})), (input.AdvancedSecurityOptions != null && {
|
|
147
143
|
AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
|
|
148
|
-
})), (input.AutoTuneOptions
|
|
149
|
-
input.AutoTuneOptions !== null && {
|
|
144
|
+
})), (input.AutoTuneOptions != null && {
|
|
150
145
|
AutoTuneOptions: serializeAws_restJson1AutoTuneOptionsInput(input.AutoTuneOptions, context),
|
|
151
|
-
})), (input.CognitoOptions
|
|
152
|
-
input.CognitoOptions !== null && {
|
|
146
|
+
})), (input.CognitoOptions != null && {
|
|
153
147
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
154
|
-
})), (input.DomainEndpointOptions
|
|
155
|
-
input.DomainEndpointOptions !== null && {
|
|
148
|
+
})), (input.DomainEndpointOptions != null && {
|
|
156
149
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
157
|
-
})), (input.DomainName
|
|
158
|
-
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.ElasticsearchClusterConfig !== undefined &&
|
|
159
|
-
input.ElasticsearchClusterConfig !== null && {
|
|
150
|
+
})), (input.DomainName != null && { DomainName: input.DomainName })), (input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.ElasticsearchClusterConfig != null && {
|
|
160
151
|
ElasticsearchClusterConfig: serializeAws_restJson1ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
|
|
161
|
-
})), (input.ElasticsearchVersion
|
|
162
|
-
input.ElasticsearchVersion !== null && { ElasticsearchVersion: input.ElasticsearchVersion })), (input.EncryptionAtRestOptions !== undefined &&
|
|
163
|
-
input.EncryptionAtRestOptions !== null && {
|
|
152
|
+
})), (input.ElasticsearchVersion != null && { ElasticsearchVersion: input.ElasticsearchVersion })), (input.EncryptionAtRestOptions != null && {
|
|
164
153
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
165
|
-
})), (input.LogPublishingOptions
|
|
166
|
-
input.LogPublishingOptions !== null && {
|
|
154
|
+
})), (input.LogPublishingOptions != null && {
|
|
167
155
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
168
|
-
})), (input.NodeToNodeEncryptionOptions
|
|
169
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
156
|
+
})), (input.NodeToNodeEncryptionOptions != null && {
|
|
170
157
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
171
|
-
})), (input.SnapshotOptions
|
|
172
|
-
input.SnapshotOptions !== null && {
|
|
158
|
+
})), (input.SnapshotOptions != null && {
|
|
173
159
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
174
|
-
})), (input.TagList
|
|
175
|
-
input.TagList !== null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })), (input.VPCOptions !== undefined &&
|
|
176
|
-
input.VPCOptions !== null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
160
|
+
})), (input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })), (input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
177
161
|
return [2, new __HttpRequest({
|
|
178
162
|
protocol: protocol,
|
|
179
163
|
hostname: hostname,
|
|
@@ -197,12 +181,9 @@ export var serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionComma
|
|
|
197
181
|
"content-type": "application/json",
|
|
198
182
|
};
|
|
199
183
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/es/ccs/outboundConnection";
|
|
200
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectionAlias
|
|
201
|
-
input.ConnectionAlias !== null && { ConnectionAlias: input.ConnectionAlias })), (input.DestinationDomainInfo !== undefined &&
|
|
202
|
-
input.DestinationDomainInfo !== null && {
|
|
184
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectionAlias != null && { ConnectionAlias: input.ConnectionAlias })), (input.DestinationDomainInfo != null && {
|
|
203
185
|
DestinationDomainInfo: serializeAws_restJson1DomainInformation(input.DestinationDomainInfo, context),
|
|
204
|
-
})), (input.SourceDomainInfo
|
|
205
|
-
input.SourceDomainInfo !== null && {
|
|
186
|
+
})), (input.SourceDomainInfo != null && {
|
|
206
187
|
SourceDomainInfo: serializeAws_restJson1DomainInformation(input.SourceDomainInfo, context),
|
|
207
188
|
})));
|
|
208
189
|
return [2, new __HttpRequest({
|
|
@@ -228,11 +209,9 @@ export var serializeAws_restJson1CreatePackageCommand = function (input, context
|
|
|
228
209
|
"content-type": "application/json",
|
|
229
210
|
};
|
|
230
211
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/packages";
|
|
231
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.PackageDescription
|
|
232
|
-
input.PackageDescription !== null && { PackageDescription: input.PackageDescription })), (input.PackageName !== undefined && input.PackageName !== null && { PackageName: input.PackageName })), (input.PackageSource !== undefined &&
|
|
233
|
-
input.PackageSource !== null && {
|
|
212
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.PackageDescription != null && { PackageDescription: input.PackageDescription })), (input.PackageName != null && { PackageName: input.PackageName })), (input.PackageSource != null && {
|
|
234
213
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
235
|
-
})), (input.PackageType
|
|
214
|
+
})), (input.PackageType != null && { PackageType: input.PackageType })));
|
|
236
215
|
return [2, new __HttpRequest({
|
|
237
216
|
protocol: protocol,
|
|
238
217
|
hostname: hostname,
|
|
@@ -417,7 +396,7 @@ export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (inpu
|
|
|
417
396
|
else {
|
|
418
397
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
419
398
|
}
|
|
420
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
399
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
421
400
|
return [2, new __HttpRequest({
|
|
422
401
|
protocol: protocol,
|
|
423
402
|
hostname: hostname,
|
|
@@ -537,8 +516,7 @@ export var serializeAws_restJson1DescribeElasticsearchDomainsCommand = function
|
|
|
537
516
|
"content-type": "application/json",
|
|
538
517
|
};
|
|
539
518
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/es/domain-info";
|
|
540
|
-
body = JSON.stringify(__assign({}, (input.DomainNames
|
|
541
|
-
input.DomainNames !== null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) })));
|
|
519
|
+
body = JSON.stringify(__assign({}, (input.DomainNames != null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) })));
|
|
542
520
|
return [2, new __HttpRequest({
|
|
543
521
|
protocol: protocol,
|
|
544
522
|
hostname: hostname,
|
|
@@ -607,8 +585,7 @@ export var serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCom
|
|
|
607
585
|
};
|
|
608
586
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
609
587
|
"/2015-01-01/es/ccs/inboundConnection/search";
|
|
610
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
611
|
-
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
588
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
612
589
|
return [2, new __HttpRequest({
|
|
613
590
|
protocol: protocol,
|
|
614
591
|
hostname: hostname,
|
|
@@ -633,8 +610,7 @@ export var serializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCo
|
|
|
633
610
|
};
|
|
634
611
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
635
612
|
"/2015-01-01/es/ccs/outboundConnection/search";
|
|
636
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
637
|
-
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
613
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
638
614
|
return [2, new __HttpRequest({
|
|
639
615
|
protocol: protocol,
|
|
640
616
|
hostname: hostname,
|
|
@@ -658,8 +634,7 @@ export var serializeAws_restJson1DescribePackagesCommand = function (input, cont
|
|
|
658
634
|
"content-type": "application/json",
|
|
659
635
|
};
|
|
660
636
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/packages/describe";
|
|
661
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
662
|
-
input.Filters !== null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
637
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
663
638
|
return [2, new __HttpRequest({
|
|
664
639
|
protocol: protocol,
|
|
665
640
|
hostname: hostname,
|
|
@@ -1067,9 +1042,7 @@ export var serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCo
|
|
|
1067
1042
|
};
|
|
1068
1043
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1069
1044
|
"/2015-01-01/es/purchaseReservedInstanceOffering";
|
|
1070
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.InstanceCount
|
|
1071
|
-
input.ReservationName !== null && { ReservationName: input.ReservationName })), (input.ReservedElasticsearchInstanceOfferingId !== undefined &&
|
|
1072
|
-
input.ReservedElasticsearchInstanceOfferingId !== null && {
|
|
1045
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.InstanceCount != null && { InstanceCount: input.InstanceCount })), (input.ReservationName != null && { ReservationName: input.ReservationName })), (input.ReservedElasticsearchInstanceOfferingId != null && {
|
|
1073
1046
|
ReservedElasticsearchInstanceOfferingId: input.ReservedElasticsearchInstanceOfferingId,
|
|
1074
1047
|
})));
|
|
1075
1048
|
return [2, new __HttpRequest({
|
|
@@ -1127,8 +1100,7 @@ export var serializeAws_restJson1RemoveTagsCommand = function (input, context) {
|
|
|
1127
1100
|
"content-type": "application/json",
|
|
1128
1101
|
};
|
|
1129
1102
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/tags-removal";
|
|
1130
|
-
body = JSON.stringify(__assign(__assign({}, (input.ARN
|
|
1131
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) })));
|
|
1103
|
+
body = JSON.stringify(__assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) })));
|
|
1132
1104
|
return [2, new __HttpRequest({
|
|
1133
1105
|
protocol: protocol,
|
|
1134
1106
|
hostname: hostname,
|
|
@@ -1153,7 +1125,7 @@ export var serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand
|
|
|
1153
1125
|
};
|
|
1154
1126
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1155
1127
|
"/2015-01-01/es/serviceSoftwareUpdate/start";
|
|
1156
|
-
body = JSON.stringify(__assign({}, (input.DomainName
|
|
1128
|
+
body = JSON.stringify(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })));
|
|
1157
1129
|
return [2, new __HttpRequest({
|
|
1158
1130
|
protocol: protocol,
|
|
1159
1131
|
hostname: hostname,
|
|
@@ -1187,40 +1159,27 @@ export var serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = functi
|
|
|
1187
1159
|
else {
|
|
1188
1160
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1189
1161
|
}
|
|
1190
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies
|
|
1191
|
-
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
1192
|
-
input.AdvancedOptions !== null && {
|
|
1162
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions != null && {
|
|
1193
1163
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1194
|
-
})), (input.AdvancedSecurityOptions
|
|
1195
|
-
input.AdvancedSecurityOptions !== null && {
|
|
1164
|
+
})), (input.AdvancedSecurityOptions != null && {
|
|
1196
1165
|
AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
|
|
1197
|
-
})), (input.AutoTuneOptions
|
|
1198
|
-
input.AutoTuneOptions !== null && {
|
|
1166
|
+
})), (input.AutoTuneOptions != null && {
|
|
1199
1167
|
AutoTuneOptions: serializeAws_restJson1AutoTuneOptions(input.AutoTuneOptions, context),
|
|
1200
|
-
})), (input.CognitoOptions
|
|
1201
|
-
input.CognitoOptions !== null && {
|
|
1168
|
+
})), (input.CognitoOptions != null && {
|
|
1202
1169
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
1203
|
-
})), (input.DomainEndpointOptions
|
|
1204
|
-
input.DomainEndpointOptions !== null && {
|
|
1170
|
+
})), (input.DomainEndpointOptions != null && {
|
|
1205
1171
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1206
|
-
})), (input.DryRun
|
|
1207
|
-
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.ElasticsearchClusterConfig !== undefined &&
|
|
1208
|
-
input.ElasticsearchClusterConfig !== null && {
|
|
1172
|
+
})), (input.DryRun != null && { DryRun: input.DryRun })), (input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.ElasticsearchClusterConfig != null && {
|
|
1209
1173
|
ElasticsearchClusterConfig: serializeAws_restJson1ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
|
|
1210
|
-
})), (input.EncryptionAtRestOptions
|
|
1211
|
-
input.EncryptionAtRestOptions !== null && {
|
|
1174
|
+
})), (input.EncryptionAtRestOptions != null && {
|
|
1212
1175
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
1213
|
-
})), (input.LogPublishingOptions
|
|
1214
|
-
input.LogPublishingOptions !== null && {
|
|
1176
|
+
})), (input.LogPublishingOptions != null && {
|
|
1215
1177
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
1216
|
-
})), (input.NodeToNodeEncryptionOptions
|
|
1217
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
1178
|
+
})), (input.NodeToNodeEncryptionOptions != null && {
|
|
1218
1179
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
1219
|
-
})), (input.SnapshotOptions
|
|
1220
|
-
input.SnapshotOptions !== null && {
|
|
1180
|
+
})), (input.SnapshotOptions != null && {
|
|
1221
1181
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
1222
|
-
})), (input.VPCOptions
|
|
1223
|
-
input.VPCOptions !== null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
1182
|
+
})), (input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
1224
1183
|
return [2, new __HttpRequest({
|
|
1225
1184
|
protocol: protocol,
|
|
1226
1185
|
hostname: hostname,
|
|
@@ -1244,9 +1203,7 @@ export var serializeAws_restJson1UpdatePackageCommand = function (input, context
|
|
|
1244
1203
|
"content-type": "application/json",
|
|
1245
1204
|
};
|
|
1246
1205
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/packages/update";
|
|
1247
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CommitMessage
|
|
1248
|
-
input.PackageDescription !== null && { PackageDescription: input.PackageDescription })), (input.PackageID !== undefined && input.PackageID !== null && { PackageID: input.PackageID })), (input.PackageSource !== undefined &&
|
|
1249
|
-
input.PackageSource !== null && {
|
|
1206
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CommitMessage != null && { CommitMessage: input.CommitMessage })), (input.PackageDescription != null && { PackageDescription: input.PackageDescription })), (input.PackageID != null && { PackageID: input.PackageID })), (input.PackageSource != null && {
|
|
1250
1207
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
1251
1208
|
})));
|
|
1252
1209
|
return [2, new __HttpRequest({
|
|
@@ -1272,8 +1229,7 @@ export var serializeAws_restJson1UpgradeElasticsearchDomainCommand = function (i
|
|
|
1272
1229
|
"content-type": "application/json",
|
|
1273
1230
|
};
|
|
1274
1231
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/es/upgradeDomain";
|
|
1275
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DomainName
|
|
1276
|
-
input.PerformCheckOnly !== null && { PerformCheckOnly: input.PerformCheckOnly })), (input.TargetVersion !== undefined && input.TargetVersion !== null && { TargetVersion: input.TargetVersion })));
|
|
1232
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.PerformCheckOnly != null && { PerformCheckOnly: input.PerformCheckOnly })), (input.TargetVersion != null && { TargetVersion: input.TargetVersion })));
|
|
1277
1233
|
return [2, new __HttpRequest({
|
|
1278
1234
|
protocol: protocol,
|
|
1279
1235
|
hostname: hostname,
|
|
@@ -1311,7 +1267,7 @@ export var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionComm
|
|
|
1311
1267
|
});
|
|
1312
1268
|
}); };
|
|
1313
1269
|
var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1314
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1270
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1315
1271
|
var _c;
|
|
1316
1272
|
return __generator(this, function (_d) {
|
|
1317
1273
|
switch (_d.label) {
|
|
@@ -1321,7 +1277,6 @@ var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandErro
|
|
|
1321
1277
|
return [4, parseBody(output.body, context)];
|
|
1322
1278
|
case 1:
|
|
1323
1279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1324
|
-
errorCode = "UnknownError";
|
|
1325
1280
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
1281
|
_b = errorCode;
|
|
1327
1282
|
switch (_b) {
|
|
@@ -1341,10 +1296,12 @@ var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandErro
|
|
|
1341
1296
|
case 7: throw _d.sent();
|
|
1342
1297
|
case 8:
|
|
1343
1298
|
parsedBody = parsedOutput.body;
|
|
1299
|
+
$metadata = deserializeMetadata(output);
|
|
1300
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1344
1301
|
response = new __BaseException({
|
|
1345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1302
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1346
1303
|
$fault: "client",
|
|
1347
|
-
$metadata:
|
|
1304
|
+
$metadata: $metadata,
|
|
1348
1305
|
});
|
|
1349
1306
|
throw __decorateServiceException(response, parsedBody);
|
|
1350
1307
|
}
|
|
@@ -1369,7 +1326,7 @@ export var deserializeAws_restJson1AddTagsCommand = function (output, context) {
|
|
|
1369
1326
|
});
|
|
1370
1327
|
}); };
|
|
1371
1328
|
var deserializeAws_restJson1AddTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1329
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1373
1330
|
var _c;
|
|
1374
1331
|
return __generator(this, function (_d) {
|
|
1375
1332
|
switch (_d.label) {
|
|
@@ -1379,7 +1336,6 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1379
1336
|
return [4, parseBody(output.body, context)];
|
|
1380
1337
|
case 1:
|
|
1381
1338
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1382
|
-
errorCode = "UnknownError";
|
|
1383
1339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1340
|
_b = errorCode;
|
|
1385
1341
|
switch (_b) {
|
|
@@ -1403,10 +1359,12 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1403
1359
|
case 9: throw _d.sent();
|
|
1404
1360
|
case 10:
|
|
1405
1361
|
parsedBody = parsedOutput.body;
|
|
1362
|
+
$metadata = deserializeMetadata(output);
|
|
1363
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1406
1364
|
response = new __BaseException({
|
|
1407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1408
1366
|
$fault: "client",
|
|
1409
|
-
$metadata:
|
|
1367
|
+
$metadata: $metadata,
|
|
1410
1368
|
});
|
|
1411
1369
|
throw __decorateServiceException(response, parsedBody);
|
|
1412
1370
|
}
|
|
@@ -1437,7 +1395,7 @@ export var deserializeAws_restJson1AssociatePackageCommand = function (output, c
|
|
|
1437
1395
|
});
|
|
1438
1396
|
}); };
|
|
1439
1397
|
var deserializeAws_restJson1AssociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1440
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1441
1399
|
var _c;
|
|
1442
1400
|
return __generator(this, function (_d) {
|
|
1443
1401
|
switch (_d.label) {
|
|
@@ -1447,7 +1405,6 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1447
1405
|
return [4, parseBody(output.body, context)];
|
|
1448
1406
|
case 1:
|
|
1449
1407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1450
|
-
errorCode = "UnknownError";
|
|
1451
1408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1409
|
_b = errorCode;
|
|
1453
1410
|
switch (_b) {
|
|
@@ -1479,10 +1436,12 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1479
1436
|
case 13: throw _d.sent();
|
|
1480
1437
|
case 14:
|
|
1481
1438
|
parsedBody = parsedOutput.body;
|
|
1439
|
+
$metadata = deserializeMetadata(output);
|
|
1440
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1482
1441
|
response = new __BaseException({
|
|
1483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1484
1443
|
$fault: "client",
|
|
1485
|
-
$metadata:
|
|
1444
|
+
$metadata: $metadata,
|
|
1486
1445
|
});
|
|
1487
1446
|
throw __decorateServiceException(response, parsedBody);
|
|
1488
1447
|
}
|
|
@@ -1513,7 +1472,7 @@ export var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateComma
|
|
|
1513
1472
|
});
|
|
1514
1473
|
}); };
|
|
1515
1474
|
var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1516
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1475
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1517
1476
|
var _c;
|
|
1518
1477
|
return __generator(this, function (_d) {
|
|
1519
1478
|
switch (_d.label) {
|
|
@@ -1523,7 +1482,6 @@ var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError
|
|
|
1523
1482
|
return [4, parseBody(output.body, context)];
|
|
1524
1483
|
case 1:
|
|
1525
1484
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1526
|
-
errorCode = "UnknownError";
|
|
1527
1485
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1486
|
_b = errorCode;
|
|
1529
1487
|
switch (_b) {
|
|
@@ -1547,10 +1505,12 @@ var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError
|
|
|
1547
1505
|
case 9: throw _d.sent();
|
|
1548
1506
|
case 10:
|
|
1549
1507
|
parsedBody = parsedOutput.body;
|
|
1508
|
+
$metadata = deserializeMetadata(output);
|
|
1509
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1550
1510
|
response = new __BaseException({
|
|
1551
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1552
1512
|
$fault: "client",
|
|
1553
|
-
$metadata:
|
|
1513
|
+
$metadata: $metadata,
|
|
1554
1514
|
});
|
|
1555
1515
|
throw __decorateServiceException(response, parsedBody);
|
|
1556
1516
|
}
|
|
@@ -1581,7 +1541,7 @@ export var deserializeAws_restJson1CreateElasticsearchDomainCommand = function (
|
|
|
1581
1541
|
});
|
|
1582
1542
|
}); };
|
|
1583
1543
|
var deserializeAws_restJson1CreateElasticsearchDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1544
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1585
1545
|
var _c;
|
|
1586
1546
|
return __generator(this, function (_d) {
|
|
1587
1547
|
switch (_d.label) {
|
|
@@ -1591,7 +1551,6 @@ var deserializeAws_restJson1CreateElasticsearchDomainCommandError = function (ou
|
|
|
1591
1551
|
return [4, parseBody(output.body, context)];
|
|
1592
1552
|
case 1:
|
|
1593
1553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1594
|
-
errorCode = "UnknownError";
|
|
1595
1554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
1555
|
_b = errorCode;
|
|
1597
1556
|
switch (_b) {
|
|
@@ -1627,10 +1586,12 @@ var deserializeAws_restJson1CreateElasticsearchDomainCommandError = function (ou
|
|
|
1627
1586
|
case 15: throw _d.sent();
|
|
1628
1587
|
case 16:
|
|
1629
1588
|
parsedBody = parsedOutput.body;
|
|
1589
|
+
$metadata = deserializeMetadata(output);
|
|
1590
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1630
1591
|
response = new __BaseException({
|
|
1631
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1592
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1632
1593
|
$fault: "client",
|
|
1633
|
-
$metadata:
|
|
1594
|
+
$metadata: $metadata,
|
|
1634
1595
|
});
|
|
1635
1596
|
throw __decorateServiceException(response, parsedBody);
|
|
1636
1597
|
}
|
|
@@ -1677,7 +1638,7 @@ export var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCom
|
|
|
1677
1638
|
});
|
|
1678
1639
|
}); };
|
|
1679
1640
|
var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1641
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1681
1642
|
var _c;
|
|
1682
1643
|
return __generator(this, function (_d) {
|
|
1683
1644
|
switch (_d.label) {
|
|
@@ -1687,7 +1648,6 @@ var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandErr
|
|
|
1687
1648
|
return [4, parseBody(output.body, context)];
|
|
1688
1649
|
case 1:
|
|
1689
1650
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1690
|
-
errorCode = "UnknownError";
|
|
1691
1651
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1652
|
_b = errorCode;
|
|
1693
1653
|
switch (_b) {
|
|
@@ -1711,10 +1671,12 @@ var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandErr
|
|
|
1711
1671
|
case 9: throw _d.sent();
|
|
1712
1672
|
case 10:
|
|
1713
1673
|
parsedBody = parsedOutput.body;
|
|
1674
|
+
$metadata = deserializeMetadata(output);
|
|
1675
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1714
1676
|
response = new __BaseException({
|
|
1715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1677
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1716
1678
|
$fault: "client",
|
|
1717
|
-
$metadata:
|
|
1679
|
+
$metadata: $metadata,
|
|
1718
1680
|
});
|
|
1719
1681
|
throw __decorateServiceException(response, parsedBody);
|
|
1720
1682
|
}
|
|
@@ -1745,7 +1707,7 @@ export var deserializeAws_restJson1CreatePackageCommand = function (output, cont
|
|
|
1745
1707
|
});
|
|
1746
1708
|
}); };
|
|
1747
1709
|
var deserializeAws_restJson1CreatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1710
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1749
1711
|
var _c;
|
|
1750
1712
|
return __generator(this, function (_d) {
|
|
1751
1713
|
switch (_d.label) {
|
|
@@ -1755,7 +1717,6 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1755
1717
|
return [4, parseBody(output.body, context)];
|
|
1756
1718
|
case 1:
|
|
1757
1719
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1758
|
-
errorCode = "UnknownError";
|
|
1759
1720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1721
|
_b = errorCode;
|
|
1761
1722
|
switch (_b) {
|
|
@@ -1791,10 +1752,12 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1791
1752
|
case 15: throw _d.sent();
|
|
1792
1753
|
case 16:
|
|
1793
1754
|
parsedBody = parsedOutput.body;
|
|
1755
|
+
$metadata = deserializeMetadata(output);
|
|
1756
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1794
1757
|
response = new __BaseException({
|
|
1795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1796
1759
|
$fault: "client",
|
|
1797
|
-
$metadata:
|
|
1760
|
+
$metadata: $metadata,
|
|
1798
1761
|
});
|
|
1799
1762
|
throw __decorateServiceException(response, parsedBody);
|
|
1800
1763
|
}
|
|
@@ -1825,7 +1788,7 @@ export var deserializeAws_restJson1DeleteElasticsearchDomainCommand = function (
|
|
|
1825
1788
|
});
|
|
1826
1789
|
}); };
|
|
1827
1790
|
var deserializeAws_restJson1DeleteElasticsearchDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1828
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1791
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1829
1792
|
var _c;
|
|
1830
1793
|
return __generator(this, function (_d) {
|
|
1831
1794
|
switch (_d.label) {
|
|
@@ -1835,7 +1798,6 @@ var deserializeAws_restJson1DeleteElasticsearchDomainCommandError = function (ou
|
|
|
1835
1798
|
return [4, parseBody(output.body, context)];
|
|
1836
1799
|
case 1:
|
|
1837
1800
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1838
|
-
errorCode = "UnknownError";
|
|
1839
1801
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1802
|
_b = errorCode;
|
|
1841
1803
|
switch (_b) {
|
|
@@ -1859,10 +1821,12 @@ var deserializeAws_restJson1DeleteElasticsearchDomainCommandError = function (ou
|
|
|
1859
1821
|
case 9: throw _d.sent();
|
|
1860
1822
|
case 10:
|
|
1861
1823
|
parsedBody = parsedOutput.body;
|
|
1824
|
+
$metadata = deserializeMetadata(output);
|
|
1825
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1862
1826
|
response = new __BaseException({
|
|
1863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1864
1828
|
$fault: "client",
|
|
1865
|
-
$metadata:
|
|
1829
|
+
$metadata: $metadata,
|
|
1866
1830
|
});
|
|
1867
1831
|
throw __decorateServiceException(response, parsedBody);
|
|
1868
1832
|
}
|
|
@@ -1887,7 +1851,7 @@ export var deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = funct
|
|
|
1887
1851
|
});
|
|
1888
1852
|
}); };
|
|
1889
1853
|
var deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1890
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1854
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1891
1855
|
var _c;
|
|
1892
1856
|
return __generator(this, function (_d) {
|
|
1893
1857
|
switch (_d.label) {
|
|
@@ -1897,7 +1861,6 @@ var deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = functio
|
|
|
1897
1861
|
return [4, parseBody(output.body, context)];
|
|
1898
1862
|
case 1:
|
|
1899
1863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1900
|
-
errorCode = "UnknownError";
|
|
1901
1864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
1865
|
_b = errorCode;
|
|
1903
1866
|
switch (_b) {
|
|
@@ -1917,10 +1880,12 @@ var deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = functio
|
|
|
1917
1880
|
case 7: throw _d.sent();
|
|
1918
1881
|
case 8:
|
|
1919
1882
|
parsedBody = parsedOutput.body;
|
|
1883
|
+
$metadata = deserializeMetadata(output);
|
|
1884
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1920
1885
|
response = new __BaseException({
|
|
1921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1922
1887
|
$fault: "client",
|
|
1923
|
-
$metadata:
|
|
1888
|
+
$metadata: $metadata,
|
|
1924
1889
|
});
|
|
1925
1890
|
throw __decorateServiceException(response, parsedBody);
|
|
1926
1891
|
}
|
|
@@ -1951,7 +1916,7 @@ export var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionComm
|
|
|
1951
1916
|
});
|
|
1952
1917
|
}); };
|
|
1953
1918
|
var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1954
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1919
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1955
1920
|
var _c;
|
|
1956
1921
|
return __generator(this, function (_d) {
|
|
1957
1922
|
switch (_d.label) {
|
|
@@ -1961,7 +1926,6 @@ var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandErro
|
|
|
1961
1926
|
return [4, parseBody(output.body, context)];
|
|
1962
1927
|
case 1:
|
|
1963
1928
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1964
|
-
errorCode = "UnknownError";
|
|
1965
1929
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
1930
|
_b = errorCode;
|
|
1967
1931
|
switch (_b) {
|
|
@@ -1977,10 +1941,12 @@ var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandErro
|
|
|
1977
1941
|
case 5: throw _d.sent();
|
|
1978
1942
|
case 6:
|
|
1979
1943
|
parsedBody = parsedOutput.body;
|
|
1944
|
+
$metadata = deserializeMetadata(output);
|
|
1945
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1980
1946
|
response = new __BaseException({
|
|
1981
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1947
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1982
1948
|
$fault: "client",
|
|
1983
|
-
$metadata:
|
|
1949
|
+
$metadata: $metadata,
|
|
1984
1950
|
});
|
|
1985
1951
|
throw __decorateServiceException(response, parsedBody);
|
|
1986
1952
|
}
|
|
@@ -2011,7 +1977,7 @@ export var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCom
|
|
|
2011
1977
|
});
|
|
2012
1978
|
}); };
|
|
2013
1979
|
var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2014
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1980
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2015
1981
|
var _c;
|
|
2016
1982
|
return __generator(this, function (_d) {
|
|
2017
1983
|
switch (_d.label) {
|
|
@@ -2021,7 +1987,6 @@ var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandErr
|
|
|
2021
1987
|
return [4, parseBody(output.body, context)];
|
|
2022
1988
|
case 1:
|
|
2023
1989
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2024
|
-
errorCode = "UnknownError";
|
|
2025
1990
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
1991
|
_b = errorCode;
|
|
2027
1992
|
switch (_b) {
|
|
@@ -2037,10 +2002,12 @@ var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandErr
|
|
|
2037
2002
|
case 5: throw _d.sent();
|
|
2038
2003
|
case 6:
|
|
2039
2004
|
parsedBody = parsedOutput.body;
|
|
2005
|
+
$metadata = deserializeMetadata(output);
|
|
2006
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2040
2007
|
response = new __BaseException({
|
|
2041
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2042
2009
|
$fault: "client",
|
|
2043
|
-
$metadata:
|
|
2010
|
+
$metadata: $metadata,
|
|
2044
2011
|
});
|
|
2045
2012
|
throw __decorateServiceException(response, parsedBody);
|
|
2046
2013
|
}
|
|
@@ -2071,7 +2038,7 @@ export var deserializeAws_restJson1DeletePackageCommand = function (output, cont
|
|
|
2071
2038
|
});
|
|
2072
2039
|
}); };
|
|
2073
2040
|
var deserializeAws_restJson1DeletePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2074
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2041
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2075
2042
|
var _c;
|
|
2076
2043
|
return __generator(this, function (_d) {
|
|
2077
2044
|
switch (_d.label) {
|
|
@@ -2081,7 +2048,6 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
2081
2048
|
return [4, parseBody(output.body, context)];
|
|
2082
2049
|
case 1:
|
|
2083
2050
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2084
|
-
errorCode = "UnknownError";
|
|
2085
2051
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
2052
|
_b = errorCode;
|
|
2087
2053
|
switch (_b) {
|
|
@@ -2113,10 +2079,12 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
2113
2079
|
case 13: throw _d.sent();
|
|
2114
2080
|
case 14:
|
|
2115
2081
|
parsedBody = parsedOutput.body;
|
|
2082
|
+
$metadata = deserializeMetadata(output);
|
|
2083
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2116
2084
|
response = new __BaseException({
|
|
2117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2085
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2118
2086
|
$fault: "client",
|
|
2119
|
-
$metadata:
|
|
2087
|
+
$metadata: $metadata,
|
|
2120
2088
|
});
|
|
2121
2089
|
throw __decorateServiceException(response, parsedBody);
|
|
2122
2090
|
}
|
|
@@ -2151,7 +2119,7 @@ export var deserializeAws_restJson1DescribeDomainAutoTunesCommand = function (ou
|
|
|
2151
2119
|
});
|
|
2152
2120
|
}); };
|
|
2153
2121
|
var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2154
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2122
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2155
2123
|
var _c;
|
|
2156
2124
|
return __generator(this, function (_d) {
|
|
2157
2125
|
switch (_d.label) {
|
|
@@ -2161,7 +2129,6 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2161
2129
|
return [4, parseBody(output.body, context)];
|
|
2162
2130
|
case 1:
|
|
2163
2131
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2164
|
-
errorCode = "UnknownError";
|
|
2165
2132
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2166
2133
|
_b = errorCode;
|
|
2167
2134
|
switch (_b) {
|
|
@@ -2185,10 +2152,12 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2185
2152
|
case 9: throw _d.sent();
|
|
2186
2153
|
case 10:
|
|
2187
2154
|
parsedBody = parsedOutput.body;
|
|
2155
|
+
$metadata = deserializeMetadata(output);
|
|
2156
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2188
2157
|
response = new __BaseException({
|
|
2189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2158
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2190
2159
|
$fault: "client",
|
|
2191
|
-
$metadata:
|
|
2160
|
+
$metadata: $metadata,
|
|
2192
2161
|
});
|
|
2193
2162
|
throw __decorateServiceException(response, parsedBody);
|
|
2194
2163
|
}
|
|
@@ -2219,7 +2188,7 @@ export var deserializeAws_restJson1DescribeDomainChangeProgressCommand = functio
|
|
|
2219
2188
|
});
|
|
2220
2189
|
}); };
|
|
2221
2190
|
var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2222
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2191
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2223
2192
|
var _c;
|
|
2224
2193
|
return __generator(this, function (_d) {
|
|
2225
2194
|
switch (_d.label) {
|
|
@@ -2229,7 +2198,6 @@ var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function
|
|
|
2229
2198
|
return [4, parseBody(output.body, context)];
|
|
2230
2199
|
case 1:
|
|
2231
2200
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2232
|
-
errorCode = "UnknownError";
|
|
2233
2201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
2202
|
_b = errorCode;
|
|
2235
2203
|
switch (_b) {
|
|
@@ -2253,10 +2221,12 @@ var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function
|
|
|
2253
2221
|
case 9: throw _d.sent();
|
|
2254
2222
|
case 10:
|
|
2255
2223
|
parsedBody = parsedOutput.body;
|
|
2224
|
+
$metadata = deserializeMetadata(output);
|
|
2225
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2256
2226
|
response = new __BaseException({
|
|
2257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2227
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2258
2228
|
$fault: "client",
|
|
2259
|
-
$metadata:
|
|
2229
|
+
$metadata: $metadata,
|
|
2260
2230
|
});
|
|
2261
2231
|
throw __decorateServiceException(response, parsedBody);
|
|
2262
2232
|
}
|
|
@@ -2287,7 +2257,7 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainCommand = function
|
|
|
2287
2257
|
});
|
|
2288
2258
|
}); };
|
|
2289
2259
|
var deserializeAws_restJson1DescribeElasticsearchDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2290
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2260
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2291
2261
|
var _c;
|
|
2292
2262
|
return __generator(this, function (_d) {
|
|
2293
2263
|
switch (_d.label) {
|
|
@@ -2297,7 +2267,6 @@ var deserializeAws_restJson1DescribeElasticsearchDomainCommandError = function (
|
|
|
2297
2267
|
return [4, parseBody(output.body, context)];
|
|
2298
2268
|
case 1:
|
|
2299
2269
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2300
|
-
errorCode = "UnknownError";
|
|
2301
2270
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2271
|
_b = errorCode;
|
|
2303
2272
|
switch (_b) {
|
|
@@ -2321,10 +2290,12 @@ var deserializeAws_restJson1DescribeElasticsearchDomainCommandError = function (
|
|
|
2321
2290
|
case 9: throw _d.sent();
|
|
2322
2291
|
case 10:
|
|
2323
2292
|
parsedBody = parsedOutput.body;
|
|
2293
|
+
$metadata = deserializeMetadata(output);
|
|
2294
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2324
2295
|
response = new __BaseException({
|
|
2325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2326
2297
|
$fault: "client",
|
|
2327
|
-
$metadata:
|
|
2298
|
+
$metadata: $metadata,
|
|
2328
2299
|
});
|
|
2329
2300
|
throw __decorateServiceException(response, parsedBody);
|
|
2330
2301
|
}
|
|
@@ -2355,7 +2326,7 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = fu
|
|
|
2355
2326
|
});
|
|
2356
2327
|
}); };
|
|
2357
2328
|
var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2358
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2329
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2359
2330
|
var _c;
|
|
2360
2331
|
return __generator(this, function (_d) {
|
|
2361
2332
|
switch (_d.label) {
|
|
@@ -2365,7 +2336,6 @@ var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = func
|
|
|
2365
2336
|
return [4, parseBody(output.body, context)];
|
|
2366
2337
|
case 1:
|
|
2367
2338
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2368
|
-
errorCode = "UnknownError";
|
|
2369
2339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
2340
|
_b = errorCode;
|
|
2371
2341
|
switch (_b) {
|
|
@@ -2389,10 +2359,12 @@ var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = func
|
|
|
2389
2359
|
case 9: throw _d.sent();
|
|
2390
2360
|
case 10:
|
|
2391
2361
|
parsedBody = parsedOutput.body;
|
|
2362
|
+
$metadata = deserializeMetadata(output);
|
|
2363
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2392
2364
|
response = new __BaseException({
|
|
2393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2394
2366
|
$fault: "client",
|
|
2395
|
-
$metadata:
|
|
2367
|
+
$metadata: $metadata,
|
|
2396
2368
|
});
|
|
2397
2369
|
throw __decorateServiceException(response, parsedBody);
|
|
2398
2370
|
}
|
|
@@ -2423,7 +2395,7 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainsCommand = functio
|
|
|
2423
2395
|
});
|
|
2424
2396
|
}); };
|
|
2425
2397
|
var deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2426
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2427
2399
|
var _c;
|
|
2428
2400
|
return __generator(this, function (_d) {
|
|
2429
2401
|
switch (_d.label) {
|
|
@@ -2433,7 +2405,6 @@ var deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = function
|
|
|
2433
2405
|
return [4, parseBody(output.body, context)];
|
|
2434
2406
|
case 1:
|
|
2435
2407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2436
|
-
errorCode = "UnknownError";
|
|
2437
2408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
2409
|
_b = errorCode;
|
|
2439
2410
|
switch (_b) {
|
|
@@ -2453,10 +2424,12 @@ var deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = function
|
|
|
2453
2424
|
case 7: throw _d.sent();
|
|
2454
2425
|
case 8:
|
|
2455
2426
|
parsedBody = parsedOutput.body;
|
|
2427
|
+
$metadata = deserializeMetadata(output);
|
|
2428
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2456
2429
|
response = new __BaseException({
|
|
2457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2458
2431
|
$fault: "client",
|
|
2459
|
-
$metadata:
|
|
2432
|
+
$metadata: $metadata,
|
|
2460
2433
|
});
|
|
2461
2434
|
throw __decorateServiceException(response, parsedBody);
|
|
2462
2435
|
}
|
|
@@ -2487,7 +2460,7 @@ export var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsComman
|
|
|
2487
2460
|
});
|
|
2488
2461
|
}); };
|
|
2489
2462
|
var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2490
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2463
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2491
2464
|
var _c;
|
|
2492
2465
|
return __generator(this, function (_d) {
|
|
2493
2466
|
switch (_d.label) {
|
|
@@ -2497,7 +2470,6 @@ var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError
|
|
|
2497
2470
|
return [4, parseBody(output.body, context)];
|
|
2498
2471
|
case 1:
|
|
2499
2472
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2500
|
-
errorCode = "UnknownError";
|
|
2501
2473
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
2474
|
_b = errorCode;
|
|
2503
2475
|
switch (_b) {
|
|
@@ -2529,10 +2501,12 @@ var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError
|
|
|
2529
2501
|
case 13: throw _d.sent();
|
|
2530
2502
|
case 14:
|
|
2531
2503
|
parsedBody = parsedOutput.body;
|
|
2504
|
+
$metadata = deserializeMetadata(output);
|
|
2505
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2532
2506
|
response = new __BaseException({
|
|
2533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2507
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2534
2508
|
$fault: "client",
|
|
2535
|
-
$metadata:
|
|
2509
|
+
$metadata: $metadata,
|
|
2536
2510
|
});
|
|
2537
2511
|
throw __decorateServiceException(response, parsedBody);
|
|
2538
2512
|
}
|
|
@@ -2567,7 +2541,7 @@ export var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsC
|
|
|
2567
2541
|
});
|
|
2568
2542
|
}); };
|
|
2569
2543
|
var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2570
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2544
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2571
2545
|
var _c;
|
|
2572
2546
|
return __generator(this, function (_d) {
|
|
2573
2547
|
switch (_d.label) {
|
|
@@ -2577,7 +2551,6 @@ var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandE
|
|
|
2577
2551
|
return [4, parseBody(output.body, context)];
|
|
2578
2552
|
case 1:
|
|
2579
2553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2580
|
-
errorCode = "UnknownError";
|
|
2581
2554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
2555
|
_b = errorCode;
|
|
2583
2556
|
switch (_b) {
|
|
@@ -2593,10 +2566,12 @@ var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandE
|
|
|
2593
2566
|
case 5: throw _d.sent();
|
|
2594
2567
|
case 6:
|
|
2595
2568
|
parsedBody = parsedOutput.body;
|
|
2569
|
+
$metadata = deserializeMetadata(output);
|
|
2570
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2596
2571
|
response = new __BaseException({
|
|
2597
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2598
2573
|
$fault: "client",
|
|
2599
|
-
$metadata:
|
|
2574
|
+
$metadata: $metadata,
|
|
2600
2575
|
});
|
|
2601
2576
|
throw __decorateServiceException(response, parsedBody);
|
|
2602
2577
|
}
|
|
@@ -2631,7 +2606,7 @@ export var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnections
|
|
|
2631
2606
|
});
|
|
2632
2607
|
}); };
|
|
2633
2608
|
var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2634
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2609
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2635
2610
|
var _c;
|
|
2636
2611
|
return __generator(this, function (_d) {
|
|
2637
2612
|
switch (_d.label) {
|
|
@@ -2641,7 +2616,6 @@ var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand
|
|
|
2641
2616
|
return [4, parseBody(output.body, context)];
|
|
2642
2617
|
case 1:
|
|
2643
2618
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2644
|
-
errorCode = "UnknownError";
|
|
2645
2619
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
2620
|
_b = errorCode;
|
|
2647
2621
|
switch (_b) {
|
|
@@ -2657,10 +2631,12 @@ var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand
|
|
|
2657
2631
|
case 5: throw _d.sent();
|
|
2658
2632
|
case 6:
|
|
2659
2633
|
parsedBody = parsedOutput.body;
|
|
2634
|
+
$metadata = deserializeMetadata(output);
|
|
2635
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2660
2636
|
response = new __BaseException({
|
|
2661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2662
2638
|
$fault: "client",
|
|
2663
|
-
$metadata:
|
|
2639
|
+
$metadata: $metadata,
|
|
2664
2640
|
});
|
|
2665
2641
|
throw __decorateServiceException(response, parsedBody);
|
|
2666
2642
|
}
|
|
@@ -2695,7 +2671,7 @@ export var deserializeAws_restJson1DescribePackagesCommand = function (output, c
|
|
|
2695
2671
|
});
|
|
2696
2672
|
}); };
|
|
2697
2673
|
var deserializeAws_restJson1DescribePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2698
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2674
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2699
2675
|
var _c;
|
|
2700
2676
|
return __generator(this, function (_d) {
|
|
2701
2677
|
switch (_d.label) {
|
|
@@ -2705,7 +2681,6 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2705
2681
|
return [4, parseBody(output.body, context)];
|
|
2706
2682
|
case 1:
|
|
2707
2683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2708
|
-
errorCode = "UnknownError";
|
|
2709
2684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
2685
|
_b = errorCode;
|
|
2711
2686
|
switch (_b) {
|
|
@@ -2733,10 +2708,12 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2733
2708
|
case 11: throw _d.sent();
|
|
2734
2709
|
case 12:
|
|
2735
2710
|
parsedBody = parsedOutput.body;
|
|
2711
|
+
$metadata = deserializeMetadata(output);
|
|
2712
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2736
2713
|
response = new __BaseException({
|
|
2737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2714
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2738
2715
|
$fault: "client",
|
|
2739
|
-
$metadata:
|
|
2716
|
+
$metadata: $metadata,
|
|
2740
2717
|
});
|
|
2741
2718
|
throw __decorateServiceException(response, parsedBody);
|
|
2742
2719
|
}
|
|
@@ -2772,7 +2749,7 @@ export var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOffering
|
|
|
2772
2749
|
});
|
|
2773
2750
|
}); };
|
|
2774
2751
|
var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2775
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2752
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2776
2753
|
var _c;
|
|
2777
2754
|
return __generator(this, function (_d) {
|
|
2778
2755
|
switch (_d.label) {
|
|
@@ -2782,7 +2759,6 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComman
|
|
|
2782
2759
|
return [4, parseBody(output.body, context)];
|
|
2783
2760
|
case 1:
|
|
2784
2761
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2785
|
-
errorCode = "UnknownError";
|
|
2786
2762
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
2763
|
_b = errorCode;
|
|
2788
2764
|
switch (_b) {
|
|
@@ -2806,10 +2782,12 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComman
|
|
|
2806
2782
|
case 9: throw _d.sent();
|
|
2807
2783
|
case 10:
|
|
2808
2784
|
parsedBody = parsedOutput.body;
|
|
2785
|
+
$metadata = deserializeMetadata(output);
|
|
2786
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2809
2787
|
response = new __BaseException({
|
|
2810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2811
2789
|
$fault: "client",
|
|
2812
|
-
$metadata:
|
|
2790
|
+
$metadata: $metadata,
|
|
2813
2791
|
});
|
|
2814
2792
|
throw __decorateServiceException(response, parsedBody);
|
|
2815
2793
|
}
|
|
@@ -2844,7 +2822,7 @@ export var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand
|
|
|
2844
2822
|
});
|
|
2845
2823
|
}); };
|
|
2846
2824
|
var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2847
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2825
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2848
2826
|
var _c;
|
|
2849
2827
|
return __generator(this, function (_d) {
|
|
2850
2828
|
switch (_d.label) {
|
|
@@ -2854,7 +2832,6 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError =
|
|
|
2854
2832
|
return [4, parseBody(output.body, context)];
|
|
2855
2833
|
case 1:
|
|
2856
2834
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2857
|
-
errorCode = "UnknownError";
|
|
2858
2835
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2836
|
_b = errorCode;
|
|
2860
2837
|
switch (_b) {
|
|
@@ -2878,10 +2855,12 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError =
|
|
|
2878
2855
|
case 9: throw _d.sent();
|
|
2879
2856
|
case 10:
|
|
2880
2857
|
parsedBody = parsedOutput.body;
|
|
2858
|
+
$metadata = deserializeMetadata(output);
|
|
2859
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2881
2860
|
response = new __BaseException({
|
|
2882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2883
2862
|
$fault: "client",
|
|
2884
|
-
$metadata:
|
|
2863
|
+
$metadata: $metadata,
|
|
2885
2864
|
});
|
|
2886
2865
|
throw __decorateServiceException(response, parsedBody);
|
|
2887
2866
|
}
|
|
@@ -2912,7 +2891,7 @@ export var deserializeAws_restJson1DissociatePackageCommand = function (output,
|
|
|
2912
2891
|
});
|
|
2913
2892
|
}); };
|
|
2914
2893
|
var deserializeAws_restJson1DissociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2915
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2894
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2916
2895
|
var _c;
|
|
2917
2896
|
return __generator(this, function (_d) {
|
|
2918
2897
|
switch (_d.label) {
|
|
@@ -2922,7 +2901,6 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
2922
2901
|
return [4, parseBody(output.body, context)];
|
|
2923
2902
|
case 1:
|
|
2924
2903
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2925
|
-
errorCode = "UnknownError";
|
|
2926
2904
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
2905
|
_b = errorCode;
|
|
2928
2906
|
switch (_b) {
|
|
@@ -2954,10 +2932,12 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
2954
2932
|
case 13: throw _d.sent();
|
|
2955
2933
|
case 14:
|
|
2956
2934
|
parsedBody = parsedOutput.body;
|
|
2935
|
+
$metadata = deserializeMetadata(output);
|
|
2936
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2957
2937
|
response = new __BaseException({
|
|
2958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2938
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2959
2939
|
$fault: "client",
|
|
2960
|
-
$metadata:
|
|
2940
|
+
$metadata: $metadata,
|
|
2961
2941
|
});
|
|
2962
2942
|
throw __decorateServiceException(response, parsedBody);
|
|
2963
2943
|
}
|
|
@@ -2988,7 +2968,7 @@ export var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = f
|
|
|
2988
2968
|
});
|
|
2989
2969
|
}); };
|
|
2990
2970
|
var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2991
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2971
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2992
2972
|
var _c;
|
|
2993
2973
|
return __generator(this, function (_d) {
|
|
2994
2974
|
switch (_d.label) {
|
|
@@ -2998,7 +2978,6 @@ var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = fun
|
|
|
2998
2978
|
return [4, parseBody(output.body, context)];
|
|
2999
2979
|
case 1:
|
|
3000
2980
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3001
|
-
errorCode = "UnknownError";
|
|
3002
2981
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3003
2982
|
_b = errorCode;
|
|
3004
2983
|
switch (_b) {
|
|
@@ -3026,10 +3005,12 @@ var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = fun
|
|
|
3026
3005
|
case 11: throw _d.sent();
|
|
3027
3006
|
case 12:
|
|
3028
3007
|
parsedBody = parsedOutput.body;
|
|
3008
|
+
$metadata = deserializeMetadata(output);
|
|
3009
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3029
3010
|
response = new __BaseException({
|
|
3030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3011
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3031
3012
|
$fault: "client",
|
|
3032
|
-
$metadata:
|
|
3013
|
+
$metadata: $metadata,
|
|
3033
3014
|
});
|
|
3034
3015
|
throw __decorateServiceException(response, parsedBody);
|
|
3035
3016
|
}
|
|
@@ -3068,7 +3049,7 @@ export var deserializeAws_restJson1GetPackageVersionHistoryCommand = function (o
|
|
|
3068
3049
|
});
|
|
3069
3050
|
}); };
|
|
3070
3051
|
var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3071
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3052
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3072
3053
|
var _c;
|
|
3073
3054
|
return __generator(this, function (_d) {
|
|
3074
3055
|
switch (_d.label) {
|
|
@@ -3078,7 +3059,6 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
3078
3059
|
return [4, parseBody(output.body, context)];
|
|
3079
3060
|
case 1:
|
|
3080
3061
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3081
|
-
errorCode = "UnknownError";
|
|
3082
3062
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3083
3063
|
_b = errorCode;
|
|
3084
3064
|
switch (_b) {
|
|
@@ -3106,10 +3086,12 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
3106
3086
|
case 11: throw _d.sent();
|
|
3107
3087
|
case 12:
|
|
3108
3088
|
parsedBody = parsedOutput.body;
|
|
3089
|
+
$metadata = deserializeMetadata(output);
|
|
3090
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3109
3091
|
response = new __BaseException({
|
|
3110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3111
3093
|
$fault: "client",
|
|
3112
|
-
$metadata:
|
|
3094
|
+
$metadata: $metadata,
|
|
3113
3095
|
});
|
|
3114
3096
|
throw __decorateServiceException(response, parsedBody);
|
|
3115
3097
|
}
|
|
@@ -3144,7 +3126,7 @@ export var deserializeAws_restJson1GetUpgradeHistoryCommand = function (output,
|
|
|
3144
3126
|
});
|
|
3145
3127
|
}); };
|
|
3146
3128
|
var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3147
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3129
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3148
3130
|
var _c;
|
|
3149
3131
|
return __generator(this, function (_d) {
|
|
3150
3132
|
switch (_d.label) {
|
|
@@ -3154,7 +3136,6 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3154
3136
|
return [4, parseBody(output.body, context)];
|
|
3155
3137
|
case 1:
|
|
3156
3138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3157
|
-
errorCode = "UnknownError";
|
|
3158
3139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3140
|
_b = errorCode;
|
|
3160
3141
|
switch (_b) {
|
|
@@ -3182,10 +3163,12 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3182
3163
|
case 11: throw _d.sent();
|
|
3183
3164
|
case 12:
|
|
3184
3165
|
parsedBody = parsedOutput.body;
|
|
3166
|
+
$metadata = deserializeMetadata(output);
|
|
3167
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3185
3168
|
response = new __BaseException({
|
|
3186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3187
3170
|
$fault: "client",
|
|
3188
|
-
$metadata:
|
|
3171
|
+
$metadata: $metadata,
|
|
3189
3172
|
});
|
|
3190
3173
|
throw __decorateServiceException(response, parsedBody);
|
|
3191
3174
|
}
|
|
@@ -3224,7 +3207,7 @@ export var deserializeAws_restJson1GetUpgradeStatusCommand = function (output, c
|
|
|
3224
3207
|
});
|
|
3225
3208
|
}); };
|
|
3226
3209
|
var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3227
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3210
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3228
3211
|
var _c;
|
|
3229
3212
|
return __generator(this, function (_d) {
|
|
3230
3213
|
switch (_d.label) {
|
|
@@ -3234,7 +3217,6 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3234
3217
|
return [4, parseBody(output.body, context)];
|
|
3235
3218
|
case 1:
|
|
3236
3219
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3237
|
-
errorCode = "UnknownError";
|
|
3238
3220
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3221
|
_b = errorCode;
|
|
3240
3222
|
switch (_b) {
|
|
@@ -3262,10 +3244,12 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3262
3244
|
case 11: throw _d.sent();
|
|
3263
3245
|
case 12:
|
|
3264
3246
|
parsedBody = parsedOutput.body;
|
|
3247
|
+
$metadata = deserializeMetadata(output);
|
|
3248
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3265
3249
|
response = new __BaseException({
|
|
3266
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3267
3251
|
$fault: "client",
|
|
3268
|
-
$metadata:
|
|
3252
|
+
$metadata: $metadata,
|
|
3269
3253
|
});
|
|
3270
3254
|
throw __decorateServiceException(response, parsedBody);
|
|
3271
3255
|
}
|
|
@@ -3296,7 +3280,7 @@ export var deserializeAws_restJson1ListDomainNamesCommand = function (output, co
|
|
|
3296
3280
|
});
|
|
3297
3281
|
}); };
|
|
3298
3282
|
var deserializeAws_restJson1ListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3299
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3283
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3300
3284
|
var _c;
|
|
3301
3285
|
return __generator(this, function (_d) {
|
|
3302
3286
|
switch (_d.label) {
|
|
@@ -3306,7 +3290,6 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3306
3290
|
return [4, parseBody(output.body, context)];
|
|
3307
3291
|
case 1:
|
|
3308
3292
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3309
|
-
errorCode = "UnknownError";
|
|
3310
3293
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
3294
|
_b = errorCode;
|
|
3312
3295
|
switch (_b) {
|
|
@@ -3322,10 +3305,12 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3322
3305
|
case 5: throw _d.sent();
|
|
3323
3306
|
case 6:
|
|
3324
3307
|
parsedBody = parsedOutput.body;
|
|
3308
|
+
$metadata = deserializeMetadata(output);
|
|
3309
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3325
3310
|
response = new __BaseException({
|
|
3326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3327
3312
|
$fault: "client",
|
|
3328
|
-
$metadata:
|
|
3313
|
+
$metadata: $metadata,
|
|
3329
3314
|
});
|
|
3330
3315
|
throw __decorateServiceException(response, parsedBody);
|
|
3331
3316
|
}
|
|
@@ -3360,7 +3345,7 @@ export var deserializeAws_restJson1ListDomainsForPackageCommand = function (outp
|
|
|
3360
3345
|
});
|
|
3361
3346
|
}); };
|
|
3362
3347
|
var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3363
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3348
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3364
3349
|
var _c;
|
|
3365
3350
|
return __generator(this, function (_d) {
|
|
3366
3351
|
switch (_d.label) {
|
|
@@ -3370,7 +3355,6 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3370
3355
|
return [4, parseBody(output.body, context)];
|
|
3371
3356
|
case 1:
|
|
3372
3357
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3373
|
-
errorCode = "UnknownError";
|
|
3374
3358
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3375
3359
|
_b = errorCode;
|
|
3376
3360
|
switch (_b) {
|
|
@@ -3398,10 +3382,12 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3398
3382
|
case 11: throw _d.sent();
|
|
3399
3383
|
case 12:
|
|
3400
3384
|
parsedBody = parsedOutput.body;
|
|
3385
|
+
$metadata = deserializeMetadata(output);
|
|
3386
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3401
3387
|
response = new __BaseException({
|
|
3402
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3403
3389
|
$fault: "client",
|
|
3404
|
-
$metadata:
|
|
3390
|
+
$metadata: $metadata,
|
|
3405
3391
|
});
|
|
3406
3392
|
throw __decorateServiceException(response, parsedBody);
|
|
3407
3393
|
}
|
|
@@ -3436,7 +3422,7 @@ export var deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = funct
|
|
|
3436
3422
|
});
|
|
3437
3423
|
}); };
|
|
3438
3424
|
var deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3439
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3425
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3440
3426
|
var _c;
|
|
3441
3427
|
return __generator(this, function (_d) {
|
|
3442
3428
|
switch (_d.label) {
|
|
@@ -3446,7 +3432,6 @@ var deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = functio
|
|
|
3446
3432
|
return [4, parseBody(output.body, context)];
|
|
3447
3433
|
case 1:
|
|
3448
3434
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3449
|
-
errorCode = "UnknownError";
|
|
3450
3435
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3451
3436
|
_b = errorCode;
|
|
3452
3437
|
switch (_b) {
|
|
@@ -3470,10 +3455,12 @@ var deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = functio
|
|
|
3470
3455
|
case 9: throw _d.sent();
|
|
3471
3456
|
case 10:
|
|
3472
3457
|
parsedBody = parsedOutput.body;
|
|
3458
|
+
$metadata = deserializeMetadata(output);
|
|
3459
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3473
3460
|
response = new __BaseException({
|
|
3474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3461
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3475
3462
|
$fault: "client",
|
|
3476
|
-
$metadata:
|
|
3463
|
+
$metadata: $metadata,
|
|
3477
3464
|
});
|
|
3478
3465
|
throw __decorateServiceException(response, parsedBody);
|
|
3479
3466
|
}
|
|
@@ -3508,7 +3495,7 @@ export var deserializeAws_restJson1ListElasticsearchVersionsCommand = function (
|
|
|
3508
3495
|
});
|
|
3509
3496
|
}); };
|
|
3510
3497
|
var deserializeAws_restJson1ListElasticsearchVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3511
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3498
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3512
3499
|
var _c;
|
|
3513
3500
|
return __generator(this, function (_d) {
|
|
3514
3501
|
switch (_d.label) {
|
|
@@ -3518,7 +3505,6 @@ var deserializeAws_restJson1ListElasticsearchVersionsCommandError = function (ou
|
|
|
3518
3505
|
return [4, parseBody(output.body, context)];
|
|
3519
3506
|
case 1:
|
|
3520
3507
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3521
|
-
errorCode = "UnknownError";
|
|
3522
3508
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
3509
|
_b = errorCode;
|
|
3524
3510
|
switch (_b) {
|
|
@@ -3542,10 +3528,12 @@ var deserializeAws_restJson1ListElasticsearchVersionsCommandError = function (ou
|
|
|
3542
3528
|
case 9: throw _d.sent();
|
|
3543
3529
|
case 10:
|
|
3544
3530
|
parsedBody = parsedOutput.body;
|
|
3531
|
+
$metadata = deserializeMetadata(output);
|
|
3532
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3545
3533
|
response = new __BaseException({
|
|
3546
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3547
3535
|
$fault: "client",
|
|
3548
|
-
$metadata:
|
|
3536
|
+
$metadata: $metadata,
|
|
3549
3537
|
});
|
|
3550
3538
|
throw __decorateServiceException(response, parsedBody);
|
|
3551
3539
|
}
|
|
@@ -3580,7 +3568,7 @@ export var deserializeAws_restJson1ListPackagesForDomainCommand = function (outp
|
|
|
3580
3568
|
});
|
|
3581
3569
|
}); };
|
|
3582
3570
|
var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3583
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3571
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3584
3572
|
var _c;
|
|
3585
3573
|
return __generator(this, function (_d) {
|
|
3586
3574
|
switch (_d.label) {
|
|
@@ -3590,7 +3578,6 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
3590
3578
|
return [4, parseBody(output.body, context)];
|
|
3591
3579
|
case 1:
|
|
3592
3580
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3593
|
-
errorCode = "UnknownError";
|
|
3594
3581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3595
3582
|
_b = errorCode;
|
|
3596
3583
|
switch (_b) {
|
|
@@ -3618,10 +3605,12 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
3618
3605
|
case 11: throw _d.sent();
|
|
3619
3606
|
case 12:
|
|
3620
3607
|
parsedBody = parsedOutput.body;
|
|
3608
|
+
$metadata = deserializeMetadata(output);
|
|
3609
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3621
3610
|
response = new __BaseException({
|
|
3622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3611
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3623
3612
|
$fault: "client",
|
|
3624
|
-
$metadata:
|
|
3613
|
+
$metadata: $metadata,
|
|
3625
3614
|
});
|
|
3626
3615
|
throw __decorateServiceException(response, parsedBody);
|
|
3627
3616
|
}
|
|
@@ -3652,7 +3641,7 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
3652
3641
|
});
|
|
3653
3642
|
}); };
|
|
3654
3643
|
var deserializeAws_restJson1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3655
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3644
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3656
3645
|
var _c;
|
|
3657
3646
|
return __generator(this, function (_d) {
|
|
3658
3647
|
switch (_d.label) {
|
|
@@ -3662,7 +3651,6 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
3662
3651
|
return [4, parseBody(output.body, context)];
|
|
3663
3652
|
case 1:
|
|
3664
3653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3665
|
-
errorCode = "UnknownError";
|
|
3666
3654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3667
3655
|
_b = errorCode;
|
|
3668
3656
|
switch (_b) {
|
|
@@ -3686,10 +3674,12 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
3686
3674
|
case 9: throw _d.sent();
|
|
3687
3675
|
case 10:
|
|
3688
3676
|
parsedBody = parsedOutput.body;
|
|
3677
|
+
$metadata = deserializeMetadata(output);
|
|
3678
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3689
3679
|
response = new __BaseException({
|
|
3690
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3691
3681
|
$fault: "client",
|
|
3692
|
-
$metadata:
|
|
3682
|
+
$metadata: $metadata,
|
|
3693
3683
|
});
|
|
3694
3684
|
throw __decorateServiceException(response, parsedBody);
|
|
3695
3685
|
}
|
|
@@ -3724,7 +3714,7 @@ export var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOffering
|
|
|
3724
3714
|
});
|
|
3725
3715
|
}); };
|
|
3726
3716
|
var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3727
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3717
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3728
3718
|
var _c;
|
|
3729
3719
|
return __generator(this, function (_d) {
|
|
3730
3720
|
switch (_d.label) {
|
|
@@ -3734,7 +3724,6 @@ var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand
|
|
|
3734
3724
|
return [4, parseBody(output.body, context)];
|
|
3735
3725
|
case 1:
|
|
3736
3726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3737
|
-
errorCode = "UnknownError";
|
|
3738
3727
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3739
3728
|
_b = errorCode;
|
|
3740
3729
|
switch (_b) {
|
|
@@ -3766,10 +3755,12 @@ var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand
|
|
|
3766
3755
|
case 13: throw _d.sent();
|
|
3767
3756
|
case 14:
|
|
3768
3757
|
parsedBody = parsedOutput.body;
|
|
3758
|
+
$metadata = deserializeMetadata(output);
|
|
3759
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3769
3760
|
response = new __BaseException({
|
|
3770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3771
3762
|
$fault: "client",
|
|
3772
|
-
$metadata:
|
|
3763
|
+
$metadata: $metadata,
|
|
3773
3764
|
});
|
|
3774
3765
|
throw __decorateServiceException(response, parsedBody);
|
|
3775
3766
|
}
|
|
@@ -3800,7 +3791,7 @@ export var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionComm
|
|
|
3800
3791
|
});
|
|
3801
3792
|
}); };
|
|
3802
3793
|
var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3803
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3794
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3804
3795
|
var _c;
|
|
3805
3796
|
return __generator(this, function (_d) {
|
|
3806
3797
|
switch (_d.label) {
|
|
@@ -3810,7 +3801,6 @@ var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandErro
|
|
|
3810
3801
|
return [4, parseBody(output.body, context)];
|
|
3811
3802
|
case 1:
|
|
3812
3803
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3813
|
-
errorCode = "UnknownError";
|
|
3814
3804
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3815
3805
|
_b = errorCode;
|
|
3816
3806
|
switch (_b) {
|
|
@@ -3826,10 +3816,12 @@ var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandErro
|
|
|
3826
3816
|
case 5: throw _d.sent();
|
|
3827
3817
|
case 6:
|
|
3828
3818
|
parsedBody = parsedOutput.body;
|
|
3819
|
+
$metadata = deserializeMetadata(output);
|
|
3820
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3829
3821
|
response = new __BaseException({
|
|
3830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3822
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3831
3823
|
$fault: "client",
|
|
3832
|
-
$metadata:
|
|
3824
|
+
$metadata: $metadata,
|
|
3833
3825
|
});
|
|
3834
3826
|
throw __decorateServiceException(response, parsedBody);
|
|
3835
3827
|
}
|
|
@@ -3854,7 +3846,7 @@ export var deserializeAws_restJson1RemoveTagsCommand = function (output, context
|
|
|
3854
3846
|
});
|
|
3855
3847
|
}); };
|
|
3856
3848
|
var deserializeAws_restJson1RemoveTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3857
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3849
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3858
3850
|
var _c;
|
|
3859
3851
|
return __generator(this, function (_d) {
|
|
3860
3852
|
switch (_d.label) {
|
|
@@ -3864,7 +3856,6 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
3864
3856
|
return [4, parseBody(output.body, context)];
|
|
3865
3857
|
case 1:
|
|
3866
3858
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3867
|
-
errorCode = "UnknownError";
|
|
3868
3859
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
3860
|
_b = errorCode;
|
|
3870
3861
|
switch (_b) {
|
|
@@ -3884,10 +3875,12 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
3884
3875
|
case 7: throw _d.sent();
|
|
3885
3876
|
case 8:
|
|
3886
3877
|
parsedBody = parsedOutput.body;
|
|
3878
|
+
$metadata = deserializeMetadata(output);
|
|
3879
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3887
3880
|
response = new __BaseException({
|
|
3888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3889
3882
|
$fault: "client",
|
|
3890
|
-
$metadata:
|
|
3883
|
+
$metadata: $metadata,
|
|
3891
3884
|
});
|
|
3892
3885
|
throw __decorateServiceException(response, parsedBody);
|
|
3893
3886
|
}
|
|
@@ -3918,7 +3911,7 @@ export var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateComman
|
|
|
3918
3911
|
});
|
|
3919
3912
|
}); };
|
|
3920
3913
|
var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3921
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3914
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3922
3915
|
var _c;
|
|
3923
3916
|
return __generator(this, function (_d) {
|
|
3924
3917
|
switch (_d.label) {
|
|
@@ -3928,7 +3921,6 @@ var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError
|
|
|
3928
3921
|
return [4, parseBody(output.body, context)];
|
|
3929
3922
|
case 1:
|
|
3930
3923
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3931
|
-
errorCode = "UnknownError";
|
|
3932
3924
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3933
3925
|
_b = errorCode;
|
|
3934
3926
|
switch (_b) {
|
|
@@ -3952,10 +3944,12 @@ var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError
|
|
|
3952
3944
|
case 9: throw _d.sent();
|
|
3953
3945
|
case 10:
|
|
3954
3946
|
parsedBody = parsedOutput.body;
|
|
3947
|
+
$metadata = deserializeMetadata(output);
|
|
3948
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3955
3949
|
response = new __BaseException({
|
|
3956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3957
3951
|
$fault: "client",
|
|
3958
|
-
$metadata:
|
|
3952
|
+
$metadata: $metadata,
|
|
3959
3953
|
});
|
|
3960
3954
|
throw __decorateServiceException(response, parsedBody);
|
|
3961
3955
|
}
|
|
@@ -3990,7 +3984,7 @@ export var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = func
|
|
|
3990
3984
|
});
|
|
3991
3985
|
}); };
|
|
3992
3986
|
var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3993
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3987
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3994
3988
|
var _c;
|
|
3995
3989
|
return __generator(this, function (_d) {
|
|
3996
3990
|
switch (_d.label) {
|
|
@@ -4000,7 +3994,6 @@ var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = functi
|
|
|
4000
3994
|
return [4, parseBody(output.body, context)];
|
|
4001
3995
|
case 1:
|
|
4002
3996
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4003
|
-
errorCode = "UnknownError";
|
|
4004
3997
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4005
3998
|
_b = errorCode;
|
|
4006
3999
|
switch (_b) {
|
|
@@ -4032,10 +4025,12 @@ var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = functi
|
|
|
4032
4025
|
case 13: throw _d.sent();
|
|
4033
4026
|
case 14:
|
|
4034
4027
|
parsedBody = parsedOutput.body;
|
|
4028
|
+
$metadata = deserializeMetadata(output);
|
|
4029
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4035
4030
|
response = new __BaseException({
|
|
4036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4037
4032
|
$fault: "client",
|
|
4038
|
-
$metadata:
|
|
4033
|
+
$metadata: $metadata,
|
|
4039
4034
|
});
|
|
4040
4035
|
throw __decorateServiceException(response, parsedBody);
|
|
4041
4036
|
}
|
|
@@ -4066,7 +4061,7 @@ export var deserializeAws_restJson1UpdatePackageCommand = function (output, cont
|
|
|
4066
4061
|
});
|
|
4067
4062
|
}); };
|
|
4068
4063
|
var deserializeAws_restJson1UpdatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4064
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4070
4065
|
var _c;
|
|
4071
4066
|
return __generator(this, function (_d) {
|
|
4072
4067
|
switch (_d.label) {
|
|
@@ -4076,7 +4071,6 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
4076
4071
|
return [4, parseBody(output.body, context)];
|
|
4077
4072
|
case 1:
|
|
4078
4073
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4079
|
-
errorCode = "UnknownError";
|
|
4080
4074
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
4075
|
_b = errorCode;
|
|
4082
4076
|
switch (_b) {
|
|
@@ -4108,10 +4102,12 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
4108
4102
|
case 13: throw _d.sent();
|
|
4109
4103
|
case 14:
|
|
4110
4104
|
parsedBody = parsedOutput.body;
|
|
4105
|
+
$metadata = deserializeMetadata(output);
|
|
4106
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4111
4107
|
response = new __BaseException({
|
|
4112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4113
4109
|
$fault: "client",
|
|
4114
|
-
$metadata:
|
|
4110
|
+
$metadata: $metadata,
|
|
4115
4111
|
});
|
|
4116
4112
|
throw __decorateServiceException(response, parsedBody);
|
|
4117
4113
|
}
|
|
@@ -4154,7 +4150,7 @@ export var deserializeAws_restJson1UpgradeElasticsearchDomainCommand = function
|
|
|
4154
4150
|
});
|
|
4155
4151
|
}); };
|
|
4156
4152
|
var deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4153
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4158
4154
|
var _c;
|
|
4159
4155
|
return __generator(this, function (_d) {
|
|
4160
4156
|
switch (_d.label) {
|
|
@@ -4164,7 +4160,6 @@ var deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = function (o
|
|
|
4164
4160
|
return [4, parseBody(output.body, context)];
|
|
4165
4161
|
case 1:
|
|
4166
4162
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4167
|
-
errorCode = "UnknownError";
|
|
4168
4163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4169
4164
|
_b = errorCode;
|
|
4170
4165
|
switch (_b) {
|
|
@@ -4196,10 +4191,12 @@ var deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = function (o
|
|
|
4196
4191
|
case 13: throw _d.sent();
|
|
4197
4192
|
case 14:
|
|
4198
4193
|
parsedBody = parsedOutput.body;
|
|
4194
|
+
$metadata = deserializeMetadata(output);
|
|
4195
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4199
4196
|
response = new __BaseException({
|
|
4200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4201
4198
|
$fault: "client",
|
|
4202
|
-
$metadata:
|
|
4199
|
+
$metadata: $metadata,
|
|
4203
4200
|
});
|
|
4204
4201
|
throw __decorateServiceException(response, parsedBody);
|
|
4205
4202
|
}
|
|
@@ -4348,21 +4345,18 @@ var serializeAws_restJson1AdvancedOptions = function (input, context) {
|
|
|
4348
4345
|
}, {});
|
|
4349
4346
|
};
|
|
4350
4347
|
var serializeAws_restJson1AdvancedSecurityOptionsInput = function (input, context) {
|
|
4351
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
input.MasterUserOptions !== null && {
|
|
4348
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled != null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled })), (input.Enabled != null && { Enabled: input.Enabled })), (input.InternalUserDatabaseEnabled != null && {
|
|
4349
|
+
InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled,
|
|
4350
|
+
})), (input.MasterUserOptions != null && {
|
|
4355
4351
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
4356
|
-
})), (input.SAMLOptions
|
|
4357
|
-
input.SAMLOptions !== null && {
|
|
4352
|
+
})), (input.SAMLOptions != null && {
|
|
4358
4353
|
SAMLOptions: serializeAws_restJson1SAMLOptionsInput(input.SAMLOptions, context),
|
|
4359
4354
|
}));
|
|
4360
4355
|
};
|
|
4361
4356
|
var serializeAws_restJson1AutoTuneMaintenanceSchedule = function (input, context) {
|
|
4362
|
-
return __assign(__assign(__assign({}, (input.CronExpressionForRecurrence
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
input.StartAt !== null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }));
|
|
4357
|
+
return __assign(__assign(__assign({}, (input.CronExpressionForRecurrence != null && {
|
|
4358
|
+
CronExpressionForRecurrence: input.CronExpressionForRecurrence,
|
|
4359
|
+
})), (input.Duration != null && { Duration: serializeAws_restJson1Duration(input.Duration, context) })), (input.StartAt != null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }));
|
|
4366
4360
|
};
|
|
4367
4361
|
var serializeAws_restJson1AutoTuneMaintenanceScheduleList = function (input, context) {
|
|
4368
4362
|
return input
|
|
@@ -4375,28 +4369,23 @@ var serializeAws_restJson1AutoTuneMaintenanceScheduleList = function (input, con
|
|
|
4375
4369
|
});
|
|
4376
4370
|
};
|
|
4377
4371
|
var serializeAws_restJson1AutoTuneOptions = function (input, context) {
|
|
4378
|
-
return __assign(__assign(__assign({}, (input.DesiredState
|
|
4379
|
-
input.MaintenanceSchedules !== null && {
|
|
4372
|
+
return __assign(__assign(__assign({}, (input.DesiredState != null && { DesiredState: input.DesiredState })), (input.MaintenanceSchedules != null && {
|
|
4380
4373
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
4381
|
-
})), (input.RollbackOnDisable
|
|
4382
|
-
input.RollbackOnDisable !== null && { RollbackOnDisable: input.RollbackOnDisable }));
|
|
4374
|
+
})), (input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }));
|
|
4383
4375
|
};
|
|
4384
4376
|
var serializeAws_restJson1AutoTuneOptionsInput = function (input, context) {
|
|
4385
|
-
return __assign(__assign({}, (input.DesiredState
|
|
4386
|
-
input.MaintenanceSchedules !== null && {
|
|
4377
|
+
return __assign(__assign({}, (input.DesiredState != null && { DesiredState: input.DesiredState })), (input.MaintenanceSchedules != null && {
|
|
4387
4378
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
4388
4379
|
}));
|
|
4389
4380
|
};
|
|
4390
4381
|
var serializeAws_restJson1CognitoOptions = function (input, context) {
|
|
4391
|
-
return __assign(__assign(__assign(__assign({}, (input.Enabled
|
|
4392
|
-
input.IdentityPoolId !== null && { IdentityPoolId: input.IdentityPoolId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
|
|
4382
|
+
return __assign(__assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
|
|
4393
4383
|
};
|
|
4394
4384
|
var serializeAws_restJson1ColdStorageOptions = function (input, context) {
|
|
4395
|
-
return __assign({}, (input.Enabled
|
|
4385
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4396
4386
|
};
|
|
4397
4387
|
var serializeAws_restJson1DescribePackagesFilter = function (input, context) {
|
|
4398
|
-
return __assign(__assign({}, (input.Name
|
|
4399
|
-
input.Value !== null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }));
|
|
4388
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }));
|
|
4400
4389
|
};
|
|
4401
4390
|
var serializeAws_restJson1DescribePackagesFilterList = function (input, context) {
|
|
4402
4391
|
return input
|
|
@@ -4419,16 +4408,12 @@ var serializeAws_restJson1DescribePackagesFilterValues = function (input, contex
|
|
|
4419
4408
|
});
|
|
4420
4409
|
};
|
|
4421
4410
|
var serializeAws_restJson1DomainEndpointOptions = function (input, context) {
|
|
4422
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CustomEndpoint
|
|
4423
|
-
input.CustomEndpoint !== null && { CustomEndpoint: input.CustomEndpoint })), (input.CustomEndpointCertificateArn !== undefined &&
|
|
4424
|
-
input.CustomEndpointCertificateArn !== null && {
|
|
4411
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CustomEndpoint != null && { CustomEndpoint: input.CustomEndpoint })), (input.CustomEndpointCertificateArn != null && {
|
|
4425
4412
|
CustomEndpointCertificateArn: input.CustomEndpointCertificateArn,
|
|
4426
|
-
})), (input.CustomEndpointEnabled
|
|
4427
|
-
input.CustomEndpointEnabled !== null && { CustomEndpointEnabled: input.CustomEndpointEnabled })), (input.EnforceHTTPS !== undefined && input.EnforceHTTPS !== null && { EnforceHTTPS: input.EnforceHTTPS })), (input.TLSSecurityPolicy !== undefined &&
|
|
4428
|
-
input.TLSSecurityPolicy !== null && { TLSSecurityPolicy: input.TLSSecurityPolicy }));
|
|
4413
|
+
})), (input.CustomEndpointEnabled != null && { CustomEndpointEnabled: input.CustomEndpointEnabled })), (input.EnforceHTTPS != null && { EnforceHTTPS: input.EnforceHTTPS })), (input.TLSSecurityPolicy != null && { TLSSecurityPolicy: input.TLSSecurityPolicy }));
|
|
4429
4414
|
};
|
|
4430
4415
|
var serializeAws_restJson1DomainInformation = function (input, context) {
|
|
4431
|
-
return __assign(__assign(__assign({}, (input.DomainName
|
|
4416
|
+
return __assign(__assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OwnerId != null && { OwnerId: input.OwnerId })), (input.Region != null && { Region: input.Region }));
|
|
4432
4417
|
};
|
|
4433
4418
|
var serializeAws_restJson1DomainNameList = function (input, context) {
|
|
4434
4419
|
return input
|
|
@@ -4441,30 +4426,23 @@ var serializeAws_restJson1DomainNameList = function (input, context) {
|
|
|
4441
4426
|
});
|
|
4442
4427
|
};
|
|
4443
4428
|
var serializeAws_restJson1Duration = function (input, context) {
|
|
4444
|
-
return __assign(__assign({}, (input.Unit
|
|
4429
|
+
return __assign(__assign({}, (input.Unit != null && { Unit: input.Unit })), (input.Value != null && { Value: input.Value }));
|
|
4445
4430
|
};
|
|
4446
4431
|
var serializeAws_restJson1EBSOptions = function (input, context) {
|
|
4447
|
-
return __assign(__assign(__assign(__assign({}, (input.EBSEnabled
|
|
4432
|
+
return __assign(__assign(__assign(__assign({}, (input.EBSEnabled != null && { EBSEnabled: input.EBSEnabled })), (input.Iops != null && { Iops: input.Iops })), (input.VolumeSize != null && { VolumeSize: input.VolumeSize })), (input.VolumeType != null && { VolumeType: input.VolumeType }));
|
|
4448
4433
|
};
|
|
4449
4434
|
var serializeAws_restJson1ElasticsearchClusterConfig = function (input, context) {
|
|
4450
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ColdStorageOptions
|
|
4451
|
-
input.ColdStorageOptions !== null && {
|
|
4435
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ColdStorageOptions != null && {
|
|
4452
4436
|
ColdStorageOptions: serializeAws_restJson1ColdStorageOptions(input.ColdStorageOptions, context),
|
|
4453
|
-
})), (input.DedicatedMasterCount
|
|
4454
|
-
input.DedicatedMasterCount !== null && { DedicatedMasterCount: input.DedicatedMasterCount })), (input.DedicatedMasterEnabled !== undefined &&
|
|
4455
|
-
input.DedicatedMasterEnabled !== null && { DedicatedMasterEnabled: input.DedicatedMasterEnabled })), (input.DedicatedMasterType !== undefined &&
|
|
4456
|
-
input.DedicatedMasterType !== null && { DedicatedMasterType: input.DedicatedMasterType })), (input.InstanceCount !== undefined && input.InstanceCount !== null && { InstanceCount: input.InstanceCount })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.WarmCount !== undefined && input.WarmCount !== null && { WarmCount: input.WarmCount })), (input.WarmEnabled !== undefined && input.WarmEnabled !== null && { WarmEnabled: input.WarmEnabled })), (input.WarmType !== undefined && input.WarmType !== null && { WarmType: input.WarmType })), (input.ZoneAwarenessConfig !== undefined &&
|
|
4457
|
-
input.ZoneAwarenessConfig !== null && {
|
|
4437
|
+
})), (input.DedicatedMasterCount != null && { DedicatedMasterCount: input.DedicatedMasterCount })), (input.DedicatedMasterEnabled != null && { DedicatedMasterEnabled: input.DedicatedMasterEnabled })), (input.DedicatedMasterType != null && { DedicatedMasterType: input.DedicatedMasterType })), (input.InstanceCount != null && { InstanceCount: input.InstanceCount })), (input.InstanceType != null && { InstanceType: input.InstanceType })), (input.WarmCount != null && { WarmCount: input.WarmCount })), (input.WarmEnabled != null && { WarmEnabled: input.WarmEnabled })), (input.WarmType != null && { WarmType: input.WarmType })), (input.ZoneAwarenessConfig != null && {
|
|
4458
4438
|
ZoneAwarenessConfig: serializeAws_restJson1ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
|
|
4459
|
-
})), (input.ZoneAwarenessEnabled
|
|
4460
|
-
input.ZoneAwarenessEnabled !== null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }));
|
|
4439
|
+
})), (input.ZoneAwarenessEnabled != null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }));
|
|
4461
4440
|
};
|
|
4462
4441
|
var serializeAws_restJson1EncryptionAtRestOptions = function (input, context) {
|
|
4463
|
-
return __assign(__assign({}, (input.Enabled
|
|
4442
|
+
return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
|
|
4464
4443
|
};
|
|
4465
4444
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
4466
|
-
return __assign(__assign({}, (input.Name
|
|
4467
|
-
input.Values !== null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }));
|
|
4445
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }));
|
|
4468
4446
|
};
|
|
4469
4447
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
4470
4448
|
return input
|
|
@@ -4477,8 +4455,7 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
4477
4455
|
});
|
|
4478
4456
|
};
|
|
4479
4457
|
var serializeAws_restJson1LogPublishingOption = function (input, context) {
|
|
4480
|
-
return __assign(__assign({}, (input.CloudWatchLogsLogGroupArn
|
|
4481
|
-
input.CloudWatchLogsLogGroupArn !== null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
|
|
4458
|
+
return __assign(__assign({}, (input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4482
4459
|
};
|
|
4483
4460
|
var serializeAws_restJson1LogPublishingOptions = function (input, context) {
|
|
4484
4461
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -4491,29 +4468,22 @@ var serializeAws_restJson1LogPublishingOptions = function (input, context) {
|
|
|
4491
4468
|
}, {});
|
|
4492
4469
|
};
|
|
4493
4470
|
var serializeAws_restJson1MasterUserOptions = function (input, context) {
|
|
4494
|
-
return __assign(__assign(__assign({}, (input.MasterUserARN
|
|
4495
|
-
input.MasterUserName !== null && { MasterUserName: input.MasterUserName })), (input.MasterUserPassword !== undefined &&
|
|
4496
|
-
input.MasterUserPassword !== null && { MasterUserPassword: input.MasterUserPassword }));
|
|
4471
|
+
return __assign(__assign(__assign({}, (input.MasterUserARN != null && { MasterUserARN: input.MasterUserARN })), (input.MasterUserName != null && { MasterUserName: input.MasterUserName })), (input.MasterUserPassword != null && { MasterUserPassword: input.MasterUserPassword }));
|
|
4497
4472
|
};
|
|
4498
4473
|
var serializeAws_restJson1NodeToNodeEncryptionOptions = function (input, context) {
|
|
4499
|
-
return __assign({}, (input.Enabled
|
|
4474
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4500
4475
|
};
|
|
4501
4476
|
var serializeAws_restJson1PackageSource = function (input, context) {
|
|
4502
|
-
return __assign(__assign({}, (input.S3BucketName
|
|
4477
|
+
return __assign(__assign({}, (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3Key != null && { S3Key: input.S3Key }));
|
|
4503
4478
|
};
|
|
4504
4479
|
var serializeAws_restJson1SAMLIdp = function (input, context) {
|
|
4505
|
-
return __assign(__assign({}, (input.EntityId
|
|
4506
|
-
input.MetadataContent !== null && { MetadataContent: input.MetadataContent }));
|
|
4480
|
+
return __assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.MetadataContent != null && { MetadataContent: input.MetadataContent }));
|
|
4507
4481
|
};
|
|
4508
4482
|
var serializeAws_restJson1SAMLOptionsInput = function (input, context) {
|
|
4509
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Enabled
|
|
4510
|
-
input.MasterBackendRole !== null && { MasterBackendRole: input.MasterBackendRole })), (input.MasterUserName !== undefined &&
|
|
4511
|
-
input.MasterUserName !== null && { MasterUserName: input.MasterUserName })), (input.RolesKey !== undefined && input.RolesKey !== null && { RolesKey: input.RolesKey })), (input.SessionTimeoutMinutes !== undefined &&
|
|
4512
|
-
input.SessionTimeoutMinutes !== null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes })), (input.SubjectKey !== undefined && input.SubjectKey !== null && { SubjectKey: input.SubjectKey }));
|
|
4483
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.Idp != null && { Idp: serializeAws_restJson1SAMLIdp(input.Idp, context) })), (input.MasterBackendRole != null && { MasterBackendRole: input.MasterBackendRole })), (input.MasterUserName != null && { MasterUserName: input.MasterUserName })), (input.RolesKey != null && { RolesKey: input.RolesKey })), (input.SessionTimeoutMinutes != null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes })), (input.SubjectKey != null && { SubjectKey: input.SubjectKey }));
|
|
4513
4484
|
};
|
|
4514
4485
|
var serializeAws_restJson1SnapshotOptions = function (input, context) {
|
|
4515
|
-
return __assign({}, (input.AutomatedSnapshotStartHour
|
|
4516
|
-
input.AutomatedSnapshotStartHour !== null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }));
|
|
4486
|
+
return __assign({}, (input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }));
|
|
4517
4487
|
};
|
|
4518
4488
|
var serializeAws_restJson1StringList = function (input, context) {
|
|
4519
4489
|
return input
|
|
@@ -4526,7 +4496,7 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
4526
4496
|
});
|
|
4527
4497
|
};
|
|
4528
4498
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
4529
|
-
return __assign(__assign({}, (input.Key
|
|
4499
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
4530
4500
|
};
|
|
4531
4501
|
var serializeAws_restJson1TagList = function (input, context) {
|
|
4532
4502
|
return input
|
|
@@ -4549,30 +4519,23 @@ var serializeAws_restJson1ValueStringList = function (input, context) {
|
|
|
4549
4519
|
});
|
|
4550
4520
|
};
|
|
4551
4521
|
var serializeAws_restJson1VPCOptions = function (input, context) {
|
|
4552
|
-
return __assign(__assign({}, (input.SecurityGroupIds
|
|
4553
|
-
input.SecurityGroupIds !== null && {
|
|
4522
|
+
return __assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
4554
4523
|
SecurityGroupIds: serializeAws_restJson1StringList(input.SecurityGroupIds, context),
|
|
4555
|
-
})), (input.SubnetIds
|
|
4556
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }));
|
|
4524
|
+
})), (input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }));
|
|
4557
4525
|
};
|
|
4558
4526
|
var serializeAws_restJson1ZoneAwarenessConfig = function (input, context) {
|
|
4559
|
-
return __assign({}, (input.AvailabilityZoneCount
|
|
4560
|
-
input.AvailabilityZoneCount !== null && { AvailabilityZoneCount: input.AvailabilityZoneCount }));
|
|
4527
|
+
return __assign({}, (input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }));
|
|
4561
4528
|
};
|
|
4562
4529
|
var deserializeAws_restJson1AccessPoliciesStatus = function (output, context) {
|
|
4563
4530
|
return {
|
|
4564
4531
|
Options: __expectString(output.Options),
|
|
4565
|
-
Status: output.Status
|
|
4566
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4567
|
-
: undefined,
|
|
4532
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4568
4533
|
};
|
|
4569
4534
|
};
|
|
4570
4535
|
var deserializeAws_restJson1AdditionalLimit = function (output, context) {
|
|
4571
4536
|
return {
|
|
4572
4537
|
LimitName: __expectString(output.LimitName),
|
|
4573
|
-
LimitValues: output.LimitValues
|
|
4574
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
4575
|
-
: undefined,
|
|
4538
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
4576
4539
|
};
|
|
4577
4540
|
};
|
|
4578
4541
|
var deserializeAws_restJson1AdditionalLimitList = function (output, context) {
|
|
@@ -4598,40 +4561,30 @@ var deserializeAws_restJson1AdvancedOptions = function (output, context) {
|
|
|
4598
4561
|
};
|
|
4599
4562
|
var deserializeAws_restJson1AdvancedOptionsStatus = function (output, context) {
|
|
4600
4563
|
return {
|
|
4601
|
-
Options: output.Options
|
|
4602
|
-
|
|
4603
|
-
: undefined,
|
|
4604
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4605
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4606
|
-
: undefined,
|
|
4564
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedOptions(output.Options, context) : undefined,
|
|
4565
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4607
4566
|
};
|
|
4608
4567
|
};
|
|
4609
4568
|
var deserializeAws_restJson1AdvancedSecurityOptions = function (output, context) {
|
|
4610
4569
|
return {
|
|
4611
|
-
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate
|
|
4570
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate != null
|
|
4612
4571
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AnonymousAuthDisableDate)))
|
|
4613
4572
|
: undefined,
|
|
4614
4573
|
AnonymousAuthEnabled: __expectBoolean(output.AnonymousAuthEnabled),
|
|
4615
4574
|
Enabled: __expectBoolean(output.Enabled),
|
|
4616
4575
|
InternalUserDatabaseEnabled: __expectBoolean(output.InternalUserDatabaseEnabled),
|
|
4617
|
-
SAMLOptions: output.SAMLOptions
|
|
4618
|
-
? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
|
|
4619
|
-
: undefined,
|
|
4576
|
+
SAMLOptions: output.SAMLOptions != null ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
|
|
4620
4577
|
};
|
|
4621
4578
|
};
|
|
4622
4579
|
var deserializeAws_restJson1AdvancedSecurityOptionsStatus = function (output, context) {
|
|
4623
4580
|
return {
|
|
4624
|
-
Options: output.Options
|
|
4625
|
-
|
|
4626
|
-
: undefined,
|
|
4627
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4628
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4629
|
-
: undefined,
|
|
4581
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedSecurityOptions(output.Options, context) : undefined,
|
|
4582
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4630
4583
|
};
|
|
4631
4584
|
};
|
|
4632
4585
|
var deserializeAws_restJson1AutoTune = function (output, context) {
|
|
4633
4586
|
return {
|
|
4634
|
-
AutoTuneDetails: output.AutoTuneDetails
|
|
4587
|
+
AutoTuneDetails: output.AutoTuneDetails != null
|
|
4635
4588
|
? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
|
|
4636
4589
|
: undefined,
|
|
4637
4590
|
AutoTuneType: __expectString(output.AutoTuneType),
|
|
@@ -4639,7 +4592,7 @@ var deserializeAws_restJson1AutoTune = function (output, context) {
|
|
|
4639
4592
|
};
|
|
4640
4593
|
var deserializeAws_restJson1AutoTuneDetails = function (output, context) {
|
|
4641
4594
|
return {
|
|
4642
|
-
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails
|
|
4595
|
+
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails != null
|
|
4643
4596
|
? deserializeAws_restJson1ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
|
|
4644
4597
|
: undefined,
|
|
4645
4598
|
};
|
|
@@ -4658,12 +4611,8 @@ var deserializeAws_restJson1AutoTuneList = function (output, context) {
|
|
|
4658
4611
|
var deserializeAws_restJson1AutoTuneMaintenanceSchedule = function (output, context) {
|
|
4659
4612
|
return {
|
|
4660
4613
|
CronExpressionForRecurrence: __expectString(output.CronExpressionForRecurrence),
|
|
4661
|
-
Duration: output.Duration
|
|
4662
|
-
|
|
4663
|
-
: undefined,
|
|
4664
|
-
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
4665
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt)))
|
|
4666
|
-
: undefined,
|
|
4614
|
+
Duration: output.Duration != null ? deserializeAws_restJson1Duration(output.Duration, context) : undefined,
|
|
4615
|
+
StartAt: output.StartAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt))) : undefined,
|
|
4667
4616
|
};
|
|
4668
4617
|
};
|
|
4669
4618
|
var deserializeAws_restJson1AutoTuneMaintenanceScheduleList = function (output, context) {
|
|
@@ -4680,7 +4629,7 @@ var deserializeAws_restJson1AutoTuneMaintenanceScheduleList = function (output,
|
|
|
4680
4629
|
var deserializeAws_restJson1AutoTuneOptions = function (output, context) {
|
|
4681
4630
|
return {
|
|
4682
4631
|
DesiredState: __expectString(output.DesiredState),
|
|
4683
|
-
MaintenanceSchedules: output.MaintenanceSchedules
|
|
4632
|
+
MaintenanceSchedules: output.MaintenanceSchedules != null
|
|
4684
4633
|
? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
|
|
4685
4634
|
: undefined,
|
|
4686
4635
|
RollbackOnDisable: __expectString(output.RollbackOnDisable),
|
|
@@ -4694,25 +4643,19 @@ var deserializeAws_restJson1AutoTuneOptionsOutput = function (output, context) {
|
|
|
4694
4643
|
};
|
|
4695
4644
|
var deserializeAws_restJson1AutoTuneOptionsStatus = function (output, context) {
|
|
4696
4645
|
return {
|
|
4697
|
-
Options: output.Options
|
|
4698
|
-
|
|
4699
|
-
: undefined,
|
|
4700
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4701
|
-
? deserializeAws_restJson1AutoTuneStatus(output.Status, context)
|
|
4702
|
-
: undefined,
|
|
4646
|
+
Options: output.Options != null ? deserializeAws_restJson1AutoTuneOptions(output.Options, context) : undefined,
|
|
4647
|
+
Status: output.Status != null ? deserializeAws_restJson1AutoTuneStatus(output.Status, context) : undefined,
|
|
4703
4648
|
};
|
|
4704
4649
|
};
|
|
4705
4650
|
var deserializeAws_restJson1AutoTuneStatus = function (output, context) {
|
|
4706
4651
|
return {
|
|
4707
|
-
CreationDate: output.CreationDate
|
|
4652
|
+
CreationDate: output.CreationDate != null
|
|
4708
4653
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4709
4654
|
: undefined,
|
|
4710
4655
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4711
4656
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
4712
4657
|
State: __expectString(output.State),
|
|
4713
|
-
UpdateDate: output.UpdateDate
|
|
4714
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
4715
|
-
: undefined,
|
|
4658
|
+
UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
|
|
4716
4659
|
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
4717
4660
|
};
|
|
4718
4661
|
};
|
|
@@ -4725,7 +4668,7 @@ var deserializeAws_restJson1ChangeProgressDetails = function (output, context) {
|
|
|
4725
4668
|
var deserializeAws_restJson1ChangeProgressStage = function (output, context) {
|
|
4726
4669
|
return {
|
|
4727
4670
|
Description: __expectString(output.Description),
|
|
4728
|
-
LastUpdated: output.LastUpdated
|
|
4671
|
+
LastUpdated: output.LastUpdated != null
|
|
4729
4672
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
|
|
4730
4673
|
: undefined,
|
|
4731
4674
|
Name: __expectString(output.Name),
|
|
@@ -4746,18 +4689,16 @@ var deserializeAws_restJson1ChangeProgressStageList = function (output, context)
|
|
|
4746
4689
|
var deserializeAws_restJson1ChangeProgressStatusDetails = function (output, context) {
|
|
4747
4690
|
return {
|
|
4748
4691
|
ChangeId: __expectString(output.ChangeId),
|
|
4749
|
-
ChangeProgressStages: output.ChangeProgressStages
|
|
4692
|
+
ChangeProgressStages: output.ChangeProgressStages != null
|
|
4750
4693
|
? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
|
|
4751
4694
|
: undefined,
|
|
4752
|
-
CompletedProperties: output.CompletedProperties
|
|
4695
|
+
CompletedProperties: output.CompletedProperties != null
|
|
4753
4696
|
? deserializeAws_restJson1StringList(output.CompletedProperties, context)
|
|
4754
4697
|
: undefined,
|
|
4755
|
-
PendingProperties: output.PendingProperties
|
|
4698
|
+
PendingProperties: output.PendingProperties != null
|
|
4756
4699
|
? deserializeAws_restJson1StringList(output.PendingProperties, context)
|
|
4757
4700
|
: undefined,
|
|
4758
|
-
StartTime: output.StartTime
|
|
4759
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4760
|
-
: undefined,
|
|
4701
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
4761
4702
|
Status: __expectString(output.Status),
|
|
4762
4703
|
TotalNumberOfStages: __expectInt32(output.TotalNumberOfStages),
|
|
4763
4704
|
};
|
|
@@ -4772,12 +4713,8 @@ var deserializeAws_restJson1CognitoOptions = function (output, context) {
|
|
|
4772
4713
|
};
|
|
4773
4714
|
var deserializeAws_restJson1CognitoOptionsStatus = function (output, context) {
|
|
4774
4715
|
return {
|
|
4775
|
-
Options: output.Options
|
|
4776
|
-
|
|
4777
|
-
: undefined,
|
|
4778
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4779
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4780
|
-
: undefined,
|
|
4716
|
+
Options: output.Options != null ? deserializeAws_restJson1CognitoOptions(output.Options, context) : undefined,
|
|
4717
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4781
4718
|
};
|
|
4782
4719
|
};
|
|
4783
4720
|
var deserializeAws_restJson1ColdStorageOptions = function (output, context) {
|
|
@@ -4799,7 +4736,7 @@ var deserializeAws_restJson1CompatibleElasticsearchVersionsList = function (outp
|
|
|
4799
4736
|
var deserializeAws_restJson1CompatibleVersionsMap = function (output, context) {
|
|
4800
4737
|
return {
|
|
4801
4738
|
SourceVersion: __expectString(output.SourceVersion),
|
|
4802
|
-
TargetVersions: output.TargetVersions
|
|
4739
|
+
TargetVersions: output.TargetVersions != null
|
|
4803
4740
|
? deserializeAws_restJson1ElasticsearchVersionList(output.TargetVersions, context)
|
|
4804
4741
|
: undefined,
|
|
4805
4742
|
};
|
|
@@ -4815,12 +4752,8 @@ var deserializeAws_restJson1DomainEndpointOptions = function (output, context) {
|
|
|
4815
4752
|
};
|
|
4816
4753
|
var deserializeAws_restJson1DomainEndpointOptionsStatus = function (output, context) {
|
|
4817
4754
|
return {
|
|
4818
|
-
Options: output.Options
|
|
4819
|
-
|
|
4820
|
-
: undefined,
|
|
4821
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4822
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4823
|
-
: undefined,
|
|
4755
|
+
Options: output.Options != null ? deserializeAws_restJson1DomainEndpointOptions(output.Options, context) : undefined,
|
|
4756
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4824
4757
|
};
|
|
4825
4758
|
};
|
|
4826
4759
|
var deserializeAws_restJson1DomainInfo = function (output, context) {
|
|
@@ -4851,10 +4784,8 @@ var deserializeAws_restJson1DomainPackageDetails = function (output, context) {
|
|
|
4851
4784
|
return {
|
|
4852
4785
|
DomainName: __expectString(output.DomainName),
|
|
4853
4786
|
DomainPackageStatus: __expectString(output.DomainPackageStatus),
|
|
4854
|
-
ErrorDetails: output.ErrorDetails
|
|
4855
|
-
|
|
4856
|
-
: undefined,
|
|
4857
|
-
LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
|
|
4787
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
4788
|
+
LastUpdated: output.LastUpdated != null
|
|
4858
4789
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
|
|
4859
4790
|
: undefined,
|
|
4860
4791
|
PackageID: __expectString(output.PackageID),
|
|
@@ -4897,17 +4828,13 @@ var deserializeAws_restJson1EBSOptions = function (output, context) {
|
|
|
4897
4828
|
};
|
|
4898
4829
|
var deserializeAws_restJson1EBSOptionsStatus = function (output, context) {
|
|
4899
4830
|
return {
|
|
4900
|
-
Options: output.Options
|
|
4901
|
-
|
|
4902
|
-
: undefined,
|
|
4903
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4904
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4905
|
-
: undefined,
|
|
4831
|
+
Options: output.Options != null ? deserializeAws_restJson1EBSOptions(output.Options, context) : undefined,
|
|
4832
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4906
4833
|
};
|
|
4907
4834
|
};
|
|
4908
4835
|
var deserializeAws_restJson1ElasticsearchClusterConfig = function (output, context) {
|
|
4909
4836
|
return {
|
|
4910
|
-
ColdStorageOptions: output.ColdStorageOptions
|
|
4837
|
+
ColdStorageOptions: output.ColdStorageOptions != null
|
|
4911
4838
|
? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
|
|
4912
4839
|
: undefined,
|
|
4913
4840
|
DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount),
|
|
@@ -4918,7 +4845,7 @@ var deserializeAws_restJson1ElasticsearchClusterConfig = function (output, conte
|
|
|
4918
4845
|
WarmCount: __expectInt32(output.WarmCount),
|
|
4919
4846
|
WarmEnabled: __expectBoolean(output.WarmEnabled),
|
|
4920
4847
|
WarmType: __expectString(output.WarmType),
|
|
4921
|
-
ZoneAwarenessConfig: output.ZoneAwarenessConfig
|
|
4848
|
+
ZoneAwarenessConfig: output.ZoneAwarenessConfig != null
|
|
4922
4849
|
? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
|
|
4923
4850
|
: undefined,
|
|
4924
4851
|
ZoneAwarenessEnabled: __expectBoolean(output.ZoneAwarenessEnabled),
|
|
@@ -4926,120 +4853,106 @@ var deserializeAws_restJson1ElasticsearchClusterConfig = function (output, conte
|
|
|
4926
4853
|
};
|
|
4927
4854
|
var deserializeAws_restJson1ElasticsearchClusterConfigStatus = function (output, context) {
|
|
4928
4855
|
return {
|
|
4929
|
-
Options: output.Options
|
|
4930
|
-
|
|
4931
|
-
: undefined,
|
|
4932
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4933
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4934
|
-
: undefined,
|
|
4856
|
+
Options: output.Options != null ? deserializeAws_restJson1ElasticsearchClusterConfig(output.Options, context) : undefined,
|
|
4857
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4935
4858
|
};
|
|
4936
4859
|
};
|
|
4937
4860
|
var deserializeAws_restJson1ElasticsearchDomainConfig = function (output, context) {
|
|
4938
4861
|
return {
|
|
4939
|
-
AccessPolicies: output.AccessPolicies
|
|
4862
|
+
AccessPolicies: output.AccessPolicies != null
|
|
4940
4863
|
? deserializeAws_restJson1AccessPoliciesStatus(output.AccessPolicies, context)
|
|
4941
4864
|
: undefined,
|
|
4942
|
-
AdvancedOptions: output.AdvancedOptions
|
|
4865
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4943
4866
|
? deserializeAws_restJson1AdvancedOptionsStatus(output.AdvancedOptions, context)
|
|
4944
4867
|
: undefined,
|
|
4945
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
4868
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4946
4869
|
? deserializeAws_restJson1AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
|
|
4947
4870
|
: undefined,
|
|
4948
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
4871
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4949
4872
|
? deserializeAws_restJson1AutoTuneOptionsStatus(output.AutoTuneOptions, context)
|
|
4950
4873
|
: undefined,
|
|
4951
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
4874
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
4952
4875
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
4953
4876
|
: undefined,
|
|
4954
|
-
CognitoOptions: output.CognitoOptions
|
|
4877
|
+
CognitoOptions: output.CognitoOptions != null
|
|
4955
4878
|
? deserializeAws_restJson1CognitoOptionsStatus(output.CognitoOptions, context)
|
|
4956
4879
|
: undefined,
|
|
4957
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
4880
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
4958
4881
|
? deserializeAws_restJson1DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
|
|
4959
4882
|
: undefined,
|
|
4960
|
-
EBSOptions: output.EBSOptions
|
|
4961
|
-
|
|
4962
|
-
: undefined,
|
|
4963
|
-
ElasticsearchClusterConfig: output.ElasticsearchClusterConfig !== undefined && output.ElasticsearchClusterConfig !== null
|
|
4883
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptionsStatus(output.EBSOptions, context) : undefined,
|
|
4884
|
+
ElasticsearchClusterConfig: output.ElasticsearchClusterConfig != null
|
|
4964
4885
|
? deserializeAws_restJson1ElasticsearchClusterConfigStatus(output.ElasticsearchClusterConfig, context)
|
|
4965
4886
|
: undefined,
|
|
4966
|
-
ElasticsearchVersion: output.ElasticsearchVersion
|
|
4887
|
+
ElasticsearchVersion: output.ElasticsearchVersion != null
|
|
4967
4888
|
? deserializeAws_restJson1ElasticsearchVersionStatus(output.ElasticsearchVersion, context)
|
|
4968
4889
|
: undefined,
|
|
4969
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions
|
|
4890
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
4970
4891
|
? deserializeAws_restJson1EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
|
|
4971
4892
|
: undefined,
|
|
4972
|
-
LogPublishingOptions: output.LogPublishingOptions
|
|
4893
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
4973
4894
|
? deserializeAws_restJson1LogPublishingOptionsStatus(output.LogPublishingOptions, context)
|
|
4974
4895
|
: undefined,
|
|
4975
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
4896
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
4976
4897
|
? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
|
|
4977
4898
|
: undefined,
|
|
4978
|
-
SnapshotOptions: output.SnapshotOptions
|
|
4899
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
4979
4900
|
? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
|
|
4980
4901
|
: undefined,
|
|
4981
|
-
VPCOptions: output.VPCOptions
|
|
4982
|
-
? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context)
|
|
4983
|
-
: undefined,
|
|
4902
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
|
|
4984
4903
|
};
|
|
4985
4904
|
};
|
|
4986
4905
|
var deserializeAws_restJson1ElasticsearchDomainStatus = function (output, context) {
|
|
4987
4906
|
return {
|
|
4988
4907
|
ARN: __expectString(output.ARN),
|
|
4989
4908
|
AccessPolicies: __expectString(output.AccessPolicies),
|
|
4990
|
-
AdvancedOptions: output.AdvancedOptions
|
|
4909
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4991
4910
|
? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
|
|
4992
4911
|
: undefined,
|
|
4993
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
4912
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4994
4913
|
? deserializeAws_restJson1AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
|
|
4995
4914
|
: undefined,
|
|
4996
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
4915
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4997
4916
|
? deserializeAws_restJson1AutoTuneOptionsOutput(output.AutoTuneOptions, context)
|
|
4998
4917
|
: undefined,
|
|
4999
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
4918
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
5000
4919
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
5001
4920
|
: undefined,
|
|
5002
|
-
CognitoOptions: output.CognitoOptions
|
|
4921
|
+
CognitoOptions: output.CognitoOptions != null
|
|
5003
4922
|
? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
|
|
5004
4923
|
: undefined,
|
|
5005
4924
|
Created: __expectBoolean(output.Created),
|
|
5006
4925
|
Deleted: __expectBoolean(output.Deleted),
|
|
5007
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
4926
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
5008
4927
|
? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
|
|
5009
4928
|
: undefined,
|
|
5010
4929
|
DomainId: __expectString(output.DomainId),
|
|
5011
4930
|
DomainName: __expectString(output.DomainName),
|
|
5012
|
-
EBSOptions: output.EBSOptions
|
|
5013
|
-
|
|
5014
|
-
: undefined,
|
|
5015
|
-
ElasticsearchClusterConfig: output.ElasticsearchClusterConfig !== undefined && output.ElasticsearchClusterConfig !== null
|
|
4931
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context) : undefined,
|
|
4932
|
+
ElasticsearchClusterConfig: output.ElasticsearchClusterConfig != null
|
|
5016
4933
|
? deserializeAws_restJson1ElasticsearchClusterConfig(output.ElasticsearchClusterConfig, context)
|
|
5017
4934
|
: undefined,
|
|
5018
4935
|
ElasticsearchVersion: __expectString(output.ElasticsearchVersion),
|
|
5019
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions
|
|
4936
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
5020
4937
|
? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
|
|
5021
4938
|
: undefined,
|
|
5022
4939
|
Endpoint: __expectString(output.Endpoint),
|
|
5023
|
-
Endpoints: output.Endpoints
|
|
5024
|
-
|
|
5025
|
-
: undefined,
|
|
5026
|
-
LogPublishingOptions: output.LogPublishingOptions !== undefined && output.LogPublishingOptions !== null
|
|
4940
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context) : undefined,
|
|
4941
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
5027
4942
|
? deserializeAws_restJson1LogPublishingOptions(output.LogPublishingOptions, context)
|
|
5028
4943
|
: undefined,
|
|
5029
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
4944
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
5030
4945
|
? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
|
|
5031
4946
|
: undefined,
|
|
5032
4947
|
Processing: __expectBoolean(output.Processing),
|
|
5033
|
-
ServiceSoftwareOptions: output.ServiceSoftwareOptions
|
|
4948
|
+
ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
|
|
5034
4949
|
? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
|
|
5035
4950
|
: undefined,
|
|
5036
|
-
SnapshotOptions: output.SnapshotOptions
|
|
4951
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
5037
4952
|
? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
|
|
5038
4953
|
: undefined,
|
|
5039
4954
|
UpgradeProcessing: __expectBoolean(output.UpgradeProcessing),
|
|
5040
|
-
VPCOptions: output.VPCOptions
|
|
5041
|
-
? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
|
|
5042
|
-
: undefined,
|
|
4955
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
|
|
5043
4956
|
};
|
|
5044
4957
|
};
|
|
5045
4958
|
var deserializeAws_restJson1ElasticsearchDomainStatusList = function (output, context) {
|
|
@@ -5078,9 +4991,7 @@ var deserializeAws_restJson1ElasticsearchVersionList = function (output, context
|
|
|
5078
4991
|
var deserializeAws_restJson1ElasticsearchVersionStatus = function (output, context) {
|
|
5079
4992
|
return {
|
|
5080
4993
|
Options: __expectString(output.Options),
|
|
5081
|
-
Status: output.Status
|
|
5082
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5083
|
-
: undefined,
|
|
4994
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5084
4995
|
};
|
|
5085
4996
|
};
|
|
5086
4997
|
var deserializeAws_restJson1EncryptionAtRestOptions = function (output, context) {
|
|
@@ -5091,12 +5002,8 @@ var deserializeAws_restJson1EncryptionAtRestOptions = function (output, context)
|
|
|
5091
5002
|
};
|
|
5092
5003
|
var deserializeAws_restJson1EncryptionAtRestOptionsStatus = function (output, context) {
|
|
5093
5004
|
return {
|
|
5094
|
-
Options: output.Options
|
|
5095
|
-
|
|
5096
|
-
: undefined,
|
|
5097
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5098
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5099
|
-
: undefined,
|
|
5005
|
+
Options: output.Options != null ? deserializeAws_restJson1EncryptionAtRestOptions(output.Options, context) : undefined,
|
|
5006
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5100
5007
|
};
|
|
5101
5008
|
};
|
|
5102
5009
|
var deserializeAws_restJson1EndpointsMap = function (output, context) {
|
|
@@ -5117,14 +5024,14 @@ var deserializeAws_restJson1ErrorDetails = function (output, context) {
|
|
|
5117
5024
|
};
|
|
5118
5025
|
var deserializeAws_restJson1InboundCrossClusterSearchConnection = function (output, context) {
|
|
5119
5026
|
return {
|
|
5120
|
-
ConnectionStatus: output.ConnectionStatus
|
|
5027
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
5121
5028
|
? deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
|
|
5122
5029
|
: undefined,
|
|
5123
5030
|
CrossClusterSearchConnectionId: __expectString(output.CrossClusterSearchConnectionId),
|
|
5124
|
-
DestinationDomainInfo: output.DestinationDomainInfo
|
|
5031
|
+
DestinationDomainInfo: output.DestinationDomainInfo != null
|
|
5125
5032
|
? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
|
|
5126
5033
|
: undefined,
|
|
5127
|
-
SourceDomainInfo: output.SourceDomainInfo
|
|
5034
|
+
SourceDomainInfo: output.SourceDomainInfo != null
|
|
5128
5035
|
? deserializeAws_restJson1DomainInformation(output.SourceDomainInfo, context)
|
|
5129
5036
|
: undefined,
|
|
5130
5037
|
};
|
|
@@ -5154,7 +5061,7 @@ var deserializeAws_restJson1InstanceCountLimits = function (output, context) {
|
|
|
5154
5061
|
};
|
|
5155
5062
|
var deserializeAws_restJson1InstanceLimits = function (output, context) {
|
|
5156
5063
|
return {
|
|
5157
|
-
InstanceCountLimits: output.InstanceCountLimits
|
|
5064
|
+
InstanceCountLimits: output.InstanceCountLimits != null
|
|
5158
5065
|
? deserializeAws_restJson1InstanceCountLimits(output.InstanceCountLimits, context)
|
|
5159
5066
|
: undefined,
|
|
5160
5067
|
};
|
|
@@ -5172,15 +5079,13 @@ var deserializeAws_restJson1Issues = function (output, context) {
|
|
|
5172
5079
|
};
|
|
5173
5080
|
var deserializeAws_restJson1Limits = function (output, context) {
|
|
5174
5081
|
return {
|
|
5175
|
-
AdditionalLimits: output.AdditionalLimits
|
|
5082
|
+
AdditionalLimits: output.AdditionalLimits != null
|
|
5176
5083
|
? deserializeAws_restJson1AdditionalLimitList(output.AdditionalLimits, context)
|
|
5177
5084
|
: undefined,
|
|
5178
|
-
InstanceLimits: output.InstanceLimits
|
|
5085
|
+
InstanceLimits: output.InstanceLimits != null
|
|
5179
5086
|
? deserializeAws_restJson1InstanceLimits(output.InstanceLimits, context)
|
|
5180
5087
|
: undefined,
|
|
5181
|
-
StorageTypes: output.StorageTypes
|
|
5182
|
-
? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context)
|
|
5183
|
-
: undefined,
|
|
5088
|
+
StorageTypes: output.StorageTypes != null ? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context) : undefined,
|
|
5184
5089
|
};
|
|
5185
5090
|
};
|
|
5186
5091
|
var deserializeAws_restJson1LimitsByRole = function (output, context) {
|
|
@@ -5222,12 +5127,8 @@ var deserializeAws_restJson1LogPublishingOptions = function (output, context) {
|
|
|
5222
5127
|
};
|
|
5223
5128
|
var deserializeAws_restJson1LogPublishingOptionsStatus = function (output, context) {
|
|
5224
5129
|
return {
|
|
5225
|
-
Options: output.Options
|
|
5226
|
-
|
|
5227
|
-
: undefined,
|
|
5228
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5229
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5230
|
-
: undefined,
|
|
5130
|
+
Options: output.Options != null ? deserializeAws_restJson1LogPublishingOptions(output.Options, context) : undefined,
|
|
5131
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5231
5132
|
};
|
|
5232
5133
|
};
|
|
5233
5134
|
var deserializeAws_restJson1NodeToNodeEncryptionOptions = function (output, context) {
|
|
@@ -5237,38 +5138,32 @@ var deserializeAws_restJson1NodeToNodeEncryptionOptions = function (output, cont
|
|
|
5237
5138
|
};
|
|
5238
5139
|
var deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = function (output, context) {
|
|
5239
5140
|
return {
|
|
5240
|
-
Options: output.Options
|
|
5241
|
-
|
|
5242
|
-
: undefined,
|
|
5243
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5244
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5245
|
-
: undefined,
|
|
5141
|
+
Options: output.Options != null ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.Options, context) : undefined,
|
|
5142
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5246
5143
|
};
|
|
5247
5144
|
};
|
|
5248
5145
|
var deserializeAws_restJson1OptionStatus = function (output, context) {
|
|
5249
5146
|
return {
|
|
5250
|
-
CreationDate: output.CreationDate
|
|
5147
|
+
CreationDate: output.CreationDate != null
|
|
5251
5148
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5252
5149
|
: undefined,
|
|
5253
5150
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
5254
5151
|
State: __expectString(output.State),
|
|
5255
|
-
UpdateDate: output.UpdateDate
|
|
5256
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
5257
|
-
: undefined,
|
|
5152
|
+
UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
|
|
5258
5153
|
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
5259
5154
|
};
|
|
5260
5155
|
};
|
|
5261
5156
|
var deserializeAws_restJson1OutboundCrossClusterSearchConnection = function (output, context) {
|
|
5262
5157
|
return {
|
|
5263
5158
|
ConnectionAlias: __expectString(output.ConnectionAlias),
|
|
5264
|
-
ConnectionStatus: output.ConnectionStatus
|
|
5159
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
5265
5160
|
? deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus(output.ConnectionStatus, context)
|
|
5266
5161
|
: undefined,
|
|
5267
5162
|
CrossClusterSearchConnectionId: __expectString(output.CrossClusterSearchConnectionId),
|
|
5268
|
-
DestinationDomainInfo: output.DestinationDomainInfo
|
|
5163
|
+
DestinationDomainInfo: output.DestinationDomainInfo != null
|
|
5269
5164
|
? deserializeAws_restJson1DomainInformation(output.DestinationDomainInfo, context)
|
|
5270
5165
|
: undefined,
|
|
5271
|
-
SourceDomainInfo: output.SourceDomainInfo
|
|
5166
|
+
SourceDomainInfo: output.SourceDomainInfo != null
|
|
5272
5167
|
? deserializeAws_restJson1DomainInformation(output.SourceDomainInfo, context)
|
|
5273
5168
|
: undefined,
|
|
5274
5169
|
};
|
|
@@ -5293,13 +5188,9 @@ var deserializeAws_restJson1OutboundCrossClusterSearchConnectionStatus = functio
|
|
|
5293
5188
|
var deserializeAws_restJson1PackageDetails = function (output, context) {
|
|
5294
5189
|
return {
|
|
5295
5190
|
AvailablePackageVersion: __expectString(output.AvailablePackageVersion),
|
|
5296
|
-
CreatedAt: output.CreatedAt
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
|
|
5300
|
-
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
5301
|
-
: undefined,
|
|
5302
|
-
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
5191
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
5192
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
5193
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
5303
5194
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
5304
5195
|
: undefined,
|
|
5305
5196
|
PackageDescription: __expectString(output.PackageDescription),
|
|
@@ -5323,9 +5214,7 @@ var deserializeAws_restJson1PackageDetailsList = function (output, context) {
|
|
|
5323
5214
|
var deserializeAws_restJson1PackageVersionHistory = function (output, context) {
|
|
5324
5215
|
return {
|
|
5325
5216
|
CommitMessage: __expectString(output.CommitMessage),
|
|
5326
|
-
CreatedAt: output.CreatedAt
|
|
5327
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5328
|
-
: undefined,
|
|
5217
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
5329
5218
|
PackageVersion: __expectString(output.PackageVersion),
|
|
5330
5219
|
};
|
|
5331
5220
|
};
|
|
@@ -5365,15 +5254,13 @@ var deserializeAws_restJson1ReservedElasticsearchInstance = function (output, co
|
|
|
5365
5254
|
ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
|
|
5366
5255
|
FixedPrice: __limitedParseDouble(output.FixedPrice),
|
|
5367
5256
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5368
|
-
RecurringCharges: output.RecurringCharges
|
|
5257
|
+
RecurringCharges: output.RecurringCharges != null
|
|
5369
5258
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
5370
5259
|
: undefined,
|
|
5371
5260
|
ReservationName: __expectString(output.ReservationName),
|
|
5372
5261
|
ReservedElasticsearchInstanceId: __expectString(output.ReservedElasticsearchInstanceId),
|
|
5373
5262
|
ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
|
|
5374
|
-
StartTime: output.StartTime
|
|
5375
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
5376
|
-
: undefined,
|
|
5263
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
5377
5264
|
State: __expectString(output.State),
|
|
5378
5265
|
UsagePrice: __limitedParseDouble(output.UsagePrice),
|
|
5379
5266
|
};
|
|
@@ -5396,7 +5283,7 @@ var deserializeAws_restJson1ReservedElasticsearchInstanceOffering = function (ou
|
|
|
5396
5283
|
ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
|
|
5397
5284
|
FixedPrice: __limitedParseDouble(output.FixedPrice),
|
|
5398
5285
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5399
|
-
RecurringCharges: output.RecurringCharges
|
|
5286
|
+
RecurringCharges: output.RecurringCharges != null
|
|
5400
5287
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
5401
5288
|
: undefined,
|
|
5402
5289
|
ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
|
|
@@ -5423,9 +5310,7 @@ var deserializeAws_restJson1SAMLIdp = function (output, context) {
|
|
|
5423
5310
|
var deserializeAws_restJson1SAMLOptionsOutput = function (output, context) {
|
|
5424
5311
|
return {
|
|
5425
5312
|
Enabled: __expectBoolean(output.Enabled),
|
|
5426
|
-
Idp: output.Idp
|
|
5427
|
-
? deserializeAws_restJson1SAMLIdp(output.Idp, context)
|
|
5428
|
-
: undefined,
|
|
5313
|
+
Idp: output.Idp != null ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined,
|
|
5429
5314
|
RolesKey: __expectString(output.RolesKey),
|
|
5430
5315
|
SessionTimeoutMinutes: __expectInt32(output.SessionTimeoutMinutes),
|
|
5431
5316
|
SubjectKey: __expectString(output.SubjectKey),
|
|
@@ -5435,15 +5320,13 @@ var deserializeAws_restJson1ScheduledAutoTuneDetails = function (output, context
|
|
|
5435
5320
|
return {
|
|
5436
5321
|
Action: __expectString(output.Action),
|
|
5437
5322
|
ActionType: __expectString(output.ActionType),
|
|
5438
|
-
Date: output.Date
|
|
5439
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date)))
|
|
5440
|
-
: undefined,
|
|
5323
|
+
Date: output.Date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date))) : undefined,
|
|
5441
5324
|
Severity: __expectString(output.Severity),
|
|
5442
5325
|
};
|
|
5443
5326
|
};
|
|
5444
5327
|
var deserializeAws_restJson1ServiceSoftwareOptions = function (output, context) {
|
|
5445
5328
|
return {
|
|
5446
|
-
AutomatedUpdateDate: output.AutomatedUpdateDate
|
|
5329
|
+
AutomatedUpdateDate: output.AutomatedUpdateDate != null
|
|
5447
5330
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutomatedUpdateDate)))
|
|
5448
5331
|
: undefined,
|
|
5449
5332
|
Cancellable: __expectBoolean(output.Cancellable),
|
|
@@ -5462,18 +5345,14 @@ var deserializeAws_restJson1SnapshotOptions = function (output, context) {
|
|
|
5462
5345
|
};
|
|
5463
5346
|
var deserializeAws_restJson1SnapshotOptionsStatus = function (output, context) {
|
|
5464
5347
|
return {
|
|
5465
|
-
Options: output.Options
|
|
5466
|
-
|
|
5467
|
-
: undefined,
|
|
5468
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5469
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5470
|
-
: undefined,
|
|
5348
|
+
Options: output.Options != null ? deserializeAws_restJson1SnapshotOptions(output.Options, context) : undefined,
|
|
5349
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5471
5350
|
};
|
|
5472
5351
|
};
|
|
5473
5352
|
var deserializeAws_restJson1StorageType = function (output, context) {
|
|
5474
5353
|
return {
|
|
5475
5354
|
StorageSubTypeName: __expectString(output.StorageSubTypeName),
|
|
5476
|
-
StorageTypeLimits: output.StorageTypeLimits
|
|
5355
|
+
StorageTypeLimits: output.StorageTypeLimits != null
|
|
5477
5356
|
? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
|
|
5478
5357
|
: undefined,
|
|
5479
5358
|
StorageTypeName: __expectString(output.StorageTypeName),
|
|
@@ -5482,9 +5361,7 @@ var deserializeAws_restJson1StorageType = function (output, context) {
|
|
|
5482
5361
|
var deserializeAws_restJson1StorageTypeLimit = function (output, context) {
|
|
5483
5362
|
return {
|
|
5484
5363
|
LimitName: __expectString(output.LimitName),
|
|
5485
|
-
LimitValues: output.LimitValues
|
|
5486
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
5487
|
-
: undefined,
|
|
5364
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
5488
5365
|
};
|
|
5489
5366
|
};
|
|
5490
5367
|
var deserializeAws_restJson1StorageTypeLimitList = function (output, context) {
|
|
@@ -5539,12 +5416,10 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
5539
5416
|
};
|
|
5540
5417
|
var deserializeAws_restJson1UpgradeHistory = function (output, context) {
|
|
5541
5418
|
return {
|
|
5542
|
-
StartTimestamp: output.StartTimestamp
|
|
5419
|
+
StartTimestamp: output.StartTimestamp != null
|
|
5543
5420
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTimestamp)))
|
|
5544
5421
|
: undefined,
|
|
5545
|
-
StepsList: output.StepsList
|
|
5546
|
-
? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
|
|
5547
|
-
: undefined,
|
|
5422
|
+
StepsList: output.StepsList != null ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context) : undefined,
|
|
5548
5423
|
UpgradeName: __expectString(output.UpgradeName),
|
|
5549
5424
|
UpgradeStatus: __expectString(output.UpgradeStatus),
|
|
5550
5425
|
};
|
|
@@ -5562,9 +5437,7 @@ var deserializeAws_restJson1UpgradeHistoryList = function (output, context) {
|
|
|
5562
5437
|
};
|
|
5563
5438
|
var deserializeAws_restJson1UpgradeStepItem = function (output, context) {
|
|
5564
5439
|
return {
|
|
5565
|
-
Issues: output.Issues
|
|
5566
|
-
? deserializeAws_restJson1Issues(output.Issues, context)
|
|
5567
|
-
: undefined,
|
|
5440
|
+
Issues: output.Issues != null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined,
|
|
5568
5441
|
ProgressPercent: __limitedParseDouble(output.ProgressPercent),
|
|
5569
5442
|
UpgradeStep: __expectString(output.UpgradeStep),
|
|
5570
5443
|
UpgradeStepStatus: __expectString(output.UpgradeStepStatus),
|
|
@@ -5583,26 +5456,20 @@ var deserializeAws_restJson1UpgradeStepsList = function (output, context) {
|
|
|
5583
5456
|
};
|
|
5584
5457
|
var deserializeAws_restJson1VPCDerivedInfo = function (output, context) {
|
|
5585
5458
|
return {
|
|
5586
|
-
AvailabilityZones: output.AvailabilityZones
|
|
5459
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
5587
5460
|
? deserializeAws_restJson1StringList(output.AvailabilityZones, context)
|
|
5588
5461
|
: undefined,
|
|
5589
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
5462
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
5590
5463
|
? deserializeAws_restJson1StringList(output.SecurityGroupIds, context)
|
|
5591
5464
|
: undefined,
|
|
5592
|
-
SubnetIds: output.SubnetIds
|
|
5593
|
-
? deserializeAws_restJson1StringList(output.SubnetIds, context)
|
|
5594
|
-
: undefined,
|
|
5465
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1StringList(output.SubnetIds, context) : undefined,
|
|
5595
5466
|
VPCId: __expectString(output.VPCId),
|
|
5596
5467
|
};
|
|
5597
5468
|
};
|
|
5598
5469
|
var deserializeAws_restJson1VPCDerivedInfoStatus = function (output, context) {
|
|
5599
5470
|
return {
|
|
5600
|
-
Options: output.Options
|
|
5601
|
-
|
|
5602
|
-
: undefined,
|
|
5603
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5604
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5605
|
-
: undefined,
|
|
5471
|
+
Options: output.Options != null ? deserializeAws_restJson1VPCDerivedInfo(output.Options, context) : undefined,
|
|
5472
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5606
5473
|
};
|
|
5607
5474
|
};
|
|
5608
5475
|
var deserializeAws_restJson1ZoneAwarenessConfig = function (output, context) {
|
|
@@ -5666,5 +5533,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5666
5533
|
if (data["__type"] !== undefined) {
|
|
5667
5534
|
return sanitizeErrorCode(data["__type"]);
|
|
5668
5535
|
}
|
|
5669
|
-
return "";
|
|
5670
5536
|
};
|