@aws-sdk/client-databrew 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +509 -665
- package/dist-es/protocols/Aws_restJson1.js +390 -546
- package/package.json +26 -26
|
@@ -24,8 +24,7 @@ const serializeAws_restJson1BatchDeleteRecipeVersionCommand = async (input, cont
|
|
|
24
24
|
}
|
|
25
25
|
let body;
|
|
26
26
|
body = JSON.stringify({
|
|
27
|
-
...(input.RecipeVersions
|
|
28
|
-
input.RecipeVersions !== null && {
|
|
27
|
+
...(input.RecipeVersions != null && {
|
|
29
28
|
RecipeVersions: serializeAws_restJson1RecipeVersionList(input.RecipeVersions, context),
|
|
30
29
|
}),
|
|
31
30
|
});
|
|
@@ -48,17 +47,14 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
|
|
|
48
47
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
|
|
49
48
|
let body;
|
|
50
49
|
body = JSON.stringify({
|
|
51
|
-
...(input.Format
|
|
52
|
-
...(input.FormatOptions
|
|
53
|
-
input.FormatOptions !== null && {
|
|
50
|
+
...(input.Format != null && { Format: input.Format }),
|
|
51
|
+
...(input.FormatOptions != null && {
|
|
54
52
|
FormatOptions: serializeAws_restJson1FormatOptions(input.FormatOptions, context),
|
|
55
53
|
}),
|
|
56
|
-
...(input.Input
|
|
57
|
-
|
|
58
|
-
...(input.
|
|
59
|
-
...(input.
|
|
60
|
-
input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
|
|
61
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
54
|
+
...(input.Input != null && { Input: serializeAws_restJson1Input(input.Input, context) }),
|
|
55
|
+
...(input.Name != null && { Name: input.Name }),
|
|
56
|
+
...(input.PathOptions != null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
|
|
57
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
62
58
|
});
|
|
63
59
|
return new protocol_http_1.HttpRequest({
|
|
64
60
|
protocol,
|
|
@@ -79,31 +75,24 @@ const serializeAws_restJson1CreateProfileJobCommand = async (input, context) =>
|
|
|
79
75
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
|
|
80
76
|
let body;
|
|
81
77
|
body = JSON.stringify({
|
|
82
|
-
...(input.Configuration
|
|
83
|
-
input.Configuration !== null && {
|
|
78
|
+
...(input.Configuration != null && {
|
|
84
79
|
Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
|
|
85
80
|
}),
|
|
86
|
-
...(input.DatasetName
|
|
87
|
-
...(input.EncryptionKeyArn
|
|
88
|
-
|
|
89
|
-
...(input.
|
|
90
|
-
|
|
91
|
-
...(input.
|
|
92
|
-
|
|
93
|
-
...(input.
|
|
94
|
-
|
|
95
|
-
...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
|
|
96
|
-
...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
|
|
97
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
98
|
-
...(input.OutputLocation !== undefined &&
|
|
99
|
-
input.OutputLocation !== null && {
|
|
81
|
+
...(input.DatasetName != null && { DatasetName: input.DatasetName }),
|
|
82
|
+
...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
83
|
+
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
84
|
+
...(input.JobSample != null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
|
|
85
|
+
...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
|
|
86
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
87
|
+
...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
|
|
88
|
+
...(input.Name != null && { Name: input.Name }),
|
|
89
|
+
...(input.OutputLocation != null && {
|
|
100
90
|
OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
|
|
101
91
|
}),
|
|
102
|
-
...(input.RoleArn
|
|
103
|
-
...(input.Tags
|
|
104
|
-
...(input.Timeout
|
|
105
|
-
...(input.ValidationConfigurations
|
|
106
|
-
input.ValidationConfigurations !== null && {
|
|
92
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
93
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
94
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
95
|
+
...(input.ValidationConfigurations != null && {
|
|
107
96
|
ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
|
|
108
97
|
}),
|
|
109
98
|
});
|
|
@@ -126,13 +115,12 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
|
126
115
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
|
|
127
116
|
let body;
|
|
128
117
|
body = JSON.stringify({
|
|
129
|
-
...(input.DatasetName
|
|
130
|
-
...(input.Name
|
|
131
|
-
...(input.RecipeName
|
|
132
|
-
...(input.RoleArn
|
|
133
|
-
...(input.Sample
|
|
134
|
-
|
|
135
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
118
|
+
...(input.DatasetName != null && { DatasetName: input.DatasetName }),
|
|
119
|
+
...(input.Name != null && { Name: input.Name }),
|
|
120
|
+
...(input.RecipeName != null && { RecipeName: input.RecipeName }),
|
|
121
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
122
|
+
...(input.Sample != null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
|
|
123
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
136
124
|
});
|
|
137
125
|
return new protocol_http_1.HttpRequest({
|
|
138
126
|
protocol,
|
|
@@ -153,11 +141,10 @@ const serializeAws_restJson1CreateRecipeCommand = async (input, context) => {
|
|
|
153
141
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
|
|
154
142
|
let body;
|
|
155
143
|
body = JSON.stringify({
|
|
156
|
-
...(input.Description
|
|
157
|
-
...(input.Name
|
|
158
|
-
...(input.Steps
|
|
159
|
-
|
|
160
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
144
|
+
...(input.Description != null && { Description: input.Description }),
|
|
145
|
+
...(input.Name != null && { Name: input.Name }),
|
|
146
|
+
...(input.Steps != null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
|
|
147
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
161
148
|
});
|
|
162
149
|
return new protocol_http_1.HttpRequest({
|
|
163
150
|
protocol,
|
|
@@ -178,34 +165,27 @@ const serializeAws_restJson1CreateRecipeJobCommand = async (input, context) => {
|
|
|
178
165
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
|
|
179
166
|
let body;
|
|
180
167
|
body = JSON.stringify({
|
|
181
|
-
...(input.DataCatalogOutputs
|
|
182
|
-
input.DataCatalogOutputs !== null && {
|
|
168
|
+
...(input.DataCatalogOutputs != null && {
|
|
183
169
|
DataCatalogOutputs: serializeAws_restJson1DataCatalogOutputList(input.DataCatalogOutputs, context),
|
|
184
170
|
}),
|
|
185
|
-
...(input.DatabaseOutputs
|
|
186
|
-
input.DatabaseOutputs !== null && {
|
|
171
|
+
...(input.DatabaseOutputs != null && {
|
|
187
172
|
DatabaseOutputs: serializeAws_restJson1DatabaseOutputList(input.DatabaseOutputs, context),
|
|
188
173
|
}),
|
|
189
|
-
...(input.DatasetName
|
|
190
|
-
...(input.EncryptionKeyArn
|
|
191
|
-
|
|
192
|
-
...(input.
|
|
193
|
-
|
|
194
|
-
...(input.
|
|
195
|
-
|
|
196
|
-
...(input.
|
|
197
|
-
...(input.
|
|
198
|
-
...(input.
|
|
199
|
-
...(input.Outputs !== undefined &&
|
|
200
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
|
|
201
|
-
...(input.ProjectName !== undefined && input.ProjectName !== null && { ProjectName: input.ProjectName }),
|
|
202
|
-
...(input.RecipeReference !== undefined &&
|
|
203
|
-
input.RecipeReference !== null && {
|
|
174
|
+
...(input.DatasetName != null && { DatasetName: input.DatasetName }),
|
|
175
|
+
...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
176
|
+
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
177
|
+
...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
|
|
178
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
179
|
+
...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
|
|
180
|
+
...(input.Name != null && { Name: input.Name }),
|
|
181
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
|
|
182
|
+
...(input.ProjectName != null && { ProjectName: input.ProjectName }),
|
|
183
|
+
...(input.RecipeReference != null && {
|
|
204
184
|
RecipeReference: serializeAws_restJson1RecipeReference(input.RecipeReference, context),
|
|
205
185
|
}),
|
|
206
|
-
...(input.RoleArn
|
|
207
|
-
...(input.Tags
|
|
208
|
-
...(input.Timeout
|
|
186
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
187
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
188
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
209
189
|
});
|
|
210
190
|
return new protocol_http_1.HttpRequest({
|
|
211
191
|
protocol,
|
|
@@ -226,12 +206,11 @@ const serializeAws_restJson1CreateRulesetCommand = async (input, context) => {
|
|
|
226
206
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
|
|
227
207
|
let body;
|
|
228
208
|
body = JSON.stringify({
|
|
229
|
-
...(input.Description
|
|
230
|
-
...(input.Name
|
|
231
|
-
...(input.Rules
|
|
232
|
-
|
|
233
|
-
...(input.
|
|
234
|
-
...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
|
|
209
|
+
...(input.Description != null && { Description: input.Description }),
|
|
210
|
+
...(input.Name != null && { Name: input.Name }),
|
|
211
|
+
...(input.Rules != null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
|
|
212
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
213
|
+
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
235
214
|
});
|
|
236
215
|
return new protocol_http_1.HttpRequest({
|
|
237
216
|
protocol,
|
|
@@ -252,12 +231,10 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
|
|
|
252
231
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
|
|
253
232
|
let body;
|
|
254
233
|
body = JSON.stringify({
|
|
255
|
-
...(input.CronExpression
|
|
256
|
-
|
|
257
|
-
...(input.
|
|
258
|
-
|
|
259
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
260
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
234
|
+
...(input.CronExpression != null && { CronExpression: input.CronExpression }),
|
|
235
|
+
...(input.JobNames != null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
|
|
236
|
+
...(input.Name != null && { Name: input.Name }),
|
|
237
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
261
238
|
});
|
|
262
239
|
return new protocol_http_1.HttpRequest({
|
|
263
240
|
protocol,
|
|
@@ -861,7 +838,7 @@ const serializeAws_restJson1PublishRecipeCommand = async (input, context) => {
|
|
|
861
838
|
}
|
|
862
839
|
let body;
|
|
863
840
|
body = JSON.stringify({
|
|
864
|
-
...(input.Description
|
|
841
|
+
...(input.Description != null && { Description: input.Description }),
|
|
865
842
|
});
|
|
866
843
|
return new protocol_http_1.HttpRequest({
|
|
867
844
|
protocol,
|
|
@@ -892,14 +869,11 @@ const serializeAws_restJson1SendProjectSessionActionCommand = async (input, cont
|
|
|
892
869
|
}
|
|
893
870
|
let body;
|
|
894
871
|
body = JSON.stringify({
|
|
895
|
-
...(input.ClientSessionId
|
|
896
|
-
|
|
897
|
-
...(input.
|
|
898
|
-
...(input.
|
|
899
|
-
|
|
900
|
-
...(input.StepIndex !== undefined && input.StepIndex !== null && { StepIndex: input.StepIndex }),
|
|
901
|
-
...(input.ViewFrame !== undefined &&
|
|
902
|
-
input.ViewFrame !== null && { ViewFrame: serializeAws_restJson1ViewFrame(input.ViewFrame, context) }),
|
|
872
|
+
...(input.ClientSessionId != null && { ClientSessionId: input.ClientSessionId }),
|
|
873
|
+
...(input.Preview != null && { Preview: input.Preview }),
|
|
874
|
+
...(input.RecipeStep != null && { RecipeStep: serializeAws_restJson1RecipeStep(input.RecipeStep, context) }),
|
|
875
|
+
...(input.StepIndex != null && { StepIndex: input.StepIndex }),
|
|
876
|
+
...(input.ViewFrame != null && { ViewFrame: serializeAws_restJson1ViewFrame(input.ViewFrame, context) }),
|
|
903
877
|
});
|
|
904
878
|
return new protocol_http_1.HttpRequest({
|
|
905
879
|
protocol,
|
|
@@ -956,7 +930,7 @@ const serializeAws_restJson1StartProjectSessionCommand = async (input, context)
|
|
|
956
930
|
}
|
|
957
931
|
let body;
|
|
958
932
|
body = JSON.stringify({
|
|
959
|
-
...(input.AssumeControl
|
|
933
|
+
...(input.AssumeControl != null && { AssumeControl: input.AssumeControl }),
|
|
960
934
|
});
|
|
961
935
|
return new protocol_http_1.HttpRequest({
|
|
962
936
|
protocol,
|
|
@@ -1023,7 +997,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1023
997
|
}
|
|
1024
998
|
let body;
|
|
1025
999
|
body = JSON.stringify({
|
|
1026
|
-
...(input.Tags
|
|
1000
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
1027
1001
|
});
|
|
1028
1002
|
return new protocol_http_1.HttpRequest({
|
|
1029
1003
|
protocol,
|
|
@@ -1084,15 +1058,12 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
1084
1058
|
}
|
|
1085
1059
|
let body;
|
|
1086
1060
|
body = JSON.stringify({
|
|
1087
|
-
...(input.Format
|
|
1088
|
-
...(input.FormatOptions
|
|
1089
|
-
input.FormatOptions !== null && {
|
|
1061
|
+
...(input.Format != null && { Format: input.Format }),
|
|
1062
|
+
...(input.FormatOptions != null && {
|
|
1090
1063
|
FormatOptions: serializeAws_restJson1FormatOptions(input.FormatOptions, context),
|
|
1091
1064
|
}),
|
|
1092
|
-
...(input.Input
|
|
1093
|
-
|
|
1094
|
-
...(input.PathOptions !== undefined &&
|
|
1095
|
-
input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
|
|
1065
|
+
...(input.Input != null && { Input: serializeAws_restJson1Input(input.Input, context) }),
|
|
1066
|
+
...(input.PathOptions != null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
|
|
1096
1067
|
});
|
|
1097
1068
|
return new protocol_http_1.HttpRequest({
|
|
1098
1069
|
protocol,
|
|
@@ -1123,28 +1094,21 @@ const serializeAws_restJson1UpdateProfileJobCommand = async (input, context) =>
|
|
|
1123
1094
|
}
|
|
1124
1095
|
let body;
|
|
1125
1096
|
body = JSON.stringify({
|
|
1126
|
-
...(input.Configuration
|
|
1127
|
-
input.Configuration !== null && {
|
|
1097
|
+
...(input.Configuration != null && {
|
|
1128
1098
|
Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
|
|
1129
1099
|
}),
|
|
1130
|
-
...(input.EncryptionKeyArn
|
|
1131
|
-
|
|
1132
|
-
...(input.
|
|
1133
|
-
|
|
1134
|
-
...(input.
|
|
1135
|
-
|
|
1136
|
-
...(input.
|
|
1137
|
-
input.LogSubscription !== null && { LogSubscription: input.LogSubscription }),
|
|
1138
|
-
...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
|
|
1139
|
-
...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
|
|
1140
|
-
...(input.OutputLocation !== undefined &&
|
|
1141
|
-
input.OutputLocation !== null && {
|
|
1100
|
+
...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
1101
|
+
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
1102
|
+
...(input.JobSample != null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
|
|
1103
|
+
...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
|
|
1104
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
1105
|
+
...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
|
|
1106
|
+
...(input.OutputLocation != null && {
|
|
1142
1107
|
OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
|
|
1143
1108
|
}),
|
|
1144
|
-
...(input.RoleArn
|
|
1145
|
-
...(input.Timeout
|
|
1146
|
-
...(input.ValidationConfigurations
|
|
1147
|
-
input.ValidationConfigurations !== null && {
|
|
1109
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1110
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
1111
|
+
...(input.ValidationConfigurations != null && {
|
|
1148
1112
|
ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
|
|
1149
1113
|
}),
|
|
1150
1114
|
});
|
|
@@ -1177,9 +1141,8 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
|
1177
1141
|
}
|
|
1178
1142
|
let body;
|
|
1179
1143
|
body = JSON.stringify({
|
|
1180
|
-
...(input.RoleArn
|
|
1181
|
-
...(input.Sample
|
|
1182
|
-
input.Sample !== null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
|
|
1144
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1145
|
+
...(input.Sample != null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
|
|
1183
1146
|
});
|
|
1184
1147
|
return new protocol_http_1.HttpRequest({
|
|
1185
1148
|
protocol,
|
|
@@ -1210,9 +1173,8 @@ const serializeAws_restJson1UpdateRecipeCommand = async (input, context) => {
|
|
|
1210
1173
|
}
|
|
1211
1174
|
let body;
|
|
1212
1175
|
body = JSON.stringify({
|
|
1213
|
-
...(input.Description
|
|
1214
|
-
...(input.Steps
|
|
1215
|
-
input.Steps !== null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
|
|
1176
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1177
|
+
...(input.Steps != null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
|
|
1216
1178
|
});
|
|
1217
1179
|
return new protocol_http_1.HttpRequest({
|
|
1218
1180
|
protocol,
|
|
@@ -1243,26 +1205,20 @@ const serializeAws_restJson1UpdateRecipeJobCommand = async (input, context) => {
|
|
|
1243
1205
|
}
|
|
1244
1206
|
let body;
|
|
1245
1207
|
body = JSON.stringify({
|
|
1246
|
-
...(input.DataCatalogOutputs
|
|
1247
|
-
input.DataCatalogOutputs !== null && {
|
|
1208
|
+
...(input.DataCatalogOutputs != null && {
|
|
1248
1209
|
DataCatalogOutputs: serializeAws_restJson1DataCatalogOutputList(input.DataCatalogOutputs, context),
|
|
1249
1210
|
}),
|
|
1250
|
-
...(input.DatabaseOutputs
|
|
1251
|
-
input.DatabaseOutputs !== null && {
|
|
1211
|
+
...(input.DatabaseOutputs != null && {
|
|
1252
1212
|
DatabaseOutputs: serializeAws_restJson1DatabaseOutputList(input.DatabaseOutputs, context),
|
|
1253
1213
|
}),
|
|
1254
|
-
...(input.EncryptionKeyArn
|
|
1255
|
-
|
|
1256
|
-
...(input.
|
|
1257
|
-
|
|
1258
|
-
...(input.
|
|
1259
|
-
|
|
1260
|
-
...(input.
|
|
1261
|
-
...(input.
|
|
1262
|
-
...(input.Outputs !== undefined &&
|
|
1263
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
|
|
1264
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
1265
|
-
...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
|
|
1214
|
+
...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
1215
|
+
...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
|
|
1216
|
+
...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
|
|
1217
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
1218
|
+
...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
|
|
1219
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
|
|
1220
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1221
|
+
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
1266
1222
|
});
|
|
1267
1223
|
return new protocol_http_1.HttpRequest({
|
|
1268
1224
|
protocol,
|
|
@@ -1293,9 +1249,8 @@ const serializeAws_restJson1UpdateRulesetCommand = async (input, context) => {
|
|
|
1293
1249
|
}
|
|
1294
1250
|
let body;
|
|
1295
1251
|
body = JSON.stringify({
|
|
1296
|
-
...(input.Description
|
|
1297
|
-
...(input.Rules
|
|
1298
|
-
input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
|
|
1252
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1253
|
+
...(input.Rules != null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
|
|
1299
1254
|
});
|
|
1300
1255
|
return new protocol_http_1.HttpRequest({
|
|
1301
1256
|
protocol,
|
|
@@ -1326,10 +1281,8 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
|
|
|
1326
1281
|
}
|
|
1327
1282
|
let body;
|
|
1328
1283
|
body = JSON.stringify({
|
|
1329
|
-
...(input.CronExpression
|
|
1330
|
-
|
|
1331
|
-
...(input.JobNames !== undefined &&
|
|
1332
|
-
input.JobNames !== null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
|
|
1284
|
+
...(input.CronExpression != null && { CronExpression: input.CronExpression }),
|
|
1285
|
+
...(input.JobNames != null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
|
|
1333
1286
|
});
|
|
1334
1287
|
return new protocol_http_1.HttpRequest({
|
|
1335
1288
|
protocol,
|
|
@@ -1367,8 +1320,7 @@ const deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = async (outp
|
|
|
1367
1320
|
body: await parseBody(output.body, context),
|
|
1368
1321
|
};
|
|
1369
1322
|
let response;
|
|
1370
|
-
|
|
1371
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1324
|
switch (errorCode) {
|
|
1373
1325
|
case "ConflictException":
|
|
1374
1326
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1381,10 +1333,12 @@ const deserializeAws_restJson1BatchDeleteRecipeVersionCommandError = async (outp
|
|
|
1381
1333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1382
1334
|
default:
|
|
1383
1335
|
const parsedBody = parsedOutput.body;
|
|
1336
|
+
const $metadata = deserializeMetadata(output);
|
|
1337
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1384
1338
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1339
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1386
1340
|
$fault: "client",
|
|
1387
|
-
$metadata
|
|
1341
|
+
$metadata,
|
|
1388
1342
|
});
|
|
1389
1343
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1390
1344
|
}
|
|
@@ -1410,8 +1364,7 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1410
1364
|
body: await parseBody(output.body, context),
|
|
1411
1365
|
};
|
|
1412
1366
|
let response;
|
|
1413
|
-
|
|
1414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1368
|
switch (errorCode) {
|
|
1416
1369
|
case "AccessDeniedException":
|
|
1417
1370
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -1427,10 +1380,12 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1427
1380
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1428
1381
|
default:
|
|
1429
1382
|
const parsedBody = parsedOutput.body;
|
|
1383
|
+
const $metadata = deserializeMetadata(output);
|
|
1384
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1430
1385
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1386
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1432
1387
|
$fault: "client",
|
|
1433
|
-
$metadata
|
|
1388
|
+
$metadata,
|
|
1434
1389
|
});
|
|
1435
1390
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1436
1391
|
}
|
|
@@ -1456,8 +1411,7 @@ const deserializeAws_restJson1CreateProfileJobCommandError = async (output, cont
|
|
|
1456
1411
|
body: await parseBody(output.body, context),
|
|
1457
1412
|
};
|
|
1458
1413
|
let response;
|
|
1459
|
-
|
|
1460
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1415
|
switch (errorCode) {
|
|
1462
1416
|
case "AccessDeniedException":
|
|
1463
1417
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -1476,10 +1430,12 @@ const deserializeAws_restJson1CreateProfileJobCommandError = async (output, cont
|
|
|
1476
1430
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1477
1431
|
default:
|
|
1478
1432
|
const parsedBody = parsedOutput.body;
|
|
1433
|
+
const $metadata = deserializeMetadata(output);
|
|
1434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1479
1435
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1481
1437
|
$fault: "client",
|
|
1482
|
-
$metadata
|
|
1438
|
+
$metadata,
|
|
1483
1439
|
});
|
|
1484
1440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1485
1441
|
}
|
|
@@ -1505,8 +1461,7 @@ const deserializeAws_restJson1CreateProjectCommandError = async (output, context
|
|
|
1505
1461
|
body: await parseBody(output.body, context),
|
|
1506
1462
|
};
|
|
1507
1463
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1465
|
switch (errorCode) {
|
|
1511
1466
|
case "ConflictException":
|
|
1512
1467
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1522,10 +1477,12 @@ const deserializeAws_restJson1CreateProjectCommandError = async (output, context
|
|
|
1522
1477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1523
1478
|
default:
|
|
1524
1479
|
const parsedBody = parsedOutput.body;
|
|
1480
|
+
const $metadata = deserializeMetadata(output);
|
|
1481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1525
1482
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1527
1484
|
$fault: "client",
|
|
1528
|
-
$metadata
|
|
1485
|
+
$metadata,
|
|
1529
1486
|
});
|
|
1530
1487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1488
|
}
|
|
@@ -1551,8 +1508,7 @@ const deserializeAws_restJson1CreateRecipeCommandError = async (output, context)
|
|
|
1551
1508
|
body: await parseBody(output.body, context),
|
|
1552
1509
|
};
|
|
1553
1510
|
let response;
|
|
1554
|
-
|
|
1555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1512
|
switch (errorCode) {
|
|
1557
1513
|
case "ConflictException":
|
|
1558
1514
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1565,10 +1521,12 @@ const deserializeAws_restJson1CreateRecipeCommandError = async (output, context)
|
|
|
1565
1521
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1566
1522
|
default:
|
|
1567
1523
|
const parsedBody = parsedOutput.body;
|
|
1524
|
+
const $metadata = deserializeMetadata(output);
|
|
1525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1568
1526
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1569
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1570
1528
|
$fault: "client",
|
|
1571
|
-
$metadata
|
|
1529
|
+
$metadata,
|
|
1572
1530
|
});
|
|
1573
1531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1574
1532
|
}
|
|
@@ -1594,8 +1552,7 @@ const deserializeAws_restJson1CreateRecipeJobCommandError = async (output, conte
|
|
|
1594
1552
|
body: await parseBody(output.body, context),
|
|
1595
1553
|
};
|
|
1596
1554
|
let response;
|
|
1597
|
-
|
|
1598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1556
|
switch (errorCode) {
|
|
1600
1557
|
case "AccessDeniedException":
|
|
1601
1558
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -1614,10 +1571,12 @@ const deserializeAws_restJson1CreateRecipeJobCommandError = async (output, conte
|
|
|
1614
1571
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1615
1572
|
default:
|
|
1616
1573
|
const parsedBody = parsedOutput.body;
|
|
1574
|
+
const $metadata = deserializeMetadata(output);
|
|
1575
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1617
1576
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1619
1578
|
$fault: "client",
|
|
1620
|
-
$metadata
|
|
1579
|
+
$metadata,
|
|
1621
1580
|
});
|
|
1622
1581
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1623
1582
|
}
|
|
@@ -1643,8 +1602,7 @@ const deserializeAws_restJson1CreateRulesetCommandError = async (output, context
|
|
|
1643
1602
|
body: await parseBody(output.body, context),
|
|
1644
1603
|
};
|
|
1645
1604
|
let response;
|
|
1646
|
-
|
|
1647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1606
|
switch (errorCode) {
|
|
1649
1607
|
case "ConflictException":
|
|
1650
1608
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1657,10 +1615,12 @@ const deserializeAws_restJson1CreateRulesetCommandError = async (output, context
|
|
|
1657
1615
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1658
1616
|
default:
|
|
1659
1617
|
const parsedBody = parsedOutput.body;
|
|
1618
|
+
const $metadata = deserializeMetadata(output);
|
|
1619
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1660
1620
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1621
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1662
1622
|
$fault: "client",
|
|
1663
|
-
$metadata
|
|
1623
|
+
$metadata,
|
|
1664
1624
|
});
|
|
1665
1625
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1666
1626
|
}
|
|
@@ -1686,8 +1646,7 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
|
|
|
1686
1646
|
body: await parseBody(output.body, context),
|
|
1687
1647
|
};
|
|
1688
1648
|
let response;
|
|
1689
|
-
|
|
1690
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
1650
|
switch (errorCode) {
|
|
1692
1651
|
case "ConflictException":
|
|
1693
1652
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1700,10 +1659,12 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
|
|
|
1700
1659
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1701
1660
|
default:
|
|
1702
1661
|
const parsedBody = parsedOutput.body;
|
|
1662
|
+
const $metadata = deserializeMetadata(output);
|
|
1663
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1703
1664
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1665
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1705
1666
|
$fault: "client",
|
|
1706
|
-
$metadata
|
|
1667
|
+
$metadata,
|
|
1707
1668
|
});
|
|
1708
1669
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1709
1670
|
}
|
|
@@ -1729,8 +1690,7 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1729
1690
|
body: await parseBody(output.body, context),
|
|
1730
1691
|
};
|
|
1731
1692
|
let response;
|
|
1732
|
-
|
|
1733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
1694
|
switch (errorCode) {
|
|
1735
1695
|
case "ConflictException":
|
|
1736
1696
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1743,10 +1703,12 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1743
1703
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1744
1704
|
default:
|
|
1745
1705
|
const parsedBody = parsedOutput.body;
|
|
1706
|
+
const $metadata = deserializeMetadata(output);
|
|
1707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1746
1708
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1748
1710
|
$fault: "client",
|
|
1749
|
-
$metadata
|
|
1711
|
+
$metadata,
|
|
1750
1712
|
});
|
|
1751
1713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1752
1714
|
}
|
|
@@ -1772,8 +1734,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1772
1734
|
body: await parseBody(output.body, context),
|
|
1773
1735
|
};
|
|
1774
1736
|
let response;
|
|
1775
|
-
|
|
1776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
1738
|
switch (errorCode) {
|
|
1778
1739
|
case "ConflictException":
|
|
1779
1740
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1786,10 +1747,12 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1786
1747
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1787
1748
|
default:
|
|
1788
1749
|
const parsedBody = parsedOutput.body;
|
|
1750
|
+
const $metadata = deserializeMetadata(output);
|
|
1751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1789
1752
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1790
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1791
1754
|
$fault: "client",
|
|
1792
|
-
$metadata
|
|
1755
|
+
$metadata,
|
|
1793
1756
|
});
|
|
1794
1757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1795
1758
|
}
|
|
@@ -1815,8 +1778,7 @@ const deserializeAws_restJson1DeleteProjectCommandError = async (output, context
|
|
|
1815
1778
|
body: await parseBody(output.body, context),
|
|
1816
1779
|
};
|
|
1817
1780
|
let response;
|
|
1818
|
-
|
|
1819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
1782
|
switch (errorCode) {
|
|
1821
1783
|
case "ConflictException":
|
|
1822
1784
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1829,10 +1791,12 @@ const deserializeAws_restJson1DeleteProjectCommandError = async (output, context
|
|
|
1829
1791
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1830
1792
|
default:
|
|
1831
1793
|
const parsedBody = parsedOutput.body;
|
|
1794
|
+
const $metadata = deserializeMetadata(output);
|
|
1795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1832
1796
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1834
1798
|
$fault: "client",
|
|
1835
|
-
$metadata
|
|
1799
|
+
$metadata,
|
|
1836
1800
|
});
|
|
1837
1801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1838
1802
|
}
|
|
@@ -1862,8 +1826,7 @@ const deserializeAws_restJson1DeleteRecipeVersionCommandError = async (output, c
|
|
|
1862
1826
|
body: await parseBody(output.body, context),
|
|
1863
1827
|
};
|
|
1864
1828
|
let response;
|
|
1865
|
-
|
|
1866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
1830
|
switch (errorCode) {
|
|
1868
1831
|
case "ConflictException":
|
|
1869
1832
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1876,10 +1839,12 @@ const deserializeAws_restJson1DeleteRecipeVersionCommandError = async (output, c
|
|
|
1876
1839
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1877
1840
|
default:
|
|
1878
1841
|
const parsedBody = parsedOutput.body;
|
|
1842
|
+
const $metadata = deserializeMetadata(output);
|
|
1843
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1879
1844
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1880
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1845
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1881
1846
|
$fault: "client",
|
|
1882
|
-
$metadata
|
|
1847
|
+
$metadata,
|
|
1883
1848
|
});
|
|
1884
1849
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1885
1850
|
}
|
|
@@ -1905,8 +1870,7 @@ const deserializeAws_restJson1DeleteRulesetCommandError = async (output, context
|
|
|
1905
1870
|
body: await parseBody(output.body, context),
|
|
1906
1871
|
};
|
|
1907
1872
|
let response;
|
|
1908
|
-
|
|
1909
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1874
|
switch (errorCode) {
|
|
1911
1875
|
case "ConflictException":
|
|
1912
1876
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -1919,10 +1883,12 @@ const deserializeAws_restJson1DeleteRulesetCommandError = async (output, context
|
|
|
1919
1883
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1920
1884
|
default:
|
|
1921
1885
|
const parsedBody = parsedOutput.body;
|
|
1886
|
+
const $metadata = deserializeMetadata(output);
|
|
1887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1922
1888
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1923
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1924
1890
|
$fault: "client",
|
|
1925
|
-
$metadata
|
|
1891
|
+
$metadata,
|
|
1926
1892
|
});
|
|
1927
1893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1928
1894
|
}
|
|
@@ -1948,8 +1914,7 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
1948
1914
|
body: await parseBody(output.body, context),
|
|
1949
1915
|
};
|
|
1950
1916
|
let response;
|
|
1951
|
-
|
|
1952
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1918
|
switch (errorCode) {
|
|
1954
1919
|
case "ResourceNotFoundException":
|
|
1955
1920
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -1959,10 +1924,12 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
1959
1924
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1960
1925
|
default:
|
|
1961
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1962
1929
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
1963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1964
1931
|
$fault: "client",
|
|
1965
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1966
1933
|
});
|
|
1967
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1968
1935
|
}
|
|
@@ -2032,8 +1999,7 @@ const deserializeAws_restJson1DescribeDatasetCommandError = async (output, conte
|
|
|
2032
1999
|
body: await parseBody(output.body, context),
|
|
2033
2000
|
};
|
|
2034
2001
|
let response;
|
|
2035
|
-
|
|
2036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2003
|
switch (errorCode) {
|
|
2038
2004
|
case "ResourceNotFoundException":
|
|
2039
2005
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2043,10 +2009,12 @@ const deserializeAws_restJson1DescribeDatasetCommandError = async (output, conte
|
|
|
2043
2009
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2044
2010
|
default:
|
|
2045
2011
|
const parsedBody = parsedOutput.body;
|
|
2012
|
+
const $metadata = deserializeMetadata(output);
|
|
2013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2046
2014
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2048
2016
|
$fault: "client",
|
|
2049
|
-
$metadata
|
|
2017
|
+
$metadata,
|
|
2050
2018
|
});
|
|
2051
2019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2052
2020
|
}
|
|
@@ -2164,8 +2132,7 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
2164
2132
|
body: await parseBody(output.body, context),
|
|
2165
2133
|
};
|
|
2166
2134
|
let response;
|
|
2167
|
-
|
|
2168
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
2136
|
switch (errorCode) {
|
|
2170
2137
|
case "ResourceNotFoundException":
|
|
2171
2138
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2175,10 +2142,12 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
2175
2142
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2176
2143
|
default:
|
|
2177
2144
|
const parsedBody = parsedOutput.body;
|
|
2145
|
+
const $metadata = deserializeMetadata(output);
|
|
2146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2178
2147
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2180
2149
|
$fault: "client",
|
|
2181
|
-
$metadata
|
|
2150
|
+
$metadata,
|
|
2182
2151
|
});
|
|
2183
2152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2184
2153
|
}
|
|
@@ -2276,8 +2245,7 @@ const deserializeAws_restJson1DescribeJobRunCommandError = async (output, contex
|
|
|
2276
2245
|
body: await parseBody(output.body, context),
|
|
2277
2246
|
};
|
|
2278
2247
|
let response;
|
|
2279
|
-
|
|
2280
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
2249
|
switch (errorCode) {
|
|
2282
2250
|
case "ResourceNotFoundException":
|
|
2283
2251
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2287,10 +2255,12 @@ const deserializeAws_restJson1DescribeJobRunCommandError = async (output, contex
|
|
|
2287
2255
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2288
2256
|
default:
|
|
2289
2257
|
const parsedBody = parsedOutput.body;
|
|
2258
|
+
const $metadata = deserializeMetadata(output);
|
|
2259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2260
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2262
|
$fault: "client",
|
|
2293
|
-
$metadata
|
|
2263
|
+
$metadata,
|
|
2294
2264
|
});
|
|
2295
2265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2266
|
}
|
|
@@ -2368,8 +2338,7 @@ const deserializeAws_restJson1DescribeProjectCommandError = async (output, conte
|
|
|
2368
2338
|
body: await parseBody(output.body, context),
|
|
2369
2339
|
};
|
|
2370
2340
|
let response;
|
|
2371
|
-
|
|
2372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2373
2342
|
switch (errorCode) {
|
|
2374
2343
|
case "ResourceNotFoundException":
|
|
2375
2344
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2379,10 +2348,12 @@ const deserializeAws_restJson1DescribeProjectCommandError = async (output, conte
|
|
|
2379
2348
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2380
2349
|
default:
|
|
2381
2350
|
const parsedBody = parsedOutput.body;
|
|
2351
|
+
const $metadata = deserializeMetadata(output);
|
|
2352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2382
2353
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2383
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2384
2355
|
$fault: "client",
|
|
2385
|
-
$metadata
|
|
2356
|
+
$metadata,
|
|
2386
2357
|
});
|
|
2387
2358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2388
2359
|
}
|
|
@@ -2456,8 +2427,7 @@ const deserializeAws_restJson1DescribeRecipeCommandError = async (output, contex
|
|
|
2456
2427
|
body: await parseBody(output.body, context),
|
|
2457
2428
|
};
|
|
2458
2429
|
let response;
|
|
2459
|
-
|
|
2460
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
2431
|
switch (errorCode) {
|
|
2462
2432
|
case "ResourceNotFoundException":
|
|
2463
2433
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2467,10 +2437,12 @@ const deserializeAws_restJson1DescribeRecipeCommandError = async (output, contex
|
|
|
2467
2437
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2468
2438
|
default:
|
|
2469
2439
|
const parsedBody = parsedOutput.body;
|
|
2440
|
+
const $metadata = deserializeMetadata(output);
|
|
2441
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2470
2442
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2443
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2472
2444
|
$fault: "client",
|
|
2473
|
-
$metadata
|
|
2445
|
+
$metadata,
|
|
2474
2446
|
});
|
|
2475
2447
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2476
2448
|
}
|
|
@@ -2532,8 +2504,7 @@ const deserializeAws_restJson1DescribeRulesetCommandError = async (output, conte
|
|
|
2532
2504
|
body: await parseBody(output.body, context),
|
|
2533
2505
|
};
|
|
2534
2506
|
let response;
|
|
2535
|
-
|
|
2536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2537
2508
|
switch (errorCode) {
|
|
2538
2509
|
case "ResourceNotFoundException":
|
|
2539
2510
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2543,10 +2514,12 @@ const deserializeAws_restJson1DescribeRulesetCommandError = async (output, conte
|
|
|
2543
2514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2544
2515
|
default:
|
|
2545
2516
|
const parsedBody = parsedOutput.body;
|
|
2517
|
+
const $metadata = deserializeMetadata(output);
|
|
2518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2546
2519
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2548
2521
|
$fault: "client",
|
|
2549
|
-
$metadata
|
|
2522
|
+
$metadata,
|
|
2550
2523
|
});
|
|
2551
2524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2552
2525
|
}
|
|
@@ -2604,8 +2577,7 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
2604
2577
|
body: await parseBody(output.body, context),
|
|
2605
2578
|
};
|
|
2606
2579
|
let response;
|
|
2607
|
-
|
|
2608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2581
|
switch (errorCode) {
|
|
2610
2582
|
case "ResourceNotFoundException":
|
|
2611
2583
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2615,10 +2587,12 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
2615
2587
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2616
2588
|
default:
|
|
2617
2589
|
const parsedBody = parsedOutput.body;
|
|
2590
|
+
const $metadata = deserializeMetadata(output);
|
|
2591
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2618
2592
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2620
2594
|
$fault: "client",
|
|
2621
|
-
$metadata
|
|
2595
|
+
$metadata,
|
|
2622
2596
|
});
|
|
2623
2597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2624
2598
|
}
|
|
@@ -2648,18 +2622,19 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
2648
2622
|
body: await parseBody(output.body, context),
|
|
2649
2623
|
};
|
|
2650
2624
|
let response;
|
|
2651
|
-
|
|
2652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
2626
|
switch (errorCode) {
|
|
2654
2627
|
case "ValidationException":
|
|
2655
2628
|
case "com.amazonaws.databrew#ValidationException":
|
|
2656
2629
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2657
2630
|
default:
|
|
2658
2631
|
const parsedBody = parsedOutput.body;
|
|
2632
|
+
const $metadata = deserializeMetadata(output);
|
|
2633
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2659
2634
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2635
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2661
2636
|
$fault: "client",
|
|
2662
|
-
$metadata
|
|
2637
|
+
$metadata,
|
|
2663
2638
|
});
|
|
2664
2639
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2665
2640
|
}
|
|
@@ -2689,8 +2664,7 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
2689
2664
|
body: await parseBody(output.body, context),
|
|
2690
2665
|
};
|
|
2691
2666
|
let response;
|
|
2692
|
-
|
|
2693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2668
|
switch (errorCode) {
|
|
2695
2669
|
case "ResourceNotFoundException":
|
|
2696
2670
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2700,10 +2674,12 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
2700
2674
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2701
2675
|
default:
|
|
2702
2676
|
const parsedBody = parsedOutput.body;
|
|
2677
|
+
const $metadata = deserializeMetadata(output);
|
|
2678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2703
2679
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2705
2681
|
$fault: "client",
|
|
2706
|
-
$metadata
|
|
2682
|
+
$metadata,
|
|
2707
2683
|
});
|
|
2708
2684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2709
2685
|
}
|
|
@@ -2733,18 +2709,19 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2733
2709
|
body: await parseBody(output.body, context),
|
|
2734
2710
|
};
|
|
2735
2711
|
let response;
|
|
2736
|
-
|
|
2737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
2713
|
switch (errorCode) {
|
|
2739
2714
|
case "ValidationException":
|
|
2740
2715
|
case "com.amazonaws.databrew#ValidationException":
|
|
2741
2716
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2742
2717
|
default:
|
|
2743
2718
|
const parsedBody = parsedOutput.body;
|
|
2719
|
+
const $metadata = deserializeMetadata(output);
|
|
2720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2744
2721
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2746
2723
|
$fault: "client",
|
|
2747
|
-
$metadata
|
|
2724
|
+
$metadata,
|
|
2748
2725
|
});
|
|
2749
2726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2750
2727
|
}
|
|
@@ -2774,18 +2751,19 @@ const deserializeAws_restJson1ListProjectsCommandError = async (output, context)
|
|
|
2774
2751
|
body: await parseBody(output.body, context),
|
|
2775
2752
|
};
|
|
2776
2753
|
let response;
|
|
2777
|
-
|
|
2778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2755
|
switch (errorCode) {
|
|
2780
2756
|
case "ValidationException":
|
|
2781
2757
|
case "com.amazonaws.databrew#ValidationException":
|
|
2782
2758
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2783
2759
|
default:
|
|
2784
2760
|
const parsedBody = parsedOutput.body;
|
|
2761
|
+
const $metadata = deserializeMetadata(output);
|
|
2762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2785
2763
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2786
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2787
2765
|
$fault: "client",
|
|
2788
|
-
$metadata
|
|
2766
|
+
$metadata,
|
|
2789
2767
|
});
|
|
2790
2768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2791
2769
|
}
|
|
@@ -2815,18 +2793,19 @@ const deserializeAws_restJson1ListRecipesCommandError = async (output, context)
|
|
|
2815
2793
|
body: await parseBody(output.body, context),
|
|
2816
2794
|
};
|
|
2817
2795
|
let response;
|
|
2818
|
-
|
|
2819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2797
|
switch (errorCode) {
|
|
2821
2798
|
case "ValidationException":
|
|
2822
2799
|
case "com.amazonaws.databrew#ValidationException":
|
|
2823
2800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2824
2801
|
default:
|
|
2825
2802
|
const parsedBody = parsedOutput.body;
|
|
2803
|
+
const $metadata = deserializeMetadata(output);
|
|
2804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2826
2805
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2828
2807
|
$fault: "client",
|
|
2829
|
-
$metadata
|
|
2808
|
+
$metadata,
|
|
2830
2809
|
});
|
|
2831
2810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2832
2811
|
}
|
|
@@ -2856,18 +2835,19 @@ const deserializeAws_restJson1ListRecipeVersionsCommandError = async (output, co
|
|
|
2856
2835
|
body: await parseBody(output.body, context),
|
|
2857
2836
|
};
|
|
2858
2837
|
let response;
|
|
2859
|
-
|
|
2860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2861
2839
|
switch (errorCode) {
|
|
2862
2840
|
case "ValidationException":
|
|
2863
2841
|
case "com.amazonaws.databrew#ValidationException":
|
|
2864
2842
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2865
2843
|
default:
|
|
2866
2844
|
const parsedBody = parsedOutput.body;
|
|
2845
|
+
const $metadata = deserializeMetadata(output);
|
|
2846
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2867
2847
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2848
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2869
2849
|
$fault: "client",
|
|
2870
|
-
$metadata
|
|
2850
|
+
$metadata,
|
|
2871
2851
|
});
|
|
2872
2852
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2873
2853
|
}
|
|
@@ -2897,8 +2877,7 @@ const deserializeAws_restJson1ListRulesetsCommandError = async (output, context)
|
|
|
2897
2877
|
body: await parseBody(output.body, context),
|
|
2898
2878
|
};
|
|
2899
2879
|
let response;
|
|
2900
|
-
|
|
2901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
2881
|
switch (errorCode) {
|
|
2903
2882
|
case "ResourceNotFoundException":
|
|
2904
2883
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -2908,10 +2887,12 @@ const deserializeAws_restJson1ListRulesetsCommandError = async (output, context)
|
|
|
2908
2887
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2909
2888
|
default:
|
|
2910
2889
|
const parsedBody = parsedOutput.body;
|
|
2890
|
+
const $metadata = deserializeMetadata(output);
|
|
2891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2911
2892
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2913
2894
|
$fault: "client",
|
|
2914
|
-
$metadata
|
|
2895
|
+
$metadata,
|
|
2915
2896
|
});
|
|
2916
2897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2917
2898
|
}
|
|
@@ -2941,18 +2922,19 @@ const deserializeAws_restJson1ListSchedulesCommandError = async (output, context
|
|
|
2941
2922
|
body: await parseBody(output.body, context),
|
|
2942
2923
|
};
|
|
2943
2924
|
let response;
|
|
2944
|
-
|
|
2945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
2926
|
switch (errorCode) {
|
|
2947
2927
|
case "ValidationException":
|
|
2948
2928
|
case "com.amazonaws.databrew#ValidationException":
|
|
2949
2929
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2950
2930
|
default:
|
|
2951
2931
|
const parsedBody = parsedOutput.body;
|
|
2932
|
+
const $metadata = deserializeMetadata(output);
|
|
2933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2952
2934
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2954
2936
|
$fault: "client",
|
|
2955
|
-
$metadata
|
|
2937
|
+
$metadata,
|
|
2956
2938
|
});
|
|
2957
2939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2958
2940
|
}
|
|
@@ -2978,8 +2960,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2978
2960
|
body: await parseBody(output.body, context),
|
|
2979
2961
|
};
|
|
2980
2962
|
let response;
|
|
2981
|
-
|
|
2982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
2964
|
switch (errorCode) {
|
|
2984
2965
|
case "InternalServerException":
|
|
2985
2966
|
case "com.amazonaws.databrew#InternalServerException":
|
|
@@ -2992,10 +2973,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2992
2973
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2993
2974
|
default:
|
|
2994
2975
|
const parsedBody = parsedOutput.body;
|
|
2976
|
+
const $metadata = deserializeMetadata(output);
|
|
2977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2995
2978
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
2996
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2997
2980
|
$fault: "client",
|
|
2998
|
-
$metadata
|
|
2981
|
+
$metadata,
|
|
2999
2982
|
});
|
|
3000
2983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3001
2984
|
}
|
|
@@ -3021,8 +3004,7 @@ const deserializeAws_restJson1PublishRecipeCommandError = async (output, context
|
|
|
3021
3004
|
body: await parseBody(output.body, context),
|
|
3022
3005
|
};
|
|
3023
3006
|
let response;
|
|
3024
|
-
|
|
3025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3008
|
switch (errorCode) {
|
|
3027
3009
|
case "ResourceNotFoundException":
|
|
3028
3010
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3035,10 +3017,12 @@ const deserializeAws_restJson1PublishRecipeCommandError = async (output, context
|
|
|
3035
3017
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3036
3018
|
default:
|
|
3037
3019
|
const parsedBody = parsedOutput.body;
|
|
3020
|
+
const $metadata = deserializeMetadata(output);
|
|
3021
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3038
3022
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3039
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3040
3024
|
$fault: "client",
|
|
3041
|
-
$metadata
|
|
3025
|
+
$metadata,
|
|
3042
3026
|
});
|
|
3043
3027
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3044
3028
|
}
|
|
@@ -3072,8 +3056,7 @@ const deserializeAws_restJson1SendProjectSessionActionCommandError = async (outp
|
|
|
3072
3056
|
body: await parseBody(output.body, context),
|
|
3073
3057
|
};
|
|
3074
3058
|
let response;
|
|
3075
|
-
|
|
3076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
3060
|
switch (errorCode) {
|
|
3078
3061
|
case "ConflictException":
|
|
3079
3062
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -3086,10 +3069,12 @@ const deserializeAws_restJson1SendProjectSessionActionCommandError = async (outp
|
|
|
3086
3069
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3087
3070
|
default:
|
|
3088
3071
|
const parsedBody = parsedOutput.body;
|
|
3072
|
+
const $metadata = deserializeMetadata(output);
|
|
3073
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3089
3074
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3075
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3091
3076
|
$fault: "client",
|
|
3092
|
-
$metadata
|
|
3077
|
+
$metadata,
|
|
3093
3078
|
});
|
|
3094
3079
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3095
3080
|
}
|
|
@@ -3115,8 +3100,7 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
3115
3100
|
body: await parseBody(output.body, context),
|
|
3116
3101
|
};
|
|
3117
3102
|
let response;
|
|
3118
|
-
|
|
3119
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3120
3104
|
switch (errorCode) {
|
|
3121
3105
|
case "ConflictException":
|
|
3122
3106
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -3132,10 +3116,12 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
3132
3116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3133
3117
|
default:
|
|
3134
3118
|
const parsedBody = parsedOutput.body;
|
|
3119
|
+
const $metadata = deserializeMetadata(output);
|
|
3120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3135
3121
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3136
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3137
3123
|
$fault: "client",
|
|
3138
|
-
$metadata
|
|
3124
|
+
$metadata,
|
|
3139
3125
|
});
|
|
3140
3126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3141
3127
|
}
|
|
@@ -3165,8 +3151,7 @@ const deserializeAws_restJson1StartProjectSessionCommandError = async (output, c
|
|
|
3165
3151
|
body: await parseBody(output.body, context),
|
|
3166
3152
|
};
|
|
3167
3153
|
let response;
|
|
3168
|
-
|
|
3169
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
3155
|
switch (errorCode) {
|
|
3171
3156
|
case "ConflictException":
|
|
3172
3157
|
case "com.amazonaws.databrew#ConflictException":
|
|
@@ -3182,10 +3167,12 @@ const deserializeAws_restJson1StartProjectSessionCommandError = async (output, c
|
|
|
3182
3167
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3183
3168
|
default:
|
|
3184
3169
|
const parsedBody = parsedOutput.body;
|
|
3170
|
+
const $metadata = deserializeMetadata(output);
|
|
3171
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3185
3172
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3173
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3187
3174
|
$fault: "client",
|
|
3188
|
-
$metadata
|
|
3175
|
+
$metadata,
|
|
3189
3176
|
});
|
|
3190
3177
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3191
3178
|
}
|
|
@@ -3211,8 +3198,7 @@ const deserializeAws_restJson1StopJobRunCommandError = async (output, context) =
|
|
|
3211
3198
|
body: await parseBody(output.body, context),
|
|
3212
3199
|
};
|
|
3213
3200
|
let response;
|
|
3214
|
-
|
|
3215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
3202
|
switch (errorCode) {
|
|
3217
3203
|
case "ResourceNotFoundException":
|
|
3218
3204
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3222,10 +3208,12 @@ const deserializeAws_restJson1StopJobRunCommandError = async (output, context) =
|
|
|
3222
3208
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3223
3209
|
default:
|
|
3224
3210
|
const parsedBody = parsedOutput.body;
|
|
3211
|
+
const $metadata = deserializeMetadata(output);
|
|
3212
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3225
3213
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3226
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3214
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3227
3215
|
$fault: "client",
|
|
3228
|
-
$metadata
|
|
3216
|
+
$metadata,
|
|
3229
3217
|
});
|
|
3230
3218
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3231
3219
|
}
|
|
@@ -3247,8 +3235,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3247
3235
|
body: await parseBody(output.body, context),
|
|
3248
3236
|
};
|
|
3249
3237
|
let response;
|
|
3250
|
-
|
|
3251
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
3239
|
switch (errorCode) {
|
|
3253
3240
|
case "InternalServerException":
|
|
3254
3241
|
case "com.amazonaws.databrew#InternalServerException":
|
|
@@ -3261,10 +3248,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3261
3248
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3262
3249
|
default:
|
|
3263
3250
|
const parsedBody = parsedOutput.body;
|
|
3251
|
+
const $metadata = deserializeMetadata(output);
|
|
3252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3264
3253
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3266
3255
|
$fault: "client",
|
|
3267
|
-
$metadata
|
|
3256
|
+
$metadata,
|
|
3268
3257
|
});
|
|
3269
3258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3270
3259
|
}
|
|
@@ -3286,8 +3275,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3286
3275
|
body: await parseBody(output.body, context),
|
|
3287
3276
|
};
|
|
3288
3277
|
let response;
|
|
3289
|
-
|
|
3290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3291
3279
|
switch (errorCode) {
|
|
3292
3280
|
case "InternalServerException":
|
|
3293
3281
|
case "com.amazonaws.databrew#InternalServerException":
|
|
@@ -3300,10 +3288,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3300
3288
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3301
3289
|
default:
|
|
3302
3290
|
const parsedBody = parsedOutput.body;
|
|
3291
|
+
const $metadata = deserializeMetadata(output);
|
|
3292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3303
3293
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3305
3295
|
$fault: "client",
|
|
3306
|
-
$metadata
|
|
3296
|
+
$metadata,
|
|
3307
3297
|
});
|
|
3308
3298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3309
3299
|
}
|
|
@@ -3329,8 +3319,7 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
3329
3319
|
body: await parseBody(output.body, context),
|
|
3330
3320
|
};
|
|
3331
3321
|
let response;
|
|
3332
|
-
|
|
3333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3334
3323
|
switch (errorCode) {
|
|
3335
3324
|
case "AccessDeniedException":
|
|
3336
3325
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -3343,10 +3332,12 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
3343
3332
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3344
3333
|
default:
|
|
3345
3334
|
const parsedBody = parsedOutput.body;
|
|
3335
|
+
const $metadata = deserializeMetadata(output);
|
|
3336
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3346
3337
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3348
3339
|
$fault: "client",
|
|
3349
|
-
$metadata
|
|
3340
|
+
$metadata,
|
|
3350
3341
|
});
|
|
3351
3342
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3352
3343
|
}
|
|
@@ -3372,8 +3363,7 @@ const deserializeAws_restJson1UpdateProfileJobCommandError = async (output, cont
|
|
|
3372
3363
|
body: await parseBody(output.body, context),
|
|
3373
3364
|
};
|
|
3374
3365
|
let response;
|
|
3375
|
-
|
|
3376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3377
3367
|
switch (errorCode) {
|
|
3378
3368
|
case "AccessDeniedException":
|
|
3379
3369
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -3386,10 +3376,12 @@ const deserializeAws_restJson1UpdateProfileJobCommandError = async (output, cont
|
|
|
3386
3376
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3387
3377
|
default:
|
|
3388
3378
|
const parsedBody = parsedOutput.body;
|
|
3379
|
+
const $metadata = deserializeMetadata(output);
|
|
3380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3389
3381
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3390
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3391
3383
|
$fault: "client",
|
|
3392
|
-
$metadata
|
|
3384
|
+
$metadata,
|
|
3393
3385
|
});
|
|
3394
3386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3395
3387
|
}
|
|
@@ -3419,8 +3411,7 @@ const deserializeAws_restJson1UpdateProjectCommandError = async (output, context
|
|
|
3419
3411
|
body: await parseBody(output.body, context),
|
|
3420
3412
|
};
|
|
3421
3413
|
let response;
|
|
3422
|
-
|
|
3423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3424
3415
|
switch (errorCode) {
|
|
3425
3416
|
case "ResourceNotFoundException":
|
|
3426
3417
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3430,10 +3421,12 @@ const deserializeAws_restJson1UpdateProjectCommandError = async (output, context
|
|
|
3430
3421
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3431
3422
|
default:
|
|
3432
3423
|
const parsedBody = parsedOutput.body;
|
|
3424
|
+
const $metadata = deserializeMetadata(output);
|
|
3425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3433
3426
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3435
3428
|
$fault: "client",
|
|
3436
|
-
$metadata
|
|
3429
|
+
$metadata,
|
|
3437
3430
|
});
|
|
3438
3431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3439
3432
|
}
|
|
@@ -3459,8 +3452,7 @@ const deserializeAws_restJson1UpdateRecipeCommandError = async (output, context)
|
|
|
3459
3452
|
body: await parseBody(output.body, context),
|
|
3460
3453
|
};
|
|
3461
3454
|
let response;
|
|
3462
|
-
|
|
3463
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3464
3456
|
switch (errorCode) {
|
|
3465
3457
|
case "ResourceNotFoundException":
|
|
3466
3458
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3470,10 +3462,12 @@ const deserializeAws_restJson1UpdateRecipeCommandError = async (output, context)
|
|
|
3470
3462
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3471
3463
|
default:
|
|
3472
3464
|
const parsedBody = parsedOutput.body;
|
|
3465
|
+
const $metadata = deserializeMetadata(output);
|
|
3466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3473
3467
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3475
3469
|
$fault: "client",
|
|
3476
|
-
$metadata
|
|
3470
|
+
$metadata,
|
|
3477
3471
|
});
|
|
3478
3472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3479
3473
|
}
|
|
@@ -3499,8 +3493,7 @@ const deserializeAws_restJson1UpdateRecipeJobCommandError = async (output, conte
|
|
|
3499
3493
|
body: await parseBody(output.body, context),
|
|
3500
3494
|
};
|
|
3501
3495
|
let response;
|
|
3502
|
-
|
|
3503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
3497
|
switch (errorCode) {
|
|
3505
3498
|
case "AccessDeniedException":
|
|
3506
3499
|
case "com.amazonaws.databrew#AccessDeniedException":
|
|
@@ -3513,10 +3506,12 @@ const deserializeAws_restJson1UpdateRecipeJobCommandError = async (output, conte
|
|
|
3513
3506
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3514
3507
|
default:
|
|
3515
3508
|
const parsedBody = parsedOutput.body;
|
|
3509
|
+
const $metadata = deserializeMetadata(output);
|
|
3510
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3516
3511
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3518
3513
|
$fault: "client",
|
|
3519
|
-
$metadata
|
|
3514
|
+
$metadata,
|
|
3520
3515
|
});
|
|
3521
3516
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3522
3517
|
}
|
|
@@ -3542,8 +3537,7 @@ const deserializeAws_restJson1UpdateRulesetCommandError = async (output, context
|
|
|
3542
3537
|
body: await parseBody(output.body, context),
|
|
3543
3538
|
};
|
|
3544
3539
|
let response;
|
|
3545
|
-
|
|
3546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
3541
|
switch (errorCode) {
|
|
3548
3542
|
case "ResourceNotFoundException":
|
|
3549
3543
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3553,10 +3547,12 @@ const deserializeAws_restJson1UpdateRulesetCommandError = async (output, context
|
|
|
3553
3547
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3554
3548
|
default:
|
|
3555
3549
|
const parsedBody = parsedOutput.body;
|
|
3550
|
+
const $metadata = deserializeMetadata(output);
|
|
3551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3556
3552
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3557
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3558
3554
|
$fault: "client",
|
|
3559
|
-
$metadata
|
|
3555
|
+
$metadata,
|
|
3560
3556
|
});
|
|
3561
3557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3562
3558
|
}
|
|
@@ -3582,8 +3578,7 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
|
|
|
3582
3578
|
body: await parseBody(output.body, context),
|
|
3583
3579
|
};
|
|
3584
3580
|
let response;
|
|
3585
|
-
|
|
3586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3587
3582
|
switch (errorCode) {
|
|
3588
3583
|
case "ResourceNotFoundException":
|
|
3589
3584
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
@@ -3596,10 +3591,12 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
|
|
|
3596
3591
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3597
3592
|
default:
|
|
3598
3593
|
const parsedBody = parsedOutput.body;
|
|
3594
|
+
const $metadata = deserializeMetadata(output);
|
|
3595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3599
3596
|
response = new DataBrewServiceException_1.DataBrewServiceException({
|
|
3600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3601
3598
|
$fault: "client",
|
|
3602
|
-
$metadata
|
|
3599
|
+
$metadata,
|
|
3603
3600
|
});
|
|
3604
3601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3605
3602
|
}
|
|
@@ -3688,8 +3685,7 @@ const serializeAws_restJson1AllowedStatisticList = (input, context) => {
|
|
|
3688
3685
|
};
|
|
3689
3686
|
const serializeAws_restJson1AllowedStatistics = (input, context) => {
|
|
3690
3687
|
return {
|
|
3691
|
-
...(input.Statistics
|
|
3692
|
-
input.Statistics !== null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }),
|
|
3688
|
+
...(input.Statistics != null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }),
|
|
3693
3689
|
};
|
|
3694
3690
|
};
|
|
3695
3691
|
const serializeAws_restJson1ColumnNameList = (input, context) => {
|
|
@@ -3704,8 +3700,8 @@ const serializeAws_restJson1ColumnNameList = (input, context) => {
|
|
|
3704
3700
|
};
|
|
3705
3701
|
const serializeAws_restJson1ColumnSelector = (input, context) => {
|
|
3706
3702
|
return {
|
|
3707
|
-
...(input.Name
|
|
3708
|
-
...(input.Regex
|
|
3703
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3704
|
+
...(input.Regex != null && { Regex: input.Regex }),
|
|
3709
3705
|
};
|
|
3710
3706
|
};
|
|
3711
3707
|
const serializeAws_restJson1ColumnSelectorList = (input, context) => {
|
|
@@ -3720,10 +3716,8 @@ const serializeAws_restJson1ColumnSelectorList = (input, context) => {
|
|
|
3720
3716
|
};
|
|
3721
3717
|
const serializeAws_restJson1ColumnStatisticsConfiguration = (input, context) => {
|
|
3722
3718
|
return {
|
|
3723
|
-
...(input.Selectors
|
|
3724
|
-
|
|
3725
|
-
...(input.Statistics !== undefined &&
|
|
3726
|
-
input.Statistics !== null && {
|
|
3719
|
+
...(input.Selectors != null && { Selectors: serializeAws_restJson1ColumnSelectorList(input.Selectors, context) }),
|
|
3720
|
+
...(input.Statistics != null && {
|
|
3727
3721
|
Statistics: serializeAws_restJson1StatisticsConfiguration(input.Statistics, context),
|
|
3728
3722
|
}),
|
|
3729
3723
|
};
|
|
@@ -3740,9 +3734,9 @@ const serializeAws_restJson1ColumnStatisticsConfigurationList = (input, context)
|
|
|
3740
3734
|
};
|
|
3741
3735
|
const serializeAws_restJson1ConditionExpression = (input, context) => {
|
|
3742
3736
|
return {
|
|
3743
|
-
...(input.Condition
|
|
3744
|
-
...(input.TargetColumn
|
|
3745
|
-
...(input.Value
|
|
3737
|
+
...(input.Condition != null && { Condition: input.Condition }),
|
|
3738
|
+
...(input.TargetColumn != null && { TargetColumn: input.TargetColumn }),
|
|
3739
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3746
3740
|
};
|
|
3747
3741
|
};
|
|
3748
3742
|
const serializeAws_restJson1ConditionExpressionList = (input, context) => {
|
|
@@ -3757,38 +3751,32 @@ const serializeAws_restJson1ConditionExpressionList = (input, context) => {
|
|
|
3757
3751
|
};
|
|
3758
3752
|
const serializeAws_restJson1CsvOptions = (input, context) => {
|
|
3759
3753
|
return {
|
|
3760
|
-
...(input.Delimiter
|
|
3761
|
-
...(input.HeaderRow
|
|
3754
|
+
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
3755
|
+
...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
|
|
3762
3756
|
};
|
|
3763
3757
|
};
|
|
3764
3758
|
const serializeAws_restJson1CsvOutputOptions = (input, context) => {
|
|
3765
3759
|
return {
|
|
3766
|
-
...(input.Delimiter
|
|
3760
|
+
...(input.Delimiter != null && { Delimiter: input.Delimiter }),
|
|
3767
3761
|
};
|
|
3768
3762
|
};
|
|
3769
3763
|
const serializeAws_restJson1DatabaseInputDefinition = (input, context) => {
|
|
3770
3764
|
return {
|
|
3771
|
-
...(input.DatabaseTableName
|
|
3772
|
-
|
|
3773
|
-
...(input.
|
|
3774
|
-
|
|
3775
|
-
...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
|
|
3776
|
-
...(input.TempDirectory !== undefined &&
|
|
3777
|
-
input.TempDirectory !== null && {
|
|
3765
|
+
...(input.DatabaseTableName != null && { DatabaseTableName: input.DatabaseTableName }),
|
|
3766
|
+
...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
|
|
3767
|
+
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
3768
|
+
...(input.TempDirectory != null && {
|
|
3778
3769
|
TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
|
|
3779
3770
|
}),
|
|
3780
3771
|
};
|
|
3781
3772
|
};
|
|
3782
3773
|
const serializeAws_restJson1DatabaseOutput = (input, context) => {
|
|
3783
3774
|
return {
|
|
3784
|
-
...(input.DatabaseOptions
|
|
3785
|
-
input.DatabaseOptions !== null && {
|
|
3775
|
+
...(input.DatabaseOptions != null && {
|
|
3786
3776
|
DatabaseOptions: serializeAws_restJson1DatabaseTableOutputOptions(input.DatabaseOptions, context),
|
|
3787
3777
|
}),
|
|
3788
|
-
...(input.DatabaseOutputMode
|
|
3789
|
-
|
|
3790
|
-
...(input.GlueConnectionName !== undefined &&
|
|
3791
|
-
input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName }),
|
|
3778
|
+
...(input.DatabaseOutputMode != null && { DatabaseOutputMode: input.DatabaseOutputMode }),
|
|
3779
|
+
...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
|
|
3792
3780
|
};
|
|
3793
3781
|
};
|
|
3794
3782
|
const serializeAws_restJson1DatabaseOutputList = (input, context) => {
|
|
@@ -3803,36 +3791,32 @@ const serializeAws_restJson1DatabaseOutputList = (input, context) => {
|
|
|
3803
3791
|
};
|
|
3804
3792
|
const serializeAws_restJson1DatabaseTableOutputOptions = (input, context) => {
|
|
3805
3793
|
return {
|
|
3806
|
-
...(input.TableName
|
|
3807
|
-
...(input.TempDirectory
|
|
3808
|
-
input.TempDirectory !== null && {
|
|
3794
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
3795
|
+
...(input.TempDirectory != null && {
|
|
3809
3796
|
TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
|
|
3810
3797
|
}),
|
|
3811
3798
|
};
|
|
3812
3799
|
};
|
|
3813
3800
|
const serializeAws_restJson1DataCatalogInputDefinition = (input, context) => {
|
|
3814
3801
|
return {
|
|
3815
|
-
...(input.CatalogId
|
|
3816
|
-
...(input.DatabaseName
|
|
3817
|
-
...(input.TableName
|
|
3818
|
-
...(input.TempDirectory
|
|
3819
|
-
input.TempDirectory !== null && {
|
|
3802
|
+
...(input.CatalogId != null && { CatalogId: input.CatalogId }),
|
|
3803
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
3804
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
3805
|
+
...(input.TempDirectory != null && {
|
|
3820
3806
|
TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
|
|
3821
3807
|
}),
|
|
3822
3808
|
};
|
|
3823
3809
|
};
|
|
3824
3810
|
const serializeAws_restJson1DataCatalogOutput = (input, context) => {
|
|
3825
3811
|
return {
|
|
3826
|
-
...(input.CatalogId
|
|
3827
|
-
...(input.DatabaseName
|
|
3828
|
-
...(input.DatabaseOptions
|
|
3829
|
-
input.DatabaseOptions !== null && {
|
|
3812
|
+
...(input.CatalogId != null && { CatalogId: input.CatalogId }),
|
|
3813
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
3814
|
+
...(input.DatabaseOptions != null && {
|
|
3830
3815
|
DatabaseOptions: serializeAws_restJson1DatabaseTableOutputOptions(input.DatabaseOptions, context),
|
|
3831
3816
|
}),
|
|
3832
|
-
...(input.Overwrite
|
|
3833
|
-
...(input.S3Options
|
|
3834
|
-
|
|
3835
|
-
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
3817
|
+
...(input.Overwrite != null && { Overwrite: input.Overwrite }),
|
|
3818
|
+
...(input.S3Options != null && { S3Options: serializeAws_restJson1S3TableOutputOptions(input.S3Options, context) }),
|
|
3819
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
3836
3820
|
};
|
|
3837
3821
|
};
|
|
3838
3822
|
const serializeAws_restJson1DataCatalogOutputList = (input, context) => {
|
|
@@ -3847,33 +3831,28 @@ const serializeAws_restJson1DataCatalogOutputList = (input, context) => {
|
|
|
3847
3831
|
};
|
|
3848
3832
|
const serializeAws_restJson1DatasetParameter = (input, context) => {
|
|
3849
3833
|
return {
|
|
3850
|
-
...(input.CreateColumn
|
|
3851
|
-
...(input.DatetimeOptions
|
|
3852
|
-
input.DatetimeOptions !== null && {
|
|
3834
|
+
...(input.CreateColumn != null && { CreateColumn: input.CreateColumn }),
|
|
3835
|
+
...(input.DatetimeOptions != null && {
|
|
3853
3836
|
DatetimeOptions: serializeAws_restJson1DatetimeOptions(input.DatetimeOptions, context),
|
|
3854
3837
|
}),
|
|
3855
|
-
...(input.Filter
|
|
3856
|
-
|
|
3857
|
-
...(input.
|
|
3858
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3838
|
+
...(input.Filter != null && { Filter: serializeAws_restJson1FilterExpression(input.Filter, context) }),
|
|
3839
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3840
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3859
3841
|
};
|
|
3860
3842
|
};
|
|
3861
3843
|
const serializeAws_restJson1DatetimeOptions = (input, context) => {
|
|
3862
3844
|
return {
|
|
3863
|
-
...(input.Format
|
|
3864
|
-
...(input.LocaleCode
|
|
3865
|
-
...(input.TimezoneOffset
|
|
3866
|
-
input.TimezoneOffset !== null && { TimezoneOffset: input.TimezoneOffset }),
|
|
3845
|
+
...(input.Format != null && { Format: input.Format }),
|
|
3846
|
+
...(input.LocaleCode != null && { LocaleCode: input.LocaleCode }),
|
|
3847
|
+
...(input.TimezoneOffset != null && { TimezoneOffset: input.TimezoneOffset }),
|
|
3867
3848
|
};
|
|
3868
3849
|
};
|
|
3869
3850
|
const serializeAws_restJson1EntityDetectorConfiguration = (input, context) => {
|
|
3870
3851
|
return {
|
|
3871
|
-
...(input.AllowedStatistics
|
|
3872
|
-
input.AllowedStatistics !== null && {
|
|
3852
|
+
...(input.AllowedStatistics != null && {
|
|
3873
3853
|
AllowedStatistics: serializeAws_restJson1AllowedStatisticList(input.AllowedStatistics, context),
|
|
3874
3854
|
}),
|
|
3875
|
-
...(input.EntityTypes
|
|
3876
|
-
input.EntityTypes !== null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }),
|
|
3855
|
+
...(input.EntityTypes != null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }),
|
|
3877
3856
|
};
|
|
3878
3857
|
};
|
|
3879
3858
|
const serializeAws_restJson1EntityTypeList = (input, context) => {
|
|
@@ -3888,36 +3867,31 @@ const serializeAws_restJson1EntityTypeList = (input, context) => {
|
|
|
3888
3867
|
};
|
|
3889
3868
|
const serializeAws_restJson1ExcelOptions = (input, context) => {
|
|
3890
3869
|
return {
|
|
3891
|
-
...(input.HeaderRow
|
|
3892
|
-
...(input.SheetIndexes
|
|
3893
|
-
input.SheetIndexes !== null && {
|
|
3870
|
+
...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
|
|
3871
|
+
...(input.SheetIndexes != null && {
|
|
3894
3872
|
SheetIndexes: serializeAws_restJson1SheetIndexList(input.SheetIndexes, context),
|
|
3895
3873
|
}),
|
|
3896
|
-
...(input.SheetNames
|
|
3897
|
-
input.SheetNames !== null && { SheetNames: serializeAws_restJson1SheetNameList(input.SheetNames, context) }),
|
|
3874
|
+
...(input.SheetNames != null && { SheetNames: serializeAws_restJson1SheetNameList(input.SheetNames, context) }),
|
|
3898
3875
|
};
|
|
3899
3876
|
};
|
|
3900
3877
|
const serializeAws_restJson1FilesLimit = (input, context) => {
|
|
3901
3878
|
return {
|
|
3902
|
-
...(input.MaxFiles
|
|
3903
|
-
...(input.Order
|
|
3904
|
-
...(input.OrderedBy
|
|
3879
|
+
...(input.MaxFiles != null && { MaxFiles: input.MaxFiles }),
|
|
3880
|
+
...(input.Order != null && { Order: input.Order }),
|
|
3881
|
+
...(input.OrderedBy != null && { OrderedBy: input.OrderedBy }),
|
|
3905
3882
|
};
|
|
3906
3883
|
};
|
|
3907
3884
|
const serializeAws_restJson1FilterExpression = (input, context) => {
|
|
3908
3885
|
return {
|
|
3909
|
-
...(input.Expression
|
|
3910
|
-
...(input.ValuesMap
|
|
3911
|
-
input.ValuesMap !== null && { ValuesMap: serializeAws_restJson1ValuesMap(input.ValuesMap, context) }),
|
|
3886
|
+
...(input.Expression != null && { Expression: input.Expression }),
|
|
3887
|
+
...(input.ValuesMap != null && { ValuesMap: serializeAws_restJson1ValuesMap(input.ValuesMap, context) }),
|
|
3912
3888
|
};
|
|
3913
3889
|
};
|
|
3914
3890
|
const serializeAws_restJson1FormatOptions = (input, context) => {
|
|
3915
3891
|
return {
|
|
3916
|
-
...(input.Csv
|
|
3917
|
-
...(input.Excel
|
|
3918
|
-
|
|
3919
|
-
...(input.Json !== undefined &&
|
|
3920
|
-
input.Json !== null && { Json: serializeAws_restJson1JsonOptions(input.Json, context) }),
|
|
3892
|
+
...(input.Csv != null && { Csv: serializeAws_restJson1CsvOptions(input.Csv, context) }),
|
|
3893
|
+
...(input.Excel != null && { Excel: serializeAws_restJson1ExcelOptions(input.Excel, context) }),
|
|
3894
|
+
...(input.Json != null && { Json: serializeAws_restJson1JsonOptions(input.Json, context) }),
|
|
3921
3895
|
};
|
|
3922
3896
|
};
|
|
3923
3897
|
const serializeAws_restJson1HiddenColumnList = (input, context) => {
|
|
@@ -3932,18 +3906,14 @@ const serializeAws_restJson1HiddenColumnList = (input, context) => {
|
|
|
3932
3906
|
};
|
|
3933
3907
|
const serializeAws_restJson1Input = (input, context) => {
|
|
3934
3908
|
return {
|
|
3935
|
-
...(input.DataCatalogInputDefinition
|
|
3936
|
-
input.DataCatalogInputDefinition !== null && {
|
|
3909
|
+
...(input.DataCatalogInputDefinition != null && {
|
|
3937
3910
|
DataCatalogInputDefinition: serializeAws_restJson1DataCatalogInputDefinition(input.DataCatalogInputDefinition, context),
|
|
3938
3911
|
}),
|
|
3939
|
-
...(input.DatabaseInputDefinition
|
|
3940
|
-
input.DatabaseInputDefinition !== null && {
|
|
3912
|
+
...(input.DatabaseInputDefinition != null && {
|
|
3941
3913
|
DatabaseInputDefinition: serializeAws_restJson1DatabaseInputDefinition(input.DatabaseInputDefinition, context),
|
|
3942
3914
|
}),
|
|
3943
|
-
...(input.Metadata
|
|
3944
|
-
|
|
3945
|
-
...(input.S3InputDefinition !== undefined &&
|
|
3946
|
-
input.S3InputDefinition !== null && {
|
|
3915
|
+
...(input.Metadata != null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) }),
|
|
3916
|
+
...(input.S3InputDefinition != null && {
|
|
3947
3917
|
S3InputDefinition: serializeAws_restJson1S3Location(input.S3InputDefinition, context),
|
|
3948
3918
|
}),
|
|
3949
3919
|
};
|
|
@@ -3960,44 +3930,38 @@ const serializeAws_restJson1JobNameList = (input, context) => {
|
|
|
3960
3930
|
};
|
|
3961
3931
|
const serializeAws_restJson1JobSample = (input, context) => {
|
|
3962
3932
|
return {
|
|
3963
|
-
...(input.Mode
|
|
3964
|
-
...(input.Size
|
|
3933
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
3934
|
+
...(input.Size != null && { Size: input.Size }),
|
|
3965
3935
|
};
|
|
3966
3936
|
};
|
|
3967
3937
|
const serializeAws_restJson1JsonOptions = (input, context) => {
|
|
3968
3938
|
return {
|
|
3969
|
-
...(input.MultiLine
|
|
3939
|
+
...(input.MultiLine != null && { MultiLine: input.MultiLine }),
|
|
3970
3940
|
};
|
|
3971
3941
|
};
|
|
3972
3942
|
const serializeAws_restJson1Metadata = (input, context) => {
|
|
3973
3943
|
return {
|
|
3974
|
-
...(input.SourceArn
|
|
3944
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
3975
3945
|
};
|
|
3976
3946
|
};
|
|
3977
3947
|
const serializeAws_restJson1Output = (input, context) => {
|
|
3978
3948
|
return {
|
|
3979
|
-
...(input.CompressionFormat
|
|
3980
|
-
|
|
3981
|
-
...(input.
|
|
3982
|
-
...(input.FormatOptions !== undefined &&
|
|
3983
|
-
input.FormatOptions !== null && {
|
|
3949
|
+
...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
|
|
3950
|
+
...(input.Format != null && { Format: input.Format }),
|
|
3951
|
+
...(input.FormatOptions != null && {
|
|
3984
3952
|
FormatOptions: serializeAws_restJson1OutputFormatOptions(input.FormatOptions, context),
|
|
3985
3953
|
}),
|
|
3986
|
-
...(input.Location
|
|
3987
|
-
|
|
3988
|
-
...(input.
|
|
3989
|
-
|
|
3990
|
-
...(input.Overwrite !== undefined && input.Overwrite !== null && { Overwrite: input.Overwrite }),
|
|
3991
|
-
...(input.PartitionColumns !== undefined &&
|
|
3992
|
-
input.PartitionColumns !== null && {
|
|
3954
|
+
...(input.Location != null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
|
|
3955
|
+
...(input.MaxOutputFiles != null && { MaxOutputFiles: input.MaxOutputFiles }),
|
|
3956
|
+
...(input.Overwrite != null && { Overwrite: input.Overwrite }),
|
|
3957
|
+
...(input.PartitionColumns != null && {
|
|
3993
3958
|
PartitionColumns: serializeAws_restJson1ColumnNameList(input.PartitionColumns, context),
|
|
3994
3959
|
}),
|
|
3995
3960
|
};
|
|
3996
3961
|
};
|
|
3997
3962
|
const serializeAws_restJson1OutputFormatOptions = (input, context) => {
|
|
3998
3963
|
return {
|
|
3999
|
-
...(input.Csv
|
|
4000
|
-
input.Csv !== null && { Csv: serializeAws_restJson1CsvOutputOptions(input.Csv, context) }),
|
|
3964
|
+
...(input.Csv != null && { Csv: serializeAws_restJson1CsvOutputOptions(input.Csv, context) }),
|
|
4001
3965
|
};
|
|
4002
3966
|
};
|
|
4003
3967
|
const serializeAws_restJson1OutputList = (input, context) => {
|
|
@@ -4023,14 +3987,11 @@ const serializeAws_restJson1ParameterMap = (input, context) => {
|
|
|
4023
3987
|
};
|
|
4024
3988
|
const serializeAws_restJson1PathOptions = (input, context) => {
|
|
4025
3989
|
return {
|
|
4026
|
-
...(input.FilesLimit
|
|
4027
|
-
|
|
4028
|
-
...(input.LastModifiedDateCondition !== undefined &&
|
|
4029
|
-
input.LastModifiedDateCondition !== null && {
|
|
3990
|
+
...(input.FilesLimit != null && { FilesLimit: serializeAws_restJson1FilesLimit(input.FilesLimit, context) }),
|
|
3991
|
+
...(input.LastModifiedDateCondition != null && {
|
|
4030
3992
|
LastModifiedDateCondition: serializeAws_restJson1FilterExpression(input.LastModifiedDateCondition, context),
|
|
4031
3993
|
}),
|
|
4032
|
-
...(input.Parameters
|
|
4033
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1PathParametersMap(input.Parameters, context) }),
|
|
3994
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1PathParametersMap(input.Parameters, context) }),
|
|
4034
3995
|
};
|
|
4035
3996
|
};
|
|
4036
3997
|
const serializeAws_restJson1PathParametersMap = (input, context) => {
|
|
@@ -4046,43 +4007,36 @@ const serializeAws_restJson1PathParametersMap = (input, context) => {
|
|
|
4046
4007
|
};
|
|
4047
4008
|
const serializeAws_restJson1ProfileConfiguration = (input, context) => {
|
|
4048
4009
|
return {
|
|
4049
|
-
...(input.ColumnStatisticsConfigurations
|
|
4050
|
-
input.ColumnStatisticsConfigurations !== null && {
|
|
4010
|
+
...(input.ColumnStatisticsConfigurations != null && {
|
|
4051
4011
|
ColumnStatisticsConfigurations: serializeAws_restJson1ColumnStatisticsConfigurationList(input.ColumnStatisticsConfigurations, context),
|
|
4052
4012
|
}),
|
|
4053
|
-
...(input.DatasetStatisticsConfiguration
|
|
4054
|
-
input.DatasetStatisticsConfiguration !== null && {
|
|
4013
|
+
...(input.DatasetStatisticsConfiguration != null && {
|
|
4055
4014
|
DatasetStatisticsConfiguration: serializeAws_restJson1StatisticsConfiguration(input.DatasetStatisticsConfiguration, context),
|
|
4056
4015
|
}),
|
|
4057
|
-
...(input.EntityDetectorConfiguration
|
|
4058
|
-
input.EntityDetectorConfiguration !== null && {
|
|
4016
|
+
...(input.EntityDetectorConfiguration != null && {
|
|
4059
4017
|
EntityDetectorConfiguration: serializeAws_restJson1EntityDetectorConfiguration(input.EntityDetectorConfiguration, context),
|
|
4060
4018
|
}),
|
|
4061
|
-
...(input.ProfileColumns
|
|
4062
|
-
input.ProfileColumns !== null && {
|
|
4019
|
+
...(input.ProfileColumns != null && {
|
|
4063
4020
|
ProfileColumns: serializeAws_restJson1ColumnSelectorList(input.ProfileColumns, context),
|
|
4064
4021
|
}),
|
|
4065
4022
|
};
|
|
4066
4023
|
};
|
|
4067
4024
|
const serializeAws_restJson1RecipeAction = (input, context) => {
|
|
4068
4025
|
return {
|
|
4069
|
-
...(input.Operation
|
|
4070
|
-
...(input.Parameters
|
|
4071
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
|
|
4026
|
+
...(input.Operation != null && { Operation: input.Operation }),
|
|
4027
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
|
|
4072
4028
|
};
|
|
4073
4029
|
};
|
|
4074
4030
|
const serializeAws_restJson1RecipeReference = (input, context) => {
|
|
4075
4031
|
return {
|
|
4076
|
-
...(input.Name
|
|
4077
|
-
...(input.RecipeVersion
|
|
4032
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4033
|
+
...(input.RecipeVersion != null && { RecipeVersion: input.RecipeVersion }),
|
|
4078
4034
|
};
|
|
4079
4035
|
};
|
|
4080
4036
|
const serializeAws_restJson1RecipeStep = (input, context) => {
|
|
4081
4037
|
return {
|
|
4082
|
-
...(input.Action
|
|
4083
|
-
|
|
4084
|
-
...(input.ConditionExpressions !== undefined &&
|
|
4085
|
-
input.ConditionExpressions !== null && {
|
|
4038
|
+
...(input.Action != null && { Action: serializeAws_restJson1RecipeAction(input.Action, context) }),
|
|
4039
|
+
...(input.ConditionExpressions != null && {
|
|
4086
4040
|
ConditionExpressions: serializeAws_restJson1ConditionExpressionList(input.ConditionExpressions, context),
|
|
4087
4041
|
}),
|
|
4088
4042
|
};
|
|
@@ -4109,20 +4063,16 @@ const serializeAws_restJson1RecipeVersionList = (input, context) => {
|
|
|
4109
4063
|
};
|
|
4110
4064
|
const serializeAws_restJson1Rule = (input, context) => {
|
|
4111
4065
|
return {
|
|
4112
|
-
...(input.CheckExpression
|
|
4113
|
-
|
|
4114
|
-
...(input.ColumnSelectors !== undefined &&
|
|
4115
|
-
input.ColumnSelectors !== null && {
|
|
4066
|
+
...(input.CheckExpression != null && { CheckExpression: input.CheckExpression }),
|
|
4067
|
+
...(input.ColumnSelectors != null && {
|
|
4116
4068
|
ColumnSelectors: serializeAws_restJson1ColumnSelectorList(input.ColumnSelectors, context),
|
|
4117
4069
|
}),
|
|
4118
|
-
...(input.Disabled
|
|
4119
|
-
...(input.Name
|
|
4120
|
-
...(input.SubstitutionMap
|
|
4121
|
-
input.SubstitutionMap !== null && {
|
|
4070
|
+
...(input.Disabled != null && { Disabled: input.Disabled }),
|
|
4071
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4072
|
+
...(input.SubstitutionMap != null && {
|
|
4122
4073
|
SubstitutionMap: serializeAws_restJson1ValuesMap(input.SubstitutionMap, context),
|
|
4123
4074
|
}),
|
|
4124
|
-
...(input.Threshold
|
|
4125
|
-
input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
|
|
4075
|
+
...(input.Threshold != null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
|
|
4126
4076
|
};
|
|
4127
4077
|
};
|
|
4128
4078
|
const serializeAws_restJson1RuleList = (input, context) => {
|
|
@@ -4137,21 +4087,20 @@ const serializeAws_restJson1RuleList = (input, context) => {
|
|
|
4137
4087
|
};
|
|
4138
4088
|
const serializeAws_restJson1S3Location = (input, context) => {
|
|
4139
4089
|
return {
|
|
4140
|
-
...(input.Bucket
|
|
4141
|
-
...(input.BucketOwner
|
|
4142
|
-
...(input.Key
|
|
4090
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
4091
|
+
...(input.BucketOwner != null && { BucketOwner: input.BucketOwner }),
|
|
4092
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4143
4093
|
};
|
|
4144
4094
|
};
|
|
4145
4095
|
const serializeAws_restJson1S3TableOutputOptions = (input, context) => {
|
|
4146
4096
|
return {
|
|
4147
|
-
...(input.Location
|
|
4148
|
-
input.Location !== null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
|
|
4097
|
+
...(input.Location != null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
|
|
4149
4098
|
};
|
|
4150
4099
|
};
|
|
4151
4100
|
const serializeAws_restJson1Sample = (input, context) => {
|
|
4152
4101
|
return {
|
|
4153
|
-
...(input.Size
|
|
4154
|
-
...(input.Type
|
|
4102
|
+
...(input.Size != null && { Size: input.Size }),
|
|
4103
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4155
4104
|
};
|
|
4156
4105
|
};
|
|
4157
4106
|
const serializeAws_restJson1SheetIndexList = (input, context) => {
|
|
@@ -4186,9 +4135,8 @@ const serializeAws_restJson1StatisticList = (input, context) => {
|
|
|
4186
4135
|
};
|
|
4187
4136
|
const serializeAws_restJson1StatisticOverride = (input, context) => {
|
|
4188
4137
|
return {
|
|
4189
|
-
...(input.Parameters
|
|
4190
|
-
|
|
4191
|
-
...(input.Statistic !== undefined && input.Statistic !== null && { Statistic: input.Statistic }),
|
|
4138
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
|
|
4139
|
+
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
4192
4140
|
};
|
|
4193
4141
|
};
|
|
4194
4142
|
const serializeAws_restJson1StatisticOverrideList = (input, context) => {
|
|
@@ -4203,12 +4151,12 @@ const serializeAws_restJson1StatisticOverrideList = (input, context) => {
|
|
|
4203
4151
|
};
|
|
4204
4152
|
const serializeAws_restJson1StatisticsConfiguration = (input, context) => {
|
|
4205
4153
|
return {
|
|
4206
|
-
...(input.IncludedStatistics
|
|
4207
|
-
input.IncludedStatistics !== null && {
|
|
4154
|
+
...(input.IncludedStatistics != null && {
|
|
4208
4155
|
IncludedStatistics: serializeAws_restJson1StatisticList(input.IncludedStatistics, context),
|
|
4209
4156
|
}),
|
|
4210
|
-
...(input.Overrides
|
|
4211
|
-
|
|
4157
|
+
...(input.Overrides != null && {
|
|
4158
|
+
Overrides: serializeAws_restJson1StatisticOverrideList(input.Overrides, context),
|
|
4159
|
+
}),
|
|
4212
4160
|
};
|
|
4213
4161
|
};
|
|
4214
4162
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -4224,16 +4172,15 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4224
4172
|
};
|
|
4225
4173
|
const serializeAws_restJson1Threshold = (input, context) => {
|
|
4226
4174
|
return {
|
|
4227
|
-
...(input.Type
|
|
4228
|
-
...(input.Unit
|
|
4229
|
-
...(input.Value
|
|
4175
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4176
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
4177
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
4230
4178
|
};
|
|
4231
4179
|
};
|
|
4232
4180
|
const serializeAws_restJson1ValidationConfiguration = (input, context) => {
|
|
4233
4181
|
return {
|
|
4234
|
-
...(input.RulesetArn
|
|
4235
|
-
...(input.ValidationMode
|
|
4236
|
-
input.ValidationMode !== null && { ValidationMode: input.ValidationMode }),
|
|
4182
|
+
...(input.RulesetArn != null && { RulesetArn: input.RulesetArn }),
|
|
4183
|
+
...(input.ValidationMode != null && { ValidationMode: input.ValidationMode }),
|
|
4237
4184
|
};
|
|
4238
4185
|
};
|
|
4239
4186
|
const serializeAws_restJson1ValidationConfigurationList = (input, context) => {
|
|
@@ -4259,16 +4206,14 @@ const serializeAws_restJson1ValuesMap = (input, context) => {
|
|
|
4259
4206
|
};
|
|
4260
4207
|
const serializeAws_restJson1ViewFrame = (input, context) => {
|
|
4261
4208
|
return {
|
|
4262
|
-
...(input.Analytics
|
|
4263
|
-
...(input.ColumnRange
|
|
4264
|
-
...(input.HiddenColumns
|
|
4265
|
-
input.HiddenColumns !== null && {
|
|
4209
|
+
...(input.Analytics != null && { Analytics: input.Analytics }),
|
|
4210
|
+
...(input.ColumnRange != null && { ColumnRange: input.ColumnRange }),
|
|
4211
|
+
...(input.HiddenColumns != null && {
|
|
4266
4212
|
HiddenColumns: serializeAws_restJson1HiddenColumnList(input.HiddenColumns, context),
|
|
4267
4213
|
}),
|
|
4268
|
-
...(input.RowRange
|
|
4269
|
-
...(input.StartColumnIndex
|
|
4270
|
-
|
|
4271
|
-
...(input.StartRowIndex !== undefined && input.StartRowIndex !== null && { StartRowIndex: input.StartRowIndex }),
|
|
4214
|
+
...(input.RowRange != null && { RowRange: input.RowRange }),
|
|
4215
|
+
...(input.StartColumnIndex != null && { StartColumnIndex: input.StartColumnIndex }),
|
|
4216
|
+
...(input.StartRowIndex != null && { StartRowIndex: input.StartRowIndex }),
|
|
4272
4217
|
};
|
|
4273
4218
|
};
|
|
4274
4219
|
const deserializeAws_restJson1AllowedStatisticList = (output, context) => {
|
|
@@ -4284,9 +4229,7 @@ const deserializeAws_restJson1AllowedStatisticList = (output, context) => {
|
|
|
4284
4229
|
};
|
|
4285
4230
|
const deserializeAws_restJson1AllowedStatistics = (output, context) => {
|
|
4286
4231
|
return {
|
|
4287
|
-
Statistics: output.Statistics
|
|
4288
|
-
? deserializeAws_restJson1StatisticList(output.Statistics, context)
|
|
4289
|
-
: undefined,
|
|
4232
|
+
Statistics: output.Statistics != null ? deserializeAws_restJson1StatisticList(output.Statistics, context) : undefined,
|
|
4290
4233
|
};
|
|
4291
4234
|
};
|
|
4292
4235
|
const deserializeAws_restJson1ColumnNameList = (output, context) => {
|
|
@@ -4319,10 +4262,8 @@ const deserializeAws_restJson1ColumnSelectorList = (output, context) => {
|
|
|
4319
4262
|
};
|
|
4320
4263
|
const deserializeAws_restJson1ColumnStatisticsConfiguration = (output, context) => {
|
|
4321
4264
|
return {
|
|
4322
|
-
Selectors: output.Selectors
|
|
4323
|
-
|
|
4324
|
-
: undefined,
|
|
4325
|
-
Statistics: output.Statistics !== undefined && output.Statistics !== null
|
|
4265
|
+
Selectors: output.Selectors != null ? deserializeAws_restJson1ColumnSelectorList(output.Selectors, context) : undefined,
|
|
4266
|
+
Statistics: output.Statistics != null
|
|
4326
4267
|
? deserializeAws_restJson1StatisticsConfiguration(output.Statistics, context)
|
|
4327
4268
|
: undefined,
|
|
4328
4269
|
};
|
|
@@ -4372,14 +4313,12 @@ const deserializeAws_restJson1DatabaseInputDefinition = (output, context) => {
|
|
|
4372
4313
|
DatabaseTableName: (0, smithy_client_1.expectString)(output.DatabaseTableName),
|
|
4373
4314
|
GlueConnectionName: (0, smithy_client_1.expectString)(output.GlueConnectionName),
|
|
4374
4315
|
QueryString: (0, smithy_client_1.expectString)(output.QueryString),
|
|
4375
|
-
TempDirectory: output.TempDirectory
|
|
4376
|
-
? deserializeAws_restJson1S3Location(output.TempDirectory, context)
|
|
4377
|
-
: undefined,
|
|
4316
|
+
TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
|
|
4378
4317
|
};
|
|
4379
4318
|
};
|
|
4380
4319
|
const deserializeAws_restJson1DatabaseOutput = (output, context) => {
|
|
4381
4320
|
return {
|
|
4382
|
-
DatabaseOptions: output.DatabaseOptions
|
|
4321
|
+
DatabaseOptions: output.DatabaseOptions != null
|
|
4383
4322
|
? deserializeAws_restJson1DatabaseTableOutputOptions(output.DatabaseOptions, context)
|
|
4384
4323
|
: undefined,
|
|
4385
4324
|
DatabaseOutputMode: (0, smithy_client_1.expectString)(output.DatabaseOutputMode),
|
|
@@ -4400,9 +4339,7 @@ const deserializeAws_restJson1DatabaseOutputList = (output, context) => {
|
|
|
4400
4339
|
const deserializeAws_restJson1DatabaseTableOutputOptions = (output, context) => {
|
|
4401
4340
|
return {
|
|
4402
4341
|
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
4403
|
-
TempDirectory: output.TempDirectory
|
|
4404
|
-
? deserializeAws_restJson1S3Location(output.TempDirectory, context)
|
|
4405
|
-
: undefined,
|
|
4342
|
+
TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
|
|
4406
4343
|
};
|
|
4407
4344
|
};
|
|
4408
4345
|
const deserializeAws_restJson1DataCatalogInputDefinition = (output, context) => {
|
|
@@ -4410,22 +4347,18 @@ const deserializeAws_restJson1DataCatalogInputDefinition = (output, context) =>
|
|
|
4410
4347
|
CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
|
|
4411
4348
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
4412
4349
|
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
4413
|
-
TempDirectory: output.TempDirectory
|
|
4414
|
-
? deserializeAws_restJson1S3Location(output.TempDirectory, context)
|
|
4415
|
-
: undefined,
|
|
4350
|
+
TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
|
|
4416
4351
|
};
|
|
4417
4352
|
};
|
|
4418
4353
|
const deserializeAws_restJson1DataCatalogOutput = (output, context) => {
|
|
4419
4354
|
return {
|
|
4420
4355
|
CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
|
|
4421
4356
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
4422
|
-
DatabaseOptions: output.DatabaseOptions
|
|
4357
|
+
DatabaseOptions: output.DatabaseOptions != null
|
|
4423
4358
|
? deserializeAws_restJson1DatabaseTableOutputOptions(output.DatabaseOptions, context)
|
|
4424
4359
|
: undefined,
|
|
4425
4360
|
Overwrite: (0, smithy_client_1.expectBoolean)(output.Overwrite),
|
|
4426
|
-
S3Options: output.S3Options
|
|
4427
|
-
? deserializeAws_restJson1S3TableOutputOptions(output.S3Options, context)
|
|
4428
|
-
: undefined,
|
|
4361
|
+
S3Options: output.S3Options != null ? deserializeAws_restJson1S3TableOutputOptions(output.S3Options, context) : undefined,
|
|
4429
4362
|
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
4430
4363
|
};
|
|
4431
4364
|
};
|
|
@@ -4443,30 +4376,20 @@ const deserializeAws_restJson1DataCatalogOutputList = (output, context) => {
|
|
|
4443
4376
|
const deserializeAws_restJson1Dataset = (output, context) => {
|
|
4444
4377
|
return {
|
|
4445
4378
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
4446
|
-
CreateDate: output.CreateDate
|
|
4447
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
4448
|
-
: undefined,
|
|
4379
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
4449
4380
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
4450
4381
|
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
4451
|
-
FormatOptions: output.FormatOptions
|
|
4452
|
-
|
|
4453
|
-
: undefined,
|
|
4454
|
-
Input: output.Input !== undefined && output.Input !== null
|
|
4455
|
-
? deserializeAws_restJson1Input(output.Input, context)
|
|
4456
|
-
: undefined,
|
|
4382
|
+
FormatOptions: output.FormatOptions != null ? deserializeAws_restJson1FormatOptions(output.FormatOptions, context) : undefined,
|
|
4383
|
+
Input: output.Input != null ? deserializeAws_restJson1Input(output.Input, context) : undefined,
|
|
4457
4384
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
4458
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4385
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
4459
4386
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
4460
4387
|
: undefined,
|
|
4461
4388
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4462
|
-
PathOptions: output.PathOptions
|
|
4463
|
-
? deserializeAws_restJson1PathOptions(output.PathOptions, context)
|
|
4464
|
-
: undefined,
|
|
4389
|
+
PathOptions: output.PathOptions != null ? deserializeAws_restJson1PathOptions(output.PathOptions, context) : undefined,
|
|
4465
4390
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4466
4391
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
4467
|
-
Tags: output.Tags
|
|
4468
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4469
|
-
: undefined,
|
|
4392
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4470
4393
|
};
|
|
4471
4394
|
};
|
|
4472
4395
|
const deserializeAws_restJson1DatasetList = (output, context) => {
|
|
@@ -4483,12 +4406,10 @@ const deserializeAws_restJson1DatasetList = (output, context) => {
|
|
|
4483
4406
|
const deserializeAws_restJson1DatasetParameter = (output, context) => {
|
|
4484
4407
|
return {
|
|
4485
4408
|
CreateColumn: (0, smithy_client_1.expectBoolean)(output.CreateColumn),
|
|
4486
|
-
DatetimeOptions: output.DatetimeOptions
|
|
4409
|
+
DatetimeOptions: output.DatetimeOptions != null
|
|
4487
4410
|
? deserializeAws_restJson1DatetimeOptions(output.DatetimeOptions, context)
|
|
4488
4411
|
: undefined,
|
|
4489
|
-
Filter: output.Filter
|
|
4490
|
-
? deserializeAws_restJson1FilterExpression(output.Filter, context)
|
|
4491
|
-
: undefined,
|
|
4412
|
+
Filter: output.Filter != null ? deserializeAws_restJson1FilterExpression(output.Filter, context) : undefined,
|
|
4492
4413
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4493
4414
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4494
4415
|
};
|
|
@@ -4502,12 +4423,10 @@ const deserializeAws_restJson1DatetimeOptions = (output, context) => {
|
|
|
4502
4423
|
};
|
|
4503
4424
|
const deserializeAws_restJson1EntityDetectorConfiguration = (output, context) => {
|
|
4504
4425
|
return {
|
|
4505
|
-
AllowedStatistics: output.AllowedStatistics
|
|
4426
|
+
AllowedStatistics: output.AllowedStatistics != null
|
|
4506
4427
|
? deserializeAws_restJson1AllowedStatisticList(output.AllowedStatistics, context)
|
|
4507
4428
|
: undefined,
|
|
4508
|
-
EntityTypes: output.EntityTypes
|
|
4509
|
-
? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context)
|
|
4510
|
-
: undefined,
|
|
4429
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context) : undefined,
|
|
4511
4430
|
};
|
|
4512
4431
|
};
|
|
4513
4432
|
const deserializeAws_restJson1EntityTypeList = (output, context) => {
|
|
@@ -4524,12 +4443,8 @@ const deserializeAws_restJson1EntityTypeList = (output, context) => {
|
|
|
4524
4443
|
const deserializeAws_restJson1ExcelOptions = (output, context) => {
|
|
4525
4444
|
return {
|
|
4526
4445
|
HeaderRow: (0, smithy_client_1.expectBoolean)(output.HeaderRow),
|
|
4527
|
-
SheetIndexes: output.SheetIndexes
|
|
4528
|
-
|
|
4529
|
-
: undefined,
|
|
4530
|
-
SheetNames: output.SheetNames !== undefined && output.SheetNames !== null
|
|
4531
|
-
? deserializeAws_restJson1SheetNameList(output.SheetNames, context)
|
|
4532
|
-
: undefined,
|
|
4446
|
+
SheetIndexes: output.SheetIndexes != null ? deserializeAws_restJson1SheetIndexList(output.SheetIndexes, context) : undefined,
|
|
4447
|
+
SheetNames: output.SheetNames != null ? deserializeAws_restJson1SheetNameList(output.SheetNames, context) : undefined,
|
|
4533
4448
|
};
|
|
4534
4449
|
};
|
|
4535
4450
|
const deserializeAws_restJson1FilesLimit = (output, context) => {
|
|
@@ -4542,36 +4457,26 @@ const deserializeAws_restJson1FilesLimit = (output, context) => {
|
|
|
4542
4457
|
const deserializeAws_restJson1FilterExpression = (output, context) => {
|
|
4543
4458
|
return {
|
|
4544
4459
|
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
4545
|
-
ValuesMap: output.ValuesMap
|
|
4546
|
-
? deserializeAws_restJson1ValuesMap(output.ValuesMap, context)
|
|
4547
|
-
: undefined,
|
|
4460
|
+
ValuesMap: output.ValuesMap != null ? deserializeAws_restJson1ValuesMap(output.ValuesMap, context) : undefined,
|
|
4548
4461
|
};
|
|
4549
4462
|
};
|
|
4550
4463
|
const deserializeAws_restJson1FormatOptions = (output, context) => {
|
|
4551
4464
|
return {
|
|
4552
|
-
Csv: output.Csv
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
Excel: output.Excel !== undefined && output.Excel !== null
|
|
4556
|
-
? deserializeAws_restJson1ExcelOptions(output.Excel, context)
|
|
4557
|
-
: undefined,
|
|
4558
|
-
Json: output.Json !== undefined && output.Json !== null
|
|
4559
|
-
? deserializeAws_restJson1JsonOptions(output.Json, context)
|
|
4560
|
-
: undefined,
|
|
4465
|
+
Csv: output.Csv != null ? deserializeAws_restJson1CsvOptions(output.Csv, context) : undefined,
|
|
4466
|
+
Excel: output.Excel != null ? deserializeAws_restJson1ExcelOptions(output.Excel, context) : undefined,
|
|
4467
|
+
Json: output.Json != null ? deserializeAws_restJson1JsonOptions(output.Json, context) : undefined,
|
|
4561
4468
|
};
|
|
4562
4469
|
};
|
|
4563
4470
|
const deserializeAws_restJson1Input = (output, context) => {
|
|
4564
4471
|
return {
|
|
4565
|
-
DataCatalogInputDefinition: output.DataCatalogInputDefinition
|
|
4472
|
+
DataCatalogInputDefinition: output.DataCatalogInputDefinition != null
|
|
4566
4473
|
? deserializeAws_restJson1DataCatalogInputDefinition(output.DataCatalogInputDefinition, context)
|
|
4567
4474
|
: undefined,
|
|
4568
|
-
DatabaseInputDefinition: output.DatabaseInputDefinition
|
|
4475
|
+
DatabaseInputDefinition: output.DatabaseInputDefinition != null
|
|
4569
4476
|
? deserializeAws_restJson1DatabaseInputDefinition(output.DatabaseInputDefinition, context)
|
|
4570
4477
|
: undefined,
|
|
4571
|
-
Metadata: output.Metadata
|
|
4572
|
-
|
|
4573
|
-
: undefined,
|
|
4574
|
-
S3InputDefinition: output.S3InputDefinition !== undefined && output.S3InputDefinition !== null
|
|
4478
|
+
Metadata: output.Metadata != null ? deserializeAws_restJson1Metadata(output.Metadata, context) : undefined,
|
|
4479
|
+
S3InputDefinition: output.S3InputDefinition != null
|
|
4575
4480
|
? deserializeAws_restJson1S3Location(output.S3InputDefinition, context)
|
|
4576
4481
|
: undefined,
|
|
4577
4482
|
};
|
|
@@ -4579,45 +4484,37 @@ const deserializeAws_restJson1Input = (output, context) => {
|
|
|
4579
4484
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
4580
4485
|
return {
|
|
4581
4486
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
4582
|
-
CreateDate: output.CreateDate
|
|
4583
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
4584
|
-
: undefined,
|
|
4487
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
4585
4488
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
4586
|
-
DataCatalogOutputs: output.DataCatalogOutputs
|
|
4489
|
+
DataCatalogOutputs: output.DataCatalogOutputs != null
|
|
4587
4490
|
? deserializeAws_restJson1DataCatalogOutputList(output.DataCatalogOutputs, context)
|
|
4588
4491
|
: undefined,
|
|
4589
|
-
DatabaseOutputs: output.DatabaseOutputs
|
|
4492
|
+
DatabaseOutputs: output.DatabaseOutputs != null
|
|
4590
4493
|
? deserializeAws_restJson1DatabaseOutputList(output.DatabaseOutputs, context)
|
|
4591
4494
|
: undefined,
|
|
4592
4495
|
DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
|
|
4593
4496
|
EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
|
|
4594
4497
|
EncryptionMode: (0, smithy_client_1.expectString)(output.EncryptionMode),
|
|
4595
|
-
JobSample: output.JobSample
|
|
4596
|
-
? deserializeAws_restJson1JobSample(output.JobSample, context)
|
|
4597
|
-
: undefined,
|
|
4498
|
+
JobSample: output.JobSample != null ? deserializeAws_restJson1JobSample(output.JobSample, context) : undefined,
|
|
4598
4499
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
4599
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4500
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
4600
4501
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
4601
4502
|
: undefined,
|
|
4602
4503
|
LogSubscription: (0, smithy_client_1.expectString)(output.LogSubscription),
|
|
4603
4504
|
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
4604
4505
|
MaxRetries: (0, smithy_client_1.expectInt32)(output.MaxRetries),
|
|
4605
4506
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4606
|
-
Outputs: output.Outputs
|
|
4607
|
-
? deserializeAws_restJson1OutputList(output.Outputs, context)
|
|
4608
|
-
: undefined,
|
|
4507
|
+
Outputs: output.Outputs != null ? deserializeAws_restJson1OutputList(output.Outputs, context) : undefined,
|
|
4609
4508
|
ProjectName: (0, smithy_client_1.expectString)(output.ProjectName),
|
|
4610
|
-
RecipeReference: output.RecipeReference
|
|
4509
|
+
RecipeReference: output.RecipeReference != null
|
|
4611
4510
|
? deserializeAws_restJson1RecipeReference(output.RecipeReference, context)
|
|
4612
4511
|
: undefined,
|
|
4613
4512
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4614
4513
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
4615
|
-
Tags: output.Tags
|
|
4616
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4617
|
-
: undefined,
|
|
4514
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4618
4515
|
Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
|
|
4619
4516
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4620
|
-
ValidationConfigurations: output.ValidationConfigurations
|
|
4517
|
+
ValidationConfigurations: output.ValidationConfigurations != null
|
|
4621
4518
|
? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
|
|
4622
4519
|
: undefined,
|
|
4623
4520
|
};
|
|
@@ -4647,37 +4544,31 @@ const deserializeAws_restJson1JobNameList = (output, context) => {
|
|
|
4647
4544
|
const deserializeAws_restJson1JobRun = (output, context) => {
|
|
4648
4545
|
return {
|
|
4649
4546
|
Attempt: (0, smithy_client_1.expectInt32)(output.Attempt),
|
|
4650
|
-
CompletedOn: output.CompletedOn
|
|
4547
|
+
CompletedOn: output.CompletedOn != null
|
|
4651
4548
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletedOn)))
|
|
4652
4549
|
: undefined,
|
|
4653
|
-
DataCatalogOutputs: output.DataCatalogOutputs
|
|
4550
|
+
DataCatalogOutputs: output.DataCatalogOutputs != null
|
|
4654
4551
|
? deserializeAws_restJson1DataCatalogOutputList(output.DataCatalogOutputs, context)
|
|
4655
4552
|
: undefined,
|
|
4656
|
-
DatabaseOutputs: output.DatabaseOutputs
|
|
4553
|
+
DatabaseOutputs: output.DatabaseOutputs != null
|
|
4657
4554
|
? deserializeAws_restJson1DatabaseOutputList(output.DatabaseOutputs, context)
|
|
4658
4555
|
: undefined,
|
|
4659
4556
|
DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
|
|
4660
4557
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4661
4558
|
ExecutionTime: (0, smithy_client_1.expectInt32)(output.ExecutionTime),
|
|
4662
4559
|
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
4663
|
-
JobSample: output.JobSample
|
|
4664
|
-
? deserializeAws_restJson1JobSample(output.JobSample, context)
|
|
4665
|
-
: undefined,
|
|
4560
|
+
JobSample: output.JobSample != null ? deserializeAws_restJson1JobSample(output.JobSample, context) : undefined,
|
|
4666
4561
|
LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
|
|
4667
4562
|
LogSubscription: (0, smithy_client_1.expectString)(output.LogSubscription),
|
|
4668
|
-
Outputs: output.Outputs
|
|
4669
|
-
|
|
4670
|
-
: undefined,
|
|
4671
|
-
RecipeReference: output.RecipeReference !== undefined && output.RecipeReference !== null
|
|
4563
|
+
Outputs: output.Outputs != null ? deserializeAws_restJson1OutputList(output.Outputs, context) : undefined,
|
|
4564
|
+
RecipeReference: output.RecipeReference != null
|
|
4672
4565
|
? deserializeAws_restJson1RecipeReference(output.RecipeReference, context)
|
|
4673
4566
|
: undefined,
|
|
4674
4567
|
RunId: (0, smithy_client_1.expectString)(output.RunId),
|
|
4675
4568
|
StartedBy: (0, smithy_client_1.expectString)(output.StartedBy),
|
|
4676
|
-
StartedOn: output.StartedOn
|
|
4677
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedOn)))
|
|
4678
|
-
: undefined,
|
|
4569
|
+
StartedOn: output.StartedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedOn))) : undefined,
|
|
4679
4570
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
4680
|
-
ValidationConfigurations: output.ValidationConfigurations
|
|
4571
|
+
ValidationConfigurations: output.ValidationConfigurations != null
|
|
4681
4572
|
? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
|
|
4682
4573
|
: undefined,
|
|
4683
4574
|
};
|
|
@@ -4713,24 +4604,20 @@ const deserializeAws_restJson1Output = (output, context) => {
|
|
|
4713
4604
|
return {
|
|
4714
4605
|
CompressionFormat: (0, smithy_client_1.expectString)(output.CompressionFormat),
|
|
4715
4606
|
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
4716
|
-
FormatOptions: output.FormatOptions
|
|
4607
|
+
FormatOptions: output.FormatOptions != null
|
|
4717
4608
|
? deserializeAws_restJson1OutputFormatOptions(output.FormatOptions, context)
|
|
4718
4609
|
: undefined,
|
|
4719
|
-
Location: output.Location
|
|
4720
|
-
? deserializeAws_restJson1S3Location(output.Location, context)
|
|
4721
|
-
: undefined,
|
|
4610
|
+
Location: output.Location != null ? deserializeAws_restJson1S3Location(output.Location, context) : undefined,
|
|
4722
4611
|
MaxOutputFiles: (0, smithy_client_1.expectInt32)(output.MaxOutputFiles),
|
|
4723
4612
|
Overwrite: (0, smithy_client_1.expectBoolean)(output.Overwrite),
|
|
4724
|
-
PartitionColumns: output.PartitionColumns
|
|
4613
|
+
PartitionColumns: output.PartitionColumns != null
|
|
4725
4614
|
? deserializeAws_restJson1ColumnNameList(output.PartitionColumns, context)
|
|
4726
4615
|
: undefined,
|
|
4727
4616
|
};
|
|
4728
4617
|
};
|
|
4729
4618
|
const deserializeAws_restJson1OutputFormatOptions = (output, context) => {
|
|
4730
4619
|
return {
|
|
4731
|
-
Csv: output.Csv
|
|
4732
|
-
? deserializeAws_restJson1CsvOutputOptions(output.Csv, context)
|
|
4733
|
-
: undefined,
|
|
4620
|
+
Csv: output.Csv != null ? deserializeAws_restJson1CsvOutputOptions(output.Csv, context) : undefined,
|
|
4734
4621
|
};
|
|
4735
4622
|
};
|
|
4736
4623
|
const deserializeAws_restJson1OutputList = (output, context) => {
|
|
@@ -4757,15 +4644,11 @@ const deserializeAws_restJson1ParameterMap = (output, context) => {
|
|
|
4757
4644
|
};
|
|
4758
4645
|
const deserializeAws_restJson1PathOptions = (output, context) => {
|
|
4759
4646
|
return {
|
|
4760
|
-
FilesLimit: output.FilesLimit
|
|
4761
|
-
|
|
4762
|
-
: undefined,
|
|
4763
|
-
LastModifiedDateCondition: output.LastModifiedDateCondition !== undefined && output.LastModifiedDateCondition !== null
|
|
4647
|
+
FilesLimit: output.FilesLimit != null ? deserializeAws_restJson1FilesLimit(output.FilesLimit, context) : undefined,
|
|
4648
|
+
LastModifiedDateCondition: output.LastModifiedDateCondition != null
|
|
4764
4649
|
? deserializeAws_restJson1FilterExpression(output.LastModifiedDateCondition, context)
|
|
4765
4650
|
: undefined,
|
|
4766
|
-
Parameters: output.Parameters
|
|
4767
|
-
? deserializeAws_restJson1PathParametersMap(output.Parameters, context)
|
|
4768
|
-
: undefined,
|
|
4651
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1PathParametersMap(output.Parameters, context) : undefined,
|
|
4769
4652
|
};
|
|
4770
4653
|
};
|
|
4771
4654
|
const deserializeAws_restJson1PathParametersMap = (output, context) => {
|
|
@@ -4781,16 +4664,16 @@ const deserializeAws_restJson1PathParametersMap = (output, context) => {
|
|
|
4781
4664
|
};
|
|
4782
4665
|
const deserializeAws_restJson1ProfileConfiguration = (output, context) => {
|
|
4783
4666
|
return {
|
|
4784
|
-
ColumnStatisticsConfigurations: output.ColumnStatisticsConfigurations
|
|
4667
|
+
ColumnStatisticsConfigurations: output.ColumnStatisticsConfigurations != null
|
|
4785
4668
|
? deserializeAws_restJson1ColumnStatisticsConfigurationList(output.ColumnStatisticsConfigurations, context)
|
|
4786
4669
|
: undefined,
|
|
4787
|
-
DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration
|
|
4670
|
+
DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration != null
|
|
4788
4671
|
? deserializeAws_restJson1StatisticsConfiguration(output.DatasetStatisticsConfiguration, context)
|
|
4789
4672
|
: undefined,
|
|
4790
|
-
EntityDetectorConfiguration: output.EntityDetectorConfiguration
|
|
4673
|
+
EntityDetectorConfiguration: output.EntityDetectorConfiguration != null
|
|
4791
4674
|
? deserializeAws_restJson1EntityDetectorConfiguration(output.EntityDetectorConfiguration, context)
|
|
4792
4675
|
: undefined,
|
|
4793
|
-
ProfileColumns: output.ProfileColumns
|
|
4676
|
+
ProfileColumns: output.ProfileColumns != null
|
|
4794
4677
|
? deserializeAws_restJson1ColumnSelectorList(output.ProfileColumns, context)
|
|
4795
4678
|
: undefined,
|
|
4796
4679
|
};
|
|
@@ -4798,29 +4681,21 @@ const deserializeAws_restJson1ProfileConfiguration = (output, context) => {
|
|
|
4798
4681
|
const deserializeAws_restJson1Project = (output, context) => {
|
|
4799
4682
|
return {
|
|
4800
4683
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
4801
|
-
CreateDate: output.CreateDate
|
|
4802
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
4803
|
-
: undefined,
|
|
4684
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
4804
4685
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
4805
4686
|
DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
|
|
4806
4687
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
4807
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4688
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
4808
4689
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
4809
4690
|
: undefined,
|
|
4810
4691
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4811
|
-
OpenDate: output.OpenDate
|
|
4812
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenDate)))
|
|
4813
|
-
: undefined,
|
|
4692
|
+
OpenDate: output.OpenDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenDate))) : undefined,
|
|
4814
4693
|
OpenedBy: (0, smithy_client_1.expectString)(output.OpenedBy),
|
|
4815
4694
|
RecipeName: (0, smithy_client_1.expectString)(output.RecipeName),
|
|
4816
4695
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4817
4696
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
4818
|
-
Sample: output.Sample
|
|
4819
|
-
|
|
4820
|
-
: undefined,
|
|
4821
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4822
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4823
|
-
: undefined,
|
|
4697
|
+
Sample: output.Sample != null ? deserializeAws_restJson1Sample(output.Sample, context) : undefined,
|
|
4698
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4824
4699
|
};
|
|
4825
4700
|
};
|
|
4826
4701
|
const deserializeAws_restJson1ProjectList = (output, context) => {
|
|
@@ -4836,37 +4711,29 @@ const deserializeAws_restJson1ProjectList = (output, context) => {
|
|
|
4836
4711
|
};
|
|
4837
4712
|
const deserializeAws_restJson1Recipe = (output, context) => {
|
|
4838
4713
|
return {
|
|
4839
|
-
CreateDate: output.CreateDate
|
|
4840
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
4841
|
-
: undefined,
|
|
4714
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
4842
4715
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
4843
4716
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4844
4717
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
4845
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4718
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
4846
4719
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
4847
4720
|
: undefined,
|
|
4848
4721
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4849
4722
|
ProjectName: (0, smithy_client_1.expectString)(output.ProjectName),
|
|
4850
4723
|
PublishedBy: (0, smithy_client_1.expectString)(output.PublishedBy),
|
|
4851
|
-
PublishedDate: output.PublishedDate
|
|
4724
|
+
PublishedDate: output.PublishedDate != null
|
|
4852
4725
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublishedDate)))
|
|
4853
4726
|
: undefined,
|
|
4854
4727
|
RecipeVersion: (0, smithy_client_1.expectString)(output.RecipeVersion),
|
|
4855
4728
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4856
|
-
Steps: output.Steps
|
|
4857
|
-
|
|
4858
|
-
: undefined,
|
|
4859
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4860
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4861
|
-
: undefined,
|
|
4729
|
+
Steps: output.Steps != null ? deserializeAws_restJson1RecipeStepList(output.Steps, context) : undefined,
|
|
4730
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4862
4731
|
};
|
|
4863
4732
|
};
|
|
4864
4733
|
const deserializeAws_restJson1RecipeAction = (output, context) => {
|
|
4865
4734
|
return {
|
|
4866
4735
|
Operation: (0, smithy_client_1.expectString)(output.Operation),
|
|
4867
|
-
Parameters: output.Parameters
|
|
4868
|
-
? deserializeAws_restJson1ParameterMap(output.Parameters, context)
|
|
4869
|
-
: undefined,
|
|
4736
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterMap(output.Parameters, context) : undefined,
|
|
4870
4737
|
};
|
|
4871
4738
|
};
|
|
4872
4739
|
const deserializeAws_restJson1RecipeErrorList = (output, context) => {
|
|
@@ -4899,10 +4766,8 @@ const deserializeAws_restJson1RecipeReference = (output, context) => {
|
|
|
4899
4766
|
};
|
|
4900
4767
|
const deserializeAws_restJson1RecipeStep = (output, context) => {
|
|
4901
4768
|
return {
|
|
4902
|
-
Action: output.Action
|
|
4903
|
-
|
|
4904
|
-
: undefined,
|
|
4905
|
-
ConditionExpressions: output.ConditionExpressions !== undefined && output.ConditionExpressions !== null
|
|
4769
|
+
Action: output.Action != null ? deserializeAws_restJson1RecipeAction(output.Action, context) : undefined,
|
|
4770
|
+
ConditionExpressions: output.ConditionExpressions != null
|
|
4906
4771
|
? deserializeAws_restJson1ConditionExpressionList(output.ConditionExpressions, context)
|
|
4907
4772
|
: undefined,
|
|
4908
4773
|
};
|
|
@@ -4928,17 +4793,13 @@ const deserializeAws_restJson1RecipeVersionErrorDetail = (output, context) => {
|
|
|
4928
4793
|
const deserializeAws_restJson1Rule = (output, context) => {
|
|
4929
4794
|
return {
|
|
4930
4795
|
CheckExpression: (0, smithy_client_1.expectString)(output.CheckExpression),
|
|
4931
|
-
ColumnSelectors: output.ColumnSelectors
|
|
4796
|
+
ColumnSelectors: output.ColumnSelectors != null
|
|
4932
4797
|
? deserializeAws_restJson1ColumnSelectorList(output.ColumnSelectors, context)
|
|
4933
4798
|
: undefined,
|
|
4934
4799
|
Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
|
|
4935
4800
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4936
|
-
SubstitutionMap: output.SubstitutionMap
|
|
4937
|
-
|
|
4938
|
-
: undefined,
|
|
4939
|
-
Threshold: output.Threshold !== undefined && output.Threshold !== null
|
|
4940
|
-
? deserializeAws_restJson1Threshold(output.Threshold, context)
|
|
4941
|
-
: undefined,
|
|
4801
|
+
SubstitutionMap: output.SubstitutionMap != null ? deserializeAws_restJson1ValuesMap(output.SubstitutionMap, context) : undefined,
|
|
4802
|
+
Threshold: output.Threshold != null ? deserializeAws_restJson1Threshold(output.Threshold, context) : undefined,
|
|
4942
4803
|
};
|
|
4943
4804
|
};
|
|
4944
4805
|
const deserializeAws_restJson1RuleList = (output, context) => {
|
|
@@ -4955,21 +4816,17 @@ const deserializeAws_restJson1RuleList = (output, context) => {
|
|
|
4955
4816
|
const deserializeAws_restJson1RulesetItem = (output, context) => {
|
|
4956
4817
|
return {
|
|
4957
4818
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
4958
|
-
CreateDate: output.CreateDate
|
|
4959
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
4960
|
-
: undefined,
|
|
4819
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
4961
4820
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
4962
4821
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4963
4822
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
4964
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4823
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
4965
4824
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
4966
4825
|
: undefined,
|
|
4967
4826
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4968
4827
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4969
4828
|
RuleCount: (0, smithy_client_1.expectInt32)(output.RuleCount),
|
|
4970
|
-
Tags: output.Tags
|
|
4971
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4972
|
-
: undefined,
|
|
4829
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
4973
4830
|
TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
|
|
4974
4831
|
};
|
|
4975
4832
|
};
|
|
@@ -4993,9 +4850,7 @@ const deserializeAws_restJson1S3Location = (output, context) => {
|
|
|
4993
4850
|
};
|
|
4994
4851
|
const deserializeAws_restJson1S3TableOutputOptions = (output, context) => {
|
|
4995
4852
|
return {
|
|
4996
|
-
Location: output.Location
|
|
4997
|
-
? deserializeAws_restJson1S3Location(output.Location, context)
|
|
4998
|
-
: undefined,
|
|
4853
|
+
Location: output.Location != null ? deserializeAws_restJson1S3Location(output.Location, context) : undefined,
|
|
4999
4854
|
};
|
|
5000
4855
|
};
|
|
5001
4856
|
const deserializeAws_restJson1Sample = (output, context) => {
|
|
@@ -5007,23 +4862,17 @@ const deserializeAws_restJson1Sample = (output, context) => {
|
|
|
5007
4862
|
const deserializeAws_restJson1Schedule = (output, context) => {
|
|
5008
4863
|
return {
|
|
5009
4864
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
5010
|
-
CreateDate: output.CreateDate
|
|
5011
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
|
|
5012
|
-
: undefined,
|
|
4865
|
+
CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
|
|
5013
4866
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
5014
4867
|
CronExpression: (0, smithy_client_1.expectString)(output.CronExpression),
|
|
5015
|
-
JobNames: output.JobNames
|
|
5016
|
-
? deserializeAws_restJson1JobNameList(output.JobNames, context)
|
|
5017
|
-
: undefined,
|
|
4868
|
+
JobNames: output.JobNames != null ? deserializeAws_restJson1JobNameList(output.JobNames, context) : undefined,
|
|
5018
4869
|
LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
|
|
5019
|
-
LastModifiedDate: output.LastModifiedDate
|
|
4870
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
5020
4871
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
5021
4872
|
: undefined,
|
|
5022
4873
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5023
4874
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
5024
|
-
Tags: output.Tags
|
|
5025
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
5026
|
-
: undefined,
|
|
4875
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
5027
4876
|
};
|
|
5028
4877
|
};
|
|
5029
4878
|
const deserializeAws_restJson1ScheduleList = (output, context) => {
|
|
@@ -5072,9 +4921,7 @@ const deserializeAws_restJson1StatisticList = (output, context) => {
|
|
|
5072
4921
|
};
|
|
5073
4922
|
const deserializeAws_restJson1StatisticOverride = (output, context) => {
|
|
5074
4923
|
return {
|
|
5075
|
-
Parameters: output.Parameters
|
|
5076
|
-
? deserializeAws_restJson1ParameterMap(output.Parameters, context)
|
|
5077
|
-
: undefined,
|
|
4924
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterMap(output.Parameters, context) : undefined,
|
|
5078
4925
|
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
5079
4926
|
};
|
|
5080
4927
|
};
|
|
@@ -5091,12 +4938,10 @@ const deserializeAws_restJson1StatisticOverrideList = (output, context) => {
|
|
|
5091
4938
|
};
|
|
5092
4939
|
const deserializeAws_restJson1StatisticsConfiguration = (output, context) => {
|
|
5093
4940
|
return {
|
|
5094
|
-
IncludedStatistics: output.IncludedStatistics
|
|
4941
|
+
IncludedStatistics: output.IncludedStatistics != null
|
|
5095
4942
|
? deserializeAws_restJson1StatisticList(output.IncludedStatistics, context)
|
|
5096
4943
|
: undefined,
|
|
5097
|
-
Overrides: output.Overrides
|
|
5098
|
-
? deserializeAws_restJson1StatisticOverrideList(output.Overrides, context)
|
|
5099
|
-
: undefined,
|
|
4944
|
+
Overrides: output.Overrides != null ? deserializeAws_restJson1StatisticOverrideList(output.Overrides, context) : undefined,
|
|
5100
4945
|
};
|
|
5101
4946
|
};
|
|
5102
4947
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -5194,5 +5039,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5194
5039
|
if (data["__type"] !== undefined) {
|
|
5195
5040
|
return sanitizeErrorCode(data["__type"]);
|
|
5196
5041
|
}
|
|
5197
|
-
return "";
|
|
5198
5042
|
};
|