@aws-sdk/client-opensearch 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 +451 -595
- package/dist-es/protocols/Aws_restJson1.js +382 -526
- 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 || "") + "/2021-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_restJson1CancelServiceSoftwareUpdateCommand = function (
|
|
|
114
113
|
};
|
|
115
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
116
115
|
"/2021-01-01/opensearch/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,41 +137,27 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
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 || "") + "/2021-01-01/opensearch/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.ClusterConfig
|
|
152
|
-
input.ClusterConfig !== null && {
|
|
146
|
+
})), (input.ClusterConfig != null && {
|
|
153
147
|
ClusterConfig: serializeAws_restJson1ClusterConfig(input.ClusterConfig, context),
|
|
154
|
-
})), (input.CognitoOptions
|
|
155
|
-
input.CognitoOptions !== null && {
|
|
148
|
+
})), (input.CognitoOptions != null && {
|
|
156
149
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
157
|
-
})), (input.DomainEndpointOptions
|
|
158
|
-
input.DomainEndpointOptions !== null && {
|
|
150
|
+
})), (input.DomainEndpointOptions != null && {
|
|
159
151
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
160
|
-
})), (input.DomainName
|
|
161
|
-
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.EncryptionAtRestOptions !== undefined &&
|
|
162
|
-
input.EncryptionAtRestOptions !== null && {
|
|
152
|
+
})), (input.DomainName != null && { DomainName: input.DomainName })), (input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.EncryptionAtRestOptions != null && {
|
|
163
153
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
164
|
-
})), (input.EngineVersion
|
|
165
|
-
input.LogPublishingOptions !== null && {
|
|
154
|
+
})), (input.EngineVersion != null && { EngineVersion: input.EngineVersion })), (input.LogPublishingOptions != null && {
|
|
166
155
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
167
|
-
})), (input.NodeToNodeEncryptionOptions
|
|
168
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
156
|
+
})), (input.NodeToNodeEncryptionOptions != null && {
|
|
169
157
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
170
|
-
})), (input.SnapshotOptions
|
|
171
|
-
input.SnapshotOptions !== null && {
|
|
158
|
+
})), (input.SnapshotOptions != null && {
|
|
172
159
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
173
|
-
})), (input.TagList
|
|
174
|
-
input.TagList !== null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })), (input.VPCOptions !== undefined &&
|
|
175
|
-
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) })));
|
|
176
161
|
return [2, new __HttpRequest({
|
|
177
162
|
protocol: protocol,
|
|
178
163
|
hostname: hostname,
|
|
@@ -197,12 +182,9 @@ export var serializeAws_restJson1CreateOutboundConnectionCommand = function (inp
|
|
|
197
182
|
};
|
|
198
183
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
199
184
|
"/2021-01-01/opensearch/cc/outboundConnection";
|
|
200
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectionAlias
|
|
201
|
-
input.ConnectionAlias !== null && { ConnectionAlias: input.ConnectionAlias })), (input.LocalDomainInfo !== undefined &&
|
|
202
|
-
input.LocalDomainInfo !== null && {
|
|
185
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectionAlias != null && { ConnectionAlias: input.ConnectionAlias })), (input.LocalDomainInfo != null && {
|
|
203
186
|
LocalDomainInfo: serializeAws_restJson1DomainInformationContainer(input.LocalDomainInfo, context),
|
|
204
|
-
})), (input.RemoteDomainInfo
|
|
205
|
-
input.RemoteDomainInfo !== null && {
|
|
187
|
+
})), (input.RemoteDomainInfo != null && {
|
|
206
188
|
RemoteDomainInfo: serializeAws_restJson1DomainInformationContainer(input.RemoteDomainInfo, context),
|
|
207
189
|
})));
|
|
208
190
|
return [2, new __HttpRequest({
|
|
@@ -228,11 +210,9 @@ export var serializeAws_restJson1CreatePackageCommand = function (input, context
|
|
|
228
210
|
"content-type": "application/json",
|
|
229
211
|
};
|
|
230
212
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-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 && {
|
|
213
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.PackageDescription != null && { PackageDescription: input.PackageDescription })), (input.PackageName != null && { PackageName: input.PackageName })), (input.PackageSource != null && {
|
|
234
214
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
235
|
-
})), (input.PackageType
|
|
215
|
+
})), (input.PackageType != null && { PackageType: input.PackageType })));
|
|
236
216
|
return [2, new __HttpRequest({
|
|
237
217
|
protocol: protocol,
|
|
238
218
|
hostname: hostname,
|
|
@@ -426,7 +406,7 @@ export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (inpu
|
|
|
426
406
|
else {
|
|
427
407
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
428
408
|
}
|
|
429
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
409
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
430
410
|
return [2, new __HttpRequest({
|
|
431
411
|
protocol: protocol,
|
|
432
412
|
hostname: hostname,
|
|
@@ -516,8 +496,7 @@ export var serializeAws_restJson1DescribeDomainsCommand = function (input, conte
|
|
|
516
496
|
"content-type": "application/json",
|
|
517
497
|
};
|
|
518
498
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/domain-info";
|
|
519
|
-
body = JSON.stringify(__assign({}, (input.DomainNames
|
|
520
|
-
input.DomainNames !== null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) })));
|
|
499
|
+
body = JSON.stringify(__assign({}, (input.DomainNames != null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) })));
|
|
521
500
|
return [2, new __HttpRequest({
|
|
522
501
|
protocol: protocol,
|
|
523
502
|
hostname: hostname,
|
|
@@ -542,8 +521,7 @@ export var serializeAws_restJson1DescribeInboundConnectionsCommand = function (i
|
|
|
542
521
|
};
|
|
543
522
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
544
523
|
"/2021-01-01/opensearch/cc/inboundConnection/search";
|
|
545
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
546
|
-
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 })));
|
|
524
|
+
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 })));
|
|
547
525
|
return [2, new __HttpRequest({
|
|
548
526
|
protocol: protocol,
|
|
549
527
|
hostname: hostname,
|
|
@@ -612,8 +590,7 @@ export var serializeAws_restJson1DescribeOutboundConnectionsCommand = function (
|
|
|
612
590
|
};
|
|
613
591
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
614
592
|
"/2021-01-01/opensearch/cc/outboundConnection/search";
|
|
615
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
616
|
-
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 })));
|
|
593
|
+
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 })));
|
|
617
594
|
return [2, new __HttpRequest({
|
|
618
595
|
protocol: protocol,
|
|
619
596
|
hostname: hostname,
|
|
@@ -637,8 +614,7 @@ export var serializeAws_restJson1DescribePackagesCommand = function (input, cont
|
|
|
637
614
|
"content-type": "application/json",
|
|
638
615
|
};
|
|
639
616
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/describe";
|
|
640
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
641
|
-
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 })));
|
|
617
|
+
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 })));
|
|
642
618
|
return [2, new __HttpRequest({
|
|
643
619
|
protocol: protocol,
|
|
644
620
|
hostname: hostname,
|
|
@@ -1043,9 +1019,7 @@ export var serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = funct
|
|
|
1043
1019
|
};
|
|
1044
1020
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1045
1021
|
"/2021-01-01/opensearch/purchaseReservedInstanceOffering";
|
|
1046
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.InstanceCount
|
|
1047
|
-
input.ReservationName !== null && { ReservationName: input.ReservationName })), (input.ReservedInstanceOfferingId !== undefined &&
|
|
1048
|
-
input.ReservedInstanceOfferingId !== null && { ReservedInstanceOfferingId: input.ReservedInstanceOfferingId })));
|
|
1022
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.InstanceCount != null && { InstanceCount: input.InstanceCount })), (input.ReservationName != null && { ReservationName: input.ReservationName })), (input.ReservedInstanceOfferingId != null && { ReservedInstanceOfferingId: input.ReservedInstanceOfferingId })));
|
|
1049
1023
|
return [2, new __HttpRequest({
|
|
1050
1024
|
protocol: protocol,
|
|
1051
1025
|
hostname: hostname,
|
|
@@ -1101,8 +1075,7 @@ export var serializeAws_restJson1RemoveTagsCommand = function (input, context) {
|
|
|
1101
1075
|
"content-type": "application/json",
|
|
1102
1076
|
};
|
|
1103
1077
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/tags-removal";
|
|
1104
|
-
body = JSON.stringify(__assign(__assign({}, (input.ARN
|
|
1105
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) })));
|
|
1078
|
+
body = JSON.stringify(__assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) })));
|
|
1106
1079
|
return [2, new __HttpRequest({
|
|
1107
1080
|
protocol: protocol,
|
|
1108
1081
|
hostname: hostname,
|
|
@@ -1127,7 +1100,7 @@ export var serializeAws_restJson1StartServiceSoftwareUpdateCommand = function (i
|
|
|
1127
1100
|
};
|
|
1128
1101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1129
1102
|
"/2021-01-01/opensearch/serviceSoftwareUpdate/start";
|
|
1130
|
-
body = JSON.stringify(__assign({}, (input.DomainName
|
|
1103
|
+
body = JSON.stringify(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })));
|
|
1131
1104
|
return [2, new __HttpRequest({
|
|
1132
1105
|
protocol: protocol,
|
|
1133
1106
|
hostname: hostname,
|
|
@@ -1162,40 +1135,27 @@ export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, co
|
|
|
1162
1135
|
else {
|
|
1163
1136
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1164
1137
|
}
|
|
1165
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies
|
|
1166
|
-
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
1167
|
-
input.AdvancedOptions !== null && {
|
|
1138
|
+
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 && {
|
|
1168
1139
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1169
|
-
})), (input.AdvancedSecurityOptions
|
|
1170
|
-
input.AdvancedSecurityOptions !== null && {
|
|
1140
|
+
})), (input.AdvancedSecurityOptions != null && {
|
|
1171
1141
|
AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
|
|
1172
|
-
})), (input.AutoTuneOptions
|
|
1173
|
-
input.AutoTuneOptions !== null && {
|
|
1142
|
+
})), (input.AutoTuneOptions != null && {
|
|
1174
1143
|
AutoTuneOptions: serializeAws_restJson1AutoTuneOptions(input.AutoTuneOptions, context),
|
|
1175
|
-
})), (input.ClusterConfig
|
|
1176
|
-
input.ClusterConfig !== null && {
|
|
1144
|
+
})), (input.ClusterConfig != null && {
|
|
1177
1145
|
ClusterConfig: serializeAws_restJson1ClusterConfig(input.ClusterConfig, context),
|
|
1178
|
-
})), (input.CognitoOptions
|
|
1179
|
-
input.CognitoOptions !== null && {
|
|
1146
|
+
})), (input.CognitoOptions != null && {
|
|
1180
1147
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
1181
|
-
})), (input.DomainEndpointOptions
|
|
1182
|
-
input.DomainEndpointOptions !== null && {
|
|
1148
|
+
})), (input.DomainEndpointOptions != null && {
|
|
1183
1149
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1184
|
-
})), (input.DryRun
|
|
1185
|
-
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.EncryptionAtRestOptions !== undefined &&
|
|
1186
|
-
input.EncryptionAtRestOptions !== null && {
|
|
1150
|
+
})), (input.DryRun != null && { DryRun: input.DryRun })), (input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.EncryptionAtRestOptions != null && {
|
|
1187
1151
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
1188
|
-
})), (input.LogPublishingOptions
|
|
1189
|
-
input.LogPublishingOptions !== null && {
|
|
1152
|
+
})), (input.LogPublishingOptions != null && {
|
|
1190
1153
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
1191
|
-
})), (input.NodeToNodeEncryptionOptions
|
|
1192
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
1154
|
+
})), (input.NodeToNodeEncryptionOptions != null && {
|
|
1193
1155
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
1194
|
-
})), (input.SnapshotOptions
|
|
1195
|
-
input.SnapshotOptions !== null && {
|
|
1156
|
+
})), (input.SnapshotOptions != null && {
|
|
1196
1157
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
1197
|
-
})), (input.VPCOptions
|
|
1198
|
-
input.VPCOptions !== null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
1158
|
+
})), (input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) })));
|
|
1199
1159
|
return [2, new __HttpRequest({
|
|
1200
1160
|
protocol: protocol,
|
|
1201
1161
|
hostname: hostname,
|
|
@@ -1219,9 +1179,7 @@ export var serializeAws_restJson1UpdatePackageCommand = function (input, context
|
|
|
1219
1179
|
"content-type": "application/json",
|
|
1220
1180
|
};
|
|
1221
1181
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/update";
|
|
1222
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CommitMessage
|
|
1223
|
-
input.PackageDescription !== null && { PackageDescription: input.PackageDescription })), (input.PackageID !== undefined && input.PackageID !== null && { PackageID: input.PackageID })), (input.PackageSource !== undefined &&
|
|
1224
|
-
input.PackageSource !== null && {
|
|
1182
|
+
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 && {
|
|
1225
1183
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
1226
1184
|
})));
|
|
1227
1185
|
return [2, new __HttpRequest({
|
|
@@ -1247,11 +1205,9 @@ export var serializeAws_restJson1UpgradeDomainCommand = function (input, context
|
|
|
1247
1205
|
"content-type": "application/json",
|
|
1248
1206
|
};
|
|
1249
1207
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/upgradeDomain";
|
|
1250
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AdvancedOptions
|
|
1251
|
-
input.AdvancedOptions !== null && {
|
|
1208
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AdvancedOptions != null && {
|
|
1252
1209
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1253
|
-
})), (input.DomainName
|
|
1254
|
-
input.PerformCheckOnly !== null && { PerformCheckOnly: input.PerformCheckOnly })), (input.TargetVersion !== undefined && input.TargetVersion !== null && { TargetVersion: input.TargetVersion })));
|
|
1210
|
+
})), (input.DomainName != null && { DomainName: input.DomainName })), (input.PerformCheckOnly != null && { PerformCheckOnly: input.PerformCheckOnly })), (input.TargetVersion != null && { TargetVersion: input.TargetVersion })));
|
|
1255
1211
|
return [2, new __HttpRequest({
|
|
1256
1212
|
protocol: protocol,
|
|
1257
1213
|
hostname: hostname,
|
|
@@ -1289,7 +1245,7 @@ export var deserializeAws_restJson1AcceptInboundConnectionCommand = function (ou
|
|
|
1289
1245
|
});
|
|
1290
1246
|
}); };
|
|
1291
1247
|
var deserializeAws_restJson1AcceptInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1292
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1248
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1293
1249
|
var _c;
|
|
1294
1250
|
return __generator(this, function (_d) {
|
|
1295
1251
|
switch (_d.label) {
|
|
@@ -1299,7 +1255,6 @@ var deserializeAws_restJson1AcceptInboundConnectionCommandError = function (outp
|
|
|
1299
1255
|
return [4, parseBody(output.body, context)];
|
|
1300
1256
|
case 1:
|
|
1301
1257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1302
|
-
errorCode = "UnknownError";
|
|
1303
1258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1259
|
_b = errorCode;
|
|
1305
1260
|
switch (_b) {
|
|
@@ -1319,10 +1274,12 @@ var deserializeAws_restJson1AcceptInboundConnectionCommandError = function (outp
|
|
|
1319
1274
|
case 7: throw _d.sent();
|
|
1320
1275
|
case 8:
|
|
1321
1276
|
parsedBody = parsedOutput.body;
|
|
1277
|
+
$metadata = deserializeMetadata(output);
|
|
1278
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1322
1279
|
response = new __BaseException({
|
|
1323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1280
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1324
1281
|
$fault: "client",
|
|
1325
|
-
$metadata:
|
|
1282
|
+
$metadata: $metadata,
|
|
1326
1283
|
});
|
|
1327
1284
|
throw __decorateServiceException(response, parsedBody);
|
|
1328
1285
|
}
|
|
@@ -1347,7 +1304,7 @@ export var deserializeAws_restJson1AddTagsCommand = function (output, context) {
|
|
|
1347
1304
|
});
|
|
1348
1305
|
}); };
|
|
1349
1306
|
var deserializeAws_restJson1AddTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1350
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1307
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1351
1308
|
var _c;
|
|
1352
1309
|
return __generator(this, function (_d) {
|
|
1353
1310
|
switch (_d.label) {
|
|
@@ -1357,7 +1314,6 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1357
1314
|
return [4, parseBody(output.body, context)];
|
|
1358
1315
|
case 1:
|
|
1359
1316
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1360
|
-
errorCode = "UnknownError";
|
|
1361
1317
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
1318
|
_b = errorCode;
|
|
1363
1319
|
switch (_b) {
|
|
@@ -1381,10 +1337,12 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1381
1337
|
case 9: throw _d.sent();
|
|
1382
1338
|
case 10:
|
|
1383
1339
|
parsedBody = parsedOutput.body;
|
|
1340
|
+
$metadata = deserializeMetadata(output);
|
|
1341
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1384
1342
|
response = new __BaseException({
|
|
1385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1386
1344
|
$fault: "client",
|
|
1387
|
-
$metadata:
|
|
1345
|
+
$metadata: $metadata,
|
|
1388
1346
|
});
|
|
1389
1347
|
throw __decorateServiceException(response, parsedBody);
|
|
1390
1348
|
}
|
|
@@ -1415,7 +1373,7 @@ export var deserializeAws_restJson1AssociatePackageCommand = function (output, c
|
|
|
1415
1373
|
});
|
|
1416
1374
|
}); };
|
|
1417
1375
|
var deserializeAws_restJson1AssociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1418
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1376
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1419
1377
|
var _c;
|
|
1420
1378
|
return __generator(this, function (_d) {
|
|
1421
1379
|
switch (_d.label) {
|
|
@@ -1425,7 +1383,6 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1425
1383
|
return [4, parseBody(output.body, context)];
|
|
1426
1384
|
case 1:
|
|
1427
1385
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1428
|
-
errorCode = "UnknownError";
|
|
1429
1386
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1387
|
_b = errorCode;
|
|
1431
1388
|
switch (_b) {
|
|
@@ -1457,10 +1414,12 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1457
1414
|
case 13: throw _d.sent();
|
|
1458
1415
|
case 14:
|
|
1459
1416
|
parsedBody = parsedOutput.body;
|
|
1417
|
+
$metadata = deserializeMetadata(output);
|
|
1418
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1460
1419
|
response = new __BaseException({
|
|
1461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1462
1421
|
$fault: "client",
|
|
1463
|
-
$metadata:
|
|
1422
|
+
$metadata: $metadata,
|
|
1464
1423
|
});
|
|
1465
1424
|
throw __decorateServiceException(response, parsedBody);
|
|
1466
1425
|
}
|
|
@@ -1491,7 +1450,7 @@ export var deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = function
|
|
|
1491
1450
|
});
|
|
1492
1451
|
}); };
|
|
1493
1452
|
var deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1494
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1495
1454
|
var _c;
|
|
1496
1455
|
return __generator(this, function (_d) {
|
|
1497
1456
|
switch (_d.label) {
|
|
@@ -1501,7 +1460,6 @@ var deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = function (
|
|
|
1501
1460
|
return [4, parseBody(output.body, context)];
|
|
1502
1461
|
case 1:
|
|
1503
1462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1504
|
-
errorCode = "UnknownError";
|
|
1505
1463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1464
|
_b = errorCode;
|
|
1507
1465
|
switch (_b) {
|
|
@@ -1525,10 +1483,12 @@ var deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = function (
|
|
|
1525
1483
|
case 9: throw _d.sent();
|
|
1526
1484
|
case 10:
|
|
1527
1485
|
parsedBody = parsedOutput.body;
|
|
1486
|
+
$metadata = deserializeMetadata(output);
|
|
1487
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1488
|
response = new __BaseException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1490
|
$fault: "client",
|
|
1531
|
-
$metadata:
|
|
1491
|
+
$metadata: $metadata,
|
|
1532
1492
|
});
|
|
1533
1493
|
throw __decorateServiceException(response, parsedBody);
|
|
1534
1494
|
}
|
|
@@ -1559,7 +1519,7 @@ export var deserializeAws_restJson1CreateDomainCommand = function (output, conte
|
|
|
1559
1519
|
});
|
|
1560
1520
|
}); };
|
|
1561
1521
|
var deserializeAws_restJson1CreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1522
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1563
1523
|
var _c;
|
|
1564
1524
|
return __generator(this, function (_d) {
|
|
1565
1525
|
switch (_d.label) {
|
|
@@ -1569,7 +1529,6 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1569
1529
|
return [4, parseBody(output.body, context)];
|
|
1570
1530
|
case 1:
|
|
1571
1531
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1572
|
-
errorCode = "UnknownError";
|
|
1573
1532
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1533
|
_b = errorCode;
|
|
1575
1534
|
switch (_b) {
|
|
@@ -1605,10 +1564,12 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1605
1564
|
case 15: throw _d.sent();
|
|
1606
1565
|
case 16:
|
|
1607
1566
|
parsedBody = parsedOutput.body;
|
|
1567
|
+
$metadata = deserializeMetadata(output);
|
|
1568
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1608
1569
|
response = new __BaseException({
|
|
1609
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1610
1571
|
$fault: "client",
|
|
1611
|
-
$metadata:
|
|
1572
|
+
$metadata: $metadata,
|
|
1612
1573
|
});
|
|
1613
1574
|
throw __decorateServiceException(response, parsedBody);
|
|
1614
1575
|
}
|
|
@@ -1655,7 +1616,7 @@ export var deserializeAws_restJson1CreateOutboundConnectionCommand = function (o
|
|
|
1655
1616
|
});
|
|
1656
1617
|
}); };
|
|
1657
1618
|
var deserializeAws_restJson1CreateOutboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1658
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1619
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1659
1620
|
var _c;
|
|
1660
1621
|
return __generator(this, function (_d) {
|
|
1661
1622
|
switch (_d.label) {
|
|
@@ -1665,7 +1626,6 @@ var deserializeAws_restJson1CreateOutboundConnectionCommandError = function (out
|
|
|
1665
1626
|
return [4, parseBody(output.body, context)];
|
|
1666
1627
|
case 1:
|
|
1667
1628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1668
|
-
errorCode = "UnknownError";
|
|
1669
1629
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
1630
|
_b = errorCode;
|
|
1671
1631
|
switch (_b) {
|
|
@@ -1689,10 +1649,12 @@ var deserializeAws_restJson1CreateOutboundConnectionCommandError = function (out
|
|
|
1689
1649
|
case 9: throw _d.sent();
|
|
1690
1650
|
case 10:
|
|
1691
1651
|
parsedBody = parsedOutput.body;
|
|
1652
|
+
$metadata = deserializeMetadata(output);
|
|
1653
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1692
1654
|
response = new __BaseException({
|
|
1693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1694
1656
|
$fault: "client",
|
|
1695
|
-
$metadata:
|
|
1657
|
+
$metadata: $metadata,
|
|
1696
1658
|
});
|
|
1697
1659
|
throw __decorateServiceException(response, parsedBody);
|
|
1698
1660
|
}
|
|
@@ -1723,7 +1685,7 @@ export var deserializeAws_restJson1CreatePackageCommand = function (output, cont
|
|
|
1723
1685
|
});
|
|
1724
1686
|
}); };
|
|
1725
1687
|
var deserializeAws_restJson1CreatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1726
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1688
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1727
1689
|
var _c;
|
|
1728
1690
|
return __generator(this, function (_d) {
|
|
1729
1691
|
switch (_d.label) {
|
|
@@ -1733,7 +1695,6 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1733
1695
|
return [4, parseBody(output.body, context)];
|
|
1734
1696
|
case 1:
|
|
1735
1697
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1736
|
-
errorCode = "UnknownError";
|
|
1737
1698
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1699
|
_b = errorCode;
|
|
1739
1700
|
switch (_b) {
|
|
@@ -1769,10 +1730,12 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1769
1730
|
case 15: throw _d.sent();
|
|
1770
1731
|
case 16:
|
|
1771
1732
|
parsedBody = parsedOutput.body;
|
|
1733
|
+
$metadata = deserializeMetadata(output);
|
|
1734
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1772
1735
|
response = new __BaseException({
|
|
1773
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1774
1737
|
$fault: "client",
|
|
1775
|
-
$metadata:
|
|
1738
|
+
$metadata: $metadata,
|
|
1776
1739
|
});
|
|
1777
1740
|
throw __decorateServiceException(response, parsedBody);
|
|
1778
1741
|
}
|
|
@@ -1803,7 +1766,7 @@ export var deserializeAws_restJson1DeleteDomainCommand = function (output, conte
|
|
|
1803
1766
|
});
|
|
1804
1767
|
}); };
|
|
1805
1768
|
var deserializeAws_restJson1DeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1806
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1769
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1807
1770
|
var _c;
|
|
1808
1771
|
return __generator(this, function (_d) {
|
|
1809
1772
|
switch (_d.label) {
|
|
@@ -1813,7 +1776,6 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1813
1776
|
return [4, parseBody(output.body, context)];
|
|
1814
1777
|
case 1:
|
|
1815
1778
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1816
|
-
errorCode = "UnknownError";
|
|
1817
1779
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1780
|
_b = errorCode;
|
|
1819
1781
|
switch (_b) {
|
|
@@ -1837,10 +1799,12 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1837
1799
|
case 9: throw _d.sent();
|
|
1838
1800
|
case 10:
|
|
1839
1801
|
parsedBody = parsedOutput.body;
|
|
1802
|
+
$metadata = deserializeMetadata(output);
|
|
1803
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1840
1804
|
response = new __BaseException({
|
|
1841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1842
1806
|
$fault: "client",
|
|
1843
|
-
$metadata:
|
|
1807
|
+
$metadata: $metadata,
|
|
1844
1808
|
});
|
|
1845
1809
|
throw __decorateServiceException(response, parsedBody);
|
|
1846
1810
|
}
|
|
@@ -1871,7 +1835,7 @@ export var deserializeAws_restJson1DeleteInboundConnectionCommand = function (ou
|
|
|
1871
1835
|
});
|
|
1872
1836
|
}); };
|
|
1873
1837
|
var deserializeAws_restJson1DeleteInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1874
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1838
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1875
1839
|
var _c;
|
|
1876
1840
|
return __generator(this, function (_d) {
|
|
1877
1841
|
switch (_d.label) {
|
|
@@ -1881,7 +1845,6 @@ var deserializeAws_restJson1DeleteInboundConnectionCommandError = function (outp
|
|
|
1881
1845
|
return [4, parseBody(output.body, context)];
|
|
1882
1846
|
case 1:
|
|
1883
1847
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1884
|
-
errorCode = "UnknownError";
|
|
1885
1848
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
1849
|
_b = errorCode;
|
|
1887
1850
|
switch (_b) {
|
|
@@ -1897,10 +1860,12 @@ var deserializeAws_restJson1DeleteInboundConnectionCommandError = function (outp
|
|
|
1897
1860
|
case 5: throw _d.sent();
|
|
1898
1861
|
case 6:
|
|
1899
1862
|
parsedBody = parsedOutput.body;
|
|
1863
|
+
$metadata = deserializeMetadata(output);
|
|
1864
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1900
1865
|
response = new __BaseException({
|
|
1901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1902
1867
|
$fault: "client",
|
|
1903
|
-
$metadata:
|
|
1868
|
+
$metadata: $metadata,
|
|
1904
1869
|
});
|
|
1905
1870
|
throw __decorateServiceException(response, parsedBody);
|
|
1906
1871
|
}
|
|
@@ -1931,7 +1896,7 @@ export var deserializeAws_restJson1DeleteOutboundConnectionCommand = function (o
|
|
|
1931
1896
|
});
|
|
1932
1897
|
}); };
|
|
1933
1898
|
var deserializeAws_restJson1DeleteOutboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1934
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1899
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1935
1900
|
var _c;
|
|
1936
1901
|
return __generator(this, function (_d) {
|
|
1937
1902
|
switch (_d.label) {
|
|
@@ -1941,7 +1906,6 @@ var deserializeAws_restJson1DeleteOutboundConnectionCommandError = function (out
|
|
|
1941
1906
|
return [4, parseBody(output.body, context)];
|
|
1942
1907
|
case 1:
|
|
1943
1908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1944
|
-
errorCode = "UnknownError";
|
|
1945
1909
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
1910
|
_b = errorCode;
|
|
1947
1911
|
switch (_b) {
|
|
@@ -1957,10 +1921,12 @@ var deserializeAws_restJson1DeleteOutboundConnectionCommandError = function (out
|
|
|
1957
1921
|
case 5: throw _d.sent();
|
|
1958
1922
|
case 6:
|
|
1959
1923
|
parsedBody = parsedOutput.body;
|
|
1924
|
+
$metadata = deserializeMetadata(output);
|
|
1925
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1960
1926
|
response = new __BaseException({
|
|
1961
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1962
1928
|
$fault: "client",
|
|
1963
|
-
$metadata:
|
|
1929
|
+
$metadata: $metadata,
|
|
1964
1930
|
});
|
|
1965
1931
|
throw __decorateServiceException(response, parsedBody);
|
|
1966
1932
|
}
|
|
@@ -1991,7 +1957,7 @@ export var deserializeAws_restJson1DeletePackageCommand = function (output, cont
|
|
|
1991
1957
|
});
|
|
1992
1958
|
}); };
|
|
1993
1959
|
var deserializeAws_restJson1DeletePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1994
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1960
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1995
1961
|
var _c;
|
|
1996
1962
|
return __generator(this, function (_d) {
|
|
1997
1963
|
switch (_d.label) {
|
|
@@ -2001,7 +1967,6 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
2001
1967
|
return [4, parseBody(output.body, context)];
|
|
2002
1968
|
case 1:
|
|
2003
1969
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2004
|
-
errorCode = "UnknownError";
|
|
2005
1970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
1971
|
_b = errorCode;
|
|
2007
1972
|
switch (_b) {
|
|
@@ -2033,10 +1998,12 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
2033
1998
|
case 13: throw _d.sent();
|
|
2034
1999
|
case 14:
|
|
2035
2000
|
parsedBody = parsedOutput.body;
|
|
2001
|
+
$metadata = deserializeMetadata(output);
|
|
2002
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2036
2003
|
response = new __BaseException({
|
|
2037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2038
2005
|
$fault: "client",
|
|
2039
|
-
$metadata:
|
|
2006
|
+
$metadata: $metadata,
|
|
2040
2007
|
});
|
|
2041
2008
|
throw __decorateServiceException(response, parsedBody);
|
|
2042
2009
|
}
|
|
@@ -2067,7 +2034,7 @@ export var deserializeAws_restJson1DescribeDomainCommand = function (output, con
|
|
|
2067
2034
|
});
|
|
2068
2035
|
}); };
|
|
2069
2036
|
var deserializeAws_restJson1DescribeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2070
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2037
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2071
2038
|
var _c;
|
|
2072
2039
|
return __generator(this, function (_d) {
|
|
2073
2040
|
switch (_d.label) {
|
|
@@ -2077,7 +2044,6 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
2077
2044
|
return [4, parseBody(output.body, context)];
|
|
2078
2045
|
case 1:
|
|
2079
2046
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2080
|
-
errorCode = "UnknownError";
|
|
2081
2047
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
2048
|
_b = errorCode;
|
|
2083
2049
|
switch (_b) {
|
|
@@ -2101,10 +2067,12 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
2101
2067
|
case 9: throw _d.sent();
|
|
2102
2068
|
case 10:
|
|
2103
2069
|
parsedBody = parsedOutput.body;
|
|
2070
|
+
$metadata = deserializeMetadata(output);
|
|
2071
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2104
2072
|
response = new __BaseException({
|
|
2105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2073
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2106
2074
|
$fault: "client",
|
|
2107
|
-
$metadata:
|
|
2075
|
+
$metadata: $metadata,
|
|
2108
2076
|
});
|
|
2109
2077
|
throw __decorateServiceException(response, parsedBody);
|
|
2110
2078
|
}
|
|
@@ -2139,7 +2107,7 @@ export var deserializeAws_restJson1DescribeDomainAutoTunesCommand = function (ou
|
|
|
2139
2107
|
});
|
|
2140
2108
|
}); };
|
|
2141
2109
|
var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2142
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2110
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2143
2111
|
var _c;
|
|
2144
2112
|
return __generator(this, function (_d) {
|
|
2145
2113
|
switch (_d.label) {
|
|
@@ -2149,7 +2117,6 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2149
2117
|
return [4, parseBody(output.body, context)];
|
|
2150
2118
|
case 1:
|
|
2151
2119
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2152
|
-
errorCode = "UnknownError";
|
|
2153
2120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2121
|
_b = errorCode;
|
|
2155
2122
|
switch (_b) {
|
|
@@ -2173,10 +2140,12 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2173
2140
|
case 9: throw _d.sent();
|
|
2174
2141
|
case 10:
|
|
2175
2142
|
parsedBody = parsedOutput.body;
|
|
2143
|
+
$metadata = deserializeMetadata(output);
|
|
2144
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2176
2145
|
response = new __BaseException({
|
|
2177
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2146
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2178
2147
|
$fault: "client",
|
|
2179
|
-
$metadata:
|
|
2148
|
+
$metadata: $metadata,
|
|
2180
2149
|
});
|
|
2181
2150
|
throw __decorateServiceException(response, parsedBody);
|
|
2182
2151
|
}
|
|
@@ -2207,7 +2176,7 @@ export var deserializeAws_restJson1DescribeDomainChangeProgressCommand = functio
|
|
|
2207
2176
|
});
|
|
2208
2177
|
}); };
|
|
2209
2178
|
var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2210
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2179
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2211
2180
|
var _c;
|
|
2212
2181
|
return __generator(this, function (_d) {
|
|
2213
2182
|
switch (_d.label) {
|
|
@@ -2217,7 +2186,6 @@ var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function
|
|
|
2217
2186
|
return [4, parseBody(output.body, context)];
|
|
2218
2187
|
case 1:
|
|
2219
2188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2220
|
-
errorCode = "UnknownError";
|
|
2221
2189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2190
|
_b = errorCode;
|
|
2223
2191
|
switch (_b) {
|
|
@@ -2241,10 +2209,12 @@ var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function
|
|
|
2241
2209
|
case 9: throw _d.sent();
|
|
2242
2210
|
case 10:
|
|
2243
2211
|
parsedBody = parsedOutput.body;
|
|
2212
|
+
$metadata = deserializeMetadata(output);
|
|
2213
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2244
2214
|
response = new __BaseException({
|
|
2245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2246
2216
|
$fault: "client",
|
|
2247
|
-
$metadata:
|
|
2217
|
+
$metadata: $metadata,
|
|
2248
2218
|
});
|
|
2249
2219
|
throw __decorateServiceException(response, parsedBody);
|
|
2250
2220
|
}
|
|
@@ -2275,7 +2245,7 @@ export var deserializeAws_restJson1DescribeDomainConfigCommand = function (outpu
|
|
|
2275
2245
|
});
|
|
2276
2246
|
}); };
|
|
2277
2247
|
var deserializeAws_restJson1DescribeDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2278
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2248
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2279
2249
|
var _c;
|
|
2280
2250
|
return __generator(this, function (_d) {
|
|
2281
2251
|
switch (_d.label) {
|
|
@@ -2285,7 +2255,6 @@ var deserializeAws_restJson1DescribeDomainConfigCommandError = function (output,
|
|
|
2285
2255
|
return [4, parseBody(output.body, context)];
|
|
2286
2256
|
case 1:
|
|
2287
2257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2288
|
-
errorCode = "UnknownError";
|
|
2289
2258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2290
2259
|
_b = errorCode;
|
|
2291
2260
|
switch (_b) {
|
|
@@ -2309,10 +2278,12 @@ var deserializeAws_restJson1DescribeDomainConfigCommandError = function (output,
|
|
|
2309
2278
|
case 9: throw _d.sent();
|
|
2310
2279
|
case 10:
|
|
2311
2280
|
parsedBody = parsedOutput.body;
|
|
2281
|
+
$metadata = deserializeMetadata(output);
|
|
2282
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2312
2283
|
response = new __BaseException({
|
|
2313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2314
2285
|
$fault: "client",
|
|
2315
|
-
$metadata:
|
|
2286
|
+
$metadata: $metadata,
|
|
2316
2287
|
});
|
|
2317
2288
|
throw __decorateServiceException(response, parsedBody);
|
|
2318
2289
|
}
|
|
@@ -2343,7 +2314,7 @@ export var deserializeAws_restJson1DescribeDomainsCommand = function (output, co
|
|
|
2343
2314
|
});
|
|
2344
2315
|
}); };
|
|
2345
2316
|
var deserializeAws_restJson1DescribeDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2346
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2317
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2347
2318
|
var _c;
|
|
2348
2319
|
return __generator(this, function (_d) {
|
|
2349
2320
|
switch (_d.label) {
|
|
@@ -2353,7 +2324,6 @@ var deserializeAws_restJson1DescribeDomainsCommandError = function (output, cont
|
|
|
2353
2324
|
return [4, parseBody(output.body, context)];
|
|
2354
2325
|
case 1:
|
|
2355
2326
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2356
|
-
errorCode = "UnknownError";
|
|
2357
2327
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
2328
|
_b = errorCode;
|
|
2359
2329
|
switch (_b) {
|
|
@@ -2373,10 +2343,12 @@ var deserializeAws_restJson1DescribeDomainsCommandError = function (output, cont
|
|
|
2373
2343
|
case 7: throw _d.sent();
|
|
2374
2344
|
case 8:
|
|
2375
2345
|
parsedBody = parsedOutput.body;
|
|
2346
|
+
$metadata = deserializeMetadata(output);
|
|
2347
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2376
2348
|
response = new __BaseException({
|
|
2377
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2349
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2378
2350
|
$fault: "client",
|
|
2379
|
-
$metadata:
|
|
2351
|
+
$metadata: $metadata,
|
|
2380
2352
|
});
|
|
2381
2353
|
throw __decorateServiceException(response, parsedBody);
|
|
2382
2354
|
}
|
|
@@ -2411,7 +2383,7 @@ export var deserializeAws_restJson1DescribeInboundConnectionsCommand = function
|
|
|
2411
2383
|
});
|
|
2412
2384
|
}); };
|
|
2413
2385
|
var deserializeAws_restJson1DescribeInboundConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2414
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2386
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2415
2387
|
var _c;
|
|
2416
2388
|
return __generator(this, function (_d) {
|
|
2417
2389
|
switch (_d.label) {
|
|
@@ -2421,7 +2393,6 @@ var deserializeAws_restJson1DescribeInboundConnectionsCommandError = function (o
|
|
|
2421
2393
|
return [4, parseBody(output.body, context)];
|
|
2422
2394
|
case 1:
|
|
2423
2395
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2424
|
-
errorCode = "UnknownError";
|
|
2425
2396
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2397
|
_b = errorCode;
|
|
2427
2398
|
switch (_b) {
|
|
@@ -2437,10 +2408,12 @@ var deserializeAws_restJson1DescribeInboundConnectionsCommandError = function (o
|
|
|
2437
2408
|
case 5: throw _d.sent();
|
|
2438
2409
|
case 6:
|
|
2439
2410
|
parsedBody = parsedOutput.body;
|
|
2411
|
+
$metadata = deserializeMetadata(output);
|
|
2412
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2440
2413
|
response = new __BaseException({
|
|
2441
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2414
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2442
2415
|
$fault: "client",
|
|
2443
|
-
$metadata:
|
|
2416
|
+
$metadata: $metadata,
|
|
2444
2417
|
});
|
|
2445
2418
|
throw __decorateServiceException(response, parsedBody);
|
|
2446
2419
|
}
|
|
@@ -2471,7 +2444,7 @@ export var deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = function
|
|
|
2471
2444
|
});
|
|
2472
2445
|
}); };
|
|
2473
2446
|
var deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2474
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2447
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2475
2448
|
var _c;
|
|
2476
2449
|
return __generator(this, function (_d) {
|
|
2477
2450
|
switch (_d.label) {
|
|
@@ -2481,7 +2454,6 @@ var deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = function (o
|
|
|
2481
2454
|
return [4, parseBody(output.body, context)];
|
|
2482
2455
|
case 1:
|
|
2483
2456
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2484
|
-
errorCode = "UnknownError";
|
|
2485
2457
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
2458
|
_b = errorCode;
|
|
2487
2459
|
switch (_b) {
|
|
@@ -2513,10 +2485,12 @@ var deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = function (o
|
|
|
2513
2485
|
case 13: throw _d.sent();
|
|
2514
2486
|
case 14:
|
|
2515
2487
|
parsedBody = parsedOutput.body;
|
|
2488
|
+
$metadata = deserializeMetadata(output);
|
|
2489
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2516
2490
|
response = new __BaseException({
|
|
2517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2518
2492
|
$fault: "client",
|
|
2519
|
-
$metadata:
|
|
2493
|
+
$metadata: $metadata,
|
|
2520
2494
|
});
|
|
2521
2495
|
throw __decorateServiceException(response, parsedBody);
|
|
2522
2496
|
}
|
|
@@ -2551,7 +2525,7 @@ export var deserializeAws_restJson1DescribeOutboundConnectionsCommand = function
|
|
|
2551
2525
|
});
|
|
2552
2526
|
}); };
|
|
2553
2527
|
var deserializeAws_restJson1DescribeOutboundConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2554
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2528
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2555
2529
|
var _c;
|
|
2556
2530
|
return __generator(this, function (_d) {
|
|
2557
2531
|
switch (_d.label) {
|
|
@@ -2561,7 +2535,6 @@ var deserializeAws_restJson1DescribeOutboundConnectionsCommandError = function (
|
|
|
2561
2535
|
return [4, parseBody(output.body, context)];
|
|
2562
2536
|
case 1:
|
|
2563
2537
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2564
|
-
errorCode = "UnknownError";
|
|
2565
2538
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
2539
|
_b = errorCode;
|
|
2567
2540
|
switch (_b) {
|
|
@@ -2577,10 +2550,12 @@ var deserializeAws_restJson1DescribeOutboundConnectionsCommandError = function (
|
|
|
2577
2550
|
case 5: throw _d.sent();
|
|
2578
2551
|
case 6:
|
|
2579
2552
|
parsedBody = parsedOutput.body;
|
|
2553
|
+
$metadata = deserializeMetadata(output);
|
|
2554
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2580
2555
|
response = new __BaseException({
|
|
2581
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2582
2557
|
$fault: "client",
|
|
2583
|
-
$metadata:
|
|
2558
|
+
$metadata: $metadata,
|
|
2584
2559
|
});
|
|
2585
2560
|
throw __decorateServiceException(response, parsedBody);
|
|
2586
2561
|
}
|
|
@@ -2615,7 +2590,7 @@ export var deserializeAws_restJson1DescribePackagesCommand = function (output, c
|
|
|
2615
2590
|
});
|
|
2616
2591
|
}); };
|
|
2617
2592
|
var deserializeAws_restJson1DescribePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2618
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2593
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2619
2594
|
var _c;
|
|
2620
2595
|
return __generator(this, function (_d) {
|
|
2621
2596
|
switch (_d.label) {
|
|
@@ -2625,7 +2600,6 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2625
2600
|
return [4, parseBody(output.body, context)];
|
|
2626
2601
|
case 1:
|
|
2627
2602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2628
|
-
errorCode = "UnknownError";
|
|
2629
2603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2604
|
_b = errorCode;
|
|
2631
2605
|
switch (_b) {
|
|
@@ -2653,10 +2627,12 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2653
2627
|
case 11: throw _d.sent();
|
|
2654
2628
|
case 12:
|
|
2655
2629
|
parsedBody = parsedOutput.body;
|
|
2630
|
+
$metadata = deserializeMetadata(output);
|
|
2631
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2656
2632
|
response = new __BaseException({
|
|
2657
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2633
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2658
2634
|
$fault: "client",
|
|
2659
|
-
$metadata:
|
|
2635
|
+
$metadata: $metadata,
|
|
2660
2636
|
});
|
|
2661
2637
|
throw __decorateServiceException(response, parsedBody);
|
|
2662
2638
|
}
|
|
@@ -2691,7 +2667,7 @@ export var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = fu
|
|
|
2691
2667
|
});
|
|
2692
2668
|
}); };
|
|
2693
2669
|
var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2694
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2670
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2695
2671
|
var _c;
|
|
2696
2672
|
return __generator(this, function (_d) {
|
|
2697
2673
|
switch (_d.label) {
|
|
@@ -2701,7 +2677,6 @@ var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = func
|
|
|
2701
2677
|
return [4, parseBody(output.body, context)];
|
|
2702
2678
|
case 1:
|
|
2703
2679
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2704
|
-
errorCode = "UnknownError";
|
|
2705
2680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2706
2681
|
_b = errorCode;
|
|
2707
2682
|
switch (_b) {
|
|
@@ -2725,10 +2700,12 @@ var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = func
|
|
|
2725
2700
|
case 9: throw _d.sent();
|
|
2726
2701
|
case 10:
|
|
2727
2702
|
parsedBody = parsedOutput.body;
|
|
2703
|
+
$metadata = deserializeMetadata(output);
|
|
2704
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2728
2705
|
response = new __BaseException({
|
|
2729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2706
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2730
2707
|
$fault: "client",
|
|
2731
|
-
$metadata:
|
|
2708
|
+
$metadata: $metadata,
|
|
2732
2709
|
});
|
|
2733
2710
|
throw __decorateServiceException(response, parsedBody);
|
|
2734
2711
|
}
|
|
@@ -2763,7 +2740,7 @@ export var deserializeAws_restJson1DescribeReservedInstancesCommand = function (
|
|
|
2763
2740
|
});
|
|
2764
2741
|
}); };
|
|
2765
2742
|
var deserializeAws_restJson1DescribeReservedInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2766
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2743
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2767
2744
|
var _c;
|
|
2768
2745
|
return __generator(this, function (_d) {
|
|
2769
2746
|
switch (_d.label) {
|
|
@@ -2773,7 +2750,6 @@ var deserializeAws_restJson1DescribeReservedInstancesCommandError = function (ou
|
|
|
2773
2750
|
return [4, parseBody(output.body, context)];
|
|
2774
2751
|
case 1:
|
|
2775
2752
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2776
|
-
errorCode = "UnknownError";
|
|
2777
2753
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
2754
|
_b = errorCode;
|
|
2779
2755
|
switch (_b) {
|
|
@@ -2797,10 +2773,12 @@ var deserializeAws_restJson1DescribeReservedInstancesCommandError = function (ou
|
|
|
2797
2773
|
case 9: throw _d.sent();
|
|
2798
2774
|
case 10:
|
|
2799
2775
|
parsedBody = parsedOutput.body;
|
|
2776
|
+
$metadata = deserializeMetadata(output);
|
|
2777
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2800
2778
|
response = new __BaseException({
|
|
2801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2802
2780
|
$fault: "client",
|
|
2803
|
-
$metadata:
|
|
2781
|
+
$metadata: $metadata,
|
|
2804
2782
|
});
|
|
2805
2783
|
throw __decorateServiceException(response, parsedBody);
|
|
2806
2784
|
}
|
|
@@ -2831,7 +2809,7 @@ export var deserializeAws_restJson1DissociatePackageCommand = function (output,
|
|
|
2831
2809
|
});
|
|
2832
2810
|
}); };
|
|
2833
2811
|
var deserializeAws_restJson1DissociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2834
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2812
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2835
2813
|
var _c;
|
|
2836
2814
|
return __generator(this, function (_d) {
|
|
2837
2815
|
switch (_d.label) {
|
|
@@ -2841,7 +2819,6 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
2841
2819
|
return [4, parseBody(output.body, context)];
|
|
2842
2820
|
case 1:
|
|
2843
2821
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2844
|
-
errorCode = "UnknownError";
|
|
2845
2822
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2823
|
_b = errorCode;
|
|
2847
2824
|
switch (_b) {
|
|
@@ -2873,10 +2850,12 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
2873
2850
|
case 13: throw _d.sent();
|
|
2874
2851
|
case 14:
|
|
2875
2852
|
parsedBody = parsedOutput.body;
|
|
2853
|
+
$metadata = deserializeMetadata(output);
|
|
2854
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2876
2855
|
response = new __BaseException({
|
|
2877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2878
2857
|
$fault: "client",
|
|
2879
|
-
$metadata:
|
|
2858
|
+
$metadata: $metadata,
|
|
2880
2859
|
});
|
|
2881
2860
|
throw __decorateServiceException(response, parsedBody);
|
|
2882
2861
|
}
|
|
@@ -2907,7 +2886,7 @@ export var deserializeAws_restJson1GetCompatibleVersionsCommand = function (outp
|
|
|
2907
2886
|
});
|
|
2908
2887
|
}); };
|
|
2909
2888
|
var deserializeAws_restJson1GetCompatibleVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2910
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2889
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2911
2890
|
var _c;
|
|
2912
2891
|
return __generator(this, function (_d) {
|
|
2913
2892
|
switch (_d.label) {
|
|
@@ -2917,7 +2896,6 @@ var deserializeAws_restJson1GetCompatibleVersionsCommandError = function (output
|
|
|
2917
2896
|
return [4, parseBody(output.body, context)];
|
|
2918
2897
|
case 1:
|
|
2919
2898
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2920
|
-
errorCode = "UnknownError";
|
|
2921
2899
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
2900
|
_b = errorCode;
|
|
2923
2901
|
switch (_b) {
|
|
@@ -2945,10 +2923,12 @@ var deserializeAws_restJson1GetCompatibleVersionsCommandError = function (output
|
|
|
2945
2923
|
case 11: throw _d.sent();
|
|
2946
2924
|
case 12:
|
|
2947
2925
|
parsedBody = parsedOutput.body;
|
|
2926
|
+
$metadata = deserializeMetadata(output);
|
|
2927
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2948
2928
|
response = new __BaseException({
|
|
2949
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2950
2930
|
$fault: "client",
|
|
2951
|
-
$metadata:
|
|
2931
|
+
$metadata: $metadata,
|
|
2952
2932
|
});
|
|
2953
2933
|
throw __decorateServiceException(response, parsedBody);
|
|
2954
2934
|
}
|
|
@@ -2987,7 +2967,7 @@ export var deserializeAws_restJson1GetPackageVersionHistoryCommand = function (o
|
|
|
2987
2967
|
});
|
|
2988
2968
|
}); };
|
|
2989
2969
|
var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2990
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2970
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2991
2971
|
var _c;
|
|
2992
2972
|
return __generator(this, function (_d) {
|
|
2993
2973
|
switch (_d.label) {
|
|
@@ -2997,7 +2977,6 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
2997
2977
|
return [4, parseBody(output.body, context)];
|
|
2998
2978
|
case 1:
|
|
2999
2979
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3000
|
-
errorCode = "UnknownError";
|
|
3001
2980
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
2981
|
_b = errorCode;
|
|
3003
2982
|
switch (_b) {
|
|
@@ -3025,10 +3004,12 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
3025
3004
|
case 11: throw _d.sent();
|
|
3026
3005
|
case 12:
|
|
3027
3006
|
parsedBody = parsedOutput.body;
|
|
3007
|
+
$metadata = deserializeMetadata(output);
|
|
3008
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3028
3009
|
response = new __BaseException({
|
|
3029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3030
3011
|
$fault: "client",
|
|
3031
|
-
$metadata:
|
|
3012
|
+
$metadata: $metadata,
|
|
3032
3013
|
});
|
|
3033
3014
|
throw __decorateServiceException(response, parsedBody);
|
|
3034
3015
|
}
|
|
@@ -3063,7 +3044,7 @@ export var deserializeAws_restJson1GetUpgradeHistoryCommand = function (output,
|
|
|
3063
3044
|
});
|
|
3064
3045
|
}); };
|
|
3065
3046
|
var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3066
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3047
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3067
3048
|
var _c;
|
|
3068
3049
|
return __generator(this, function (_d) {
|
|
3069
3050
|
switch (_d.label) {
|
|
@@ -3073,7 +3054,6 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3073
3054
|
return [4, parseBody(output.body, context)];
|
|
3074
3055
|
case 1:
|
|
3075
3056
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3076
|
-
errorCode = "UnknownError";
|
|
3077
3057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
3058
|
_b = errorCode;
|
|
3079
3059
|
switch (_b) {
|
|
@@ -3101,10 +3081,12 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3101
3081
|
case 11: throw _d.sent();
|
|
3102
3082
|
case 12:
|
|
3103
3083
|
parsedBody = parsedOutput.body;
|
|
3084
|
+
$metadata = deserializeMetadata(output);
|
|
3085
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3104
3086
|
response = new __BaseException({
|
|
3105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3106
3088
|
$fault: "client",
|
|
3107
|
-
$metadata:
|
|
3089
|
+
$metadata: $metadata,
|
|
3108
3090
|
});
|
|
3109
3091
|
throw __decorateServiceException(response, parsedBody);
|
|
3110
3092
|
}
|
|
@@ -3143,7 +3125,7 @@ export var deserializeAws_restJson1GetUpgradeStatusCommand = function (output, c
|
|
|
3143
3125
|
});
|
|
3144
3126
|
}); };
|
|
3145
3127
|
var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3146
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3128
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3147
3129
|
var _c;
|
|
3148
3130
|
return __generator(this, function (_d) {
|
|
3149
3131
|
switch (_d.label) {
|
|
@@ -3153,7 +3135,6 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3153
3135
|
return [4, parseBody(output.body, context)];
|
|
3154
3136
|
case 1:
|
|
3155
3137
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3156
|
-
errorCode = "UnknownError";
|
|
3157
3138
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
3139
|
_b = errorCode;
|
|
3159
3140
|
switch (_b) {
|
|
@@ -3181,10 +3162,12 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3181
3162
|
case 11: throw _d.sent();
|
|
3182
3163
|
case 12:
|
|
3183
3164
|
parsedBody = parsedOutput.body;
|
|
3165
|
+
$metadata = deserializeMetadata(output);
|
|
3166
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3184
3167
|
response = new __BaseException({
|
|
3185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3186
3169
|
$fault: "client",
|
|
3187
|
-
$metadata:
|
|
3170
|
+
$metadata: $metadata,
|
|
3188
3171
|
});
|
|
3189
3172
|
throw __decorateServiceException(response, parsedBody);
|
|
3190
3173
|
}
|
|
@@ -3215,7 +3198,7 @@ export var deserializeAws_restJson1ListDomainNamesCommand = function (output, co
|
|
|
3215
3198
|
});
|
|
3216
3199
|
}); };
|
|
3217
3200
|
var deserializeAws_restJson1ListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3218
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3201
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3219
3202
|
var _c;
|
|
3220
3203
|
return __generator(this, function (_d) {
|
|
3221
3204
|
switch (_d.label) {
|
|
@@ -3225,7 +3208,6 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3225
3208
|
return [4, parseBody(output.body, context)];
|
|
3226
3209
|
case 1:
|
|
3227
3210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3228
|
-
errorCode = "UnknownError";
|
|
3229
3211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3230
3212
|
_b = errorCode;
|
|
3231
3213
|
switch (_b) {
|
|
@@ -3241,10 +3223,12 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3241
3223
|
case 5: throw _d.sent();
|
|
3242
3224
|
case 6:
|
|
3243
3225
|
parsedBody = parsedOutput.body;
|
|
3226
|
+
$metadata = deserializeMetadata(output);
|
|
3227
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3244
3228
|
response = new __BaseException({
|
|
3245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3229
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3246
3230
|
$fault: "client",
|
|
3247
|
-
$metadata:
|
|
3231
|
+
$metadata: $metadata,
|
|
3248
3232
|
});
|
|
3249
3233
|
throw __decorateServiceException(response, parsedBody);
|
|
3250
3234
|
}
|
|
@@ -3279,7 +3263,7 @@ export var deserializeAws_restJson1ListDomainsForPackageCommand = function (outp
|
|
|
3279
3263
|
});
|
|
3280
3264
|
}); };
|
|
3281
3265
|
var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3282
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3266
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3283
3267
|
var _c;
|
|
3284
3268
|
return __generator(this, function (_d) {
|
|
3285
3269
|
switch (_d.label) {
|
|
@@ -3289,7 +3273,6 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3289
3273
|
return [4, parseBody(output.body, context)];
|
|
3290
3274
|
case 1:
|
|
3291
3275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3292
|
-
errorCode = "UnknownError";
|
|
3293
3276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
3277
|
_b = errorCode;
|
|
3295
3278
|
switch (_b) {
|
|
@@ -3317,10 +3300,12 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3317
3300
|
case 11: throw _d.sent();
|
|
3318
3301
|
case 12:
|
|
3319
3302
|
parsedBody = parsedOutput.body;
|
|
3303
|
+
$metadata = deserializeMetadata(output);
|
|
3304
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3320
3305
|
response = new __BaseException({
|
|
3321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3322
3307
|
$fault: "client",
|
|
3323
|
-
$metadata:
|
|
3308
|
+
$metadata: $metadata,
|
|
3324
3309
|
});
|
|
3325
3310
|
throw __decorateServiceException(response, parsedBody);
|
|
3326
3311
|
}
|
|
@@ -3355,7 +3340,7 @@ export var deserializeAws_restJson1ListInstanceTypeDetailsCommand = function (ou
|
|
|
3355
3340
|
});
|
|
3356
3341
|
}); };
|
|
3357
3342
|
var deserializeAws_restJson1ListInstanceTypeDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3358
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3343
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3359
3344
|
var _c;
|
|
3360
3345
|
return __generator(this, function (_d) {
|
|
3361
3346
|
switch (_d.label) {
|
|
@@ -3365,7 +3350,6 @@ var deserializeAws_restJson1ListInstanceTypeDetailsCommandError = function (outp
|
|
|
3365
3350
|
return [4, parseBody(output.body, context)];
|
|
3366
3351
|
case 1:
|
|
3367
3352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3368
|
-
errorCode = "UnknownError";
|
|
3369
3353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
3354
|
_b = errorCode;
|
|
3371
3355
|
switch (_b) {
|
|
@@ -3389,10 +3373,12 @@ var deserializeAws_restJson1ListInstanceTypeDetailsCommandError = function (outp
|
|
|
3389
3373
|
case 9: throw _d.sent();
|
|
3390
3374
|
case 10:
|
|
3391
3375
|
parsedBody = parsedOutput.body;
|
|
3376
|
+
$metadata = deserializeMetadata(output);
|
|
3377
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3392
3378
|
response = new __BaseException({
|
|
3393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3379
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3394
3380
|
$fault: "client",
|
|
3395
|
-
$metadata:
|
|
3381
|
+
$metadata: $metadata,
|
|
3396
3382
|
});
|
|
3397
3383
|
throw __decorateServiceException(response, parsedBody);
|
|
3398
3384
|
}
|
|
@@ -3427,7 +3413,7 @@ export var deserializeAws_restJson1ListPackagesForDomainCommand = function (outp
|
|
|
3427
3413
|
});
|
|
3428
3414
|
}); };
|
|
3429
3415
|
var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3430
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3416
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3431
3417
|
var _c;
|
|
3432
3418
|
return __generator(this, function (_d) {
|
|
3433
3419
|
switch (_d.label) {
|
|
@@ -3437,7 +3423,6 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
3437
3423
|
return [4, parseBody(output.body, context)];
|
|
3438
3424
|
case 1:
|
|
3439
3425
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3440
|
-
errorCode = "UnknownError";
|
|
3441
3426
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3442
3427
|
_b = errorCode;
|
|
3443
3428
|
switch (_b) {
|
|
@@ -3465,10 +3450,12 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
3465
3450
|
case 11: throw _d.sent();
|
|
3466
3451
|
case 12:
|
|
3467
3452
|
parsedBody = parsedOutput.body;
|
|
3453
|
+
$metadata = deserializeMetadata(output);
|
|
3454
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3468
3455
|
response = new __BaseException({
|
|
3469
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3470
3457
|
$fault: "client",
|
|
3471
|
-
$metadata:
|
|
3458
|
+
$metadata: $metadata,
|
|
3472
3459
|
});
|
|
3473
3460
|
throw __decorateServiceException(response, parsedBody);
|
|
3474
3461
|
}
|
|
@@ -3499,7 +3486,7 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
3499
3486
|
});
|
|
3500
3487
|
}); };
|
|
3501
3488
|
var deserializeAws_restJson1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3502
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3489
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3503
3490
|
var _c;
|
|
3504
3491
|
return __generator(this, function (_d) {
|
|
3505
3492
|
switch (_d.label) {
|
|
@@ -3509,7 +3496,6 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
3509
3496
|
return [4, parseBody(output.body, context)];
|
|
3510
3497
|
case 1:
|
|
3511
3498
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3512
|
-
errorCode = "UnknownError";
|
|
3513
3499
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3514
3500
|
_b = errorCode;
|
|
3515
3501
|
switch (_b) {
|
|
@@ -3533,10 +3519,12 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
3533
3519
|
case 9: throw _d.sent();
|
|
3534
3520
|
case 10:
|
|
3535
3521
|
parsedBody = parsedOutput.body;
|
|
3522
|
+
$metadata = deserializeMetadata(output);
|
|
3523
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3536
3524
|
response = new __BaseException({
|
|
3537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3525
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3538
3526
|
$fault: "client",
|
|
3539
|
-
$metadata:
|
|
3527
|
+
$metadata: $metadata,
|
|
3540
3528
|
});
|
|
3541
3529
|
throw __decorateServiceException(response, parsedBody);
|
|
3542
3530
|
}
|
|
@@ -3571,7 +3559,7 @@ export var deserializeAws_restJson1ListVersionsCommand = function (output, conte
|
|
|
3571
3559
|
});
|
|
3572
3560
|
}); };
|
|
3573
3561
|
var deserializeAws_restJson1ListVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3574
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3562
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3575
3563
|
var _c;
|
|
3576
3564
|
return __generator(this, function (_d) {
|
|
3577
3565
|
switch (_d.label) {
|
|
@@ -3581,7 +3569,6 @@ var deserializeAws_restJson1ListVersionsCommandError = function (output, context
|
|
|
3581
3569
|
return [4, parseBody(output.body, context)];
|
|
3582
3570
|
case 1:
|
|
3583
3571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3584
|
-
errorCode = "UnknownError";
|
|
3585
3572
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3586
3573
|
_b = errorCode;
|
|
3587
3574
|
switch (_b) {
|
|
@@ -3605,10 +3592,12 @@ var deserializeAws_restJson1ListVersionsCommandError = function (output, context
|
|
|
3605
3592
|
case 9: throw _d.sent();
|
|
3606
3593
|
case 10:
|
|
3607
3594
|
parsedBody = parsedOutput.body;
|
|
3595
|
+
$metadata = deserializeMetadata(output);
|
|
3596
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3608
3597
|
response = new __BaseException({
|
|
3609
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3610
3599
|
$fault: "client",
|
|
3611
|
-
$metadata:
|
|
3600
|
+
$metadata: $metadata,
|
|
3612
3601
|
});
|
|
3613
3602
|
throw __decorateServiceException(response, parsedBody);
|
|
3614
3603
|
}
|
|
@@ -3643,7 +3632,7 @@ export var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = fun
|
|
|
3643
3632
|
});
|
|
3644
3633
|
}); };
|
|
3645
3634
|
var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3646
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3635
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3647
3636
|
var _c;
|
|
3648
3637
|
return __generator(this, function (_d) {
|
|
3649
3638
|
switch (_d.label) {
|
|
@@ -3653,7 +3642,6 @@ var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = funct
|
|
|
3653
3642
|
return [4, parseBody(output.body, context)];
|
|
3654
3643
|
case 1:
|
|
3655
3644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3656
|
-
errorCode = "UnknownError";
|
|
3657
3645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3658
3646
|
_b = errorCode;
|
|
3659
3647
|
switch (_b) {
|
|
@@ -3685,10 +3673,12 @@ var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = funct
|
|
|
3685
3673
|
case 13: throw _d.sent();
|
|
3686
3674
|
case 14:
|
|
3687
3675
|
parsedBody = parsedOutput.body;
|
|
3676
|
+
$metadata = deserializeMetadata(output);
|
|
3677
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3688
3678
|
response = new __BaseException({
|
|
3689
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3690
3680
|
$fault: "client",
|
|
3691
|
-
$metadata:
|
|
3681
|
+
$metadata: $metadata,
|
|
3692
3682
|
});
|
|
3693
3683
|
throw __decorateServiceException(response, parsedBody);
|
|
3694
3684
|
}
|
|
@@ -3719,7 +3709,7 @@ export var deserializeAws_restJson1RejectInboundConnectionCommand = function (ou
|
|
|
3719
3709
|
});
|
|
3720
3710
|
}); };
|
|
3721
3711
|
var deserializeAws_restJson1RejectInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3722
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3712
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3723
3713
|
var _c;
|
|
3724
3714
|
return __generator(this, function (_d) {
|
|
3725
3715
|
switch (_d.label) {
|
|
@@ -3729,7 +3719,6 @@ var deserializeAws_restJson1RejectInboundConnectionCommandError = function (outp
|
|
|
3729
3719
|
return [4, parseBody(output.body, context)];
|
|
3730
3720
|
case 1:
|
|
3731
3721
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3732
|
-
errorCode = "UnknownError";
|
|
3733
3722
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3734
3723
|
_b = errorCode;
|
|
3735
3724
|
switch (_b) {
|
|
@@ -3745,10 +3734,12 @@ var deserializeAws_restJson1RejectInboundConnectionCommandError = function (outp
|
|
|
3745
3734
|
case 5: throw _d.sent();
|
|
3746
3735
|
case 6:
|
|
3747
3736
|
parsedBody = parsedOutput.body;
|
|
3737
|
+
$metadata = deserializeMetadata(output);
|
|
3738
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3748
3739
|
response = new __BaseException({
|
|
3749
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3750
3741
|
$fault: "client",
|
|
3751
|
-
$metadata:
|
|
3742
|
+
$metadata: $metadata,
|
|
3752
3743
|
});
|
|
3753
3744
|
throw __decorateServiceException(response, parsedBody);
|
|
3754
3745
|
}
|
|
@@ -3773,7 +3764,7 @@ export var deserializeAws_restJson1RemoveTagsCommand = function (output, context
|
|
|
3773
3764
|
});
|
|
3774
3765
|
}); };
|
|
3775
3766
|
var deserializeAws_restJson1RemoveTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3776
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3767
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3777
3768
|
var _c;
|
|
3778
3769
|
return __generator(this, function (_d) {
|
|
3779
3770
|
switch (_d.label) {
|
|
@@ -3783,7 +3774,6 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
3783
3774
|
return [4, parseBody(output.body, context)];
|
|
3784
3775
|
case 1:
|
|
3785
3776
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3786
|
-
errorCode = "UnknownError";
|
|
3787
3777
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
3778
|
_b = errorCode;
|
|
3789
3779
|
switch (_b) {
|
|
@@ -3803,10 +3793,12 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
3803
3793
|
case 7: throw _d.sent();
|
|
3804
3794
|
case 8:
|
|
3805
3795
|
parsedBody = parsedOutput.body;
|
|
3796
|
+
$metadata = deserializeMetadata(output);
|
|
3797
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3806
3798
|
response = new __BaseException({
|
|
3807
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3808
3800
|
$fault: "client",
|
|
3809
|
-
$metadata:
|
|
3801
|
+
$metadata: $metadata,
|
|
3810
3802
|
});
|
|
3811
3803
|
throw __decorateServiceException(response, parsedBody);
|
|
3812
3804
|
}
|
|
@@ -3837,7 +3829,7 @@ export var deserializeAws_restJson1StartServiceSoftwareUpdateCommand = function
|
|
|
3837
3829
|
});
|
|
3838
3830
|
}); };
|
|
3839
3831
|
var deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3840
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3832
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3841
3833
|
var _c;
|
|
3842
3834
|
return __generator(this, function (_d) {
|
|
3843
3835
|
switch (_d.label) {
|
|
@@ -3847,7 +3839,6 @@ var deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = function (o
|
|
|
3847
3839
|
return [4, parseBody(output.body, context)];
|
|
3848
3840
|
case 1:
|
|
3849
3841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3850
|
-
errorCode = "UnknownError";
|
|
3851
3842
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
3843
|
_b = errorCode;
|
|
3853
3844
|
switch (_b) {
|
|
@@ -3871,10 +3862,12 @@ var deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = function (o
|
|
|
3871
3862
|
case 9: throw _d.sent();
|
|
3872
3863
|
case 10:
|
|
3873
3864
|
parsedBody = parsedOutput.body;
|
|
3865
|
+
$metadata = deserializeMetadata(output);
|
|
3866
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3874
3867
|
response = new __BaseException({
|
|
3875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3876
3869
|
$fault: "client",
|
|
3877
|
-
$metadata:
|
|
3870
|
+
$metadata: $metadata,
|
|
3878
3871
|
});
|
|
3879
3872
|
throw __decorateServiceException(response, parsedBody);
|
|
3880
3873
|
}
|
|
@@ -3909,7 +3902,7 @@ export var deserializeAws_restJson1UpdateDomainConfigCommand = function (output,
|
|
|
3909
3902
|
});
|
|
3910
3903
|
}); };
|
|
3911
3904
|
var deserializeAws_restJson1UpdateDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3912
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3905
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3913
3906
|
var _c;
|
|
3914
3907
|
return __generator(this, function (_d) {
|
|
3915
3908
|
switch (_d.label) {
|
|
@@ -3919,7 +3912,6 @@ var deserializeAws_restJson1UpdateDomainConfigCommandError = function (output, c
|
|
|
3919
3912
|
return [4, parseBody(output.body, context)];
|
|
3920
3913
|
case 1:
|
|
3921
3914
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3922
|
-
errorCode = "UnknownError";
|
|
3923
3915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3924
3916
|
_b = errorCode;
|
|
3925
3917
|
switch (_b) {
|
|
@@ -3951,10 +3943,12 @@ var deserializeAws_restJson1UpdateDomainConfigCommandError = function (output, c
|
|
|
3951
3943
|
case 13: throw _d.sent();
|
|
3952
3944
|
case 14:
|
|
3953
3945
|
parsedBody = parsedOutput.body;
|
|
3946
|
+
$metadata = deserializeMetadata(output);
|
|
3947
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3954
3948
|
response = new __BaseException({
|
|
3955
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3956
3950
|
$fault: "client",
|
|
3957
|
-
$metadata:
|
|
3951
|
+
$metadata: $metadata,
|
|
3958
3952
|
});
|
|
3959
3953
|
throw __decorateServiceException(response, parsedBody);
|
|
3960
3954
|
}
|
|
@@ -3985,7 +3979,7 @@ export var deserializeAws_restJson1UpdatePackageCommand = function (output, cont
|
|
|
3985
3979
|
});
|
|
3986
3980
|
}); };
|
|
3987
3981
|
var deserializeAws_restJson1UpdatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3988
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3982
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3989
3983
|
var _c;
|
|
3990
3984
|
return __generator(this, function (_d) {
|
|
3991
3985
|
switch (_d.label) {
|
|
@@ -3995,7 +3989,6 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
3995
3989
|
return [4, parseBody(output.body, context)];
|
|
3996
3990
|
case 1:
|
|
3997
3991
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3998
|
-
errorCode = "UnknownError";
|
|
3999
3992
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4000
3993
|
_b = errorCode;
|
|
4001
3994
|
switch (_b) {
|
|
@@ -4027,10 +4020,12 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
4027
4020
|
case 13: throw _d.sent();
|
|
4028
4021
|
case 14:
|
|
4029
4022
|
parsedBody = parsedOutput.body;
|
|
4023
|
+
$metadata = deserializeMetadata(output);
|
|
4024
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4030
4025
|
response = new __BaseException({
|
|
4031
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4026
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4032
4027
|
$fault: "client",
|
|
4033
|
-
$metadata:
|
|
4028
|
+
$metadata: $metadata,
|
|
4034
4029
|
});
|
|
4035
4030
|
throw __decorateServiceException(response, parsedBody);
|
|
4036
4031
|
}
|
|
@@ -4081,7 +4076,7 @@ export var deserializeAws_restJson1UpgradeDomainCommand = function (output, cont
|
|
|
4081
4076
|
});
|
|
4082
4077
|
}); };
|
|
4083
4078
|
var deserializeAws_restJson1UpgradeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4084
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4079
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4085
4080
|
var _c;
|
|
4086
4081
|
return __generator(this, function (_d) {
|
|
4087
4082
|
switch (_d.label) {
|
|
@@ -4091,7 +4086,6 @@ var deserializeAws_restJson1UpgradeDomainCommandError = function (output, contex
|
|
|
4091
4086
|
return [4, parseBody(output.body, context)];
|
|
4092
4087
|
case 1:
|
|
4093
4088
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4094
|
-
errorCode = "UnknownError";
|
|
4095
4089
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4096
4090
|
_b = errorCode;
|
|
4097
4091
|
switch (_b) {
|
|
@@ -4123,10 +4117,12 @@ var deserializeAws_restJson1UpgradeDomainCommandError = function (output, contex
|
|
|
4123
4117
|
case 13: throw _d.sent();
|
|
4124
4118
|
case 14:
|
|
4125
4119
|
parsedBody = parsedOutput.body;
|
|
4120
|
+
$metadata = deserializeMetadata(output);
|
|
4121
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4126
4122
|
response = new __BaseException({
|
|
4127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4128
4124
|
$fault: "client",
|
|
4129
|
-
$metadata:
|
|
4125
|
+
$metadata: $metadata,
|
|
4130
4126
|
});
|
|
4131
4127
|
throw __decorateServiceException(response, parsedBody);
|
|
4132
4128
|
}
|
|
@@ -4275,21 +4271,18 @@ var serializeAws_restJson1AdvancedOptions = function (input, context) {
|
|
|
4275
4271
|
}, {});
|
|
4276
4272
|
};
|
|
4277
4273
|
var serializeAws_restJson1AdvancedSecurityOptionsInput = function (input, context) {
|
|
4278
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
input.MasterUserOptions !== null && {
|
|
4274
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled != null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled })), (input.Enabled != null && { Enabled: input.Enabled })), (input.InternalUserDatabaseEnabled != null && {
|
|
4275
|
+
InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled,
|
|
4276
|
+
})), (input.MasterUserOptions != null && {
|
|
4282
4277
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
4283
|
-
})), (input.SAMLOptions
|
|
4284
|
-
input.SAMLOptions !== null && {
|
|
4278
|
+
})), (input.SAMLOptions != null && {
|
|
4285
4279
|
SAMLOptions: serializeAws_restJson1SAMLOptionsInput(input.SAMLOptions, context),
|
|
4286
4280
|
}));
|
|
4287
4281
|
};
|
|
4288
4282
|
var serializeAws_restJson1AutoTuneMaintenanceSchedule = function (input, context) {
|
|
4289
|
-
return __assign(__assign(__assign({}, (input.CronExpressionForRecurrence
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
input.StartAt !== null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }));
|
|
4283
|
+
return __assign(__assign(__assign({}, (input.CronExpressionForRecurrence != null && {
|
|
4284
|
+
CronExpressionForRecurrence: input.CronExpressionForRecurrence,
|
|
4285
|
+
})), (input.Duration != null && { Duration: serializeAws_restJson1Duration(input.Duration, context) })), (input.StartAt != null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }));
|
|
4293
4286
|
};
|
|
4294
4287
|
var serializeAws_restJson1AutoTuneMaintenanceScheduleList = function (input, context) {
|
|
4295
4288
|
return input
|
|
@@ -4302,44 +4295,33 @@ var serializeAws_restJson1AutoTuneMaintenanceScheduleList = function (input, con
|
|
|
4302
4295
|
});
|
|
4303
4296
|
};
|
|
4304
4297
|
var serializeAws_restJson1AutoTuneOptions = function (input, context) {
|
|
4305
|
-
return __assign(__assign(__assign({}, (input.DesiredState
|
|
4306
|
-
input.MaintenanceSchedules !== null && {
|
|
4298
|
+
return __assign(__assign(__assign({}, (input.DesiredState != null && { DesiredState: input.DesiredState })), (input.MaintenanceSchedules != null && {
|
|
4307
4299
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
4308
|
-
})), (input.RollbackOnDisable
|
|
4309
|
-
input.RollbackOnDisable !== null && { RollbackOnDisable: input.RollbackOnDisable }));
|
|
4300
|
+
})), (input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }));
|
|
4310
4301
|
};
|
|
4311
4302
|
var serializeAws_restJson1AutoTuneOptionsInput = function (input, context) {
|
|
4312
|
-
return __assign(__assign({}, (input.DesiredState
|
|
4313
|
-
input.MaintenanceSchedules !== null && {
|
|
4303
|
+
return __assign(__assign({}, (input.DesiredState != null && { DesiredState: input.DesiredState })), (input.MaintenanceSchedules != null && {
|
|
4314
4304
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
4315
4305
|
}));
|
|
4316
4306
|
};
|
|
4317
4307
|
var serializeAws_restJson1AWSDomainInformation = function (input, context) {
|
|
4318
|
-
return __assign(__assign(__assign({}, (input.DomainName
|
|
4308
|
+
return __assign(__assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OwnerId != null && { OwnerId: input.OwnerId })), (input.Region != null && { Region: input.Region }));
|
|
4319
4309
|
};
|
|
4320
4310
|
var serializeAws_restJson1ClusterConfig = function (input, context) {
|
|
4321
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ColdStorageOptions
|
|
4322
|
-
input.ColdStorageOptions !== null && {
|
|
4311
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ColdStorageOptions != null && {
|
|
4323
4312
|
ColdStorageOptions: serializeAws_restJson1ColdStorageOptions(input.ColdStorageOptions, context),
|
|
4324
|
-
})), (input.DedicatedMasterCount
|
|
4325
|
-
input.DedicatedMasterCount !== null && { DedicatedMasterCount: input.DedicatedMasterCount })), (input.DedicatedMasterEnabled !== undefined &&
|
|
4326
|
-
input.DedicatedMasterEnabled !== null && { DedicatedMasterEnabled: input.DedicatedMasterEnabled })), (input.DedicatedMasterType !== undefined &&
|
|
4327
|
-
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 &&
|
|
4328
|
-
input.ZoneAwarenessConfig !== null && {
|
|
4313
|
+
})), (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 && {
|
|
4329
4314
|
ZoneAwarenessConfig: serializeAws_restJson1ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
|
|
4330
|
-
})), (input.ZoneAwarenessEnabled
|
|
4331
|
-
input.ZoneAwarenessEnabled !== null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }));
|
|
4315
|
+
})), (input.ZoneAwarenessEnabled != null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }));
|
|
4332
4316
|
};
|
|
4333
4317
|
var serializeAws_restJson1CognitoOptions = function (input, context) {
|
|
4334
|
-
return __assign(__assign(__assign(__assign({}, (input.Enabled
|
|
4335
|
-
input.IdentityPoolId !== null && { IdentityPoolId: input.IdentityPoolId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
|
|
4318
|
+
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 }));
|
|
4336
4319
|
};
|
|
4337
4320
|
var serializeAws_restJson1ColdStorageOptions = function (input, context) {
|
|
4338
|
-
return __assign({}, (input.Enabled
|
|
4321
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4339
4322
|
};
|
|
4340
4323
|
var serializeAws_restJson1DescribePackagesFilter = function (input, context) {
|
|
4341
|
-
return __assign(__assign({}, (input.Name
|
|
4342
|
-
input.Value !== null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }));
|
|
4324
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }));
|
|
4343
4325
|
};
|
|
4344
4326
|
var serializeAws_restJson1DescribePackagesFilterList = function (input, context) {
|
|
4345
4327
|
return input
|
|
@@ -4362,17 +4344,12 @@ var serializeAws_restJson1DescribePackagesFilterValues = function (input, contex
|
|
|
4362
4344
|
});
|
|
4363
4345
|
};
|
|
4364
4346
|
var serializeAws_restJson1DomainEndpointOptions = function (input, context) {
|
|
4365
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CustomEndpoint
|
|
4366
|
-
input.CustomEndpoint !== null && { CustomEndpoint: input.CustomEndpoint })), (input.CustomEndpointCertificateArn !== undefined &&
|
|
4367
|
-
input.CustomEndpointCertificateArn !== null && {
|
|
4347
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CustomEndpoint != null && { CustomEndpoint: input.CustomEndpoint })), (input.CustomEndpointCertificateArn != null && {
|
|
4368
4348
|
CustomEndpointCertificateArn: input.CustomEndpointCertificateArn,
|
|
4369
|
-
})), (input.CustomEndpointEnabled
|
|
4370
|
-
input.CustomEndpointEnabled !== null && { CustomEndpointEnabled: input.CustomEndpointEnabled })), (input.EnforceHTTPS !== undefined && input.EnforceHTTPS !== null && { EnforceHTTPS: input.EnforceHTTPS })), (input.TLSSecurityPolicy !== undefined &&
|
|
4371
|
-
input.TLSSecurityPolicy !== null && { TLSSecurityPolicy: input.TLSSecurityPolicy }));
|
|
4349
|
+
})), (input.CustomEndpointEnabled != null && { CustomEndpointEnabled: input.CustomEndpointEnabled })), (input.EnforceHTTPS != null && { EnforceHTTPS: input.EnforceHTTPS })), (input.TLSSecurityPolicy != null && { TLSSecurityPolicy: input.TLSSecurityPolicy }));
|
|
4372
4350
|
};
|
|
4373
4351
|
var serializeAws_restJson1DomainInformationContainer = function (input, context) {
|
|
4374
|
-
return __assign({}, (input.AWSDomainInformation
|
|
4375
|
-
input.AWSDomainInformation !== null && {
|
|
4352
|
+
return __assign({}, (input.AWSDomainInformation != null && {
|
|
4376
4353
|
AWSDomainInformation: serializeAws_restJson1AWSDomainInformation(input.AWSDomainInformation, context),
|
|
4377
4354
|
}));
|
|
4378
4355
|
};
|
|
@@ -4387,17 +4364,16 @@ var serializeAws_restJson1DomainNameList = function (input, context) {
|
|
|
4387
4364
|
});
|
|
4388
4365
|
};
|
|
4389
4366
|
var serializeAws_restJson1Duration = function (input, context) {
|
|
4390
|
-
return __assign(__assign({}, (input.Unit
|
|
4367
|
+
return __assign(__assign({}, (input.Unit != null && { Unit: input.Unit })), (input.Value != null && { Value: input.Value }));
|
|
4391
4368
|
};
|
|
4392
4369
|
var serializeAws_restJson1EBSOptions = function (input, context) {
|
|
4393
|
-
return __assign(__assign(__assign(__assign({}, (input.EBSEnabled
|
|
4370
|
+
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 }));
|
|
4394
4371
|
};
|
|
4395
4372
|
var serializeAws_restJson1EncryptionAtRestOptions = function (input, context) {
|
|
4396
|
-
return __assign(__assign({}, (input.Enabled
|
|
4373
|
+
return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
|
|
4397
4374
|
};
|
|
4398
4375
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
4399
|
-
return __assign(__assign({}, (input.Name
|
|
4400
|
-
input.Values !== null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }));
|
|
4376
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }));
|
|
4401
4377
|
};
|
|
4402
4378
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
4403
4379
|
return input
|
|
@@ -4410,8 +4386,7 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
4410
4386
|
});
|
|
4411
4387
|
};
|
|
4412
4388
|
var serializeAws_restJson1LogPublishingOption = function (input, context) {
|
|
4413
|
-
return __assign(__assign({}, (input.CloudWatchLogsLogGroupArn
|
|
4414
|
-
input.CloudWatchLogsLogGroupArn !== null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
|
|
4389
|
+
return __assign(__assign({}, (input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4415
4390
|
};
|
|
4416
4391
|
var serializeAws_restJson1LogPublishingOptions = function (input, context) {
|
|
4417
4392
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -4424,29 +4399,22 @@ var serializeAws_restJson1LogPublishingOptions = function (input, context) {
|
|
|
4424
4399
|
}, {});
|
|
4425
4400
|
};
|
|
4426
4401
|
var serializeAws_restJson1MasterUserOptions = function (input, context) {
|
|
4427
|
-
return __assign(__assign(__assign({}, (input.MasterUserARN
|
|
4428
|
-
input.MasterUserName !== null && { MasterUserName: input.MasterUserName })), (input.MasterUserPassword !== undefined &&
|
|
4429
|
-
input.MasterUserPassword !== null && { MasterUserPassword: input.MasterUserPassword }));
|
|
4402
|
+
return __assign(__assign(__assign({}, (input.MasterUserARN != null && { MasterUserARN: input.MasterUserARN })), (input.MasterUserName != null && { MasterUserName: input.MasterUserName })), (input.MasterUserPassword != null && { MasterUserPassword: input.MasterUserPassword }));
|
|
4430
4403
|
};
|
|
4431
4404
|
var serializeAws_restJson1NodeToNodeEncryptionOptions = function (input, context) {
|
|
4432
|
-
return __assign({}, (input.Enabled
|
|
4405
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4433
4406
|
};
|
|
4434
4407
|
var serializeAws_restJson1PackageSource = function (input, context) {
|
|
4435
|
-
return __assign(__assign({}, (input.S3BucketName
|
|
4408
|
+
return __assign(__assign({}, (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3Key != null && { S3Key: input.S3Key }));
|
|
4436
4409
|
};
|
|
4437
4410
|
var serializeAws_restJson1SAMLIdp = function (input, context) {
|
|
4438
|
-
return __assign(__assign({}, (input.EntityId
|
|
4439
|
-
input.MetadataContent !== null && { MetadataContent: input.MetadataContent }));
|
|
4411
|
+
return __assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.MetadataContent != null && { MetadataContent: input.MetadataContent }));
|
|
4440
4412
|
};
|
|
4441
4413
|
var serializeAws_restJson1SAMLOptionsInput = function (input, context) {
|
|
4442
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Enabled
|
|
4443
|
-
input.MasterBackendRole !== null && { MasterBackendRole: input.MasterBackendRole })), (input.MasterUserName !== undefined &&
|
|
4444
|
-
input.MasterUserName !== null && { MasterUserName: input.MasterUserName })), (input.RolesKey !== undefined && input.RolesKey !== null && { RolesKey: input.RolesKey })), (input.SessionTimeoutMinutes !== undefined &&
|
|
4445
|
-
input.SessionTimeoutMinutes !== null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes })), (input.SubjectKey !== undefined && input.SubjectKey !== null && { SubjectKey: input.SubjectKey }));
|
|
4414
|
+
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 }));
|
|
4446
4415
|
};
|
|
4447
4416
|
var serializeAws_restJson1SnapshotOptions = function (input, context) {
|
|
4448
|
-
return __assign({}, (input.AutomatedSnapshotStartHour
|
|
4449
|
-
input.AutomatedSnapshotStartHour !== null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }));
|
|
4417
|
+
return __assign({}, (input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }));
|
|
4450
4418
|
};
|
|
4451
4419
|
var serializeAws_restJson1StringList = function (input, context) {
|
|
4452
4420
|
return input
|
|
@@ -4459,7 +4427,7 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
4459
4427
|
});
|
|
4460
4428
|
};
|
|
4461
4429
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
4462
|
-
return __assign(__assign({}, (input.Key
|
|
4430
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
4463
4431
|
};
|
|
4464
4432
|
var serializeAws_restJson1TagList = function (input, context) {
|
|
4465
4433
|
return input
|
|
@@ -4482,30 +4450,23 @@ var serializeAws_restJson1ValueStringList = function (input, context) {
|
|
|
4482
4450
|
});
|
|
4483
4451
|
};
|
|
4484
4452
|
var serializeAws_restJson1VPCOptions = function (input, context) {
|
|
4485
|
-
return __assign(__assign({}, (input.SecurityGroupIds
|
|
4486
|
-
input.SecurityGroupIds !== null && {
|
|
4453
|
+
return __assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
4487
4454
|
SecurityGroupIds: serializeAws_restJson1StringList(input.SecurityGroupIds, context),
|
|
4488
|
-
})), (input.SubnetIds
|
|
4489
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }));
|
|
4455
|
+
})), (input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }));
|
|
4490
4456
|
};
|
|
4491
4457
|
var serializeAws_restJson1ZoneAwarenessConfig = function (input, context) {
|
|
4492
|
-
return __assign({}, (input.AvailabilityZoneCount
|
|
4493
|
-
input.AvailabilityZoneCount !== null && { AvailabilityZoneCount: input.AvailabilityZoneCount }));
|
|
4458
|
+
return __assign({}, (input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }));
|
|
4494
4459
|
};
|
|
4495
4460
|
var deserializeAws_restJson1AccessPoliciesStatus = function (output, context) {
|
|
4496
4461
|
return {
|
|
4497
4462
|
Options: __expectString(output.Options),
|
|
4498
|
-
Status: output.Status
|
|
4499
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4500
|
-
: undefined,
|
|
4463
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4501
4464
|
};
|
|
4502
4465
|
};
|
|
4503
4466
|
var deserializeAws_restJson1AdditionalLimit = function (output, context) {
|
|
4504
4467
|
return {
|
|
4505
4468
|
LimitName: __expectString(output.LimitName),
|
|
4506
|
-
LimitValues: output.LimitValues
|
|
4507
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
4508
|
-
: undefined,
|
|
4469
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
4509
4470
|
};
|
|
4510
4471
|
};
|
|
4511
4472
|
var deserializeAws_restJson1AdditionalLimitList = function (output, context) {
|
|
@@ -4531,40 +4492,30 @@ var deserializeAws_restJson1AdvancedOptions = function (output, context) {
|
|
|
4531
4492
|
};
|
|
4532
4493
|
var deserializeAws_restJson1AdvancedOptionsStatus = function (output, context) {
|
|
4533
4494
|
return {
|
|
4534
|
-
Options: output.Options
|
|
4535
|
-
|
|
4536
|
-
: undefined,
|
|
4537
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4538
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4539
|
-
: undefined,
|
|
4495
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedOptions(output.Options, context) : undefined,
|
|
4496
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4540
4497
|
};
|
|
4541
4498
|
};
|
|
4542
4499
|
var deserializeAws_restJson1AdvancedSecurityOptions = function (output, context) {
|
|
4543
4500
|
return {
|
|
4544
|
-
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate
|
|
4501
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate != null
|
|
4545
4502
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AnonymousAuthDisableDate)))
|
|
4546
4503
|
: undefined,
|
|
4547
4504
|
AnonymousAuthEnabled: __expectBoolean(output.AnonymousAuthEnabled),
|
|
4548
4505
|
Enabled: __expectBoolean(output.Enabled),
|
|
4549
4506
|
InternalUserDatabaseEnabled: __expectBoolean(output.InternalUserDatabaseEnabled),
|
|
4550
|
-
SAMLOptions: output.SAMLOptions
|
|
4551
|
-
? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
|
|
4552
|
-
: undefined,
|
|
4507
|
+
SAMLOptions: output.SAMLOptions != null ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
|
|
4553
4508
|
};
|
|
4554
4509
|
};
|
|
4555
4510
|
var deserializeAws_restJson1AdvancedSecurityOptionsStatus = function (output, context) {
|
|
4556
4511
|
return {
|
|
4557
|
-
Options: output.Options
|
|
4558
|
-
|
|
4559
|
-
: undefined,
|
|
4560
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4561
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4562
|
-
: undefined,
|
|
4512
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedSecurityOptions(output.Options, context) : undefined,
|
|
4513
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4563
4514
|
};
|
|
4564
4515
|
};
|
|
4565
4516
|
var deserializeAws_restJson1AutoTune = function (output, context) {
|
|
4566
4517
|
return {
|
|
4567
|
-
AutoTuneDetails: output.AutoTuneDetails
|
|
4518
|
+
AutoTuneDetails: output.AutoTuneDetails != null
|
|
4568
4519
|
? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
|
|
4569
4520
|
: undefined,
|
|
4570
4521
|
AutoTuneType: __expectString(output.AutoTuneType),
|
|
@@ -4572,7 +4523,7 @@ var deserializeAws_restJson1AutoTune = function (output, context) {
|
|
|
4572
4523
|
};
|
|
4573
4524
|
var deserializeAws_restJson1AutoTuneDetails = function (output, context) {
|
|
4574
4525
|
return {
|
|
4575
|
-
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails
|
|
4526
|
+
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails != null
|
|
4576
4527
|
? deserializeAws_restJson1ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
|
|
4577
4528
|
: undefined,
|
|
4578
4529
|
};
|
|
@@ -4591,12 +4542,8 @@ var deserializeAws_restJson1AutoTuneList = function (output, context) {
|
|
|
4591
4542
|
var deserializeAws_restJson1AutoTuneMaintenanceSchedule = function (output, context) {
|
|
4592
4543
|
return {
|
|
4593
4544
|
CronExpressionForRecurrence: __expectString(output.CronExpressionForRecurrence),
|
|
4594
|
-
Duration: output.Duration
|
|
4595
|
-
|
|
4596
|
-
: undefined,
|
|
4597
|
-
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
4598
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt)))
|
|
4599
|
-
: undefined,
|
|
4545
|
+
Duration: output.Duration != null ? deserializeAws_restJson1Duration(output.Duration, context) : undefined,
|
|
4546
|
+
StartAt: output.StartAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt))) : undefined,
|
|
4600
4547
|
};
|
|
4601
4548
|
};
|
|
4602
4549
|
var deserializeAws_restJson1AutoTuneMaintenanceScheduleList = function (output, context) {
|
|
@@ -4613,7 +4560,7 @@ var deserializeAws_restJson1AutoTuneMaintenanceScheduleList = function (output,
|
|
|
4613
4560
|
var deserializeAws_restJson1AutoTuneOptions = function (output, context) {
|
|
4614
4561
|
return {
|
|
4615
4562
|
DesiredState: __expectString(output.DesiredState),
|
|
4616
|
-
MaintenanceSchedules: output.MaintenanceSchedules
|
|
4563
|
+
MaintenanceSchedules: output.MaintenanceSchedules != null
|
|
4617
4564
|
? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
|
|
4618
4565
|
: undefined,
|
|
4619
4566
|
RollbackOnDisable: __expectString(output.RollbackOnDisable),
|
|
@@ -4627,25 +4574,19 @@ var deserializeAws_restJson1AutoTuneOptionsOutput = function (output, context) {
|
|
|
4627
4574
|
};
|
|
4628
4575
|
var deserializeAws_restJson1AutoTuneOptionsStatus = function (output, context) {
|
|
4629
4576
|
return {
|
|
4630
|
-
Options: output.Options
|
|
4631
|
-
|
|
4632
|
-
: undefined,
|
|
4633
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4634
|
-
? deserializeAws_restJson1AutoTuneStatus(output.Status, context)
|
|
4635
|
-
: undefined,
|
|
4577
|
+
Options: output.Options != null ? deserializeAws_restJson1AutoTuneOptions(output.Options, context) : undefined,
|
|
4578
|
+
Status: output.Status != null ? deserializeAws_restJson1AutoTuneStatus(output.Status, context) : undefined,
|
|
4636
4579
|
};
|
|
4637
4580
|
};
|
|
4638
4581
|
var deserializeAws_restJson1AutoTuneStatus = function (output, context) {
|
|
4639
4582
|
return {
|
|
4640
|
-
CreationDate: output.CreationDate
|
|
4583
|
+
CreationDate: output.CreationDate != null
|
|
4641
4584
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4642
4585
|
: undefined,
|
|
4643
4586
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4644
4587
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
4645
4588
|
State: __expectString(output.State),
|
|
4646
|
-
UpdateDate: output.UpdateDate
|
|
4647
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
4648
|
-
: undefined,
|
|
4589
|
+
UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
|
|
4649
4590
|
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
4650
4591
|
};
|
|
4651
4592
|
};
|
|
@@ -4665,7 +4606,7 @@ var deserializeAws_restJson1ChangeProgressDetails = function (output, context) {
|
|
|
4665
4606
|
var deserializeAws_restJson1ChangeProgressStage = function (output, context) {
|
|
4666
4607
|
return {
|
|
4667
4608
|
Description: __expectString(output.Description),
|
|
4668
|
-
LastUpdated: output.LastUpdated
|
|
4609
|
+
LastUpdated: output.LastUpdated != null
|
|
4669
4610
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
|
|
4670
4611
|
: undefined,
|
|
4671
4612
|
Name: __expectString(output.Name),
|
|
@@ -4686,25 +4627,23 @@ var deserializeAws_restJson1ChangeProgressStageList = function (output, context)
|
|
|
4686
4627
|
var deserializeAws_restJson1ChangeProgressStatusDetails = function (output, context) {
|
|
4687
4628
|
return {
|
|
4688
4629
|
ChangeId: __expectString(output.ChangeId),
|
|
4689
|
-
ChangeProgressStages: output.ChangeProgressStages
|
|
4630
|
+
ChangeProgressStages: output.ChangeProgressStages != null
|
|
4690
4631
|
? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
|
|
4691
4632
|
: undefined,
|
|
4692
|
-
CompletedProperties: output.CompletedProperties
|
|
4633
|
+
CompletedProperties: output.CompletedProperties != null
|
|
4693
4634
|
? deserializeAws_restJson1StringList(output.CompletedProperties, context)
|
|
4694
4635
|
: undefined,
|
|
4695
|
-
PendingProperties: output.PendingProperties
|
|
4636
|
+
PendingProperties: output.PendingProperties != null
|
|
4696
4637
|
? deserializeAws_restJson1StringList(output.PendingProperties, context)
|
|
4697
4638
|
: undefined,
|
|
4698
|
-
StartTime: output.StartTime
|
|
4699
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4700
|
-
: undefined,
|
|
4639
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
4701
4640
|
Status: __expectString(output.Status),
|
|
4702
4641
|
TotalNumberOfStages: __expectInt32(output.TotalNumberOfStages),
|
|
4703
4642
|
};
|
|
4704
4643
|
};
|
|
4705
4644
|
var deserializeAws_restJson1ClusterConfig = function (output, context) {
|
|
4706
4645
|
return {
|
|
4707
|
-
ColdStorageOptions: output.ColdStorageOptions
|
|
4646
|
+
ColdStorageOptions: output.ColdStorageOptions != null
|
|
4708
4647
|
? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
|
|
4709
4648
|
: undefined,
|
|
4710
4649
|
DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount),
|
|
@@ -4715,7 +4654,7 @@ var deserializeAws_restJson1ClusterConfig = function (output, context) {
|
|
|
4715
4654
|
WarmCount: __expectInt32(output.WarmCount),
|
|
4716
4655
|
WarmEnabled: __expectBoolean(output.WarmEnabled),
|
|
4717
4656
|
WarmType: __expectString(output.WarmType),
|
|
4718
|
-
ZoneAwarenessConfig: output.ZoneAwarenessConfig
|
|
4657
|
+
ZoneAwarenessConfig: output.ZoneAwarenessConfig != null
|
|
4719
4658
|
? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
|
|
4720
4659
|
: undefined,
|
|
4721
4660
|
ZoneAwarenessEnabled: __expectBoolean(output.ZoneAwarenessEnabled),
|
|
@@ -4723,12 +4662,8 @@ var deserializeAws_restJson1ClusterConfig = function (output, context) {
|
|
|
4723
4662
|
};
|
|
4724
4663
|
var deserializeAws_restJson1ClusterConfigStatus = function (output, context) {
|
|
4725
4664
|
return {
|
|
4726
|
-
Options: output.Options
|
|
4727
|
-
|
|
4728
|
-
: undefined,
|
|
4729
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4730
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4731
|
-
: undefined,
|
|
4665
|
+
Options: output.Options != null ? deserializeAws_restJson1ClusterConfig(output.Options, context) : undefined,
|
|
4666
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4732
4667
|
};
|
|
4733
4668
|
};
|
|
4734
4669
|
var deserializeAws_restJson1CognitoOptions = function (output, context) {
|
|
@@ -4741,12 +4676,8 @@ var deserializeAws_restJson1CognitoOptions = function (output, context) {
|
|
|
4741
4676
|
};
|
|
4742
4677
|
var deserializeAws_restJson1CognitoOptionsStatus = function (output, context) {
|
|
4743
4678
|
return {
|
|
4744
|
-
Options: output.Options
|
|
4745
|
-
|
|
4746
|
-
: undefined,
|
|
4747
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4748
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4749
|
-
: undefined,
|
|
4679
|
+
Options: output.Options != null ? deserializeAws_restJson1CognitoOptions(output.Options, context) : undefined,
|
|
4680
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4750
4681
|
};
|
|
4751
4682
|
};
|
|
4752
4683
|
var deserializeAws_restJson1ColdStorageOptions = function (output, context) {
|
|
@@ -4768,58 +4699,50 @@ var deserializeAws_restJson1CompatibleVersionsList = function (output, context)
|
|
|
4768
4699
|
var deserializeAws_restJson1CompatibleVersionsMap = function (output, context) {
|
|
4769
4700
|
return {
|
|
4770
4701
|
SourceVersion: __expectString(output.SourceVersion),
|
|
4771
|
-
TargetVersions: output.TargetVersions
|
|
4772
|
-
? deserializeAws_restJson1VersionList(output.TargetVersions, context)
|
|
4773
|
-
: undefined,
|
|
4702
|
+
TargetVersions: output.TargetVersions != null ? deserializeAws_restJson1VersionList(output.TargetVersions, context) : undefined,
|
|
4774
4703
|
};
|
|
4775
4704
|
};
|
|
4776
4705
|
var deserializeAws_restJson1DomainConfig = function (output, context) {
|
|
4777
4706
|
return {
|
|
4778
|
-
AccessPolicies: output.AccessPolicies
|
|
4707
|
+
AccessPolicies: output.AccessPolicies != null
|
|
4779
4708
|
? deserializeAws_restJson1AccessPoliciesStatus(output.AccessPolicies, context)
|
|
4780
4709
|
: undefined,
|
|
4781
|
-
AdvancedOptions: output.AdvancedOptions
|
|
4710
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4782
4711
|
? deserializeAws_restJson1AdvancedOptionsStatus(output.AdvancedOptions, context)
|
|
4783
4712
|
: undefined,
|
|
4784
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
4713
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4785
4714
|
? deserializeAws_restJson1AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
|
|
4786
4715
|
: undefined,
|
|
4787
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
4716
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4788
4717
|
? deserializeAws_restJson1AutoTuneOptionsStatus(output.AutoTuneOptions, context)
|
|
4789
4718
|
: undefined,
|
|
4790
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
4719
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
4791
4720
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
4792
4721
|
: undefined,
|
|
4793
|
-
ClusterConfig: output.ClusterConfig
|
|
4722
|
+
ClusterConfig: output.ClusterConfig != null
|
|
4794
4723
|
? deserializeAws_restJson1ClusterConfigStatus(output.ClusterConfig, context)
|
|
4795
4724
|
: undefined,
|
|
4796
|
-
CognitoOptions: output.CognitoOptions
|
|
4725
|
+
CognitoOptions: output.CognitoOptions != null
|
|
4797
4726
|
? deserializeAws_restJson1CognitoOptionsStatus(output.CognitoOptions, context)
|
|
4798
4727
|
: undefined,
|
|
4799
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
4728
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
4800
4729
|
? deserializeAws_restJson1DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
|
|
4801
4730
|
: undefined,
|
|
4802
|
-
EBSOptions: output.EBSOptions
|
|
4803
|
-
|
|
4804
|
-
: undefined,
|
|
4805
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
4731
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptionsStatus(output.EBSOptions, context) : undefined,
|
|
4732
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
4806
4733
|
? deserializeAws_restJson1EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
|
|
4807
4734
|
: undefined,
|
|
4808
|
-
EngineVersion: output.EngineVersion
|
|
4809
|
-
|
|
4810
|
-
: undefined,
|
|
4811
|
-
LogPublishingOptions: output.LogPublishingOptions !== undefined && output.LogPublishingOptions !== null
|
|
4735
|
+
EngineVersion: output.EngineVersion != null ? deserializeAws_restJson1VersionStatus(output.EngineVersion, context) : undefined,
|
|
4736
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
4812
4737
|
? deserializeAws_restJson1LogPublishingOptionsStatus(output.LogPublishingOptions, context)
|
|
4813
4738
|
: undefined,
|
|
4814
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
4739
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
4815
4740
|
? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
|
|
4816
4741
|
: undefined,
|
|
4817
|
-
SnapshotOptions: output.SnapshotOptions
|
|
4742
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
4818
4743
|
? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
|
|
4819
4744
|
: undefined,
|
|
4820
|
-
VPCOptions: output.VPCOptions
|
|
4821
|
-
? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context)
|
|
4822
|
-
: undefined,
|
|
4745
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
|
|
4823
4746
|
};
|
|
4824
4747
|
};
|
|
4825
4748
|
var deserializeAws_restJson1DomainEndpointOptions = function (output, context) {
|
|
@@ -4833,12 +4756,8 @@ var deserializeAws_restJson1DomainEndpointOptions = function (output, context) {
|
|
|
4833
4756
|
};
|
|
4834
4757
|
var deserializeAws_restJson1DomainEndpointOptionsStatus = function (output, context) {
|
|
4835
4758
|
return {
|
|
4836
|
-
Options: output.Options
|
|
4837
|
-
|
|
4838
|
-
: undefined,
|
|
4839
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4840
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4841
|
-
: undefined,
|
|
4759
|
+
Options: output.Options != null ? deserializeAws_restJson1DomainEndpointOptions(output.Options, context) : undefined,
|
|
4760
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4842
4761
|
};
|
|
4843
4762
|
};
|
|
4844
4763
|
var deserializeAws_restJson1DomainInfo = function (output, context) {
|
|
@@ -4860,7 +4779,7 @@ var deserializeAws_restJson1DomainInfoList = function (output, context) {
|
|
|
4860
4779
|
};
|
|
4861
4780
|
var deserializeAws_restJson1DomainInformationContainer = function (output, context) {
|
|
4862
4781
|
return {
|
|
4863
|
-
AWSDomainInformation: output.AWSDomainInformation
|
|
4782
|
+
AWSDomainInformation: output.AWSDomainInformation != null
|
|
4864
4783
|
? deserializeAws_restJson1AWSDomainInformation(output.AWSDomainInformation, context)
|
|
4865
4784
|
: undefined,
|
|
4866
4785
|
};
|
|
@@ -4869,10 +4788,8 @@ var deserializeAws_restJson1DomainPackageDetails = function (output, context) {
|
|
|
4869
4788
|
return {
|
|
4870
4789
|
DomainName: __expectString(output.DomainName),
|
|
4871
4790
|
DomainPackageStatus: __expectString(output.DomainPackageStatus),
|
|
4872
|
-
ErrorDetails: output.ErrorDetails
|
|
4873
|
-
|
|
4874
|
-
: undefined,
|
|
4875
|
-
LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
|
|
4791
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
4792
|
+
LastUpdated: output.LastUpdated != null
|
|
4876
4793
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
|
|
4877
4794
|
: undefined,
|
|
4878
4795
|
PackageID: __expectString(output.PackageID),
|
|
@@ -4897,59 +4814,51 @@ var deserializeAws_restJson1DomainStatus = function (output, context) {
|
|
|
4897
4814
|
return {
|
|
4898
4815
|
ARN: __expectString(output.ARN),
|
|
4899
4816
|
AccessPolicies: __expectString(output.AccessPolicies),
|
|
4900
|
-
AdvancedOptions: output.AdvancedOptions
|
|
4817
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4901
4818
|
? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
|
|
4902
4819
|
: undefined,
|
|
4903
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
4820
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4904
4821
|
? deserializeAws_restJson1AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
|
|
4905
4822
|
: undefined,
|
|
4906
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
4823
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4907
4824
|
? deserializeAws_restJson1AutoTuneOptionsOutput(output.AutoTuneOptions, context)
|
|
4908
4825
|
: undefined,
|
|
4909
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
4826
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
4910
4827
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
4911
4828
|
: undefined,
|
|
4912
|
-
ClusterConfig: output.ClusterConfig
|
|
4913
|
-
|
|
4914
|
-
: undefined,
|
|
4915
|
-
CognitoOptions: output.CognitoOptions !== undefined && output.CognitoOptions !== null
|
|
4829
|
+
ClusterConfig: output.ClusterConfig != null ? deserializeAws_restJson1ClusterConfig(output.ClusterConfig, context) : undefined,
|
|
4830
|
+
CognitoOptions: output.CognitoOptions != null
|
|
4916
4831
|
? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
|
|
4917
4832
|
: undefined,
|
|
4918
4833
|
Created: __expectBoolean(output.Created),
|
|
4919
4834
|
Deleted: __expectBoolean(output.Deleted),
|
|
4920
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
4835
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
4921
4836
|
? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
|
|
4922
4837
|
: undefined,
|
|
4923
4838
|
DomainId: __expectString(output.DomainId),
|
|
4924
4839
|
DomainName: __expectString(output.DomainName),
|
|
4925
|
-
EBSOptions: output.EBSOptions
|
|
4926
|
-
|
|
4927
|
-
: undefined,
|
|
4928
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
4840
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context) : undefined,
|
|
4841
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
4929
4842
|
? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
|
|
4930
4843
|
: undefined,
|
|
4931
4844
|
Endpoint: __expectString(output.Endpoint),
|
|
4932
|
-
Endpoints: output.Endpoints
|
|
4933
|
-
? deserializeAws_restJson1EndpointsMap(output.Endpoints, context)
|
|
4934
|
-
: undefined,
|
|
4845
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context) : undefined,
|
|
4935
4846
|
EngineVersion: __expectString(output.EngineVersion),
|
|
4936
|
-
LogPublishingOptions: output.LogPublishingOptions
|
|
4847
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
4937
4848
|
? deserializeAws_restJson1LogPublishingOptions(output.LogPublishingOptions, context)
|
|
4938
4849
|
: undefined,
|
|
4939
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
4850
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
4940
4851
|
? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
|
|
4941
4852
|
: undefined,
|
|
4942
4853
|
Processing: __expectBoolean(output.Processing),
|
|
4943
|
-
ServiceSoftwareOptions: output.ServiceSoftwareOptions
|
|
4854
|
+
ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
|
|
4944
4855
|
? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
|
|
4945
4856
|
: undefined,
|
|
4946
|
-
SnapshotOptions: output.SnapshotOptions
|
|
4857
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
4947
4858
|
? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
|
|
4948
4859
|
: undefined,
|
|
4949
4860
|
UpgradeProcessing: __expectBoolean(output.UpgradeProcessing),
|
|
4950
|
-
VPCOptions: output.VPCOptions
|
|
4951
|
-
? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
|
|
4952
|
-
: undefined,
|
|
4861
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
|
|
4953
4862
|
};
|
|
4954
4863
|
};
|
|
4955
4864
|
var deserializeAws_restJson1DomainStatusList = function (output, context) {
|
|
@@ -4985,12 +4894,8 @@ var deserializeAws_restJson1EBSOptions = function (output, context) {
|
|
|
4985
4894
|
};
|
|
4986
4895
|
var deserializeAws_restJson1EBSOptionsStatus = function (output, context) {
|
|
4987
4896
|
return {
|
|
4988
|
-
Options: output.Options
|
|
4989
|
-
|
|
4990
|
-
: undefined,
|
|
4991
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4992
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4993
|
-
: undefined,
|
|
4897
|
+
Options: output.Options != null ? deserializeAws_restJson1EBSOptions(output.Options, context) : undefined,
|
|
4898
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4994
4899
|
};
|
|
4995
4900
|
};
|
|
4996
4901
|
var deserializeAws_restJson1EncryptionAtRestOptions = function (output, context) {
|
|
@@ -5001,12 +4906,8 @@ var deserializeAws_restJson1EncryptionAtRestOptions = function (output, context)
|
|
|
5001
4906
|
};
|
|
5002
4907
|
var deserializeAws_restJson1EncryptionAtRestOptionsStatus = function (output, context) {
|
|
5003
4908
|
return {
|
|
5004
|
-
Options: output.Options
|
|
5005
|
-
|
|
5006
|
-
: undefined,
|
|
5007
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5008
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5009
|
-
: undefined,
|
|
4909
|
+
Options: output.Options != null ? deserializeAws_restJson1EncryptionAtRestOptions(output.Options, context) : undefined,
|
|
4910
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5010
4911
|
};
|
|
5011
4912
|
};
|
|
5012
4913
|
var deserializeAws_restJson1EndpointsMap = function (output, context) {
|
|
@@ -5028,13 +4929,13 @@ var deserializeAws_restJson1ErrorDetails = function (output, context) {
|
|
|
5028
4929
|
var deserializeAws_restJson1InboundConnection = function (output, context) {
|
|
5029
4930
|
return {
|
|
5030
4931
|
ConnectionId: __expectString(output.ConnectionId),
|
|
5031
|
-
ConnectionStatus: output.ConnectionStatus
|
|
4932
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
5032
4933
|
? deserializeAws_restJson1InboundConnectionStatus(output.ConnectionStatus, context)
|
|
5033
4934
|
: undefined,
|
|
5034
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
4935
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
5035
4936
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
5036
4937
|
: undefined,
|
|
5037
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
4938
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
5038
4939
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
5039
4940
|
: undefined,
|
|
5040
4941
|
};
|
|
@@ -5064,7 +4965,7 @@ var deserializeAws_restJson1InstanceCountLimits = function (output, context) {
|
|
|
5064
4965
|
};
|
|
5065
4966
|
var deserializeAws_restJson1InstanceLimits = function (output, context) {
|
|
5066
4967
|
return {
|
|
5067
|
-
InstanceCountLimits: output.InstanceCountLimits
|
|
4968
|
+
InstanceCountLimits: output.InstanceCountLimits != null
|
|
5068
4969
|
? deserializeAws_restJson1InstanceCountLimits(output.InstanceCountLimits, context)
|
|
5069
4970
|
: undefined,
|
|
5070
4971
|
};
|
|
@@ -5086,9 +4987,7 @@ var deserializeAws_restJson1InstanceTypeDetails = function (output, context) {
|
|
|
5086
4987
|
AppLogsEnabled: __expectBoolean(output.AppLogsEnabled),
|
|
5087
4988
|
CognitoEnabled: __expectBoolean(output.CognitoEnabled),
|
|
5088
4989
|
EncryptionEnabled: __expectBoolean(output.EncryptionEnabled),
|
|
5089
|
-
InstanceRole: output.InstanceRole
|
|
5090
|
-
? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context)
|
|
5091
|
-
: undefined,
|
|
4990
|
+
InstanceRole: output.InstanceRole != null ? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context) : undefined,
|
|
5092
4991
|
InstanceType: __expectString(output.InstanceType),
|
|
5093
4992
|
WarmEnabled: __expectBoolean(output.WarmEnabled),
|
|
5094
4993
|
};
|
|
@@ -5117,15 +5016,13 @@ var deserializeAws_restJson1Issues = function (output, context) {
|
|
|
5117
5016
|
};
|
|
5118
5017
|
var deserializeAws_restJson1Limits = function (output, context) {
|
|
5119
5018
|
return {
|
|
5120
|
-
AdditionalLimits: output.AdditionalLimits
|
|
5019
|
+
AdditionalLimits: output.AdditionalLimits != null
|
|
5121
5020
|
? deserializeAws_restJson1AdditionalLimitList(output.AdditionalLimits, context)
|
|
5122
5021
|
: undefined,
|
|
5123
|
-
InstanceLimits: output.InstanceLimits
|
|
5022
|
+
InstanceLimits: output.InstanceLimits != null
|
|
5124
5023
|
? deserializeAws_restJson1InstanceLimits(output.InstanceLimits, context)
|
|
5125
5024
|
: undefined,
|
|
5126
|
-
StorageTypes: output.StorageTypes
|
|
5127
|
-
? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context)
|
|
5128
|
-
: undefined,
|
|
5025
|
+
StorageTypes: output.StorageTypes != null ? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context) : undefined,
|
|
5129
5026
|
};
|
|
5130
5027
|
};
|
|
5131
5028
|
var deserializeAws_restJson1LimitsByRole = function (output, context) {
|
|
@@ -5167,12 +5064,8 @@ var deserializeAws_restJson1LogPublishingOptions = function (output, context) {
|
|
|
5167
5064
|
};
|
|
5168
5065
|
var deserializeAws_restJson1LogPublishingOptionsStatus = function (output, context) {
|
|
5169
5066
|
return {
|
|
5170
|
-
Options: output.Options
|
|
5171
|
-
|
|
5172
|
-
: undefined,
|
|
5173
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5174
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5175
|
-
: undefined,
|
|
5067
|
+
Options: output.Options != null ? deserializeAws_restJson1LogPublishingOptions(output.Options, context) : undefined,
|
|
5068
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5176
5069
|
};
|
|
5177
5070
|
};
|
|
5178
5071
|
var deserializeAws_restJson1NodeToNodeEncryptionOptions = function (output, context) {
|
|
@@ -5182,24 +5075,18 @@ var deserializeAws_restJson1NodeToNodeEncryptionOptions = function (output, cont
|
|
|
5182
5075
|
};
|
|
5183
5076
|
var deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = function (output, context) {
|
|
5184
5077
|
return {
|
|
5185
|
-
Options: output.Options
|
|
5186
|
-
|
|
5187
|
-
: undefined,
|
|
5188
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5189
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5190
|
-
: undefined,
|
|
5078
|
+
Options: output.Options != null ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.Options, context) : undefined,
|
|
5079
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5191
5080
|
};
|
|
5192
5081
|
};
|
|
5193
5082
|
var deserializeAws_restJson1OptionStatus = function (output, context) {
|
|
5194
5083
|
return {
|
|
5195
|
-
CreationDate: output.CreationDate
|
|
5084
|
+
CreationDate: output.CreationDate != null
|
|
5196
5085
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5197
5086
|
: undefined,
|
|
5198
5087
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
5199
5088
|
State: __expectString(output.State),
|
|
5200
|
-
UpdateDate: output.UpdateDate
|
|
5201
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
5202
|
-
: undefined,
|
|
5089
|
+
UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
|
|
5203
5090
|
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
5204
5091
|
};
|
|
5205
5092
|
};
|
|
@@ -5207,13 +5094,13 @@ var deserializeAws_restJson1OutboundConnection = function (output, context) {
|
|
|
5207
5094
|
return {
|
|
5208
5095
|
ConnectionAlias: __expectString(output.ConnectionAlias),
|
|
5209
5096
|
ConnectionId: __expectString(output.ConnectionId),
|
|
5210
|
-
ConnectionStatus: output.ConnectionStatus
|
|
5097
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
5211
5098
|
? deserializeAws_restJson1OutboundConnectionStatus(output.ConnectionStatus, context)
|
|
5212
5099
|
: undefined,
|
|
5213
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
5100
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
5214
5101
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
5215
5102
|
: undefined,
|
|
5216
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
5103
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
5217
5104
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
5218
5105
|
: undefined,
|
|
5219
5106
|
};
|
|
@@ -5238,13 +5125,9 @@ var deserializeAws_restJson1OutboundConnectionStatus = function (output, context
|
|
|
5238
5125
|
var deserializeAws_restJson1PackageDetails = function (output, context) {
|
|
5239
5126
|
return {
|
|
5240
5127
|
AvailablePackageVersion: __expectString(output.AvailablePackageVersion),
|
|
5241
|
-
CreatedAt: output.CreatedAt
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
|
|
5245
|
-
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
5246
|
-
: undefined,
|
|
5247
|
-
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
5128
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
5129
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
5130
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
5248
5131
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
5249
5132
|
: undefined,
|
|
5250
5133
|
PackageDescription: __expectString(output.PackageDescription),
|
|
@@ -5268,9 +5151,7 @@ var deserializeAws_restJson1PackageDetailsList = function (output, context) {
|
|
|
5268
5151
|
var deserializeAws_restJson1PackageVersionHistory = function (output, context) {
|
|
5269
5152
|
return {
|
|
5270
5153
|
CommitMessage: __expectString(output.CommitMessage),
|
|
5271
|
-
CreatedAt: output.CreatedAt
|
|
5272
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5273
|
-
: undefined,
|
|
5154
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
5274
5155
|
PackageVersion: __expectString(output.PackageVersion),
|
|
5275
5156
|
};
|
|
5276
5157
|
};
|
|
@@ -5311,15 +5192,13 @@ var deserializeAws_restJson1ReservedInstance = function (output, context) {
|
|
|
5311
5192
|
InstanceCount: __expectInt32(output.InstanceCount),
|
|
5312
5193
|
InstanceType: __expectString(output.InstanceType),
|
|
5313
5194
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5314
|
-
RecurringCharges: output.RecurringCharges
|
|
5195
|
+
RecurringCharges: output.RecurringCharges != null
|
|
5315
5196
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
5316
5197
|
: undefined,
|
|
5317
5198
|
ReservationName: __expectString(output.ReservationName),
|
|
5318
5199
|
ReservedInstanceId: __expectString(output.ReservedInstanceId),
|
|
5319
5200
|
ReservedInstanceOfferingId: __expectString(output.ReservedInstanceOfferingId),
|
|
5320
|
-
StartTime: output.StartTime
|
|
5321
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
5322
|
-
: undefined,
|
|
5201
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
5323
5202
|
State: __expectString(output.State),
|
|
5324
5203
|
UsagePrice: __limitedParseDouble(output.UsagePrice),
|
|
5325
5204
|
};
|
|
@@ -5342,7 +5221,7 @@ var deserializeAws_restJson1ReservedInstanceOffering = function (output, context
|
|
|
5342
5221
|
FixedPrice: __limitedParseDouble(output.FixedPrice),
|
|
5343
5222
|
InstanceType: __expectString(output.InstanceType),
|
|
5344
5223
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5345
|
-
RecurringCharges: output.RecurringCharges
|
|
5224
|
+
RecurringCharges: output.RecurringCharges != null
|
|
5346
5225
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
5347
5226
|
: undefined,
|
|
5348
5227
|
ReservedInstanceOfferingId: __expectString(output.ReservedInstanceOfferingId),
|
|
@@ -5369,9 +5248,7 @@ var deserializeAws_restJson1SAMLIdp = function (output, context) {
|
|
|
5369
5248
|
var deserializeAws_restJson1SAMLOptionsOutput = function (output, context) {
|
|
5370
5249
|
return {
|
|
5371
5250
|
Enabled: __expectBoolean(output.Enabled),
|
|
5372
|
-
Idp: output.Idp
|
|
5373
|
-
? deserializeAws_restJson1SAMLIdp(output.Idp, context)
|
|
5374
|
-
: undefined,
|
|
5251
|
+
Idp: output.Idp != null ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined,
|
|
5375
5252
|
RolesKey: __expectString(output.RolesKey),
|
|
5376
5253
|
SessionTimeoutMinutes: __expectInt32(output.SessionTimeoutMinutes),
|
|
5377
5254
|
SubjectKey: __expectString(output.SubjectKey),
|
|
@@ -5381,15 +5258,13 @@ var deserializeAws_restJson1ScheduledAutoTuneDetails = function (output, context
|
|
|
5381
5258
|
return {
|
|
5382
5259
|
Action: __expectString(output.Action),
|
|
5383
5260
|
ActionType: __expectString(output.ActionType),
|
|
5384
|
-
Date: output.Date
|
|
5385
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date)))
|
|
5386
|
-
: undefined,
|
|
5261
|
+
Date: output.Date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date))) : undefined,
|
|
5387
5262
|
Severity: __expectString(output.Severity),
|
|
5388
5263
|
};
|
|
5389
5264
|
};
|
|
5390
5265
|
var deserializeAws_restJson1ServiceSoftwareOptions = function (output, context) {
|
|
5391
5266
|
return {
|
|
5392
|
-
AutomatedUpdateDate: output.AutomatedUpdateDate
|
|
5267
|
+
AutomatedUpdateDate: output.AutomatedUpdateDate != null
|
|
5393
5268
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutomatedUpdateDate)))
|
|
5394
5269
|
: undefined,
|
|
5395
5270
|
Cancellable: __expectBoolean(output.Cancellable),
|
|
@@ -5408,18 +5283,14 @@ var deserializeAws_restJson1SnapshotOptions = function (output, context) {
|
|
|
5408
5283
|
};
|
|
5409
5284
|
var deserializeAws_restJson1SnapshotOptionsStatus = function (output, context) {
|
|
5410
5285
|
return {
|
|
5411
|
-
Options: output.Options
|
|
5412
|
-
|
|
5413
|
-
: undefined,
|
|
5414
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5415
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5416
|
-
: undefined,
|
|
5286
|
+
Options: output.Options != null ? deserializeAws_restJson1SnapshotOptions(output.Options, context) : undefined,
|
|
5287
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5417
5288
|
};
|
|
5418
5289
|
};
|
|
5419
5290
|
var deserializeAws_restJson1StorageType = function (output, context) {
|
|
5420
5291
|
return {
|
|
5421
5292
|
StorageSubTypeName: __expectString(output.StorageSubTypeName),
|
|
5422
|
-
StorageTypeLimits: output.StorageTypeLimits
|
|
5293
|
+
StorageTypeLimits: output.StorageTypeLimits != null
|
|
5423
5294
|
? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
|
|
5424
5295
|
: undefined,
|
|
5425
5296
|
StorageTypeName: __expectString(output.StorageTypeName),
|
|
@@ -5428,9 +5299,7 @@ var deserializeAws_restJson1StorageType = function (output, context) {
|
|
|
5428
5299
|
var deserializeAws_restJson1StorageTypeLimit = function (output, context) {
|
|
5429
5300
|
return {
|
|
5430
5301
|
LimitName: __expectString(output.LimitName),
|
|
5431
|
-
LimitValues: output.LimitValues
|
|
5432
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
5433
|
-
: undefined,
|
|
5302
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
5434
5303
|
};
|
|
5435
5304
|
};
|
|
5436
5305
|
var deserializeAws_restJson1StorageTypeLimitList = function (output, context) {
|
|
@@ -5485,12 +5354,10 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
5485
5354
|
};
|
|
5486
5355
|
var deserializeAws_restJson1UpgradeHistory = function (output, context) {
|
|
5487
5356
|
return {
|
|
5488
|
-
StartTimestamp: output.StartTimestamp
|
|
5357
|
+
StartTimestamp: output.StartTimestamp != null
|
|
5489
5358
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTimestamp)))
|
|
5490
5359
|
: undefined,
|
|
5491
|
-
StepsList: output.StepsList
|
|
5492
|
-
? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
|
|
5493
|
-
: undefined,
|
|
5360
|
+
StepsList: output.StepsList != null ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context) : undefined,
|
|
5494
5361
|
UpgradeName: __expectString(output.UpgradeName),
|
|
5495
5362
|
UpgradeStatus: __expectString(output.UpgradeStatus),
|
|
5496
5363
|
};
|
|
@@ -5508,9 +5375,7 @@ var deserializeAws_restJson1UpgradeHistoryList = function (output, context) {
|
|
|
5508
5375
|
};
|
|
5509
5376
|
var deserializeAws_restJson1UpgradeStepItem = function (output, context) {
|
|
5510
5377
|
return {
|
|
5511
|
-
Issues: output.Issues
|
|
5512
|
-
? deserializeAws_restJson1Issues(output.Issues, context)
|
|
5513
|
-
: undefined,
|
|
5378
|
+
Issues: output.Issues != null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined,
|
|
5514
5379
|
ProgressPercent: __limitedParseDouble(output.ProgressPercent),
|
|
5515
5380
|
UpgradeStep: __expectString(output.UpgradeStep),
|
|
5516
5381
|
UpgradeStepStatus: __expectString(output.UpgradeStepStatus),
|
|
@@ -5541,33 +5406,25 @@ var deserializeAws_restJson1VersionList = function (output, context) {
|
|
|
5541
5406
|
var deserializeAws_restJson1VersionStatus = function (output, context) {
|
|
5542
5407
|
return {
|
|
5543
5408
|
Options: __expectString(output.Options),
|
|
5544
|
-
Status: output.Status
|
|
5545
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5546
|
-
: undefined,
|
|
5409
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5547
5410
|
};
|
|
5548
5411
|
};
|
|
5549
5412
|
var deserializeAws_restJson1VPCDerivedInfo = function (output, context) {
|
|
5550
5413
|
return {
|
|
5551
|
-
AvailabilityZones: output.AvailabilityZones
|
|
5414
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
5552
5415
|
? deserializeAws_restJson1StringList(output.AvailabilityZones, context)
|
|
5553
5416
|
: undefined,
|
|
5554
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
5417
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
5555
5418
|
? deserializeAws_restJson1StringList(output.SecurityGroupIds, context)
|
|
5556
5419
|
: undefined,
|
|
5557
|
-
SubnetIds: output.SubnetIds
|
|
5558
|
-
? deserializeAws_restJson1StringList(output.SubnetIds, context)
|
|
5559
|
-
: undefined,
|
|
5420
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1StringList(output.SubnetIds, context) : undefined,
|
|
5560
5421
|
VPCId: __expectString(output.VPCId),
|
|
5561
5422
|
};
|
|
5562
5423
|
};
|
|
5563
5424
|
var deserializeAws_restJson1VPCDerivedInfoStatus = function (output, context) {
|
|
5564
5425
|
return {
|
|
5565
|
-
Options: output.Options
|
|
5566
|
-
|
|
5567
|
-
: undefined,
|
|
5568
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5569
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
5570
|
-
: undefined,
|
|
5426
|
+
Options: output.Options != null ? deserializeAws_restJson1VPCDerivedInfo(output.Options, context) : undefined,
|
|
5427
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
5571
5428
|
};
|
|
5572
5429
|
};
|
|
5573
5430
|
var deserializeAws_restJson1ZoneAwarenessConfig = function (output, context) {
|
|
@@ -5631,5 +5488,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5631
5488
|
if (data["__type"] !== undefined) {
|
|
5632
5489
|
return sanitizeErrorCode(data["__type"]);
|
|
5633
5490
|
}
|
|
5634
|
-
return "";
|
|
5635
5491
|
};
|