@aws-sdk/client-opensearch 3.121.0 → 3.130.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 +254 -434
- package/dist-es/protocols/Aws_restJson1.js +185 -365
- 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,
|
|
@@ -3349,29 +3305,26 @@ const serializeAws_restJson1AdvancedOptions = (input, context) => {
|
|
|
3349
3305
|
};
|
|
3350
3306
|
const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
|
|
3351
3307
|
return {
|
|
3352
|
-
...(input.AnonymousAuthEnabled
|
|
3353
|
-
|
|
3354
|
-
...(input.
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
...(input.MasterUserOptions
|
|
3358
|
-
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 && {
|
|
3359
3314
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
3360
3315
|
}),
|
|
3361
|
-
...(input.SAMLOptions
|
|
3362
|
-
input.SAMLOptions !== null && {
|
|
3316
|
+
...(input.SAMLOptions != null && {
|
|
3363
3317
|
SAMLOptions: serializeAws_restJson1SAMLOptionsInput(input.SAMLOptions, context),
|
|
3364
3318
|
}),
|
|
3365
3319
|
};
|
|
3366
3320
|
};
|
|
3367
3321
|
const serializeAws_restJson1AutoTuneMaintenanceSchedule = (input, context) => {
|
|
3368
3322
|
return {
|
|
3369
|
-
...(input.CronExpressionForRecurrence
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
...(input.StartAt
|
|
3374
|
-
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) }),
|
|
3375
3328
|
};
|
|
3376
3329
|
};
|
|
3377
3330
|
const serializeAws_restJson1AutoTuneMaintenanceScheduleList = (input, context) => {
|
|
@@ -3386,75 +3339,64 @@ const serializeAws_restJson1AutoTuneMaintenanceScheduleList = (input, context) =
|
|
|
3386
3339
|
};
|
|
3387
3340
|
const serializeAws_restJson1AutoTuneOptions = (input, context) => {
|
|
3388
3341
|
return {
|
|
3389
|
-
...(input.DesiredState
|
|
3390
|
-
...(input.MaintenanceSchedules
|
|
3391
|
-
input.MaintenanceSchedules !== null && {
|
|
3342
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
3343
|
+
...(input.MaintenanceSchedules != null && {
|
|
3392
3344
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
3393
3345
|
}),
|
|
3394
|
-
...(input.RollbackOnDisable
|
|
3395
|
-
input.RollbackOnDisable !== null && { RollbackOnDisable: input.RollbackOnDisable }),
|
|
3346
|
+
...(input.RollbackOnDisable != null && { RollbackOnDisable: input.RollbackOnDisable }),
|
|
3396
3347
|
};
|
|
3397
3348
|
};
|
|
3398
3349
|
const serializeAws_restJson1AutoTuneOptionsInput = (input, context) => {
|
|
3399
3350
|
return {
|
|
3400
|
-
...(input.DesiredState
|
|
3401
|
-
...(input.MaintenanceSchedules
|
|
3402
|
-
input.MaintenanceSchedules !== null && {
|
|
3351
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
3352
|
+
...(input.MaintenanceSchedules != null && {
|
|
3403
3353
|
MaintenanceSchedules: serializeAws_restJson1AutoTuneMaintenanceScheduleList(input.MaintenanceSchedules, context),
|
|
3404
3354
|
}),
|
|
3405
3355
|
};
|
|
3406
3356
|
};
|
|
3407
3357
|
const serializeAws_restJson1AWSDomainInformation = (input, context) => {
|
|
3408
3358
|
return {
|
|
3409
|
-
...(input.DomainName
|
|
3410
|
-
...(input.OwnerId
|
|
3411
|
-
...(input.Region
|
|
3359
|
+
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
3360
|
+
...(input.OwnerId != null && { OwnerId: input.OwnerId }),
|
|
3361
|
+
...(input.Region != null && { Region: input.Region }),
|
|
3412
3362
|
};
|
|
3413
3363
|
};
|
|
3414
3364
|
const serializeAws_restJson1ClusterConfig = (input, context) => {
|
|
3415
3365
|
return {
|
|
3416
|
-
...(input.ColdStorageOptions
|
|
3417
|
-
input.ColdStorageOptions !== null && {
|
|
3366
|
+
...(input.ColdStorageOptions != null && {
|
|
3418
3367
|
ColdStorageOptions: serializeAws_restJson1ColdStorageOptions(input.ColdStorageOptions, context),
|
|
3419
3368
|
}),
|
|
3420
|
-
...(input.DedicatedMasterCount
|
|
3421
|
-
|
|
3422
|
-
...(input.
|
|
3423
|
-
|
|
3424
|
-
...(input.
|
|
3425
|
-
|
|
3426
|
-
...(input.
|
|
3427
|
-
...(input.
|
|
3428
|
-
...(input.
|
|
3429
|
-
...(input.WarmEnabled !== undefined && input.WarmEnabled !== null && { WarmEnabled: input.WarmEnabled }),
|
|
3430
|
-
...(input.WarmType !== undefined && input.WarmType !== null && { WarmType: input.WarmType }),
|
|
3431
|
-
...(input.ZoneAwarenessConfig !== undefined &&
|
|
3432
|
-
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 && {
|
|
3433
3378
|
ZoneAwarenessConfig: serializeAws_restJson1ZoneAwarenessConfig(input.ZoneAwarenessConfig, context),
|
|
3434
3379
|
}),
|
|
3435
|
-
...(input.ZoneAwarenessEnabled
|
|
3436
|
-
input.ZoneAwarenessEnabled !== null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }),
|
|
3380
|
+
...(input.ZoneAwarenessEnabled != null && { ZoneAwarenessEnabled: input.ZoneAwarenessEnabled }),
|
|
3437
3381
|
};
|
|
3438
3382
|
};
|
|
3439
3383
|
const serializeAws_restJson1CognitoOptions = (input, context) => {
|
|
3440
3384
|
return {
|
|
3441
|
-
...(input.Enabled
|
|
3442
|
-
...(input.IdentityPoolId
|
|
3443
|
-
|
|
3444
|
-
...(input.
|
|
3445
|
-
...(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 }),
|
|
3446
3389
|
};
|
|
3447
3390
|
};
|
|
3448
3391
|
const serializeAws_restJson1ColdStorageOptions = (input, context) => {
|
|
3449
3392
|
return {
|
|
3450
|
-
...(input.Enabled
|
|
3393
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3451
3394
|
};
|
|
3452
3395
|
};
|
|
3453
3396
|
const serializeAws_restJson1DescribePackagesFilter = (input, context) => {
|
|
3454
3397
|
return {
|
|
3455
|
-
...(input.Name
|
|
3456
|
-
...(input.Value
|
|
3457
|
-
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) }),
|
|
3458
3400
|
};
|
|
3459
3401
|
};
|
|
3460
3402
|
const serializeAws_restJson1DescribePackagesFilterList = (input, context) => {
|
|
@@ -3479,23 +3421,18 @@ const serializeAws_restJson1DescribePackagesFilterValues = (input, context) => {
|
|
|
3479
3421
|
};
|
|
3480
3422
|
const serializeAws_restJson1DomainEndpointOptions = (input, context) => {
|
|
3481
3423
|
return {
|
|
3482
|
-
...(input.CustomEndpoint
|
|
3483
|
-
|
|
3484
|
-
...(input.CustomEndpointCertificateArn !== undefined &&
|
|
3485
|
-
input.CustomEndpointCertificateArn !== null && {
|
|
3424
|
+
...(input.CustomEndpoint != null && { CustomEndpoint: input.CustomEndpoint }),
|
|
3425
|
+
...(input.CustomEndpointCertificateArn != null && {
|
|
3486
3426
|
CustomEndpointCertificateArn: input.CustomEndpointCertificateArn,
|
|
3487
3427
|
}),
|
|
3488
|
-
...(input.CustomEndpointEnabled
|
|
3489
|
-
|
|
3490
|
-
...(input.
|
|
3491
|
-
...(input.TLSSecurityPolicy !== undefined &&
|
|
3492
|
-
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 }),
|
|
3493
3431
|
};
|
|
3494
3432
|
};
|
|
3495
3433
|
const serializeAws_restJson1DomainInformationContainer = (input, context) => {
|
|
3496
3434
|
return {
|
|
3497
|
-
...(input.AWSDomainInformation
|
|
3498
|
-
input.AWSDomainInformation !== null && {
|
|
3435
|
+
...(input.AWSDomainInformation != null && {
|
|
3499
3436
|
AWSDomainInformation: serializeAws_restJson1AWSDomainInformation(input.AWSDomainInformation, context),
|
|
3500
3437
|
}),
|
|
3501
3438
|
};
|
|
@@ -3512,29 +3449,28 @@ const serializeAws_restJson1DomainNameList = (input, context) => {
|
|
|
3512
3449
|
};
|
|
3513
3450
|
const serializeAws_restJson1Duration = (input, context) => {
|
|
3514
3451
|
return {
|
|
3515
|
-
...(input.Unit
|
|
3516
|
-
...(input.Value
|
|
3452
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
3453
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3517
3454
|
};
|
|
3518
3455
|
};
|
|
3519
3456
|
const serializeAws_restJson1EBSOptions = (input, context) => {
|
|
3520
3457
|
return {
|
|
3521
|
-
...(input.EBSEnabled
|
|
3522
|
-
...(input.Iops
|
|
3523
|
-
...(input.VolumeSize
|
|
3524
|
-
...(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 }),
|
|
3525
3462
|
};
|
|
3526
3463
|
};
|
|
3527
3464
|
const serializeAws_restJson1EncryptionAtRestOptions = (input, context) => {
|
|
3528
3465
|
return {
|
|
3529
|
-
...(input.Enabled
|
|
3530
|
-
...(input.KmsKeyId
|
|
3466
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3467
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
3531
3468
|
};
|
|
3532
3469
|
};
|
|
3533
3470
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
3534
3471
|
return {
|
|
3535
|
-
...(input.Name
|
|
3536
|
-
...(input.Values
|
|
3537
|
-
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) }),
|
|
3538
3474
|
};
|
|
3539
3475
|
};
|
|
3540
3476
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -3549,9 +3485,8 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
3549
3485
|
};
|
|
3550
3486
|
const serializeAws_restJson1LogPublishingOption = (input, context) => {
|
|
3551
3487
|
return {
|
|
3552
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
3553
|
-
|
|
3554
|
-
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
3488
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
3489
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3555
3490
|
};
|
|
3556
3491
|
};
|
|
3557
3492
|
const serializeAws_restJson1LogPublishingOptions = (input, context) => {
|
|
@@ -3567,49 +3502,42 @@ const serializeAws_restJson1LogPublishingOptions = (input, context) => {
|
|
|
3567
3502
|
};
|
|
3568
3503
|
const serializeAws_restJson1MasterUserOptions = (input, context) => {
|
|
3569
3504
|
return {
|
|
3570
|
-
...(input.MasterUserARN
|
|
3571
|
-
...(input.MasterUserName
|
|
3572
|
-
|
|
3573
|
-
...(input.MasterUserPassword !== undefined &&
|
|
3574
|
-
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 }),
|
|
3575
3508
|
};
|
|
3576
3509
|
};
|
|
3577
3510
|
const serializeAws_restJson1NodeToNodeEncryptionOptions = (input, context) => {
|
|
3578
3511
|
return {
|
|
3579
|
-
...(input.Enabled
|
|
3512
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3580
3513
|
};
|
|
3581
3514
|
};
|
|
3582
3515
|
const serializeAws_restJson1PackageSource = (input, context) => {
|
|
3583
3516
|
return {
|
|
3584
|
-
...(input.S3BucketName
|
|
3585
|
-
...(input.S3Key
|
|
3517
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
3518
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
3586
3519
|
};
|
|
3587
3520
|
};
|
|
3588
3521
|
const serializeAws_restJson1SAMLIdp = (input, context) => {
|
|
3589
3522
|
return {
|
|
3590
|
-
...(input.EntityId
|
|
3591
|
-
...(input.MetadataContent
|
|
3592
|
-
input.MetadataContent !== null && { MetadataContent: input.MetadataContent }),
|
|
3523
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
3524
|
+
...(input.MetadataContent != null && { MetadataContent: input.MetadataContent }),
|
|
3593
3525
|
};
|
|
3594
3526
|
};
|
|
3595
3527
|
const serializeAws_restJson1SAMLOptionsInput = (input, context) => {
|
|
3596
3528
|
return {
|
|
3597
|
-
...(input.Enabled
|
|
3598
|
-
...(input.Idp
|
|
3599
|
-
...(input.MasterBackendRole
|
|
3600
|
-
|
|
3601
|
-
...(input.
|
|
3602
|
-
|
|
3603
|
-
...(input.
|
|
3604
|
-
...(input.SessionTimeoutMinutes !== undefined &&
|
|
3605
|
-
input.SessionTimeoutMinutes !== null && { SessionTimeoutMinutes: input.SessionTimeoutMinutes }),
|
|
3606
|
-
...(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 }),
|
|
3607
3536
|
};
|
|
3608
3537
|
};
|
|
3609
3538
|
const serializeAws_restJson1SnapshotOptions = (input, context) => {
|
|
3610
3539
|
return {
|
|
3611
|
-
...(input.AutomatedSnapshotStartHour
|
|
3612
|
-
input.AutomatedSnapshotStartHour !== null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
|
|
3540
|
+
...(input.AutomatedSnapshotStartHour != null && { AutomatedSnapshotStartHour: input.AutomatedSnapshotStartHour }),
|
|
3613
3541
|
};
|
|
3614
3542
|
};
|
|
3615
3543
|
const serializeAws_restJson1StringList = (input, context) => {
|
|
@@ -3624,8 +3552,8 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
3624
3552
|
};
|
|
3625
3553
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3626
3554
|
return {
|
|
3627
|
-
...(input.Key
|
|
3628
|
-
...(input.Value
|
|
3555
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3556
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3629
3557
|
};
|
|
3630
3558
|
};
|
|
3631
3559
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -3650,34 +3578,27 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
|
|
|
3650
3578
|
};
|
|
3651
3579
|
const serializeAws_restJson1VPCOptions = (input, context) => {
|
|
3652
3580
|
return {
|
|
3653
|
-
...(input.SecurityGroupIds
|
|
3654
|
-
input.SecurityGroupIds !== null && {
|
|
3581
|
+
...(input.SecurityGroupIds != null && {
|
|
3655
3582
|
SecurityGroupIds: serializeAws_restJson1StringList(input.SecurityGroupIds, context),
|
|
3656
3583
|
}),
|
|
3657
|
-
...(input.SubnetIds
|
|
3658
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
|
|
3584
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1StringList(input.SubnetIds, context) }),
|
|
3659
3585
|
};
|
|
3660
3586
|
};
|
|
3661
3587
|
const serializeAws_restJson1ZoneAwarenessConfig = (input, context) => {
|
|
3662
3588
|
return {
|
|
3663
|
-
...(input.AvailabilityZoneCount
|
|
3664
|
-
input.AvailabilityZoneCount !== null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
|
|
3589
|
+
...(input.AvailabilityZoneCount != null && { AvailabilityZoneCount: input.AvailabilityZoneCount }),
|
|
3665
3590
|
};
|
|
3666
3591
|
};
|
|
3667
3592
|
const deserializeAws_restJson1AccessPoliciesStatus = (output, context) => {
|
|
3668
3593
|
return {
|
|
3669
3594
|
Options: (0, smithy_client_1.expectString)(output.Options),
|
|
3670
|
-
Status: output.Status
|
|
3671
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3672
|
-
: undefined,
|
|
3595
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3673
3596
|
};
|
|
3674
3597
|
};
|
|
3675
3598
|
const deserializeAws_restJson1AdditionalLimit = (output, context) => {
|
|
3676
3599
|
return {
|
|
3677
3600
|
LimitName: (0, smithy_client_1.expectString)(output.LimitName),
|
|
3678
|
-
LimitValues: output.LimitValues
|
|
3679
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
3680
|
-
: undefined,
|
|
3601
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
3681
3602
|
};
|
|
3682
3603
|
};
|
|
3683
3604
|
const deserializeAws_restJson1AdditionalLimitList = (output, context) => {
|
|
@@ -3704,40 +3625,30 @@ const deserializeAws_restJson1AdvancedOptions = (output, context) => {
|
|
|
3704
3625
|
};
|
|
3705
3626
|
const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
|
|
3706
3627
|
return {
|
|
3707
|
-
Options: output.Options
|
|
3708
|
-
|
|
3709
|
-
: undefined,
|
|
3710
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3711
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3712
|
-
: undefined,
|
|
3628
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedOptions(output.Options, context) : undefined,
|
|
3629
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3713
3630
|
};
|
|
3714
3631
|
};
|
|
3715
3632
|
const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
|
|
3716
3633
|
return {
|
|
3717
|
-
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate
|
|
3634
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate != null
|
|
3718
3635
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AnonymousAuthDisableDate)))
|
|
3719
3636
|
: undefined,
|
|
3720
3637
|
AnonymousAuthEnabled: (0, smithy_client_1.expectBoolean)(output.AnonymousAuthEnabled),
|
|
3721
3638
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3722
3639
|
InternalUserDatabaseEnabled: (0, smithy_client_1.expectBoolean)(output.InternalUserDatabaseEnabled),
|
|
3723
|
-
SAMLOptions: output.SAMLOptions
|
|
3724
|
-
? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context)
|
|
3725
|
-
: undefined,
|
|
3640
|
+
SAMLOptions: output.SAMLOptions != null ? deserializeAws_restJson1SAMLOptionsOutput(output.SAMLOptions, context) : undefined,
|
|
3726
3641
|
};
|
|
3727
3642
|
};
|
|
3728
3643
|
const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context) => {
|
|
3729
3644
|
return {
|
|
3730
|
-
Options: output.Options
|
|
3731
|
-
|
|
3732
|
-
: undefined,
|
|
3733
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3734
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3735
|
-
: undefined,
|
|
3645
|
+
Options: output.Options != null ? deserializeAws_restJson1AdvancedSecurityOptions(output.Options, context) : undefined,
|
|
3646
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3736
3647
|
};
|
|
3737
3648
|
};
|
|
3738
3649
|
const deserializeAws_restJson1AutoTune = (output, context) => {
|
|
3739
3650
|
return {
|
|
3740
|
-
AutoTuneDetails: output.AutoTuneDetails
|
|
3651
|
+
AutoTuneDetails: output.AutoTuneDetails != null
|
|
3741
3652
|
? deserializeAws_restJson1AutoTuneDetails(output.AutoTuneDetails, context)
|
|
3742
3653
|
: undefined,
|
|
3743
3654
|
AutoTuneType: (0, smithy_client_1.expectString)(output.AutoTuneType),
|
|
@@ -3745,7 +3656,7 @@ const deserializeAws_restJson1AutoTune = (output, context) => {
|
|
|
3745
3656
|
};
|
|
3746
3657
|
const deserializeAws_restJson1AutoTuneDetails = (output, context) => {
|
|
3747
3658
|
return {
|
|
3748
|
-
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails
|
|
3659
|
+
ScheduledAutoTuneDetails: output.ScheduledAutoTuneDetails != null
|
|
3749
3660
|
? deserializeAws_restJson1ScheduledAutoTuneDetails(output.ScheduledAutoTuneDetails, context)
|
|
3750
3661
|
: undefined,
|
|
3751
3662
|
};
|
|
@@ -3764,12 +3675,8 @@ const deserializeAws_restJson1AutoTuneList = (output, context) => {
|
|
|
3764
3675
|
const deserializeAws_restJson1AutoTuneMaintenanceSchedule = (output, context) => {
|
|
3765
3676
|
return {
|
|
3766
3677
|
CronExpressionForRecurrence: (0, smithy_client_1.expectString)(output.CronExpressionForRecurrence),
|
|
3767
|
-
Duration: output.Duration
|
|
3768
|
-
|
|
3769
|
-
: undefined,
|
|
3770
|
-
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
3771
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartAt)))
|
|
3772
|
-
: 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,
|
|
3773
3680
|
};
|
|
3774
3681
|
};
|
|
3775
3682
|
const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context) => {
|
|
@@ -3786,7 +3693,7 @@ const deserializeAws_restJson1AutoTuneMaintenanceScheduleList = (output, context
|
|
|
3786
3693
|
const deserializeAws_restJson1AutoTuneOptions = (output, context) => {
|
|
3787
3694
|
return {
|
|
3788
3695
|
DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
|
|
3789
|
-
MaintenanceSchedules: output.MaintenanceSchedules
|
|
3696
|
+
MaintenanceSchedules: output.MaintenanceSchedules != null
|
|
3790
3697
|
? deserializeAws_restJson1AutoTuneMaintenanceScheduleList(output.MaintenanceSchedules, context)
|
|
3791
3698
|
: undefined,
|
|
3792
3699
|
RollbackOnDisable: (0, smithy_client_1.expectString)(output.RollbackOnDisable),
|
|
@@ -3800,25 +3707,19 @@ const deserializeAws_restJson1AutoTuneOptionsOutput = (output, context) => {
|
|
|
3800
3707
|
};
|
|
3801
3708
|
const deserializeAws_restJson1AutoTuneOptionsStatus = (output, context) => {
|
|
3802
3709
|
return {
|
|
3803
|
-
Options: output.Options
|
|
3804
|
-
|
|
3805
|
-
: undefined,
|
|
3806
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3807
|
-
? deserializeAws_restJson1AutoTuneStatus(output.Status, context)
|
|
3808
|
-
: undefined,
|
|
3710
|
+
Options: output.Options != null ? deserializeAws_restJson1AutoTuneOptions(output.Options, context) : undefined,
|
|
3711
|
+
Status: output.Status != null ? deserializeAws_restJson1AutoTuneStatus(output.Status, context) : undefined,
|
|
3809
3712
|
};
|
|
3810
3713
|
};
|
|
3811
3714
|
const deserializeAws_restJson1AutoTuneStatus = (output, context) => {
|
|
3812
3715
|
return {
|
|
3813
|
-
CreationDate: output.CreationDate
|
|
3716
|
+
CreationDate: output.CreationDate != null
|
|
3814
3717
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
3815
3718
|
: undefined,
|
|
3816
3719
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3817
3720
|
PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
|
|
3818
3721
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3819
|
-
UpdateDate: output.UpdateDate
|
|
3820
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
|
|
3821
|
-
: undefined,
|
|
3722
|
+
UpdateDate: output.UpdateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate))) : undefined,
|
|
3822
3723
|
UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
|
|
3823
3724
|
};
|
|
3824
3725
|
};
|
|
@@ -3838,7 +3739,7 @@ const deserializeAws_restJson1ChangeProgressDetails = (output, context) => {
|
|
|
3838
3739
|
const deserializeAws_restJson1ChangeProgressStage = (output, context) => {
|
|
3839
3740
|
return {
|
|
3840
3741
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3841
|
-
LastUpdated: output.LastUpdated
|
|
3742
|
+
LastUpdated: output.LastUpdated != null
|
|
3842
3743
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
3843
3744
|
: undefined,
|
|
3844
3745
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3859,25 +3760,23 @@ const deserializeAws_restJson1ChangeProgressStageList = (output, context) => {
|
|
|
3859
3760
|
const deserializeAws_restJson1ChangeProgressStatusDetails = (output, context) => {
|
|
3860
3761
|
return {
|
|
3861
3762
|
ChangeId: (0, smithy_client_1.expectString)(output.ChangeId),
|
|
3862
|
-
ChangeProgressStages: output.ChangeProgressStages
|
|
3763
|
+
ChangeProgressStages: output.ChangeProgressStages != null
|
|
3863
3764
|
? deserializeAws_restJson1ChangeProgressStageList(output.ChangeProgressStages, context)
|
|
3864
3765
|
: undefined,
|
|
3865
|
-
CompletedProperties: output.CompletedProperties
|
|
3766
|
+
CompletedProperties: output.CompletedProperties != null
|
|
3866
3767
|
? deserializeAws_restJson1StringList(output.CompletedProperties, context)
|
|
3867
3768
|
: undefined,
|
|
3868
|
-
PendingProperties: output.PendingProperties
|
|
3769
|
+
PendingProperties: output.PendingProperties != null
|
|
3869
3770
|
? deserializeAws_restJson1StringList(output.PendingProperties, context)
|
|
3870
3771
|
: undefined,
|
|
3871
|
-
StartTime: output.StartTime
|
|
3872
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3873
|
-
: undefined,
|
|
3772
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3874
3773
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3875
3774
|
TotalNumberOfStages: (0, smithy_client_1.expectInt32)(output.TotalNumberOfStages),
|
|
3876
3775
|
};
|
|
3877
3776
|
};
|
|
3878
3777
|
const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
3879
3778
|
return {
|
|
3880
|
-
ColdStorageOptions: output.ColdStorageOptions
|
|
3779
|
+
ColdStorageOptions: output.ColdStorageOptions != null
|
|
3881
3780
|
? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
|
|
3882
3781
|
: undefined,
|
|
3883
3782
|
DedicatedMasterCount: (0, smithy_client_1.expectInt32)(output.DedicatedMasterCount),
|
|
@@ -3888,7 +3787,7 @@ const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
|
3888
3787
|
WarmCount: (0, smithy_client_1.expectInt32)(output.WarmCount),
|
|
3889
3788
|
WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
|
|
3890
3789
|
WarmType: (0, smithy_client_1.expectString)(output.WarmType),
|
|
3891
|
-
ZoneAwarenessConfig: output.ZoneAwarenessConfig
|
|
3790
|
+
ZoneAwarenessConfig: output.ZoneAwarenessConfig != null
|
|
3892
3791
|
? deserializeAws_restJson1ZoneAwarenessConfig(output.ZoneAwarenessConfig, context)
|
|
3893
3792
|
: undefined,
|
|
3894
3793
|
ZoneAwarenessEnabled: (0, smithy_client_1.expectBoolean)(output.ZoneAwarenessEnabled),
|
|
@@ -3896,12 +3795,8 @@ const deserializeAws_restJson1ClusterConfig = (output, context) => {
|
|
|
3896
3795
|
};
|
|
3897
3796
|
const deserializeAws_restJson1ClusterConfigStatus = (output, context) => {
|
|
3898
3797
|
return {
|
|
3899
|
-
Options: output.Options
|
|
3900
|
-
|
|
3901
|
-
: undefined,
|
|
3902
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3903
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3904
|
-
: undefined,
|
|
3798
|
+
Options: output.Options != null ? deserializeAws_restJson1ClusterConfig(output.Options, context) : undefined,
|
|
3799
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3905
3800
|
};
|
|
3906
3801
|
};
|
|
3907
3802
|
const deserializeAws_restJson1CognitoOptions = (output, context) => {
|
|
@@ -3914,12 +3809,8 @@ const deserializeAws_restJson1CognitoOptions = (output, context) => {
|
|
|
3914
3809
|
};
|
|
3915
3810
|
const deserializeAws_restJson1CognitoOptionsStatus = (output, context) => {
|
|
3916
3811
|
return {
|
|
3917
|
-
Options: output.Options
|
|
3918
|
-
|
|
3919
|
-
: undefined,
|
|
3920
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
3921
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
3922
|
-
: undefined,
|
|
3812
|
+
Options: output.Options != null ? deserializeAws_restJson1CognitoOptions(output.Options, context) : undefined,
|
|
3813
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3923
3814
|
};
|
|
3924
3815
|
};
|
|
3925
3816
|
const deserializeAws_restJson1ColdStorageOptions = (output, context) => {
|
|
@@ -3941,58 +3832,50 @@ const deserializeAws_restJson1CompatibleVersionsList = (output, context) => {
|
|
|
3941
3832
|
const deserializeAws_restJson1CompatibleVersionsMap = (output, context) => {
|
|
3942
3833
|
return {
|
|
3943
3834
|
SourceVersion: (0, smithy_client_1.expectString)(output.SourceVersion),
|
|
3944
|
-
TargetVersions: output.TargetVersions
|
|
3945
|
-
? deserializeAws_restJson1VersionList(output.TargetVersions, context)
|
|
3946
|
-
: undefined,
|
|
3835
|
+
TargetVersions: output.TargetVersions != null ? deserializeAws_restJson1VersionList(output.TargetVersions, context) : undefined,
|
|
3947
3836
|
};
|
|
3948
3837
|
};
|
|
3949
3838
|
const deserializeAws_restJson1DomainConfig = (output, context) => {
|
|
3950
3839
|
return {
|
|
3951
|
-
AccessPolicies: output.AccessPolicies
|
|
3840
|
+
AccessPolicies: output.AccessPolicies != null
|
|
3952
3841
|
? deserializeAws_restJson1AccessPoliciesStatus(output.AccessPolicies, context)
|
|
3953
3842
|
: undefined,
|
|
3954
|
-
AdvancedOptions: output.AdvancedOptions
|
|
3843
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
3955
3844
|
? deserializeAws_restJson1AdvancedOptionsStatus(output.AdvancedOptions, context)
|
|
3956
3845
|
: undefined,
|
|
3957
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
3846
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
3958
3847
|
? deserializeAws_restJson1AdvancedSecurityOptionsStatus(output.AdvancedSecurityOptions, context)
|
|
3959
3848
|
: undefined,
|
|
3960
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
3849
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
3961
3850
|
? deserializeAws_restJson1AutoTuneOptionsStatus(output.AutoTuneOptions, context)
|
|
3962
3851
|
: undefined,
|
|
3963
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
3852
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
3964
3853
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
3965
3854
|
: undefined,
|
|
3966
|
-
ClusterConfig: output.ClusterConfig
|
|
3855
|
+
ClusterConfig: output.ClusterConfig != null
|
|
3967
3856
|
? deserializeAws_restJson1ClusterConfigStatus(output.ClusterConfig, context)
|
|
3968
3857
|
: undefined,
|
|
3969
|
-
CognitoOptions: output.CognitoOptions
|
|
3858
|
+
CognitoOptions: output.CognitoOptions != null
|
|
3970
3859
|
? deserializeAws_restJson1CognitoOptionsStatus(output.CognitoOptions, context)
|
|
3971
3860
|
: undefined,
|
|
3972
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
3861
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
3973
3862
|
? deserializeAws_restJson1DomainEndpointOptionsStatus(output.DomainEndpointOptions, context)
|
|
3974
3863
|
: undefined,
|
|
3975
|
-
EBSOptions: output.EBSOptions
|
|
3976
|
-
|
|
3977
|
-
: undefined,
|
|
3978
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
3864
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptionsStatus(output.EBSOptions, context) : undefined,
|
|
3865
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
3979
3866
|
? deserializeAws_restJson1EncryptionAtRestOptionsStatus(output.EncryptionAtRestOptions, context)
|
|
3980
3867
|
: undefined,
|
|
3981
|
-
EngineVersion: output.EngineVersion
|
|
3982
|
-
|
|
3983
|
-
: undefined,
|
|
3984
|
-
LogPublishingOptions: output.LogPublishingOptions !== undefined && output.LogPublishingOptions !== null
|
|
3868
|
+
EngineVersion: output.EngineVersion != null ? deserializeAws_restJson1VersionStatus(output.EngineVersion, context) : undefined,
|
|
3869
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
3985
3870
|
? deserializeAws_restJson1LogPublishingOptionsStatus(output.LogPublishingOptions, context)
|
|
3986
3871
|
: undefined,
|
|
3987
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
3872
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
3988
3873
|
? deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus(output.NodeToNodeEncryptionOptions, context)
|
|
3989
3874
|
: undefined,
|
|
3990
|
-
SnapshotOptions: output.SnapshotOptions
|
|
3875
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
3991
3876
|
? deserializeAws_restJson1SnapshotOptionsStatus(output.SnapshotOptions, context)
|
|
3992
3877
|
: undefined,
|
|
3993
|
-
VPCOptions: output.VPCOptions
|
|
3994
|
-
? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context)
|
|
3995
|
-
: undefined,
|
|
3878
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfoStatus(output.VPCOptions, context) : undefined,
|
|
3996
3879
|
};
|
|
3997
3880
|
};
|
|
3998
3881
|
const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
|
|
@@ -4006,12 +3889,8 @@ const deserializeAws_restJson1DomainEndpointOptions = (output, context) => {
|
|
|
4006
3889
|
};
|
|
4007
3890
|
const deserializeAws_restJson1DomainEndpointOptionsStatus = (output, context) => {
|
|
4008
3891
|
return {
|
|
4009
|
-
Options: output.Options
|
|
4010
|
-
|
|
4011
|
-
: undefined,
|
|
4012
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4013
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4014
|
-
: undefined,
|
|
3892
|
+
Options: output.Options != null ? deserializeAws_restJson1DomainEndpointOptions(output.Options, context) : undefined,
|
|
3893
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4015
3894
|
};
|
|
4016
3895
|
};
|
|
4017
3896
|
const deserializeAws_restJson1DomainInfo = (output, context) => {
|
|
@@ -4033,7 +3912,7 @@ const deserializeAws_restJson1DomainInfoList = (output, context) => {
|
|
|
4033
3912
|
};
|
|
4034
3913
|
const deserializeAws_restJson1DomainInformationContainer = (output, context) => {
|
|
4035
3914
|
return {
|
|
4036
|
-
AWSDomainInformation: output.AWSDomainInformation
|
|
3915
|
+
AWSDomainInformation: output.AWSDomainInformation != null
|
|
4037
3916
|
? deserializeAws_restJson1AWSDomainInformation(output.AWSDomainInformation, context)
|
|
4038
3917
|
: undefined,
|
|
4039
3918
|
};
|
|
@@ -4042,10 +3921,8 @@ const deserializeAws_restJson1DomainPackageDetails = (output, context) => {
|
|
|
4042
3921
|
return {
|
|
4043
3922
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
4044
3923
|
DomainPackageStatus: (0, smithy_client_1.expectString)(output.DomainPackageStatus),
|
|
4045
|
-
ErrorDetails: output.ErrorDetails
|
|
4046
|
-
|
|
4047
|
-
: undefined,
|
|
4048
|
-
LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
|
|
3924
|
+
ErrorDetails: output.ErrorDetails != null ? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context) : undefined,
|
|
3925
|
+
LastUpdated: output.LastUpdated != null
|
|
4049
3926
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
4050
3927
|
: undefined,
|
|
4051
3928
|
PackageID: (0, smithy_client_1.expectString)(output.PackageID),
|
|
@@ -4070,59 +3947,51 @@ const deserializeAws_restJson1DomainStatus = (output, context) => {
|
|
|
4070
3947
|
return {
|
|
4071
3948
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
4072
3949
|
AccessPolicies: (0, smithy_client_1.expectString)(output.AccessPolicies),
|
|
4073
|
-
AdvancedOptions: output.AdvancedOptions
|
|
3950
|
+
AdvancedOptions: output.AdvancedOptions != null
|
|
4074
3951
|
? deserializeAws_restJson1AdvancedOptions(output.AdvancedOptions, context)
|
|
4075
3952
|
: undefined,
|
|
4076
|
-
AdvancedSecurityOptions: output.AdvancedSecurityOptions
|
|
3953
|
+
AdvancedSecurityOptions: output.AdvancedSecurityOptions != null
|
|
4077
3954
|
? deserializeAws_restJson1AdvancedSecurityOptions(output.AdvancedSecurityOptions, context)
|
|
4078
3955
|
: undefined,
|
|
4079
|
-
AutoTuneOptions: output.AutoTuneOptions
|
|
3956
|
+
AutoTuneOptions: output.AutoTuneOptions != null
|
|
4080
3957
|
? deserializeAws_restJson1AutoTuneOptionsOutput(output.AutoTuneOptions, context)
|
|
4081
3958
|
: undefined,
|
|
4082
|
-
ChangeProgressDetails: output.ChangeProgressDetails
|
|
3959
|
+
ChangeProgressDetails: output.ChangeProgressDetails != null
|
|
4083
3960
|
? deserializeAws_restJson1ChangeProgressDetails(output.ChangeProgressDetails, context)
|
|
4084
3961
|
: undefined,
|
|
4085
|
-
ClusterConfig: output.ClusterConfig
|
|
4086
|
-
|
|
4087
|
-
: undefined,
|
|
4088
|
-
CognitoOptions: output.CognitoOptions !== undefined && output.CognitoOptions !== null
|
|
3962
|
+
ClusterConfig: output.ClusterConfig != null ? deserializeAws_restJson1ClusterConfig(output.ClusterConfig, context) : undefined,
|
|
3963
|
+
CognitoOptions: output.CognitoOptions != null
|
|
4089
3964
|
? deserializeAws_restJson1CognitoOptions(output.CognitoOptions, context)
|
|
4090
3965
|
: undefined,
|
|
4091
3966
|
Created: (0, smithy_client_1.expectBoolean)(output.Created),
|
|
4092
3967
|
Deleted: (0, smithy_client_1.expectBoolean)(output.Deleted),
|
|
4093
|
-
DomainEndpointOptions: output.DomainEndpointOptions
|
|
3968
|
+
DomainEndpointOptions: output.DomainEndpointOptions != null
|
|
4094
3969
|
? deserializeAws_restJson1DomainEndpointOptions(output.DomainEndpointOptions, context)
|
|
4095
3970
|
: undefined,
|
|
4096
3971
|
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
4097
3972
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
4098
|
-
EBSOptions: output.EBSOptions
|
|
4099
|
-
|
|
4100
|
-
: undefined,
|
|
4101
|
-
EncryptionAtRestOptions: output.EncryptionAtRestOptions !== undefined && output.EncryptionAtRestOptions !== null
|
|
3973
|
+
EBSOptions: output.EBSOptions != null ? deserializeAws_restJson1EBSOptions(output.EBSOptions, context) : undefined,
|
|
3974
|
+
EncryptionAtRestOptions: output.EncryptionAtRestOptions != null
|
|
4102
3975
|
? deserializeAws_restJson1EncryptionAtRestOptions(output.EncryptionAtRestOptions, context)
|
|
4103
3976
|
: undefined,
|
|
4104
3977
|
Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
|
|
4105
|
-
Endpoints: output.Endpoints
|
|
4106
|
-
? deserializeAws_restJson1EndpointsMap(output.Endpoints, context)
|
|
4107
|
-
: undefined,
|
|
3978
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1EndpointsMap(output.Endpoints, context) : undefined,
|
|
4108
3979
|
EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
|
|
4109
|
-
LogPublishingOptions: output.LogPublishingOptions
|
|
3980
|
+
LogPublishingOptions: output.LogPublishingOptions != null
|
|
4110
3981
|
? deserializeAws_restJson1LogPublishingOptions(output.LogPublishingOptions, context)
|
|
4111
3982
|
: undefined,
|
|
4112
|
-
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions
|
|
3983
|
+
NodeToNodeEncryptionOptions: output.NodeToNodeEncryptionOptions != null
|
|
4113
3984
|
? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.NodeToNodeEncryptionOptions, context)
|
|
4114
3985
|
: undefined,
|
|
4115
3986
|
Processing: (0, smithy_client_1.expectBoolean)(output.Processing),
|
|
4116
|
-
ServiceSoftwareOptions: output.ServiceSoftwareOptions
|
|
3987
|
+
ServiceSoftwareOptions: output.ServiceSoftwareOptions != null
|
|
4117
3988
|
? deserializeAws_restJson1ServiceSoftwareOptions(output.ServiceSoftwareOptions, context)
|
|
4118
3989
|
: undefined,
|
|
4119
|
-
SnapshotOptions: output.SnapshotOptions
|
|
3990
|
+
SnapshotOptions: output.SnapshotOptions != null
|
|
4120
3991
|
? deserializeAws_restJson1SnapshotOptions(output.SnapshotOptions, context)
|
|
4121
3992
|
: undefined,
|
|
4122
3993
|
UpgradeProcessing: (0, smithy_client_1.expectBoolean)(output.UpgradeProcessing),
|
|
4123
|
-
VPCOptions: output.VPCOptions
|
|
4124
|
-
? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context)
|
|
4125
|
-
: undefined,
|
|
3994
|
+
VPCOptions: output.VPCOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VPCOptions, context) : undefined,
|
|
4126
3995
|
};
|
|
4127
3996
|
};
|
|
4128
3997
|
const deserializeAws_restJson1DomainStatusList = (output, context) => {
|
|
@@ -4158,12 +4027,8 @@ const deserializeAws_restJson1EBSOptions = (output, context) => {
|
|
|
4158
4027
|
};
|
|
4159
4028
|
const deserializeAws_restJson1EBSOptionsStatus = (output, context) => {
|
|
4160
4029
|
return {
|
|
4161
|
-
Options: output.Options
|
|
4162
|
-
|
|
4163
|
-
: undefined,
|
|
4164
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4165
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4166
|
-
: undefined,
|
|
4030
|
+
Options: output.Options != null ? deserializeAws_restJson1EBSOptions(output.Options, context) : undefined,
|
|
4031
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4167
4032
|
};
|
|
4168
4033
|
};
|
|
4169
4034
|
const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
|
|
@@ -4174,12 +4039,8 @@ const deserializeAws_restJson1EncryptionAtRestOptions = (output, context) => {
|
|
|
4174
4039
|
};
|
|
4175
4040
|
const deserializeAws_restJson1EncryptionAtRestOptionsStatus = (output, context) => {
|
|
4176
4041
|
return {
|
|
4177
|
-
Options: output.Options
|
|
4178
|
-
|
|
4179
|
-
: undefined,
|
|
4180
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4181
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4182
|
-
: undefined,
|
|
4042
|
+
Options: output.Options != null ? deserializeAws_restJson1EncryptionAtRestOptions(output.Options, context) : undefined,
|
|
4043
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4183
4044
|
};
|
|
4184
4045
|
};
|
|
4185
4046
|
const deserializeAws_restJson1EndpointsMap = (output, context) => {
|
|
@@ -4202,13 +4063,13 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
4202
4063
|
const deserializeAws_restJson1InboundConnection = (output, context) => {
|
|
4203
4064
|
return {
|
|
4204
4065
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
4205
|
-
ConnectionStatus: output.ConnectionStatus
|
|
4066
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
4206
4067
|
? deserializeAws_restJson1InboundConnectionStatus(output.ConnectionStatus, context)
|
|
4207
4068
|
: undefined,
|
|
4208
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
4069
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
4209
4070
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
4210
4071
|
: undefined,
|
|
4211
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
4072
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
4212
4073
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
4213
4074
|
: undefined,
|
|
4214
4075
|
};
|
|
@@ -4238,7 +4099,7 @@ const deserializeAws_restJson1InstanceCountLimits = (output, context) => {
|
|
|
4238
4099
|
};
|
|
4239
4100
|
const deserializeAws_restJson1InstanceLimits = (output, context) => {
|
|
4240
4101
|
return {
|
|
4241
|
-
InstanceCountLimits: output.InstanceCountLimits
|
|
4102
|
+
InstanceCountLimits: output.InstanceCountLimits != null
|
|
4242
4103
|
? deserializeAws_restJson1InstanceCountLimits(output.InstanceCountLimits, context)
|
|
4243
4104
|
: undefined,
|
|
4244
4105
|
};
|
|
@@ -4260,9 +4121,7 @@ const deserializeAws_restJson1InstanceTypeDetails = (output, context) => {
|
|
|
4260
4121
|
AppLogsEnabled: (0, smithy_client_1.expectBoolean)(output.AppLogsEnabled),
|
|
4261
4122
|
CognitoEnabled: (0, smithy_client_1.expectBoolean)(output.CognitoEnabled),
|
|
4262
4123
|
EncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.EncryptionEnabled),
|
|
4263
|
-
InstanceRole: output.InstanceRole
|
|
4264
|
-
? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context)
|
|
4265
|
-
: undefined,
|
|
4124
|
+
InstanceRole: output.InstanceRole != null ? deserializeAws_restJson1InstanceRoleList(output.InstanceRole, context) : undefined,
|
|
4266
4125
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4267
4126
|
WarmEnabled: (0, smithy_client_1.expectBoolean)(output.WarmEnabled),
|
|
4268
4127
|
};
|
|
@@ -4291,15 +4150,13 @@ const deserializeAws_restJson1Issues = (output, context) => {
|
|
|
4291
4150
|
};
|
|
4292
4151
|
const deserializeAws_restJson1Limits = (output, context) => {
|
|
4293
4152
|
return {
|
|
4294
|
-
AdditionalLimits: output.AdditionalLimits
|
|
4153
|
+
AdditionalLimits: output.AdditionalLimits != null
|
|
4295
4154
|
? deserializeAws_restJson1AdditionalLimitList(output.AdditionalLimits, context)
|
|
4296
4155
|
: undefined,
|
|
4297
|
-
InstanceLimits: output.InstanceLimits
|
|
4156
|
+
InstanceLimits: output.InstanceLimits != null
|
|
4298
4157
|
? deserializeAws_restJson1InstanceLimits(output.InstanceLimits, context)
|
|
4299
4158
|
: undefined,
|
|
4300
|
-
StorageTypes: output.StorageTypes
|
|
4301
|
-
? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context)
|
|
4302
|
-
: undefined,
|
|
4159
|
+
StorageTypes: output.StorageTypes != null ? deserializeAws_restJson1StorageTypeList(output.StorageTypes, context) : undefined,
|
|
4303
4160
|
};
|
|
4304
4161
|
};
|
|
4305
4162
|
const deserializeAws_restJson1LimitsByRole = (output, context) => {
|
|
@@ -4343,12 +4200,8 @@ const deserializeAws_restJson1LogPublishingOptions = (output, context) => {
|
|
|
4343
4200
|
};
|
|
4344
4201
|
const deserializeAws_restJson1LogPublishingOptionsStatus = (output, context) => {
|
|
4345
4202
|
return {
|
|
4346
|
-
Options: output.Options
|
|
4347
|
-
|
|
4348
|
-
: undefined,
|
|
4349
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4350
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4351
|
-
: undefined,
|
|
4203
|
+
Options: output.Options != null ? deserializeAws_restJson1LogPublishingOptions(output.Options, context) : undefined,
|
|
4204
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4352
4205
|
};
|
|
4353
4206
|
};
|
|
4354
4207
|
const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) => {
|
|
@@ -4358,24 +4211,18 @@ const deserializeAws_restJson1NodeToNodeEncryptionOptions = (output, context) =>
|
|
|
4358
4211
|
};
|
|
4359
4212
|
const deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = (output, context) => {
|
|
4360
4213
|
return {
|
|
4361
|
-
Options: output.Options
|
|
4362
|
-
|
|
4363
|
-
: undefined,
|
|
4364
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4365
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4366
|
-
: undefined,
|
|
4214
|
+
Options: output.Options != null ? deserializeAws_restJson1NodeToNodeEncryptionOptions(output.Options, context) : undefined,
|
|
4215
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4367
4216
|
};
|
|
4368
4217
|
};
|
|
4369
4218
|
const deserializeAws_restJson1OptionStatus = (output, context) => {
|
|
4370
4219
|
return {
|
|
4371
|
-
CreationDate: output.CreationDate
|
|
4220
|
+
CreationDate: output.CreationDate != null
|
|
4372
4221
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
4373
4222
|
: undefined,
|
|
4374
4223
|
PendingDeletion: (0, smithy_client_1.expectBoolean)(output.PendingDeletion),
|
|
4375
4224
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
4376
|
-
UpdateDate: output.UpdateDate
|
|
4377
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate)))
|
|
4378
|
-
: undefined,
|
|
4225
|
+
UpdateDate: output.UpdateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDate))) : undefined,
|
|
4379
4226
|
UpdateVersion: (0, smithy_client_1.expectInt32)(output.UpdateVersion),
|
|
4380
4227
|
};
|
|
4381
4228
|
};
|
|
@@ -4383,13 +4230,13 @@ const deserializeAws_restJson1OutboundConnection = (output, context) => {
|
|
|
4383
4230
|
return {
|
|
4384
4231
|
ConnectionAlias: (0, smithy_client_1.expectString)(output.ConnectionAlias),
|
|
4385
4232
|
ConnectionId: (0, smithy_client_1.expectString)(output.ConnectionId),
|
|
4386
|
-
ConnectionStatus: output.ConnectionStatus
|
|
4233
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
4387
4234
|
? deserializeAws_restJson1OutboundConnectionStatus(output.ConnectionStatus, context)
|
|
4388
4235
|
: undefined,
|
|
4389
|
-
LocalDomainInfo: output.LocalDomainInfo
|
|
4236
|
+
LocalDomainInfo: output.LocalDomainInfo != null
|
|
4390
4237
|
? deserializeAws_restJson1DomainInformationContainer(output.LocalDomainInfo, context)
|
|
4391
4238
|
: undefined,
|
|
4392
|
-
RemoteDomainInfo: output.RemoteDomainInfo
|
|
4239
|
+
RemoteDomainInfo: output.RemoteDomainInfo != null
|
|
4393
4240
|
? deserializeAws_restJson1DomainInformationContainer(output.RemoteDomainInfo, context)
|
|
4394
4241
|
: undefined,
|
|
4395
4242
|
};
|
|
@@ -4414,13 +4261,9 @@ const deserializeAws_restJson1OutboundConnectionStatus = (output, context) => {
|
|
|
4414
4261
|
const deserializeAws_restJson1PackageDetails = (output, context) => {
|
|
4415
4262
|
return {
|
|
4416
4263
|
AvailablePackageVersion: (0, smithy_client_1.expectString)(output.AvailablePackageVersion),
|
|
4417
|
-
CreatedAt: output.CreatedAt
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
|
|
4421
|
-
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
4422
|
-
: undefined,
|
|
4423
|
-
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
|
|
4424
4267
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
4425
4268
|
: undefined,
|
|
4426
4269
|
PackageDescription: (0, smithy_client_1.expectString)(output.PackageDescription),
|
|
@@ -4444,9 +4287,7 @@ const deserializeAws_restJson1PackageDetailsList = (output, context) => {
|
|
|
4444
4287
|
const deserializeAws_restJson1PackageVersionHistory = (output, context) => {
|
|
4445
4288
|
return {
|
|
4446
4289
|
CommitMessage: (0, smithy_client_1.expectString)(output.CommitMessage),
|
|
4447
|
-
CreatedAt: output.CreatedAt
|
|
4448
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
4449
|
-
: undefined,
|
|
4290
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
4450
4291
|
PackageVersion: (0, smithy_client_1.expectString)(output.PackageVersion),
|
|
4451
4292
|
};
|
|
4452
4293
|
};
|
|
@@ -4487,15 +4328,13 @@ const deserializeAws_restJson1ReservedInstance = (output, context) => {
|
|
|
4487
4328
|
InstanceCount: (0, smithy_client_1.expectInt32)(output.InstanceCount),
|
|
4488
4329
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4489
4330
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
4490
|
-
RecurringCharges: output.RecurringCharges
|
|
4331
|
+
RecurringCharges: output.RecurringCharges != null
|
|
4491
4332
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
4492
4333
|
: undefined,
|
|
4493
4334
|
ReservationName: (0, smithy_client_1.expectString)(output.ReservationName),
|
|
4494
4335
|
ReservedInstanceId: (0, smithy_client_1.expectString)(output.ReservedInstanceId),
|
|
4495
4336
|
ReservedInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedInstanceOfferingId),
|
|
4496
|
-
StartTime: output.StartTime
|
|
4497
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4498
|
-
: undefined,
|
|
4337
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4499
4338
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
4500
4339
|
UsagePrice: (0, smithy_client_1.limitedParseDouble)(output.UsagePrice),
|
|
4501
4340
|
};
|
|
@@ -4518,7 +4357,7 @@ const deserializeAws_restJson1ReservedInstanceOffering = (output, context) => {
|
|
|
4518
4357
|
FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
|
|
4519
4358
|
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
4520
4359
|
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
4521
|
-
RecurringCharges: output.RecurringCharges
|
|
4360
|
+
RecurringCharges: output.RecurringCharges != null
|
|
4522
4361
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
4523
4362
|
: undefined,
|
|
4524
4363
|
ReservedInstanceOfferingId: (0, smithy_client_1.expectString)(output.ReservedInstanceOfferingId),
|
|
@@ -4545,9 +4384,7 @@ const deserializeAws_restJson1SAMLIdp = (output, context) => {
|
|
|
4545
4384
|
const deserializeAws_restJson1SAMLOptionsOutput = (output, context) => {
|
|
4546
4385
|
return {
|
|
4547
4386
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
4548
|
-
Idp: output.Idp
|
|
4549
|
-
? deserializeAws_restJson1SAMLIdp(output.Idp, context)
|
|
4550
|
-
: undefined,
|
|
4387
|
+
Idp: output.Idp != null ? deserializeAws_restJson1SAMLIdp(output.Idp, context) : undefined,
|
|
4551
4388
|
RolesKey: (0, smithy_client_1.expectString)(output.RolesKey),
|
|
4552
4389
|
SessionTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.SessionTimeoutMinutes),
|
|
4553
4390
|
SubjectKey: (0, smithy_client_1.expectString)(output.SubjectKey),
|
|
@@ -4557,15 +4394,13 @@ const deserializeAws_restJson1ScheduledAutoTuneDetails = (output, context) => {
|
|
|
4557
4394
|
return {
|
|
4558
4395
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
4559
4396
|
ActionType: (0, smithy_client_1.expectString)(output.ActionType),
|
|
4560
|
-
Date: output.Date
|
|
4561
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date)))
|
|
4562
|
-
: undefined,
|
|
4397
|
+
Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
|
|
4563
4398
|
Severity: (0, smithy_client_1.expectString)(output.Severity),
|
|
4564
4399
|
};
|
|
4565
4400
|
};
|
|
4566
4401
|
const deserializeAws_restJson1ServiceSoftwareOptions = (output, context) => {
|
|
4567
4402
|
return {
|
|
4568
|
-
AutomatedUpdateDate: output.AutomatedUpdateDate
|
|
4403
|
+
AutomatedUpdateDate: output.AutomatedUpdateDate != null
|
|
4569
4404
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AutomatedUpdateDate)))
|
|
4570
4405
|
: undefined,
|
|
4571
4406
|
Cancellable: (0, smithy_client_1.expectBoolean)(output.Cancellable),
|
|
@@ -4584,18 +4419,14 @@ const deserializeAws_restJson1SnapshotOptions = (output, context) => {
|
|
|
4584
4419
|
};
|
|
4585
4420
|
const deserializeAws_restJson1SnapshotOptionsStatus = (output, context) => {
|
|
4586
4421
|
return {
|
|
4587
|
-
Options: output.Options
|
|
4588
|
-
|
|
4589
|
-
: undefined,
|
|
4590
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4591
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4592
|
-
: undefined,
|
|
4422
|
+
Options: output.Options != null ? deserializeAws_restJson1SnapshotOptions(output.Options, context) : undefined,
|
|
4423
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4593
4424
|
};
|
|
4594
4425
|
};
|
|
4595
4426
|
const deserializeAws_restJson1StorageType = (output, context) => {
|
|
4596
4427
|
return {
|
|
4597
4428
|
StorageSubTypeName: (0, smithy_client_1.expectString)(output.StorageSubTypeName),
|
|
4598
|
-
StorageTypeLimits: output.StorageTypeLimits
|
|
4429
|
+
StorageTypeLimits: output.StorageTypeLimits != null
|
|
4599
4430
|
? deserializeAws_restJson1StorageTypeLimitList(output.StorageTypeLimits, context)
|
|
4600
4431
|
: undefined,
|
|
4601
4432
|
StorageTypeName: (0, smithy_client_1.expectString)(output.StorageTypeName),
|
|
@@ -4604,9 +4435,7 @@ const deserializeAws_restJson1StorageType = (output, context) => {
|
|
|
4604
4435
|
const deserializeAws_restJson1StorageTypeLimit = (output, context) => {
|
|
4605
4436
|
return {
|
|
4606
4437
|
LimitName: (0, smithy_client_1.expectString)(output.LimitName),
|
|
4607
|
-
LimitValues: output.LimitValues
|
|
4608
|
-
? deserializeAws_restJson1LimitValueList(output.LimitValues, context)
|
|
4609
|
-
: undefined,
|
|
4438
|
+
LimitValues: output.LimitValues != null ? deserializeAws_restJson1LimitValueList(output.LimitValues, context) : undefined,
|
|
4610
4439
|
};
|
|
4611
4440
|
};
|
|
4612
4441
|
const deserializeAws_restJson1StorageTypeLimitList = (output, context) => {
|
|
@@ -4661,12 +4490,10 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
4661
4490
|
};
|
|
4662
4491
|
const deserializeAws_restJson1UpgradeHistory = (output, context) => {
|
|
4663
4492
|
return {
|
|
4664
|
-
StartTimestamp: output.StartTimestamp
|
|
4493
|
+
StartTimestamp: output.StartTimestamp != null
|
|
4665
4494
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTimestamp)))
|
|
4666
4495
|
: undefined,
|
|
4667
|
-
StepsList: output.StepsList
|
|
4668
|
-
? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
|
|
4669
|
-
: undefined,
|
|
4496
|
+
StepsList: output.StepsList != null ? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context) : undefined,
|
|
4670
4497
|
UpgradeName: (0, smithy_client_1.expectString)(output.UpgradeName),
|
|
4671
4498
|
UpgradeStatus: (0, smithy_client_1.expectString)(output.UpgradeStatus),
|
|
4672
4499
|
};
|
|
@@ -4684,9 +4511,7 @@ const deserializeAws_restJson1UpgradeHistoryList = (output, context) => {
|
|
|
4684
4511
|
};
|
|
4685
4512
|
const deserializeAws_restJson1UpgradeStepItem = (output, context) => {
|
|
4686
4513
|
return {
|
|
4687
|
-
Issues: output.Issues
|
|
4688
|
-
? deserializeAws_restJson1Issues(output.Issues, context)
|
|
4689
|
-
: undefined,
|
|
4514
|
+
Issues: output.Issues != null ? deserializeAws_restJson1Issues(output.Issues, context) : undefined,
|
|
4690
4515
|
ProgressPercent: (0, smithy_client_1.limitedParseDouble)(output.ProgressPercent),
|
|
4691
4516
|
UpgradeStep: (0, smithy_client_1.expectString)(output.UpgradeStep),
|
|
4692
4517
|
UpgradeStepStatus: (0, smithy_client_1.expectString)(output.UpgradeStepStatus),
|
|
@@ -4717,33 +4542,25 @@ const deserializeAws_restJson1VersionList = (output, context) => {
|
|
|
4717
4542
|
const deserializeAws_restJson1VersionStatus = (output, context) => {
|
|
4718
4543
|
return {
|
|
4719
4544
|
Options: (0, smithy_client_1.expectString)(output.Options),
|
|
4720
|
-
Status: output.Status
|
|
4721
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4722
|
-
: undefined,
|
|
4545
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4723
4546
|
};
|
|
4724
4547
|
};
|
|
4725
4548
|
const deserializeAws_restJson1VPCDerivedInfo = (output, context) => {
|
|
4726
4549
|
return {
|
|
4727
|
-
AvailabilityZones: output.AvailabilityZones
|
|
4550
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
4728
4551
|
? deserializeAws_restJson1StringList(output.AvailabilityZones, context)
|
|
4729
4552
|
: undefined,
|
|
4730
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
4553
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
4731
4554
|
? deserializeAws_restJson1StringList(output.SecurityGroupIds, context)
|
|
4732
4555
|
: undefined,
|
|
4733
|
-
SubnetIds: output.SubnetIds
|
|
4734
|
-
? deserializeAws_restJson1StringList(output.SubnetIds, context)
|
|
4735
|
-
: undefined,
|
|
4556
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1StringList(output.SubnetIds, context) : undefined,
|
|
4736
4557
|
VPCId: (0, smithy_client_1.expectString)(output.VPCId),
|
|
4737
4558
|
};
|
|
4738
4559
|
};
|
|
4739
4560
|
const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
|
|
4740
4561
|
return {
|
|
4741
|
-
Options: output.Options
|
|
4742
|
-
|
|
4743
|
-
: undefined,
|
|
4744
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4745
|
-
? deserializeAws_restJson1OptionStatus(output.Status, context)
|
|
4746
|
-
: undefined,
|
|
4562
|
+
Options: output.Options != null ? deserializeAws_restJson1VPCDerivedInfo(output.Options, context) : undefined,
|
|
4563
|
+
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4747
4564
|
};
|
|
4748
4565
|
};
|
|
4749
4566
|
const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
|
|
@@ -4782,6 +4599,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4782
4599
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4783
4600
|
const sanitizeErrorCode = (rawValue) => {
|
|
4784
4601
|
let cleanValue = rawValue;
|
|
4602
|
+
if (typeof cleanValue === "number") {
|
|
4603
|
+
cleanValue = cleanValue.toString();
|
|
4604
|
+
}
|
|
4785
4605
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4786
4606
|
cleanValue = cleanValue.split(":")[0];
|
|
4787
4607
|
}
|