@aws-sdk/client-personalize 3.493.0 → 3.496.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.
Files changed (97) hide show
  1. package/dist-cjs/Personalize.js +1 -145
  2. package/dist-cjs/PersonalizeClient.js +1 -43
  3. package/dist-cjs/commands/CreateBatchInferenceJobCommand.js +1 -28
  4. package/dist-cjs/commands/CreateBatchSegmentJobCommand.js +1 -28
  5. package/dist-cjs/commands/CreateCampaignCommand.js +1 -28
  6. package/dist-cjs/commands/CreateDatasetCommand.js +1 -28
  7. package/dist-cjs/commands/CreateDatasetExportJobCommand.js +1 -28
  8. package/dist-cjs/commands/CreateDatasetGroupCommand.js +1 -28
  9. package/dist-cjs/commands/CreateDatasetImportJobCommand.js +1 -28
  10. package/dist-cjs/commands/CreateEventTrackerCommand.js +1 -28
  11. package/dist-cjs/commands/CreateFilterCommand.js +1 -29
  12. package/dist-cjs/commands/CreateMetricAttributionCommand.js +1 -28
  13. package/dist-cjs/commands/CreateRecommenderCommand.js +1 -28
  14. package/dist-cjs/commands/CreateSchemaCommand.js +1 -28
  15. package/dist-cjs/commands/CreateSolutionCommand.js +1 -28
  16. package/dist-cjs/commands/CreateSolutionVersionCommand.js +1 -28
  17. package/dist-cjs/commands/DeleteCampaignCommand.js +1 -28
  18. package/dist-cjs/commands/DeleteDatasetCommand.js +1 -28
  19. package/dist-cjs/commands/DeleteDatasetGroupCommand.js +1 -28
  20. package/dist-cjs/commands/DeleteEventTrackerCommand.js +1 -28
  21. package/dist-cjs/commands/DeleteFilterCommand.js +1 -28
  22. package/dist-cjs/commands/DeleteMetricAttributionCommand.js +1 -28
  23. package/dist-cjs/commands/DeleteRecommenderCommand.js +1 -28
  24. package/dist-cjs/commands/DeleteSchemaCommand.js +1 -28
  25. package/dist-cjs/commands/DeleteSolutionCommand.js +1 -28
  26. package/dist-cjs/commands/DescribeAlgorithmCommand.js +1 -28
  27. package/dist-cjs/commands/DescribeBatchInferenceJobCommand.js +1 -28
  28. package/dist-cjs/commands/DescribeBatchSegmentJobCommand.js +1 -28
  29. package/dist-cjs/commands/DescribeCampaignCommand.js +1 -28
  30. package/dist-cjs/commands/DescribeDatasetCommand.js +1 -28
  31. package/dist-cjs/commands/DescribeDatasetExportJobCommand.js +1 -28
  32. package/dist-cjs/commands/DescribeDatasetGroupCommand.js +1 -28
  33. package/dist-cjs/commands/DescribeDatasetImportJobCommand.js +1 -28
  34. package/dist-cjs/commands/DescribeEventTrackerCommand.js +1 -28
  35. package/dist-cjs/commands/DescribeFeatureTransformationCommand.js +1 -28
  36. package/dist-cjs/commands/DescribeFilterCommand.js +1 -29
  37. package/dist-cjs/commands/DescribeMetricAttributionCommand.js +1 -28
  38. package/dist-cjs/commands/DescribeRecipeCommand.js +1 -28
  39. package/dist-cjs/commands/DescribeRecommenderCommand.js +1 -28
  40. package/dist-cjs/commands/DescribeSchemaCommand.js +1 -28
  41. package/dist-cjs/commands/DescribeSolutionCommand.js +1 -28
  42. package/dist-cjs/commands/DescribeSolutionVersionCommand.js +1 -28
  43. package/dist-cjs/commands/GetSolutionMetricsCommand.js +1 -28
  44. package/dist-cjs/commands/ListBatchInferenceJobsCommand.js +1 -28
  45. package/dist-cjs/commands/ListBatchSegmentJobsCommand.js +1 -28
  46. package/dist-cjs/commands/ListCampaignsCommand.js +1 -28
  47. package/dist-cjs/commands/ListDatasetExportJobsCommand.js +1 -28
  48. package/dist-cjs/commands/ListDatasetGroupsCommand.js +1 -28
  49. package/dist-cjs/commands/ListDatasetImportJobsCommand.js +1 -28
  50. package/dist-cjs/commands/ListDatasetsCommand.js +1 -28
  51. package/dist-cjs/commands/ListEventTrackersCommand.js +1 -28
  52. package/dist-cjs/commands/ListFiltersCommand.js +1 -28
  53. package/dist-cjs/commands/ListMetricAttributionMetricsCommand.js +1 -28
  54. package/dist-cjs/commands/ListMetricAttributionsCommand.js +1 -28
  55. package/dist-cjs/commands/ListRecipesCommand.js +1 -28
  56. package/dist-cjs/commands/ListRecommendersCommand.js +1 -28
  57. package/dist-cjs/commands/ListSchemasCommand.js +1 -28
  58. package/dist-cjs/commands/ListSolutionVersionsCommand.js +1 -28
  59. package/dist-cjs/commands/ListSolutionsCommand.js +1 -28
  60. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  61. package/dist-cjs/commands/StartRecommenderCommand.js +1 -28
  62. package/dist-cjs/commands/StopRecommenderCommand.js +1 -28
  63. package/dist-cjs/commands/StopSolutionVersionCreationCommand.js +1 -28
  64. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  65. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  66. package/dist-cjs/commands/UpdateCampaignCommand.js +1 -28
  67. package/dist-cjs/commands/UpdateDatasetCommand.js +1 -28
  68. package/dist-cjs/commands/UpdateMetricAttributionCommand.js +1 -28
  69. package/dist-cjs/commands/UpdateRecommenderCommand.js +1 -28
  70. package/dist-cjs/commands/index.js +1 -70
  71. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  72. package/dist-cjs/extensionConfiguration.js +1 -2
  73. package/dist-cjs/index.js +5704 -11
  74. package/dist-cjs/models/PersonalizeServiceException.js +1 -12
  75. package/dist-cjs/models/index.js +1 -4
  76. package/dist-cjs/models/models_0.js +1 -154
  77. package/dist-cjs/pagination/Interfaces.js +1 -2
  78. package/dist-cjs/pagination/ListBatchInferenceJobsPaginator.js +1 -7
  79. package/dist-cjs/pagination/ListBatchSegmentJobsPaginator.js +1 -7
  80. package/dist-cjs/pagination/ListCampaignsPaginator.js +1 -7
  81. package/dist-cjs/pagination/ListDatasetExportJobsPaginator.js +1 -7
  82. package/dist-cjs/pagination/ListDatasetGroupsPaginator.js +1 -7
  83. package/dist-cjs/pagination/ListDatasetImportJobsPaginator.js +1 -7
  84. package/dist-cjs/pagination/ListDatasetsPaginator.js +1 -7
  85. package/dist-cjs/pagination/ListEventTrackersPaginator.js +1 -7
  86. package/dist-cjs/pagination/ListFiltersPaginator.js +1 -7
  87. package/dist-cjs/pagination/ListMetricAttributionMetricsPaginator.js +1 -7
  88. package/dist-cjs/pagination/ListMetricAttributionsPaginator.js +1 -7
  89. package/dist-cjs/pagination/ListRecipesPaginator.js +1 -7
  90. package/dist-cjs/pagination/ListRecommendersPaginator.js +1 -7
  91. package/dist-cjs/pagination/ListSchemasPaginator.js +1 -7
  92. package/dist-cjs/pagination/ListSolutionVersionsPaginator.js +1 -7
  93. package/dist-cjs/pagination/ListSolutionsPaginator.js +1 -7
  94. package/dist-cjs/pagination/index.js +1 -20
  95. package/dist-cjs/protocols/Aws_json1_1.js +1 -4068
  96. package/dist-cjs/runtimeExtensions.js +1 -22
  97. package/package.json +40 -40
@@ -1,4068 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListFiltersCommand = exports.se_ListEventTrackersCommand = exports.se_ListDatasetsCommand = exports.se_ListDatasetImportJobsCommand = exports.se_ListDatasetGroupsCommand = exports.se_ListDatasetExportJobsCommand = exports.se_ListCampaignsCommand = exports.se_ListBatchSegmentJobsCommand = exports.se_ListBatchInferenceJobsCommand = exports.se_GetSolutionMetricsCommand = exports.se_DescribeSolutionVersionCommand = exports.se_DescribeSolutionCommand = exports.se_DescribeSchemaCommand = exports.se_DescribeRecommenderCommand = exports.se_DescribeRecipeCommand = exports.se_DescribeMetricAttributionCommand = exports.se_DescribeFilterCommand = exports.se_DescribeFeatureTransformationCommand = exports.se_DescribeEventTrackerCommand = exports.se_DescribeDatasetImportJobCommand = exports.se_DescribeDatasetGroupCommand = exports.se_DescribeDatasetExportJobCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeCampaignCommand = exports.se_DescribeBatchSegmentJobCommand = exports.se_DescribeBatchInferenceJobCommand = exports.se_DescribeAlgorithmCommand = exports.se_DeleteSolutionCommand = exports.se_DeleteSchemaCommand = exports.se_DeleteRecommenderCommand = exports.se_DeleteMetricAttributionCommand = exports.se_DeleteFilterCommand = exports.se_DeleteEventTrackerCommand = exports.se_DeleteDatasetGroupCommand = exports.se_DeleteDatasetCommand = exports.se_DeleteCampaignCommand = exports.se_CreateSolutionVersionCommand = exports.se_CreateSolutionCommand = exports.se_CreateSchemaCommand = exports.se_CreateRecommenderCommand = exports.se_CreateMetricAttributionCommand = exports.se_CreateFilterCommand = exports.se_CreateEventTrackerCommand = exports.se_CreateDatasetImportJobCommand = exports.se_CreateDatasetGroupCommand = exports.se_CreateDatasetExportJobCommand = exports.se_CreateDatasetCommand = exports.se_CreateCampaignCommand = exports.se_CreateBatchSegmentJobCommand = exports.se_CreateBatchInferenceJobCommand = void 0;
4
- exports.de_DescribeFeatureTransformationCommand = exports.de_DescribeEventTrackerCommand = exports.de_DescribeDatasetImportJobCommand = exports.de_DescribeDatasetGroupCommand = exports.de_DescribeDatasetExportJobCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeCampaignCommand = exports.de_DescribeBatchSegmentJobCommand = exports.de_DescribeBatchInferenceJobCommand = exports.de_DescribeAlgorithmCommand = exports.de_DeleteSolutionCommand = exports.de_DeleteSchemaCommand = exports.de_DeleteRecommenderCommand = exports.de_DeleteMetricAttributionCommand = exports.de_DeleteFilterCommand = exports.de_DeleteEventTrackerCommand = exports.de_DeleteDatasetGroupCommand = exports.de_DeleteDatasetCommand = exports.de_DeleteCampaignCommand = exports.de_CreateSolutionVersionCommand = exports.de_CreateSolutionCommand = exports.de_CreateSchemaCommand = exports.de_CreateRecommenderCommand = exports.de_CreateMetricAttributionCommand = exports.de_CreateFilterCommand = exports.de_CreateEventTrackerCommand = exports.de_CreateDatasetImportJobCommand = exports.de_CreateDatasetGroupCommand = exports.de_CreateDatasetExportJobCommand = exports.de_CreateDatasetCommand = exports.de_CreateCampaignCommand = exports.de_CreateBatchSegmentJobCommand = exports.de_CreateBatchInferenceJobCommand = exports.se_UpdateRecommenderCommand = exports.se_UpdateMetricAttributionCommand = exports.se_UpdateDatasetCommand = exports.se_UpdateCampaignCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopSolutionVersionCreationCommand = exports.se_StopRecommenderCommand = exports.se_StartRecommenderCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSolutionVersionsCommand = exports.se_ListSolutionsCommand = exports.se_ListSchemasCommand = exports.se_ListRecommendersCommand = exports.se_ListRecipesCommand = exports.se_ListMetricAttributionsCommand = exports.se_ListMetricAttributionMetricsCommand = void 0;
5
- exports.de_UpdateRecommenderCommand = exports.de_UpdateMetricAttributionCommand = exports.de_UpdateDatasetCommand = exports.de_UpdateCampaignCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopSolutionVersionCreationCommand = exports.de_StopRecommenderCommand = exports.de_StartRecommenderCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSolutionVersionsCommand = exports.de_ListSolutionsCommand = exports.de_ListSchemasCommand = exports.de_ListRecommendersCommand = exports.de_ListRecipesCommand = exports.de_ListMetricAttributionsCommand = exports.de_ListMetricAttributionMetricsCommand = exports.de_ListFiltersCommand = exports.de_ListEventTrackersCommand = exports.de_ListDatasetsCommand = exports.de_ListDatasetImportJobsCommand = exports.de_ListDatasetGroupsCommand = exports.de_ListDatasetExportJobsCommand = exports.de_ListCampaignsCommand = exports.de_ListBatchSegmentJobsCommand = exports.de_ListBatchInferenceJobsCommand = exports.de_GetSolutionMetricsCommand = exports.de_DescribeSolutionVersionCommand = exports.de_DescribeSolutionCommand = exports.de_DescribeSchemaCommand = exports.de_DescribeRecommenderCommand = exports.de_DescribeRecipeCommand = exports.de_DescribeMetricAttributionCommand = exports.de_DescribeFilterCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const models_0_1 = require("../models/models_0");
9
- const PersonalizeServiceException_1 = require("../models/PersonalizeServiceException");
10
- const se_CreateBatchInferenceJobCommand = async (input, context) => {
11
- const headers = sharedHeaders("CreateBatchInferenceJob");
12
- let body;
13
- body = JSON.stringify((0, smithy_client_1._json)(input));
14
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
- };
16
- exports.se_CreateBatchInferenceJobCommand = se_CreateBatchInferenceJobCommand;
17
- const se_CreateBatchSegmentJobCommand = async (input, context) => {
18
- const headers = sharedHeaders("CreateBatchSegmentJob");
19
- let body;
20
- body = JSON.stringify((0, smithy_client_1._json)(input));
21
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
- };
23
- exports.se_CreateBatchSegmentJobCommand = se_CreateBatchSegmentJobCommand;
24
- const se_CreateCampaignCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateCampaign");
26
- let body;
27
- body = JSON.stringify((0, smithy_client_1._json)(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
31
- const se_CreateDatasetCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateDataset");
33
- let body;
34
- body = JSON.stringify((0, smithy_client_1._json)(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
38
- const se_CreateDatasetExportJobCommand = async (input, context) => {
39
- const headers = sharedHeaders("CreateDatasetExportJob");
40
- let body;
41
- body = JSON.stringify((0, smithy_client_1._json)(input));
42
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
- };
44
- exports.se_CreateDatasetExportJobCommand = se_CreateDatasetExportJobCommand;
45
- const se_CreateDatasetGroupCommand = async (input, context) => {
46
- const headers = sharedHeaders("CreateDatasetGroup");
47
- let body;
48
- body = JSON.stringify((0, smithy_client_1._json)(input));
49
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
- };
51
- exports.se_CreateDatasetGroupCommand = se_CreateDatasetGroupCommand;
52
- const se_CreateDatasetImportJobCommand = async (input, context) => {
53
- const headers = sharedHeaders("CreateDatasetImportJob");
54
- let body;
55
- body = JSON.stringify((0, smithy_client_1._json)(input));
56
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
- };
58
- exports.se_CreateDatasetImportJobCommand = se_CreateDatasetImportJobCommand;
59
- const se_CreateEventTrackerCommand = async (input, context) => {
60
- const headers = sharedHeaders("CreateEventTracker");
61
- let body;
62
- body = JSON.stringify((0, smithy_client_1._json)(input));
63
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
- };
65
- exports.se_CreateEventTrackerCommand = se_CreateEventTrackerCommand;
66
- const se_CreateFilterCommand = async (input, context) => {
67
- const headers = sharedHeaders("CreateFilter");
68
- let body;
69
- body = JSON.stringify((0, smithy_client_1._json)(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- exports.se_CreateFilterCommand = se_CreateFilterCommand;
73
- const se_CreateMetricAttributionCommand = async (input, context) => {
74
- const headers = sharedHeaders("CreateMetricAttribution");
75
- let body;
76
- body = JSON.stringify((0, smithy_client_1._json)(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- exports.se_CreateMetricAttributionCommand = se_CreateMetricAttributionCommand;
80
- const se_CreateRecommenderCommand = async (input, context) => {
81
- const headers = sharedHeaders("CreateRecommender");
82
- let body;
83
- body = JSON.stringify((0, smithy_client_1._json)(input));
84
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
- };
86
- exports.se_CreateRecommenderCommand = se_CreateRecommenderCommand;
87
- const se_CreateSchemaCommand = async (input, context) => {
88
- const headers = sharedHeaders("CreateSchema");
89
- let body;
90
- body = JSON.stringify((0, smithy_client_1._json)(input));
91
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
- };
93
- exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
94
- const se_CreateSolutionCommand = async (input, context) => {
95
- const headers = sharedHeaders("CreateSolution");
96
- let body;
97
- body = JSON.stringify(se_CreateSolutionRequest(input, context));
98
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
- };
100
- exports.se_CreateSolutionCommand = se_CreateSolutionCommand;
101
- const se_CreateSolutionVersionCommand = async (input, context) => {
102
- const headers = sharedHeaders("CreateSolutionVersion");
103
- let body;
104
- body = JSON.stringify((0, smithy_client_1._json)(input));
105
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
- };
107
- exports.se_CreateSolutionVersionCommand = se_CreateSolutionVersionCommand;
108
- const se_DeleteCampaignCommand = async (input, context) => {
109
- const headers = sharedHeaders("DeleteCampaign");
110
- let body;
111
- body = JSON.stringify((0, smithy_client_1._json)(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
115
- const se_DeleteDatasetCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeleteDataset");
117
- let body;
118
- body = JSON.stringify((0, smithy_client_1._json)(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
122
- const se_DeleteDatasetGroupCommand = async (input, context) => {
123
- const headers = sharedHeaders("DeleteDatasetGroup");
124
- let body;
125
- body = JSON.stringify((0, smithy_client_1._json)(input));
126
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
- };
128
- exports.se_DeleteDatasetGroupCommand = se_DeleteDatasetGroupCommand;
129
- const se_DeleteEventTrackerCommand = async (input, context) => {
130
- const headers = sharedHeaders("DeleteEventTracker");
131
- let body;
132
- body = JSON.stringify((0, smithy_client_1._json)(input));
133
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
- };
135
- exports.se_DeleteEventTrackerCommand = se_DeleteEventTrackerCommand;
136
- const se_DeleteFilterCommand = async (input, context) => {
137
- const headers = sharedHeaders("DeleteFilter");
138
- let body;
139
- body = JSON.stringify((0, smithy_client_1._json)(input));
140
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
- };
142
- exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
143
- const se_DeleteMetricAttributionCommand = async (input, context) => {
144
- const headers = sharedHeaders("DeleteMetricAttribution");
145
- let body;
146
- body = JSON.stringify((0, smithy_client_1._json)(input));
147
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
- };
149
- exports.se_DeleteMetricAttributionCommand = se_DeleteMetricAttributionCommand;
150
- const se_DeleteRecommenderCommand = async (input, context) => {
151
- const headers = sharedHeaders("DeleteRecommender");
152
- let body;
153
- body = JSON.stringify((0, smithy_client_1._json)(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- exports.se_DeleteRecommenderCommand = se_DeleteRecommenderCommand;
157
- const se_DeleteSchemaCommand = async (input, context) => {
158
- const headers = sharedHeaders("DeleteSchema");
159
- let body;
160
- body = JSON.stringify((0, smithy_client_1._json)(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
164
- const se_DeleteSolutionCommand = async (input, context) => {
165
- const headers = sharedHeaders("DeleteSolution");
166
- let body;
167
- body = JSON.stringify((0, smithy_client_1._json)(input));
168
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
- };
170
- exports.se_DeleteSolutionCommand = se_DeleteSolutionCommand;
171
- const se_DescribeAlgorithmCommand = async (input, context) => {
172
- const headers = sharedHeaders("DescribeAlgorithm");
173
- let body;
174
- body = JSON.stringify((0, smithy_client_1._json)(input));
175
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
- };
177
- exports.se_DescribeAlgorithmCommand = se_DescribeAlgorithmCommand;
178
- const se_DescribeBatchInferenceJobCommand = async (input, context) => {
179
- const headers = sharedHeaders("DescribeBatchInferenceJob");
180
- let body;
181
- body = JSON.stringify((0, smithy_client_1._json)(input));
182
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
- };
184
- exports.se_DescribeBatchInferenceJobCommand = se_DescribeBatchInferenceJobCommand;
185
- const se_DescribeBatchSegmentJobCommand = async (input, context) => {
186
- const headers = sharedHeaders("DescribeBatchSegmentJob");
187
- let body;
188
- body = JSON.stringify((0, smithy_client_1._json)(input));
189
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
- };
191
- exports.se_DescribeBatchSegmentJobCommand = se_DescribeBatchSegmentJobCommand;
192
- const se_DescribeCampaignCommand = async (input, context) => {
193
- const headers = sharedHeaders("DescribeCampaign");
194
- let body;
195
- body = JSON.stringify((0, smithy_client_1._json)(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- exports.se_DescribeCampaignCommand = se_DescribeCampaignCommand;
199
- const se_DescribeDatasetCommand = async (input, context) => {
200
- const headers = sharedHeaders("DescribeDataset");
201
- let body;
202
- body = JSON.stringify((0, smithy_client_1._json)(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
206
- const se_DescribeDatasetExportJobCommand = async (input, context) => {
207
- const headers = sharedHeaders("DescribeDatasetExportJob");
208
- let body;
209
- body = JSON.stringify((0, smithy_client_1._json)(input));
210
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
- };
212
- exports.se_DescribeDatasetExportJobCommand = se_DescribeDatasetExportJobCommand;
213
- const se_DescribeDatasetGroupCommand = async (input, context) => {
214
- const headers = sharedHeaders("DescribeDatasetGroup");
215
- let body;
216
- body = JSON.stringify((0, smithy_client_1._json)(input));
217
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
- };
219
- exports.se_DescribeDatasetGroupCommand = se_DescribeDatasetGroupCommand;
220
- const se_DescribeDatasetImportJobCommand = async (input, context) => {
221
- const headers = sharedHeaders("DescribeDatasetImportJob");
222
- let body;
223
- body = JSON.stringify((0, smithy_client_1._json)(input));
224
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
- };
226
- exports.se_DescribeDatasetImportJobCommand = se_DescribeDatasetImportJobCommand;
227
- const se_DescribeEventTrackerCommand = async (input, context) => {
228
- const headers = sharedHeaders("DescribeEventTracker");
229
- let body;
230
- body = JSON.stringify((0, smithy_client_1._json)(input));
231
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
- };
233
- exports.se_DescribeEventTrackerCommand = se_DescribeEventTrackerCommand;
234
- const se_DescribeFeatureTransformationCommand = async (input, context) => {
235
- const headers = sharedHeaders("DescribeFeatureTransformation");
236
- let body;
237
- body = JSON.stringify((0, smithy_client_1._json)(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- exports.se_DescribeFeatureTransformationCommand = se_DescribeFeatureTransformationCommand;
241
- const se_DescribeFilterCommand = async (input, context) => {
242
- const headers = sharedHeaders("DescribeFilter");
243
- let body;
244
- body = JSON.stringify((0, smithy_client_1._json)(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- exports.se_DescribeFilterCommand = se_DescribeFilterCommand;
248
- const se_DescribeMetricAttributionCommand = async (input, context) => {
249
- const headers = sharedHeaders("DescribeMetricAttribution");
250
- let body;
251
- body = JSON.stringify((0, smithy_client_1._json)(input));
252
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
- };
254
- exports.se_DescribeMetricAttributionCommand = se_DescribeMetricAttributionCommand;
255
- const se_DescribeRecipeCommand = async (input, context) => {
256
- const headers = sharedHeaders("DescribeRecipe");
257
- let body;
258
- body = JSON.stringify((0, smithy_client_1._json)(input));
259
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
- };
261
- exports.se_DescribeRecipeCommand = se_DescribeRecipeCommand;
262
- const se_DescribeRecommenderCommand = async (input, context) => {
263
- const headers = sharedHeaders("DescribeRecommender");
264
- let body;
265
- body = JSON.stringify((0, smithy_client_1._json)(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- exports.se_DescribeRecommenderCommand = se_DescribeRecommenderCommand;
269
- const se_DescribeSchemaCommand = async (input, context) => {
270
- const headers = sharedHeaders("DescribeSchema");
271
- let body;
272
- body = JSON.stringify((0, smithy_client_1._json)(input));
273
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
- };
275
- exports.se_DescribeSchemaCommand = se_DescribeSchemaCommand;
276
- const se_DescribeSolutionCommand = async (input, context) => {
277
- const headers = sharedHeaders("DescribeSolution");
278
- let body;
279
- body = JSON.stringify((0, smithy_client_1._json)(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- exports.se_DescribeSolutionCommand = se_DescribeSolutionCommand;
283
- const se_DescribeSolutionVersionCommand = async (input, context) => {
284
- const headers = sharedHeaders("DescribeSolutionVersion");
285
- let body;
286
- body = JSON.stringify((0, smithy_client_1._json)(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- exports.se_DescribeSolutionVersionCommand = se_DescribeSolutionVersionCommand;
290
- const se_GetSolutionMetricsCommand = async (input, context) => {
291
- const headers = sharedHeaders("GetSolutionMetrics");
292
- let body;
293
- body = JSON.stringify((0, smithy_client_1._json)(input));
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- exports.se_GetSolutionMetricsCommand = se_GetSolutionMetricsCommand;
297
- const se_ListBatchInferenceJobsCommand = async (input, context) => {
298
- const headers = sharedHeaders("ListBatchInferenceJobs");
299
- let body;
300
- body = JSON.stringify((0, smithy_client_1._json)(input));
301
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
- };
303
- exports.se_ListBatchInferenceJobsCommand = se_ListBatchInferenceJobsCommand;
304
- const se_ListBatchSegmentJobsCommand = async (input, context) => {
305
- const headers = sharedHeaders("ListBatchSegmentJobs");
306
- let body;
307
- body = JSON.stringify((0, smithy_client_1._json)(input));
308
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
- };
310
- exports.se_ListBatchSegmentJobsCommand = se_ListBatchSegmentJobsCommand;
311
- const se_ListCampaignsCommand = async (input, context) => {
312
- const headers = sharedHeaders("ListCampaigns");
313
- let body;
314
- body = JSON.stringify((0, smithy_client_1._json)(input));
315
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
- };
317
- exports.se_ListCampaignsCommand = se_ListCampaignsCommand;
318
- const se_ListDatasetExportJobsCommand = async (input, context) => {
319
- const headers = sharedHeaders("ListDatasetExportJobs");
320
- let body;
321
- body = JSON.stringify((0, smithy_client_1._json)(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- exports.se_ListDatasetExportJobsCommand = se_ListDatasetExportJobsCommand;
325
- const se_ListDatasetGroupsCommand = async (input, context) => {
326
- const headers = sharedHeaders("ListDatasetGroups");
327
- let body;
328
- body = JSON.stringify((0, smithy_client_1._json)(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- exports.se_ListDatasetGroupsCommand = se_ListDatasetGroupsCommand;
332
- const se_ListDatasetImportJobsCommand = async (input, context) => {
333
- const headers = sharedHeaders("ListDatasetImportJobs");
334
- let body;
335
- body = JSON.stringify((0, smithy_client_1._json)(input));
336
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
- };
338
- exports.se_ListDatasetImportJobsCommand = se_ListDatasetImportJobsCommand;
339
- const se_ListDatasetsCommand = async (input, context) => {
340
- const headers = sharedHeaders("ListDatasets");
341
- let body;
342
- body = JSON.stringify((0, smithy_client_1._json)(input));
343
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
- };
345
- exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
346
- const se_ListEventTrackersCommand = async (input, context) => {
347
- const headers = sharedHeaders("ListEventTrackers");
348
- let body;
349
- body = JSON.stringify((0, smithy_client_1._json)(input));
350
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
- };
352
- exports.se_ListEventTrackersCommand = se_ListEventTrackersCommand;
353
- const se_ListFiltersCommand = async (input, context) => {
354
- const headers = sharedHeaders("ListFilters");
355
- let body;
356
- body = JSON.stringify((0, smithy_client_1._json)(input));
357
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
- };
359
- exports.se_ListFiltersCommand = se_ListFiltersCommand;
360
- const se_ListMetricAttributionMetricsCommand = async (input, context) => {
361
- const headers = sharedHeaders("ListMetricAttributionMetrics");
362
- let body;
363
- body = JSON.stringify((0, smithy_client_1._json)(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- exports.se_ListMetricAttributionMetricsCommand = se_ListMetricAttributionMetricsCommand;
367
- const se_ListMetricAttributionsCommand = async (input, context) => {
368
- const headers = sharedHeaders("ListMetricAttributions");
369
- let body;
370
- body = JSON.stringify((0, smithy_client_1._json)(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- exports.se_ListMetricAttributionsCommand = se_ListMetricAttributionsCommand;
374
- const se_ListRecipesCommand = async (input, context) => {
375
- const headers = sharedHeaders("ListRecipes");
376
- let body;
377
- body = JSON.stringify((0, smithy_client_1._json)(input));
378
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
- };
380
- exports.se_ListRecipesCommand = se_ListRecipesCommand;
381
- const se_ListRecommendersCommand = async (input, context) => {
382
- const headers = sharedHeaders("ListRecommenders");
383
- let body;
384
- body = JSON.stringify((0, smithy_client_1._json)(input));
385
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
- };
387
- exports.se_ListRecommendersCommand = se_ListRecommendersCommand;
388
- const se_ListSchemasCommand = async (input, context) => {
389
- const headers = sharedHeaders("ListSchemas");
390
- let body;
391
- body = JSON.stringify((0, smithy_client_1._json)(input));
392
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
393
- };
394
- exports.se_ListSchemasCommand = se_ListSchemasCommand;
395
- const se_ListSolutionsCommand = async (input, context) => {
396
- const headers = sharedHeaders("ListSolutions");
397
- let body;
398
- body = JSON.stringify((0, smithy_client_1._json)(input));
399
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
- };
401
- exports.se_ListSolutionsCommand = se_ListSolutionsCommand;
402
- const se_ListSolutionVersionsCommand = async (input, context) => {
403
- const headers = sharedHeaders("ListSolutionVersions");
404
- let body;
405
- body = JSON.stringify((0, smithy_client_1._json)(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- exports.se_ListSolutionVersionsCommand = se_ListSolutionVersionsCommand;
409
- const se_ListTagsForResourceCommand = async (input, context) => {
410
- const headers = sharedHeaders("ListTagsForResource");
411
- let body;
412
- body = JSON.stringify((0, smithy_client_1._json)(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
416
- const se_StartRecommenderCommand = async (input, context) => {
417
- const headers = sharedHeaders("StartRecommender");
418
- let body;
419
- body = JSON.stringify((0, smithy_client_1._json)(input));
420
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
- };
422
- exports.se_StartRecommenderCommand = se_StartRecommenderCommand;
423
- const se_StopRecommenderCommand = async (input, context) => {
424
- const headers = sharedHeaders("StopRecommender");
425
- let body;
426
- body = JSON.stringify((0, smithy_client_1._json)(input));
427
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
- };
429
- exports.se_StopRecommenderCommand = se_StopRecommenderCommand;
430
- const se_StopSolutionVersionCreationCommand = async (input, context) => {
431
- const headers = sharedHeaders("StopSolutionVersionCreation");
432
- let body;
433
- body = JSON.stringify((0, smithy_client_1._json)(input));
434
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
- };
436
- exports.se_StopSolutionVersionCreationCommand = se_StopSolutionVersionCreationCommand;
437
- const se_TagResourceCommand = async (input, context) => {
438
- const headers = sharedHeaders("TagResource");
439
- let body;
440
- body = JSON.stringify((0, smithy_client_1._json)(input));
441
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
- };
443
- exports.se_TagResourceCommand = se_TagResourceCommand;
444
- const se_UntagResourceCommand = async (input, context) => {
445
- const headers = sharedHeaders("UntagResource");
446
- let body;
447
- body = JSON.stringify((0, smithy_client_1._json)(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
451
- const se_UpdateCampaignCommand = async (input, context) => {
452
- const headers = sharedHeaders("UpdateCampaign");
453
- let body;
454
- body = JSON.stringify((0, smithy_client_1._json)(input));
455
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
- };
457
- exports.se_UpdateCampaignCommand = se_UpdateCampaignCommand;
458
- const se_UpdateDatasetCommand = async (input, context) => {
459
- const headers = sharedHeaders("UpdateDataset");
460
- let body;
461
- body = JSON.stringify((0, smithy_client_1._json)(input));
462
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
- };
464
- exports.se_UpdateDatasetCommand = se_UpdateDatasetCommand;
465
- const se_UpdateMetricAttributionCommand = async (input, context) => {
466
- const headers = sharedHeaders("UpdateMetricAttribution");
467
- let body;
468
- body = JSON.stringify((0, smithy_client_1._json)(input));
469
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
- };
471
- exports.se_UpdateMetricAttributionCommand = se_UpdateMetricAttributionCommand;
472
- const se_UpdateRecommenderCommand = async (input, context) => {
473
- const headers = sharedHeaders("UpdateRecommender");
474
- let body;
475
- body = JSON.stringify((0, smithy_client_1._json)(input));
476
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
477
- };
478
- exports.se_UpdateRecommenderCommand = se_UpdateRecommenderCommand;
479
- const de_CreateBatchInferenceJobCommand = async (output, context) => {
480
- if (output.statusCode >= 300) {
481
- return de_CreateBatchInferenceJobCommandError(output, context);
482
- }
483
- const data = await parseBody(output.body, context);
484
- let contents = {};
485
- contents = (0, smithy_client_1._json)(data);
486
- const response = {
487
- $metadata: deserializeMetadata(output),
488
- ...contents,
489
- };
490
- return response;
491
- };
492
- exports.de_CreateBatchInferenceJobCommand = de_CreateBatchInferenceJobCommand;
493
- const de_CreateBatchInferenceJobCommandError = async (output, context) => {
494
- const parsedOutput = {
495
- ...output,
496
- body: await parseErrorBody(output.body, context),
497
- };
498
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
499
- switch (errorCode) {
500
- case "InvalidInputException":
501
- case "com.amazonaws.personalize#InvalidInputException":
502
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
503
- case "LimitExceededException":
504
- case "com.amazonaws.personalize#LimitExceededException":
505
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
506
- case "ResourceAlreadyExistsException":
507
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
508
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
509
- case "ResourceInUseException":
510
- case "com.amazonaws.personalize#ResourceInUseException":
511
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
512
- case "ResourceNotFoundException":
513
- case "com.amazonaws.personalize#ResourceNotFoundException":
514
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
515
- case "TooManyTagsException":
516
- case "com.amazonaws.personalize#TooManyTagsException":
517
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
518
- default:
519
- const parsedBody = parsedOutput.body;
520
- return throwDefaultError({
521
- output,
522
- parsedBody,
523
- errorCode,
524
- });
525
- }
526
- };
527
- const de_CreateBatchSegmentJobCommand = async (output, context) => {
528
- if (output.statusCode >= 300) {
529
- return de_CreateBatchSegmentJobCommandError(output, context);
530
- }
531
- const data = await parseBody(output.body, context);
532
- let contents = {};
533
- contents = (0, smithy_client_1._json)(data);
534
- const response = {
535
- $metadata: deserializeMetadata(output),
536
- ...contents,
537
- };
538
- return response;
539
- };
540
- exports.de_CreateBatchSegmentJobCommand = de_CreateBatchSegmentJobCommand;
541
- const de_CreateBatchSegmentJobCommandError = async (output, context) => {
542
- const parsedOutput = {
543
- ...output,
544
- body: await parseErrorBody(output.body, context),
545
- };
546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
547
- switch (errorCode) {
548
- case "InvalidInputException":
549
- case "com.amazonaws.personalize#InvalidInputException":
550
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
551
- case "LimitExceededException":
552
- case "com.amazonaws.personalize#LimitExceededException":
553
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
554
- case "ResourceAlreadyExistsException":
555
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
556
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
557
- case "ResourceInUseException":
558
- case "com.amazonaws.personalize#ResourceInUseException":
559
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
560
- case "ResourceNotFoundException":
561
- case "com.amazonaws.personalize#ResourceNotFoundException":
562
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
563
- case "TooManyTagsException":
564
- case "com.amazonaws.personalize#TooManyTagsException":
565
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
566
- default:
567
- const parsedBody = parsedOutput.body;
568
- return throwDefaultError({
569
- output,
570
- parsedBody,
571
- errorCode,
572
- });
573
- }
574
- };
575
- const de_CreateCampaignCommand = async (output, context) => {
576
- if (output.statusCode >= 300) {
577
- return de_CreateCampaignCommandError(output, context);
578
- }
579
- const data = await parseBody(output.body, context);
580
- let contents = {};
581
- contents = (0, smithy_client_1._json)(data);
582
- const response = {
583
- $metadata: deserializeMetadata(output),
584
- ...contents,
585
- };
586
- return response;
587
- };
588
- exports.de_CreateCampaignCommand = de_CreateCampaignCommand;
589
- const de_CreateCampaignCommandError = async (output, context) => {
590
- const parsedOutput = {
591
- ...output,
592
- body: await parseErrorBody(output.body, context),
593
- };
594
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
- switch (errorCode) {
596
- case "InvalidInputException":
597
- case "com.amazonaws.personalize#InvalidInputException":
598
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
599
- case "LimitExceededException":
600
- case "com.amazonaws.personalize#LimitExceededException":
601
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
602
- case "ResourceAlreadyExistsException":
603
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
604
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
605
- case "ResourceInUseException":
606
- case "com.amazonaws.personalize#ResourceInUseException":
607
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
608
- case "ResourceNotFoundException":
609
- case "com.amazonaws.personalize#ResourceNotFoundException":
610
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
611
- case "TooManyTagsException":
612
- case "com.amazonaws.personalize#TooManyTagsException":
613
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
614
- default:
615
- const parsedBody = parsedOutput.body;
616
- return throwDefaultError({
617
- output,
618
- parsedBody,
619
- errorCode,
620
- });
621
- }
622
- };
623
- const de_CreateDatasetCommand = async (output, context) => {
624
- if (output.statusCode >= 300) {
625
- return de_CreateDatasetCommandError(output, context);
626
- }
627
- const data = await parseBody(output.body, context);
628
- let contents = {};
629
- contents = (0, smithy_client_1._json)(data);
630
- const response = {
631
- $metadata: deserializeMetadata(output),
632
- ...contents,
633
- };
634
- return response;
635
- };
636
- exports.de_CreateDatasetCommand = de_CreateDatasetCommand;
637
- const de_CreateDatasetCommandError = async (output, context) => {
638
- const parsedOutput = {
639
- ...output,
640
- body: await parseErrorBody(output.body, context),
641
- };
642
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
643
- switch (errorCode) {
644
- case "InvalidInputException":
645
- case "com.amazonaws.personalize#InvalidInputException":
646
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
647
- case "LimitExceededException":
648
- case "com.amazonaws.personalize#LimitExceededException":
649
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
650
- case "ResourceAlreadyExistsException":
651
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
652
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
653
- case "ResourceInUseException":
654
- case "com.amazonaws.personalize#ResourceInUseException":
655
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
656
- case "ResourceNotFoundException":
657
- case "com.amazonaws.personalize#ResourceNotFoundException":
658
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
659
- case "TooManyTagsException":
660
- case "com.amazonaws.personalize#TooManyTagsException":
661
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
662
- default:
663
- const parsedBody = parsedOutput.body;
664
- return throwDefaultError({
665
- output,
666
- parsedBody,
667
- errorCode,
668
- });
669
- }
670
- };
671
- const de_CreateDatasetExportJobCommand = async (output, context) => {
672
- if (output.statusCode >= 300) {
673
- return de_CreateDatasetExportJobCommandError(output, context);
674
- }
675
- const data = await parseBody(output.body, context);
676
- let contents = {};
677
- contents = (0, smithy_client_1._json)(data);
678
- const response = {
679
- $metadata: deserializeMetadata(output),
680
- ...contents,
681
- };
682
- return response;
683
- };
684
- exports.de_CreateDatasetExportJobCommand = de_CreateDatasetExportJobCommand;
685
- const de_CreateDatasetExportJobCommandError = async (output, context) => {
686
- const parsedOutput = {
687
- ...output,
688
- body: await parseErrorBody(output.body, context),
689
- };
690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
691
- switch (errorCode) {
692
- case "InvalidInputException":
693
- case "com.amazonaws.personalize#InvalidInputException":
694
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
695
- case "LimitExceededException":
696
- case "com.amazonaws.personalize#LimitExceededException":
697
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
698
- case "ResourceAlreadyExistsException":
699
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
700
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
701
- case "ResourceInUseException":
702
- case "com.amazonaws.personalize#ResourceInUseException":
703
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
704
- case "ResourceNotFoundException":
705
- case "com.amazonaws.personalize#ResourceNotFoundException":
706
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
707
- case "TooManyTagsException":
708
- case "com.amazonaws.personalize#TooManyTagsException":
709
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
710
- default:
711
- const parsedBody = parsedOutput.body;
712
- return throwDefaultError({
713
- output,
714
- parsedBody,
715
- errorCode,
716
- });
717
- }
718
- };
719
- const de_CreateDatasetGroupCommand = async (output, context) => {
720
- if (output.statusCode >= 300) {
721
- return de_CreateDatasetGroupCommandError(output, context);
722
- }
723
- const data = await parseBody(output.body, context);
724
- let contents = {};
725
- contents = (0, smithy_client_1._json)(data);
726
- const response = {
727
- $metadata: deserializeMetadata(output),
728
- ...contents,
729
- };
730
- return response;
731
- };
732
- exports.de_CreateDatasetGroupCommand = de_CreateDatasetGroupCommand;
733
- const de_CreateDatasetGroupCommandError = async (output, context) => {
734
- const parsedOutput = {
735
- ...output,
736
- body: await parseErrorBody(output.body, context),
737
- };
738
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
739
- switch (errorCode) {
740
- case "InvalidInputException":
741
- case "com.amazonaws.personalize#InvalidInputException":
742
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
743
- case "LimitExceededException":
744
- case "com.amazonaws.personalize#LimitExceededException":
745
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
746
- case "ResourceAlreadyExistsException":
747
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
748
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
749
- case "TooManyTagsException":
750
- case "com.amazonaws.personalize#TooManyTagsException":
751
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
752
- default:
753
- const parsedBody = parsedOutput.body;
754
- return throwDefaultError({
755
- output,
756
- parsedBody,
757
- errorCode,
758
- });
759
- }
760
- };
761
- const de_CreateDatasetImportJobCommand = async (output, context) => {
762
- if (output.statusCode >= 300) {
763
- return de_CreateDatasetImportJobCommandError(output, context);
764
- }
765
- const data = await parseBody(output.body, context);
766
- let contents = {};
767
- contents = (0, smithy_client_1._json)(data);
768
- const response = {
769
- $metadata: deserializeMetadata(output),
770
- ...contents,
771
- };
772
- return response;
773
- };
774
- exports.de_CreateDatasetImportJobCommand = de_CreateDatasetImportJobCommand;
775
- const de_CreateDatasetImportJobCommandError = async (output, context) => {
776
- const parsedOutput = {
777
- ...output,
778
- body: await parseErrorBody(output.body, context),
779
- };
780
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
781
- switch (errorCode) {
782
- case "InvalidInputException":
783
- case "com.amazonaws.personalize#InvalidInputException":
784
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
785
- case "LimitExceededException":
786
- case "com.amazonaws.personalize#LimitExceededException":
787
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
788
- case "ResourceAlreadyExistsException":
789
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
790
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
791
- case "ResourceInUseException":
792
- case "com.amazonaws.personalize#ResourceInUseException":
793
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
794
- case "ResourceNotFoundException":
795
- case "com.amazonaws.personalize#ResourceNotFoundException":
796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
797
- case "TooManyTagsException":
798
- case "com.amazonaws.personalize#TooManyTagsException":
799
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
800
- default:
801
- const parsedBody = parsedOutput.body;
802
- return throwDefaultError({
803
- output,
804
- parsedBody,
805
- errorCode,
806
- });
807
- }
808
- };
809
- const de_CreateEventTrackerCommand = async (output, context) => {
810
- if (output.statusCode >= 300) {
811
- return de_CreateEventTrackerCommandError(output, context);
812
- }
813
- const data = await parseBody(output.body, context);
814
- let contents = {};
815
- contents = (0, smithy_client_1._json)(data);
816
- const response = {
817
- $metadata: deserializeMetadata(output),
818
- ...contents,
819
- };
820
- return response;
821
- };
822
- exports.de_CreateEventTrackerCommand = de_CreateEventTrackerCommand;
823
- const de_CreateEventTrackerCommandError = async (output, context) => {
824
- const parsedOutput = {
825
- ...output,
826
- body: await parseErrorBody(output.body, context),
827
- };
828
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
829
- switch (errorCode) {
830
- case "InvalidInputException":
831
- case "com.amazonaws.personalize#InvalidInputException":
832
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
833
- case "LimitExceededException":
834
- case "com.amazonaws.personalize#LimitExceededException":
835
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
836
- case "ResourceAlreadyExistsException":
837
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
838
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
839
- case "ResourceInUseException":
840
- case "com.amazonaws.personalize#ResourceInUseException":
841
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
842
- case "ResourceNotFoundException":
843
- case "com.amazonaws.personalize#ResourceNotFoundException":
844
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
845
- case "TooManyTagsException":
846
- case "com.amazonaws.personalize#TooManyTagsException":
847
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
848
- default:
849
- const parsedBody = parsedOutput.body;
850
- return throwDefaultError({
851
- output,
852
- parsedBody,
853
- errorCode,
854
- });
855
- }
856
- };
857
- const de_CreateFilterCommand = async (output, context) => {
858
- if (output.statusCode >= 300) {
859
- return de_CreateFilterCommandError(output, context);
860
- }
861
- const data = await parseBody(output.body, context);
862
- let contents = {};
863
- contents = (0, smithy_client_1._json)(data);
864
- const response = {
865
- $metadata: deserializeMetadata(output),
866
- ...contents,
867
- };
868
- return response;
869
- };
870
- exports.de_CreateFilterCommand = de_CreateFilterCommand;
871
- const de_CreateFilterCommandError = async (output, context) => {
872
- const parsedOutput = {
873
- ...output,
874
- body: await parseErrorBody(output.body, context),
875
- };
876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
877
- switch (errorCode) {
878
- case "InvalidInputException":
879
- case "com.amazonaws.personalize#InvalidInputException":
880
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
881
- case "LimitExceededException":
882
- case "com.amazonaws.personalize#LimitExceededException":
883
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
884
- case "ResourceAlreadyExistsException":
885
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
886
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
887
- case "ResourceNotFoundException":
888
- case "com.amazonaws.personalize#ResourceNotFoundException":
889
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
890
- case "TooManyTagsException":
891
- case "com.amazonaws.personalize#TooManyTagsException":
892
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
893
- default:
894
- const parsedBody = parsedOutput.body;
895
- return throwDefaultError({
896
- output,
897
- parsedBody,
898
- errorCode,
899
- });
900
- }
901
- };
902
- const de_CreateMetricAttributionCommand = async (output, context) => {
903
- if (output.statusCode >= 300) {
904
- return de_CreateMetricAttributionCommandError(output, context);
905
- }
906
- const data = await parseBody(output.body, context);
907
- let contents = {};
908
- contents = (0, smithy_client_1._json)(data);
909
- const response = {
910
- $metadata: deserializeMetadata(output),
911
- ...contents,
912
- };
913
- return response;
914
- };
915
- exports.de_CreateMetricAttributionCommand = de_CreateMetricAttributionCommand;
916
- const de_CreateMetricAttributionCommandError = async (output, context) => {
917
- const parsedOutput = {
918
- ...output,
919
- body: await parseErrorBody(output.body, context),
920
- };
921
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
922
- switch (errorCode) {
923
- case "InvalidInputException":
924
- case "com.amazonaws.personalize#InvalidInputException":
925
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
926
- case "LimitExceededException":
927
- case "com.amazonaws.personalize#LimitExceededException":
928
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
929
- case "ResourceAlreadyExistsException":
930
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
931
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
932
- case "ResourceInUseException":
933
- case "com.amazonaws.personalize#ResourceInUseException":
934
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
935
- case "ResourceNotFoundException":
936
- case "com.amazonaws.personalize#ResourceNotFoundException":
937
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
938
- default:
939
- const parsedBody = parsedOutput.body;
940
- return throwDefaultError({
941
- output,
942
- parsedBody,
943
- errorCode,
944
- });
945
- }
946
- };
947
- const de_CreateRecommenderCommand = async (output, context) => {
948
- if (output.statusCode >= 300) {
949
- return de_CreateRecommenderCommandError(output, context);
950
- }
951
- const data = await parseBody(output.body, context);
952
- let contents = {};
953
- contents = (0, smithy_client_1._json)(data);
954
- const response = {
955
- $metadata: deserializeMetadata(output),
956
- ...contents,
957
- };
958
- return response;
959
- };
960
- exports.de_CreateRecommenderCommand = de_CreateRecommenderCommand;
961
- const de_CreateRecommenderCommandError = async (output, context) => {
962
- const parsedOutput = {
963
- ...output,
964
- body: await parseErrorBody(output.body, context),
965
- };
966
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
- switch (errorCode) {
968
- case "InvalidInputException":
969
- case "com.amazonaws.personalize#InvalidInputException":
970
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
971
- case "LimitExceededException":
972
- case "com.amazonaws.personalize#LimitExceededException":
973
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
974
- case "ResourceAlreadyExistsException":
975
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
976
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
977
- case "ResourceInUseException":
978
- case "com.amazonaws.personalize#ResourceInUseException":
979
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
980
- case "ResourceNotFoundException":
981
- case "com.amazonaws.personalize#ResourceNotFoundException":
982
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
983
- case "TooManyTagsException":
984
- case "com.amazonaws.personalize#TooManyTagsException":
985
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
986
- default:
987
- const parsedBody = parsedOutput.body;
988
- return throwDefaultError({
989
- output,
990
- parsedBody,
991
- errorCode,
992
- });
993
- }
994
- };
995
- const de_CreateSchemaCommand = async (output, context) => {
996
- if (output.statusCode >= 300) {
997
- return de_CreateSchemaCommandError(output, context);
998
- }
999
- const data = await parseBody(output.body, context);
1000
- let contents = {};
1001
- contents = (0, smithy_client_1._json)(data);
1002
- const response = {
1003
- $metadata: deserializeMetadata(output),
1004
- ...contents,
1005
- };
1006
- return response;
1007
- };
1008
- exports.de_CreateSchemaCommand = de_CreateSchemaCommand;
1009
- const de_CreateSchemaCommandError = async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await parseErrorBody(output.body, context),
1013
- };
1014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "InvalidInputException":
1017
- case "com.amazonaws.personalize#InvalidInputException":
1018
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1019
- case "LimitExceededException":
1020
- case "com.amazonaws.personalize#LimitExceededException":
1021
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1022
- case "ResourceAlreadyExistsException":
1023
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
1024
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1025
- default:
1026
- const parsedBody = parsedOutput.body;
1027
- return throwDefaultError({
1028
- output,
1029
- parsedBody,
1030
- errorCode,
1031
- });
1032
- }
1033
- };
1034
- const de_CreateSolutionCommand = async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CreateSolutionCommandError(output, context);
1037
- }
1038
- const data = await parseBody(output.body, context);
1039
- let contents = {};
1040
- contents = (0, smithy_client_1._json)(data);
1041
- const response = {
1042
- $metadata: deserializeMetadata(output),
1043
- ...contents,
1044
- };
1045
- return response;
1046
- };
1047
- exports.de_CreateSolutionCommand = de_CreateSolutionCommand;
1048
- const de_CreateSolutionCommandError = async (output, context) => {
1049
- const parsedOutput = {
1050
- ...output,
1051
- body: await parseErrorBody(output.body, context),
1052
- };
1053
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1054
- switch (errorCode) {
1055
- case "InvalidInputException":
1056
- case "com.amazonaws.personalize#InvalidInputException":
1057
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1058
- case "LimitExceededException":
1059
- case "com.amazonaws.personalize#LimitExceededException":
1060
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1061
- case "ResourceAlreadyExistsException":
1062
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
1063
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1064
- case "ResourceInUseException":
1065
- case "com.amazonaws.personalize#ResourceInUseException":
1066
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1067
- case "ResourceNotFoundException":
1068
- case "com.amazonaws.personalize#ResourceNotFoundException":
1069
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1070
- case "TooManyTagsException":
1071
- case "com.amazonaws.personalize#TooManyTagsException":
1072
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1073
- default:
1074
- const parsedBody = parsedOutput.body;
1075
- return throwDefaultError({
1076
- output,
1077
- parsedBody,
1078
- errorCode,
1079
- });
1080
- }
1081
- };
1082
- const de_CreateSolutionVersionCommand = async (output, context) => {
1083
- if (output.statusCode >= 300) {
1084
- return de_CreateSolutionVersionCommandError(output, context);
1085
- }
1086
- const data = await parseBody(output.body, context);
1087
- let contents = {};
1088
- contents = (0, smithy_client_1._json)(data);
1089
- const response = {
1090
- $metadata: deserializeMetadata(output),
1091
- ...contents,
1092
- };
1093
- return response;
1094
- };
1095
- exports.de_CreateSolutionVersionCommand = de_CreateSolutionVersionCommand;
1096
- const de_CreateSolutionVersionCommandError = async (output, context) => {
1097
- const parsedOutput = {
1098
- ...output,
1099
- body: await parseErrorBody(output.body, context),
1100
- };
1101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
- switch (errorCode) {
1103
- case "InvalidInputException":
1104
- case "com.amazonaws.personalize#InvalidInputException":
1105
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1106
- case "LimitExceededException":
1107
- case "com.amazonaws.personalize#LimitExceededException":
1108
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1109
- case "ResourceAlreadyExistsException":
1110
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
1111
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1112
- case "ResourceInUseException":
1113
- case "com.amazonaws.personalize#ResourceInUseException":
1114
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1115
- case "ResourceNotFoundException":
1116
- case "com.amazonaws.personalize#ResourceNotFoundException":
1117
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1118
- case "TooManyTagsException":
1119
- case "com.amazonaws.personalize#TooManyTagsException":
1120
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1121
- default:
1122
- const parsedBody = parsedOutput.body;
1123
- return throwDefaultError({
1124
- output,
1125
- parsedBody,
1126
- errorCode,
1127
- });
1128
- }
1129
- };
1130
- const de_DeleteCampaignCommand = async (output, context) => {
1131
- if (output.statusCode >= 300) {
1132
- return de_DeleteCampaignCommandError(output, context);
1133
- }
1134
- await (0, smithy_client_1.collectBody)(output.body, context);
1135
- const response = {
1136
- $metadata: deserializeMetadata(output),
1137
- };
1138
- return response;
1139
- };
1140
- exports.de_DeleteCampaignCommand = de_DeleteCampaignCommand;
1141
- const de_DeleteCampaignCommandError = async (output, context) => {
1142
- const parsedOutput = {
1143
- ...output,
1144
- body: await parseErrorBody(output.body, context),
1145
- };
1146
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1147
- switch (errorCode) {
1148
- case "InvalidInputException":
1149
- case "com.amazonaws.personalize#InvalidInputException":
1150
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1151
- case "ResourceInUseException":
1152
- case "com.amazonaws.personalize#ResourceInUseException":
1153
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1154
- case "ResourceNotFoundException":
1155
- case "com.amazonaws.personalize#ResourceNotFoundException":
1156
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1157
- default:
1158
- const parsedBody = parsedOutput.body;
1159
- return throwDefaultError({
1160
- output,
1161
- parsedBody,
1162
- errorCode,
1163
- });
1164
- }
1165
- };
1166
- const de_DeleteDatasetCommand = async (output, context) => {
1167
- if (output.statusCode >= 300) {
1168
- return de_DeleteDatasetCommandError(output, context);
1169
- }
1170
- await (0, smithy_client_1.collectBody)(output.body, context);
1171
- const response = {
1172
- $metadata: deserializeMetadata(output),
1173
- };
1174
- return response;
1175
- };
1176
- exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
1177
- const de_DeleteDatasetCommandError = async (output, context) => {
1178
- const parsedOutput = {
1179
- ...output,
1180
- body: await parseErrorBody(output.body, context),
1181
- };
1182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
- switch (errorCode) {
1184
- case "InvalidInputException":
1185
- case "com.amazonaws.personalize#InvalidInputException":
1186
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1187
- case "ResourceInUseException":
1188
- case "com.amazonaws.personalize#ResourceInUseException":
1189
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1190
- case "ResourceNotFoundException":
1191
- case "com.amazonaws.personalize#ResourceNotFoundException":
1192
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1193
- default:
1194
- const parsedBody = parsedOutput.body;
1195
- return throwDefaultError({
1196
- output,
1197
- parsedBody,
1198
- errorCode,
1199
- });
1200
- }
1201
- };
1202
- const de_DeleteDatasetGroupCommand = async (output, context) => {
1203
- if (output.statusCode >= 300) {
1204
- return de_DeleteDatasetGroupCommandError(output, context);
1205
- }
1206
- await (0, smithy_client_1.collectBody)(output.body, context);
1207
- const response = {
1208
- $metadata: deserializeMetadata(output),
1209
- };
1210
- return response;
1211
- };
1212
- exports.de_DeleteDatasetGroupCommand = de_DeleteDatasetGroupCommand;
1213
- const de_DeleteDatasetGroupCommandError = async (output, context) => {
1214
- const parsedOutput = {
1215
- ...output,
1216
- body: await parseErrorBody(output.body, context),
1217
- };
1218
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
- switch (errorCode) {
1220
- case "InvalidInputException":
1221
- case "com.amazonaws.personalize#InvalidInputException":
1222
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1223
- case "ResourceInUseException":
1224
- case "com.amazonaws.personalize#ResourceInUseException":
1225
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1226
- case "ResourceNotFoundException":
1227
- case "com.amazonaws.personalize#ResourceNotFoundException":
1228
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1229
- default:
1230
- const parsedBody = parsedOutput.body;
1231
- return throwDefaultError({
1232
- output,
1233
- parsedBody,
1234
- errorCode,
1235
- });
1236
- }
1237
- };
1238
- const de_DeleteEventTrackerCommand = async (output, context) => {
1239
- if (output.statusCode >= 300) {
1240
- return de_DeleteEventTrackerCommandError(output, context);
1241
- }
1242
- await (0, smithy_client_1.collectBody)(output.body, context);
1243
- const response = {
1244
- $metadata: deserializeMetadata(output),
1245
- };
1246
- return response;
1247
- };
1248
- exports.de_DeleteEventTrackerCommand = de_DeleteEventTrackerCommand;
1249
- const de_DeleteEventTrackerCommandError = async (output, context) => {
1250
- const parsedOutput = {
1251
- ...output,
1252
- body: await parseErrorBody(output.body, context),
1253
- };
1254
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
- switch (errorCode) {
1256
- case "InvalidInputException":
1257
- case "com.amazonaws.personalize#InvalidInputException":
1258
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1259
- case "ResourceInUseException":
1260
- case "com.amazonaws.personalize#ResourceInUseException":
1261
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1262
- case "ResourceNotFoundException":
1263
- case "com.amazonaws.personalize#ResourceNotFoundException":
1264
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1265
- default:
1266
- const parsedBody = parsedOutput.body;
1267
- return throwDefaultError({
1268
- output,
1269
- parsedBody,
1270
- errorCode,
1271
- });
1272
- }
1273
- };
1274
- const de_DeleteFilterCommand = async (output, context) => {
1275
- if (output.statusCode >= 300) {
1276
- return de_DeleteFilterCommandError(output, context);
1277
- }
1278
- await (0, smithy_client_1.collectBody)(output.body, context);
1279
- const response = {
1280
- $metadata: deserializeMetadata(output),
1281
- };
1282
- return response;
1283
- };
1284
- exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
1285
- const de_DeleteFilterCommandError = async (output, context) => {
1286
- const parsedOutput = {
1287
- ...output,
1288
- body: await parseErrorBody(output.body, context),
1289
- };
1290
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1291
- switch (errorCode) {
1292
- case "InvalidInputException":
1293
- case "com.amazonaws.personalize#InvalidInputException":
1294
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1295
- case "ResourceInUseException":
1296
- case "com.amazonaws.personalize#ResourceInUseException":
1297
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1298
- case "ResourceNotFoundException":
1299
- case "com.amazonaws.personalize#ResourceNotFoundException":
1300
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1301
- default:
1302
- const parsedBody = parsedOutput.body;
1303
- return throwDefaultError({
1304
- output,
1305
- parsedBody,
1306
- errorCode,
1307
- });
1308
- }
1309
- };
1310
- const de_DeleteMetricAttributionCommand = async (output, context) => {
1311
- if (output.statusCode >= 300) {
1312
- return de_DeleteMetricAttributionCommandError(output, context);
1313
- }
1314
- await (0, smithy_client_1.collectBody)(output.body, context);
1315
- const response = {
1316
- $metadata: deserializeMetadata(output),
1317
- };
1318
- return response;
1319
- };
1320
- exports.de_DeleteMetricAttributionCommand = de_DeleteMetricAttributionCommand;
1321
- const de_DeleteMetricAttributionCommandError = async (output, context) => {
1322
- const parsedOutput = {
1323
- ...output,
1324
- body: await parseErrorBody(output.body, context),
1325
- };
1326
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1327
- switch (errorCode) {
1328
- case "InvalidInputException":
1329
- case "com.amazonaws.personalize#InvalidInputException":
1330
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1331
- case "ResourceInUseException":
1332
- case "com.amazonaws.personalize#ResourceInUseException":
1333
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1334
- case "ResourceNotFoundException":
1335
- case "com.amazonaws.personalize#ResourceNotFoundException":
1336
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1337
- default:
1338
- const parsedBody = parsedOutput.body;
1339
- return throwDefaultError({
1340
- output,
1341
- parsedBody,
1342
- errorCode,
1343
- });
1344
- }
1345
- };
1346
- const de_DeleteRecommenderCommand = async (output, context) => {
1347
- if (output.statusCode >= 300) {
1348
- return de_DeleteRecommenderCommandError(output, context);
1349
- }
1350
- await (0, smithy_client_1.collectBody)(output.body, context);
1351
- const response = {
1352
- $metadata: deserializeMetadata(output),
1353
- };
1354
- return response;
1355
- };
1356
- exports.de_DeleteRecommenderCommand = de_DeleteRecommenderCommand;
1357
- const de_DeleteRecommenderCommandError = async (output, context) => {
1358
- const parsedOutput = {
1359
- ...output,
1360
- body: await parseErrorBody(output.body, context),
1361
- };
1362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
- switch (errorCode) {
1364
- case "InvalidInputException":
1365
- case "com.amazonaws.personalize#InvalidInputException":
1366
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1367
- case "ResourceInUseException":
1368
- case "com.amazonaws.personalize#ResourceInUseException":
1369
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1370
- case "ResourceNotFoundException":
1371
- case "com.amazonaws.personalize#ResourceNotFoundException":
1372
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1373
- default:
1374
- const parsedBody = parsedOutput.body;
1375
- return throwDefaultError({
1376
- output,
1377
- parsedBody,
1378
- errorCode,
1379
- });
1380
- }
1381
- };
1382
- const de_DeleteSchemaCommand = async (output, context) => {
1383
- if (output.statusCode >= 300) {
1384
- return de_DeleteSchemaCommandError(output, context);
1385
- }
1386
- await (0, smithy_client_1.collectBody)(output.body, context);
1387
- const response = {
1388
- $metadata: deserializeMetadata(output),
1389
- };
1390
- return response;
1391
- };
1392
- exports.de_DeleteSchemaCommand = de_DeleteSchemaCommand;
1393
- const de_DeleteSchemaCommandError = async (output, context) => {
1394
- const parsedOutput = {
1395
- ...output,
1396
- body: await parseErrorBody(output.body, context),
1397
- };
1398
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1399
- switch (errorCode) {
1400
- case "InvalidInputException":
1401
- case "com.amazonaws.personalize#InvalidInputException":
1402
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1403
- case "ResourceInUseException":
1404
- case "com.amazonaws.personalize#ResourceInUseException":
1405
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1406
- case "ResourceNotFoundException":
1407
- case "com.amazonaws.personalize#ResourceNotFoundException":
1408
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1409
- default:
1410
- const parsedBody = parsedOutput.body;
1411
- return throwDefaultError({
1412
- output,
1413
- parsedBody,
1414
- errorCode,
1415
- });
1416
- }
1417
- };
1418
- const de_DeleteSolutionCommand = async (output, context) => {
1419
- if (output.statusCode >= 300) {
1420
- return de_DeleteSolutionCommandError(output, context);
1421
- }
1422
- await (0, smithy_client_1.collectBody)(output.body, context);
1423
- const response = {
1424
- $metadata: deserializeMetadata(output),
1425
- };
1426
- return response;
1427
- };
1428
- exports.de_DeleteSolutionCommand = de_DeleteSolutionCommand;
1429
- const de_DeleteSolutionCommandError = async (output, context) => {
1430
- const parsedOutput = {
1431
- ...output,
1432
- body: await parseErrorBody(output.body, context),
1433
- };
1434
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1435
- switch (errorCode) {
1436
- case "InvalidInputException":
1437
- case "com.amazonaws.personalize#InvalidInputException":
1438
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1439
- case "ResourceInUseException":
1440
- case "com.amazonaws.personalize#ResourceInUseException":
1441
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1442
- case "ResourceNotFoundException":
1443
- case "com.amazonaws.personalize#ResourceNotFoundException":
1444
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1445
- default:
1446
- const parsedBody = parsedOutput.body;
1447
- return throwDefaultError({
1448
- output,
1449
- parsedBody,
1450
- errorCode,
1451
- });
1452
- }
1453
- };
1454
- const de_DescribeAlgorithmCommand = async (output, context) => {
1455
- if (output.statusCode >= 300) {
1456
- return de_DescribeAlgorithmCommandError(output, context);
1457
- }
1458
- const data = await parseBody(output.body, context);
1459
- let contents = {};
1460
- contents = de_DescribeAlgorithmResponse(data, context);
1461
- const response = {
1462
- $metadata: deserializeMetadata(output),
1463
- ...contents,
1464
- };
1465
- return response;
1466
- };
1467
- exports.de_DescribeAlgorithmCommand = de_DescribeAlgorithmCommand;
1468
- const de_DescribeAlgorithmCommandError = async (output, context) => {
1469
- const parsedOutput = {
1470
- ...output,
1471
- body: await parseErrorBody(output.body, context),
1472
- };
1473
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
- switch (errorCode) {
1475
- case "InvalidInputException":
1476
- case "com.amazonaws.personalize#InvalidInputException":
1477
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1478
- case "ResourceNotFoundException":
1479
- case "com.amazonaws.personalize#ResourceNotFoundException":
1480
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1481
- default:
1482
- const parsedBody = parsedOutput.body;
1483
- return throwDefaultError({
1484
- output,
1485
- parsedBody,
1486
- errorCode,
1487
- });
1488
- }
1489
- };
1490
- const de_DescribeBatchInferenceJobCommand = async (output, context) => {
1491
- if (output.statusCode >= 300) {
1492
- return de_DescribeBatchInferenceJobCommandError(output, context);
1493
- }
1494
- const data = await parseBody(output.body, context);
1495
- let contents = {};
1496
- contents = de_DescribeBatchInferenceJobResponse(data, context);
1497
- const response = {
1498
- $metadata: deserializeMetadata(output),
1499
- ...contents,
1500
- };
1501
- return response;
1502
- };
1503
- exports.de_DescribeBatchInferenceJobCommand = de_DescribeBatchInferenceJobCommand;
1504
- const de_DescribeBatchInferenceJobCommandError = async (output, context) => {
1505
- const parsedOutput = {
1506
- ...output,
1507
- body: await parseErrorBody(output.body, context),
1508
- };
1509
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
- switch (errorCode) {
1511
- case "InvalidInputException":
1512
- case "com.amazonaws.personalize#InvalidInputException":
1513
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1514
- case "ResourceNotFoundException":
1515
- case "com.amazonaws.personalize#ResourceNotFoundException":
1516
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1517
- default:
1518
- const parsedBody = parsedOutput.body;
1519
- return throwDefaultError({
1520
- output,
1521
- parsedBody,
1522
- errorCode,
1523
- });
1524
- }
1525
- };
1526
- const de_DescribeBatchSegmentJobCommand = async (output, context) => {
1527
- if (output.statusCode >= 300) {
1528
- return de_DescribeBatchSegmentJobCommandError(output, context);
1529
- }
1530
- const data = await parseBody(output.body, context);
1531
- let contents = {};
1532
- contents = de_DescribeBatchSegmentJobResponse(data, context);
1533
- const response = {
1534
- $metadata: deserializeMetadata(output),
1535
- ...contents,
1536
- };
1537
- return response;
1538
- };
1539
- exports.de_DescribeBatchSegmentJobCommand = de_DescribeBatchSegmentJobCommand;
1540
- const de_DescribeBatchSegmentJobCommandError = async (output, context) => {
1541
- const parsedOutput = {
1542
- ...output,
1543
- body: await parseErrorBody(output.body, context),
1544
- };
1545
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
- switch (errorCode) {
1547
- case "InvalidInputException":
1548
- case "com.amazonaws.personalize#InvalidInputException":
1549
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1550
- case "ResourceNotFoundException":
1551
- case "com.amazonaws.personalize#ResourceNotFoundException":
1552
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1553
- default:
1554
- const parsedBody = parsedOutput.body;
1555
- return throwDefaultError({
1556
- output,
1557
- parsedBody,
1558
- errorCode,
1559
- });
1560
- }
1561
- };
1562
- const de_DescribeCampaignCommand = async (output, context) => {
1563
- if (output.statusCode >= 300) {
1564
- return de_DescribeCampaignCommandError(output, context);
1565
- }
1566
- const data = await parseBody(output.body, context);
1567
- let contents = {};
1568
- contents = de_DescribeCampaignResponse(data, context);
1569
- const response = {
1570
- $metadata: deserializeMetadata(output),
1571
- ...contents,
1572
- };
1573
- return response;
1574
- };
1575
- exports.de_DescribeCampaignCommand = de_DescribeCampaignCommand;
1576
- const de_DescribeCampaignCommandError = async (output, context) => {
1577
- const parsedOutput = {
1578
- ...output,
1579
- body: await parseErrorBody(output.body, context),
1580
- };
1581
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1582
- switch (errorCode) {
1583
- case "InvalidInputException":
1584
- case "com.amazonaws.personalize#InvalidInputException":
1585
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1586
- case "ResourceNotFoundException":
1587
- case "com.amazonaws.personalize#ResourceNotFoundException":
1588
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1589
- default:
1590
- const parsedBody = parsedOutput.body;
1591
- return throwDefaultError({
1592
- output,
1593
- parsedBody,
1594
- errorCode,
1595
- });
1596
- }
1597
- };
1598
- const de_DescribeDatasetCommand = async (output, context) => {
1599
- if (output.statusCode >= 300) {
1600
- return de_DescribeDatasetCommandError(output, context);
1601
- }
1602
- const data = await parseBody(output.body, context);
1603
- let contents = {};
1604
- contents = de_DescribeDatasetResponse(data, context);
1605
- const response = {
1606
- $metadata: deserializeMetadata(output),
1607
- ...contents,
1608
- };
1609
- return response;
1610
- };
1611
- exports.de_DescribeDatasetCommand = de_DescribeDatasetCommand;
1612
- const de_DescribeDatasetCommandError = async (output, context) => {
1613
- const parsedOutput = {
1614
- ...output,
1615
- body: await parseErrorBody(output.body, context),
1616
- };
1617
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1618
- switch (errorCode) {
1619
- case "InvalidInputException":
1620
- case "com.amazonaws.personalize#InvalidInputException":
1621
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1622
- case "ResourceNotFoundException":
1623
- case "com.amazonaws.personalize#ResourceNotFoundException":
1624
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1625
- default:
1626
- const parsedBody = parsedOutput.body;
1627
- return throwDefaultError({
1628
- output,
1629
- parsedBody,
1630
- errorCode,
1631
- });
1632
- }
1633
- };
1634
- const de_DescribeDatasetExportJobCommand = async (output, context) => {
1635
- if (output.statusCode >= 300) {
1636
- return de_DescribeDatasetExportJobCommandError(output, context);
1637
- }
1638
- const data = await parseBody(output.body, context);
1639
- let contents = {};
1640
- contents = de_DescribeDatasetExportJobResponse(data, context);
1641
- const response = {
1642
- $metadata: deserializeMetadata(output),
1643
- ...contents,
1644
- };
1645
- return response;
1646
- };
1647
- exports.de_DescribeDatasetExportJobCommand = de_DescribeDatasetExportJobCommand;
1648
- const de_DescribeDatasetExportJobCommandError = async (output, context) => {
1649
- const parsedOutput = {
1650
- ...output,
1651
- body: await parseErrorBody(output.body, context),
1652
- };
1653
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1654
- switch (errorCode) {
1655
- case "InvalidInputException":
1656
- case "com.amazonaws.personalize#InvalidInputException":
1657
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1658
- case "ResourceNotFoundException":
1659
- case "com.amazonaws.personalize#ResourceNotFoundException":
1660
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1661
- default:
1662
- const parsedBody = parsedOutput.body;
1663
- return throwDefaultError({
1664
- output,
1665
- parsedBody,
1666
- errorCode,
1667
- });
1668
- }
1669
- };
1670
- const de_DescribeDatasetGroupCommand = async (output, context) => {
1671
- if (output.statusCode >= 300) {
1672
- return de_DescribeDatasetGroupCommandError(output, context);
1673
- }
1674
- const data = await parseBody(output.body, context);
1675
- let contents = {};
1676
- contents = de_DescribeDatasetGroupResponse(data, context);
1677
- const response = {
1678
- $metadata: deserializeMetadata(output),
1679
- ...contents,
1680
- };
1681
- return response;
1682
- };
1683
- exports.de_DescribeDatasetGroupCommand = de_DescribeDatasetGroupCommand;
1684
- const de_DescribeDatasetGroupCommandError = async (output, context) => {
1685
- const parsedOutput = {
1686
- ...output,
1687
- body: await parseErrorBody(output.body, context),
1688
- };
1689
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1690
- switch (errorCode) {
1691
- case "InvalidInputException":
1692
- case "com.amazonaws.personalize#InvalidInputException":
1693
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1694
- case "ResourceNotFoundException":
1695
- case "com.amazonaws.personalize#ResourceNotFoundException":
1696
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1697
- default:
1698
- const parsedBody = parsedOutput.body;
1699
- return throwDefaultError({
1700
- output,
1701
- parsedBody,
1702
- errorCode,
1703
- });
1704
- }
1705
- };
1706
- const de_DescribeDatasetImportJobCommand = async (output, context) => {
1707
- if (output.statusCode >= 300) {
1708
- return de_DescribeDatasetImportJobCommandError(output, context);
1709
- }
1710
- const data = await parseBody(output.body, context);
1711
- let contents = {};
1712
- contents = de_DescribeDatasetImportJobResponse(data, context);
1713
- const response = {
1714
- $metadata: deserializeMetadata(output),
1715
- ...contents,
1716
- };
1717
- return response;
1718
- };
1719
- exports.de_DescribeDatasetImportJobCommand = de_DescribeDatasetImportJobCommand;
1720
- const de_DescribeDatasetImportJobCommandError = async (output, context) => {
1721
- const parsedOutput = {
1722
- ...output,
1723
- body: await parseErrorBody(output.body, context),
1724
- };
1725
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1726
- switch (errorCode) {
1727
- case "InvalidInputException":
1728
- case "com.amazonaws.personalize#InvalidInputException":
1729
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1730
- case "ResourceNotFoundException":
1731
- case "com.amazonaws.personalize#ResourceNotFoundException":
1732
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1733
- default:
1734
- const parsedBody = parsedOutput.body;
1735
- return throwDefaultError({
1736
- output,
1737
- parsedBody,
1738
- errorCode,
1739
- });
1740
- }
1741
- };
1742
- const de_DescribeEventTrackerCommand = async (output, context) => {
1743
- if (output.statusCode >= 300) {
1744
- return de_DescribeEventTrackerCommandError(output, context);
1745
- }
1746
- const data = await parseBody(output.body, context);
1747
- let contents = {};
1748
- contents = de_DescribeEventTrackerResponse(data, context);
1749
- const response = {
1750
- $metadata: deserializeMetadata(output),
1751
- ...contents,
1752
- };
1753
- return response;
1754
- };
1755
- exports.de_DescribeEventTrackerCommand = de_DescribeEventTrackerCommand;
1756
- const de_DescribeEventTrackerCommandError = async (output, context) => {
1757
- const parsedOutput = {
1758
- ...output,
1759
- body: await parseErrorBody(output.body, context),
1760
- };
1761
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1762
- switch (errorCode) {
1763
- case "InvalidInputException":
1764
- case "com.amazonaws.personalize#InvalidInputException":
1765
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1766
- case "ResourceNotFoundException":
1767
- case "com.amazonaws.personalize#ResourceNotFoundException":
1768
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1769
- default:
1770
- const parsedBody = parsedOutput.body;
1771
- return throwDefaultError({
1772
- output,
1773
- parsedBody,
1774
- errorCode,
1775
- });
1776
- }
1777
- };
1778
- const de_DescribeFeatureTransformationCommand = async (output, context) => {
1779
- if (output.statusCode >= 300) {
1780
- return de_DescribeFeatureTransformationCommandError(output, context);
1781
- }
1782
- const data = await parseBody(output.body, context);
1783
- let contents = {};
1784
- contents = de_DescribeFeatureTransformationResponse(data, context);
1785
- const response = {
1786
- $metadata: deserializeMetadata(output),
1787
- ...contents,
1788
- };
1789
- return response;
1790
- };
1791
- exports.de_DescribeFeatureTransformationCommand = de_DescribeFeatureTransformationCommand;
1792
- const de_DescribeFeatureTransformationCommandError = async (output, context) => {
1793
- const parsedOutput = {
1794
- ...output,
1795
- body: await parseErrorBody(output.body, context),
1796
- };
1797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
- switch (errorCode) {
1799
- case "InvalidInputException":
1800
- case "com.amazonaws.personalize#InvalidInputException":
1801
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1802
- case "ResourceNotFoundException":
1803
- case "com.amazonaws.personalize#ResourceNotFoundException":
1804
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1805
- default:
1806
- const parsedBody = parsedOutput.body;
1807
- return throwDefaultError({
1808
- output,
1809
- parsedBody,
1810
- errorCode,
1811
- });
1812
- }
1813
- };
1814
- const de_DescribeFilterCommand = async (output, context) => {
1815
- if (output.statusCode >= 300) {
1816
- return de_DescribeFilterCommandError(output, context);
1817
- }
1818
- const data = await parseBody(output.body, context);
1819
- let contents = {};
1820
- contents = de_DescribeFilterResponse(data, context);
1821
- const response = {
1822
- $metadata: deserializeMetadata(output),
1823
- ...contents,
1824
- };
1825
- return response;
1826
- };
1827
- exports.de_DescribeFilterCommand = de_DescribeFilterCommand;
1828
- const de_DescribeFilterCommandError = async (output, context) => {
1829
- const parsedOutput = {
1830
- ...output,
1831
- body: await parseErrorBody(output.body, context),
1832
- };
1833
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1834
- switch (errorCode) {
1835
- case "InvalidInputException":
1836
- case "com.amazonaws.personalize#InvalidInputException":
1837
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1838
- case "ResourceNotFoundException":
1839
- case "com.amazonaws.personalize#ResourceNotFoundException":
1840
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1841
- default:
1842
- const parsedBody = parsedOutput.body;
1843
- return throwDefaultError({
1844
- output,
1845
- parsedBody,
1846
- errorCode,
1847
- });
1848
- }
1849
- };
1850
- const de_DescribeMetricAttributionCommand = async (output, context) => {
1851
- if (output.statusCode >= 300) {
1852
- return de_DescribeMetricAttributionCommandError(output, context);
1853
- }
1854
- const data = await parseBody(output.body, context);
1855
- let contents = {};
1856
- contents = de_DescribeMetricAttributionResponse(data, context);
1857
- const response = {
1858
- $metadata: deserializeMetadata(output),
1859
- ...contents,
1860
- };
1861
- return response;
1862
- };
1863
- exports.de_DescribeMetricAttributionCommand = de_DescribeMetricAttributionCommand;
1864
- const de_DescribeMetricAttributionCommandError = async (output, context) => {
1865
- const parsedOutput = {
1866
- ...output,
1867
- body: await parseErrorBody(output.body, context),
1868
- };
1869
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1870
- switch (errorCode) {
1871
- case "InvalidInputException":
1872
- case "com.amazonaws.personalize#InvalidInputException":
1873
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1874
- case "ResourceNotFoundException":
1875
- case "com.amazonaws.personalize#ResourceNotFoundException":
1876
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1877
- default:
1878
- const parsedBody = parsedOutput.body;
1879
- return throwDefaultError({
1880
- output,
1881
- parsedBody,
1882
- errorCode,
1883
- });
1884
- }
1885
- };
1886
- const de_DescribeRecipeCommand = async (output, context) => {
1887
- if (output.statusCode >= 300) {
1888
- return de_DescribeRecipeCommandError(output, context);
1889
- }
1890
- const data = await parseBody(output.body, context);
1891
- let contents = {};
1892
- contents = de_DescribeRecipeResponse(data, context);
1893
- const response = {
1894
- $metadata: deserializeMetadata(output),
1895
- ...contents,
1896
- };
1897
- return response;
1898
- };
1899
- exports.de_DescribeRecipeCommand = de_DescribeRecipeCommand;
1900
- const de_DescribeRecipeCommandError = async (output, context) => {
1901
- const parsedOutput = {
1902
- ...output,
1903
- body: await parseErrorBody(output.body, context),
1904
- };
1905
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1906
- switch (errorCode) {
1907
- case "InvalidInputException":
1908
- case "com.amazonaws.personalize#InvalidInputException":
1909
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1910
- case "ResourceNotFoundException":
1911
- case "com.amazonaws.personalize#ResourceNotFoundException":
1912
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1913
- default:
1914
- const parsedBody = parsedOutput.body;
1915
- return throwDefaultError({
1916
- output,
1917
- parsedBody,
1918
- errorCode,
1919
- });
1920
- }
1921
- };
1922
- const de_DescribeRecommenderCommand = async (output, context) => {
1923
- if (output.statusCode >= 300) {
1924
- return de_DescribeRecommenderCommandError(output, context);
1925
- }
1926
- const data = await parseBody(output.body, context);
1927
- let contents = {};
1928
- contents = de_DescribeRecommenderResponse(data, context);
1929
- const response = {
1930
- $metadata: deserializeMetadata(output),
1931
- ...contents,
1932
- };
1933
- return response;
1934
- };
1935
- exports.de_DescribeRecommenderCommand = de_DescribeRecommenderCommand;
1936
- const de_DescribeRecommenderCommandError = async (output, context) => {
1937
- const parsedOutput = {
1938
- ...output,
1939
- body: await parseErrorBody(output.body, context),
1940
- };
1941
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1942
- switch (errorCode) {
1943
- case "InvalidInputException":
1944
- case "com.amazonaws.personalize#InvalidInputException":
1945
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1946
- case "ResourceNotFoundException":
1947
- case "com.amazonaws.personalize#ResourceNotFoundException":
1948
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1949
- default:
1950
- const parsedBody = parsedOutput.body;
1951
- return throwDefaultError({
1952
- output,
1953
- parsedBody,
1954
- errorCode,
1955
- });
1956
- }
1957
- };
1958
- const de_DescribeSchemaCommand = async (output, context) => {
1959
- if (output.statusCode >= 300) {
1960
- return de_DescribeSchemaCommandError(output, context);
1961
- }
1962
- const data = await parseBody(output.body, context);
1963
- let contents = {};
1964
- contents = de_DescribeSchemaResponse(data, context);
1965
- const response = {
1966
- $metadata: deserializeMetadata(output),
1967
- ...contents,
1968
- };
1969
- return response;
1970
- };
1971
- exports.de_DescribeSchemaCommand = de_DescribeSchemaCommand;
1972
- const de_DescribeSchemaCommandError = async (output, context) => {
1973
- const parsedOutput = {
1974
- ...output,
1975
- body: await parseErrorBody(output.body, context),
1976
- };
1977
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1978
- switch (errorCode) {
1979
- case "InvalidInputException":
1980
- case "com.amazonaws.personalize#InvalidInputException":
1981
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1982
- case "ResourceNotFoundException":
1983
- case "com.amazonaws.personalize#ResourceNotFoundException":
1984
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1985
- default:
1986
- const parsedBody = parsedOutput.body;
1987
- return throwDefaultError({
1988
- output,
1989
- parsedBody,
1990
- errorCode,
1991
- });
1992
- }
1993
- };
1994
- const de_DescribeSolutionCommand = async (output, context) => {
1995
- if (output.statusCode >= 300) {
1996
- return de_DescribeSolutionCommandError(output, context);
1997
- }
1998
- const data = await parseBody(output.body, context);
1999
- let contents = {};
2000
- contents = de_DescribeSolutionResponse(data, context);
2001
- const response = {
2002
- $metadata: deserializeMetadata(output),
2003
- ...contents,
2004
- };
2005
- return response;
2006
- };
2007
- exports.de_DescribeSolutionCommand = de_DescribeSolutionCommand;
2008
- const de_DescribeSolutionCommandError = async (output, context) => {
2009
- const parsedOutput = {
2010
- ...output,
2011
- body: await parseErrorBody(output.body, context),
2012
- };
2013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2014
- switch (errorCode) {
2015
- case "InvalidInputException":
2016
- case "com.amazonaws.personalize#InvalidInputException":
2017
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2018
- case "ResourceNotFoundException":
2019
- case "com.amazonaws.personalize#ResourceNotFoundException":
2020
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2021
- default:
2022
- const parsedBody = parsedOutput.body;
2023
- return throwDefaultError({
2024
- output,
2025
- parsedBody,
2026
- errorCode,
2027
- });
2028
- }
2029
- };
2030
- const de_DescribeSolutionVersionCommand = async (output, context) => {
2031
- if (output.statusCode >= 300) {
2032
- return de_DescribeSolutionVersionCommandError(output, context);
2033
- }
2034
- const data = await parseBody(output.body, context);
2035
- let contents = {};
2036
- contents = de_DescribeSolutionVersionResponse(data, context);
2037
- const response = {
2038
- $metadata: deserializeMetadata(output),
2039
- ...contents,
2040
- };
2041
- return response;
2042
- };
2043
- exports.de_DescribeSolutionVersionCommand = de_DescribeSolutionVersionCommand;
2044
- const de_DescribeSolutionVersionCommandError = async (output, context) => {
2045
- const parsedOutput = {
2046
- ...output,
2047
- body: await parseErrorBody(output.body, context),
2048
- };
2049
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2050
- switch (errorCode) {
2051
- case "InvalidInputException":
2052
- case "com.amazonaws.personalize#InvalidInputException":
2053
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2054
- case "ResourceNotFoundException":
2055
- case "com.amazonaws.personalize#ResourceNotFoundException":
2056
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2057
- default:
2058
- const parsedBody = parsedOutput.body;
2059
- return throwDefaultError({
2060
- output,
2061
- parsedBody,
2062
- errorCode,
2063
- });
2064
- }
2065
- };
2066
- const de_GetSolutionMetricsCommand = async (output, context) => {
2067
- if (output.statusCode >= 300) {
2068
- return de_GetSolutionMetricsCommandError(output, context);
2069
- }
2070
- const data = await parseBody(output.body, context);
2071
- let contents = {};
2072
- contents = de_GetSolutionMetricsResponse(data, context);
2073
- const response = {
2074
- $metadata: deserializeMetadata(output),
2075
- ...contents,
2076
- };
2077
- return response;
2078
- };
2079
- exports.de_GetSolutionMetricsCommand = de_GetSolutionMetricsCommand;
2080
- const de_GetSolutionMetricsCommandError = async (output, context) => {
2081
- const parsedOutput = {
2082
- ...output,
2083
- body: await parseErrorBody(output.body, context),
2084
- };
2085
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
- switch (errorCode) {
2087
- case "InvalidInputException":
2088
- case "com.amazonaws.personalize#InvalidInputException":
2089
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2090
- case "ResourceInUseException":
2091
- case "com.amazonaws.personalize#ResourceInUseException":
2092
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2093
- case "ResourceNotFoundException":
2094
- case "com.amazonaws.personalize#ResourceNotFoundException":
2095
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2096
- default:
2097
- const parsedBody = parsedOutput.body;
2098
- return throwDefaultError({
2099
- output,
2100
- parsedBody,
2101
- errorCode,
2102
- });
2103
- }
2104
- };
2105
- const de_ListBatchInferenceJobsCommand = async (output, context) => {
2106
- if (output.statusCode >= 300) {
2107
- return de_ListBatchInferenceJobsCommandError(output, context);
2108
- }
2109
- const data = await parseBody(output.body, context);
2110
- let contents = {};
2111
- contents = de_ListBatchInferenceJobsResponse(data, context);
2112
- const response = {
2113
- $metadata: deserializeMetadata(output),
2114
- ...contents,
2115
- };
2116
- return response;
2117
- };
2118
- exports.de_ListBatchInferenceJobsCommand = de_ListBatchInferenceJobsCommand;
2119
- const de_ListBatchInferenceJobsCommandError = async (output, context) => {
2120
- const parsedOutput = {
2121
- ...output,
2122
- body: await parseErrorBody(output.body, context),
2123
- };
2124
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2125
- switch (errorCode) {
2126
- case "InvalidInputException":
2127
- case "com.amazonaws.personalize#InvalidInputException":
2128
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2129
- case "InvalidNextTokenException":
2130
- case "com.amazonaws.personalize#InvalidNextTokenException":
2131
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2132
- default:
2133
- const parsedBody = parsedOutput.body;
2134
- return throwDefaultError({
2135
- output,
2136
- parsedBody,
2137
- errorCode,
2138
- });
2139
- }
2140
- };
2141
- const de_ListBatchSegmentJobsCommand = async (output, context) => {
2142
- if (output.statusCode >= 300) {
2143
- return de_ListBatchSegmentJobsCommandError(output, context);
2144
- }
2145
- const data = await parseBody(output.body, context);
2146
- let contents = {};
2147
- contents = de_ListBatchSegmentJobsResponse(data, context);
2148
- const response = {
2149
- $metadata: deserializeMetadata(output),
2150
- ...contents,
2151
- };
2152
- return response;
2153
- };
2154
- exports.de_ListBatchSegmentJobsCommand = de_ListBatchSegmentJobsCommand;
2155
- const de_ListBatchSegmentJobsCommandError = async (output, context) => {
2156
- const parsedOutput = {
2157
- ...output,
2158
- body: await parseErrorBody(output.body, context),
2159
- };
2160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2161
- switch (errorCode) {
2162
- case "InvalidInputException":
2163
- case "com.amazonaws.personalize#InvalidInputException":
2164
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2165
- case "InvalidNextTokenException":
2166
- case "com.amazonaws.personalize#InvalidNextTokenException":
2167
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2168
- default:
2169
- const parsedBody = parsedOutput.body;
2170
- return throwDefaultError({
2171
- output,
2172
- parsedBody,
2173
- errorCode,
2174
- });
2175
- }
2176
- };
2177
- const de_ListCampaignsCommand = async (output, context) => {
2178
- if (output.statusCode >= 300) {
2179
- return de_ListCampaignsCommandError(output, context);
2180
- }
2181
- const data = await parseBody(output.body, context);
2182
- let contents = {};
2183
- contents = de_ListCampaignsResponse(data, context);
2184
- const response = {
2185
- $metadata: deserializeMetadata(output),
2186
- ...contents,
2187
- };
2188
- return response;
2189
- };
2190
- exports.de_ListCampaignsCommand = de_ListCampaignsCommand;
2191
- const de_ListCampaignsCommandError = async (output, context) => {
2192
- const parsedOutput = {
2193
- ...output,
2194
- body: await parseErrorBody(output.body, context),
2195
- };
2196
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2197
- switch (errorCode) {
2198
- case "InvalidInputException":
2199
- case "com.amazonaws.personalize#InvalidInputException":
2200
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2201
- case "InvalidNextTokenException":
2202
- case "com.amazonaws.personalize#InvalidNextTokenException":
2203
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2204
- default:
2205
- const parsedBody = parsedOutput.body;
2206
- return throwDefaultError({
2207
- output,
2208
- parsedBody,
2209
- errorCode,
2210
- });
2211
- }
2212
- };
2213
- const de_ListDatasetExportJobsCommand = async (output, context) => {
2214
- if (output.statusCode >= 300) {
2215
- return de_ListDatasetExportJobsCommandError(output, context);
2216
- }
2217
- const data = await parseBody(output.body, context);
2218
- let contents = {};
2219
- contents = de_ListDatasetExportJobsResponse(data, context);
2220
- const response = {
2221
- $metadata: deserializeMetadata(output),
2222
- ...contents,
2223
- };
2224
- return response;
2225
- };
2226
- exports.de_ListDatasetExportJobsCommand = de_ListDatasetExportJobsCommand;
2227
- const de_ListDatasetExportJobsCommandError = async (output, context) => {
2228
- const parsedOutput = {
2229
- ...output,
2230
- body: await parseErrorBody(output.body, context),
2231
- };
2232
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2233
- switch (errorCode) {
2234
- case "InvalidInputException":
2235
- case "com.amazonaws.personalize#InvalidInputException":
2236
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2237
- case "InvalidNextTokenException":
2238
- case "com.amazonaws.personalize#InvalidNextTokenException":
2239
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2240
- default:
2241
- const parsedBody = parsedOutput.body;
2242
- return throwDefaultError({
2243
- output,
2244
- parsedBody,
2245
- errorCode,
2246
- });
2247
- }
2248
- };
2249
- const de_ListDatasetGroupsCommand = async (output, context) => {
2250
- if (output.statusCode >= 300) {
2251
- return de_ListDatasetGroupsCommandError(output, context);
2252
- }
2253
- const data = await parseBody(output.body, context);
2254
- let contents = {};
2255
- contents = de_ListDatasetGroupsResponse(data, context);
2256
- const response = {
2257
- $metadata: deserializeMetadata(output),
2258
- ...contents,
2259
- };
2260
- return response;
2261
- };
2262
- exports.de_ListDatasetGroupsCommand = de_ListDatasetGroupsCommand;
2263
- const de_ListDatasetGroupsCommandError = async (output, context) => {
2264
- const parsedOutput = {
2265
- ...output,
2266
- body: await parseErrorBody(output.body, context),
2267
- };
2268
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2269
- switch (errorCode) {
2270
- case "InvalidNextTokenException":
2271
- case "com.amazonaws.personalize#InvalidNextTokenException":
2272
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2273
- default:
2274
- const parsedBody = parsedOutput.body;
2275
- return throwDefaultError({
2276
- output,
2277
- parsedBody,
2278
- errorCode,
2279
- });
2280
- }
2281
- };
2282
- const de_ListDatasetImportJobsCommand = async (output, context) => {
2283
- if (output.statusCode >= 300) {
2284
- return de_ListDatasetImportJobsCommandError(output, context);
2285
- }
2286
- const data = await parseBody(output.body, context);
2287
- let contents = {};
2288
- contents = de_ListDatasetImportJobsResponse(data, context);
2289
- const response = {
2290
- $metadata: deserializeMetadata(output),
2291
- ...contents,
2292
- };
2293
- return response;
2294
- };
2295
- exports.de_ListDatasetImportJobsCommand = de_ListDatasetImportJobsCommand;
2296
- const de_ListDatasetImportJobsCommandError = async (output, context) => {
2297
- const parsedOutput = {
2298
- ...output,
2299
- body: await parseErrorBody(output.body, context),
2300
- };
2301
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2302
- switch (errorCode) {
2303
- case "InvalidInputException":
2304
- case "com.amazonaws.personalize#InvalidInputException":
2305
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2306
- case "InvalidNextTokenException":
2307
- case "com.amazonaws.personalize#InvalidNextTokenException":
2308
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2309
- default:
2310
- const parsedBody = parsedOutput.body;
2311
- return throwDefaultError({
2312
- output,
2313
- parsedBody,
2314
- errorCode,
2315
- });
2316
- }
2317
- };
2318
- const de_ListDatasetsCommand = async (output, context) => {
2319
- if (output.statusCode >= 300) {
2320
- return de_ListDatasetsCommandError(output, context);
2321
- }
2322
- const data = await parseBody(output.body, context);
2323
- let contents = {};
2324
- contents = de_ListDatasetsResponse(data, context);
2325
- const response = {
2326
- $metadata: deserializeMetadata(output),
2327
- ...contents,
2328
- };
2329
- return response;
2330
- };
2331
- exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
2332
- const de_ListDatasetsCommandError = async (output, context) => {
2333
- const parsedOutput = {
2334
- ...output,
2335
- body: await parseErrorBody(output.body, context),
2336
- };
2337
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2338
- switch (errorCode) {
2339
- case "InvalidInputException":
2340
- case "com.amazonaws.personalize#InvalidInputException":
2341
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2342
- case "InvalidNextTokenException":
2343
- case "com.amazonaws.personalize#InvalidNextTokenException":
2344
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2345
- default:
2346
- const parsedBody = parsedOutput.body;
2347
- return throwDefaultError({
2348
- output,
2349
- parsedBody,
2350
- errorCode,
2351
- });
2352
- }
2353
- };
2354
- const de_ListEventTrackersCommand = async (output, context) => {
2355
- if (output.statusCode >= 300) {
2356
- return de_ListEventTrackersCommandError(output, context);
2357
- }
2358
- const data = await parseBody(output.body, context);
2359
- let contents = {};
2360
- contents = de_ListEventTrackersResponse(data, context);
2361
- const response = {
2362
- $metadata: deserializeMetadata(output),
2363
- ...contents,
2364
- };
2365
- return response;
2366
- };
2367
- exports.de_ListEventTrackersCommand = de_ListEventTrackersCommand;
2368
- const de_ListEventTrackersCommandError = async (output, context) => {
2369
- const parsedOutput = {
2370
- ...output,
2371
- body: await parseErrorBody(output.body, context),
2372
- };
2373
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2374
- switch (errorCode) {
2375
- case "InvalidInputException":
2376
- case "com.amazonaws.personalize#InvalidInputException":
2377
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2378
- case "InvalidNextTokenException":
2379
- case "com.amazonaws.personalize#InvalidNextTokenException":
2380
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2381
- default:
2382
- const parsedBody = parsedOutput.body;
2383
- return throwDefaultError({
2384
- output,
2385
- parsedBody,
2386
- errorCode,
2387
- });
2388
- }
2389
- };
2390
- const de_ListFiltersCommand = async (output, context) => {
2391
- if (output.statusCode >= 300) {
2392
- return de_ListFiltersCommandError(output, context);
2393
- }
2394
- const data = await parseBody(output.body, context);
2395
- let contents = {};
2396
- contents = de_ListFiltersResponse(data, context);
2397
- const response = {
2398
- $metadata: deserializeMetadata(output),
2399
- ...contents,
2400
- };
2401
- return response;
2402
- };
2403
- exports.de_ListFiltersCommand = de_ListFiltersCommand;
2404
- const de_ListFiltersCommandError = async (output, context) => {
2405
- const parsedOutput = {
2406
- ...output,
2407
- body: await parseErrorBody(output.body, context),
2408
- };
2409
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2410
- switch (errorCode) {
2411
- case "InvalidInputException":
2412
- case "com.amazonaws.personalize#InvalidInputException":
2413
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2414
- case "InvalidNextTokenException":
2415
- case "com.amazonaws.personalize#InvalidNextTokenException":
2416
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2417
- default:
2418
- const parsedBody = parsedOutput.body;
2419
- return throwDefaultError({
2420
- output,
2421
- parsedBody,
2422
- errorCode,
2423
- });
2424
- }
2425
- };
2426
- const de_ListMetricAttributionMetricsCommand = async (output, context) => {
2427
- if (output.statusCode >= 300) {
2428
- return de_ListMetricAttributionMetricsCommandError(output, context);
2429
- }
2430
- const data = await parseBody(output.body, context);
2431
- let contents = {};
2432
- contents = (0, smithy_client_1._json)(data);
2433
- const response = {
2434
- $metadata: deserializeMetadata(output),
2435
- ...contents,
2436
- };
2437
- return response;
2438
- };
2439
- exports.de_ListMetricAttributionMetricsCommand = de_ListMetricAttributionMetricsCommand;
2440
- const de_ListMetricAttributionMetricsCommandError = async (output, context) => {
2441
- const parsedOutput = {
2442
- ...output,
2443
- body: await parseErrorBody(output.body, context),
2444
- };
2445
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2446
- switch (errorCode) {
2447
- case "InvalidInputException":
2448
- case "com.amazonaws.personalize#InvalidInputException":
2449
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2450
- case "InvalidNextTokenException":
2451
- case "com.amazonaws.personalize#InvalidNextTokenException":
2452
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2453
- default:
2454
- const parsedBody = parsedOutput.body;
2455
- return throwDefaultError({
2456
- output,
2457
- parsedBody,
2458
- errorCode,
2459
- });
2460
- }
2461
- };
2462
- const de_ListMetricAttributionsCommand = async (output, context) => {
2463
- if (output.statusCode >= 300) {
2464
- return de_ListMetricAttributionsCommandError(output, context);
2465
- }
2466
- const data = await parseBody(output.body, context);
2467
- let contents = {};
2468
- contents = de_ListMetricAttributionsResponse(data, context);
2469
- const response = {
2470
- $metadata: deserializeMetadata(output),
2471
- ...contents,
2472
- };
2473
- return response;
2474
- };
2475
- exports.de_ListMetricAttributionsCommand = de_ListMetricAttributionsCommand;
2476
- const de_ListMetricAttributionsCommandError = async (output, context) => {
2477
- const parsedOutput = {
2478
- ...output,
2479
- body: await parseErrorBody(output.body, context),
2480
- };
2481
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2482
- switch (errorCode) {
2483
- case "InvalidInputException":
2484
- case "com.amazonaws.personalize#InvalidInputException":
2485
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2486
- case "InvalidNextTokenException":
2487
- case "com.amazonaws.personalize#InvalidNextTokenException":
2488
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2489
- default:
2490
- const parsedBody = parsedOutput.body;
2491
- return throwDefaultError({
2492
- output,
2493
- parsedBody,
2494
- errorCode,
2495
- });
2496
- }
2497
- };
2498
- const de_ListRecipesCommand = async (output, context) => {
2499
- if (output.statusCode >= 300) {
2500
- return de_ListRecipesCommandError(output, context);
2501
- }
2502
- const data = await parseBody(output.body, context);
2503
- let contents = {};
2504
- contents = de_ListRecipesResponse(data, context);
2505
- const response = {
2506
- $metadata: deserializeMetadata(output),
2507
- ...contents,
2508
- };
2509
- return response;
2510
- };
2511
- exports.de_ListRecipesCommand = de_ListRecipesCommand;
2512
- const de_ListRecipesCommandError = async (output, context) => {
2513
- const parsedOutput = {
2514
- ...output,
2515
- body: await parseErrorBody(output.body, context),
2516
- };
2517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2518
- switch (errorCode) {
2519
- case "InvalidInputException":
2520
- case "com.amazonaws.personalize#InvalidInputException":
2521
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2522
- case "InvalidNextTokenException":
2523
- case "com.amazonaws.personalize#InvalidNextTokenException":
2524
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2525
- default:
2526
- const parsedBody = parsedOutput.body;
2527
- return throwDefaultError({
2528
- output,
2529
- parsedBody,
2530
- errorCode,
2531
- });
2532
- }
2533
- };
2534
- const de_ListRecommendersCommand = async (output, context) => {
2535
- if (output.statusCode >= 300) {
2536
- return de_ListRecommendersCommandError(output, context);
2537
- }
2538
- const data = await parseBody(output.body, context);
2539
- let contents = {};
2540
- contents = de_ListRecommendersResponse(data, context);
2541
- const response = {
2542
- $metadata: deserializeMetadata(output),
2543
- ...contents,
2544
- };
2545
- return response;
2546
- };
2547
- exports.de_ListRecommendersCommand = de_ListRecommendersCommand;
2548
- const de_ListRecommendersCommandError = async (output, context) => {
2549
- const parsedOutput = {
2550
- ...output,
2551
- body: await parseErrorBody(output.body, context),
2552
- };
2553
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2554
- switch (errorCode) {
2555
- case "InvalidInputException":
2556
- case "com.amazonaws.personalize#InvalidInputException":
2557
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2558
- case "InvalidNextTokenException":
2559
- case "com.amazonaws.personalize#InvalidNextTokenException":
2560
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2561
- default:
2562
- const parsedBody = parsedOutput.body;
2563
- return throwDefaultError({
2564
- output,
2565
- parsedBody,
2566
- errorCode,
2567
- });
2568
- }
2569
- };
2570
- const de_ListSchemasCommand = async (output, context) => {
2571
- if (output.statusCode >= 300) {
2572
- return de_ListSchemasCommandError(output, context);
2573
- }
2574
- const data = await parseBody(output.body, context);
2575
- let contents = {};
2576
- contents = de_ListSchemasResponse(data, context);
2577
- const response = {
2578
- $metadata: deserializeMetadata(output),
2579
- ...contents,
2580
- };
2581
- return response;
2582
- };
2583
- exports.de_ListSchemasCommand = de_ListSchemasCommand;
2584
- const de_ListSchemasCommandError = async (output, context) => {
2585
- const parsedOutput = {
2586
- ...output,
2587
- body: await parseErrorBody(output.body, context),
2588
- };
2589
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2590
- switch (errorCode) {
2591
- case "InvalidNextTokenException":
2592
- case "com.amazonaws.personalize#InvalidNextTokenException":
2593
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2594
- default:
2595
- const parsedBody = parsedOutput.body;
2596
- return throwDefaultError({
2597
- output,
2598
- parsedBody,
2599
- errorCode,
2600
- });
2601
- }
2602
- };
2603
- const de_ListSolutionsCommand = async (output, context) => {
2604
- if (output.statusCode >= 300) {
2605
- return de_ListSolutionsCommandError(output, context);
2606
- }
2607
- const data = await parseBody(output.body, context);
2608
- let contents = {};
2609
- contents = de_ListSolutionsResponse(data, context);
2610
- const response = {
2611
- $metadata: deserializeMetadata(output),
2612
- ...contents,
2613
- };
2614
- return response;
2615
- };
2616
- exports.de_ListSolutionsCommand = de_ListSolutionsCommand;
2617
- const de_ListSolutionsCommandError = async (output, context) => {
2618
- const parsedOutput = {
2619
- ...output,
2620
- body: await parseErrorBody(output.body, context),
2621
- };
2622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2623
- switch (errorCode) {
2624
- case "InvalidInputException":
2625
- case "com.amazonaws.personalize#InvalidInputException":
2626
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2627
- case "InvalidNextTokenException":
2628
- case "com.amazonaws.personalize#InvalidNextTokenException":
2629
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2630
- default:
2631
- const parsedBody = parsedOutput.body;
2632
- return throwDefaultError({
2633
- output,
2634
- parsedBody,
2635
- errorCode,
2636
- });
2637
- }
2638
- };
2639
- const de_ListSolutionVersionsCommand = async (output, context) => {
2640
- if (output.statusCode >= 300) {
2641
- return de_ListSolutionVersionsCommandError(output, context);
2642
- }
2643
- const data = await parseBody(output.body, context);
2644
- let contents = {};
2645
- contents = de_ListSolutionVersionsResponse(data, context);
2646
- const response = {
2647
- $metadata: deserializeMetadata(output),
2648
- ...contents,
2649
- };
2650
- return response;
2651
- };
2652
- exports.de_ListSolutionVersionsCommand = de_ListSolutionVersionsCommand;
2653
- const de_ListSolutionVersionsCommandError = async (output, context) => {
2654
- const parsedOutput = {
2655
- ...output,
2656
- body: await parseErrorBody(output.body, context),
2657
- };
2658
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2659
- switch (errorCode) {
2660
- case "InvalidInputException":
2661
- case "com.amazonaws.personalize#InvalidInputException":
2662
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2663
- case "InvalidNextTokenException":
2664
- case "com.amazonaws.personalize#InvalidNextTokenException":
2665
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2666
- case "ResourceNotFoundException":
2667
- case "com.amazonaws.personalize#ResourceNotFoundException":
2668
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2669
- default:
2670
- const parsedBody = parsedOutput.body;
2671
- return throwDefaultError({
2672
- output,
2673
- parsedBody,
2674
- errorCode,
2675
- });
2676
- }
2677
- };
2678
- const de_ListTagsForResourceCommand = async (output, context) => {
2679
- if (output.statusCode >= 300) {
2680
- return de_ListTagsForResourceCommandError(output, context);
2681
- }
2682
- const data = await parseBody(output.body, context);
2683
- let contents = {};
2684
- contents = (0, smithy_client_1._json)(data);
2685
- const response = {
2686
- $metadata: deserializeMetadata(output),
2687
- ...contents,
2688
- };
2689
- return response;
2690
- };
2691
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2692
- const de_ListTagsForResourceCommandError = async (output, context) => {
2693
- const parsedOutput = {
2694
- ...output,
2695
- body: await parseErrorBody(output.body, context),
2696
- };
2697
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2698
- switch (errorCode) {
2699
- case "InvalidInputException":
2700
- case "com.amazonaws.personalize#InvalidInputException":
2701
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2702
- case "ResourceInUseException":
2703
- case "com.amazonaws.personalize#ResourceInUseException":
2704
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2705
- case "ResourceNotFoundException":
2706
- case "com.amazonaws.personalize#ResourceNotFoundException":
2707
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2708
- default:
2709
- const parsedBody = parsedOutput.body;
2710
- return throwDefaultError({
2711
- output,
2712
- parsedBody,
2713
- errorCode,
2714
- });
2715
- }
2716
- };
2717
- const de_StartRecommenderCommand = async (output, context) => {
2718
- if (output.statusCode >= 300) {
2719
- return de_StartRecommenderCommandError(output, context);
2720
- }
2721
- const data = await parseBody(output.body, context);
2722
- let contents = {};
2723
- contents = (0, smithy_client_1._json)(data);
2724
- const response = {
2725
- $metadata: deserializeMetadata(output),
2726
- ...contents,
2727
- };
2728
- return response;
2729
- };
2730
- exports.de_StartRecommenderCommand = de_StartRecommenderCommand;
2731
- const de_StartRecommenderCommandError = async (output, context) => {
2732
- const parsedOutput = {
2733
- ...output,
2734
- body: await parseErrorBody(output.body, context),
2735
- };
2736
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2737
- switch (errorCode) {
2738
- case "InvalidInputException":
2739
- case "com.amazonaws.personalize#InvalidInputException":
2740
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2741
- case "ResourceInUseException":
2742
- case "com.amazonaws.personalize#ResourceInUseException":
2743
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2744
- case "ResourceNotFoundException":
2745
- case "com.amazonaws.personalize#ResourceNotFoundException":
2746
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2747
- default:
2748
- const parsedBody = parsedOutput.body;
2749
- return throwDefaultError({
2750
- output,
2751
- parsedBody,
2752
- errorCode,
2753
- });
2754
- }
2755
- };
2756
- const de_StopRecommenderCommand = async (output, context) => {
2757
- if (output.statusCode >= 300) {
2758
- return de_StopRecommenderCommandError(output, context);
2759
- }
2760
- const data = await parseBody(output.body, context);
2761
- let contents = {};
2762
- contents = (0, smithy_client_1._json)(data);
2763
- const response = {
2764
- $metadata: deserializeMetadata(output),
2765
- ...contents,
2766
- };
2767
- return response;
2768
- };
2769
- exports.de_StopRecommenderCommand = de_StopRecommenderCommand;
2770
- const de_StopRecommenderCommandError = async (output, context) => {
2771
- const parsedOutput = {
2772
- ...output,
2773
- body: await parseErrorBody(output.body, context),
2774
- };
2775
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2776
- switch (errorCode) {
2777
- case "InvalidInputException":
2778
- case "com.amazonaws.personalize#InvalidInputException":
2779
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2780
- case "ResourceInUseException":
2781
- case "com.amazonaws.personalize#ResourceInUseException":
2782
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2783
- case "ResourceNotFoundException":
2784
- case "com.amazonaws.personalize#ResourceNotFoundException":
2785
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2786
- default:
2787
- const parsedBody = parsedOutput.body;
2788
- return throwDefaultError({
2789
- output,
2790
- parsedBody,
2791
- errorCode,
2792
- });
2793
- }
2794
- };
2795
- const de_StopSolutionVersionCreationCommand = async (output, context) => {
2796
- if (output.statusCode >= 300) {
2797
- return de_StopSolutionVersionCreationCommandError(output, context);
2798
- }
2799
- await (0, smithy_client_1.collectBody)(output.body, context);
2800
- const response = {
2801
- $metadata: deserializeMetadata(output),
2802
- };
2803
- return response;
2804
- };
2805
- exports.de_StopSolutionVersionCreationCommand = de_StopSolutionVersionCreationCommand;
2806
- const de_StopSolutionVersionCreationCommandError = async (output, context) => {
2807
- const parsedOutput = {
2808
- ...output,
2809
- body: await parseErrorBody(output.body, context),
2810
- };
2811
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2812
- switch (errorCode) {
2813
- case "InvalidInputException":
2814
- case "com.amazonaws.personalize#InvalidInputException":
2815
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2816
- case "ResourceInUseException":
2817
- case "com.amazonaws.personalize#ResourceInUseException":
2818
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2819
- case "ResourceNotFoundException":
2820
- case "com.amazonaws.personalize#ResourceNotFoundException":
2821
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2822
- default:
2823
- const parsedBody = parsedOutput.body;
2824
- return throwDefaultError({
2825
- output,
2826
- parsedBody,
2827
- errorCode,
2828
- });
2829
- }
2830
- };
2831
- const de_TagResourceCommand = async (output, context) => {
2832
- if (output.statusCode >= 300) {
2833
- return de_TagResourceCommandError(output, context);
2834
- }
2835
- const data = await parseBody(output.body, context);
2836
- let contents = {};
2837
- contents = (0, smithy_client_1._json)(data);
2838
- const response = {
2839
- $metadata: deserializeMetadata(output),
2840
- ...contents,
2841
- };
2842
- return response;
2843
- };
2844
- exports.de_TagResourceCommand = de_TagResourceCommand;
2845
- const de_TagResourceCommandError = async (output, context) => {
2846
- const parsedOutput = {
2847
- ...output,
2848
- body: await parseErrorBody(output.body, context),
2849
- };
2850
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2851
- switch (errorCode) {
2852
- case "InvalidInputException":
2853
- case "com.amazonaws.personalize#InvalidInputException":
2854
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2855
- case "LimitExceededException":
2856
- case "com.amazonaws.personalize#LimitExceededException":
2857
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2858
- case "ResourceInUseException":
2859
- case "com.amazonaws.personalize#ResourceInUseException":
2860
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2861
- case "ResourceNotFoundException":
2862
- case "com.amazonaws.personalize#ResourceNotFoundException":
2863
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2864
- case "TooManyTagsException":
2865
- case "com.amazonaws.personalize#TooManyTagsException":
2866
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2867
- default:
2868
- const parsedBody = parsedOutput.body;
2869
- return throwDefaultError({
2870
- output,
2871
- parsedBody,
2872
- errorCode,
2873
- });
2874
- }
2875
- };
2876
- const de_UntagResourceCommand = async (output, context) => {
2877
- if (output.statusCode >= 300) {
2878
- return de_UntagResourceCommandError(output, context);
2879
- }
2880
- const data = await parseBody(output.body, context);
2881
- let contents = {};
2882
- contents = (0, smithy_client_1._json)(data);
2883
- const response = {
2884
- $metadata: deserializeMetadata(output),
2885
- ...contents,
2886
- };
2887
- return response;
2888
- };
2889
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2890
- const de_UntagResourceCommandError = async (output, context) => {
2891
- const parsedOutput = {
2892
- ...output,
2893
- body: await parseErrorBody(output.body, context),
2894
- };
2895
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2896
- switch (errorCode) {
2897
- case "InvalidInputException":
2898
- case "com.amazonaws.personalize#InvalidInputException":
2899
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2900
- case "ResourceInUseException":
2901
- case "com.amazonaws.personalize#ResourceInUseException":
2902
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2903
- case "ResourceNotFoundException":
2904
- case "com.amazonaws.personalize#ResourceNotFoundException":
2905
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2906
- case "TooManyTagKeysException":
2907
- case "com.amazonaws.personalize#TooManyTagKeysException":
2908
- throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
2909
- default:
2910
- const parsedBody = parsedOutput.body;
2911
- return throwDefaultError({
2912
- output,
2913
- parsedBody,
2914
- errorCode,
2915
- });
2916
- }
2917
- };
2918
- const de_UpdateCampaignCommand = async (output, context) => {
2919
- if (output.statusCode >= 300) {
2920
- return de_UpdateCampaignCommandError(output, context);
2921
- }
2922
- const data = await parseBody(output.body, context);
2923
- let contents = {};
2924
- contents = (0, smithy_client_1._json)(data);
2925
- const response = {
2926
- $metadata: deserializeMetadata(output),
2927
- ...contents,
2928
- };
2929
- return response;
2930
- };
2931
- exports.de_UpdateCampaignCommand = de_UpdateCampaignCommand;
2932
- const de_UpdateCampaignCommandError = async (output, context) => {
2933
- const parsedOutput = {
2934
- ...output,
2935
- body: await parseErrorBody(output.body, context),
2936
- };
2937
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2938
- switch (errorCode) {
2939
- case "InvalidInputException":
2940
- case "com.amazonaws.personalize#InvalidInputException":
2941
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2942
- case "ResourceInUseException":
2943
- case "com.amazonaws.personalize#ResourceInUseException":
2944
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2945
- case "ResourceNotFoundException":
2946
- case "com.amazonaws.personalize#ResourceNotFoundException":
2947
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2948
- default:
2949
- const parsedBody = parsedOutput.body;
2950
- return throwDefaultError({
2951
- output,
2952
- parsedBody,
2953
- errorCode,
2954
- });
2955
- }
2956
- };
2957
- const de_UpdateDatasetCommand = async (output, context) => {
2958
- if (output.statusCode >= 300) {
2959
- return de_UpdateDatasetCommandError(output, context);
2960
- }
2961
- const data = await parseBody(output.body, context);
2962
- let contents = {};
2963
- contents = (0, smithy_client_1._json)(data);
2964
- const response = {
2965
- $metadata: deserializeMetadata(output),
2966
- ...contents,
2967
- };
2968
- return response;
2969
- };
2970
- exports.de_UpdateDatasetCommand = de_UpdateDatasetCommand;
2971
- const de_UpdateDatasetCommandError = async (output, context) => {
2972
- const parsedOutput = {
2973
- ...output,
2974
- body: await parseErrorBody(output.body, context),
2975
- };
2976
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2977
- switch (errorCode) {
2978
- case "InvalidInputException":
2979
- case "com.amazonaws.personalize#InvalidInputException":
2980
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2981
- case "ResourceInUseException":
2982
- case "com.amazonaws.personalize#ResourceInUseException":
2983
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2984
- case "ResourceNotFoundException":
2985
- case "com.amazonaws.personalize#ResourceNotFoundException":
2986
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2987
- default:
2988
- const parsedBody = parsedOutput.body;
2989
- return throwDefaultError({
2990
- output,
2991
- parsedBody,
2992
- errorCode,
2993
- });
2994
- }
2995
- };
2996
- const de_UpdateMetricAttributionCommand = async (output, context) => {
2997
- if (output.statusCode >= 300) {
2998
- return de_UpdateMetricAttributionCommandError(output, context);
2999
- }
3000
- const data = await parseBody(output.body, context);
3001
- let contents = {};
3002
- contents = (0, smithy_client_1._json)(data);
3003
- const response = {
3004
- $metadata: deserializeMetadata(output),
3005
- ...contents,
3006
- };
3007
- return response;
3008
- };
3009
- exports.de_UpdateMetricAttributionCommand = de_UpdateMetricAttributionCommand;
3010
- const de_UpdateMetricAttributionCommandError = async (output, context) => {
3011
- const parsedOutput = {
3012
- ...output,
3013
- body: await parseErrorBody(output.body, context),
3014
- };
3015
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3016
- switch (errorCode) {
3017
- case "InvalidInputException":
3018
- case "com.amazonaws.personalize#InvalidInputException":
3019
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3020
- case "ResourceAlreadyExistsException":
3021
- case "com.amazonaws.personalize#ResourceAlreadyExistsException":
3022
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3023
- case "ResourceInUseException":
3024
- case "com.amazonaws.personalize#ResourceInUseException":
3025
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3026
- case "ResourceNotFoundException":
3027
- case "com.amazonaws.personalize#ResourceNotFoundException":
3028
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3029
- default:
3030
- const parsedBody = parsedOutput.body;
3031
- return throwDefaultError({
3032
- output,
3033
- parsedBody,
3034
- errorCode,
3035
- });
3036
- }
3037
- };
3038
- const de_UpdateRecommenderCommand = async (output, context) => {
3039
- if (output.statusCode >= 300) {
3040
- return de_UpdateRecommenderCommandError(output, context);
3041
- }
3042
- const data = await parseBody(output.body, context);
3043
- let contents = {};
3044
- contents = (0, smithy_client_1._json)(data);
3045
- const response = {
3046
- $metadata: deserializeMetadata(output),
3047
- ...contents,
3048
- };
3049
- return response;
3050
- };
3051
- exports.de_UpdateRecommenderCommand = de_UpdateRecommenderCommand;
3052
- const de_UpdateRecommenderCommandError = async (output, context) => {
3053
- const parsedOutput = {
3054
- ...output,
3055
- body: await parseErrorBody(output.body, context),
3056
- };
3057
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3058
- switch (errorCode) {
3059
- case "InvalidInputException":
3060
- case "com.amazonaws.personalize#InvalidInputException":
3061
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3062
- case "ResourceInUseException":
3063
- case "com.amazonaws.personalize#ResourceInUseException":
3064
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3065
- case "ResourceNotFoundException":
3066
- case "com.amazonaws.personalize#ResourceNotFoundException":
3067
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3068
- default:
3069
- const parsedBody = parsedOutput.body;
3070
- return throwDefaultError({
3071
- output,
3072
- parsedBody,
3073
- errorCode,
3074
- });
3075
- }
3076
- };
3077
- const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
3078
- const body = parsedOutput.body;
3079
- const deserialized = (0, smithy_client_1._json)(body);
3080
- const exception = new models_0_1.InvalidInputException({
3081
- $metadata: deserializeMetadata(parsedOutput),
3082
- ...deserialized,
3083
- });
3084
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3085
- };
3086
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3087
- const body = parsedOutput.body;
3088
- const deserialized = (0, smithy_client_1._json)(body);
3089
- const exception = new models_0_1.InvalidNextTokenException({
3090
- $metadata: deserializeMetadata(parsedOutput),
3091
- ...deserialized,
3092
- });
3093
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3094
- };
3095
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3096
- const body = parsedOutput.body;
3097
- const deserialized = (0, smithy_client_1._json)(body);
3098
- const exception = new models_0_1.LimitExceededException({
3099
- $metadata: deserializeMetadata(parsedOutput),
3100
- ...deserialized,
3101
- });
3102
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3103
- };
3104
- const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3105
- const body = parsedOutput.body;
3106
- const deserialized = (0, smithy_client_1._json)(body);
3107
- const exception = new models_0_1.ResourceAlreadyExistsException({
3108
- $metadata: deserializeMetadata(parsedOutput),
3109
- ...deserialized,
3110
- });
3111
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3112
- };
3113
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3114
- const body = parsedOutput.body;
3115
- const deserialized = (0, smithy_client_1._json)(body);
3116
- const exception = new models_0_1.ResourceInUseException({
3117
- $metadata: deserializeMetadata(parsedOutput),
3118
- ...deserialized,
3119
- });
3120
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3121
- };
3122
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3123
- const body = parsedOutput.body;
3124
- const deserialized = (0, smithy_client_1._json)(body);
3125
- const exception = new models_0_1.ResourceNotFoundException({
3126
- $metadata: deserializeMetadata(parsedOutput),
3127
- ...deserialized,
3128
- });
3129
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3130
- };
3131
- const de_TooManyTagKeysExceptionRes = async (parsedOutput, context) => {
3132
- const body = parsedOutput.body;
3133
- const deserialized = (0, smithy_client_1._json)(body);
3134
- const exception = new models_0_1.TooManyTagKeysException({
3135
- $metadata: deserializeMetadata(parsedOutput),
3136
- ...deserialized,
3137
- });
3138
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3139
- };
3140
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
3141
- const body = parsedOutput.body;
3142
- const deserialized = (0, smithy_client_1._json)(body);
3143
- const exception = new models_0_1.TooManyTagsException({
3144
- $metadata: deserializeMetadata(parsedOutput),
3145
- ...deserialized,
3146
- });
3147
- return (0, smithy_client_1.decorateServiceException)(exception, body);
3148
- };
3149
- const se_ContinuousHyperParameterRange = (input, context) => {
3150
- return (0, smithy_client_1.take)(input, {
3151
- maxValue: smithy_client_1.serializeFloat,
3152
- minValue: smithy_client_1.serializeFloat,
3153
- name: [],
3154
- });
3155
- };
3156
- const se_ContinuousHyperParameterRanges = (input, context) => {
3157
- return input
3158
- .filter((e) => e != null)
3159
- .map((entry) => {
3160
- return se_ContinuousHyperParameterRange(entry, context);
3161
- });
3162
- };
3163
- const se_CreateSolutionRequest = (input, context) => {
3164
- return (0, smithy_client_1.take)(input, {
3165
- datasetGroupArn: [],
3166
- eventType: [],
3167
- name: [],
3168
- performAutoML: [],
3169
- performHPO: [],
3170
- recipeArn: [],
3171
- solutionConfig: (_) => se_SolutionConfig(_, context),
3172
- tags: smithy_client_1._json,
3173
- });
3174
- };
3175
- const se_HPOConfig = (input, context) => {
3176
- return (0, smithy_client_1.take)(input, {
3177
- algorithmHyperParameterRanges: (_) => se_HyperParameterRanges(_, context),
3178
- hpoObjective: smithy_client_1._json,
3179
- hpoResourceConfig: smithy_client_1._json,
3180
- });
3181
- };
3182
- const se_HyperParameterRanges = (input, context) => {
3183
- return (0, smithy_client_1.take)(input, {
3184
- categoricalHyperParameterRanges: smithy_client_1._json,
3185
- continuousHyperParameterRanges: (_) => se_ContinuousHyperParameterRanges(_, context),
3186
- integerHyperParameterRanges: smithy_client_1._json,
3187
- });
3188
- };
3189
- const se_SolutionConfig = (input, context) => {
3190
- return (0, smithy_client_1.take)(input, {
3191
- algorithmHyperParameters: smithy_client_1._json,
3192
- autoMLConfig: smithy_client_1._json,
3193
- eventValueThreshold: [],
3194
- featureTransformationParameters: smithy_client_1._json,
3195
- hpoConfig: (_) => se_HPOConfig(_, context),
3196
- optimizationObjective: smithy_client_1._json,
3197
- trainingDataConfig: smithy_client_1._json,
3198
- });
3199
- };
3200
- const de_Algorithm = (output, context) => {
3201
- return (0, smithy_client_1.take)(output, {
3202
- algorithmArn: smithy_client_1.expectString,
3203
- algorithmImage: smithy_client_1._json,
3204
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3205
- defaultHyperParameterRanges: (_) => de_DefaultHyperParameterRanges(_, context),
3206
- defaultHyperParameters: smithy_client_1._json,
3207
- defaultResourceConfig: smithy_client_1._json,
3208
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3209
- name: smithy_client_1.expectString,
3210
- roleArn: smithy_client_1.expectString,
3211
- trainingInputMode: smithy_client_1.expectString,
3212
- });
3213
- };
3214
- const de_BatchInferenceJob = (output, context) => {
3215
- return (0, smithy_client_1.take)(output, {
3216
- batchInferenceJobArn: smithy_client_1.expectString,
3217
- batchInferenceJobConfig: smithy_client_1._json,
3218
- batchInferenceJobMode: smithy_client_1.expectString,
3219
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3220
- failureReason: smithy_client_1.expectString,
3221
- filterArn: smithy_client_1.expectString,
3222
- jobInput: smithy_client_1._json,
3223
- jobName: smithy_client_1.expectString,
3224
- jobOutput: smithy_client_1._json,
3225
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3226
- numResults: smithy_client_1.expectInt32,
3227
- roleArn: smithy_client_1.expectString,
3228
- solutionVersionArn: smithy_client_1.expectString,
3229
- status: smithy_client_1.expectString,
3230
- themeGenerationConfig: smithy_client_1._json,
3231
- });
3232
- };
3233
- const de_BatchInferenceJobs = (output, context) => {
3234
- const retVal = (output || [])
3235
- .filter((e) => e != null)
3236
- .map((entry) => {
3237
- return de_BatchInferenceJobSummary(entry, context);
3238
- });
3239
- return retVal;
3240
- };
3241
- const de_BatchInferenceJobSummary = (output, context) => {
3242
- return (0, smithy_client_1.take)(output, {
3243
- batchInferenceJobArn: smithy_client_1.expectString,
3244
- batchInferenceJobMode: smithy_client_1.expectString,
3245
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3246
- failureReason: smithy_client_1.expectString,
3247
- jobName: smithy_client_1.expectString,
3248
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3249
- solutionVersionArn: smithy_client_1.expectString,
3250
- status: smithy_client_1.expectString,
3251
- });
3252
- };
3253
- const de_BatchSegmentJob = (output, context) => {
3254
- return (0, smithy_client_1.take)(output, {
3255
- batchSegmentJobArn: smithy_client_1.expectString,
3256
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3257
- failureReason: smithy_client_1.expectString,
3258
- filterArn: smithy_client_1.expectString,
3259
- jobInput: smithy_client_1._json,
3260
- jobName: smithy_client_1.expectString,
3261
- jobOutput: smithy_client_1._json,
3262
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3263
- numResults: smithy_client_1.expectInt32,
3264
- roleArn: smithy_client_1.expectString,
3265
- solutionVersionArn: smithy_client_1.expectString,
3266
- status: smithy_client_1.expectString,
3267
- });
3268
- };
3269
- const de_BatchSegmentJobs = (output, context) => {
3270
- const retVal = (output || [])
3271
- .filter((e) => e != null)
3272
- .map((entry) => {
3273
- return de_BatchSegmentJobSummary(entry, context);
3274
- });
3275
- return retVal;
3276
- };
3277
- const de_BatchSegmentJobSummary = (output, context) => {
3278
- return (0, smithy_client_1.take)(output, {
3279
- batchSegmentJobArn: smithy_client_1.expectString,
3280
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3281
- failureReason: smithy_client_1.expectString,
3282
- jobName: smithy_client_1.expectString,
3283
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3284
- solutionVersionArn: smithy_client_1.expectString,
3285
- status: smithy_client_1.expectString,
3286
- });
3287
- };
3288
- const de_Campaign = (output, context) => {
3289
- return (0, smithy_client_1.take)(output, {
3290
- campaignArn: smithy_client_1.expectString,
3291
- campaignConfig: smithy_client_1._json,
3292
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3293
- failureReason: smithy_client_1.expectString,
3294
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3295
- latestCampaignUpdate: (_) => de_CampaignUpdateSummary(_, context),
3296
- minProvisionedTPS: smithy_client_1.expectInt32,
3297
- name: smithy_client_1.expectString,
3298
- solutionVersionArn: smithy_client_1.expectString,
3299
- status: smithy_client_1.expectString,
3300
- });
3301
- };
3302
- const de_Campaigns = (output, context) => {
3303
- const retVal = (output || [])
3304
- .filter((e) => e != null)
3305
- .map((entry) => {
3306
- return de_CampaignSummary(entry, context);
3307
- });
3308
- return retVal;
3309
- };
3310
- const de_CampaignSummary = (output, context) => {
3311
- return (0, smithy_client_1.take)(output, {
3312
- campaignArn: smithy_client_1.expectString,
3313
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3314
- failureReason: smithy_client_1.expectString,
3315
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3316
- name: smithy_client_1.expectString,
3317
- status: smithy_client_1.expectString,
3318
- });
3319
- };
3320
- const de_CampaignUpdateSummary = (output, context) => {
3321
- return (0, smithy_client_1.take)(output, {
3322
- campaignConfig: smithy_client_1._json,
3323
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3324
- failureReason: smithy_client_1.expectString,
3325
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3326
- minProvisionedTPS: smithy_client_1.expectInt32,
3327
- solutionVersionArn: smithy_client_1.expectString,
3328
- status: smithy_client_1.expectString,
3329
- });
3330
- };
3331
- const de_ContinuousHyperParameterRange = (output, context) => {
3332
- return (0, smithy_client_1.take)(output, {
3333
- maxValue: smithy_client_1.limitedParseDouble,
3334
- minValue: smithy_client_1.limitedParseDouble,
3335
- name: smithy_client_1.expectString,
3336
- });
3337
- };
3338
- const de_ContinuousHyperParameterRanges = (output, context) => {
3339
- const retVal = (output || [])
3340
- .filter((e) => e != null)
3341
- .map((entry) => {
3342
- return de_ContinuousHyperParameterRange(entry, context);
3343
- });
3344
- return retVal;
3345
- };
3346
- const de_Dataset = (output, context) => {
3347
- return (0, smithy_client_1.take)(output, {
3348
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3349
- datasetArn: smithy_client_1.expectString,
3350
- datasetGroupArn: smithy_client_1.expectString,
3351
- datasetType: smithy_client_1.expectString,
3352
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3353
- latestDatasetUpdate: (_) => de_DatasetUpdateSummary(_, context),
3354
- name: smithy_client_1.expectString,
3355
- schemaArn: smithy_client_1.expectString,
3356
- status: smithy_client_1.expectString,
3357
- trackingId: smithy_client_1.expectString,
3358
- });
3359
- };
3360
- const de_DatasetExportJob = (output, context) => {
3361
- return (0, smithy_client_1.take)(output, {
3362
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3363
- datasetArn: smithy_client_1.expectString,
3364
- datasetExportJobArn: smithy_client_1.expectString,
3365
- failureReason: smithy_client_1.expectString,
3366
- ingestionMode: smithy_client_1.expectString,
3367
- jobName: smithy_client_1.expectString,
3368
- jobOutput: smithy_client_1._json,
3369
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3370
- roleArn: smithy_client_1.expectString,
3371
- status: smithy_client_1.expectString,
3372
- });
3373
- };
3374
- const de_DatasetExportJobs = (output, context) => {
3375
- const retVal = (output || [])
3376
- .filter((e) => e != null)
3377
- .map((entry) => {
3378
- return de_DatasetExportJobSummary(entry, context);
3379
- });
3380
- return retVal;
3381
- };
3382
- const de_DatasetExportJobSummary = (output, context) => {
3383
- return (0, smithy_client_1.take)(output, {
3384
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3385
- datasetExportJobArn: smithy_client_1.expectString,
3386
- failureReason: smithy_client_1.expectString,
3387
- jobName: smithy_client_1.expectString,
3388
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3389
- status: smithy_client_1.expectString,
3390
- });
3391
- };
3392
- const de_DatasetGroup = (output, context) => {
3393
- return (0, smithy_client_1.take)(output, {
3394
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3395
- datasetGroupArn: smithy_client_1.expectString,
3396
- domain: smithy_client_1.expectString,
3397
- failureReason: smithy_client_1.expectString,
3398
- kmsKeyArn: smithy_client_1.expectString,
3399
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3400
- name: smithy_client_1.expectString,
3401
- roleArn: smithy_client_1.expectString,
3402
- status: smithy_client_1.expectString,
3403
- });
3404
- };
3405
- const de_DatasetGroups = (output, context) => {
3406
- const retVal = (output || [])
3407
- .filter((e) => e != null)
3408
- .map((entry) => {
3409
- return de_DatasetGroupSummary(entry, context);
3410
- });
3411
- return retVal;
3412
- };
3413
- const de_DatasetGroupSummary = (output, context) => {
3414
- return (0, smithy_client_1.take)(output, {
3415
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3416
- datasetGroupArn: smithy_client_1.expectString,
3417
- domain: smithy_client_1.expectString,
3418
- failureReason: smithy_client_1.expectString,
3419
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3420
- name: smithy_client_1.expectString,
3421
- status: smithy_client_1.expectString,
3422
- });
3423
- };
3424
- const de_DatasetImportJob = (output, context) => {
3425
- return (0, smithy_client_1.take)(output, {
3426
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3427
- dataSource: smithy_client_1._json,
3428
- datasetArn: smithy_client_1.expectString,
3429
- datasetImportJobArn: smithy_client_1.expectString,
3430
- failureReason: smithy_client_1.expectString,
3431
- importMode: smithy_client_1.expectString,
3432
- jobName: smithy_client_1.expectString,
3433
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3434
- publishAttributionMetricsToS3: smithy_client_1.expectBoolean,
3435
- roleArn: smithy_client_1.expectString,
3436
- status: smithy_client_1.expectString,
3437
- });
3438
- };
3439
- const de_DatasetImportJobs = (output, context) => {
3440
- const retVal = (output || [])
3441
- .filter((e) => e != null)
3442
- .map((entry) => {
3443
- return de_DatasetImportJobSummary(entry, context);
3444
- });
3445
- return retVal;
3446
- };
3447
- const de_DatasetImportJobSummary = (output, context) => {
3448
- return (0, smithy_client_1.take)(output, {
3449
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3450
- datasetImportJobArn: smithy_client_1.expectString,
3451
- failureReason: smithy_client_1.expectString,
3452
- importMode: smithy_client_1.expectString,
3453
- jobName: smithy_client_1.expectString,
3454
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3455
- status: smithy_client_1.expectString,
3456
- });
3457
- };
3458
- const de_Datasets = (output, context) => {
3459
- const retVal = (output || [])
3460
- .filter((e) => e != null)
3461
- .map((entry) => {
3462
- return de_DatasetSummary(entry, context);
3463
- });
3464
- return retVal;
3465
- };
3466
- const de_DatasetSchema = (output, context) => {
3467
- return (0, smithy_client_1.take)(output, {
3468
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3469
- domain: smithy_client_1.expectString,
3470
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3471
- name: smithy_client_1.expectString,
3472
- schema: smithy_client_1.expectString,
3473
- schemaArn: smithy_client_1.expectString,
3474
- });
3475
- };
3476
- const de_DatasetSchemaSummary = (output, context) => {
3477
- return (0, smithy_client_1.take)(output, {
3478
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3479
- domain: smithy_client_1.expectString,
3480
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3481
- name: smithy_client_1.expectString,
3482
- schemaArn: smithy_client_1.expectString,
3483
- });
3484
- };
3485
- const de_DatasetSummary = (output, context) => {
3486
- return (0, smithy_client_1.take)(output, {
3487
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3488
- datasetArn: smithy_client_1.expectString,
3489
- datasetType: smithy_client_1.expectString,
3490
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3491
- name: smithy_client_1.expectString,
3492
- status: smithy_client_1.expectString,
3493
- });
3494
- };
3495
- const de_DatasetUpdateSummary = (output, context) => {
3496
- return (0, smithy_client_1.take)(output, {
3497
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3498
- failureReason: smithy_client_1.expectString,
3499
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3500
- schemaArn: smithy_client_1.expectString,
3501
- status: smithy_client_1.expectString,
3502
- });
3503
- };
3504
- const de_DefaultContinuousHyperParameterRange = (output, context) => {
3505
- return (0, smithy_client_1.take)(output, {
3506
- isTunable: smithy_client_1.expectBoolean,
3507
- maxValue: smithy_client_1.limitedParseDouble,
3508
- minValue: smithy_client_1.limitedParseDouble,
3509
- name: smithy_client_1.expectString,
3510
- });
3511
- };
3512
- const de_DefaultContinuousHyperParameterRanges = (output, context) => {
3513
- const retVal = (output || [])
3514
- .filter((e) => e != null)
3515
- .map((entry) => {
3516
- return de_DefaultContinuousHyperParameterRange(entry, context);
3517
- });
3518
- return retVal;
3519
- };
3520
- const de_DefaultHyperParameterRanges = (output, context) => {
3521
- return (0, smithy_client_1.take)(output, {
3522
- categoricalHyperParameterRanges: smithy_client_1._json,
3523
- continuousHyperParameterRanges: (_) => de_DefaultContinuousHyperParameterRanges(_, context),
3524
- integerHyperParameterRanges: smithy_client_1._json,
3525
- });
3526
- };
3527
- const de_DescribeAlgorithmResponse = (output, context) => {
3528
- return (0, smithy_client_1.take)(output, {
3529
- algorithm: (_) => de_Algorithm(_, context),
3530
- });
3531
- };
3532
- const de_DescribeBatchInferenceJobResponse = (output, context) => {
3533
- return (0, smithy_client_1.take)(output, {
3534
- batchInferenceJob: (_) => de_BatchInferenceJob(_, context),
3535
- });
3536
- };
3537
- const de_DescribeBatchSegmentJobResponse = (output, context) => {
3538
- return (0, smithy_client_1.take)(output, {
3539
- batchSegmentJob: (_) => de_BatchSegmentJob(_, context),
3540
- });
3541
- };
3542
- const de_DescribeCampaignResponse = (output, context) => {
3543
- return (0, smithy_client_1.take)(output, {
3544
- campaign: (_) => de_Campaign(_, context),
3545
- });
3546
- };
3547
- const de_DescribeDatasetExportJobResponse = (output, context) => {
3548
- return (0, smithy_client_1.take)(output, {
3549
- datasetExportJob: (_) => de_DatasetExportJob(_, context),
3550
- });
3551
- };
3552
- const de_DescribeDatasetGroupResponse = (output, context) => {
3553
- return (0, smithy_client_1.take)(output, {
3554
- datasetGroup: (_) => de_DatasetGroup(_, context),
3555
- });
3556
- };
3557
- const de_DescribeDatasetImportJobResponse = (output, context) => {
3558
- return (0, smithy_client_1.take)(output, {
3559
- datasetImportJob: (_) => de_DatasetImportJob(_, context),
3560
- });
3561
- };
3562
- const de_DescribeDatasetResponse = (output, context) => {
3563
- return (0, smithy_client_1.take)(output, {
3564
- dataset: (_) => de_Dataset(_, context),
3565
- });
3566
- };
3567
- const de_DescribeEventTrackerResponse = (output, context) => {
3568
- return (0, smithy_client_1.take)(output, {
3569
- eventTracker: (_) => de_EventTracker(_, context),
3570
- });
3571
- };
3572
- const de_DescribeFeatureTransformationResponse = (output, context) => {
3573
- return (0, smithy_client_1.take)(output, {
3574
- featureTransformation: (_) => de_FeatureTransformation(_, context),
3575
- });
3576
- };
3577
- const de_DescribeFilterResponse = (output, context) => {
3578
- return (0, smithy_client_1.take)(output, {
3579
- filter: (_) => de_Filter(_, context),
3580
- });
3581
- };
3582
- const de_DescribeMetricAttributionResponse = (output, context) => {
3583
- return (0, smithy_client_1.take)(output, {
3584
- metricAttribution: (_) => de_MetricAttribution(_, context),
3585
- });
3586
- };
3587
- const de_DescribeRecipeResponse = (output, context) => {
3588
- return (0, smithy_client_1.take)(output, {
3589
- recipe: (_) => de_Recipe(_, context),
3590
- });
3591
- };
3592
- const de_DescribeRecommenderResponse = (output, context) => {
3593
- return (0, smithy_client_1.take)(output, {
3594
- recommender: (_) => de_Recommender(_, context),
3595
- });
3596
- };
3597
- const de_DescribeSchemaResponse = (output, context) => {
3598
- return (0, smithy_client_1.take)(output, {
3599
- schema: (_) => de_DatasetSchema(_, context),
3600
- });
3601
- };
3602
- const de_DescribeSolutionResponse = (output, context) => {
3603
- return (0, smithy_client_1.take)(output, {
3604
- solution: (_) => de_Solution(_, context),
3605
- });
3606
- };
3607
- const de_DescribeSolutionVersionResponse = (output, context) => {
3608
- return (0, smithy_client_1.take)(output, {
3609
- solutionVersion: (_) => de_SolutionVersion(_, context),
3610
- });
3611
- };
3612
- const de_EventTracker = (output, context) => {
3613
- return (0, smithy_client_1.take)(output, {
3614
- accountId: smithy_client_1.expectString,
3615
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3616
- datasetGroupArn: smithy_client_1.expectString,
3617
- eventTrackerArn: smithy_client_1.expectString,
3618
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3619
- name: smithy_client_1.expectString,
3620
- status: smithy_client_1.expectString,
3621
- trackingId: smithy_client_1.expectString,
3622
- });
3623
- };
3624
- const de_EventTrackers = (output, context) => {
3625
- const retVal = (output || [])
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- return de_EventTrackerSummary(entry, context);
3629
- });
3630
- return retVal;
3631
- };
3632
- const de_EventTrackerSummary = (output, context) => {
3633
- return (0, smithy_client_1.take)(output, {
3634
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3635
- eventTrackerArn: smithy_client_1.expectString,
3636
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3637
- name: smithy_client_1.expectString,
3638
- status: smithy_client_1.expectString,
3639
- });
3640
- };
3641
- const de_FeatureTransformation = (output, context) => {
3642
- return (0, smithy_client_1.take)(output, {
3643
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3644
- defaultParameters: smithy_client_1._json,
3645
- featureTransformationArn: smithy_client_1.expectString,
3646
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3647
- name: smithy_client_1.expectString,
3648
- status: smithy_client_1.expectString,
3649
- });
3650
- };
3651
- const de_Filter = (output, context) => {
3652
- return (0, smithy_client_1.take)(output, {
3653
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3654
- datasetGroupArn: smithy_client_1.expectString,
3655
- failureReason: smithy_client_1.expectString,
3656
- filterArn: smithy_client_1.expectString,
3657
- filterExpression: smithy_client_1.expectString,
3658
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3659
- name: smithy_client_1.expectString,
3660
- status: smithy_client_1.expectString,
3661
- });
3662
- };
3663
- const de_Filters = (output, context) => {
3664
- const retVal = (output || [])
3665
- .filter((e) => e != null)
3666
- .map((entry) => {
3667
- return de_FilterSummary(entry, context);
3668
- });
3669
- return retVal;
3670
- };
3671
- const de_FilterSummary = (output, context) => {
3672
- return (0, smithy_client_1.take)(output, {
3673
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3674
- datasetGroupArn: smithy_client_1.expectString,
3675
- failureReason: smithy_client_1.expectString,
3676
- filterArn: smithy_client_1.expectString,
3677
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3678
- name: smithy_client_1.expectString,
3679
- status: smithy_client_1.expectString,
3680
- });
3681
- };
3682
- const de_GetSolutionMetricsResponse = (output, context) => {
3683
- return (0, smithy_client_1.take)(output, {
3684
- metrics: (_) => de_Metrics(_, context),
3685
- solutionVersionArn: smithy_client_1.expectString,
3686
- });
3687
- };
3688
- const de_HPOConfig = (output, context) => {
3689
- return (0, smithy_client_1.take)(output, {
3690
- algorithmHyperParameterRanges: (_) => de_HyperParameterRanges(_, context),
3691
- hpoObjective: smithy_client_1._json,
3692
- hpoResourceConfig: smithy_client_1._json,
3693
- });
3694
- };
3695
- const de_HyperParameterRanges = (output, context) => {
3696
- return (0, smithy_client_1.take)(output, {
3697
- categoricalHyperParameterRanges: smithy_client_1._json,
3698
- continuousHyperParameterRanges: (_) => de_ContinuousHyperParameterRanges(_, context),
3699
- integerHyperParameterRanges: smithy_client_1._json,
3700
- });
3701
- };
3702
- const de_ListBatchInferenceJobsResponse = (output, context) => {
3703
- return (0, smithy_client_1.take)(output, {
3704
- batchInferenceJobs: (_) => de_BatchInferenceJobs(_, context),
3705
- nextToken: smithy_client_1.expectString,
3706
- });
3707
- };
3708
- const de_ListBatchSegmentJobsResponse = (output, context) => {
3709
- return (0, smithy_client_1.take)(output, {
3710
- batchSegmentJobs: (_) => de_BatchSegmentJobs(_, context),
3711
- nextToken: smithy_client_1.expectString,
3712
- });
3713
- };
3714
- const de_ListCampaignsResponse = (output, context) => {
3715
- return (0, smithy_client_1.take)(output, {
3716
- campaigns: (_) => de_Campaigns(_, context),
3717
- nextToken: smithy_client_1.expectString,
3718
- });
3719
- };
3720
- const de_ListDatasetExportJobsResponse = (output, context) => {
3721
- return (0, smithy_client_1.take)(output, {
3722
- datasetExportJobs: (_) => de_DatasetExportJobs(_, context),
3723
- nextToken: smithy_client_1.expectString,
3724
- });
3725
- };
3726
- const de_ListDatasetGroupsResponse = (output, context) => {
3727
- return (0, smithy_client_1.take)(output, {
3728
- datasetGroups: (_) => de_DatasetGroups(_, context),
3729
- nextToken: smithy_client_1.expectString,
3730
- });
3731
- };
3732
- const de_ListDatasetImportJobsResponse = (output, context) => {
3733
- return (0, smithy_client_1.take)(output, {
3734
- datasetImportJobs: (_) => de_DatasetImportJobs(_, context),
3735
- nextToken: smithy_client_1.expectString,
3736
- });
3737
- };
3738
- const de_ListDatasetsResponse = (output, context) => {
3739
- return (0, smithy_client_1.take)(output, {
3740
- datasets: (_) => de_Datasets(_, context),
3741
- nextToken: smithy_client_1.expectString,
3742
- });
3743
- };
3744
- const de_ListEventTrackersResponse = (output, context) => {
3745
- return (0, smithy_client_1.take)(output, {
3746
- eventTrackers: (_) => de_EventTrackers(_, context),
3747
- nextToken: smithy_client_1.expectString,
3748
- });
3749
- };
3750
- const de_ListFiltersResponse = (output, context) => {
3751
- return (0, smithy_client_1.take)(output, {
3752
- Filters: (_) => de_Filters(_, context),
3753
- nextToken: smithy_client_1.expectString,
3754
- });
3755
- };
3756
- const de_ListMetricAttributionsResponse = (output, context) => {
3757
- return (0, smithy_client_1.take)(output, {
3758
- metricAttributions: (_) => de_MetricAttributions(_, context),
3759
- nextToken: smithy_client_1.expectString,
3760
- });
3761
- };
3762
- const de_ListRecipesResponse = (output, context) => {
3763
- return (0, smithy_client_1.take)(output, {
3764
- nextToken: smithy_client_1.expectString,
3765
- recipes: (_) => de_Recipes(_, context),
3766
- });
3767
- };
3768
- const de_ListRecommendersResponse = (output, context) => {
3769
- return (0, smithy_client_1.take)(output, {
3770
- nextToken: smithy_client_1.expectString,
3771
- recommenders: (_) => de_Recommenders(_, context),
3772
- });
3773
- };
3774
- const de_ListSchemasResponse = (output, context) => {
3775
- return (0, smithy_client_1.take)(output, {
3776
- nextToken: smithy_client_1.expectString,
3777
- schemas: (_) => de_Schemas(_, context),
3778
- });
3779
- };
3780
- const de_ListSolutionsResponse = (output, context) => {
3781
- return (0, smithy_client_1.take)(output, {
3782
- nextToken: smithy_client_1.expectString,
3783
- solutions: (_) => de_Solutions(_, context),
3784
- });
3785
- };
3786
- const de_ListSolutionVersionsResponse = (output, context) => {
3787
- return (0, smithy_client_1.take)(output, {
3788
- nextToken: smithy_client_1.expectString,
3789
- solutionVersions: (_) => de_SolutionVersions(_, context),
3790
- });
3791
- };
3792
- const de_MetricAttribution = (output, context) => {
3793
- return (0, smithy_client_1.take)(output, {
3794
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3795
- datasetGroupArn: smithy_client_1.expectString,
3796
- failureReason: smithy_client_1.expectString,
3797
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3798
- metricAttributionArn: smithy_client_1.expectString,
3799
- metricsOutputConfig: smithy_client_1._json,
3800
- name: smithy_client_1.expectString,
3801
- status: smithy_client_1.expectString,
3802
- });
3803
- };
3804
- const de_MetricAttributions = (output, context) => {
3805
- const retVal = (output || [])
3806
- .filter((e) => e != null)
3807
- .map((entry) => {
3808
- return de_MetricAttributionSummary(entry, context);
3809
- });
3810
- return retVal;
3811
- };
3812
- const de_MetricAttributionSummary = (output, context) => {
3813
- return (0, smithy_client_1.take)(output, {
3814
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3815
- failureReason: smithy_client_1.expectString,
3816
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3817
- metricAttributionArn: smithy_client_1.expectString,
3818
- name: smithy_client_1.expectString,
3819
- status: smithy_client_1.expectString,
3820
- });
3821
- };
3822
- const de_Metrics = (output, context) => {
3823
- return Object.entries(output).reduce((acc, [key, value]) => {
3824
- if (value === null) {
3825
- return acc;
3826
- }
3827
- acc[key] = (0, smithy_client_1.limitedParseDouble)(value);
3828
- return acc;
3829
- }, {});
3830
- };
3831
- const de_Recipe = (output, context) => {
3832
- return (0, smithy_client_1.take)(output, {
3833
- algorithmArn: smithy_client_1.expectString,
3834
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3835
- description: smithy_client_1.expectString,
3836
- featureTransformationArn: smithy_client_1.expectString,
3837
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3838
- name: smithy_client_1.expectString,
3839
- recipeArn: smithy_client_1.expectString,
3840
- recipeType: smithy_client_1.expectString,
3841
- status: smithy_client_1.expectString,
3842
- });
3843
- };
3844
- const de_Recipes = (output, context) => {
3845
- const retVal = (output || [])
3846
- .filter((e) => e != null)
3847
- .map((entry) => {
3848
- return de_RecipeSummary(entry, context);
3849
- });
3850
- return retVal;
3851
- };
3852
- const de_RecipeSummary = (output, context) => {
3853
- return (0, smithy_client_1.take)(output, {
3854
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3855
- domain: smithy_client_1.expectString,
3856
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3857
- name: smithy_client_1.expectString,
3858
- recipeArn: smithy_client_1.expectString,
3859
- status: smithy_client_1.expectString,
3860
- });
3861
- };
3862
- const de_Recommender = (output, context) => {
3863
- return (0, smithy_client_1.take)(output, {
3864
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3865
- datasetGroupArn: smithy_client_1.expectString,
3866
- failureReason: smithy_client_1.expectString,
3867
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3868
- latestRecommenderUpdate: (_) => de_RecommenderUpdateSummary(_, context),
3869
- modelMetrics: (_) => de_Metrics(_, context),
3870
- name: smithy_client_1.expectString,
3871
- recipeArn: smithy_client_1.expectString,
3872
- recommenderArn: smithy_client_1.expectString,
3873
- recommenderConfig: smithy_client_1._json,
3874
- status: smithy_client_1.expectString,
3875
- });
3876
- };
3877
- const de_Recommenders = (output, context) => {
3878
- const retVal = (output || [])
3879
- .filter((e) => e != null)
3880
- .map((entry) => {
3881
- return de_RecommenderSummary(entry, context);
3882
- });
3883
- return retVal;
3884
- };
3885
- const de_RecommenderSummary = (output, context) => {
3886
- return (0, smithy_client_1.take)(output, {
3887
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3888
- datasetGroupArn: smithy_client_1.expectString,
3889
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3890
- name: smithy_client_1.expectString,
3891
- recipeArn: smithy_client_1.expectString,
3892
- recommenderArn: smithy_client_1.expectString,
3893
- recommenderConfig: smithy_client_1._json,
3894
- status: smithy_client_1.expectString,
3895
- });
3896
- };
3897
- const de_RecommenderUpdateSummary = (output, context) => {
3898
- return (0, smithy_client_1.take)(output, {
3899
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3900
- failureReason: smithy_client_1.expectString,
3901
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3902
- recommenderConfig: smithy_client_1._json,
3903
- status: smithy_client_1.expectString,
3904
- });
3905
- };
3906
- const de_Schemas = (output, context) => {
3907
- const retVal = (output || [])
3908
- .filter((e) => e != null)
3909
- .map((entry) => {
3910
- return de_DatasetSchemaSummary(entry, context);
3911
- });
3912
- return retVal;
3913
- };
3914
- const de_Solution = (output, context) => {
3915
- return (0, smithy_client_1.take)(output, {
3916
- autoMLResult: smithy_client_1._json,
3917
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3918
- datasetGroupArn: smithy_client_1.expectString,
3919
- eventType: smithy_client_1.expectString,
3920
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3921
- latestSolutionVersion: (_) => de_SolutionVersionSummary(_, context),
3922
- name: smithy_client_1.expectString,
3923
- performAutoML: smithy_client_1.expectBoolean,
3924
- performHPO: smithy_client_1.expectBoolean,
3925
- recipeArn: smithy_client_1.expectString,
3926
- solutionArn: smithy_client_1.expectString,
3927
- solutionConfig: (_) => de_SolutionConfig(_, context),
3928
- status: smithy_client_1.expectString,
3929
- });
3930
- };
3931
- const de_SolutionConfig = (output, context) => {
3932
- return (0, smithy_client_1.take)(output, {
3933
- algorithmHyperParameters: smithy_client_1._json,
3934
- autoMLConfig: smithy_client_1._json,
3935
- eventValueThreshold: smithy_client_1.expectString,
3936
- featureTransformationParameters: smithy_client_1._json,
3937
- hpoConfig: (_) => de_HPOConfig(_, context),
3938
- optimizationObjective: smithy_client_1._json,
3939
- trainingDataConfig: smithy_client_1._json,
3940
- });
3941
- };
3942
- const de_Solutions = (output, context) => {
3943
- const retVal = (output || [])
3944
- .filter((e) => e != null)
3945
- .map((entry) => {
3946
- return de_SolutionSummary(entry, context);
3947
- });
3948
- return retVal;
3949
- };
3950
- const de_SolutionSummary = (output, context) => {
3951
- return (0, smithy_client_1.take)(output, {
3952
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3953
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3954
- name: smithy_client_1.expectString,
3955
- recipeArn: smithy_client_1.expectString,
3956
- solutionArn: smithy_client_1.expectString,
3957
- status: smithy_client_1.expectString,
3958
- });
3959
- };
3960
- const de_SolutionVersion = (output, context) => {
3961
- return (0, smithy_client_1.take)(output, {
3962
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3963
- datasetGroupArn: smithy_client_1.expectString,
3964
- eventType: smithy_client_1.expectString,
3965
- failureReason: smithy_client_1.expectString,
3966
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3967
- name: smithy_client_1.expectString,
3968
- performAutoML: smithy_client_1.expectBoolean,
3969
- performHPO: smithy_client_1.expectBoolean,
3970
- recipeArn: smithy_client_1.expectString,
3971
- solutionArn: smithy_client_1.expectString,
3972
- solutionConfig: (_) => de_SolutionConfig(_, context),
3973
- solutionVersionArn: smithy_client_1.expectString,
3974
- status: smithy_client_1.expectString,
3975
- trainingHours: smithy_client_1.limitedParseDouble,
3976
- trainingMode: smithy_client_1.expectString,
3977
- tunedHPOParams: smithy_client_1._json,
3978
- });
3979
- };
3980
- const de_SolutionVersions = (output, context) => {
3981
- const retVal = (output || [])
3982
- .filter((e) => e != null)
3983
- .map((entry) => {
3984
- return de_SolutionVersionSummary(entry, context);
3985
- });
3986
- return retVal;
3987
- };
3988
- const de_SolutionVersionSummary = (output, context) => {
3989
- return (0, smithy_client_1.take)(output, {
3990
- creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3991
- failureReason: smithy_client_1.expectString,
3992
- lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3993
- solutionVersionArn: smithy_client_1.expectString,
3994
- status: smithy_client_1.expectString,
3995
- });
3996
- };
3997
- const deserializeMetadata = (output) => ({
3998
- httpStatusCode: output.statusCode,
3999
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4000
- extendedRequestId: output.headers["x-amz-id-2"],
4001
- cfId: output.headers["x-amz-cf-id"],
4002
- });
4003
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
4004
- const throwDefaultError = (0, smithy_client_1.withBaseException)(PersonalizeServiceException_1.PersonalizeServiceException);
4005
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4006
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4007
- const contents = {
4008
- protocol,
4009
- hostname,
4010
- port,
4011
- method: "POST",
4012
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
4013
- headers,
4014
- };
4015
- if (resolvedHostname !== undefined) {
4016
- contents.hostname = resolvedHostname;
4017
- }
4018
- if (body !== undefined) {
4019
- contents.body = body;
4020
- }
4021
- return new protocol_http_1.HttpRequest(contents);
4022
- };
4023
- function sharedHeaders(operation) {
4024
- return {
4025
- "content-type": "application/x-amz-json-1.1",
4026
- "x-amz-target": `AmazonPersonalize.${operation}`,
4027
- };
4028
- }
4029
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4030
- if (encoded.length) {
4031
- return JSON.parse(encoded);
4032
- }
4033
- return {};
4034
- });
4035
- const parseErrorBody = async (errorBody, context) => {
4036
- const value = await parseBody(errorBody, context);
4037
- value.message = value.message ?? value.Message;
4038
- return value;
4039
- };
4040
- const loadRestJsonErrorCode = (output, data) => {
4041
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4042
- const sanitizeErrorCode = (rawValue) => {
4043
- let cleanValue = rawValue;
4044
- if (typeof cleanValue === "number") {
4045
- cleanValue = cleanValue.toString();
4046
- }
4047
- if (cleanValue.indexOf(",") >= 0) {
4048
- cleanValue = cleanValue.split(",")[0];
4049
- }
4050
- if (cleanValue.indexOf(":") >= 0) {
4051
- cleanValue = cleanValue.split(":")[0];
4052
- }
4053
- if (cleanValue.indexOf("#") >= 0) {
4054
- cleanValue = cleanValue.split("#")[1];
4055
- }
4056
- return cleanValue;
4057
- };
4058
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4059
- if (headerKey !== undefined) {
4060
- return sanitizeErrorCode(output.headers[headerKey]);
4061
- }
4062
- if (data.code !== undefined) {
4063
- return sanitizeErrorCode(data.code);
4064
- }
4065
- if (data["__type"] !== undefined) {
4066
- return sanitizeErrorCode(data["__type"]);
4067
- }
4068
- };
1
+ module.exports = require("../index.js");