@aws-sdk/client-databrew 3.312.0 → 3.315.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.
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { DataBrewServiceException as __BaseException } from "../models/DataBrewServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  export const se_BatchDeleteRecipeVersionCommand = async (input, context) => {
@@ -10,9 +10,9 @@ export const se_BatchDeleteRecipeVersionCommand = async (input, context) => {
10
10
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/batchDeleteRecipeVersion";
11
11
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
12
12
  let body;
13
- body = JSON.stringify({
14
- ...(input.RecipeVersions != null && { RecipeVersions: se_RecipeVersionList(input.RecipeVersions, context) }),
15
- });
13
+ body = JSON.stringify(take(input, {
14
+ RecipeVersions: (_) => _json(_),
15
+ }));
16
16
  return new __HttpRequest({
17
17
  protocol,
18
18
  hostname,
@@ -30,14 +30,14 @@ export const se_CreateDatasetCommand = async (input, context) => {
30
30
  };
31
31
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
32
32
  let body;
33
- body = JSON.stringify({
34
- ...(input.Format != null && { Format: input.Format }),
35
- ...(input.FormatOptions != null && { FormatOptions: se_FormatOptions(input.FormatOptions, context) }),
36
- ...(input.Input != null && { Input: se_Input(input.Input, context) }),
37
- ...(input.Name != null && { Name: input.Name }),
38
- ...(input.PathOptions != null && { PathOptions: se_PathOptions(input.PathOptions, context) }),
39
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
40
- });
33
+ body = JSON.stringify(take(input, {
34
+ Format: [],
35
+ FormatOptions: (_) => _json(_),
36
+ Input: (_) => _json(_),
37
+ Name: [],
38
+ PathOptions: (_) => _json(_),
39
+ Tags: (_) => _json(_),
40
+ }));
41
41
  return new __HttpRequest({
42
42
  protocol,
43
43
  hostname,
@@ -55,24 +55,22 @@ export const se_CreateProfileJobCommand = async (input, context) => {
55
55
  };
56
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
57
57
  let body;
58
- body = JSON.stringify({
59
- ...(input.Configuration != null && { Configuration: se_ProfileConfiguration(input.Configuration, context) }),
60
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
61
- ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
62
- ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
63
- ...(input.JobSample != null && { JobSample: se_JobSample(input.JobSample, context) }),
64
- ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
65
- ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
66
- ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
67
- ...(input.Name != null && { Name: input.Name }),
68
- ...(input.OutputLocation != null && { OutputLocation: se_S3Location(input.OutputLocation, context) }),
69
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
70
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
71
- ...(input.Timeout != null && { Timeout: input.Timeout }),
72
- ...(input.ValidationConfigurations != null && {
73
- ValidationConfigurations: se_ValidationConfigurationList(input.ValidationConfigurations, context),
74
- }),
75
- });
58
+ body = JSON.stringify(take(input, {
59
+ Configuration: (_) => _json(_),
60
+ DatasetName: [],
61
+ EncryptionKeyArn: [],
62
+ EncryptionMode: [],
63
+ JobSample: (_) => _json(_),
64
+ LogSubscription: [],
65
+ MaxCapacity: [],
66
+ MaxRetries: [],
67
+ Name: [],
68
+ OutputLocation: (_) => _json(_),
69
+ RoleArn: [],
70
+ Tags: (_) => _json(_),
71
+ Timeout: [],
72
+ ValidationConfigurations: (_) => _json(_),
73
+ }));
76
74
  return new __HttpRequest({
77
75
  protocol,
78
76
  hostname,
@@ -90,14 +88,14 @@ export const se_CreateProjectCommand = async (input, context) => {
90
88
  };
91
89
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
92
90
  let body;
93
- body = JSON.stringify({
94
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
95
- ...(input.Name != null && { Name: input.Name }),
96
- ...(input.RecipeName != null && { RecipeName: input.RecipeName }),
97
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
98
- ...(input.Sample != null && { Sample: se_Sample(input.Sample, context) }),
99
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
100
- });
91
+ body = JSON.stringify(take(input, {
92
+ DatasetName: [],
93
+ Name: [],
94
+ RecipeName: [],
95
+ RoleArn: [],
96
+ Sample: (_) => _json(_),
97
+ Tags: (_) => _json(_),
98
+ }));
101
99
  return new __HttpRequest({
102
100
  protocol,
103
101
  hostname,
@@ -115,12 +113,12 @@ export const se_CreateRecipeCommand = async (input, context) => {
115
113
  };
116
114
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
117
115
  let body;
118
- body = JSON.stringify({
119
- ...(input.Description != null && { Description: input.Description }),
120
- ...(input.Name != null && { Name: input.Name }),
121
- ...(input.Steps != null && { Steps: se_RecipeStepList(input.Steps, context) }),
122
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
123
- });
116
+ body = JSON.stringify(take(input, {
117
+ Description: [],
118
+ Name: [],
119
+ Steps: (_) => _json(_),
120
+ Tags: (_) => _json(_),
121
+ }));
124
122
  return new __HttpRequest({
125
123
  protocol,
126
124
  hostname,
@@ -138,25 +136,23 @@ export const se_CreateRecipeJobCommand = async (input, context) => {
138
136
  };
139
137
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
140
138
  let body;
141
- body = JSON.stringify({
142
- ...(input.DataCatalogOutputs != null && {
143
- DataCatalogOutputs: se_DataCatalogOutputList(input.DataCatalogOutputs, context),
144
- }),
145
- ...(input.DatabaseOutputs != null && { DatabaseOutputs: se_DatabaseOutputList(input.DatabaseOutputs, context) }),
146
- ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
147
- ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
148
- ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
149
- ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
150
- ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
151
- ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
152
- ...(input.Name != null && { Name: input.Name }),
153
- ...(input.Outputs != null && { Outputs: se_OutputList(input.Outputs, context) }),
154
- ...(input.ProjectName != null && { ProjectName: input.ProjectName }),
155
- ...(input.RecipeReference != null && { RecipeReference: se_RecipeReference(input.RecipeReference, context) }),
156
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
157
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
158
- ...(input.Timeout != null && { Timeout: input.Timeout }),
159
- });
139
+ body = JSON.stringify(take(input, {
140
+ DataCatalogOutputs: (_) => _json(_),
141
+ DatabaseOutputs: (_) => _json(_),
142
+ DatasetName: [],
143
+ EncryptionKeyArn: [],
144
+ EncryptionMode: [],
145
+ LogSubscription: [],
146
+ MaxCapacity: [],
147
+ MaxRetries: [],
148
+ Name: [],
149
+ Outputs: (_) => _json(_),
150
+ ProjectName: [],
151
+ RecipeReference: (_) => _json(_),
152
+ RoleArn: [],
153
+ Tags: (_) => _json(_),
154
+ Timeout: [],
155
+ }));
160
156
  return new __HttpRequest({
161
157
  protocol,
162
158
  hostname,
@@ -174,13 +170,13 @@ export const se_CreateRulesetCommand = async (input, context) => {
174
170
  };
175
171
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
176
172
  let body;
177
- body = JSON.stringify({
178
- ...(input.Description != null && { Description: input.Description }),
179
- ...(input.Name != null && { Name: input.Name }),
180
- ...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
181
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
182
- ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
183
- });
173
+ body = JSON.stringify(take(input, {
174
+ Description: [],
175
+ Name: [],
176
+ Rules: (_) => se_RuleList(_, context),
177
+ Tags: (_) => _json(_),
178
+ TargetArn: [],
179
+ }));
184
180
  return new __HttpRequest({
185
181
  protocol,
186
182
  hostname,
@@ -198,12 +194,12 @@ export const se_CreateScheduleCommand = async (input, context) => {
198
194
  };
199
195
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
200
196
  let body;
201
- body = JSON.stringify({
202
- ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
203
- ...(input.JobNames != null && { JobNames: se_JobNameList(input.JobNames, context) }),
204
- ...(input.Name != null && { Name: input.Name }),
205
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
206
- });
197
+ body = JSON.stringify(take(input, {
198
+ CronExpression: [],
199
+ JobNames: (_) => _json(_),
200
+ Name: [],
201
+ Tags: (_) => _json(_),
202
+ }));
207
203
  return new __HttpRequest({
208
204
  protocol,
209
205
  hostname,
@@ -620,9 +616,9 @@ export const se_PublishRecipeCommand = async (input, context) => {
620
616
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/publishRecipe";
621
617
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
622
618
  let body;
623
- body = JSON.stringify({
624
- ...(input.Description != null && { Description: input.Description }),
625
- });
619
+ body = JSON.stringify(take(input, {
620
+ Description: [],
621
+ }));
626
622
  return new __HttpRequest({
627
623
  protocol,
628
624
  hostname,
@@ -641,13 +637,13 @@ export const se_SendProjectSessionActionCommand = async (input, context) => {
641
637
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/sendProjectSessionAction";
642
638
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
643
639
  let body;
644
- body = JSON.stringify({
645
- ...(input.ClientSessionId != null && { ClientSessionId: input.ClientSessionId }),
646
- ...(input.Preview != null && { Preview: input.Preview }),
647
- ...(input.RecipeStep != null && { RecipeStep: se_RecipeStep(input.RecipeStep, context) }),
648
- ...(input.StepIndex != null && { StepIndex: input.StepIndex }),
649
- ...(input.ViewFrame != null && { ViewFrame: se_ViewFrame(input.ViewFrame, context) }),
650
- });
640
+ body = JSON.stringify(take(input, {
641
+ ClientSessionId: [],
642
+ Preview: [],
643
+ RecipeStep: (_) => _json(_),
644
+ StepIndex: [],
645
+ ViewFrame: (_) => _json(_),
646
+ }));
651
647
  return new __HttpRequest({
652
648
  protocol,
653
649
  hostname,
@@ -682,9 +678,9 @@ export const se_StartProjectSessionCommand = async (input, context) => {
682
678
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/startProjectSession";
683
679
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
684
680
  let body;
685
- body = JSON.stringify({
686
- ...(input.AssumeControl != null && { AssumeControl: input.AssumeControl }),
687
- });
681
+ body = JSON.stringify(take(input, {
682
+ AssumeControl: [],
683
+ }));
688
684
  return new __HttpRequest({
689
685
  protocol,
690
686
  hostname,
@@ -720,9 +716,9 @@ export const se_TagResourceCommand = async (input, context) => {
720
716
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
721
717
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
722
718
  let body;
723
- body = JSON.stringify({
724
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
725
- });
719
+ body = JSON.stringify(take(input, {
720
+ Tags: (_) => _json(_),
721
+ }));
726
722
  return new __HttpRequest({
727
723
  protocol,
728
724
  hostname,
@@ -764,12 +760,12 @@ export const se_UpdateDatasetCommand = async (input, context) => {
764
760
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
765
761
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
766
762
  let body;
767
- body = JSON.stringify({
768
- ...(input.Format != null && { Format: input.Format }),
769
- ...(input.FormatOptions != null && { FormatOptions: se_FormatOptions(input.FormatOptions, context) }),
770
- ...(input.Input != null && { Input: se_Input(input.Input, context) }),
771
- ...(input.PathOptions != null && { PathOptions: se_PathOptions(input.PathOptions, context) }),
772
- });
763
+ body = JSON.stringify(take(input, {
764
+ Format: [],
765
+ FormatOptions: (_) => _json(_),
766
+ Input: (_) => _json(_),
767
+ PathOptions: (_) => _json(_),
768
+ }));
773
769
  return new __HttpRequest({
774
770
  protocol,
775
771
  hostname,
@@ -788,21 +784,19 @@ export const se_UpdateProfileJobCommand = async (input, context) => {
788
784
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs/{Name}";
789
785
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
790
786
  let body;
791
- body = JSON.stringify({
792
- ...(input.Configuration != null && { Configuration: se_ProfileConfiguration(input.Configuration, context) }),
793
- ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
794
- ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
795
- ...(input.JobSample != null && { JobSample: se_JobSample(input.JobSample, context) }),
796
- ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
797
- ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
798
- ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
799
- ...(input.OutputLocation != null && { OutputLocation: se_S3Location(input.OutputLocation, context) }),
800
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
801
- ...(input.Timeout != null && { Timeout: input.Timeout }),
802
- ...(input.ValidationConfigurations != null && {
803
- ValidationConfigurations: se_ValidationConfigurationList(input.ValidationConfigurations, context),
804
- }),
805
- });
787
+ body = JSON.stringify(take(input, {
788
+ Configuration: (_) => _json(_),
789
+ EncryptionKeyArn: [],
790
+ EncryptionMode: [],
791
+ JobSample: (_) => _json(_),
792
+ LogSubscription: [],
793
+ MaxCapacity: [],
794
+ MaxRetries: [],
795
+ OutputLocation: (_) => _json(_),
796
+ RoleArn: [],
797
+ Timeout: [],
798
+ ValidationConfigurations: (_) => _json(_),
799
+ }));
806
800
  return new __HttpRequest({
807
801
  protocol,
808
802
  hostname,
@@ -821,10 +815,10 @@ export const se_UpdateProjectCommand = async (input, context) => {
821
815
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
822
816
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
823
817
  let body;
824
- body = JSON.stringify({
825
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
826
- ...(input.Sample != null && { Sample: se_Sample(input.Sample, context) }),
827
- });
818
+ body = JSON.stringify(take(input, {
819
+ RoleArn: [],
820
+ Sample: (_) => _json(_),
821
+ }));
828
822
  return new __HttpRequest({
829
823
  protocol,
830
824
  hostname,
@@ -843,10 +837,10 @@ export const se_UpdateRecipeCommand = async (input, context) => {
843
837
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
844
838
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
845
839
  let body;
846
- body = JSON.stringify({
847
- ...(input.Description != null && { Description: input.Description }),
848
- ...(input.Steps != null && { Steps: se_RecipeStepList(input.Steps, context) }),
849
- });
840
+ body = JSON.stringify(take(input, {
841
+ Description: [],
842
+ Steps: (_) => _json(_),
843
+ }));
850
844
  return new __HttpRequest({
851
845
  protocol,
852
846
  hostname,
@@ -865,20 +859,18 @@ export const se_UpdateRecipeJobCommand = async (input, context) => {
865
859
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs/{Name}";
866
860
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
867
861
  let body;
868
- body = JSON.stringify({
869
- ...(input.DataCatalogOutputs != null && {
870
- DataCatalogOutputs: se_DataCatalogOutputList(input.DataCatalogOutputs, context),
871
- }),
872
- ...(input.DatabaseOutputs != null && { DatabaseOutputs: se_DatabaseOutputList(input.DatabaseOutputs, context) }),
873
- ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
874
- ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
875
- ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
876
- ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
877
- ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
878
- ...(input.Outputs != null && { Outputs: se_OutputList(input.Outputs, context) }),
879
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
880
- ...(input.Timeout != null && { Timeout: input.Timeout }),
881
- });
862
+ body = JSON.stringify(take(input, {
863
+ DataCatalogOutputs: (_) => _json(_),
864
+ DatabaseOutputs: (_) => _json(_),
865
+ EncryptionKeyArn: [],
866
+ EncryptionMode: [],
867
+ LogSubscription: [],
868
+ MaxCapacity: [],
869
+ MaxRetries: [],
870
+ Outputs: (_) => _json(_),
871
+ RoleArn: [],
872
+ Timeout: [],
873
+ }));
882
874
  return new __HttpRequest({
883
875
  protocol,
884
876
  hostname,
@@ -897,10 +889,10 @@ export const se_UpdateRulesetCommand = async (input, context) => {
897
889
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
898
890
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
899
891
  let body;
900
- body = JSON.stringify({
901
- ...(input.Description != null && { Description: input.Description }),
902
- ...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
903
- });
892
+ body = JSON.stringify(take(input, {
893
+ Description: [],
894
+ Rules: (_) => se_RuleList(_, context),
895
+ }));
904
896
  return new __HttpRequest({
905
897
  protocol,
906
898
  hostname,
@@ -919,10 +911,10 @@ export const se_UpdateScheduleCommand = async (input, context) => {
919
911
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
920
912
  resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
921
913
  let body;
922
- body = JSON.stringify({
923
- ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
924
- ...(input.JobNames != null && { JobNames: se_JobNameList(input.JobNames, context) }),
925
- });
914
+ body = JSON.stringify(take(input, {
915
+ CronExpression: [],
916
+ JobNames: (_) => _json(_),
917
+ }));
926
918
  return new __HttpRequest({
927
919
  protocol,
928
920
  hostname,
@@ -941,12 +933,11 @@ export const de_BatchDeleteRecipeVersionCommand = async (output, context) => {
941
933
  $metadata: deserializeMetadata(output),
942
934
  });
943
935
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
944
- if (data.Errors != null) {
945
- contents.Errors = de_RecipeErrorList(data.Errors, context);
946
- }
947
- if (data.Name != null) {
948
- contents.Name = __expectString(data.Name);
949
- }
936
+ const doc = take(data, {
937
+ Errors: _json,
938
+ Name: __expectString,
939
+ });
940
+ Object.assign(contents, doc);
950
941
  return contents;
951
942
  };
952
943
  const de_BatchDeleteRecipeVersionCommandError = async (output, context) => {
@@ -967,10 +958,9 @@ const de_BatchDeleteRecipeVersionCommandError = async (output, context) => {
967
958
  throw await de_ValidationExceptionRes(parsedOutput, context);
968
959
  default:
969
960
  const parsedBody = parsedOutput.body;
970
- throwDefaultError({
961
+ return throwDefaultError({
971
962
  output,
972
963
  parsedBody,
973
- exceptionCtor: __BaseException,
974
964
  errorCode,
975
965
  });
976
966
  }
@@ -983,9 +973,10 @@ export const de_CreateDatasetCommand = async (output, context) => {
983
973
  $metadata: deserializeMetadata(output),
984
974
  });
985
975
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
986
- if (data.Name != null) {
987
- contents.Name = __expectString(data.Name);
988
- }
976
+ const doc = take(data, {
977
+ Name: __expectString,
978
+ });
979
+ Object.assign(contents, doc);
989
980
  return contents;
990
981
  };
991
982
  const de_CreateDatasetCommandError = async (output, context) => {
@@ -1009,10 +1000,9 @@ const de_CreateDatasetCommandError = async (output, context) => {
1009
1000
  throw await de_ValidationExceptionRes(parsedOutput, context);
1010
1001
  default:
1011
1002
  const parsedBody = parsedOutput.body;
1012
- throwDefaultError({
1003
+ return throwDefaultError({
1013
1004
  output,
1014
1005
  parsedBody,
1015
- exceptionCtor: __BaseException,
1016
1006
  errorCode,
1017
1007
  });
1018
1008
  }
@@ -1025,9 +1015,10 @@ export const de_CreateProfileJobCommand = async (output, context) => {
1025
1015
  $metadata: deserializeMetadata(output),
1026
1016
  });
1027
1017
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1028
- if (data.Name != null) {
1029
- contents.Name = __expectString(data.Name);
1030
- }
1018
+ const doc = take(data, {
1019
+ Name: __expectString,
1020
+ });
1021
+ Object.assign(contents, doc);
1031
1022
  return contents;
1032
1023
  };
1033
1024
  const de_CreateProfileJobCommandError = async (output, context) => {
@@ -1054,10 +1045,9 @@ const de_CreateProfileJobCommandError = async (output, context) => {
1054
1045
  throw await de_ValidationExceptionRes(parsedOutput, context);
1055
1046
  default:
1056
1047
  const parsedBody = parsedOutput.body;
1057
- throwDefaultError({
1048
+ return throwDefaultError({
1058
1049
  output,
1059
1050
  parsedBody,
1060
- exceptionCtor: __BaseException,
1061
1051
  errorCode,
1062
1052
  });
1063
1053
  }
@@ -1070,9 +1060,10 @@ export const de_CreateProjectCommand = async (output, context) => {
1070
1060
  $metadata: deserializeMetadata(output),
1071
1061
  });
1072
1062
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1073
- if (data.Name != null) {
1074
- contents.Name = __expectString(data.Name);
1075
- }
1063
+ const doc = take(data, {
1064
+ Name: __expectString,
1065
+ });
1066
+ Object.assign(contents, doc);
1076
1067
  return contents;
1077
1068
  };
1078
1069
  const de_CreateProjectCommandError = async (output, context) => {
@@ -1096,10 +1087,9 @@ const de_CreateProjectCommandError = async (output, context) => {
1096
1087
  throw await de_ValidationExceptionRes(parsedOutput, context);
1097
1088
  default:
1098
1089
  const parsedBody = parsedOutput.body;
1099
- throwDefaultError({
1090
+ return throwDefaultError({
1100
1091
  output,
1101
1092
  parsedBody,
1102
- exceptionCtor: __BaseException,
1103
1093
  errorCode,
1104
1094
  });
1105
1095
  }
@@ -1112,9 +1102,10 @@ export const de_CreateRecipeCommand = async (output, context) => {
1112
1102
  $metadata: deserializeMetadata(output),
1113
1103
  });
1114
1104
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1115
- if (data.Name != null) {
1116
- contents.Name = __expectString(data.Name);
1117
- }
1105
+ const doc = take(data, {
1106
+ Name: __expectString,
1107
+ });
1108
+ Object.assign(contents, doc);
1118
1109
  return contents;
1119
1110
  };
1120
1111
  const de_CreateRecipeCommandError = async (output, context) => {
@@ -1135,10 +1126,9 @@ const de_CreateRecipeCommandError = async (output, context) => {
1135
1126
  throw await de_ValidationExceptionRes(parsedOutput, context);
1136
1127
  default:
1137
1128
  const parsedBody = parsedOutput.body;
1138
- throwDefaultError({
1129
+ return throwDefaultError({
1139
1130
  output,
1140
1131
  parsedBody,
1141
- exceptionCtor: __BaseException,
1142
1132
  errorCode,
1143
1133
  });
1144
1134
  }
@@ -1151,9 +1141,10 @@ export const de_CreateRecipeJobCommand = async (output, context) => {
1151
1141
  $metadata: deserializeMetadata(output),
1152
1142
  });
1153
1143
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1154
- if (data.Name != null) {
1155
- contents.Name = __expectString(data.Name);
1156
- }
1144
+ const doc = take(data, {
1145
+ Name: __expectString,
1146
+ });
1147
+ Object.assign(contents, doc);
1157
1148
  return contents;
1158
1149
  };
1159
1150
  const de_CreateRecipeJobCommandError = async (output, context) => {
@@ -1180,10 +1171,9 @@ const de_CreateRecipeJobCommandError = async (output, context) => {
1180
1171
  throw await de_ValidationExceptionRes(parsedOutput, context);
1181
1172
  default:
1182
1173
  const parsedBody = parsedOutput.body;
1183
- throwDefaultError({
1174
+ return throwDefaultError({
1184
1175
  output,
1185
1176
  parsedBody,
1186
- exceptionCtor: __BaseException,
1187
1177
  errorCode,
1188
1178
  });
1189
1179
  }
@@ -1196,9 +1186,10 @@ export const de_CreateRulesetCommand = async (output, context) => {
1196
1186
  $metadata: deserializeMetadata(output),
1197
1187
  });
1198
1188
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1199
- if (data.Name != null) {
1200
- contents.Name = __expectString(data.Name);
1201
- }
1189
+ const doc = take(data, {
1190
+ Name: __expectString,
1191
+ });
1192
+ Object.assign(contents, doc);
1202
1193
  return contents;
1203
1194
  };
1204
1195
  const de_CreateRulesetCommandError = async (output, context) => {
@@ -1219,10 +1210,9 @@ const de_CreateRulesetCommandError = async (output, context) => {
1219
1210
  throw await de_ValidationExceptionRes(parsedOutput, context);
1220
1211
  default:
1221
1212
  const parsedBody = parsedOutput.body;
1222
- throwDefaultError({
1213
+ return throwDefaultError({
1223
1214
  output,
1224
1215
  parsedBody,
1225
- exceptionCtor: __BaseException,
1226
1216
  errorCode,
1227
1217
  });
1228
1218
  }
@@ -1235,9 +1225,10 @@ export const de_CreateScheduleCommand = async (output, context) => {
1235
1225
  $metadata: deserializeMetadata(output),
1236
1226
  });
1237
1227
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1238
- if (data.Name != null) {
1239
- contents.Name = __expectString(data.Name);
1240
- }
1228
+ const doc = take(data, {
1229
+ Name: __expectString,
1230
+ });
1231
+ Object.assign(contents, doc);
1241
1232
  return contents;
1242
1233
  };
1243
1234
  const de_CreateScheduleCommandError = async (output, context) => {
@@ -1258,10 +1249,9 @@ const de_CreateScheduleCommandError = async (output, context) => {
1258
1249
  throw await de_ValidationExceptionRes(parsedOutput, context);
1259
1250
  default:
1260
1251
  const parsedBody = parsedOutput.body;
1261
- throwDefaultError({
1252
+ return throwDefaultError({
1262
1253
  output,
1263
1254
  parsedBody,
1264
- exceptionCtor: __BaseException,
1265
1255
  errorCode,
1266
1256
  });
1267
1257
  }
@@ -1274,9 +1264,10 @@ export const de_DeleteDatasetCommand = async (output, context) => {
1274
1264
  $metadata: deserializeMetadata(output),
1275
1265
  });
1276
1266
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1277
- if (data.Name != null) {
1278
- contents.Name = __expectString(data.Name);
1279
- }
1267
+ const doc = take(data, {
1268
+ Name: __expectString,
1269
+ });
1270
+ Object.assign(contents, doc);
1280
1271
  return contents;
1281
1272
  };
1282
1273
  const de_DeleteDatasetCommandError = async (output, context) => {
@@ -1297,10 +1288,9 @@ const de_DeleteDatasetCommandError = async (output, context) => {
1297
1288
  throw await de_ValidationExceptionRes(parsedOutput, context);
1298
1289
  default:
1299
1290
  const parsedBody = parsedOutput.body;
1300
- throwDefaultError({
1291
+ return throwDefaultError({
1301
1292
  output,
1302
1293
  parsedBody,
1303
- exceptionCtor: __BaseException,
1304
1294
  errorCode,
1305
1295
  });
1306
1296
  }
@@ -1313,9 +1303,10 @@ export const de_DeleteJobCommand = async (output, context) => {
1313
1303
  $metadata: deserializeMetadata(output),
1314
1304
  });
1315
1305
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1316
- if (data.Name != null) {
1317
- contents.Name = __expectString(data.Name);
1318
- }
1306
+ const doc = take(data, {
1307
+ Name: __expectString,
1308
+ });
1309
+ Object.assign(contents, doc);
1319
1310
  return contents;
1320
1311
  };
1321
1312
  const de_DeleteJobCommandError = async (output, context) => {
@@ -1336,10 +1327,9 @@ const de_DeleteJobCommandError = async (output, context) => {
1336
1327
  throw await de_ValidationExceptionRes(parsedOutput, context);
1337
1328
  default:
1338
1329
  const parsedBody = parsedOutput.body;
1339
- throwDefaultError({
1330
+ return throwDefaultError({
1340
1331
  output,
1341
1332
  parsedBody,
1342
- exceptionCtor: __BaseException,
1343
1333
  errorCode,
1344
1334
  });
1345
1335
  }
@@ -1352,9 +1342,10 @@ export const de_DeleteProjectCommand = async (output, context) => {
1352
1342
  $metadata: deserializeMetadata(output),
1353
1343
  });
1354
1344
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1355
- if (data.Name != null) {
1356
- contents.Name = __expectString(data.Name);
1357
- }
1345
+ const doc = take(data, {
1346
+ Name: __expectString,
1347
+ });
1348
+ Object.assign(contents, doc);
1358
1349
  return contents;
1359
1350
  };
1360
1351
  const de_DeleteProjectCommandError = async (output, context) => {
@@ -1375,10 +1366,9 @@ const de_DeleteProjectCommandError = async (output, context) => {
1375
1366
  throw await de_ValidationExceptionRes(parsedOutput, context);
1376
1367
  default:
1377
1368
  const parsedBody = parsedOutput.body;
1378
- throwDefaultError({
1369
+ return throwDefaultError({
1379
1370
  output,
1380
1371
  parsedBody,
1381
- exceptionCtor: __BaseException,
1382
1372
  errorCode,
1383
1373
  });
1384
1374
  }
@@ -1391,12 +1381,11 @@ export const de_DeleteRecipeVersionCommand = async (output, context) => {
1391
1381
  $metadata: deserializeMetadata(output),
1392
1382
  });
1393
1383
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1394
- if (data.Name != null) {
1395
- contents.Name = __expectString(data.Name);
1396
- }
1397
- if (data.RecipeVersion != null) {
1398
- contents.RecipeVersion = __expectString(data.RecipeVersion);
1399
- }
1384
+ const doc = take(data, {
1385
+ Name: __expectString,
1386
+ RecipeVersion: __expectString,
1387
+ });
1388
+ Object.assign(contents, doc);
1400
1389
  return contents;
1401
1390
  };
1402
1391
  const de_DeleteRecipeVersionCommandError = async (output, context) => {
@@ -1417,10 +1406,9 @@ const de_DeleteRecipeVersionCommandError = async (output, context) => {
1417
1406
  throw await de_ValidationExceptionRes(parsedOutput, context);
1418
1407
  default:
1419
1408
  const parsedBody = parsedOutput.body;
1420
- throwDefaultError({
1409
+ return throwDefaultError({
1421
1410
  output,
1422
1411
  parsedBody,
1423
- exceptionCtor: __BaseException,
1424
1412
  errorCode,
1425
1413
  });
1426
1414
  }
@@ -1433,9 +1421,10 @@ export const de_DeleteRulesetCommand = async (output, context) => {
1433
1421
  $metadata: deserializeMetadata(output),
1434
1422
  });
1435
1423
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1436
- if (data.Name != null) {
1437
- contents.Name = __expectString(data.Name);
1438
- }
1424
+ const doc = take(data, {
1425
+ Name: __expectString,
1426
+ });
1427
+ Object.assign(contents, doc);
1439
1428
  return contents;
1440
1429
  };
1441
1430
  const de_DeleteRulesetCommandError = async (output, context) => {
@@ -1456,10 +1445,9 @@ const de_DeleteRulesetCommandError = async (output, context) => {
1456
1445
  throw await de_ValidationExceptionRes(parsedOutput, context);
1457
1446
  default:
1458
1447
  const parsedBody = parsedOutput.body;
1459
- throwDefaultError({
1448
+ return throwDefaultError({
1460
1449
  output,
1461
1450
  parsedBody,
1462
- exceptionCtor: __BaseException,
1463
1451
  errorCode,
1464
1452
  });
1465
1453
  }
@@ -1472,9 +1460,10 @@ export const de_DeleteScheduleCommand = async (output, context) => {
1472
1460
  $metadata: deserializeMetadata(output),
1473
1461
  });
1474
1462
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1475
- if (data.Name != null) {
1476
- contents.Name = __expectString(data.Name);
1477
- }
1463
+ const doc = take(data, {
1464
+ Name: __expectString,
1465
+ });
1466
+ Object.assign(contents, doc);
1478
1467
  return contents;
1479
1468
  };
1480
1469
  const de_DeleteScheduleCommandError = async (output, context) => {
@@ -1492,10 +1481,9 @@ const de_DeleteScheduleCommandError = async (output, context) => {
1492
1481
  throw await de_ValidationExceptionRes(parsedOutput, context);
1493
1482
  default:
1494
1483
  const parsedBody = parsedOutput.body;
1495
- throwDefaultError({
1484
+ return throwDefaultError({
1496
1485
  output,
1497
1486
  parsedBody,
1498
- exceptionCtor: __BaseException,
1499
1487
  errorCode,
1500
1488
  });
1501
1489
  }
@@ -1508,42 +1496,21 @@ export const de_DescribeDatasetCommand = async (output, context) => {
1508
1496
  $metadata: deserializeMetadata(output),
1509
1497
  });
1510
1498
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1511
- if (data.CreateDate != null) {
1512
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1513
- }
1514
- if (data.CreatedBy != null) {
1515
- contents.CreatedBy = __expectString(data.CreatedBy);
1516
- }
1517
- if (data.Format != null) {
1518
- contents.Format = __expectString(data.Format);
1519
- }
1520
- if (data.FormatOptions != null) {
1521
- contents.FormatOptions = de_FormatOptions(data.FormatOptions, context);
1522
- }
1523
- if (data.Input != null) {
1524
- contents.Input = de_Input(data.Input, context);
1525
- }
1526
- if (data.LastModifiedBy != null) {
1527
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1528
- }
1529
- if (data.LastModifiedDate != null) {
1530
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
1531
- }
1532
- if (data.Name != null) {
1533
- contents.Name = __expectString(data.Name);
1534
- }
1535
- if (data.PathOptions != null) {
1536
- contents.PathOptions = de_PathOptions(data.PathOptions, context);
1537
- }
1538
- if (data.ResourceArn != null) {
1539
- contents.ResourceArn = __expectString(data.ResourceArn);
1540
- }
1541
- if (data.Source != null) {
1542
- contents.Source = __expectString(data.Source);
1543
- }
1544
- if (data.Tags != null) {
1545
- contents.Tags = de_TagMap(data.Tags, context);
1546
- }
1499
+ const doc = take(data, {
1500
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1501
+ CreatedBy: __expectString,
1502
+ Format: __expectString,
1503
+ FormatOptions: _json,
1504
+ Input: _json,
1505
+ LastModifiedBy: __expectString,
1506
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1507
+ Name: __expectString,
1508
+ PathOptions: _json,
1509
+ ResourceArn: __expectString,
1510
+ Source: __expectString,
1511
+ Tags: _json,
1512
+ });
1513
+ Object.assign(contents, doc);
1547
1514
  return contents;
1548
1515
  };
1549
1516
  const de_DescribeDatasetCommandError = async (output, context) => {
@@ -1561,10 +1528,9 @@ const de_DescribeDatasetCommandError = async (output, context) => {
1561
1528
  throw await de_ValidationExceptionRes(parsedOutput, context);
1562
1529
  default:
1563
1530
  const parsedBody = parsedOutput.body;
1564
- throwDefaultError({
1531
+ return throwDefaultError({
1565
1532
  output,
1566
1533
  parsedBody,
1567
- exceptionCtor: __BaseException,
1568
1534
  errorCode,
1569
1535
  });
1570
1536
  }
@@ -1577,78 +1543,33 @@ export const de_DescribeJobCommand = async (output, context) => {
1577
1543
  $metadata: deserializeMetadata(output),
1578
1544
  });
1579
1545
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1580
- if (data.CreateDate != null) {
1581
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1582
- }
1583
- if (data.CreatedBy != null) {
1584
- contents.CreatedBy = __expectString(data.CreatedBy);
1585
- }
1586
- if (data.DataCatalogOutputs != null) {
1587
- contents.DataCatalogOutputs = de_DataCatalogOutputList(data.DataCatalogOutputs, context);
1588
- }
1589
- if (data.DatabaseOutputs != null) {
1590
- contents.DatabaseOutputs = de_DatabaseOutputList(data.DatabaseOutputs, context);
1591
- }
1592
- if (data.DatasetName != null) {
1593
- contents.DatasetName = __expectString(data.DatasetName);
1594
- }
1595
- if (data.EncryptionKeyArn != null) {
1596
- contents.EncryptionKeyArn = __expectString(data.EncryptionKeyArn);
1597
- }
1598
- if (data.EncryptionMode != null) {
1599
- contents.EncryptionMode = __expectString(data.EncryptionMode);
1600
- }
1601
- if (data.JobSample != null) {
1602
- contents.JobSample = de_JobSample(data.JobSample, context);
1603
- }
1604
- if (data.LastModifiedBy != null) {
1605
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1606
- }
1607
- if (data.LastModifiedDate != null) {
1608
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
1609
- }
1610
- if (data.LogSubscription != null) {
1611
- contents.LogSubscription = __expectString(data.LogSubscription);
1612
- }
1613
- if (data.MaxCapacity != null) {
1614
- contents.MaxCapacity = __expectInt32(data.MaxCapacity);
1615
- }
1616
- if (data.MaxRetries != null) {
1617
- contents.MaxRetries = __expectInt32(data.MaxRetries);
1618
- }
1619
- if (data.Name != null) {
1620
- contents.Name = __expectString(data.Name);
1621
- }
1622
- if (data.Outputs != null) {
1623
- contents.Outputs = de_OutputList(data.Outputs, context);
1624
- }
1625
- if (data.ProfileConfiguration != null) {
1626
- contents.ProfileConfiguration = de_ProfileConfiguration(data.ProfileConfiguration, context);
1627
- }
1628
- if (data.ProjectName != null) {
1629
- contents.ProjectName = __expectString(data.ProjectName);
1630
- }
1631
- if (data.RecipeReference != null) {
1632
- contents.RecipeReference = de_RecipeReference(data.RecipeReference, context);
1633
- }
1634
- if (data.ResourceArn != null) {
1635
- contents.ResourceArn = __expectString(data.ResourceArn);
1636
- }
1637
- if (data.RoleArn != null) {
1638
- contents.RoleArn = __expectString(data.RoleArn);
1639
- }
1640
- if (data.Tags != null) {
1641
- contents.Tags = de_TagMap(data.Tags, context);
1642
- }
1643
- if (data.Timeout != null) {
1644
- contents.Timeout = __expectInt32(data.Timeout);
1645
- }
1646
- if (data.Type != null) {
1647
- contents.Type = __expectString(data.Type);
1648
- }
1649
- if (data.ValidationConfigurations != null) {
1650
- contents.ValidationConfigurations = de_ValidationConfigurationList(data.ValidationConfigurations, context);
1651
- }
1546
+ const doc = take(data, {
1547
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1548
+ CreatedBy: __expectString,
1549
+ DataCatalogOutputs: _json,
1550
+ DatabaseOutputs: _json,
1551
+ DatasetName: __expectString,
1552
+ EncryptionKeyArn: __expectString,
1553
+ EncryptionMode: __expectString,
1554
+ JobSample: _json,
1555
+ LastModifiedBy: __expectString,
1556
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1557
+ LogSubscription: __expectString,
1558
+ MaxCapacity: __expectInt32,
1559
+ MaxRetries: __expectInt32,
1560
+ Name: __expectString,
1561
+ Outputs: _json,
1562
+ ProfileConfiguration: _json,
1563
+ ProjectName: __expectString,
1564
+ RecipeReference: _json,
1565
+ ResourceArn: __expectString,
1566
+ RoleArn: __expectString,
1567
+ Tags: _json,
1568
+ Timeout: __expectInt32,
1569
+ Type: __expectString,
1570
+ ValidationConfigurations: _json,
1571
+ });
1572
+ Object.assign(contents, doc);
1652
1573
  return contents;
1653
1574
  };
1654
1575
  const de_DescribeJobCommandError = async (output, context) => {
@@ -1666,10 +1587,9 @@ const de_DescribeJobCommandError = async (output, context) => {
1666
1587
  throw await de_ValidationExceptionRes(parsedOutput, context);
1667
1588
  default:
1668
1589
  const parsedBody = parsedOutput.body;
1669
- throwDefaultError({
1590
+ return throwDefaultError({
1670
1591
  output,
1671
1592
  parsedBody,
1672
- exceptionCtor: __BaseException,
1673
1593
  errorCode,
1674
1594
  });
1675
1595
  }
@@ -1682,63 +1602,28 @@ export const de_DescribeJobRunCommand = async (output, context) => {
1682
1602
  $metadata: deserializeMetadata(output),
1683
1603
  });
1684
1604
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1685
- if (data.Attempt != null) {
1686
- contents.Attempt = __expectInt32(data.Attempt);
1687
- }
1688
- if (data.CompletedOn != null) {
1689
- contents.CompletedOn = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CompletedOn)));
1690
- }
1691
- if (data.DataCatalogOutputs != null) {
1692
- contents.DataCatalogOutputs = de_DataCatalogOutputList(data.DataCatalogOutputs, context);
1693
- }
1694
- if (data.DatabaseOutputs != null) {
1695
- contents.DatabaseOutputs = de_DatabaseOutputList(data.DatabaseOutputs, context);
1696
- }
1697
- if (data.DatasetName != null) {
1698
- contents.DatasetName = __expectString(data.DatasetName);
1699
- }
1700
- if (data.ErrorMessage != null) {
1701
- contents.ErrorMessage = __expectString(data.ErrorMessage);
1702
- }
1703
- if (data.ExecutionTime != null) {
1704
- contents.ExecutionTime = __expectInt32(data.ExecutionTime);
1705
- }
1706
- if (data.JobName != null) {
1707
- contents.JobName = __expectString(data.JobName);
1708
- }
1709
- if (data.JobSample != null) {
1710
- contents.JobSample = de_JobSample(data.JobSample, context);
1711
- }
1712
- if (data.LogGroupName != null) {
1713
- contents.LogGroupName = __expectString(data.LogGroupName);
1714
- }
1715
- if (data.LogSubscription != null) {
1716
- contents.LogSubscription = __expectString(data.LogSubscription);
1717
- }
1718
- if (data.Outputs != null) {
1719
- contents.Outputs = de_OutputList(data.Outputs, context);
1720
- }
1721
- if (data.ProfileConfiguration != null) {
1722
- contents.ProfileConfiguration = de_ProfileConfiguration(data.ProfileConfiguration, context);
1723
- }
1724
- if (data.RecipeReference != null) {
1725
- contents.RecipeReference = de_RecipeReference(data.RecipeReference, context);
1726
- }
1727
- if (data.RunId != null) {
1728
- contents.RunId = __expectString(data.RunId);
1729
- }
1730
- if (data.StartedBy != null) {
1731
- contents.StartedBy = __expectString(data.StartedBy);
1732
- }
1733
- if (data.StartedOn != null) {
1734
- contents.StartedOn = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartedOn)));
1735
- }
1736
- if (data.State != null) {
1737
- contents.State = __expectString(data.State);
1738
- }
1739
- if (data.ValidationConfigurations != null) {
1740
- contents.ValidationConfigurations = de_ValidationConfigurationList(data.ValidationConfigurations, context);
1741
- }
1605
+ const doc = take(data, {
1606
+ Attempt: __expectInt32,
1607
+ CompletedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1608
+ DataCatalogOutputs: _json,
1609
+ DatabaseOutputs: _json,
1610
+ DatasetName: __expectString,
1611
+ ErrorMessage: __expectString,
1612
+ ExecutionTime: __expectInt32,
1613
+ JobName: __expectString,
1614
+ JobSample: _json,
1615
+ LogGroupName: __expectString,
1616
+ LogSubscription: __expectString,
1617
+ Outputs: _json,
1618
+ ProfileConfiguration: _json,
1619
+ RecipeReference: _json,
1620
+ RunId: __expectString,
1621
+ StartedBy: __expectString,
1622
+ StartedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1623
+ State: __expectString,
1624
+ ValidationConfigurations: _json,
1625
+ });
1626
+ Object.assign(contents, doc);
1742
1627
  return contents;
1743
1628
  };
1744
1629
  const de_DescribeJobRunCommandError = async (output, context) => {
@@ -1756,10 +1641,9 @@ const de_DescribeJobRunCommandError = async (output, context) => {
1756
1641
  throw await de_ValidationExceptionRes(parsedOutput, context);
1757
1642
  default:
1758
1643
  const parsedBody = parsedOutput.body;
1759
- throwDefaultError({
1644
+ return throwDefaultError({
1760
1645
  output,
1761
1646
  parsedBody,
1762
- exceptionCtor: __BaseException,
1763
1647
  errorCode,
1764
1648
  });
1765
1649
  }
@@ -1772,48 +1656,23 @@ export const de_DescribeProjectCommand = async (output, context) => {
1772
1656
  $metadata: deserializeMetadata(output),
1773
1657
  });
1774
1658
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1775
- if (data.CreateDate != null) {
1776
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1777
- }
1778
- if (data.CreatedBy != null) {
1779
- contents.CreatedBy = __expectString(data.CreatedBy);
1780
- }
1781
- if (data.DatasetName != null) {
1782
- contents.DatasetName = __expectString(data.DatasetName);
1783
- }
1784
- if (data.LastModifiedBy != null) {
1785
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1786
- }
1787
- if (data.LastModifiedDate != null) {
1788
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
1789
- }
1790
- if (data.Name != null) {
1791
- contents.Name = __expectString(data.Name);
1792
- }
1793
- if (data.OpenDate != null) {
1794
- contents.OpenDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.OpenDate)));
1795
- }
1796
- if (data.OpenedBy != null) {
1797
- contents.OpenedBy = __expectString(data.OpenedBy);
1798
- }
1799
- if (data.RecipeName != null) {
1800
- contents.RecipeName = __expectString(data.RecipeName);
1801
- }
1802
- if (data.ResourceArn != null) {
1803
- contents.ResourceArn = __expectString(data.ResourceArn);
1804
- }
1805
- if (data.RoleArn != null) {
1806
- contents.RoleArn = __expectString(data.RoleArn);
1807
- }
1808
- if (data.Sample != null) {
1809
- contents.Sample = de_Sample(data.Sample, context);
1810
- }
1811
- if (data.SessionStatus != null) {
1812
- contents.SessionStatus = __expectString(data.SessionStatus);
1813
- }
1814
- if (data.Tags != null) {
1815
- contents.Tags = de_TagMap(data.Tags, context);
1816
- }
1659
+ const doc = take(data, {
1660
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1661
+ CreatedBy: __expectString,
1662
+ DatasetName: __expectString,
1663
+ LastModifiedBy: __expectString,
1664
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1665
+ Name: __expectString,
1666
+ OpenDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1667
+ OpenedBy: __expectString,
1668
+ RecipeName: __expectString,
1669
+ ResourceArn: __expectString,
1670
+ RoleArn: __expectString,
1671
+ Sample: _json,
1672
+ SessionStatus: __expectString,
1673
+ Tags: _json,
1674
+ });
1675
+ Object.assign(contents, doc);
1817
1676
  return contents;
1818
1677
  };
1819
1678
  const de_DescribeProjectCommandError = async (output, context) => {
@@ -1831,10 +1690,9 @@ const de_DescribeProjectCommandError = async (output, context) => {
1831
1690
  throw await de_ValidationExceptionRes(parsedOutput, context);
1832
1691
  default:
1833
1692
  const parsedBody = parsedOutput.body;
1834
- throwDefaultError({
1693
+ return throwDefaultError({
1835
1694
  output,
1836
1695
  parsedBody,
1837
- exceptionCtor: __BaseException,
1838
1696
  errorCode,
1839
1697
  });
1840
1698
  }
@@ -1847,45 +1705,22 @@ export const de_DescribeRecipeCommand = async (output, context) => {
1847
1705
  $metadata: deserializeMetadata(output),
1848
1706
  });
1849
1707
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1850
- if (data.CreateDate != null) {
1851
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1852
- }
1853
- if (data.CreatedBy != null) {
1854
- contents.CreatedBy = __expectString(data.CreatedBy);
1855
- }
1856
- if (data.Description != null) {
1857
- contents.Description = __expectString(data.Description);
1858
- }
1859
- if (data.LastModifiedBy != null) {
1860
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1861
- }
1862
- if (data.LastModifiedDate != null) {
1863
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
1864
- }
1865
- if (data.Name != null) {
1866
- contents.Name = __expectString(data.Name);
1867
- }
1868
- if (data.ProjectName != null) {
1869
- contents.ProjectName = __expectString(data.ProjectName);
1870
- }
1871
- if (data.PublishedBy != null) {
1872
- contents.PublishedBy = __expectString(data.PublishedBy);
1873
- }
1874
- if (data.PublishedDate != null) {
1875
- contents.PublishedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.PublishedDate)));
1876
- }
1877
- if (data.RecipeVersion != null) {
1878
- contents.RecipeVersion = __expectString(data.RecipeVersion);
1879
- }
1880
- if (data.ResourceArn != null) {
1881
- contents.ResourceArn = __expectString(data.ResourceArn);
1882
- }
1883
- if (data.Steps != null) {
1884
- contents.Steps = de_RecipeStepList(data.Steps, context);
1885
- }
1886
- if (data.Tags != null) {
1887
- contents.Tags = de_TagMap(data.Tags, context);
1888
- }
1708
+ const doc = take(data, {
1709
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1710
+ CreatedBy: __expectString,
1711
+ Description: __expectString,
1712
+ LastModifiedBy: __expectString,
1713
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1714
+ Name: __expectString,
1715
+ ProjectName: __expectString,
1716
+ PublishedBy: __expectString,
1717
+ PublishedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1718
+ RecipeVersion: __expectString,
1719
+ ResourceArn: __expectString,
1720
+ Steps: _json,
1721
+ Tags: _json,
1722
+ });
1723
+ Object.assign(contents, doc);
1889
1724
  return contents;
1890
1725
  };
1891
1726
  const de_DescribeRecipeCommandError = async (output, context) => {
@@ -1903,10 +1738,9 @@ const de_DescribeRecipeCommandError = async (output, context) => {
1903
1738
  throw await de_ValidationExceptionRes(parsedOutput, context);
1904
1739
  default:
1905
1740
  const parsedBody = parsedOutput.body;
1906
- throwDefaultError({
1741
+ return throwDefaultError({
1907
1742
  output,
1908
1743
  parsedBody,
1909
- exceptionCtor: __BaseException,
1910
1744
  errorCode,
1911
1745
  });
1912
1746
  }
@@ -1919,36 +1753,19 @@ export const de_DescribeRulesetCommand = async (output, context) => {
1919
1753
  $metadata: deserializeMetadata(output),
1920
1754
  });
1921
1755
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1922
- if (data.CreateDate != null) {
1923
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1924
- }
1925
- if (data.CreatedBy != null) {
1926
- contents.CreatedBy = __expectString(data.CreatedBy);
1927
- }
1928
- if (data.Description != null) {
1929
- contents.Description = __expectString(data.Description);
1930
- }
1931
- if (data.LastModifiedBy != null) {
1932
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1933
- }
1934
- if (data.LastModifiedDate != null) {
1935
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
1936
- }
1937
- if (data.Name != null) {
1938
- contents.Name = __expectString(data.Name);
1939
- }
1940
- if (data.ResourceArn != null) {
1941
- contents.ResourceArn = __expectString(data.ResourceArn);
1942
- }
1943
- if (data.Rules != null) {
1944
- contents.Rules = de_RuleList(data.Rules, context);
1945
- }
1946
- if (data.Tags != null) {
1947
- contents.Tags = de_TagMap(data.Tags, context);
1948
- }
1949
- if (data.TargetArn != null) {
1950
- contents.TargetArn = __expectString(data.TargetArn);
1951
- }
1756
+ const doc = take(data, {
1757
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1758
+ CreatedBy: __expectString,
1759
+ Description: __expectString,
1760
+ LastModifiedBy: __expectString,
1761
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1762
+ Name: __expectString,
1763
+ ResourceArn: __expectString,
1764
+ Rules: (_) => de_RuleList(_, context),
1765
+ Tags: _json,
1766
+ TargetArn: __expectString,
1767
+ });
1768
+ Object.assign(contents, doc);
1952
1769
  return contents;
1953
1770
  };
1954
1771
  const de_DescribeRulesetCommandError = async (output, context) => {
@@ -1966,10 +1783,9 @@ const de_DescribeRulesetCommandError = async (output, context) => {
1966
1783
  throw await de_ValidationExceptionRes(parsedOutput, context);
1967
1784
  default:
1968
1785
  const parsedBody = parsedOutput.body;
1969
- throwDefaultError({
1786
+ return throwDefaultError({
1970
1787
  output,
1971
1788
  parsedBody,
1972
- exceptionCtor: __BaseException,
1973
1789
  errorCode,
1974
1790
  });
1975
1791
  }
@@ -1982,33 +1798,18 @@ export const de_DescribeScheduleCommand = async (output, context) => {
1982
1798
  $metadata: deserializeMetadata(output),
1983
1799
  });
1984
1800
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1985
- if (data.CreateDate != null) {
1986
- contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
1987
- }
1988
- if (data.CreatedBy != null) {
1989
- contents.CreatedBy = __expectString(data.CreatedBy);
1990
- }
1991
- if (data.CronExpression != null) {
1992
- contents.CronExpression = __expectString(data.CronExpression);
1993
- }
1994
- if (data.JobNames != null) {
1995
- contents.JobNames = de_JobNameList(data.JobNames, context);
1996
- }
1997
- if (data.LastModifiedBy != null) {
1998
- contents.LastModifiedBy = __expectString(data.LastModifiedBy);
1999
- }
2000
- if (data.LastModifiedDate != null) {
2001
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
2002
- }
2003
- if (data.Name != null) {
2004
- contents.Name = __expectString(data.Name);
2005
- }
2006
- if (data.ResourceArn != null) {
2007
- contents.ResourceArn = __expectString(data.ResourceArn);
2008
- }
2009
- if (data.Tags != null) {
2010
- contents.Tags = de_TagMap(data.Tags, context);
2011
- }
1801
+ const doc = take(data, {
1802
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1803
+ CreatedBy: __expectString,
1804
+ CronExpression: __expectString,
1805
+ JobNames: _json,
1806
+ LastModifiedBy: __expectString,
1807
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1808
+ Name: __expectString,
1809
+ ResourceArn: __expectString,
1810
+ Tags: _json,
1811
+ });
1812
+ Object.assign(contents, doc);
2012
1813
  return contents;
2013
1814
  };
2014
1815
  const de_DescribeScheduleCommandError = async (output, context) => {
@@ -2026,10 +1827,9 @@ const de_DescribeScheduleCommandError = async (output, context) => {
2026
1827
  throw await de_ValidationExceptionRes(parsedOutput, context);
2027
1828
  default:
2028
1829
  const parsedBody = parsedOutput.body;
2029
- throwDefaultError({
1830
+ return throwDefaultError({
2030
1831
  output,
2031
1832
  parsedBody,
2032
- exceptionCtor: __BaseException,
2033
1833
  errorCode,
2034
1834
  });
2035
1835
  }
@@ -2042,12 +1842,11 @@ export const de_ListDatasetsCommand = async (output, context) => {
2042
1842
  $metadata: deserializeMetadata(output),
2043
1843
  });
2044
1844
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2045
- if (data.Datasets != null) {
2046
- contents.Datasets = de_DatasetList(data.Datasets, context);
2047
- }
2048
- if (data.NextToken != null) {
2049
- contents.NextToken = __expectString(data.NextToken);
2050
- }
1845
+ const doc = take(data, {
1846
+ Datasets: (_) => de_DatasetList(_, context),
1847
+ NextToken: __expectString,
1848
+ });
1849
+ Object.assign(contents, doc);
2051
1850
  return contents;
2052
1851
  };
2053
1852
  const de_ListDatasetsCommandError = async (output, context) => {
@@ -2062,10 +1861,9 @@ const de_ListDatasetsCommandError = async (output, context) => {
2062
1861
  throw await de_ValidationExceptionRes(parsedOutput, context);
2063
1862
  default:
2064
1863
  const parsedBody = parsedOutput.body;
2065
- throwDefaultError({
1864
+ return throwDefaultError({
2066
1865
  output,
2067
1866
  parsedBody,
2068
- exceptionCtor: __BaseException,
2069
1867
  errorCode,
2070
1868
  });
2071
1869
  }
@@ -2078,12 +1876,11 @@ export const de_ListJobRunsCommand = async (output, context) => {
2078
1876
  $metadata: deserializeMetadata(output),
2079
1877
  });
2080
1878
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2081
- if (data.JobRuns != null) {
2082
- contents.JobRuns = de_JobRunList(data.JobRuns, context);
2083
- }
2084
- if (data.NextToken != null) {
2085
- contents.NextToken = __expectString(data.NextToken);
2086
- }
1879
+ const doc = take(data, {
1880
+ JobRuns: (_) => de_JobRunList(_, context),
1881
+ NextToken: __expectString,
1882
+ });
1883
+ Object.assign(contents, doc);
2087
1884
  return contents;
2088
1885
  };
2089
1886
  const de_ListJobRunsCommandError = async (output, context) => {
@@ -2101,10 +1898,9 @@ const de_ListJobRunsCommandError = async (output, context) => {
2101
1898
  throw await de_ValidationExceptionRes(parsedOutput, context);
2102
1899
  default:
2103
1900
  const parsedBody = parsedOutput.body;
2104
- throwDefaultError({
1901
+ return throwDefaultError({
2105
1902
  output,
2106
1903
  parsedBody,
2107
- exceptionCtor: __BaseException,
2108
1904
  errorCode,
2109
1905
  });
2110
1906
  }
@@ -2117,12 +1913,11 @@ export const de_ListJobsCommand = async (output, context) => {
2117
1913
  $metadata: deserializeMetadata(output),
2118
1914
  });
2119
1915
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2120
- if (data.Jobs != null) {
2121
- contents.Jobs = de_JobList(data.Jobs, context);
2122
- }
2123
- if (data.NextToken != null) {
2124
- contents.NextToken = __expectString(data.NextToken);
2125
- }
1916
+ const doc = take(data, {
1917
+ Jobs: (_) => de_JobList(_, context),
1918
+ NextToken: __expectString,
1919
+ });
1920
+ Object.assign(contents, doc);
2126
1921
  return contents;
2127
1922
  };
2128
1923
  const de_ListJobsCommandError = async (output, context) => {
@@ -2137,10 +1932,9 @@ const de_ListJobsCommandError = async (output, context) => {
2137
1932
  throw await de_ValidationExceptionRes(parsedOutput, context);
2138
1933
  default:
2139
1934
  const parsedBody = parsedOutput.body;
2140
- throwDefaultError({
1935
+ return throwDefaultError({
2141
1936
  output,
2142
1937
  parsedBody,
2143
- exceptionCtor: __BaseException,
2144
1938
  errorCode,
2145
1939
  });
2146
1940
  }
@@ -2153,12 +1947,11 @@ export const de_ListProjectsCommand = async (output, context) => {
2153
1947
  $metadata: deserializeMetadata(output),
2154
1948
  });
2155
1949
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2156
- if (data.NextToken != null) {
2157
- contents.NextToken = __expectString(data.NextToken);
2158
- }
2159
- if (data.Projects != null) {
2160
- contents.Projects = de_ProjectList(data.Projects, context);
2161
- }
1950
+ const doc = take(data, {
1951
+ NextToken: __expectString,
1952
+ Projects: (_) => de_ProjectList(_, context),
1953
+ });
1954
+ Object.assign(contents, doc);
2162
1955
  return contents;
2163
1956
  };
2164
1957
  const de_ListProjectsCommandError = async (output, context) => {
@@ -2173,10 +1966,9 @@ const de_ListProjectsCommandError = async (output, context) => {
2173
1966
  throw await de_ValidationExceptionRes(parsedOutput, context);
2174
1967
  default:
2175
1968
  const parsedBody = parsedOutput.body;
2176
- throwDefaultError({
1969
+ return throwDefaultError({
2177
1970
  output,
2178
1971
  parsedBody,
2179
- exceptionCtor: __BaseException,
2180
1972
  errorCode,
2181
1973
  });
2182
1974
  }
@@ -2189,12 +1981,11 @@ export const de_ListRecipesCommand = async (output, context) => {
2189
1981
  $metadata: deserializeMetadata(output),
2190
1982
  });
2191
1983
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2192
- if (data.NextToken != null) {
2193
- contents.NextToken = __expectString(data.NextToken);
2194
- }
2195
- if (data.Recipes != null) {
2196
- contents.Recipes = de_RecipeList(data.Recipes, context);
2197
- }
1984
+ const doc = take(data, {
1985
+ NextToken: __expectString,
1986
+ Recipes: (_) => de_RecipeList(_, context),
1987
+ });
1988
+ Object.assign(contents, doc);
2198
1989
  return contents;
2199
1990
  };
2200
1991
  const de_ListRecipesCommandError = async (output, context) => {
@@ -2209,10 +2000,9 @@ const de_ListRecipesCommandError = async (output, context) => {
2209
2000
  throw await de_ValidationExceptionRes(parsedOutput, context);
2210
2001
  default:
2211
2002
  const parsedBody = parsedOutput.body;
2212
- throwDefaultError({
2003
+ return throwDefaultError({
2213
2004
  output,
2214
2005
  parsedBody,
2215
- exceptionCtor: __BaseException,
2216
2006
  errorCode,
2217
2007
  });
2218
2008
  }
@@ -2225,12 +2015,11 @@ export const de_ListRecipeVersionsCommand = async (output, context) => {
2225
2015
  $metadata: deserializeMetadata(output),
2226
2016
  });
2227
2017
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2228
- if (data.NextToken != null) {
2229
- contents.NextToken = __expectString(data.NextToken);
2230
- }
2231
- if (data.Recipes != null) {
2232
- contents.Recipes = de_RecipeList(data.Recipes, context);
2233
- }
2018
+ const doc = take(data, {
2019
+ NextToken: __expectString,
2020
+ Recipes: (_) => de_RecipeList(_, context),
2021
+ });
2022
+ Object.assign(contents, doc);
2234
2023
  return contents;
2235
2024
  };
2236
2025
  const de_ListRecipeVersionsCommandError = async (output, context) => {
@@ -2245,10 +2034,9 @@ const de_ListRecipeVersionsCommandError = async (output, context) => {
2245
2034
  throw await de_ValidationExceptionRes(parsedOutput, context);
2246
2035
  default:
2247
2036
  const parsedBody = parsedOutput.body;
2248
- throwDefaultError({
2037
+ return throwDefaultError({
2249
2038
  output,
2250
2039
  parsedBody,
2251
- exceptionCtor: __BaseException,
2252
2040
  errorCode,
2253
2041
  });
2254
2042
  }
@@ -2261,12 +2049,11 @@ export const de_ListRulesetsCommand = async (output, context) => {
2261
2049
  $metadata: deserializeMetadata(output),
2262
2050
  });
2263
2051
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2264
- if (data.NextToken != null) {
2265
- contents.NextToken = __expectString(data.NextToken);
2266
- }
2267
- if (data.Rulesets != null) {
2268
- contents.Rulesets = de_RulesetItemList(data.Rulesets, context);
2269
- }
2052
+ const doc = take(data, {
2053
+ NextToken: __expectString,
2054
+ Rulesets: (_) => de_RulesetItemList(_, context),
2055
+ });
2056
+ Object.assign(contents, doc);
2270
2057
  return contents;
2271
2058
  };
2272
2059
  const de_ListRulesetsCommandError = async (output, context) => {
@@ -2284,10 +2071,9 @@ const de_ListRulesetsCommandError = async (output, context) => {
2284
2071
  throw await de_ValidationExceptionRes(parsedOutput, context);
2285
2072
  default:
2286
2073
  const parsedBody = parsedOutput.body;
2287
- throwDefaultError({
2074
+ return throwDefaultError({
2288
2075
  output,
2289
2076
  parsedBody,
2290
- exceptionCtor: __BaseException,
2291
2077
  errorCode,
2292
2078
  });
2293
2079
  }
@@ -2300,12 +2086,11 @@ export const de_ListSchedulesCommand = async (output, context) => {
2300
2086
  $metadata: deserializeMetadata(output),
2301
2087
  });
2302
2088
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2303
- if (data.NextToken != null) {
2304
- contents.NextToken = __expectString(data.NextToken);
2305
- }
2306
- if (data.Schedules != null) {
2307
- contents.Schedules = de_ScheduleList(data.Schedules, context);
2308
- }
2089
+ const doc = take(data, {
2090
+ NextToken: __expectString,
2091
+ Schedules: (_) => de_ScheduleList(_, context),
2092
+ });
2093
+ Object.assign(contents, doc);
2309
2094
  return contents;
2310
2095
  };
2311
2096
  const de_ListSchedulesCommandError = async (output, context) => {
@@ -2320,10 +2105,9 @@ const de_ListSchedulesCommandError = async (output, context) => {
2320
2105
  throw await de_ValidationExceptionRes(parsedOutput, context);
2321
2106
  default:
2322
2107
  const parsedBody = parsedOutput.body;
2323
- throwDefaultError({
2108
+ return throwDefaultError({
2324
2109
  output,
2325
2110
  parsedBody,
2326
- exceptionCtor: __BaseException,
2327
2111
  errorCode,
2328
2112
  });
2329
2113
  }
@@ -2336,9 +2120,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2336
2120
  $metadata: deserializeMetadata(output),
2337
2121
  });
2338
2122
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2339
- if (data.Tags != null) {
2340
- contents.Tags = de_TagMap(data.Tags, context);
2341
- }
2123
+ const doc = take(data, {
2124
+ Tags: _json,
2125
+ });
2126
+ Object.assign(contents, doc);
2342
2127
  return contents;
2343
2128
  };
2344
2129
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2359,10 +2144,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2359
2144
  throw await de_ValidationExceptionRes(parsedOutput, context);
2360
2145
  default:
2361
2146
  const parsedBody = parsedOutput.body;
2362
- throwDefaultError({
2147
+ return throwDefaultError({
2363
2148
  output,
2364
2149
  parsedBody,
2365
- exceptionCtor: __BaseException,
2366
2150
  errorCode,
2367
2151
  });
2368
2152
  }
@@ -2375,9 +2159,10 @@ export const de_PublishRecipeCommand = async (output, context) => {
2375
2159
  $metadata: deserializeMetadata(output),
2376
2160
  });
2377
2161
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2378
- if (data.Name != null) {
2379
- contents.Name = __expectString(data.Name);
2380
- }
2162
+ const doc = take(data, {
2163
+ Name: __expectString,
2164
+ });
2165
+ Object.assign(contents, doc);
2381
2166
  return contents;
2382
2167
  };
2383
2168
  const de_PublishRecipeCommandError = async (output, context) => {
@@ -2398,10 +2183,9 @@ const de_PublishRecipeCommandError = async (output, context) => {
2398
2183
  throw await de_ValidationExceptionRes(parsedOutput, context);
2399
2184
  default:
2400
2185
  const parsedBody = parsedOutput.body;
2401
- throwDefaultError({
2186
+ return throwDefaultError({
2402
2187
  output,
2403
2188
  parsedBody,
2404
- exceptionCtor: __BaseException,
2405
2189
  errorCode,
2406
2190
  });
2407
2191
  }
@@ -2414,15 +2198,12 @@ export const de_SendProjectSessionActionCommand = async (output, context) => {
2414
2198
  $metadata: deserializeMetadata(output),
2415
2199
  });
2416
2200
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2417
- if (data.ActionId != null) {
2418
- contents.ActionId = __expectInt32(data.ActionId);
2419
- }
2420
- if (data.Name != null) {
2421
- contents.Name = __expectString(data.Name);
2422
- }
2423
- if (data.Result != null) {
2424
- contents.Result = __expectString(data.Result);
2425
- }
2201
+ const doc = take(data, {
2202
+ ActionId: __expectInt32,
2203
+ Name: __expectString,
2204
+ Result: __expectString,
2205
+ });
2206
+ Object.assign(contents, doc);
2426
2207
  return contents;
2427
2208
  };
2428
2209
  const de_SendProjectSessionActionCommandError = async (output, context) => {
@@ -2443,10 +2224,9 @@ const de_SendProjectSessionActionCommandError = async (output, context) => {
2443
2224
  throw await de_ValidationExceptionRes(parsedOutput, context);
2444
2225
  default:
2445
2226
  const parsedBody = parsedOutput.body;
2446
- throwDefaultError({
2227
+ return throwDefaultError({
2447
2228
  output,
2448
2229
  parsedBody,
2449
- exceptionCtor: __BaseException,
2450
2230
  errorCode,
2451
2231
  });
2452
2232
  }
@@ -2459,9 +2239,10 @@ export const de_StartJobRunCommand = async (output, context) => {
2459
2239
  $metadata: deserializeMetadata(output),
2460
2240
  });
2461
2241
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2462
- if (data.RunId != null) {
2463
- contents.RunId = __expectString(data.RunId);
2464
- }
2242
+ const doc = take(data, {
2243
+ RunId: __expectString,
2244
+ });
2245
+ Object.assign(contents, doc);
2465
2246
  return contents;
2466
2247
  };
2467
2248
  const de_StartJobRunCommandError = async (output, context) => {
@@ -2485,10 +2266,9 @@ const de_StartJobRunCommandError = async (output, context) => {
2485
2266
  throw await de_ValidationExceptionRes(parsedOutput, context);
2486
2267
  default:
2487
2268
  const parsedBody = parsedOutput.body;
2488
- throwDefaultError({
2269
+ return throwDefaultError({
2489
2270
  output,
2490
2271
  parsedBody,
2491
- exceptionCtor: __BaseException,
2492
2272
  errorCode,
2493
2273
  });
2494
2274
  }
@@ -2501,12 +2281,11 @@ export const de_StartProjectSessionCommand = async (output, context) => {
2501
2281
  $metadata: deserializeMetadata(output),
2502
2282
  });
2503
2283
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2504
- if (data.ClientSessionId != null) {
2505
- contents.ClientSessionId = __expectString(data.ClientSessionId);
2506
- }
2507
- if (data.Name != null) {
2508
- contents.Name = __expectString(data.Name);
2509
- }
2284
+ const doc = take(data, {
2285
+ ClientSessionId: __expectString,
2286
+ Name: __expectString,
2287
+ });
2288
+ Object.assign(contents, doc);
2510
2289
  return contents;
2511
2290
  };
2512
2291
  const de_StartProjectSessionCommandError = async (output, context) => {
@@ -2530,10 +2309,9 @@ const de_StartProjectSessionCommandError = async (output, context) => {
2530
2309
  throw await de_ValidationExceptionRes(parsedOutput, context);
2531
2310
  default:
2532
2311
  const parsedBody = parsedOutput.body;
2533
- throwDefaultError({
2312
+ return throwDefaultError({
2534
2313
  output,
2535
2314
  parsedBody,
2536
- exceptionCtor: __BaseException,
2537
2315
  errorCode,
2538
2316
  });
2539
2317
  }
@@ -2546,9 +2324,10 @@ export const de_StopJobRunCommand = async (output, context) => {
2546
2324
  $metadata: deserializeMetadata(output),
2547
2325
  });
2548
2326
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2549
- if (data.RunId != null) {
2550
- contents.RunId = __expectString(data.RunId);
2551
- }
2327
+ const doc = take(data, {
2328
+ RunId: __expectString,
2329
+ });
2330
+ Object.assign(contents, doc);
2552
2331
  return contents;
2553
2332
  };
2554
2333
  const de_StopJobRunCommandError = async (output, context) => {
@@ -2566,10 +2345,9 @@ const de_StopJobRunCommandError = async (output, context) => {
2566
2345
  throw await de_ValidationExceptionRes(parsedOutput, context);
2567
2346
  default:
2568
2347
  const parsedBody = parsedOutput.body;
2569
- throwDefaultError({
2348
+ return throwDefaultError({
2570
2349
  output,
2571
2350
  parsedBody,
2572
- exceptionCtor: __BaseException,
2573
2351
  errorCode,
2574
2352
  });
2575
2353
  }
@@ -2602,10 +2380,9 @@ const de_TagResourceCommandError = async (output, context) => {
2602
2380
  throw await de_ValidationExceptionRes(parsedOutput, context);
2603
2381
  default:
2604
2382
  const parsedBody = parsedOutput.body;
2605
- throwDefaultError({
2383
+ return throwDefaultError({
2606
2384
  output,
2607
2385
  parsedBody,
2608
- exceptionCtor: __BaseException,
2609
2386
  errorCode,
2610
2387
  });
2611
2388
  }
@@ -2638,10 +2415,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2638
2415
  throw await de_ValidationExceptionRes(parsedOutput, context);
2639
2416
  default:
2640
2417
  const parsedBody = parsedOutput.body;
2641
- throwDefaultError({
2418
+ return throwDefaultError({
2642
2419
  output,
2643
2420
  parsedBody,
2644
- exceptionCtor: __BaseException,
2645
2421
  errorCode,
2646
2422
  });
2647
2423
  }
@@ -2654,9 +2430,10 @@ export const de_UpdateDatasetCommand = async (output, context) => {
2654
2430
  $metadata: deserializeMetadata(output),
2655
2431
  });
2656
2432
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2657
- if (data.Name != null) {
2658
- contents.Name = __expectString(data.Name);
2659
- }
2433
+ const doc = take(data, {
2434
+ Name: __expectString,
2435
+ });
2436
+ Object.assign(contents, doc);
2660
2437
  return contents;
2661
2438
  };
2662
2439
  const de_UpdateDatasetCommandError = async (output, context) => {
@@ -2677,10 +2454,9 @@ const de_UpdateDatasetCommandError = async (output, context) => {
2677
2454
  throw await de_ValidationExceptionRes(parsedOutput, context);
2678
2455
  default:
2679
2456
  const parsedBody = parsedOutput.body;
2680
- throwDefaultError({
2457
+ return throwDefaultError({
2681
2458
  output,
2682
2459
  parsedBody,
2683
- exceptionCtor: __BaseException,
2684
2460
  errorCode,
2685
2461
  });
2686
2462
  }
@@ -2693,9 +2469,10 @@ export const de_UpdateProfileJobCommand = async (output, context) => {
2693
2469
  $metadata: deserializeMetadata(output),
2694
2470
  });
2695
2471
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2696
- if (data.Name != null) {
2697
- contents.Name = __expectString(data.Name);
2698
- }
2472
+ const doc = take(data, {
2473
+ Name: __expectString,
2474
+ });
2475
+ Object.assign(contents, doc);
2699
2476
  return contents;
2700
2477
  };
2701
2478
  const de_UpdateProfileJobCommandError = async (output, context) => {
@@ -2716,10 +2493,9 @@ const de_UpdateProfileJobCommandError = async (output, context) => {
2716
2493
  throw await de_ValidationExceptionRes(parsedOutput, context);
2717
2494
  default:
2718
2495
  const parsedBody = parsedOutput.body;
2719
- throwDefaultError({
2496
+ return throwDefaultError({
2720
2497
  output,
2721
2498
  parsedBody,
2722
- exceptionCtor: __BaseException,
2723
2499
  errorCode,
2724
2500
  });
2725
2501
  }
@@ -2732,12 +2508,11 @@ export const de_UpdateProjectCommand = async (output, context) => {
2732
2508
  $metadata: deserializeMetadata(output),
2733
2509
  });
2734
2510
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2735
- if (data.LastModifiedDate != null) {
2736
- contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
2737
- }
2738
- if (data.Name != null) {
2739
- contents.Name = __expectString(data.Name);
2740
- }
2511
+ const doc = take(data, {
2512
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2513
+ Name: __expectString,
2514
+ });
2515
+ Object.assign(contents, doc);
2741
2516
  return contents;
2742
2517
  };
2743
2518
  const de_UpdateProjectCommandError = async (output, context) => {
@@ -2755,10 +2530,9 @@ const de_UpdateProjectCommandError = async (output, context) => {
2755
2530
  throw await de_ValidationExceptionRes(parsedOutput, context);
2756
2531
  default:
2757
2532
  const parsedBody = parsedOutput.body;
2758
- throwDefaultError({
2533
+ return throwDefaultError({
2759
2534
  output,
2760
2535
  parsedBody,
2761
- exceptionCtor: __BaseException,
2762
2536
  errorCode,
2763
2537
  });
2764
2538
  }
@@ -2771,9 +2545,10 @@ export const de_UpdateRecipeCommand = async (output, context) => {
2771
2545
  $metadata: deserializeMetadata(output),
2772
2546
  });
2773
2547
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2774
- if (data.Name != null) {
2775
- contents.Name = __expectString(data.Name);
2776
- }
2548
+ const doc = take(data, {
2549
+ Name: __expectString,
2550
+ });
2551
+ Object.assign(contents, doc);
2777
2552
  return contents;
2778
2553
  };
2779
2554
  const de_UpdateRecipeCommandError = async (output, context) => {
@@ -2791,10 +2566,9 @@ const de_UpdateRecipeCommandError = async (output, context) => {
2791
2566
  throw await de_ValidationExceptionRes(parsedOutput, context);
2792
2567
  default:
2793
2568
  const parsedBody = parsedOutput.body;
2794
- throwDefaultError({
2569
+ return throwDefaultError({
2795
2570
  output,
2796
2571
  parsedBody,
2797
- exceptionCtor: __BaseException,
2798
2572
  errorCode,
2799
2573
  });
2800
2574
  }
@@ -2807,9 +2581,10 @@ export const de_UpdateRecipeJobCommand = async (output, context) => {
2807
2581
  $metadata: deserializeMetadata(output),
2808
2582
  });
2809
2583
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2810
- if (data.Name != null) {
2811
- contents.Name = __expectString(data.Name);
2812
- }
2584
+ const doc = take(data, {
2585
+ Name: __expectString,
2586
+ });
2587
+ Object.assign(contents, doc);
2813
2588
  return contents;
2814
2589
  };
2815
2590
  const de_UpdateRecipeJobCommandError = async (output, context) => {
@@ -2830,10 +2605,9 @@ const de_UpdateRecipeJobCommandError = async (output, context) => {
2830
2605
  throw await de_ValidationExceptionRes(parsedOutput, context);
2831
2606
  default:
2832
2607
  const parsedBody = parsedOutput.body;
2833
- throwDefaultError({
2608
+ return throwDefaultError({
2834
2609
  output,
2835
2610
  parsedBody,
2836
- exceptionCtor: __BaseException,
2837
2611
  errorCode,
2838
2612
  });
2839
2613
  }
@@ -2846,9 +2620,10 @@ export const de_UpdateRulesetCommand = async (output, context) => {
2846
2620
  $metadata: deserializeMetadata(output),
2847
2621
  });
2848
2622
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2849
- if (data.Name != null) {
2850
- contents.Name = __expectString(data.Name);
2851
- }
2623
+ const doc = take(data, {
2624
+ Name: __expectString,
2625
+ });
2626
+ Object.assign(contents, doc);
2852
2627
  return contents;
2853
2628
  };
2854
2629
  const de_UpdateRulesetCommandError = async (output, context) => {
@@ -2866,10 +2641,9 @@ const de_UpdateRulesetCommandError = async (output, context) => {
2866
2641
  throw await de_ValidationExceptionRes(parsedOutput, context);
2867
2642
  default:
2868
2643
  const parsedBody = parsedOutput.body;
2869
- throwDefaultError({
2644
+ return throwDefaultError({
2870
2645
  output,
2871
2646
  parsedBody,
2872
- exceptionCtor: __BaseException,
2873
2647
  errorCode,
2874
2648
  });
2875
2649
  }
@@ -2882,9 +2656,10 @@ export const de_UpdateScheduleCommand = async (output, context) => {
2882
2656
  $metadata: deserializeMetadata(output),
2883
2657
  });
2884
2658
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2885
- if (data.Name != null) {
2886
- contents.Name = __expectString(data.Name);
2887
- }
2659
+ const doc = take(data, {
2660
+ Name: __expectString,
2661
+ });
2662
+ Object.assign(contents, doc);
2888
2663
  return contents;
2889
2664
  };
2890
2665
  const de_UpdateScheduleCommandError = async (output, context) => {
@@ -2905,21 +2680,21 @@ const de_UpdateScheduleCommandError = async (output, context) => {
2905
2680
  throw await de_ValidationExceptionRes(parsedOutput, context);
2906
2681
  default:
2907
2682
  const parsedBody = parsedOutput.body;
2908
- throwDefaultError({
2683
+ return throwDefaultError({
2909
2684
  output,
2910
2685
  parsedBody,
2911
- exceptionCtor: __BaseException,
2912
2686
  errorCode,
2913
2687
  });
2914
2688
  }
2915
2689
  };
2916
- const map = __map;
2690
+ const throwDefaultError = withBaseException(__BaseException);
2917
2691
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2918
2692
  const contents = map({});
2919
2693
  const data = parsedOutput.body;
2920
- if (data.Message != null) {
2921
- contents.Message = __expectString(data.Message);
2922
- }
2694
+ const doc = take(data, {
2695
+ Message: __expectString,
2696
+ });
2697
+ Object.assign(contents, doc);
2923
2698
  const exception = new AccessDeniedException({
2924
2699
  $metadata: deserializeMetadata(parsedOutput),
2925
2700
  ...contents,
@@ -2929,9 +2704,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2929
2704
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2930
2705
  const contents = map({});
2931
2706
  const data = parsedOutput.body;
2932
- if (data.Message != null) {
2933
- contents.Message = __expectString(data.Message);
2934
- }
2707
+ const doc = take(data, {
2708
+ Message: __expectString,
2709
+ });
2710
+ Object.assign(contents, doc);
2935
2711
  const exception = new ConflictException({
2936
2712
  $metadata: deserializeMetadata(parsedOutput),
2937
2713
  ...contents,
@@ -2941,9 +2717,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2941
2717
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2942
2718
  const contents = map({});
2943
2719
  const data = parsedOutput.body;
2944
- if (data.Message != null) {
2945
- contents.Message = __expectString(data.Message);
2946
- }
2720
+ const doc = take(data, {
2721
+ Message: __expectString,
2722
+ });
2723
+ Object.assign(contents, doc);
2947
2724
  const exception = new InternalServerException({
2948
2725
  $metadata: deserializeMetadata(parsedOutput),
2949
2726
  ...contents,
@@ -2953,9 +2730,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2953
2730
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2954
2731
  const contents = map({});
2955
2732
  const data = parsedOutput.body;
2956
- if (data.Message != null) {
2957
- contents.Message = __expectString(data.Message);
2958
- }
2733
+ const doc = take(data, {
2734
+ Message: __expectString,
2735
+ });
2736
+ Object.assign(contents, doc);
2959
2737
  const exception = new ResourceNotFoundException({
2960
2738
  $metadata: deserializeMetadata(parsedOutput),
2961
2739
  ...contents,
@@ -2965,9 +2743,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2965
2743
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2966
2744
  const contents = map({});
2967
2745
  const data = parsedOutput.body;
2968
- if (data.Message != null) {
2969
- contents.Message = __expectString(data.Message);
2970
- }
2746
+ const doc = take(data, {
2747
+ Message: __expectString,
2748
+ });
2749
+ Object.assign(contents, doc);
2971
2750
  const exception = new ServiceQuotaExceededException({
2972
2751
  $metadata: deserializeMetadata(parsedOutput),
2973
2752
  ...contents,
@@ -2977,1196 +2756,251 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2977
2756
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2978
2757
  const contents = map({});
2979
2758
  const data = parsedOutput.body;
2980
- if (data.Message != null) {
2981
- contents.Message = __expectString(data.Message);
2982
- }
2759
+ const doc = take(data, {
2760
+ Message: __expectString,
2761
+ });
2762
+ Object.assign(contents, doc);
2983
2763
  const exception = new ValidationException({
2984
2764
  $metadata: deserializeMetadata(parsedOutput),
2985
2765
  ...contents,
2986
2766
  });
2987
2767
  return __decorateServiceException(exception, parsedOutput.body);
2988
2768
  };
2989
- const se_AllowedStatisticList = (input, context) => {
2769
+ const se_Rule = (input, context) => {
2770
+ return take(input, {
2771
+ CheckExpression: [],
2772
+ ColumnSelectors: _json,
2773
+ Disabled: [],
2774
+ Name: [],
2775
+ SubstitutionMap: _json,
2776
+ Threshold: (_) => se_Threshold(_, context),
2777
+ });
2778
+ };
2779
+ const se_RuleList = (input, context) => {
2990
2780
  return input
2991
2781
  .filter((e) => e != null)
2992
2782
  .map((entry) => {
2993
- return se_AllowedStatistics(entry, context);
2783
+ return se_Rule(entry, context);
2994
2784
  });
2995
2785
  };
2996
- const se_AllowedStatistics = (input, context) => {
2997
- return {
2998
- ...(input.Statistics != null && { Statistics: se_StatisticList(input.Statistics, context) }),
2999
- };
2786
+ const se_Threshold = (input, context) => {
2787
+ return take(input, {
2788
+ Type: [],
2789
+ Unit: [],
2790
+ Value: __serializeFloat,
2791
+ });
3000
2792
  };
3001
- const se_ColumnNameList = (input, context) => {
3002
- return input
2793
+ const de_Dataset = (output, context) => {
2794
+ return take(output, {
2795
+ AccountId: __expectString,
2796
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2797
+ CreatedBy: __expectString,
2798
+ Format: __expectString,
2799
+ FormatOptions: _json,
2800
+ Input: _json,
2801
+ LastModifiedBy: __expectString,
2802
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2803
+ Name: __expectString,
2804
+ PathOptions: _json,
2805
+ ResourceArn: __expectString,
2806
+ Source: __expectString,
2807
+ Tags: _json,
2808
+ });
2809
+ };
2810
+ const de_DatasetList = (output, context) => {
2811
+ const retVal = (output || [])
3003
2812
  .filter((e) => e != null)
3004
2813
  .map((entry) => {
3005
- return entry;
2814
+ return de_Dataset(entry, context);
3006
2815
  });
2816
+ return retVal;
3007
2817
  };
3008
- const se_ColumnSelector = (input, context) => {
3009
- return {
3010
- ...(input.Name != null && { Name: input.Name }),
3011
- ...(input.Regex != null && { Regex: input.Regex }),
3012
- };
2818
+ const de_Job = (output, context) => {
2819
+ return take(output, {
2820
+ AccountId: __expectString,
2821
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2822
+ CreatedBy: __expectString,
2823
+ DataCatalogOutputs: _json,
2824
+ DatabaseOutputs: _json,
2825
+ DatasetName: __expectString,
2826
+ EncryptionKeyArn: __expectString,
2827
+ EncryptionMode: __expectString,
2828
+ JobSample: _json,
2829
+ LastModifiedBy: __expectString,
2830
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2831
+ LogSubscription: __expectString,
2832
+ MaxCapacity: __expectInt32,
2833
+ MaxRetries: __expectInt32,
2834
+ Name: __expectString,
2835
+ Outputs: _json,
2836
+ ProjectName: __expectString,
2837
+ RecipeReference: _json,
2838
+ ResourceArn: __expectString,
2839
+ RoleArn: __expectString,
2840
+ Tags: _json,
2841
+ Timeout: __expectInt32,
2842
+ Type: __expectString,
2843
+ ValidationConfigurations: _json,
2844
+ });
3013
2845
  };
3014
- const se_ColumnSelectorList = (input, context) => {
3015
- return input
2846
+ const de_JobList = (output, context) => {
2847
+ const retVal = (output || [])
3016
2848
  .filter((e) => e != null)
3017
2849
  .map((entry) => {
3018
- return se_ColumnSelector(entry, context);
2850
+ return de_Job(entry, context);
3019
2851
  });
2852
+ return retVal;
3020
2853
  };
3021
- const se_ColumnStatisticsConfiguration = (input, context) => {
3022
- return {
3023
- ...(input.Selectors != null && { Selectors: se_ColumnSelectorList(input.Selectors, context) }),
3024
- ...(input.Statistics != null && { Statistics: se_StatisticsConfiguration(input.Statistics, context) }),
3025
- };
2854
+ const de_JobRun = (output, context) => {
2855
+ return take(output, {
2856
+ Attempt: __expectInt32,
2857
+ CompletedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2858
+ DataCatalogOutputs: _json,
2859
+ DatabaseOutputs: _json,
2860
+ DatasetName: __expectString,
2861
+ ErrorMessage: __expectString,
2862
+ ExecutionTime: __expectInt32,
2863
+ JobName: __expectString,
2864
+ JobSample: _json,
2865
+ LogGroupName: __expectString,
2866
+ LogSubscription: __expectString,
2867
+ Outputs: _json,
2868
+ RecipeReference: _json,
2869
+ RunId: __expectString,
2870
+ StartedBy: __expectString,
2871
+ StartedOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2872
+ State: __expectString,
2873
+ ValidationConfigurations: _json,
2874
+ });
3026
2875
  };
3027
- const se_ColumnStatisticsConfigurationList = (input, context) => {
3028
- return input
2876
+ const de_JobRunList = (output, context) => {
2877
+ const retVal = (output || [])
3029
2878
  .filter((e) => e != null)
3030
2879
  .map((entry) => {
3031
- return se_ColumnStatisticsConfiguration(entry, context);
2880
+ return de_JobRun(entry, context);
3032
2881
  });
2882
+ return retVal;
3033
2883
  };
3034
- const se_ConditionExpression = (input, context) => {
3035
- return {
3036
- ...(input.Condition != null && { Condition: input.Condition }),
3037
- ...(input.TargetColumn != null && { TargetColumn: input.TargetColumn }),
3038
- ...(input.Value != null && { Value: input.Value }),
3039
- };
2884
+ const de_Project = (output, context) => {
2885
+ return take(output, {
2886
+ AccountId: __expectString,
2887
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2888
+ CreatedBy: __expectString,
2889
+ DatasetName: __expectString,
2890
+ LastModifiedBy: __expectString,
2891
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2892
+ Name: __expectString,
2893
+ OpenDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2894
+ OpenedBy: __expectString,
2895
+ RecipeName: __expectString,
2896
+ ResourceArn: __expectString,
2897
+ RoleArn: __expectString,
2898
+ Sample: _json,
2899
+ Tags: _json,
2900
+ });
3040
2901
  };
3041
- const se_ConditionExpressionList = (input, context) => {
3042
- return input
2902
+ const de_ProjectList = (output, context) => {
2903
+ const retVal = (output || [])
3043
2904
  .filter((e) => e != null)
3044
2905
  .map((entry) => {
3045
- return se_ConditionExpression(entry, context);
2906
+ return de_Project(entry, context);
3046
2907
  });
3047
- };
3048
- const se_CsvOptions = (input, context) => {
3049
- return {
3050
- ...(input.Delimiter != null && { Delimiter: input.Delimiter }),
3051
- ...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
3052
- };
3053
- };
3054
- const se_CsvOutputOptions = (input, context) => {
3055
- return {
3056
- ...(input.Delimiter != null && { Delimiter: input.Delimiter }),
3057
- };
3058
- };
3059
- const se_DatabaseInputDefinition = (input, context) => {
3060
- return {
3061
- ...(input.DatabaseTableName != null && { DatabaseTableName: input.DatabaseTableName }),
3062
- ...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
3063
- ...(input.QueryString != null && { QueryString: input.QueryString }),
3064
- ...(input.TempDirectory != null && { TempDirectory: se_S3Location(input.TempDirectory, context) }),
3065
- };
3066
- };
3067
- const se_DatabaseOutput = (input, context) => {
3068
- return {
3069
- ...(input.DatabaseOptions != null && {
3070
- DatabaseOptions: se_DatabaseTableOutputOptions(input.DatabaseOptions, context),
3071
- }),
3072
- ...(input.DatabaseOutputMode != null && { DatabaseOutputMode: input.DatabaseOutputMode }),
3073
- ...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
3074
- };
3075
- };
3076
- const se_DatabaseOutputList = (input, context) => {
3077
- return input
3078
- .filter((e) => e != null)
3079
- .map((entry) => {
3080
- return se_DatabaseOutput(entry, context);
3081
- });
3082
- };
3083
- const se_DatabaseTableOutputOptions = (input, context) => {
3084
- return {
3085
- ...(input.TableName != null && { TableName: input.TableName }),
3086
- ...(input.TempDirectory != null && { TempDirectory: se_S3Location(input.TempDirectory, context) }),
3087
- };
3088
- };
3089
- const se_DataCatalogInputDefinition = (input, context) => {
3090
- return {
3091
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3092
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3093
- ...(input.TableName != null && { TableName: input.TableName }),
3094
- ...(input.TempDirectory != null && { TempDirectory: se_S3Location(input.TempDirectory, context) }),
3095
- };
3096
- };
3097
- const se_DataCatalogOutput = (input, context) => {
3098
- return {
3099
- ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3100
- ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3101
- ...(input.DatabaseOptions != null && {
3102
- DatabaseOptions: se_DatabaseTableOutputOptions(input.DatabaseOptions, context),
3103
- }),
3104
- ...(input.Overwrite != null && { Overwrite: input.Overwrite }),
3105
- ...(input.S3Options != null && { S3Options: se_S3TableOutputOptions(input.S3Options, context) }),
3106
- ...(input.TableName != null && { TableName: input.TableName }),
3107
- };
3108
- };
3109
- const se_DataCatalogOutputList = (input, context) => {
3110
- return input
3111
- .filter((e) => e != null)
3112
- .map((entry) => {
3113
- return se_DataCatalogOutput(entry, context);
3114
- });
3115
- };
3116
- const se_DatasetParameter = (input, context) => {
3117
- return {
3118
- ...(input.CreateColumn != null && { CreateColumn: input.CreateColumn }),
3119
- ...(input.DatetimeOptions != null && { DatetimeOptions: se_DatetimeOptions(input.DatetimeOptions, context) }),
3120
- ...(input.Filter != null && { Filter: se_FilterExpression(input.Filter, context) }),
3121
- ...(input.Name != null && { Name: input.Name }),
3122
- ...(input.Type != null && { Type: input.Type }),
3123
- };
3124
- };
3125
- const se_DatetimeOptions = (input, context) => {
3126
- return {
3127
- ...(input.Format != null && { Format: input.Format }),
3128
- ...(input.LocaleCode != null && { LocaleCode: input.LocaleCode }),
3129
- ...(input.TimezoneOffset != null && { TimezoneOffset: input.TimezoneOffset }),
3130
- };
3131
- };
3132
- const se_EntityDetectorConfiguration = (input, context) => {
3133
- return {
3134
- ...(input.AllowedStatistics != null && {
3135
- AllowedStatistics: se_AllowedStatisticList(input.AllowedStatistics, context),
3136
- }),
3137
- ...(input.EntityTypes != null && { EntityTypes: se_EntityTypeList(input.EntityTypes, context) }),
3138
- };
3139
- };
3140
- const se_EntityTypeList = (input, context) => {
3141
- return input
3142
- .filter((e) => e != null)
3143
- .map((entry) => {
3144
- return entry;
3145
- });
3146
- };
3147
- const se_ExcelOptions = (input, context) => {
3148
- return {
3149
- ...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
3150
- ...(input.SheetIndexes != null && { SheetIndexes: se_SheetIndexList(input.SheetIndexes, context) }),
3151
- ...(input.SheetNames != null && { SheetNames: se_SheetNameList(input.SheetNames, context) }),
3152
- };
3153
- };
3154
- const se_FilesLimit = (input, context) => {
3155
- return {
3156
- ...(input.MaxFiles != null && { MaxFiles: input.MaxFiles }),
3157
- ...(input.Order != null && { Order: input.Order }),
3158
- ...(input.OrderedBy != null && { OrderedBy: input.OrderedBy }),
3159
- };
3160
- };
3161
- const se_FilterExpression = (input, context) => {
3162
- return {
3163
- ...(input.Expression != null && { Expression: input.Expression }),
3164
- ...(input.ValuesMap != null && { ValuesMap: se_ValuesMap(input.ValuesMap, context) }),
3165
- };
3166
- };
3167
- const se_FormatOptions = (input, context) => {
3168
- return {
3169
- ...(input.Csv != null && { Csv: se_CsvOptions(input.Csv, context) }),
3170
- ...(input.Excel != null && { Excel: se_ExcelOptions(input.Excel, context) }),
3171
- ...(input.Json != null && { Json: se_JsonOptions(input.Json, context) }),
3172
- };
3173
- };
3174
- const se_HiddenColumnList = (input, context) => {
3175
- return input
3176
- .filter((e) => e != null)
3177
- .map((entry) => {
3178
- return entry;
3179
- });
3180
- };
3181
- const se_Input = (input, context) => {
3182
- return {
3183
- ...(input.DataCatalogInputDefinition != null && {
3184
- DataCatalogInputDefinition: se_DataCatalogInputDefinition(input.DataCatalogInputDefinition, context),
3185
- }),
3186
- ...(input.DatabaseInputDefinition != null && {
3187
- DatabaseInputDefinition: se_DatabaseInputDefinition(input.DatabaseInputDefinition, context),
3188
- }),
3189
- ...(input.Metadata != null && { Metadata: se_Metadata(input.Metadata, context) }),
3190
- ...(input.S3InputDefinition != null && { S3InputDefinition: se_S3Location(input.S3InputDefinition, context) }),
3191
- };
3192
- };
3193
- const se_JobNameList = (input, context) => {
3194
- return input
3195
- .filter((e) => e != null)
3196
- .map((entry) => {
3197
- return entry;
3198
- });
3199
- };
3200
- const se_JobSample = (input, context) => {
3201
- return {
3202
- ...(input.Mode != null && { Mode: input.Mode }),
3203
- ...(input.Size != null && { Size: input.Size }),
3204
- };
3205
- };
3206
- const se_JsonOptions = (input, context) => {
3207
- return {
3208
- ...(input.MultiLine != null && { MultiLine: input.MultiLine }),
3209
- };
3210
- };
3211
- const se_Metadata = (input, context) => {
3212
- return {
3213
- ...(input.SourceArn != null && { SourceArn: input.SourceArn }),
3214
- };
3215
- };
3216
- const se_Output = (input, context) => {
3217
- return {
3218
- ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
3219
- ...(input.Format != null && { Format: input.Format }),
3220
- ...(input.FormatOptions != null && { FormatOptions: se_OutputFormatOptions(input.FormatOptions, context) }),
3221
- ...(input.Location != null && { Location: se_S3Location(input.Location, context) }),
3222
- ...(input.MaxOutputFiles != null && { MaxOutputFiles: input.MaxOutputFiles }),
3223
- ...(input.Overwrite != null && { Overwrite: input.Overwrite }),
3224
- ...(input.PartitionColumns != null && { PartitionColumns: se_ColumnNameList(input.PartitionColumns, context) }),
3225
- };
3226
- };
3227
- const se_OutputFormatOptions = (input, context) => {
3228
- return {
3229
- ...(input.Csv != null && { Csv: se_CsvOutputOptions(input.Csv, context) }),
3230
- };
3231
- };
3232
- const se_OutputList = (input, context) => {
3233
- return input
3234
- .filter((e) => e != null)
3235
- .map((entry) => {
3236
- return se_Output(entry, context);
3237
- });
3238
- };
3239
- const se_ParameterMap = (input, context) => {
3240
- return Object.entries(input).reduce((acc, [key, value]) => {
3241
- if (value === null) {
3242
- return acc;
3243
- }
3244
- acc[key] = value;
3245
- return acc;
3246
- }, {});
3247
- };
3248
- const se_PathOptions = (input, context) => {
3249
- return {
3250
- ...(input.FilesLimit != null && { FilesLimit: se_FilesLimit(input.FilesLimit, context) }),
3251
- ...(input.LastModifiedDateCondition != null && {
3252
- LastModifiedDateCondition: se_FilterExpression(input.LastModifiedDateCondition, context),
3253
- }),
3254
- ...(input.Parameters != null && { Parameters: se_PathParametersMap(input.Parameters, context) }),
3255
- };
3256
- };
3257
- const se_PathParametersMap = (input, context) => {
3258
- return Object.entries(input).reduce((acc, [key, value]) => {
3259
- if (value === null) {
3260
- return acc;
3261
- }
3262
- acc[key] = se_DatasetParameter(value, context);
3263
- return acc;
3264
- }, {});
3265
- };
3266
- const se_ProfileConfiguration = (input, context) => {
3267
- return {
3268
- ...(input.ColumnStatisticsConfigurations != null && {
3269
- ColumnStatisticsConfigurations: se_ColumnStatisticsConfigurationList(input.ColumnStatisticsConfigurations, context),
3270
- }),
3271
- ...(input.DatasetStatisticsConfiguration != null && {
3272
- DatasetStatisticsConfiguration: se_StatisticsConfiguration(input.DatasetStatisticsConfiguration, context),
3273
- }),
3274
- ...(input.EntityDetectorConfiguration != null && {
3275
- EntityDetectorConfiguration: se_EntityDetectorConfiguration(input.EntityDetectorConfiguration, context),
3276
- }),
3277
- ...(input.ProfileColumns != null && { ProfileColumns: se_ColumnSelectorList(input.ProfileColumns, context) }),
3278
- };
3279
- };
3280
- const se_RecipeAction = (input, context) => {
3281
- return {
3282
- ...(input.Operation != null && { Operation: input.Operation }),
3283
- ...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
3284
- };
3285
- };
3286
- const se_RecipeReference = (input, context) => {
3287
- return {
3288
- ...(input.Name != null && { Name: input.Name }),
3289
- ...(input.RecipeVersion != null && { RecipeVersion: input.RecipeVersion }),
3290
- };
3291
- };
3292
- const se_RecipeStep = (input, context) => {
3293
- return {
3294
- ...(input.Action != null && { Action: se_RecipeAction(input.Action, context) }),
3295
- ...(input.ConditionExpressions != null && {
3296
- ConditionExpressions: se_ConditionExpressionList(input.ConditionExpressions, context),
3297
- }),
3298
- };
3299
- };
3300
- const se_RecipeStepList = (input, context) => {
3301
- return input
3302
- .filter((e) => e != null)
3303
- .map((entry) => {
3304
- return se_RecipeStep(entry, context);
3305
- });
3306
- };
3307
- const se_RecipeVersionList = (input, context) => {
3308
- return input
3309
- .filter((e) => e != null)
3310
- .map((entry) => {
3311
- return entry;
3312
- });
3313
- };
3314
- const se_Rule = (input, context) => {
3315
- return {
3316
- ...(input.CheckExpression != null && { CheckExpression: input.CheckExpression }),
3317
- ...(input.ColumnSelectors != null && { ColumnSelectors: se_ColumnSelectorList(input.ColumnSelectors, context) }),
3318
- ...(input.Disabled != null && { Disabled: input.Disabled }),
3319
- ...(input.Name != null && { Name: input.Name }),
3320
- ...(input.SubstitutionMap != null && { SubstitutionMap: se_ValuesMap(input.SubstitutionMap, context) }),
3321
- ...(input.Threshold != null && { Threshold: se_Threshold(input.Threshold, context) }),
3322
- };
3323
- };
3324
- const se_RuleList = (input, context) => {
3325
- return input
3326
- .filter((e) => e != null)
3327
- .map((entry) => {
3328
- return se_Rule(entry, context);
3329
- });
3330
- };
3331
- const se_S3Location = (input, context) => {
3332
- return {
3333
- ...(input.Bucket != null && { Bucket: input.Bucket }),
3334
- ...(input.BucketOwner != null && { BucketOwner: input.BucketOwner }),
3335
- ...(input.Key != null && { Key: input.Key }),
3336
- };
3337
- };
3338
- const se_S3TableOutputOptions = (input, context) => {
3339
- return {
3340
- ...(input.Location != null && { Location: se_S3Location(input.Location, context) }),
3341
- };
3342
- };
3343
- const se_Sample = (input, context) => {
3344
- return {
3345
- ...(input.Size != null && { Size: input.Size }),
3346
- ...(input.Type != null && { Type: input.Type }),
3347
- };
3348
- };
3349
- const se_SheetIndexList = (input, context) => {
3350
- return input
3351
- .filter((e) => e != null)
3352
- .map((entry) => {
3353
- return entry;
3354
- });
3355
- };
3356
- const se_SheetNameList = (input, context) => {
3357
- return input
3358
- .filter((e) => e != null)
3359
- .map((entry) => {
3360
- return entry;
3361
- });
3362
- };
3363
- const se_StatisticList = (input, context) => {
3364
- return input
3365
- .filter((e) => e != null)
3366
- .map((entry) => {
3367
- return entry;
3368
- });
3369
- };
3370
- const se_StatisticOverride = (input, context) => {
3371
- return {
3372
- ...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
3373
- ...(input.Statistic != null && { Statistic: input.Statistic }),
3374
- };
3375
- };
3376
- const se_StatisticOverrideList = (input, context) => {
3377
- return input
3378
- .filter((e) => e != null)
3379
- .map((entry) => {
3380
- return se_StatisticOverride(entry, context);
3381
- });
3382
- };
3383
- const se_StatisticsConfiguration = (input, context) => {
3384
- return {
3385
- ...(input.IncludedStatistics != null && {
3386
- IncludedStatistics: se_StatisticList(input.IncludedStatistics, context),
3387
- }),
3388
- ...(input.Overrides != null && { Overrides: se_StatisticOverrideList(input.Overrides, context) }),
3389
- };
3390
- };
3391
- const se_TagMap = (input, context) => {
3392
- return Object.entries(input).reduce((acc, [key, value]) => {
3393
- if (value === null) {
3394
- return acc;
3395
- }
3396
- acc[key] = value;
3397
- return acc;
3398
- }, {});
3399
- };
3400
- const se_Threshold = (input, context) => {
3401
- return {
3402
- ...(input.Type != null && { Type: input.Type }),
3403
- ...(input.Unit != null && { Unit: input.Unit }),
3404
- ...(input.Value != null && { Value: __serializeFloat(input.Value) }),
3405
- };
3406
- };
3407
- const se_ValidationConfiguration = (input, context) => {
3408
- return {
3409
- ...(input.RulesetArn != null && { RulesetArn: input.RulesetArn }),
3410
- ...(input.ValidationMode != null && { ValidationMode: input.ValidationMode }),
3411
- };
3412
- };
3413
- const se_ValidationConfigurationList = (input, context) => {
3414
- return input
3415
- .filter((e) => e != null)
3416
- .map((entry) => {
3417
- return se_ValidationConfiguration(entry, context);
3418
- });
3419
- };
3420
- const se_ValuesMap = (input, context) => {
3421
- return Object.entries(input).reduce((acc, [key, value]) => {
3422
- if (value === null) {
3423
- return acc;
3424
- }
3425
- acc[key] = value;
3426
- return acc;
3427
- }, {});
3428
- };
3429
- const se_ViewFrame = (input, context) => {
3430
- return {
3431
- ...(input.Analytics != null && { Analytics: input.Analytics }),
3432
- ...(input.ColumnRange != null && { ColumnRange: input.ColumnRange }),
3433
- ...(input.HiddenColumns != null && { HiddenColumns: se_HiddenColumnList(input.HiddenColumns, context) }),
3434
- ...(input.RowRange != null && { RowRange: input.RowRange }),
3435
- ...(input.StartColumnIndex != null && { StartColumnIndex: input.StartColumnIndex }),
3436
- ...(input.StartRowIndex != null && { StartRowIndex: input.StartRowIndex }),
3437
- };
3438
- };
3439
- const de_AllowedStatisticList = (output, context) => {
3440
- const retVal = (output || [])
3441
- .filter((e) => e != null)
3442
- .map((entry) => {
3443
- if (entry === null) {
3444
- return null;
3445
- }
3446
- return de_AllowedStatistics(entry, context);
3447
- });
3448
- return retVal;
3449
- };
3450
- const de_AllowedStatistics = (output, context) => {
3451
- return {
3452
- Statistics: output.Statistics != null ? de_StatisticList(output.Statistics, context) : undefined,
3453
- };
3454
- };
3455
- const de_ColumnNameList = (output, context) => {
3456
- const retVal = (output || [])
3457
- .filter((e) => e != null)
3458
- .map((entry) => {
3459
- if (entry === null) {
3460
- return null;
3461
- }
3462
- return __expectString(entry);
3463
- });
3464
- return retVal;
3465
- };
3466
- const de_ColumnSelector = (output, context) => {
3467
- return {
3468
- Name: __expectString(output.Name),
3469
- Regex: __expectString(output.Regex),
3470
- };
3471
- };
3472
- const de_ColumnSelectorList = (output, context) => {
3473
- const retVal = (output || [])
3474
- .filter((e) => e != null)
3475
- .map((entry) => {
3476
- if (entry === null) {
3477
- return null;
3478
- }
3479
- return de_ColumnSelector(entry, context);
3480
- });
3481
- return retVal;
3482
- };
3483
- const de_ColumnStatisticsConfiguration = (output, context) => {
3484
- return {
3485
- Selectors: output.Selectors != null ? de_ColumnSelectorList(output.Selectors, context) : undefined,
3486
- Statistics: output.Statistics != null ? de_StatisticsConfiguration(output.Statistics, context) : undefined,
3487
- };
3488
- };
3489
- const de_ColumnStatisticsConfigurationList = (output, context) => {
3490
- const retVal = (output || [])
3491
- .filter((e) => e != null)
3492
- .map((entry) => {
3493
- if (entry === null) {
3494
- return null;
3495
- }
3496
- return de_ColumnStatisticsConfiguration(entry, context);
3497
- });
3498
- return retVal;
3499
- };
3500
- const de_ConditionExpression = (output, context) => {
3501
- return {
3502
- Condition: __expectString(output.Condition),
3503
- TargetColumn: __expectString(output.TargetColumn),
3504
- Value: __expectString(output.Value),
3505
- };
3506
- };
3507
- const de_ConditionExpressionList = (output, context) => {
3508
- const retVal = (output || [])
3509
- .filter((e) => e != null)
3510
- .map((entry) => {
3511
- if (entry === null) {
3512
- return null;
3513
- }
3514
- return de_ConditionExpression(entry, context);
3515
- });
3516
- return retVal;
3517
- };
3518
- const de_CsvOptions = (output, context) => {
3519
- return {
3520
- Delimiter: __expectString(output.Delimiter),
3521
- HeaderRow: __expectBoolean(output.HeaderRow),
3522
- };
3523
- };
3524
- const de_CsvOutputOptions = (output, context) => {
3525
- return {
3526
- Delimiter: __expectString(output.Delimiter),
3527
- };
3528
- };
3529
- const de_DatabaseInputDefinition = (output, context) => {
3530
- return {
3531
- DatabaseTableName: __expectString(output.DatabaseTableName),
3532
- GlueConnectionName: __expectString(output.GlueConnectionName),
3533
- QueryString: __expectString(output.QueryString),
3534
- TempDirectory: output.TempDirectory != null ? de_S3Location(output.TempDirectory, context) : undefined,
3535
- };
3536
- };
3537
- const de_DatabaseOutput = (output, context) => {
3538
- return {
3539
- DatabaseOptions: output.DatabaseOptions != null ? de_DatabaseTableOutputOptions(output.DatabaseOptions, context) : undefined,
3540
- DatabaseOutputMode: __expectString(output.DatabaseOutputMode),
3541
- GlueConnectionName: __expectString(output.GlueConnectionName),
3542
- };
3543
- };
3544
- const de_DatabaseOutputList = (output, context) => {
3545
- const retVal = (output || [])
3546
- .filter((e) => e != null)
3547
- .map((entry) => {
3548
- if (entry === null) {
3549
- return null;
3550
- }
3551
- return de_DatabaseOutput(entry, context);
3552
- });
3553
- return retVal;
3554
- };
3555
- const de_DatabaseTableOutputOptions = (output, context) => {
3556
- return {
3557
- TableName: __expectString(output.TableName),
3558
- TempDirectory: output.TempDirectory != null ? de_S3Location(output.TempDirectory, context) : undefined,
3559
- };
3560
- };
3561
- const de_DataCatalogInputDefinition = (output, context) => {
3562
- return {
3563
- CatalogId: __expectString(output.CatalogId),
3564
- DatabaseName: __expectString(output.DatabaseName),
3565
- TableName: __expectString(output.TableName),
3566
- TempDirectory: output.TempDirectory != null ? de_S3Location(output.TempDirectory, context) : undefined,
3567
- };
3568
- };
3569
- const de_DataCatalogOutput = (output, context) => {
3570
- return {
3571
- CatalogId: __expectString(output.CatalogId),
3572
- DatabaseName: __expectString(output.DatabaseName),
3573
- DatabaseOptions: output.DatabaseOptions != null ? de_DatabaseTableOutputOptions(output.DatabaseOptions, context) : undefined,
3574
- Overwrite: __expectBoolean(output.Overwrite),
3575
- S3Options: output.S3Options != null ? de_S3TableOutputOptions(output.S3Options, context) : undefined,
3576
- TableName: __expectString(output.TableName),
3577
- };
3578
- };
3579
- const de_DataCatalogOutputList = (output, context) => {
3580
- const retVal = (output || [])
3581
- .filter((e) => e != null)
3582
- .map((entry) => {
3583
- if (entry === null) {
3584
- return null;
3585
- }
3586
- return de_DataCatalogOutput(entry, context);
3587
- });
3588
- return retVal;
3589
- };
3590
- const de_Dataset = (output, context) => {
3591
- return {
3592
- AccountId: __expectString(output.AccountId),
3593
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
3594
- CreatedBy: __expectString(output.CreatedBy),
3595
- Format: __expectString(output.Format),
3596
- FormatOptions: output.FormatOptions != null ? de_FormatOptions(output.FormatOptions, context) : undefined,
3597
- Input: output.Input != null ? de_Input(output.Input, context) : undefined,
3598
- LastModifiedBy: __expectString(output.LastModifiedBy),
3599
- LastModifiedDate: output.LastModifiedDate != null
3600
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
3601
- : undefined,
3602
- Name: __expectString(output.Name),
3603
- PathOptions: output.PathOptions != null ? de_PathOptions(output.PathOptions, context) : undefined,
3604
- ResourceArn: __expectString(output.ResourceArn),
3605
- Source: __expectString(output.Source),
3606
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
3607
- };
3608
- };
3609
- const de_DatasetList = (output, context) => {
3610
- const retVal = (output || [])
3611
- .filter((e) => e != null)
3612
- .map((entry) => {
3613
- if (entry === null) {
3614
- return null;
3615
- }
3616
- return de_Dataset(entry, context);
3617
- });
3618
- return retVal;
3619
- };
3620
- const de_DatasetParameter = (output, context) => {
3621
- return {
3622
- CreateColumn: __expectBoolean(output.CreateColumn),
3623
- DatetimeOptions: output.DatetimeOptions != null ? de_DatetimeOptions(output.DatetimeOptions, context) : undefined,
3624
- Filter: output.Filter != null ? de_FilterExpression(output.Filter, context) : undefined,
3625
- Name: __expectString(output.Name),
3626
- Type: __expectString(output.Type),
3627
- };
3628
- };
3629
- const de_DatetimeOptions = (output, context) => {
3630
- return {
3631
- Format: __expectString(output.Format),
3632
- LocaleCode: __expectString(output.LocaleCode),
3633
- TimezoneOffset: __expectString(output.TimezoneOffset),
3634
- };
3635
- };
3636
- const de_EntityDetectorConfiguration = (output, context) => {
3637
- return {
3638
- AllowedStatistics: output.AllowedStatistics != null ? de_AllowedStatisticList(output.AllowedStatistics, context) : undefined,
3639
- EntityTypes: output.EntityTypes != null ? de_EntityTypeList(output.EntityTypes, context) : undefined,
3640
- };
3641
- };
3642
- const de_EntityTypeList = (output, context) => {
3643
- const retVal = (output || [])
3644
- .filter((e) => e != null)
3645
- .map((entry) => {
3646
- if (entry === null) {
3647
- return null;
3648
- }
3649
- return __expectString(entry);
3650
- });
3651
- return retVal;
3652
- };
3653
- const de_ExcelOptions = (output, context) => {
3654
- return {
3655
- HeaderRow: __expectBoolean(output.HeaderRow),
3656
- SheetIndexes: output.SheetIndexes != null ? de_SheetIndexList(output.SheetIndexes, context) : undefined,
3657
- SheetNames: output.SheetNames != null ? de_SheetNameList(output.SheetNames, context) : undefined,
3658
- };
3659
- };
3660
- const de_FilesLimit = (output, context) => {
3661
- return {
3662
- MaxFiles: __expectInt32(output.MaxFiles),
3663
- Order: __expectString(output.Order),
3664
- OrderedBy: __expectString(output.OrderedBy),
3665
- };
3666
- };
3667
- const de_FilterExpression = (output, context) => {
3668
- return {
3669
- Expression: __expectString(output.Expression),
3670
- ValuesMap: output.ValuesMap != null ? de_ValuesMap(output.ValuesMap, context) : undefined,
3671
- };
3672
- };
3673
- const de_FormatOptions = (output, context) => {
3674
- return {
3675
- Csv: output.Csv != null ? de_CsvOptions(output.Csv, context) : undefined,
3676
- Excel: output.Excel != null ? de_ExcelOptions(output.Excel, context) : undefined,
3677
- Json: output.Json != null ? de_JsonOptions(output.Json, context) : undefined,
3678
- };
3679
- };
3680
- const de_Input = (output, context) => {
3681
- return {
3682
- DataCatalogInputDefinition: output.DataCatalogInputDefinition != null
3683
- ? de_DataCatalogInputDefinition(output.DataCatalogInputDefinition, context)
3684
- : undefined,
3685
- DatabaseInputDefinition: output.DatabaseInputDefinition != null
3686
- ? de_DatabaseInputDefinition(output.DatabaseInputDefinition, context)
3687
- : undefined,
3688
- Metadata: output.Metadata != null ? de_Metadata(output.Metadata, context) : undefined,
3689
- S3InputDefinition: output.S3InputDefinition != null ? de_S3Location(output.S3InputDefinition, context) : undefined,
3690
- };
3691
- };
3692
- const de_Job = (output, context) => {
3693
- return {
3694
- AccountId: __expectString(output.AccountId),
3695
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
3696
- CreatedBy: __expectString(output.CreatedBy),
3697
- DataCatalogOutputs: output.DataCatalogOutputs != null ? de_DataCatalogOutputList(output.DataCatalogOutputs, context) : undefined,
3698
- DatabaseOutputs: output.DatabaseOutputs != null ? de_DatabaseOutputList(output.DatabaseOutputs, context) : undefined,
3699
- DatasetName: __expectString(output.DatasetName),
3700
- EncryptionKeyArn: __expectString(output.EncryptionKeyArn),
3701
- EncryptionMode: __expectString(output.EncryptionMode),
3702
- JobSample: output.JobSample != null ? de_JobSample(output.JobSample, context) : undefined,
3703
- LastModifiedBy: __expectString(output.LastModifiedBy),
3704
- LastModifiedDate: output.LastModifiedDate != null
3705
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
3706
- : undefined,
3707
- LogSubscription: __expectString(output.LogSubscription),
3708
- MaxCapacity: __expectInt32(output.MaxCapacity),
3709
- MaxRetries: __expectInt32(output.MaxRetries),
3710
- Name: __expectString(output.Name),
3711
- Outputs: output.Outputs != null ? de_OutputList(output.Outputs, context) : undefined,
3712
- ProjectName: __expectString(output.ProjectName),
3713
- RecipeReference: output.RecipeReference != null ? de_RecipeReference(output.RecipeReference, context) : undefined,
3714
- ResourceArn: __expectString(output.ResourceArn),
3715
- RoleArn: __expectString(output.RoleArn),
3716
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
3717
- Timeout: __expectInt32(output.Timeout),
3718
- Type: __expectString(output.Type),
3719
- ValidationConfigurations: output.ValidationConfigurations != null
3720
- ? de_ValidationConfigurationList(output.ValidationConfigurations, context)
3721
- : undefined,
3722
- };
3723
- };
3724
- const de_JobList = (output, context) => {
3725
- const retVal = (output || [])
3726
- .filter((e) => e != null)
3727
- .map((entry) => {
3728
- if (entry === null) {
3729
- return null;
3730
- }
3731
- return de_Job(entry, context);
3732
- });
3733
- return retVal;
3734
- };
3735
- const de_JobNameList = (output, context) => {
3736
- const retVal = (output || [])
3737
- .filter((e) => e != null)
3738
- .map((entry) => {
3739
- if (entry === null) {
3740
- return null;
3741
- }
3742
- return __expectString(entry);
3743
- });
3744
- return retVal;
3745
- };
3746
- const de_JobRun = (output, context) => {
3747
- return {
3748
- Attempt: __expectInt32(output.Attempt),
3749
- CompletedOn: output.CompletedOn != null
3750
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletedOn)))
3751
- : undefined,
3752
- DataCatalogOutputs: output.DataCatalogOutputs != null ? de_DataCatalogOutputList(output.DataCatalogOutputs, context) : undefined,
3753
- DatabaseOutputs: output.DatabaseOutputs != null ? de_DatabaseOutputList(output.DatabaseOutputs, context) : undefined,
3754
- DatasetName: __expectString(output.DatasetName),
3755
- ErrorMessage: __expectString(output.ErrorMessage),
3756
- ExecutionTime: __expectInt32(output.ExecutionTime),
3757
- JobName: __expectString(output.JobName),
3758
- JobSample: output.JobSample != null ? de_JobSample(output.JobSample, context) : undefined,
3759
- LogGroupName: __expectString(output.LogGroupName),
3760
- LogSubscription: __expectString(output.LogSubscription),
3761
- Outputs: output.Outputs != null ? de_OutputList(output.Outputs, context) : undefined,
3762
- RecipeReference: output.RecipeReference != null ? de_RecipeReference(output.RecipeReference, context) : undefined,
3763
- RunId: __expectString(output.RunId),
3764
- StartedBy: __expectString(output.StartedBy),
3765
- StartedOn: output.StartedOn != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedOn))) : undefined,
3766
- State: __expectString(output.State),
3767
- ValidationConfigurations: output.ValidationConfigurations != null
3768
- ? de_ValidationConfigurationList(output.ValidationConfigurations, context)
3769
- : undefined,
3770
- };
3771
- };
3772
- const de_JobRunList = (output, context) => {
3773
- const retVal = (output || [])
3774
- .filter((e) => e != null)
3775
- .map((entry) => {
3776
- if (entry === null) {
3777
- return null;
3778
- }
3779
- return de_JobRun(entry, context);
3780
- });
3781
- return retVal;
3782
- };
3783
- const de_JobSample = (output, context) => {
3784
- return {
3785
- Mode: __expectString(output.Mode),
3786
- Size: __expectLong(output.Size),
3787
- };
3788
- };
3789
- const de_JsonOptions = (output, context) => {
3790
- return {
3791
- MultiLine: __expectBoolean(output.MultiLine),
3792
- };
3793
- };
3794
- const de_Metadata = (output, context) => {
3795
- return {
3796
- SourceArn: __expectString(output.SourceArn),
3797
- };
3798
- };
3799
- const de_Output = (output, context) => {
3800
- return {
3801
- CompressionFormat: __expectString(output.CompressionFormat),
3802
- Format: __expectString(output.Format),
3803
- FormatOptions: output.FormatOptions != null ? de_OutputFormatOptions(output.FormatOptions, context) : undefined,
3804
- Location: output.Location != null ? de_S3Location(output.Location, context) : undefined,
3805
- MaxOutputFiles: __expectInt32(output.MaxOutputFiles),
3806
- Overwrite: __expectBoolean(output.Overwrite),
3807
- PartitionColumns: output.PartitionColumns != null ? de_ColumnNameList(output.PartitionColumns, context) : undefined,
3808
- };
3809
- };
3810
- const de_OutputFormatOptions = (output, context) => {
3811
- return {
3812
- Csv: output.Csv != null ? de_CsvOutputOptions(output.Csv, context) : undefined,
3813
- };
3814
- };
3815
- const de_OutputList = (output, context) => {
3816
- const retVal = (output || [])
3817
- .filter((e) => e != null)
3818
- .map((entry) => {
3819
- if (entry === null) {
3820
- return null;
3821
- }
3822
- return de_Output(entry, context);
3823
- });
3824
- return retVal;
3825
- };
3826
- const de_ParameterMap = (output, context) => {
3827
- return Object.entries(output).reduce((acc, [key, value]) => {
3828
- if (value === null) {
3829
- return acc;
3830
- }
3831
- acc[key] = __expectString(value);
3832
- return acc;
3833
- }, {});
3834
- };
3835
- const de_PathOptions = (output, context) => {
3836
- return {
3837
- FilesLimit: output.FilesLimit != null ? de_FilesLimit(output.FilesLimit, context) : undefined,
3838
- LastModifiedDateCondition: output.LastModifiedDateCondition != null
3839
- ? de_FilterExpression(output.LastModifiedDateCondition, context)
3840
- : undefined,
3841
- Parameters: output.Parameters != null ? de_PathParametersMap(output.Parameters, context) : undefined,
3842
- };
3843
- };
3844
- const de_PathParametersMap = (output, context) => {
3845
- return Object.entries(output).reduce((acc, [key, value]) => {
3846
- if (value === null) {
3847
- return acc;
3848
- }
3849
- acc[key] = de_DatasetParameter(value, context);
3850
- return acc;
3851
- }, {});
3852
- };
3853
- const de_ProfileConfiguration = (output, context) => {
3854
- return {
3855
- ColumnStatisticsConfigurations: output.ColumnStatisticsConfigurations != null
3856
- ? de_ColumnStatisticsConfigurationList(output.ColumnStatisticsConfigurations, context)
3857
- : undefined,
3858
- DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration != null
3859
- ? de_StatisticsConfiguration(output.DatasetStatisticsConfiguration, context)
3860
- : undefined,
3861
- EntityDetectorConfiguration: output.EntityDetectorConfiguration != null
3862
- ? de_EntityDetectorConfiguration(output.EntityDetectorConfiguration, context)
3863
- : undefined,
3864
- ProfileColumns: output.ProfileColumns != null ? de_ColumnSelectorList(output.ProfileColumns, context) : undefined,
3865
- };
3866
- };
3867
- const de_Project = (output, context) => {
3868
- return {
3869
- AccountId: __expectString(output.AccountId),
3870
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
3871
- CreatedBy: __expectString(output.CreatedBy),
3872
- DatasetName: __expectString(output.DatasetName),
3873
- LastModifiedBy: __expectString(output.LastModifiedBy),
3874
- LastModifiedDate: output.LastModifiedDate != null
3875
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
3876
- : undefined,
3877
- Name: __expectString(output.Name),
3878
- OpenDate: output.OpenDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OpenDate))) : undefined,
3879
- OpenedBy: __expectString(output.OpenedBy),
3880
- RecipeName: __expectString(output.RecipeName),
3881
- ResourceArn: __expectString(output.ResourceArn),
3882
- RoleArn: __expectString(output.RoleArn),
3883
- Sample: output.Sample != null ? de_Sample(output.Sample, context) : undefined,
3884
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
3885
- };
3886
- };
3887
- const de_ProjectList = (output, context) => {
3888
- const retVal = (output || [])
3889
- .filter((e) => e != null)
3890
- .map((entry) => {
3891
- if (entry === null) {
3892
- return null;
3893
- }
3894
- return de_Project(entry, context);
3895
- });
3896
- return retVal;
2908
+ return retVal;
3897
2909
  };
3898
2910
  const de_Recipe = (output, context) => {
3899
- return {
3900
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
3901
- CreatedBy: __expectString(output.CreatedBy),
3902
- Description: __expectString(output.Description),
3903
- LastModifiedBy: __expectString(output.LastModifiedBy),
3904
- LastModifiedDate: output.LastModifiedDate != null
3905
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
3906
- : undefined,
3907
- Name: __expectString(output.Name),
3908
- ProjectName: __expectString(output.ProjectName),
3909
- PublishedBy: __expectString(output.PublishedBy),
3910
- PublishedDate: output.PublishedDate != null
3911
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PublishedDate)))
3912
- : undefined,
3913
- RecipeVersion: __expectString(output.RecipeVersion),
3914
- ResourceArn: __expectString(output.ResourceArn),
3915
- Steps: output.Steps != null ? de_RecipeStepList(output.Steps, context) : undefined,
3916
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
3917
- };
3918
- };
3919
- const de_RecipeAction = (output, context) => {
3920
- return {
3921
- Operation: __expectString(output.Operation),
3922
- Parameters: output.Parameters != null ? de_ParameterMap(output.Parameters, context) : undefined,
3923
- };
3924
- };
3925
- const de_RecipeErrorList = (output, context) => {
3926
- const retVal = (output || [])
3927
- .filter((e) => e != null)
3928
- .map((entry) => {
3929
- if (entry === null) {
3930
- return null;
3931
- }
3932
- return de_RecipeVersionErrorDetail(entry, context);
2911
+ return take(output, {
2912
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2913
+ CreatedBy: __expectString,
2914
+ Description: __expectString,
2915
+ LastModifiedBy: __expectString,
2916
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2917
+ Name: __expectString,
2918
+ ProjectName: __expectString,
2919
+ PublishedBy: __expectString,
2920
+ PublishedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2921
+ RecipeVersion: __expectString,
2922
+ ResourceArn: __expectString,
2923
+ Steps: _json,
2924
+ Tags: _json,
3933
2925
  });
3934
- return retVal;
3935
2926
  };
3936
2927
  const de_RecipeList = (output, context) => {
3937
2928
  const retVal = (output || [])
3938
2929
  .filter((e) => e != null)
3939
2930
  .map((entry) => {
3940
- if (entry === null) {
3941
- return null;
3942
- }
3943
2931
  return de_Recipe(entry, context);
3944
2932
  });
3945
2933
  return retVal;
3946
2934
  };
3947
- const de_RecipeReference = (output, context) => {
3948
- return {
3949
- Name: __expectString(output.Name),
3950
- RecipeVersion: __expectString(output.RecipeVersion),
3951
- };
3952
- };
3953
- const de_RecipeStep = (output, context) => {
3954
- return {
3955
- Action: output.Action != null ? de_RecipeAction(output.Action, context) : undefined,
3956
- ConditionExpressions: output.ConditionExpressions != null
3957
- ? de_ConditionExpressionList(output.ConditionExpressions, context)
3958
- : undefined,
3959
- };
3960
- };
3961
- const de_RecipeStepList = (output, context) => {
3962
- const retVal = (output || [])
3963
- .filter((e) => e != null)
3964
- .map((entry) => {
3965
- if (entry === null) {
3966
- return null;
3967
- }
3968
- return de_RecipeStep(entry, context);
3969
- });
3970
- return retVal;
3971
- };
3972
- const de_RecipeVersionErrorDetail = (output, context) => {
3973
- return {
3974
- ErrorCode: __expectString(output.ErrorCode),
3975
- ErrorMessage: __expectString(output.ErrorMessage),
3976
- RecipeVersion: __expectString(output.RecipeVersion),
3977
- };
3978
- };
3979
2935
  const de_Rule = (output, context) => {
3980
- return {
3981
- CheckExpression: __expectString(output.CheckExpression),
3982
- ColumnSelectors: output.ColumnSelectors != null ? de_ColumnSelectorList(output.ColumnSelectors, context) : undefined,
3983
- Disabled: __expectBoolean(output.Disabled),
3984
- Name: __expectString(output.Name),
3985
- SubstitutionMap: output.SubstitutionMap != null ? de_ValuesMap(output.SubstitutionMap, context) : undefined,
3986
- Threshold: output.Threshold != null ? de_Threshold(output.Threshold, context) : undefined,
3987
- };
2936
+ return take(output, {
2937
+ CheckExpression: __expectString,
2938
+ ColumnSelectors: _json,
2939
+ Disabled: __expectBoolean,
2940
+ Name: __expectString,
2941
+ SubstitutionMap: _json,
2942
+ Threshold: (_) => de_Threshold(_, context),
2943
+ });
3988
2944
  };
3989
2945
  const de_RuleList = (output, context) => {
3990
2946
  const retVal = (output || [])
3991
2947
  .filter((e) => e != null)
3992
2948
  .map((entry) => {
3993
- if (entry === null) {
3994
- return null;
3995
- }
3996
2949
  return de_Rule(entry, context);
3997
2950
  });
3998
2951
  return retVal;
3999
2952
  };
4000
2953
  const de_RulesetItem = (output, context) => {
4001
- return {
4002
- AccountId: __expectString(output.AccountId),
4003
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
4004
- CreatedBy: __expectString(output.CreatedBy),
4005
- Description: __expectString(output.Description),
4006
- LastModifiedBy: __expectString(output.LastModifiedBy),
4007
- LastModifiedDate: output.LastModifiedDate != null
4008
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
4009
- : undefined,
4010
- Name: __expectString(output.Name),
4011
- ResourceArn: __expectString(output.ResourceArn),
4012
- RuleCount: __expectInt32(output.RuleCount),
4013
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
4014
- TargetArn: __expectString(output.TargetArn),
4015
- };
2954
+ return take(output, {
2955
+ AccountId: __expectString,
2956
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2957
+ CreatedBy: __expectString,
2958
+ Description: __expectString,
2959
+ LastModifiedBy: __expectString,
2960
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2961
+ Name: __expectString,
2962
+ ResourceArn: __expectString,
2963
+ RuleCount: __expectInt32,
2964
+ Tags: _json,
2965
+ TargetArn: __expectString,
2966
+ });
4016
2967
  };
4017
2968
  const de_RulesetItemList = (output, context) => {
4018
2969
  const retVal = (output || [])
4019
2970
  .filter((e) => e != null)
4020
2971
  .map((entry) => {
4021
- if (entry === null) {
4022
- return null;
4023
- }
4024
2972
  return de_RulesetItem(entry, context);
4025
2973
  });
4026
2974
  return retVal;
4027
2975
  };
4028
- const de_S3Location = (output, context) => {
4029
- return {
4030
- Bucket: __expectString(output.Bucket),
4031
- BucketOwner: __expectString(output.BucketOwner),
4032
- Key: __expectString(output.Key),
4033
- };
4034
- };
4035
- const de_S3TableOutputOptions = (output, context) => {
4036
- return {
4037
- Location: output.Location != null ? de_S3Location(output.Location, context) : undefined,
4038
- };
4039
- };
4040
- const de_Sample = (output, context) => {
4041
- return {
4042
- Size: __expectInt32(output.Size),
4043
- Type: __expectString(output.Type),
4044
- };
4045
- };
4046
2976
  const de_Schedule = (output, context) => {
4047
- return {
4048
- AccountId: __expectString(output.AccountId),
4049
- CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
4050
- CreatedBy: __expectString(output.CreatedBy),
4051
- CronExpression: __expectString(output.CronExpression),
4052
- JobNames: output.JobNames != null ? de_JobNameList(output.JobNames, context) : undefined,
4053
- LastModifiedBy: __expectString(output.LastModifiedBy),
4054
- LastModifiedDate: output.LastModifiedDate != null
4055
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
4056
- : undefined,
4057
- Name: __expectString(output.Name),
4058
- ResourceArn: __expectString(output.ResourceArn),
4059
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
4060
- };
2977
+ return take(output, {
2978
+ AccountId: __expectString,
2979
+ CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2980
+ CreatedBy: __expectString,
2981
+ CronExpression: __expectString,
2982
+ JobNames: _json,
2983
+ LastModifiedBy: __expectString,
2984
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2985
+ Name: __expectString,
2986
+ ResourceArn: __expectString,
2987
+ Tags: _json,
2988
+ });
4061
2989
  };
4062
2990
  const de_ScheduleList = (output, context) => {
4063
2991
  const retVal = (output || [])
4064
2992
  .filter((e) => e != null)
4065
2993
  .map((entry) => {
4066
- if (entry === null) {
4067
- return null;
4068
- }
4069
2994
  return de_Schedule(entry, context);
4070
2995
  });
4071
2996
  return retVal;
4072
2997
  };
4073
- const de_SheetIndexList = (output, context) => {
4074
- const retVal = (output || [])
4075
- .filter((e) => e != null)
4076
- .map((entry) => {
4077
- if (entry === null) {
4078
- return null;
4079
- }
4080
- return __expectInt32(entry);
4081
- });
4082
- return retVal;
4083
- };
4084
- const de_SheetNameList = (output, context) => {
4085
- const retVal = (output || [])
4086
- .filter((e) => e != null)
4087
- .map((entry) => {
4088
- if (entry === null) {
4089
- return null;
4090
- }
4091
- return __expectString(entry);
4092
- });
4093
- return retVal;
4094
- };
4095
- const de_StatisticList = (output, context) => {
4096
- const retVal = (output || [])
4097
- .filter((e) => e != null)
4098
- .map((entry) => {
4099
- if (entry === null) {
4100
- return null;
4101
- }
4102
- return __expectString(entry);
4103
- });
4104
- return retVal;
4105
- };
4106
- const de_StatisticOverride = (output, context) => {
4107
- return {
4108
- Parameters: output.Parameters != null ? de_ParameterMap(output.Parameters, context) : undefined,
4109
- Statistic: __expectString(output.Statistic),
4110
- };
4111
- };
4112
- const de_StatisticOverrideList = (output, context) => {
4113
- const retVal = (output || [])
4114
- .filter((e) => e != null)
4115
- .map((entry) => {
4116
- if (entry === null) {
4117
- return null;
4118
- }
4119
- return de_StatisticOverride(entry, context);
4120
- });
4121
- return retVal;
4122
- };
4123
- const de_StatisticsConfiguration = (output, context) => {
4124
- return {
4125
- IncludedStatistics: output.IncludedStatistics != null ? de_StatisticList(output.IncludedStatistics, context) : undefined,
4126
- Overrides: output.Overrides != null ? de_StatisticOverrideList(output.Overrides, context) : undefined,
4127
- };
4128
- };
4129
- const de_TagMap = (output, context) => {
4130
- return Object.entries(output).reduce((acc, [key, value]) => {
4131
- if (value === null) {
4132
- return acc;
4133
- }
4134
- acc[key] = __expectString(value);
4135
- return acc;
4136
- }, {});
4137
- };
4138
2998
  const de_Threshold = (output, context) => {
4139
- return {
4140
- Type: __expectString(output.Type),
4141
- Unit: __expectString(output.Unit),
4142
- Value: __limitedParseDouble(output.Value),
4143
- };
4144
- };
4145
- const de_ValidationConfiguration = (output, context) => {
4146
- return {
4147
- RulesetArn: __expectString(output.RulesetArn),
4148
- ValidationMode: __expectString(output.ValidationMode),
4149
- };
4150
- };
4151
- const de_ValidationConfigurationList = (output, context) => {
4152
- const retVal = (output || [])
4153
- .filter((e) => e != null)
4154
- .map((entry) => {
4155
- if (entry === null) {
4156
- return null;
4157
- }
4158
- return de_ValidationConfiguration(entry, context);
2999
+ return take(output, {
3000
+ Type: __expectString,
3001
+ Unit: __expectString,
3002
+ Value: __limitedParseDouble,
4159
3003
  });
4160
- return retVal;
4161
- };
4162
- const de_ValuesMap = (output, context) => {
4163
- return Object.entries(output).reduce((acc, [key, value]) => {
4164
- if (value === null) {
4165
- return acc;
4166
- }
4167
- acc[key] = __expectString(value);
4168
- return acc;
4169
- }, {});
4170
3004
  };
4171
3005
  const deserializeMetadata = (output) => ({
4172
3006
  httpStatusCode: output.statusCode,