@aws-sdk/client-opensearch 3.118.1 → 3.128.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
|
@@ -41,9 +41,8 @@ const serializeAws_restJson1AddTagsCommand = async (input, context) => {
|
|
|
41
41
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/tags";
|
|
42
42
|
let body;
|
|
43
43
|
body = JSON.stringify({
|
|
44
|
-
...(input.ARN
|
|
45
|
-
...(input.TagList
|
|
46
|
-
input.TagList !== null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
|
|
44
|
+
...(input.ARN != null && { ARN: input.ARN }),
|
|
45
|
+
...(input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
|
|
47
46
|
});
|
|
48
47
|
return new protocol_http_1.HttpRequest({
|
|
49
48
|
protocol,
|
|
@@ -102,7 +101,7 @@ const serializeAws_restJson1CancelServiceSoftwareUpdateCommand = async (input, c
|
|
|
102
101
|
"/2021-01-01/opensearch/serviceSoftwareUpdate/cancel";
|
|
103
102
|
let body;
|
|
104
103
|
body = JSON.stringify({
|
|
105
|
-
...(input.DomainName
|
|
104
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
106
105
|
});
|
|
107
106
|
return new protocol_http_1.HttpRequest({
|
|
108
107
|
protocol,
|
|
@@ -123,56 +122,42 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
123
122
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/domain";
|
|
124
123
|
let body;
|
|
125
124
|
body = JSON.stringify({
|
|
126
|
-
...(input.AccessPolicies
|
|
127
|
-
|
|
128
|
-
...(input.AdvancedOptions !== undefined &&
|
|
129
|
-
input.AdvancedOptions !== null && {
|
|
125
|
+
...(input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies }),
|
|
126
|
+
...(input.AdvancedOptions != null && {
|
|
130
127
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
131
128
|
}),
|
|
132
|
-
...(input.AdvancedSecurityOptions
|
|
133
|
-
input.AdvancedSecurityOptions !== null && {
|
|
129
|
+
...(input.AdvancedSecurityOptions != null && {
|
|
134
130
|
AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
|
|
135
131
|
}),
|
|
136
|
-
...(input.AutoTuneOptions
|
|
137
|
-
input.AutoTuneOptions !== null && {
|
|
132
|
+
...(input.AutoTuneOptions != null && {
|
|
138
133
|
AutoTuneOptions: serializeAws_restJson1AutoTuneOptionsInput(input.AutoTuneOptions, context),
|
|
139
134
|
}),
|
|
140
|
-
...(input.ClusterConfig
|
|
141
|
-
input.ClusterConfig !== null && {
|
|
135
|
+
...(input.ClusterConfig != null && {
|
|
142
136
|
ClusterConfig: serializeAws_restJson1ClusterConfig(input.ClusterConfig, context),
|
|
143
137
|
}),
|
|
144
|
-
...(input.CognitoOptions
|
|
145
|
-
input.CognitoOptions !== null && {
|
|
138
|
+
...(input.CognitoOptions != null && {
|
|
146
139
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
147
140
|
}),
|
|
148
|
-
...(input.DomainEndpointOptions
|
|
149
|
-
input.DomainEndpointOptions !== null && {
|
|
141
|
+
...(input.DomainEndpointOptions != null && {
|
|
150
142
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
151
143
|
}),
|
|
152
|
-
...(input.DomainName
|
|
153
|
-
...(input.EBSOptions
|
|
154
|
-
|
|
155
|
-
...(input.EncryptionAtRestOptions !== undefined &&
|
|
156
|
-
input.EncryptionAtRestOptions !== null && {
|
|
144
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
145
|
+
...(input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
|
|
146
|
+
...(input.EncryptionAtRestOptions != null && {
|
|
157
147
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
158
148
|
}),
|
|
159
|
-
...(input.EngineVersion
|
|
160
|
-
...(input.LogPublishingOptions
|
|
161
|
-
input.LogPublishingOptions !== null && {
|
|
149
|
+
...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
|
|
150
|
+
...(input.LogPublishingOptions != null && {
|
|
162
151
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
163
152
|
}),
|
|
164
|
-
...(input.NodeToNodeEncryptionOptions
|
|
165
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
153
|
+
...(input.NodeToNodeEncryptionOptions != null && {
|
|
166
154
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
167
155
|
}),
|
|
168
|
-
...(input.SnapshotOptions
|
|
169
|
-
input.SnapshotOptions !== null && {
|
|
156
|
+
...(input.SnapshotOptions != null && {
|
|
170
157
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
171
158
|
}),
|
|
172
|
-
...(input.TagList
|
|
173
|
-
|
|
174
|
-
...(input.VPCOptions !== undefined &&
|
|
175
|
-
input.VPCOptions !== null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
|
|
159
|
+
...(input.TagList != null && { TagList: serializeAws_restJson1TagList(input.TagList, context) }),
|
|
160
|
+
...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
|
|
176
161
|
});
|
|
177
162
|
return new protocol_http_1.HttpRequest({
|
|
178
163
|
protocol,
|
|
@@ -194,14 +179,11 @@ const serializeAws_restJson1CreateOutboundConnectionCommand = async (input, cont
|
|
|
194
179
|
"/2021-01-01/opensearch/cc/outboundConnection";
|
|
195
180
|
let body;
|
|
196
181
|
body = JSON.stringify({
|
|
197
|
-
...(input.ConnectionAlias
|
|
198
|
-
|
|
199
|
-
...(input.LocalDomainInfo !== undefined &&
|
|
200
|
-
input.LocalDomainInfo !== null && {
|
|
182
|
+
...(input.ConnectionAlias != null && { ConnectionAlias: input.ConnectionAlias }),
|
|
183
|
+
...(input.LocalDomainInfo != null && {
|
|
201
184
|
LocalDomainInfo: serializeAws_restJson1DomainInformationContainer(input.LocalDomainInfo, context),
|
|
202
185
|
}),
|
|
203
|
-
...(input.RemoteDomainInfo
|
|
204
|
-
input.RemoteDomainInfo !== null && {
|
|
186
|
+
...(input.RemoteDomainInfo != null && {
|
|
205
187
|
RemoteDomainInfo: serializeAws_restJson1DomainInformationContainer(input.RemoteDomainInfo, context),
|
|
206
188
|
}),
|
|
207
189
|
});
|
|
@@ -224,14 +206,12 @@ const serializeAws_restJson1CreatePackageCommand = async (input, context) => {
|
|
|
224
206
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages";
|
|
225
207
|
let body;
|
|
226
208
|
body = JSON.stringify({
|
|
227
|
-
...(input.PackageDescription
|
|
228
|
-
|
|
229
|
-
...(input.
|
|
230
|
-
...(input.PackageSource !== undefined &&
|
|
231
|
-
input.PackageSource !== null && {
|
|
209
|
+
...(input.PackageDescription != null && { PackageDescription: input.PackageDescription }),
|
|
210
|
+
...(input.PackageName != null && { PackageName: input.PackageName }),
|
|
211
|
+
...(input.PackageSource != null && {
|
|
232
212
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
233
213
|
}),
|
|
234
|
-
...(input.PackageType
|
|
214
|
+
...(input.PackageType != null && { PackageType: input.PackageType }),
|
|
235
215
|
});
|
|
236
216
|
return new protocol_http_1.HttpRequest({
|
|
237
217
|
protocol,
|
|
@@ -397,8 +377,8 @@ const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, conte
|
|
|
397
377
|
}
|
|
398
378
|
let body;
|
|
399
379
|
body = JSON.stringify({
|
|
400
|
-
...(input.MaxResults
|
|
401
|
-
...(input.NextToken
|
|
380
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
381
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
402
382
|
});
|
|
403
383
|
return new protocol_http_1.HttpRequest({
|
|
404
384
|
protocol,
|
|
@@ -477,8 +457,7 @@ const serializeAws_restJson1DescribeDomainsCommand = async (input, context) => {
|
|
|
477
457
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/domain-info";
|
|
478
458
|
let body;
|
|
479
459
|
body = JSON.stringify({
|
|
480
|
-
...(input.DomainNames
|
|
481
|
-
input.DomainNames !== null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) }),
|
|
460
|
+
...(input.DomainNames != null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) }),
|
|
482
461
|
});
|
|
483
462
|
return new protocol_http_1.HttpRequest({
|
|
484
463
|
protocol,
|
|
@@ -500,10 +479,9 @@ const serializeAws_restJson1DescribeInboundConnectionsCommand = async (input, co
|
|
|
500
479
|
"/2021-01-01/opensearch/cc/inboundConnection/search";
|
|
501
480
|
let body;
|
|
502
481
|
body = JSON.stringify({
|
|
503
|
-
...(input.Filters
|
|
504
|
-
|
|
505
|
-
...(input.
|
|
506
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
482
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
483
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
484
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
507
485
|
});
|
|
508
486
|
return new protocol_http_1.HttpRequest({
|
|
509
487
|
protocol,
|
|
@@ -566,10 +544,9 @@ const serializeAws_restJson1DescribeOutboundConnectionsCommand = async (input, c
|
|
|
566
544
|
"/2021-01-01/opensearch/cc/outboundConnection/search";
|
|
567
545
|
let body;
|
|
568
546
|
body = JSON.stringify({
|
|
569
|
-
...(input.Filters
|
|
570
|
-
|
|
571
|
-
...(input.
|
|
572
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
547
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
548
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
549
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
573
550
|
});
|
|
574
551
|
return new protocol_http_1.HttpRequest({
|
|
575
552
|
protocol,
|
|
@@ -590,10 +567,9 @@ const serializeAws_restJson1DescribePackagesCommand = async (input, context) =>
|
|
|
590
567
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/describe";
|
|
591
568
|
let body;
|
|
592
569
|
body = JSON.stringify({
|
|
593
|
-
...(input.Filters
|
|
594
|
-
|
|
595
|
-
...(input.
|
|
596
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
570
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) }),
|
|
571
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
572
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
597
573
|
});
|
|
598
574
|
return new protocol_http_1.HttpRequest({
|
|
599
575
|
protocol,
|
|
@@ -963,11 +939,9 @@ const serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = async (inp
|
|
|
963
939
|
"/2021-01-01/opensearch/purchaseReservedInstanceOffering";
|
|
964
940
|
let body;
|
|
965
941
|
body = JSON.stringify({
|
|
966
|
-
...(input.InstanceCount
|
|
967
|
-
...(input.ReservationName
|
|
968
|
-
|
|
969
|
-
...(input.ReservedInstanceOfferingId !== undefined &&
|
|
970
|
-
input.ReservedInstanceOfferingId !== null && { ReservedInstanceOfferingId: input.ReservedInstanceOfferingId }),
|
|
942
|
+
...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
|
|
943
|
+
...(input.ReservationName != null && { ReservationName: input.ReservationName }),
|
|
944
|
+
...(input.ReservedInstanceOfferingId != null && { ReservedInstanceOfferingId: input.ReservedInstanceOfferingId }),
|
|
971
945
|
});
|
|
972
946
|
return new protocol_http_1.HttpRequest({
|
|
973
947
|
protocol,
|
|
@@ -1015,9 +989,8 @@ const serializeAws_restJson1RemoveTagsCommand = async (input, context) => {
|
|
|
1015
989
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/tags-removal";
|
|
1016
990
|
let body;
|
|
1017
991
|
body = JSON.stringify({
|
|
1018
|
-
...(input.ARN
|
|
1019
|
-
...(input.TagKeys
|
|
1020
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) }),
|
|
992
|
+
...(input.ARN != null && { ARN: input.ARN }),
|
|
993
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) }),
|
|
1021
994
|
});
|
|
1022
995
|
return new protocol_http_1.HttpRequest({
|
|
1023
996
|
protocol,
|
|
@@ -1039,7 +1012,7 @@ const serializeAws_restJson1StartServiceSoftwareUpdateCommand = async (input, co
|
|
|
1039
1012
|
"/2021-01-01/opensearch/serviceSoftwareUpdate/start";
|
|
1040
1013
|
let body;
|
|
1041
1014
|
body = JSON.stringify({
|
|
1042
|
-
...(input.DomainName
|
|
1015
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
1043
1016
|
});
|
|
1044
1017
|
return new protocol_http_1.HttpRequest({
|
|
1045
1018
|
protocol,
|
|
@@ -1071,53 +1044,40 @@ const serializeAws_restJson1UpdateDomainConfigCommand = async (input, context) =
|
|
|
1071
1044
|
}
|
|
1072
1045
|
let body;
|
|
1073
1046
|
body = JSON.stringify({
|
|
1074
|
-
...(input.AccessPolicies
|
|
1075
|
-
|
|
1076
|
-
...(input.AdvancedOptions !== undefined &&
|
|
1077
|
-
input.AdvancedOptions !== null && {
|
|
1047
|
+
...(input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies }),
|
|
1048
|
+
...(input.AdvancedOptions != null && {
|
|
1078
1049
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1079
1050
|
}),
|
|
1080
|
-
...(input.AdvancedSecurityOptions
|
|
1081
|
-
input.AdvancedSecurityOptions !== null && {
|
|
1051
|
+
...(input.AdvancedSecurityOptions != null && {
|
|
1082
1052
|
AdvancedSecurityOptions: serializeAws_restJson1AdvancedSecurityOptionsInput(input.AdvancedSecurityOptions, context),
|
|
1083
1053
|
}),
|
|
1084
|
-
...(input.AutoTuneOptions
|
|
1085
|
-
input.AutoTuneOptions !== null && {
|
|
1054
|
+
...(input.AutoTuneOptions != null && {
|
|
1086
1055
|
AutoTuneOptions: serializeAws_restJson1AutoTuneOptions(input.AutoTuneOptions, context),
|
|
1087
1056
|
}),
|
|
1088
|
-
...(input.ClusterConfig
|
|
1089
|
-
input.ClusterConfig !== null && {
|
|
1057
|
+
...(input.ClusterConfig != null && {
|
|
1090
1058
|
ClusterConfig: serializeAws_restJson1ClusterConfig(input.ClusterConfig, context),
|
|
1091
1059
|
}),
|
|
1092
|
-
...(input.CognitoOptions
|
|
1093
|
-
input.CognitoOptions !== null && {
|
|
1060
|
+
...(input.CognitoOptions != null && {
|
|
1094
1061
|
CognitoOptions: serializeAws_restJson1CognitoOptions(input.CognitoOptions, context),
|
|
1095
1062
|
}),
|
|
1096
|
-
...(input.DomainEndpointOptions
|
|
1097
|
-
input.DomainEndpointOptions !== null && {
|
|
1063
|
+
...(input.DomainEndpointOptions != null && {
|
|
1098
1064
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1099
1065
|
}),
|
|
1100
|
-
...(input.DryRun
|
|
1101
|
-
...(input.EBSOptions
|
|
1102
|
-
|
|
1103
|
-
...(input.EncryptionAtRestOptions !== undefined &&
|
|
1104
|
-
input.EncryptionAtRestOptions !== null && {
|
|
1066
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1067
|
+
...(input.EBSOptions != null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
|
|
1068
|
+
...(input.EncryptionAtRestOptions != null && {
|
|
1105
1069
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
1106
1070
|
}),
|
|
1107
|
-
...(input.LogPublishingOptions
|
|
1108
|
-
input.LogPublishingOptions !== null && {
|
|
1071
|
+
...(input.LogPublishingOptions != null && {
|
|
1109
1072
|
LogPublishingOptions: serializeAws_restJson1LogPublishingOptions(input.LogPublishingOptions, context),
|
|
1110
1073
|
}),
|
|
1111
|
-
...(input.NodeToNodeEncryptionOptions
|
|
1112
|
-
input.NodeToNodeEncryptionOptions !== null && {
|
|
1074
|
+
...(input.NodeToNodeEncryptionOptions != null && {
|
|
1113
1075
|
NodeToNodeEncryptionOptions: serializeAws_restJson1NodeToNodeEncryptionOptions(input.NodeToNodeEncryptionOptions, context),
|
|
1114
1076
|
}),
|
|
1115
|
-
...(input.SnapshotOptions
|
|
1116
|
-
input.SnapshotOptions !== null && {
|
|
1077
|
+
...(input.SnapshotOptions != null && {
|
|
1117
1078
|
SnapshotOptions: serializeAws_restJson1SnapshotOptions(input.SnapshotOptions, context),
|
|
1118
1079
|
}),
|
|
1119
|
-
...(input.VPCOptions
|
|
1120
|
-
input.VPCOptions !== null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
|
|
1080
|
+
...(input.VPCOptions != null && { VPCOptions: serializeAws_restJson1VPCOptions(input.VPCOptions, context) }),
|
|
1121
1081
|
});
|
|
1122
1082
|
return new protocol_http_1.HttpRequest({
|
|
1123
1083
|
protocol,
|
|
@@ -1138,12 +1098,10 @@ const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
|
|
|
1138
1098
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/update";
|
|
1139
1099
|
let body;
|
|
1140
1100
|
body = JSON.stringify({
|
|
1141
|
-
...(input.CommitMessage
|
|
1142
|
-
...(input.PackageDescription
|
|
1143
|
-
|
|
1144
|
-
...(input.
|
|
1145
|
-
...(input.PackageSource !== undefined &&
|
|
1146
|
-
input.PackageSource !== null && {
|
|
1101
|
+
...(input.CommitMessage != null && { CommitMessage: input.CommitMessage }),
|
|
1102
|
+
...(input.PackageDescription != null && { PackageDescription: input.PackageDescription }),
|
|
1103
|
+
...(input.PackageID != null && { PackageID: input.PackageID }),
|
|
1104
|
+
...(input.PackageSource != null && {
|
|
1147
1105
|
PackageSource: serializeAws_restJson1PackageSource(input.PackageSource, context),
|
|
1148
1106
|
}),
|
|
1149
1107
|
});
|
|
@@ -1166,14 +1124,12 @@ const serializeAws_restJson1UpgradeDomainCommand = async (input, context) => {
|
|
|
1166
1124
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/upgradeDomain";
|
|
1167
1125
|
let body;
|
|
1168
1126
|
body = JSON.stringify({
|
|
1169
|
-
...(input.AdvancedOptions
|
|
1170
|
-
input.AdvancedOptions !== null && {
|
|
1127
|
+
...(input.AdvancedOptions != null && {
|
|
1171
1128
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1172
1129
|
}),
|
|
1173
|
-
...(input.DomainName
|
|
1174
|
-
...(input.PerformCheckOnly
|
|
1175
|
-
|
|
1176
|
-
...(input.TargetVersion !== undefined && input.TargetVersion !== null && { TargetVersion: input.TargetVersion }),
|
|
1130
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
1131
|
+
...(input.PerformCheckOnly != null && { PerformCheckOnly: input.PerformCheckOnly }),
|
|
1132
|
+
...(input.TargetVersion != null && { TargetVersion: input.TargetVersion }),
|
|
1177
1133
|
});
|
|
1178
1134
|
return new protocol_http_1.HttpRequest({
|
|
1179
1135
|
protocol,
|
|
@@ -1207,8 +1163,7 @@ const deserializeAws_restJson1AcceptInboundConnectionCommandError = async (outpu
|
|
|
1207
1163
|
body: await parseBody(output.body, context),
|
|
1208
1164
|
};
|
|
1209
1165
|
let response;
|
|
1210
|
-
|
|
1211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1167
|
switch (errorCode) {
|
|
1213
1168
|
case "DisabledOperationException":
|
|
1214
1169
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -1221,10 +1176,12 @@ const deserializeAws_restJson1AcceptInboundConnectionCommandError = async (outpu
|
|
|
1221
1176
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1222
1177
|
default:
|
|
1223
1178
|
const parsedBody = parsedOutput.body;
|
|
1179
|
+
const $metadata = deserializeMetadata(output);
|
|
1180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1224
1181
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1226
1183
|
$fault: "client",
|
|
1227
|
-
$metadata
|
|
1184
|
+
$metadata,
|
|
1228
1185
|
});
|
|
1229
1186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1187
|
}
|
|
@@ -1246,8 +1203,7 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
|
|
|
1246
1203
|
body: await parseBody(output.body, context),
|
|
1247
1204
|
};
|
|
1248
1205
|
let response;
|
|
1249
|
-
|
|
1250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
1207
|
switch (errorCode) {
|
|
1252
1208
|
case "BaseException":
|
|
1253
1209
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1263,10 +1219,12 @@ const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
|
|
|
1263
1219
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1264
1220
|
default:
|
|
1265
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
|
+
const $metadata = deserializeMetadata(output);
|
|
1223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1266
1224
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1268
1226
|
$fault: "client",
|
|
1269
|
-
$metadata
|
|
1227
|
+
$metadata,
|
|
1270
1228
|
});
|
|
1271
1229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1272
1230
|
}
|
|
@@ -1292,8 +1250,7 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
|
|
|
1292
1250
|
body: await parseBody(output.body, context),
|
|
1293
1251
|
};
|
|
1294
1252
|
let response;
|
|
1295
|
-
|
|
1296
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1254
|
switch (errorCode) {
|
|
1298
1255
|
case "AccessDeniedException":
|
|
1299
1256
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -1315,10 +1272,12 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
|
|
|
1315
1272
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1316
1273
|
default:
|
|
1317
1274
|
const parsedBody = parsedOutput.body;
|
|
1275
|
+
const $metadata = deserializeMetadata(output);
|
|
1276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1318
1277
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1320
1279
|
$fault: "client",
|
|
1321
|
-
$metadata
|
|
1280
|
+
$metadata,
|
|
1322
1281
|
});
|
|
1323
1282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1324
1283
|
}
|
|
@@ -1344,8 +1303,7 @@ const deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = async (o
|
|
|
1344
1303
|
body: await parseBody(output.body, context),
|
|
1345
1304
|
};
|
|
1346
1305
|
let response;
|
|
1347
|
-
|
|
1348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1307
|
switch (errorCode) {
|
|
1350
1308
|
case "BaseException":
|
|
1351
1309
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1361,10 +1319,12 @@ const deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = async (o
|
|
|
1361
1319
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1362
1320
|
default:
|
|
1363
1321
|
const parsedBody = parsedOutput.body;
|
|
1322
|
+
const $metadata = deserializeMetadata(output);
|
|
1323
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1364
1324
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1325
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1366
1326
|
$fault: "client",
|
|
1367
|
-
$metadata
|
|
1327
|
+
$metadata,
|
|
1368
1328
|
});
|
|
1369
1329
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1370
1330
|
}
|
|
@@ -1390,8 +1350,7 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1390
1350
|
body: await parseBody(output.body, context),
|
|
1391
1351
|
};
|
|
1392
1352
|
let response;
|
|
1393
|
-
|
|
1394
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1354
|
switch (errorCode) {
|
|
1396
1355
|
case "BaseException":
|
|
1397
1356
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1416,10 +1375,12 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1416
1375
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1417
1376
|
default:
|
|
1418
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
|
+
const $metadata = deserializeMetadata(output);
|
|
1379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1419
1380
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1420
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1421
1382
|
$fault: "client",
|
|
1422
|
-
$metadata
|
|
1383
|
+
$metadata,
|
|
1423
1384
|
});
|
|
1424
1385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1386
|
}
|
|
@@ -1461,8 +1422,7 @@ const deserializeAws_restJson1CreateOutboundConnectionCommandError = async (outp
|
|
|
1461
1422
|
body: await parseBody(output.body, context),
|
|
1462
1423
|
};
|
|
1463
1424
|
let response;
|
|
1464
|
-
|
|
1465
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
1426
|
switch (errorCode) {
|
|
1467
1427
|
case "DisabledOperationException":
|
|
1468
1428
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -1478,10 +1438,12 @@ const deserializeAws_restJson1CreateOutboundConnectionCommandError = async (outp
|
|
|
1478
1438
|
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1479
1439
|
default:
|
|
1480
1440
|
const parsedBody = parsedOutput.body;
|
|
1441
|
+
const $metadata = deserializeMetadata(output);
|
|
1442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1481
1443
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1483
1445
|
$fault: "client",
|
|
1484
|
-
$metadata
|
|
1446
|
+
$metadata,
|
|
1485
1447
|
});
|
|
1486
1448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1487
1449
|
}
|
|
@@ -1507,8 +1469,7 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
|
|
|
1507
1469
|
body: await parseBody(output.body, context),
|
|
1508
1470
|
};
|
|
1509
1471
|
let response;
|
|
1510
|
-
|
|
1511
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1473
|
switch (errorCode) {
|
|
1513
1474
|
case "AccessDeniedException":
|
|
1514
1475
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -1533,10 +1494,12 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
|
|
|
1533
1494
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1534
1495
|
default:
|
|
1535
1496
|
const parsedBody = parsedOutput.body;
|
|
1497
|
+
const $metadata = deserializeMetadata(output);
|
|
1498
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1536
1499
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1538
1501
|
$fault: "client",
|
|
1539
|
-
$metadata
|
|
1502
|
+
$metadata,
|
|
1540
1503
|
});
|
|
1541
1504
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1542
1505
|
}
|
|
@@ -1562,8 +1525,7 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1562
1525
|
body: await parseBody(output.body, context),
|
|
1563
1526
|
};
|
|
1564
1527
|
let response;
|
|
1565
|
-
|
|
1566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1529
|
switch (errorCode) {
|
|
1568
1530
|
case "BaseException":
|
|
1569
1531
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1579,10 +1541,12 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1579
1541
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1580
1542
|
default:
|
|
1581
1543
|
const parsedBody = parsedOutput.body;
|
|
1544
|
+
const $metadata = deserializeMetadata(output);
|
|
1545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1582
1546
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1584
1548
|
$fault: "client",
|
|
1585
|
-
$metadata
|
|
1549
|
+
$metadata,
|
|
1586
1550
|
});
|
|
1587
1551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1588
1552
|
}
|
|
@@ -1608,8 +1572,7 @@ const deserializeAws_restJson1DeleteInboundConnectionCommandError = async (outpu
|
|
|
1608
1572
|
body: await parseBody(output.body, context),
|
|
1609
1573
|
};
|
|
1610
1574
|
let response;
|
|
1611
|
-
|
|
1612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1576
|
switch (errorCode) {
|
|
1614
1577
|
case "DisabledOperationException":
|
|
1615
1578
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -1619,10 +1582,12 @@ const deserializeAws_restJson1DeleteInboundConnectionCommandError = async (outpu
|
|
|
1619
1582
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1620
1583
|
default:
|
|
1621
1584
|
const parsedBody = parsedOutput.body;
|
|
1585
|
+
const $metadata = deserializeMetadata(output);
|
|
1586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1622
1587
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1624
1589
|
$fault: "client",
|
|
1625
|
-
$metadata
|
|
1590
|
+
$metadata,
|
|
1626
1591
|
});
|
|
1627
1592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1628
1593
|
}
|
|
@@ -1648,8 +1613,7 @@ const deserializeAws_restJson1DeleteOutboundConnectionCommandError = async (outp
|
|
|
1648
1613
|
body: await parseBody(output.body, context),
|
|
1649
1614
|
};
|
|
1650
1615
|
let response;
|
|
1651
|
-
|
|
1652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1617
|
switch (errorCode) {
|
|
1654
1618
|
case "DisabledOperationException":
|
|
1655
1619
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -1659,10 +1623,12 @@ const deserializeAws_restJson1DeleteOutboundConnectionCommandError = async (outp
|
|
|
1659
1623
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1660
1624
|
default:
|
|
1661
1625
|
const parsedBody = parsedOutput.body;
|
|
1626
|
+
const $metadata = deserializeMetadata(output);
|
|
1627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1662
1628
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1664
1630
|
$fault: "client",
|
|
1665
|
-
$metadata
|
|
1631
|
+
$metadata,
|
|
1666
1632
|
});
|
|
1667
1633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1668
1634
|
}
|
|
@@ -1688,8 +1654,7 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
|
|
|
1688
1654
|
body: await parseBody(output.body, context),
|
|
1689
1655
|
};
|
|
1690
1656
|
let response;
|
|
1691
|
-
|
|
1692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
1658
|
switch (errorCode) {
|
|
1694
1659
|
case "AccessDeniedException":
|
|
1695
1660
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -1711,10 +1676,12 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
|
|
|
1711
1676
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1712
1677
|
default:
|
|
1713
1678
|
const parsedBody = parsedOutput.body;
|
|
1679
|
+
const $metadata = deserializeMetadata(output);
|
|
1680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1714
1681
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1716
1683
|
$fault: "client",
|
|
1717
|
-
$metadata
|
|
1684
|
+
$metadata,
|
|
1718
1685
|
});
|
|
1719
1686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1720
1687
|
}
|
|
@@ -1740,8 +1707,7 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1740
1707
|
body: await parseBody(output.body, context),
|
|
1741
1708
|
};
|
|
1742
1709
|
let response;
|
|
1743
|
-
|
|
1744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1711
|
switch (errorCode) {
|
|
1746
1712
|
case "BaseException":
|
|
1747
1713
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1757,10 +1723,12 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1757
1723
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1758
1724
|
default:
|
|
1759
1725
|
const parsedBody = parsedOutput.body;
|
|
1726
|
+
const $metadata = deserializeMetadata(output);
|
|
1727
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1760
1728
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1729
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1762
1730
|
$fault: "client",
|
|
1763
|
-
$metadata
|
|
1731
|
+
$metadata,
|
|
1764
1732
|
});
|
|
1765
1733
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
1734
|
}
|
|
@@ -1790,8 +1758,7 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
|
|
|
1790
1758
|
body: await parseBody(output.body, context),
|
|
1791
1759
|
};
|
|
1792
1760
|
let response;
|
|
1793
|
-
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1762
|
switch (errorCode) {
|
|
1796
1763
|
case "BaseException":
|
|
1797
1764
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1807,10 +1774,12 @@ const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (outpu
|
|
|
1807
1774
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1808
1775
|
default:
|
|
1809
1776
|
const parsedBody = parsedOutput.body;
|
|
1777
|
+
const $metadata = deserializeMetadata(output);
|
|
1778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1810
1779
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1812
1781
|
$fault: "client",
|
|
1813
|
-
$metadata
|
|
1782
|
+
$metadata,
|
|
1814
1783
|
});
|
|
1815
1784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1785
|
}
|
|
@@ -1836,8 +1805,7 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
|
|
|
1836
1805
|
body: await parseBody(output.body, context),
|
|
1837
1806
|
};
|
|
1838
1807
|
let response;
|
|
1839
|
-
|
|
1840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1809
|
switch (errorCode) {
|
|
1842
1810
|
case "BaseException":
|
|
1843
1811
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1853,10 +1821,12 @@ const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (
|
|
|
1853
1821
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1854
1822
|
default:
|
|
1855
1823
|
const parsedBody = parsedOutput.body;
|
|
1824
|
+
const $metadata = deserializeMetadata(output);
|
|
1825
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1856
1826
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1858
1828
|
$fault: "client",
|
|
1859
|
-
$metadata
|
|
1829
|
+
$metadata,
|
|
1860
1830
|
});
|
|
1861
1831
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1862
1832
|
}
|
|
@@ -1882,8 +1852,7 @@ const deserializeAws_restJson1DescribeDomainConfigCommandError = async (output,
|
|
|
1882
1852
|
body: await parseBody(output.body, context),
|
|
1883
1853
|
};
|
|
1884
1854
|
let response;
|
|
1885
|
-
|
|
1886
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
1856
|
switch (errorCode) {
|
|
1888
1857
|
case "BaseException":
|
|
1889
1858
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1899,10 +1868,12 @@ const deserializeAws_restJson1DescribeDomainConfigCommandError = async (output,
|
|
|
1899
1868
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1900
1869
|
default:
|
|
1901
1870
|
const parsedBody = parsedOutput.body;
|
|
1871
|
+
const $metadata = deserializeMetadata(output);
|
|
1872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1902
1873
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1903
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1904
1875
|
$fault: "client",
|
|
1905
|
-
$metadata
|
|
1876
|
+
$metadata,
|
|
1906
1877
|
});
|
|
1907
1878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1908
1879
|
}
|
|
@@ -1928,8 +1899,7 @@ const deserializeAws_restJson1DescribeDomainsCommandError = async (output, conte
|
|
|
1928
1899
|
body: await parseBody(output.body, context),
|
|
1929
1900
|
};
|
|
1930
1901
|
let response;
|
|
1931
|
-
|
|
1932
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
1903
|
switch (errorCode) {
|
|
1934
1904
|
case "BaseException":
|
|
1935
1905
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -1942,10 +1912,12 @@ const deserializeAws_restJson1DescribeDomainsCommandError = async (output, conte
|
|
|
1942
1912
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1943
1913
|
default:
|
|
1944
1914
|
const parsedBody = parsedOutput.body;
|
|
1915
|
+
const $metadata = deserializeMetadata(output);
|
|
1916
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1945
1917
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1947
1919
|
$fault: "client",
|
|
1948
|
-
$metadata
|
|
1920
|
+
$metadata,
|
|
1949
1921
|
});
|
|
1950
1922
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1951
1923
|
}
|
|
@@ -1975,8 +1947,7 @@ const deserializeAws_restJson1DescribeInboundConnectionsCommandError = async (ou
|
|
|
1975
1947
|
body: await parseBody(output.body, context),
|
|
1976
1948
|
};
|
|
1977
1949
|
let response;
|
|
1978
|
-
|
|
1979
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
1951
|
switch (errorCode) {
|
|
1981
1952
|
case "DisabledOperationException":
|
|
1982
1953
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -1986,10 +1957,12 @@ const deserializeAws_restJson1DescribeInboundConnectionsCommandError = async (ou
|
|
|
1986
1957
|
throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1987
1958
|
default:
|
|
1988
1959
|
const parsedBody = parsedOutput.body;
|
|
1960
|
+
const $metadata = deserializeMetadata(output);
|
|
1961
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1989
1962
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
1990
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1963
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1991
1964
|
$fault: "client",
|
|
1992
|
-
$metadata
|
|
1965
|
+
$metadata,
|
|
1993
1966
|
});
|
|
1994
1967
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1995
1968
|
}
|
|
@@ -2015,8 +1988,7 @@ const deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = async (ou
|
|
|
2015
1988
|
body: await parseBody(output.body, context),
|
|
2016
1989
|
};
|
|
2017
1990
|
let response;
|
|
2018
|
-
|
|
2019
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
1992
|
switch (errorCode) {
|
|
2021
1993
|
case "BaseException":
|
|
2022
1994
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2038,10 +2010,12 @@ const deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = async (ou
|
|
|
2038
2010
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2039
2011
|
default:
|
|
2040
2012
|
const parsedBody = parsedOutput.body;
|
|
2013
|
+
const $metadata = deserializeMetadata(output);
|
|
2014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2041
2015
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2042
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2043
2017
|
$fault: "client",
|
|
2044
|
-
$metadata
|
|
2018
|
+
$metadata,
|
|
2045
2019
|
});
|
|
2046
2020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2047
2021
|
}
|
|
@@ -2071,8 +2045,7 @@ const deserializeAws_restJson1DescribeOutboundConnectionsCommandError = async (o
|
|
|
2071
2045
|
body: await parseBody(output.body, context),
|
|
2072
2046
|
};
|
|
2073
2047
|
let response;
|
|
2074
|
-
|
|
2075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
2049
|
switch (errorCode) {
|
|
2077
2050
|
case "DisabledOperationException":
|
|
2078
2051
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -2082,10 +2055,12 @@ const deserializeAws_restJson1DescribeOutboundConnectionsCommandError = async (o
|
|
|
2082
2055
|
throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
2083
2056
|
default:
|
|
2084
2057
|
const parsedBody = parsedOutput.body;
|
|
2058
|
+
const $metadata = deserializeMetadata(output);
|
|
2059
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2085
2060
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2087
2062
|
$fault: "client",
|
|
2088
|
-
$metadata
|
|
2063
|
+
$metadata,
|
|
2089
2064
|
});
|
|
2090
2065
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2091
2066
|
}
|
|
@@ -2115,8 +2090,7 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
|
|
|
2115
2090
|
body: await parseBody(output.body, context),
|
|
2116
2091
|
};
|
|
2117
2092
|
let response;
|
|
2118
|
-
|
|
2119
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
2094
|
switch (errorCode) {
|
|
2121
2095
|
case "AccessDeniedException":
|
|
2122
2096
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -2135,10 +2109,12 @@ const deserializeAws_restJson1DescribePackagesCommandError = async (output, cont
|
|
|
2135
2109
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2136
2110
|
default:
|
|
2137
2111
|
const parsedBody = parsedOutput.body;
|
|
2112
|
+
const $metadata = deserializeMetadata(output);
|
|
2113
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2138
2114
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2140
2116
|
$fault: "client",
|
|
2141
|
-
$metadata
|
|
2117
|
+
$metadata,
|
|
2142
2118
|
});
|
|
2143
2119
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2144
2120
|
}
|
|
@@ -2168,8 +2144,7 @@ const deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = as
|
|
|
2168
2144
|
body: await parseBody(output.body, context),
|
|
2169
2145
|
};
|
|
2170
2146
|
let response;
|
|
2171
|
-
|
|
2172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2148
|
switch (errorCode) {
|
|
2174
2149
|
case "DisabledOperationException":
|
|
2175
2150
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -2185,10 +2160,12 @@ const deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = as
|
|
|
2185
2160
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2186
2161
|
default:
|
|
2187
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2188
2165
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2190
2167
|
$fault: "client",
|
|
2191
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2192
2169
|
});
|
|
2193
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2194
2171
|
}
|
|
@@ -2218,8 +2195,7 @@ const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (out
|
|
|
2218
2195
|
body: await parseBody(output.body, context),
|
|
2219
2196
|
};
|
|
2220
2197
|
let response;
|
|
2221
|
-
|
|
2222
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
2199
|
switch (errorCode) {
|
|
2224
2200
|
case "DisabledOperationException":
|
|
2225
2201
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -2235,10 +2211,12 @@ const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (out
|
|
|
2235
2211
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2236
2212
|
default:
|
|
2237
2213
|
const parsedBody = parsedOutput.body;
|
|
2214
|
+
const $metadata = deserializeMetadata(output);
|
|
2215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2238
2216
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2240
2218
|
$fault: "client",
|
|
2241
|
-
$metadata
|
|
2219
|
+
$metadata,
|
|
2242
2220
|
});
|
|
2243
2221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2244
2222
|
}
|
|
@@ -2264,8 +2242,7 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
|
|
|
2264
2242
|
body: await parseBody(output.body, context),
|
|
2265
2243
|
};
|
|
2266
2244
|
let response;
|
|
2267
|
-
|
|
2268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2246
|
switch (errorCode) {
|
|
2270
2247
|
case "AccessDeniedException":
|
|
2271
2248
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -2287,10 +2264,12 @@ const deserializeAws_restJson1DissociatePackageCommandError = async (output, con
|
|
|
2287
2264
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2288
2265
|
default:
|
|
2289
2266
|
const parsedBody = parsedOutput.body;
|
|
2267
|
+
const $metadata = deserializeMetadata(output);
|
|
2268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2269
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2271
|
$fault: "client",
|
|
2293
|
-
$metadata
|
|
2272
|
+
$metadata,
|
|
2294
2273
|
});
|
|
2295
2274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2275
|
}
|
|
@@ -2316,8 +2295,7 @@ const deserializeAws_restJson1GetCompatibleVersionsCommandError = async (output,
|
|
|
2316
2295
|
body: await parseBody(output.body, context),
|
|
2317
2296
|
};
|
|
2318
2297
|
let response;
|
|
2319
|
-
|
|
2320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
2299
|
switch (errorCode) {
|
|
2322
2300
|
case "BaseException":
|
|
2323
2301
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2336,10 +2314,12 @@ const deserializeAws_restJson1GetCompatibleVersionsCommandError = async (output,
|
|
|
2336
2314
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2337
2315
|
default:
|
|
2338
2316
|
const parsedBody = parsedOutput.body;
|
|
2317
|
+
const $metadata = deserializeMetadata(output);
|
|
2318
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2339
2319
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2320
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2341
2321
|
$fault: "client",
|
|
2342
|
-
$metadata
|
|
2322
|
+
$metadata,
|
|
2343
2323
|
});
|
|
2344
2324
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2345
2325
|
}
|
|
@@ -2373,8 +2353,7 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
|
|
|
2373
2353
|
body: await parseBody(output.body, context),
|
|
2374
2354
|
};
|
|
2375
2355
|
let response;
|
|
2376
|
-
|
|
2377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
2357
|
switch (errorCode) {
|
|
2379
2358
|
case "AccessDeniedException":
|
|
2380
2359
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -2393,10 +2372,12 @@ const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (outp
|
|
|
2393
2372
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2394
2373
|
default:
|
|
2395
2374
|
const parsedBody = parsedOutput.body;
|
|
2375
|
+
const $metadata = deserializeMetadata(output);
|
|
2376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2396
2377
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2398
2379
|
$fault: "client",
|
|
2399
|
-
$metadata
|
|
2380
|
+
$metadata,
|
|
2400
2381
|
});
|
|
2401
2382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2402
2383
|
}
|
|
@@ -2426,8 +2407,7 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
|
|
|
2426
2407
|
body: await parseBody(output.body, context),
|
|
2427
2408
|
};
|
|
2428
2409
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
2411
|
switch (errorCode) {
|
|
2432
2412
|
case "BaseException":
|
|
2433
2413
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2446,10 +2426,12 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
|
|
|
2446
2426
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2447
2427
|
default:
|
|
2448
2428
|
const parsedBody = parsedOutput.body;
|
|
2429
|
+
const $metadata = deserializeMetadata(output);
|
|
2430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2449
2431
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2451
2433
|
$fault: "client",
|
|
2452
|
-
$metadata
|
|
2434
|
+
$metadata,
|
|
2453
2435
|
});
|
|
2454
2436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2455
2437
|
}
|
|
@@ -2483,8 +2465,7 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
|
|
|
2483
2465
|
body: await parseBody(output.body, context),
|
|
2484
2466
|
};
|
|
2485
2467
|
let response;
|
|
2486
|
-
|
|
2487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2469
|
switch (errorCode) {
|
|
2489
2470
|
case "BaseException":
|
|
2490
2471
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2503,10 +2484,12 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
|
|
|
2503
2484
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2504
2485
|
default:
|
|
2505
2486
|
const parsedBody = parsedOutput.body;
|
|
2487
|
+
const $metadata = deserializeMetadata(output);
|
|
2488
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2506
2489
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2508
2491
|
$fault: "client",
|
|
2509
|
-
$metadata
|
|
2492
|
+
$metadata,
|
|
2510
2493
|
});
|
|
2511
2494
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2512
2495
|
}
|
|
@@ -2532,8 +2515,7 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
2532
2515
|
body: await parseBody(output.body, context),
|
|
2533
2516
|
};
|
|
2534
2517
|
let response;
|
|
2535
|
-
|
|
2536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2537
2519
|
switch (errorCode) {
|
|
2538
2520
|
case "BaseException":
|
|
2539
2521
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2543,10 +2525,12 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
2543
2525
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2544
2526
|
default:
|
|
2545
2527
|
const parsedBody = parsedOutput.body;
|
|
2528
|
+
const $metadata = deserializeMetadata(output);
|
|
2529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2546
2530
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2548
2532
|
$fault: "client",
|
|
2549
|
-
$metadata
|
|
2533
|
+
$metadata,
|
|
2550
2534
|
});
|
|
2551
2535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2552
2536
|
}
|
|
@@ -2576,8 +2560,7 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
|
|
|
2576
2560
|
body: await parseBody(output.body, context),
|
|
2577
2561
|
};
|
|
2578
2562
|
let response;
|
|
2579
|
-
|
|
2580
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2581
2564
|
switch (errorCode) {
|
|
2582
2565
|
case "AccessDeniedException":
|
|
2583
2566
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -2596,10 +2579,12 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
|
|
|
2596
2579
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2597
2580
|
default:
|
|
2598
2581
|
const parsedBody = parsedOutput.body;
|
|
2582
|
+
const $metadata = deserializeMetadata(output);
|
|
2583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2599
2584
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2601
2586
|
$fault: "client",
|
|
2602
|
-
$metadata
|
|
2587
|
+
$metadata,
|
|
2603
2588
|
});
|
|
2604
2589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2605
2590
|
}
|
|
@@ -2629,8 +2614,7 @@ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (outpu
|
|
|
2629
2614
|
body: await parseBody(output.body, context),
|
|
2630
2615
|
};
|
|
2631
2616
|
let response;
|
|
2632
|
-
|
|
2633
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2634
2618
|
switch (errorCode) {
|
|
2635
2619
|
case "BaseException":
|
|
2636
2620
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2646,10 +2630,12 @@ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (outpu
|
|
|
2646
2630
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2647
2631
|
default:
|
|
2648
2632
|
const parsedBody = parsedOutput.body;
|
|
2633
|
+
const $metadata = deserializeMetadata(output);
|
|
2634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2649
2635
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2650
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2651
2637
|
$fault: "client",
|
|
2652
|
-
$metadata
|
|
2638
|
+
$metadata,
|
|
2653
2639
|
});
|
|
2654
2640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2655
2641
|
}
|
|
@@ -2679,8 +2665,7 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
|
|
|
2679
2665
|
body: await parseBody(output.body, context),
|
|
2680
2666
|
};
|
|
2681
2667
|
let response;
|
|
2682
|
-
|
|
2683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
2669
|
switch (errorCode) {
|
|
2685
2670
|
case "AccessDeniedException":
|
|
2686
2671
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -2699,10 +2684,12 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
|
|
|
2699
2684
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2700
2685
|
default:
|
|
2701
2686
|
const parsedBody = parsedOutput.body;
|
|
2687
|
+
const $metadata = deserializeMetadata(output);
|
|
2688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2702
2689
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2703
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2704
2691
|
$fault: "client",
|
|
2705
|
-
$metadata
|
|
2692
|
+
$metadata,
|
|
2706
2693
|
});
|
|
2707
2694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2708
2695
|
}
|
|
@@ -2728,8 +2715,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
2728
2715
|
body: await parseBody(output.body, context),
|
|
2729
2716
|
};
|
|
2730
2717
|
let response;
|
|
2731
|
-
|
|
2732
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2718
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
2719
|
switch (errorCode) {
|
|
2734
2720
|
case "BaseException":
|
|
2735
2721
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2745,10 +2731,12 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
2745
2731
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2746
2732
|
default:
|
|
2747
2733
|
const parsedBody = parsedOutput.body;
|
|
2734
|
+
const $metadata = deserializeMetadata(output);
|
|
2735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2748
2736
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2749
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2750
2738
|
$fault: "client",
|
|
2751
|
-
$metadata
|
|
2739
|
+
$metadata,
|
|
2752
2740
|
});
|
|
2753
2741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2754
2742
|
}
|
|
@@ -2778,8 +2766,7 @@ const deserializeAws_restJson1ListVersionsCommandError = async (output, context)
|
|
|
2778
2766
|
body: await parseBody(output.body, context),
|
|
2779
2767
|
};
|
|
2780
2768
|
let response;
|
|
2781
|
-
|
|
2782
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
2770
|
switch (errorCode) {
|
|
2784
2771
|
case "BaseException":
|
|
2785
2772
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2795,10 +2782,12 @@ const deserializeAws_restJson1ListVersionsCommandError = async (output, context)
|
|
|
2795
2782
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2796
2783
|
default:
|
|
2797
2784
|
const parsedBody = parsedOutput.body;
|
|
2785
|
+
const $metadata = deserializeMetadata(output);
|
|
2786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2798
2787
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2799
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2800
2789
|
$fault: "client",
|
|
2801
|
-
$metadata
|
|
2790
|
+
$metadata,
|
|
2802
2791
|
});
|
|
2803
2792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2804
2793
|
}
|
|
@@ -2828,8 +2817,7 @@ const deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = asy
|
|
|
2828
2817
|
body: await parseBody(output.body, context),
|
|
2829
2818
|
};
|
|
2830
2819
|
let response;
|
|
2831
|
-
|
|
2832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
2821
|
switch (errorCode) {
|
|
2834
2822
|
case "DisabledOperationException":
|
|
2835
2823
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -2851,10 +2839,12 @@ const deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = asy
|
|
|
2851
2839
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2852
2840
|
default:
|
|
2853
2841
|
const parsedBody = parsedOutput.body;
|
|
2842
|
+
const $metadata = deserializeMetadata(output);
|
|
2843
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2854
2844
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2845
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2856
2846
|
$fault: "client",
|
|
2857
|
-
$metadata
|
|
2847
|
+
$metadata,
|
|
2858
2848
|
});
|
|
2859
2849
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2860
2850
|
}
|
|
@@ -2880,8 +2870,7 @@ const deserializeAws_restJson1RejectInboundConnectionCommandError = async (outpu
|
|
|
2880
2870
|
body: await parseBody(output.body, context),
|
|
2881
2871
|
};
|
|
2882
2872
|
let response;
|
|
2883
|
-
|
|
2884
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
2874
|
switch (errorCode) {
|
|
2886
2875
|
case "DisabledOperationException":
|
|
2887
2876
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
@@ -2891,10 +2880,12 @@ const deserializeAws_restJson1RejectInboundConnectionCommandError = async (outpu
|
|
|
2891
2880
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2892
2881
|
default:
|
|
2893
2882
|
const parsedBody = parsedOutput.body;
|
|
2883
|
+
const $metadata = deserializeMetadata(output);
|
|
2884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2894
2885
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2896
2887
|
$fault: "client",
|
|
2897
|
-
$metadata
|
|
2888
|
+
$metadata,
|
|
2898
2889
|
});
|
|
2899
2890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2900
2891
|
}
|
|
@@ -2916,8 +2907,7 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
|
|
|
2916
2907
|
body: await parseBody(output.body, context),
|
|
2917
2908
|
};
|
|
2918
2909
|
let response;
|
|
2919
|
-
|
|
2920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
2911
|
switch (errorCode) {
|
|
2922
2912
|
case "BaseException":
|
|
2923
2913
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2930,10 +2920,12 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
|
|
|
2930
2920
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2931
2921
|
default:
|
|
2932
2922
|
const parsedBody = parsedOutput.body;
|
|
2923
|
+
const $metadata = deserializeMetadata(output);
|
|
2924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2933
2925
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2935
2927
|
$fault: "client",
|
|
2936
|
-
$metadata
|
|
2928
|
+
$metadata,
|
|
2937
2929
|
});
|
|
2938
2930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2939
2931
|
}
|
|
@@ -2959,8 +2951,7 @@ const deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = async (ou
|
|
|
2959
2951
|
body: await parseBody(output.body, context),
|
|
2960
2952
|
};
|
|
2961
2953
|
let response;
|
|
2962
|
-
|
|
2963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2964
2955
|
switch (errorCode) {
|
|
2965
2956
|
case "BaseException":
|
|
2966
2957
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -2976,10 +2967,12 @@ const deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = async (ou
|
|
|
2976
2967
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2977
2968
|
default:
|
|
2978
2969
|
const parsedBody = parsedOutput.body;
|
|
2970
|
+
const $metadata = deserializeMetadata(output);
|
|
2971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2979
2972
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
2980
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2981
2974
|
$fault: "client",
|
|
2982
|
-
$metadata
|
|
2975
|
+
$metadata,
|
|
2983
2976
|
});
|
|
2984
2977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2985
2978
|
}
|
|
@@ -3009,8 +3002,7 @@ const deserializeAws_restJson1UpdateDomainConfigCommandError = async (output, co
|
|
|
3009
3002
|
body: await parseBody(output.body, context),
|
|
3010
3003
|
};
|
|
3011
3004
|
let response;
|
|
3012
|
-
|
|
3013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
3006
|
switch (errorCode) {
|
|
3015
3007
|
case "BaseException":
|
|
3016
3008
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -3032,10 +3024,12 @@ const deserializeAws_restJson1UpdateDomainConfigCommandError = async (output, co
|
|
|
3032
3024
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3033
3025
|
default:
|
|
3034
3026
|
const parsedBody = parsedOutput.body;
|
|
3027
|
+
const $metadata = deserializeMetadata(output);
|
|
3028
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3035
3029
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3030
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3037
3031
|
$fault: "client",
|
|
3038
|
-
$metadata
|
|
3032
|
+
$metadata,
|
|
3039
3033
|
});
|
|
3040
3034
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3041
3035
|
}
|
|
@@ -3061,8 +3055,7 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
|
|
|
3061
3055
|
body: await parseBody(output.body, context),
|
|
3062
3056
|
};
|
|
3063
3057
|
let response;
|
|
3064
|
-
|
|
3065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
3059
|
switch (errorCode) {
|
|
3067
3060
|
case "AccessDeniedException":
|
|
3068
3061
|
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
@@ -3084,10 +3077,12 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
|
|
|
3084
3077
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3085
3078
|
default:
|
|
3086
3079
|
const parsedBody = parsedOutput.body;
|
|
3080
|
+
const $metadata = deserializeMetadata(output);
|
|
3081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3087
3082
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3089
3084
|
$fault: "client",
|
|
3090
|
-
$metadata
|
|
3085
|
+
$metadata,
|
|
3091
3086
|
});
|
|
3092
3087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3093
3088
|
}
|
|
@@ -3133,8 +3128,7 @@ const deserializeAws_restJson1UpgradeDomainCommandError = async (output, context
|
|
|
3133
3128
|
body: await parseBody(output.body, context),
|
|
3134
3129
|
};
|
|
3135
3130
|
let response;
|
|
3136
|
-
|
|
3137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
3132
|
switch (errorCode) {
|
|
3139
3133
|
case "BaseException":
|
|
3140
3134
|
case "com.amazonaws.opensearch#BaseException":
|
|
@@ -3156,10 +3150,12 @@ const deserializeAws_restJson1UpgradeDomainCommandError = async (output, context
|
|
|
3156
3150
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3157
3151
|
default:
|
|
3158
3152
|
const parsedBody = parsedOutput.body;
|
|
3153
|
+
const $metadata = deserializeMetadata(output);
|
|
3154
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3159
3155
|
response = new OpenSearchServiceException_1.OpenSearchServiceException({
|
|
3160
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3156
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3161
3157
|
$fault: "client",
|
|
3162
|
-
$metadata
|
|
3158
|
+
$metadata,
|
|
3163
3159
|
});
|
|
3164
3160
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3165
3161
|
}
|
|
@@ -3309,29 +3305,26 @@ const serializeAws_restJson1AdvancedOptions = (input, context) => {
|
|
|
3309
3305
|
};
|
|
3310
3306
|
const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
|
|
3311
3307
|
return {
|
|
3312
|
-
...(input.AnonymousAuthEnabled
|
|
3313
|
-
|
|
3314
|
-
...(input.
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
...(input.MasterUserOptions
|
|
3318
|
-
input.MasterUserOptions !== null && {
|
|
3308
|
+
...(input.AnonymousAuthEnabled != null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled }),
|
|
3309
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3310
|
+
...(input.InternalUserDatabaseEnabled != null && {
|
|
3311
|
+
InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled,
|
|
3312
|
+
}),
|
|
3313
|
+
...(input.MasterUserOptions != null && {
|
|
3319
3314
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
3320
3315
|
}),
|
|
3321
|
-
...(input.SAMLOptions
|
|
3322
|
-
input.SAMLOptions !== null && {
|
|
3316
|
+
...(input.SAMLOptions != null && {
|
|
3323
3317
|
SAMLOptions: serializeAws_restJson1SAMLOptionsInput(input.SAMLOptions, context),
|
|
3324
3318
|
}),
|
|
3325
3319
|
};
|
|
3326
3320
|
};
|
|
3327
3321
|
const serializeAws_restJson1AutoTuneMaintenanceSchedule = (input, context) => {
|
|
3328
3322
|
return {
|
|
3329
|
-
...(input.CronExpressionForRecurrence
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
...(input.StartAt
|
|
3334
|
-
input.StartAt !== null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }),
|
|
3323
|
+
...(input.CronExpressionForRecurrence != null && {
|
|
3324
|
+
CronExpressionForRecurrence: input.CronExpressionForRecurrence,
|
|
3325
|
+
}),
|
|
3326
|
+
...(input.Duration != null && { Duration: serializeAws_restJson1Duration(input.Duration, context) }),
|
|
3327
|
+
...(input.StartAt != null && { StartAt: Math.round(input.StartAt.getTime() / 1000) }),
|
|
3335
3328
|
};
|
|
3336
3329
|
};
|
|
3337
3330
|
const serializeAws_restJson1AutoTuneMaintenanceScheduleList = (input, context) => {
|
|
@@ -3346,75 +3339,64 @@ const serializeAws_restJson1AutoTuneMaintenanceScheduleList = (input, context) =
|
|
|
3346
3339
|
};
|
|
3347
3340
|
const serializeAws_restJson1AutoTuneOptions = (input, context) => {
|
|
3348
3341
|
return {
|
|
3349
|
-
...(input.DesiredState
|
|
3350
|
-
...(input.MaintenanceSchedules
|
|
3351
|
-
input.MaintenanceSchedules !== null && {
|
|
3342
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
3343
|
+
...(input.MaintenanceSchedules != null && {
|
|
3352
3344
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
3353
3345
|
}),
|
|
3354
|
-
...(input.RollbackOnDisable
|
|
3355
|
-
input.RollbackOnDisable !== null && { RollbackOnDisable: input.RollbackOnDisable }),
|
|
3346
|
+
...(input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }),
|
|
3356
3347
|
};
|
|
3357
3348
|
};
|
|
3358
3349
|
const serializeAws_restJson1AutoTuneOptionsInput = (input, context) => {
|
|
3359
3350
|
return {
|
|
3360
|
-
...(input.DesiredState
|
|
3361
|
-
...(input.MaintenanceSchedules
|
|
3362
|
-
input.MaintenanceSchedules !== null && {
|
|
3351
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
3352
|
+
...(input.MaintenanceSchedules != null && {
|
|
3363
3353
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
3364
3354
|
}),
|
|
3365
3355
|
};
|
|
3366
3356
|
};
|
|
3367
3357
|
const serializeAws_restJson1AWSDomainInformation = (input, context) => {
|
|
3368
3358
|
return {
|
|
3369
|
-
...(input.DomainName
|
|
3370
|
-
...(input.OwnerId
|
|
3371
|
-
...(input.Region
|
|
3359
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
3360
|
+
...(input.OwnerId != null && { OwnerId: input.OwnerId }),
|
|
3361
|
+
...(input.Region != null && { Region: input.Region }),
|
|
3372
3362
|
};
|
|
3373
3363
|
};
|
|
3374
3364
|
const serializeAws_restJson1ClusterConfig = (input, context) => {
|
|
3375
3365
|
return {
|
|
3376
|
-
...(input.ColdStorageOptions
|
|
3377
|
-
input.ColdStorageOptions !== null && {
|
|
3366
|
+
...(input.ColdStorageOptions != null && {
|
|
3378
3367
|
ColdStorageOptions: serializeAws_restJson1ColdStorageOptions(input.ColdStorageOptions, context),
|
|
3379
3368
|
}),
|
|
3380
|
-
...(input.DedicatedMasterCount
|
|
3381
|
-
|
|
3382
|
-
...(input.
|
|
3383
|
-
|
|
3384
|
-
...(input.
|
|
3385
|
-
|
|
3386
|
-
...(input.
|
|
3387
|
-
...(input.
|
|
3388
|
-
...(input.
|
|
3389
|
-
...(input.WarmEnabled !== undefined && input.WarmEnabled !== null && { WarmEnabled: input.WarmEnabled }),
|
|
3390
|
-
...(input.WarmType !== undefined && input.WarmType !== null && { WarmType: input.WarmType }),
|
|
3391
|
-
...(input.ZoneAwarenessConfig !== undefined &&
|
|
3392
|
-
input.ZoneAwarenessConfig !== null && {
|
|
3369
|
+
...(input.DedicatedMasterCount != null && { DedicatedMasterCount: input.DedicatedMasterCount }),
|
|
3370
|
+
...(input.DedicatedMasterEnabled != null && { DedicatedMasterEnabled: input.DedicatedMasterEnabled }),
|
|
3371
|
+
...(input.DedicatedMasterType != null && { DedicatedMasterType: input.DedicatedMasterType }),
|
|
3372
|
+
...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
|
|
3373
|
+
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
3374
|
+
...(input.WarmCount != null && { WarmCount: input.WarmCount }),
|
|
3375
|
+
...(input.WarmEnabled != null && { WarmEnabled: input.WarmEnabled }),
|
|
3376
|
+
...(input.WarmType != null && { WarmType: input.WarmType }),
|
|
3377
|
+
...(input.ZoneAwarenessConfig != null && {
|
|
3393
3378
|
ZoneAwarenessConfig: serializeAws_restJson1ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
|
|
3394
3379
|
}),
|
|
3395
|
-
...(input.ZoneAwarenessEnabled
|
|
3396
|
-
input.ZoneAwarenessEnabled !== null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }),
|
|
3380
|
+
...(input.ZoneAwarenessEnabled != null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }),
|
|
3397
3381
|
};
|
|
3398
3382
|
};
|
|
3399
3383
|
const serializeAws_restJson1CognitoOptions = (input, context) => {
|
|
3400
3384
|
return {
|
|
3401
|
-
...(input.Enabled
|
|
3402
|
-
...(input.IdentityPoolId
|
|
3403
|
-
|
|
3404
|
-
...(input.
|
|
3405
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
3385
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3386
|
+
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
3387
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
3388
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
3406
3389
|
};
|
|
3407
3390
|
};
|
|
3408
3391
|
const serializeAws_restJson1ColdStorageOptions = (input, context) => {
|
|
3409
3392
|
return {
|
|
3410
|
-
...(input.Enabled
|
|
3393
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3411
3394
|
};
|
|
3412
3395
|
};
|
|
3413
3396
|
const serializeAws_restJson1DescribePackagesFilter = (input, context) => {
|
|
3414
3397
|
return {
|
|
3415
|
-
...(input.Name
|
|
3416
|
-
...(input.Value
|
|
3417
|
-
input.Value !== null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }),
|
|
3398
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3399
|
+
...(input.Value != null && { Value: serializeAws_restJson1DescribePackagesFilterValues(input.Value, context) }),
|
|
3418
3400
|
};
|
|
3419
3401
|
};
|
|
3420
3402
|
const serializeAws_restJson1DescribePackagesFilterList = (input, context) => {
|
|
@@ -3439,23 +3421,18 @@ const serializeAws_restJson1DescribePackagesFilterValues = (input, context) => {
|
|
|
3439
3421
|
};
|
|
3440
3422
|
const serializeAws_restJson1DomainEndpointOptions = (input, context) => {
|
|
3441
3423
|
return {
|
|
3442
|
-
...(input.CustomEndpoint
|
|
3443
|
-
|
|
3444
|
-
...(input.CustomEndpointCertificateArn !== undefined &&
|
|
3445
|
-
input.CustomEndpointCertificateArn !== null && {
|
|
3424
|
+
...(input.CustomEndpoint != null && { CustomEndpoint: input.CustomEndpoint }),
|
|
3425
|
+
...(input.CustomEndpointCertificateArn != null && {
|
|
3446
3426
|
CustomEndpointCertificateArn: input.CustomEndpointCertificateArn,
|
|
3447
3427
|
}),
|
|
3448
|
-
...(input.CustomEndpointEnabled
|
|
3449
|
-
|
|
3450
|
-
...(input.
|
|
3451
|
-
...(input.TLSSecurityPolicy !== undefined &&
|
|
3452
|
-
input.TLSSecurityPolicy !== null && { TLSSecurityPolicy: input.TLSSecurityPolicy }),
|
|
3428
|
+
...(input.CustomEndpointEnabled != null && { CustomEndpointEnabled: input.CustomEndpointEnabled }),
|
|
3429
|
+
...(input.EnforceHTTPS != null && { EnforceHTTPS: input.EnforceHTTPS }),
|
|
3430
|
+
...(input.TLSSecurityPolicy != null && { TLSSecurityPolicy: input.TLSSecurityPolicy }),
|
|
3453
3431
|
};
|
|
3454
3432
|
};
|
|
3455
3433
|
const serializeAws_restJson1DomainInformationContainer = (input, context) => {
|
|
3456
3434
|
return {
|
|
3457
|
-
...(input.AWSDomainInformation
|
|
3458
|
-
input.AWSDomainInformation !== null && {
|
|
3435
|
+
...(input.AWSDomainInformation != null && {
|
|
3459
3436
|
AWSDomainInformation: serializeAws_restJson1AWSDomainInformation(input.AWSDomainInformation, context),
|
|
3460
3437
|
}),
|
|
3461
3438
|
};
|
|
@@ -3472,29 +3449,28 @@ const serializeAws_restJson1DomainNameList = (input, context) => {
|
|
|
3472
3449
|
};
|
|
3473
3450
|
const serializeAws_restJson1Duration = (input, context) => {
|
|
3474
3451
|
return {
|
|
3475
|
-
...(input.Unit
|
|
3476
|
-
...(input.Value
|
|
3452
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
3453
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3477
3454
|
};
|
|
3478
3455
|
};
|
|
3479
3456
|
const serializeAws_restJson1EBSOptions = (input, context) => {
|
|
3480
3457
|
return {
|
|
3481
|
-
...(input.EBSEnabled
|
|
3482
|
-
...(input.Iops
|
|
3483
|
-
...(input.VolumeSize
|
|
3484
|
-
...(input.VolumeType
|
|
3458
|
+
...(input.EBSEnabled != null && { EBSEnabled: input.EBSEnabled }),
|
|
3459
|
+
...(input.Iops != null && { Iops: input.Iops }),
|
|
3460
|
+
...(input.VolumeSize != null && { VolumeSize: input.VolumeSize }),
|
|
3461
|
+
...(input.VolumeType != null && { VolumeType: input.VolumeType }),
|
|
3485
3462
|
};
|
|
3486
3463
|
};
|
|
3487
3464
|
const serializeAws_restJson1EncryptionAtRestOptions = (input, context) => {
|
|
3488
3465
|
return {
|
|
3489
|
-
...(input.Enabled
|
|
3490
|
-
...(input.KmsKeyId
|
|
3466
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3467
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
3491
3468
|
};
|
|
3492
3469
|
};
|
|
3493
3470
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
3494
3471
|
return {
|
|
3495
|
-
...(input.Name
|
|
3496
|
-
...(input.Values
|
|
3497
|
-
input.Values !== null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
|
|
3472
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3473
|
+
...(input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
|
|
3498
3474
|
};
|
|
3499
3475
|
};
|
|
3500
3476
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -3509,9 +3485,8 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
3509
3485
|
};
|
|
3510
3486
|
const serializeAws_restJson1LogPublishingOption = (input, context) => {
|
|
3511
3487
|
return {
|
|
3512
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
3513
|
-
|
|
3514
|
-
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
3488
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
3489
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3515
3490
|
};
|
|
3516
3491
|
};
|
|
3517
3492
|
const serializeAws_restJson1LogPublishingOptions = (input, context) => {
|
|
@@ -3527,49 +3502,42 @@ const serializeAws_restJson1LogPublishingOptions = (input, context) => {
|
|
|
3527
3502
|
};
|
|
3528
3503
|
const serializeAws_restJson1MasterUserOptions = (input, context) => {
|
|
3529
3504
|
return {
|
|
3530
|
-
...(input.MasterUserARN
|
|
3531
|
-
...(input.MasterUserName
|
|
3532
|
-
|
|
3533
|
-
...(input.MasterUserPassword !== undefined &&
|
|
3534
|
-
input.MasterUserPassword !== null && { MasterUserPassword: input.MasterUserPassword }),
|
|
3505
|
+
...(input.MasterUserARN != null && { MasterUserARN: input.MasterUserARN }),
|
|
3506
|
+
...(input.MasterUserName != null && { MasterUserName: input.MasterUserName }),
|
|
3507
|
+
...(input.MasterUserPassword != null && { MasterUserPassword: input.MasterUserPassword }),
|
|
3535
3508
|
};
|
|
3536
3509
|
};
|
|
3537
3510
|
const serializeAws_restJson1NodeToNodeEncryptionOptions = (input, context) => {
|
|
3538
3511
|
return {
|
|
3539
|
-
...(input.Enabled
|
|
3512
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3540
3513
|
};
|
|
3541
3514
|
};
|
|
3542
3515
|
const serializeAws_restJson1PackageSource = (input, context) => {
|
|
3543
3516
|
return {
|
|
3544
|
-
...(input.S3BucketName
|
|
3545
|
-
...(input.S3Key
|
|
3517
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
3518
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
3546
3519
|
};
|
|
3547
3520
|
};
|
|
3548
3521
|
const serializeAws_restJson1SAMLIdp = (input, context) => {
|
|
3549
3522
|
return {
|
|
3550
|
-
...(input.EntityId
|
|
3551
|
-
...(input.MetadataContent
|
|
3552
|
-
input.MetadataContent !== null && { MetadataContent: input.MetadataContent }),
|
|
3523
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
3524
|
+
...(input.MetadataContent != null && { MetadataContent: input.MetadataContent }),
|
|
3553
3525
|
};
|
|
3554
3526
|
};
|
|
3555
3527
|
const serializeAws_restJson1SAMLOptionsInput = (input, context) => {
|
|
3556
3528
|
return {
|
|
3557
|
-
...(input.Enabled
|
|
3558
|
-
...(input.Idp
|
|
3559
|
-
...(input.MasterBackendRole
|
|
3560
|
-
|
|
3561
|
-
...(input.
|
|
3562
|
-
|
|
3563
|
-
...(input.
|
|
3564
|
-
...(input.SessionTimeoutMinutes !== undefined &&
|
|
3565
|
-
input.SessionTimeoutMinutes !== null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes }),
|
|
3566
|
-
...(input.SubjectKey !== undefined && input.SubjectKey !== null && { SubjectKey: input.SubjectKey }),
|
|
3529
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3530
|
+
...(input.Idp != null && { Idp: serializeAws_restJson1SAMLIdp(input.Idp, context) }),
|
|
3531
|
+
...(input.MasterBackendRole != null && { MasterBackendRole: input.MasterBackendRole }),
|
|
3532
|
+
...(input.MasterUserName != null && { MasterUserName: input.MasterUserName }),
|
|
3533
|
+
...(input.RolesKey != null && { RolesKey: input.RolesKey }),
|
|
3534
|
+
...(input.SessionTimeoutMinutes != null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes }),
|
|
3535
|
+
...(input.SubjectKey != null && { SubjectKey: input.SubjectKey }),
|
|
3567
3536
|
};
|
|
3568
3537
|
};
|
|
3569
3538
|
const serializeAws_restJson1SnapshotOptions = (input, context) => {
|
|
3570
3539
|
return {
|
|
3571
|
-
...(input.AutomatedSnapshotStartHour
|
|
3572
|
-
input.AutomatedSnapshotStartHour !== null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
|
|
3540
|
+
...(input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
|
|
3573
3541
|
};
|
|
3574
3542
|
};
|
|
3575
3543
|
const serializeAws_restJson1StringList = (input, context) => {
|
|
@@ -3584,8 +3552,8 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
3584
3552
|
};
|
|
3585
3553
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3586
3554
|
return {
|
|
3587
|
-
...(input.Key
|
|
3588
|
-
...(input.Value
|
|
3555
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3556
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3589
3557
|
};
|
|
3590
3558
|
};
|
|
3591
3559
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -3610,34 +3578,27 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
|
|
|
3610
3578
|
};
|
|
3611
3579
|
const serializeAws_restJson1VPCOptions = (input, context) => {
|
|
3612
3580
|
return {
|
|
3613
|
-
...(input.SecurityGroupIds
|
|
3614
|
-
input.SecurityGroupIds !== null && {
|
|
3581
|
+
...(input.SecurityGroupIds != null && {
|
|
3615
3582
|
SecurityGroupIds: serializeAws_restJson1StringList(input.SecurityGroupIds, context),
|
|
3616
3583
|
}),
|
|
3617
|
-
...(input.SubnetIds
|
|
3618
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
|
|
3584
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
|
|
3619
3585
|
};
|
|
3620
3586
|
};
|
|
3621
3587
|
const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
|
|
3622
3588
|
return {
|
|
3623
|
-
...(input.AvailabilityZoneCount
|
|
3624
|
-
input.AvailabilityZoneCount !== null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
|
|
3589
|
+
...(input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
|
|
3625
3590
|
};
|
|
3626
3591
|
};
|
|
3627
3592
|
const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
|
|
3628
3593
|
return {
|
|
3629
3594
|
Options: (0, smithy_client_1.expectString)(output.Options),
|
|
3630
|
-
Status: output.Status
|
|
3631
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3632
|
-
: undefined,
|
|
3595
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3633
3596
|
};
|
|
3634
3597
|
};
|
|
3635
3598
|
const deserializeAws_restJson1AdditionalLimit = (output, context) => {
|
|
3636
3599
|
return {
|
|
3637
3600
|
LimitName: (0, smithy_client_1.expectString)(output.LimitName),
|
|
3638
|
-
LimitValues: output.LimitValues
|
|
3639
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
3640
|
-
: undefined,
|
|
3601
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
3641
3602
|
};
|
|
3642
3603
|
};
|
|
3643
3604
|
const deserializeAws_restJson1AdditionalLimitList = (output, context) => {
|
|
@@ -3664,40 +3625,30 @@ const deserializeAws_restJson1AdvancedOptions = (output, context) => {
|
|
|
3664
3625
|
};
|
|
3665
3626
|
const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
|
|
3666
3627
|
return {
|
|
3667
|
-
Options: output.Options
|
|
3668
|
-
|
|
3669
|
-
: undefined,
|
|
3670
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3671
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3672
|
-
: undefined,
|
|
3628
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedOptions(output.Options, context) : undefined,
|
|
3629
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3673
3630
|
};
|
|
3674
3631
|
};
|
|
3675
3632
|
const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
|
|
3676
3633
|
return {
|
|
3677
|
-
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate
|
|
3634
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate != null
|
|
3678
3635
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AnonymousAuthDisableDate)))
|
|
3679
3636
|
: undefined,
|
|
3680
3637
|
AnonymousAuthEnabled: (0, smithy_client_1.expectBoolean)(output.AnonymousAuthEnabled),
|
|
3681
3638
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3682
3639
|
InternalUserDatabaseEnabled: (0, smithy_client_1.expectBoolean)(output.InternalUserDatabaseEnabled),
|
|
3683
|
-
SAMLOptions: output.SAMLOptions
|
|
3684
|
-
? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
|
|
3685
|
-
: undefined,
|
|
3640
|
+
SAMLOptions: output.SAMLOptions != null ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
|
|
3686
3641
|
};
|
|
3687
3642
|
};
|
|
3688
3643
|
const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context) => {
|
|
3689
3644
|
return {
|
|
3690
|
-
Options: output.Options
|
|
3691
|
-
|
|
3692
|
-
: undefined,
|
|
3693
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3694
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3695
|
-
: undefined,
|
|
3645
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedSecurityOptions(output.Options, context) : undefined,
|
|
3646
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3696
3647
|
};
|
|
3697
3648
|
};
|
|
3698
3649
|
const deserializeAws_restJson1AutoTune = (output, context) => {
|
|
3699
3650
|
return {
|
|
3700
|
-
AutoTuneDetails: output.AutoTuneDetails
|
|
3651
|
+
AutoTuneDetails: output.AutoTuneDetails != null
|
|
3701
3652
|
? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
|
|
3702
3653
|
: undefined,
|
|
3703
3654
|
AutoTuneType: (0, smithy_client_1.expectString)(output.AutoTuneType),
|
|
@@ -3705,7 +3656,7 @@ const deserializeAws_restJson1AutoTune = (output, context) => {
|
|
|
3705
3656
|
};
|
|
3706
3657
|
const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
|
|
3707
3658
|
return {
|
|
3708
|
-
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails
|
|
3659
|
+
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails != null
|
|
3709
3660
|
? deserializeAws_restJson1ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
|
|
3710
3661
|
: undefined,
|
|
3711
3662
|
};
|
|
@@ -3724,12 +3675,8 @@ const deserializeAws_restJson1AutoTuneList = (output, context) => {
|
|
|
3724
3675
|
const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
|
|
3725
3676
|
return {
|
|
3726
3677
|
CronExpressionForRecurrence: (0, smithy_client_1.expectString)(output.CronExpressionForRecurrence),
|
|
3727
|
-
Duration: output.Duration
|
|
3728
|
-
|
|
3729
|
-
: undefined,
|
|
3730
|
-
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
3731
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartAt)))
|
|
3732
|
-
: undefined,
|
|
3678
|
+
Duration: output.Duration != null ? deserializeAws_restJson1Duration(output.Duration, context) : undefined,
|
|
3679
|
+
StartAt: output.StartAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartAt))) : undefined,
|
|
3733
3680
|
};
|
|
3734
3681
|
};
|
|
3735
3682
|
const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context) => {
|
|
@@ -3746,7 +3693,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context
|
|
|
3746
3693
|
const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
|
|
3747
3694
|
return {
|
|
3748
3695
|
DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
|
|
3749
|
-
MaintenanceSchedules: output.MaintenanceSchedules
|
|
3696
|
+
MaintenanceSchedules: output.MaintenanceSchedules != null
|
|
3750
3697
|
? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
|
|
3751
3698
|
: undefined,
|
|
3752
3699
|
RollbackOnDisable: (0, smithy_client_1.expectString)(output.RollbackOnDisable),
|
|
@@ -3760,25 +3707,19 @@ const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
|
|
|
3760
3707
|
};
|
|
3761
3708
|
const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
|
|
3762
3709
|
return {
|
|
3763
|
-
Options: output.Options
|
|
3764
|
-
|
|
3765
|
-
: undefined,
|
|
3766
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3767
|
-
? deserializeAws_restJson1AutoTuneStatus(output.Status, context)
|
|
3768
|
-
: undefined,
|
|
3710
|
+
Options: output.Options != null ? deserializeAws_restJson1AutoTuneOptions(output.Options, context) : undefined,
|
|
3711
|
+
Status: output.Status != null ? deserializeAws_restJson1AutoTuneStatus(output.Status, context) : undefined,
|
|
3769
3712
|
};
|
|
3770
3713
|
};
|
|
3771
3714
|
const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
|
|
3772
3715
|
return {
|
|
3773
|
-
CreationDate: output.CreationDate
|
|
3716
|
+
CreationDate: output.CreationDate != null
|
|
3774
3717
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
3775
3718
|
: undefined,
|
|
3776
3719
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3777
3720
|
PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
|
|
3778
3721
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3779
|
-
UpdateDate: output.UpdateDate
|
|
3780
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
|
|
3781
|
-
: undefined,
|
|
3722
|
+
UpdateDate: output.UpdateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate))) : undefined,
|
|
3782
3723
|
UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
|
|
3783
3724
|
};
|
|
3784
3725
|
};
|
|
@@ -3798,7 +3739,7 @@ const deserializeAws_restJson1ChangeProgressDetails = (output, context) => {
|
|
|
3798
3739
|
const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
|
|
3799
3740
|
return {
|
|
3800
3741
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3801
|
-
LastUpdated: output.LastUpdated
|
|
3742
|
+
LastUpdated: output.LastUpdated != null
|
|
3802
3743
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
3803
3744
|
: undefined,
|
|
3804
3745
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3819,25 +3760,23 @@ const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
|
|
|
3819
3760
|
const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) => {
|
|
3820
3761
|
return {
|
|
3821
3762
|
ChangeId: (0, smithy_client_1.expectString)(output.ChangeId),
|
|
3822
|
-
ChangeProgressStages: output.ChangeProgressStages
|
|
3763
|
+
ChangeProgressStages: output.ChangeProgressStages != null
|
|
3823
3764
|
? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
|
|
3824
3765
|
: undefined,
|
|
3825
|
-
CompletedProperties: output.CompletedProperties
|
|
3766
|
+
CompletedProperties: output.CompletedProperties != null
|
|
3826
3767
|
? deserializeAws_restJson1StringList(output.CompletedProperties, context)
|
|
3827
3768
|
: undefined,
|
|
3828
|
-
PendingProperties: output.PendingProperties
|
|
3769
|
+
PendingProperties: output.PendingProperties != null
|
|
3829
3770
|
? deserializeAws_restJson1StringList(output.PendingProperties, context)
|
|
3830
3771
|
: undefined,
|
|
3831
|
-
StartTime: output.StartTime
|
|
3832
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3833
|
-
: undefined,
|
|
3772
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3834
3773
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3835
3774
|
TotalNumberOfStages: (0, smithy_client_1.expectInt32)(output.TotalNumberOfStages),
|
|
3836
3775
|
};
|
|
3837
3776
|
};
|
|
3838
3777
|
const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
3839
3778
|
return {
|
|
3840
|
-
ColdStorageOptions: output.ColdStorageOptions
|
|
3779
|
+
ColdStorageOptions: output.ColdStorageOptions != null
|
|
3841
3780
|
? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
|
|
3842
3781
|
: undefined,
|
|
3843
3782
|
DedicatedMasterCount: (0, smithy_client_1.expectInt32)(output.DedicatedMasterCount),
|
|
@@ -3848,7 +3787,7 @@ const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
|
3848
3787
|
WarmCount: (0, smithy_client_1.expectInt32)(output.WarmCount),
|
|
3849
3788
|
WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
|
|
3850
3789
|
WarmType: (0, smithy_client_1.expectString)(output.WarmType),
|
|
3851
|
-
ZoneAwarenessConfig: output.ZoneAwarenessConfig
|
|
3790
|
+
ZoneAwarenessConfig: output.ZoneAwarenessConfig != null
|
|
3852
3791
|
? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
|
|
3853
3792
|
: undefined,
|
|
3854
3793
|
ZoneAwarenessEnabled: (0, smithy_client_1.expectBoolean)(output.ZoneAwarenessEnabled),
|
|
@@ -3856,12 +3795,8 @@ const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
|
3856
3795
|
};
|
|
3857
3796
|
const deserializeAws_restJson1ClusterConfigStatus = (output, context) => {
|
|
3858
3797
|
return {
|
|
3859
|
-
Options: output.Options
|
|
3860
|
-
|
|
3861
|
-
: undefined,
|
|
3862
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3863
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3864
|
-
: undefined,
|
|
3798
|
+
Options: output.Options != null ? deserializeAws_restJson1ClusterConfig(output.Options, context) : undefined,
|
|
3799
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3865
3800
|
};
|
|
3866
3801
|
};
|
|
3867
3802
|
const deserializeAws_restJson1CognitoOptions = (output, context) => {
|
|
@@ -3874,12 +3809,8 @@ const deserializeAws_restJson1CognitoOptions = (output, context) => {
|
|
|
3874
3809
|
};
|
|
3875
3810
|
const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
|
|
3876
3811
|
return {
|
|
3877
|
-
Options: output.Options
|
|
3878
|
-
|
|
3879
|
-
: undefined,
|
|
3880
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3881
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3882
|
-
: undefined,
|
|
3812
|
+
Options: output.Options != null ? deserializeAws_restJson1CognitoOptions(output.Options, context) : undefined,
|
|
3813
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3883
3814
|
};
|
|
3884
3815
|
};
|
|
3885
3816
|
const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
|
|
@@ -3901,58 +3832,50 @@ const deserializeAws_restJson1CompatibleVersionsList = (output, context) => {
|
|
|
3901
3832
|
const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
|
|
3902
3833
|
return {
|
|
3903
3834
|
SourceVersion: (0, smithy_client_1.expectString)(output.SourceVersion),
|
|
3904
|
-
TargetVersions: output.TargetVersions
|
|
3905
|
-
? deserializeAws_restJson1VersionList(output.TargetVersions, context)
|
|
3906
|
-
: undefined,
|
|
3835
|
+
TargetVersions: output.TargetVersions != null ? deserializeAws_restJson1VersionList(output.TargetVersions, context) : undefined,
|
|
3907
3836
|
};
|
|
3908
3837
|
};
|
|
3909
3838
|
const deserializeAws_restJson1DomainConfig = (output, context) => {
|
|
3910
3839
|
return {
|
|
3911
|
-
AccessPolicies: output.AccessPolicies
|
|
3840
|
+
AccessPolicies: output.AccessPolicies != null
|
|
3912
3841
|
? deserializeAws_restJson1AccessPoliciesStatus(output.AccessPolicies, context)
|
|
3913
3842
|
: undefined,
|
|
3914
|
-
AdvancedOptions: output.AdvancedOptions
|
|
3843
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
3915
3844
|
? deserializeAws_restJson1AdvancedOptionsStatus(output.AdvancedOptions, context)
|
|
3916
3845
|
: undefined,
|
|
3917
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
3846
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
3918
3847
|
? deserializeAws_restJson1AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
|
|
3919
3848
|
: undefined,
|
|
3920
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
3849
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
3921
3850
|
? deserializeAws_restJson1AutoTuneOptionsStatus(output.AutoTuneOptions, context)
|
|
3922
3851
|
: undefined,
|
|
3923
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
3852
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
3924
3853
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
3925
3854
|
: undefined,
|
|
3926
|
-
ClusterConfig: output.ClusterConfig
|
|
3855
|
+
ClusterConfig: output.ClusterConfig != null
|
|
3927
3856
|
? deserializeAws_restJson1ClusterConfigStatus(output.ClusterConfig, context)
|
|
3928
3857
|
: undefined,
|
|
3929
|
-
CognitoOptions: output.CognitoOptions
|
|
3858
|
+
CognitoOptions: output.CognitoOptions != null
|
|
3930
3859
|
? deserializeAws_restJson1CognitoOptionsStatus(output.CognitoOptions, context)
|
|
3931
3860
|
: undefined,
|
|
3932
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
3861
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
3933
3862
|
? deserializeAws_restJson1DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
|
|
3934
3863
|
: undefined,
|
|
3935
|
-
EBSOptions: output.EBSOptions
|
|
3936
|
-
|
|
3937
|
-
: undefined,
|
|
3938
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
3864
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptionsStatus(output.EBSOptions, context) : undefined,
|
|
3865
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
3939
3866
|
? deserializeAws_restJson1EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
|
|
3940
3867
|
: undefined,
|
|
3941
|
-
EngineVersion: output.EngineVersion
|
|
3942
|
-
|
|
3943
|
-
: undefined,
|
|
3944
|
-
LogPublishingOptions: output.LogPublishingOptions !== undefined && output.LogPublishingOptions !== null
|
|
3868
|
+
EngineVersion: output.EngineVersion != null ? deserializeAws_restJson1VersionStatus(output.EngineVersion, context) : undefined,
|
|
3869
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
3945
3870
|
? deserializeAws_restJson1LogPublishingOptionsStatus(output.LogPublishingOptions, context)
|
|
3946
3871
|
: undefined,
|
|
3947
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
3872
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
3948
3873
|
? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
|
|
3949
3874
|
: undefined,
|
|
3950
|
-
SnapshotOptions: output.SnapshotOptions
|
|
3875
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
3951
3876
|
? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
|
|
3952
3877
|
: undefined,
|
|
3953
|
-
VPCOptions: output.VPCOptions
|
|
3954
|
-
? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context)
|
|
3955
|
-
: undefined,
|
|
3878
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
|
|
3956
3879
|
};
|
|
3957
3880
|
};
|
|
3958
3881
|
const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
|
|
@@ -3966,12 +3889,8 @@ const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
|
|
|
3966
3889
|
};
|
|
3967
3890
|
const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) => {
|
|
3968
3891
|
return {
|
|
3969
|
-
Options: output.Options
|
|
3970
|
-
|
|
3971
|
-
: undefined,
|
|
3972
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3973
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3974
|
-
: undefined,
|
|
3892
|
+
Options: output.Options != null ? deserializeAws_restJson1DomainEndpointOptions(output.Options, context) : undefined,
|
|
3893
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3975
3894
|
};
|
|
3976
3895
|
};
|
|
3977
3896
|
const deserializeAws_restJson1DomainInfo = (output, context) => {
|
|
@@ -3993,7 +3912,7 @@ const deserializeAws_restJson1DomainInfoList = (output, context) => {
|
|
|
3993
3912
|
};
|
|
3994
3913
|
const deserializeAws_restJson1DomainInformationContainer = (output, context) => {
|
|
3995
3914
|
return {
|
|
3996
|
-
AWSDomainInformation: output.AWSDomainInformation
|
|
3915
|
+
AWSDomainInformation: output.AWSDomainInformation != null
|
|
3997
3916
|
? deserializeAws_restJson1AWSDomainInformation(output.AWSDomainInformation, context)
|
|
3998
3917
|
: undefined,
|
|
3999
3918
|
};
|
|
@@ -4002,10 +3921,8 @@ const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
|
|
|
4002
3921
|
return {
|
|
4003
3922
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
4004
3923
|
DomainPackageStatus: (0, smithy_client_1.expectString)(output.DomainPackageStatus),
|
|
4005
|
-
ErrorDetails: output.ErrorDetails
|
|
4006
|
-
|
|
4007
|
-
: undefined,
|
|
4008
|
-
LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
|
|
3924
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
3925
|
+
LastUpdated: output.LastUpdated != null
|
|
4009
3926
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
4010
3927
|
: undefined,
|
|
4011
3928
|
PackageID: (0, smithy_client_1.expectString)(output.PackageID),
|
|
@@ -4030,59 +3947,51 @@ const deserializeAws_restJson1DomainStatus = (output, context) => {
|
|
|
4030
3947
|
return {
|
|
4031
3948
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
4032
3949
|
AccessPolicies: (0, smithy_client_1.expectString)(output.AccessPolicies),
|
|
4033
|
-
AdvancedOptions: output.AdvancedOptions
|
|
3950
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4034
3951
|
? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
|
|
4035
3952
|
: undefined,
|
|
4036
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
3953
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4037
3954
|
? deserializeAws_restJson1AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
|
|
4038
3955
|
: undefined,
|
|
4039
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
3956
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4040
3957
|
? deserializeAws_restJson1AutoTuneOptionsOutput(output.AutoTuneOptions, context)
|
|
4041
3958
|
: undefined,
|
|
4042
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
3959
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
4043
3960
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
4044
3961
|
: undefined,
|
|
4045
|
-
ClusterConfig: output.ClusterConfig
|
|
4046
|
-
|
|
4047
|
-
: undefined,
|
|
4048
|
-
CognitoOptions: output.CognitoOptions !== undefined && output.CognitoOptions !== null
|
|
3962
|
+
ClusterConfig: output.ClusterConfig != null ? deserializeAws_restJson1ClusterConfig(output.ClusterConfig, context) : undefined,
|
|
3963
|
+
CognitoOptions: output.CognitoOptions != null
|
|
4049
3964
|
? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
|
|
4050
3965
|
: undefined,
|
|
4051
3966
|
Created: (0, smithy_client_1.expectBoolean)(output.Created),
|
|
4052
3967
|
Deleted: (0, smithy_client_1.expectBoolean)(output.Deleted),
|
|
4053
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
3968
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
4054
3969
|
? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
|
|
4055
3970
|
: undefined,
|
|
4056
3971
|
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
4057
3972
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
4058
|
-
EBSOptions: output.EBSOptions
|
|
4059
|
-
|
|
4060
|
-
: undefined,
|
|
4061
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
3973
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context) : undefined,
|
|
3974
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
4062
3975
|
? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
|
|
4063
3976
|
: undefined,
|
|
4064
3977
|
Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
|
|
4065
|
-
Endpoints: output.Endpoints
|
|
4066
|
-
? deserializeAws_restJson1EndpointsMap(output.Endpoints, context)
|
|
4067
|
-
: undefined,
|
|
3978
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context) : undefined,
|
|
4068
3979
|
EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
|
|
4069
|
-
LogPublishingOptions: output.LogPublishingOptions
|
|
3980
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
4070
3981
|
? deserializeAws_restJson1LogPublishingOptions(output.LogPublishingOptions, context)
|
|
4071
3982
|
: undefined,
|
|
4072
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
3983
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
4073
3984
|
? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
|
|
4074
3985
|
: undefined,
|
|
4075
3986
|
Processing: (0, smithy_client_1.expectBoolean)(output.Processing),
|
|
4076
|
-
ServiceSoftwareOptions: output.ServiceSoftwareOptions
|
|
3987
|
+
ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
|
|
4077
3988
|
? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
|
|
4078
3989
|
: undefined,
|
|
4079
|
-
SnapshotOptions: output.SnapshotOptions
|
|
3990
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
4080
3991
|
? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
|
|
4081
3992
|
: undefined,
|
|
4082
3993
|
UpgradeProcessing: (0, smithy_client_1.expectBoolean)(output.UpgradeProcessing),
|
|
4083
|
-
VPCOptions: output.VPCOptions
|
|
4084
|
-
? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
|
|
4085
|
-
: undefined,
|
|
3994
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
|
|
4086
3995
|
};
|
|
4087
3996
|
};
|
|
4088
3997
|
const deserializeAws_restJson1DomainStatusList = (output, context) => {
|
|
@@ -4118,12 +4027,8 @@ const deserializeAws_restJson1EBSOptions = (output, context) => {
|
|
|
4118
4027
|
};
|
|
4119
4028
|
const deserializeAws_restJson1EBSOptionsStatus = (output, context) => {
|
|
4120
4029
|
return {
|
|
4121
|
-
Options: output.Options
|
|
4122
|
-
|
|
4123
|
-
: undefined,
|
|
4124
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4125
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4126
|
-
: undefined,
|
|
4030
|
+
Options: output.Options != null ? deserializeAws_restJson1EBSOptions(output.Options, context) : undefined,
|
|
4031
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4127
4032
|
};
|
|
4128
4033
|
};
|
|
4129
4034
|
const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
|
|
@@ -4134,12 +4039,8 @@ const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
|
|
|
4134
4039
|
};
|
|
4135
4040
|
const deserializeAws_restJson1EncryptionAtRestOptionsStatus = (output, context) => {
|
|
4136
4041
|
return {
|
|
4137
|
-
Options: output.Options
|
|
4138
|
-
|
|
4139
|
-
: undefined,
|
|
4140
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4141
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4142
|
-
: undefined,
|
|
4042
|
+
Options: output.Options != null ? deserializeAws_restJson1EncryptionAtRestOptions(output.Options, context) : undefined,
|
|
4043
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4143
4044
|
};
|
|
4144
4045
|
};
|
|
4145
4046
|
const deserializeAws_restJson1EndpointsMap = (output, context) => {
|
|
@@ -4162,13 +4063,13 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
4162
4063
|
const deserializeAws_restJson1InboundConnection = (output, context) => {
|
|
4163
4064
|
return {
|
|
4164
4065
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
4165
|
-
ConnectionStatus: output.ConnectionStatus
|
|
4066
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
4166
4067
|
? deserializeAws_restJson1InboundConnectionStatus(output.ConnectionStatus, context)
|
|
4167
4068
|
: undefined,
|
|
4168
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
4069
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
4169
4070
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
4170
4071
|
: undefined,
|
|
4171
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
4072
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
4172
4073
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
4173
4074
|
: undefined,
|
|
4174
4075
|
};
|
|
@@ -4198,7 +4099,7 @@ const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
|
|
|
4198
4099
|
};
|
|
4199
4100
|
const deserializeAws_restJson1InstanceLimits = (output, context) => {
|
|
4200
4101
|
return {
|
|
4201
|
-
InstanceCountLimits: output.InstanceCountLimits
|
|
4102
|
+
InstanceCountLimits: output.InstanceCountLimits != null
|
|
4202
4103
|
? deserializeAws_restJson1InstanceCountLimits(output.InstanceCountLimits, context)
|
|
4203
4104
|
: undefined,
|
|
4204
4105
|
};
|
|
@@ -4220,9 +4121,7 @@ const deserializeAws_restJson1InstanceTypeDetails = (output, context) => {
|
|
|
4220
4121
|
AppLogsEnabled: (0, smithy_client_1.expectBoolean)(output.AppLogsEnabled),
|
|
4221
4122
|
CognitoEnabled: (0, smithy_client_1.expectBoolean)(output.CognitoEnabled),
|
|
4222
4123
|
EncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.EncryptionEnabled),
|
|
4223
|
-
InstanceRole: output.InstanceRole
|
|
4224
|
-
? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context)
|
|
4225
|
-
: undefined,
|
|
4124
|
+
InstanceRole: output.InstanceRole != null ? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context) : undefined,
|
|
4226
4125
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4227
4126
|
WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
|
|
4228
4127
|
};
|
|
@@ -4251,15 +4150,13 @@ const deserializeAws_restJson1Issues = (output, context) => {
|
|
|
4251
4150
|
};
|
|
4252
4151
|
const deserializeAws_restJson1Limits = (output, context) => {
|
|
4253
4152
|
return {
|
|
4254
|
-
AdditionalLimits: output.AdditionalLimits
|
|
4153
|
+
AdditionalLimits: output.AdditionalLimits != null
|
|
4255
4154
|
? deserializeAws_restJson1AdditionalLimitList(output.AdditionalLimits, context)
|
|
4256
4155
|
: undefined,
|
|
4257
|
-
InstanceLimits: output.InstanceLimits
|
|
4156
|
+
InstanceLimits: output.InstanceLimits != null
|
|
4258
4157
|
? deserializeAws_restJson1InstanceLimits(output.InstanceLimits, context)
|
|
4259
4158
|
: undefined,
|
|
4260
|
-
StorageTypes: output.StorageTypes
|
|
4261
|
-
? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context)
|
|
4262
|
-
: undefined,
|
|
4159
|
+
StorageTypes: output.StorageTypes != null ? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context) : undefined,
|
|
4263
4160
|
};
|
|
4264
4161
|
};
|
|
4265
4162
|
const deserializeAws_restJson1LimitsByRole = (output, context) => {
|
|
@@ -4303,12 +4200,8 @@ const deserializeAws_restJson1LogPublishingOptions = (output, context) => {
|
|
|
4303
4200
|
};
|
|
4304
4201
|
const deserializeAws_restJson1LogPublishingOptionsStatus = (output, context) => {
|
|
4305
4202
|
return {
|
|
4306
|
-
Options: output.Options
|
|
4307
|
-
|
|
4308
|
-
: undefined,
|
|
4309
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4310
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4311
|
-
: undefined,
|
|
4203
|
+
Options: output.Options != null ? deserializeAws_restJson1LogPublishingOptions(output.Options, context) : undefined,
|
|
4204
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4312
4205
|
};
|
|
4313
4206
|
};
|
|
4314
4207
|
const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) => {
|
|
@@ -4318,24 +4211,18 @@ const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) =>
|
|
|
4318
4211
|
};
|
|
4319
4212
|
const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, context) => {
|
|
4320
4213
|
return {
|
|
4321
|
-
Options: output.Options
|
|
4322
|
-
|
|
4323
|
-
: undefined,
|
|
4324
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4325
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4326
|
-
: undefined,
|
|
4214
|
+
Options: output.Options != null ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.Options, context) : undefined,
|
|
4215
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4327
4216
|
};
|
|
4328
4217
|
};
|
|
4329
4218
|
const deserializeAws_restJson1OptionStatus = (output, context) => {
|
|
4330
4219
|
return {
|
|
4331
|
-
CreationDate: output.CreationDate
|
|
4220
|
+
CreationDate: output.CreationDate != null
|
|
4332
4221
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
4333
4222
|
: undefined,
|
|
4334
4223
|
PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
|
|
4335
4224
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
4336
|
-
UpdateDate: output.UpdateDate
|
|
4337
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
|
|
4338
|
-
: undefined,
|
|
4225
|
+
UpdateDate: output.UpdateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate))) : undefined,
|
|
4339
4226
|
UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
|
|
4340
4227
|
};
|
|
4341
4228
|
};
|
|
@@ -4343,13 +4230,13 @@ const deserializeAws_restJson1OutboundConnection = (output, context) => {
|
|
|
4343
4230
|
return {
|
|
4344
4231
|
ConnectionAlias: (0, smithy_client_1.expectString)(output.ConnectionAlias),
|
|
4345
4232
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
4346
|
-
ConnectionStatus: output.ConnectionStatus
|
|
4233
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
4347
4234
|
? deserializeAws_restJson1OutboundConnectionStatus(output.ConnectionStatus, context)
|
|
4348
4235
|
: undefined,
|
|
4349
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
4236
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
4350
4237
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
4351
4238
|
: undefined,
|
|
4352
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
4239
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
4353
4240
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
4354
4241
|
: undefined,
|
|
4355
4242
|
};
|
|
@@ -4374,13 +4261,9 @@ const deserializeAws_restJson1OutboundConnectionStatus = (output, context) => {
|
|
|
4374
4261
|
const deserializeAws_restJson1PackageDetails = (output, context) => {
|
|
4375
4262
|
return {
|
|
4376
4263
|
AvailablePackageVersion: (0, smithy_client_1.expectString)(output.AvailablePackageVersion),
|
|
4377
|
-
CreatedAt: output.CreatedAt
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
|
|
4381
|
-
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
4382
|
-
: undefined,
|
|
4383
|
-
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
4264
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
4265
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
4266
|
+
LastUpdatedAt: output.LastUpdatedAt != null
|
|
4384
4267
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
4385
4268
|
: undefined,
|
|
4386
4269
|
PackageDescription: (0, smithy_client_1.expectString)(output.PackageDescription),
|
|
@@ -4404,9 +4287,7 @@ const deserializeAws_restJson1PackageDetailsList = (output, context) => {
|
|
|
4404
4287
|
const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
|
|
4405
4288
|
return {
|
|
4406
4289
|
CommitMessage: (0, smithy_client_1.expectString)(output.CommitMessage),
|
|
4407
|
-
CreatedAt: output.CreatedAt
|
|
4408
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
4409
|
-
: undefined,
|
|
4290
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
4410
4291
|
PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
|
|
4411
4292
|
};
|
|
4412
4293
|
};
|
|
@@ -4447,15 +4328,13 @@ const deserializeAws_restJson1ReservedInstance = (output, context) => {
|
|
|
4447
4328
|
InstanceCount: (0, smithy_client_1.expectInt32)(output.InstanceCount),
|
|
4448
4329
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4449
4330
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
4450
|
-
RecurringCharges: output.RecurringCharges
|
|
4331
|
+
RecurringCharges: output.RecurringCharges != null
|
|
4451
4332
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
4452
4333
|
: undefined,
|
|
4453
4334
|
ReservationName: (0, smithy_client_1.expectString)(output.ReservationName),
|
|
4454
4335
|
ReservedInstanceId: (0, smithy_client_1.expectString)(output.ReservedInstanceId),
|
|
4455
4336
|
ReservedInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedInstanceOfferingId),
|
|
4456
|
-
StartTime: output.StartTime
|
|
4457
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4458
|
-
: undefined,
|
|
4337
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4459
4338
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
4460
4339
|
UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
|
|
4461
4340
|
};
|
|
@@ -4478,7 +4357,7 @@ const deserializeAws_restJson1ReservedInstanceOffering = (output, context) => {
|
|
|
4478
4357
|
FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
|
|
4479
4358
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4480
4359
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
4481
|
-
RecurringCharges: output.RecurringCharges
|
|
4360
|
+
RecurringCharges: output.RecurringCharges != null
|
|
4482
4361
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
4483
4362
|
: undefined,
|
|
4484
4363
|
ReservedInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedInstanceOfferingId),
|
|
@@ -4505,9 +4384,7 @@ const deserializeAws_restJson1SAMLIdp = (output, context) => {
|
|
|
4505
4384
|
const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
|
|
4506
4385
|
return {
|
|
4507
4386
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
4508
|
-
Idp: output.Idp
|
|
4509
|
-
? deserializeAws_restJson1SAMLIdp(output.Idp, context)
|
|
4510
|
-
: undefined,
|
|
4387
|
+
Idp: output.Idp != null ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined,
|
|
4511
4388
|
RolesKey: (0, smithy_client_1.expectString)(output.RolesKey),
|
|
4512
4389
|
SessionTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.SessionTimeoutMinutes),
|
|
4513
4390
|
SubjectKey: (0, smithy_client_1.expectString)(output.SubjectKey),
|
|
@@ -4517,15 +4394,13 @@ const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
|
|
|
4517
4394
|
return {
|
|
4518
4395
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
4519
4396
|
ActionType: (0, smithy_client_1.expectString)(output.ActionType),
|
|
4520
|
-
Date: output.Date
|
|
4521
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date)))
|
|
4522
|
-
: undefined,
|
|
4397
|
+
Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
|
|
4523
4398
|
Severity: (0, smithy_client_1.expectString)(output.Severity),
|
|
4524
4399
|
};
|
|
4525
4400
|
};
|
|
4526
4401
|
const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
|
|
4527
4402
|
return {
|
|
4528
|
-
AutomatedUpdateDate: output.AutomatedUpdateDate
|
|
4403
|
+
AutomatedUpdateDate: output.AutomatedUpdateDate != null
|
|
4529
4404
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AutomatedUpdateDate)))
|
|
4530
4405
|
: undefined,
|
|
4531
4406
|
Cancellable: (0, smithy_client_1.expectBoolean)(output.Cancellable),
|
|
@@ -4544,18 +4419,14 @@ const deserializeAws_restJson1SnapshotOptions = (output, context) => {
|
|
|
4544
4419
|
};
|
|
4545
4420
|
const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
|
|
4546
4421
|
return {
|
|
4547
|
-
Options: output.Options
|
|
4548
|
-
|
|
4549
|
-
: undefined,
|
|
4550
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4551
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4552
|
-
: undefined,
|
|
4422
|
+
Options: output.Options != null ? deserializeAws_restJson1SnapshotOptions(output.Options, context) : undefined,
|
|
4423
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4553
4424
|
};
|
|
4554
4425
|
};
|
|
4555
4426
|
const deserializeAws_restJson1StorageType = (output, context) => {
|
|
4556
4427
|
return {
|
|
4557
4428
|
StorageSubTypeName: (0, smithy_client_1.expectString)(output.StorageSubTypeName),
|
|
4558
|
-
StorageTypeLimits: output.StorageTypeLimits
|
|
4429
|
+
StorageTypeLimits: output.StorageTypeLimits != null
|
|
4559
4430
|
? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
|
|
4560
4431
|
: undefined,
|
|
4561
4432
|
StorageTypeName: (0, smithy_client_1.expectString)(output.StorageTypeName),
|
|
@@ -4564,9 +4435,7 @@ const deserializeAws_restJson1StorageType = (output, context) => {
|
|
|
4564
4435
|
const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
|
|
4565
4436
|
return {
|
|
4566
4437
|
LimitName: (0, smithy_client_1.expectString)(output.LimitName),
|
|
4567
|
-
LimitValues: output.LimitValues
|
|
4568
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
4569
|
-
: undefined,
|
|
4438
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
4570
4439
|
};
|
|
4571
4440
|
};
|
|
4572
4441
|
const deserializeAws_restJson1StorageTypeLimitList = (output, context) => {
|
|
@@ -4621,12 +4490,10 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
4621
4490
|
};
|
|
4622
4491
|
const deserializeAws_restJson1UpgradeHistory = (output, context) => {
|
|
4623
4492
|
return {
|
|
4624
|
-
StartTimestamp: output.StartTimestamp
|
|
4493
|
+
StartTimestamp: output.StartTimestamp != null
|
|
4625
4494
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
|
|
4626
4495
|
: undefined,
|
|
4627
|
-
StepsList: output.StepsList
|
|
4628
|
-
? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
|
|
4629
|
-
: undefined,
|
|
4496
|
+
StepsList: output.StepsList != null ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context) : undefined,
|
|
4630
4497
|
UpgradeName: (0, smithy_client_1.expectString)(output.UpgradeName),
|
|
4631
4498
|
UpgradeStatus: (0, smithy_client_1.expectString)(output.UpgradeStatus),
|
|
4632
4499
|
};
|
|
@@ -4644,9 +4511,7 @@ const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
|
|
|
4644
4511
|
};
|
|
4645
4512
|
const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
|
|
4646
4513
|
return {
|
|
4647
|
-
Issues: output.Issues
|
|
4648
|
-
? deserializeAws_restJson1Issues(output.Issues, context)
|
|
4649
|
-
: undefined,
|
|
4514
|
+
Issues: output.Issues != null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined,
|
|
4650
4515
|
ProgressPercent: (0, smithy_client_1.limitedParseDouble)(output.ProgressPercent),
|
|
4651
4516
|
UpgradeStep: (0, smithy_client_1.expectString)(output.UpgradeStep),
|
|
4652
4517
|
UpgradeStepStatus: (0, smithy_client_1.expectString)(output.UpgradeStepStatus),
|
|
@@ -4677,33 +4542,25 @@ const deserializeAws_restJson1VersionList = (output, context) => {
|
|
|
4677
4542
|
const deserializeAws_restJson1VersionStatus = (output, context) => {
|
|
4678
4543
|
return {
|
|
4679
4544
|
Options: (0, smithy_client_1.expectString)(output.Options),
|
|
4680
|
-
Status: output.Status
|
|
4681
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4682
|
-
: undefined,
|
|
4545
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4683
4546
|
};
|
|
4684
4547
|
};
|
|
4685
4548
|
const deserializeAws_restJson1VPCDerivedInfo = (output, context) => {
|
|
4686
4549
|
return {
|
|
4687
|
-
AvailabilityZones: output.AvailabilityZones
|
|
4550
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
4688
4551
|
? deserializeAws_restJson1StringList(output.AvailabilityZones, context)
|
|
4689
4552
|
: undefined,
|
|
4690
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
4553
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
4691
4554
|
? deserializeAws_restJson1StringList(output.SecurityGroupIds, context)
|
|
4692
4555
|
: undefined,
|
|
4693
|
-
SubnetIds: output.SubnetIds
|
|
4694
|
-
? deserializeAws_restJson1StringList(output.SubnetIds, context)
|
|
4695
|
-
: undefined,
|
|
4556
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1StringList(output.SubnetIds, context) : undefined,
|
|
4696
4557
|
VPCId: (0, smithy_client_1.expectString)(output.VPCId),
|
|
4697
4558
|
};
|
|
4698
4559
|
};
|
|
4699
4560
|
const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
|
|
4700
4561
|
return {
|
|
4701
|
-
Options: output.Options
|
|
4702
|
-
|
|
4703
|
-
: undefined,
|
|
4704
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4705
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4706
|
-
: undefined,
|
|
4562
|
+
Options: output.Options != null ? deserializeAws_restJson1VPCDerivedInfo(output.Options, context) : undefined,
|
|
4563
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4707
4564
|
};
|
|
4708
4565
|
};
|
|
4709
4566
|
const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
|
|
@@ -4760,5 +4617,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4760
4617
|
if (data["__type"] !== undefined) {
|
|
4761
4618
|
return sanitizeErrorCode(data["__type"]);
|
|
4762
4619
|
}
|
|
4763
|
-
return "";
|
|
4764
4620
|
};
|