@aws-sdk/client-personalize 3.567.0 → 3.569.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -227,6 +227,14 @@ CreateCampaign
227
227
 
228
228
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/CreateCampaignCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/CreateCampaignCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/CreateCampaignCommandOutput/)
229
229
 
230
+ </details>
231
+ <details>
232
+ <summary>
233
+ CreateDataDeletionJob
234
+ </summary>
235
+
236
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/CreateDataDeletionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/CreateDataDeletionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/CreateDataDeletionJobCommandOutput/)
237
+
230
238
  </details>
231
239
  <details>
232
240
  <summary>
@@ -419,6 +427,14 @@ DescribeCampaign
419
427
 
420
428
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/DescribeCampaignCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/DescribeCampaignCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/DescribeCampaignCommandOutput/)
421
429
 
430
+ </details>
431
+ <details>
432
+ <summary>
433
+ DescribeDataDeletionJob
434
+ </summary>
435
+
436
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/DescribeDataDeletionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/DescribeDataDeletionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/DescribeDataDeletionJobCommandOutput/)
437
+
422
438
  </details>
423
439
  <details>
424
440
  <summary>
@@ -555,6 +571,14 @@ ListCampaigns
555
571
 
556
572
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/ListCampaignsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/ListCampaignsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/ListCampaignsCommandOutput/)
557
573
 
574
+ </details>
575
+ <details>
576
+ <summary>
577
+ ListDataDeletionJobs
578
+ </summary>
579
+
580
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/ListDataDeletionJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/ListDataDeletionJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/ListDataDeletionJobsCommandOutput/)
581
+
558
582
  </details>
559
583
  <details>
560
584
  <summary>
package/dist-cjs/index.js CHANGED
@@ -25,6 +25,7 @@ __export(src_exports, {
25
25
  CreateBatchInferenceJobCommand: () => CreateBatchInferenceJobCommand,
26
26
  CreateBatchSegmentJobCommand: () => CreateBatchSegmentJobCommand,
27
27
  CreateCampaignCommand: () => CreateCampaignCommand,
28
+ CreateDataDeletionJobCommand: () => CreateDataDeletionJobCommand,
28
29
  CreateDatasetCommand: () => CreateDatasetCommand,
29
30
  CreateDatasetExportJobCommand: () => CreateDatasetExportJobCommand,
30
31
  CreateDatasetGroupCommand: () => CreateDatasetGroupCommand,
@@ -50,6 +51,7 @@ __export(src_exports, {
50
51
  DescribeBatchInferenceJobCommand: () => DescribeBatchInferenceJobCommand,
51
52
  DescribeBatchSegmentJobCommand: () => DescribeBatchSegmentJobCommand,
52
53
  DescribeCampaignCommand: () => DescribeCampaignCommand,
54
+ DescribeDataDeletionJobCommand: () => DescribeDataDeletionJobCommand,
53
55
  DescribeDatasetCommand: () => DescribeDatasetCommand,
54
56
  DescribeDatasetExportJobCommand: () => DescribeDatasetExportJobCommand,
55
57
  DescribeDatasetGroupCommand: () => DescribeDatasetGroupCommand,
@@ -75,6 +77,7 @@ __export(src_exports, {
75
77
  ListBatchInferenceJobsCommand: () => ListBatchInferenceJobsCommand,
76
78
  ListBatchSegmentJobsCommand: () => ListBatchSegmentJobsCommand,
77
79
  ListCampaignsCommand: () => ListCampaignsCommand,
80
+ ListDataDeletionJobsCommand: () => ListDataDeletionJobsCommand,
78
81
  ListDatasetExportJobsCommand: () => ListDatasetExportJobsCommand,
79
82
  ListDatasetGroupsCommand: () => ListDatasetGroupsCommand,
80
83
  ListDatasetImportJobsCommand: () => ListDatasetImportJobsCommand,
@@ -508,6 +511,12 @@ var se_CreateCampaignCommand = /* @__PURE__ */ __name(async (input, context) =>
508
511
  body = JSON.stringify((0, import_smithy_client._json)(input));
509
512
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
510
513
  }, "se_CreateCampaignCommand");
514
+ var se_CreateDataDeletionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
515
+ const headers = sharedHeaders("CreateDataDeletionJob");
516
+ let body;
517
+ body = JSON.stringify((0, import_smithy_client._json)(input));
518
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
519
+ }, "se_CreateDataDeletionJobCommand");
511
520
  var se_CreateDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
512
521
  const headers = sharedHeaders("CreateDataset");
513
522
  let body;
@@ -652,6 +661,12 @@ var se_DescribeCampaignCommand = /* @__PURE__ */ __name(async (input, context) =
652
661
  body = JSON.stringify((0, import_smithy_client._json)(input));
653
662
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
654
663
  }, "se_DescribeCampaignCommand");
664
+ var se_DescribeDataDeletionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
665
+ const headers = sharedHeaders("DescribeDataDeletionJob");
666
+ let body;
667
+ body = JSON.stringify((0, import_smithy_client._json)(input));
668
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
669
+ }, "se_DescribeDataDeletionJobCommand");
655
670
  var se_DescribeDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
656
671
  const headers = sharedHeaders("DescribeDataset");
657
672
  let body;
@@ -754,6 +769,12 @@ var se_ListCampaignsCommand = /* @__PURE__ */ __name(async (input, context) => {
754
769
  body = JSON.stringify((0, import_smithy_client._json)(input));
755
770
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
756
771
  }, "se_ListCampaignsCommand");
772
+ var se_ListDataDeletionJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
773
+ const headers = sharedHeaders("ListDataDeletionJobs");
774
+ let body;
775
+ body = JSON.stringify((0, import_smithy_client._json)(input));
776
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
777
+ }, "se_ListDataDeletionJobsCommand");
757
778
  var se_ListDatasetExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
758
779
  const headers = sharedHeaders("ListDatasetExportJobs");
759
780
  let body;
@@ -931,6 +952,19 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
931
952
  };
932
953
  return response;
933
954
  }, "de_CreateCampaignCommand");
955
+ var de_CreateDataDeletionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
956
+ if (output.statusCode >= 300) {
957
+ return de_CommandError(output, context);
958
+ }
959
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
960
+ let contents = {};
961
+ contents = (0, import_smithy_client._json)(data);
962
+ const response = {
963
+ $metadata: deserializeMetadata(output),
964
+ ...contents
965
+ };
966
+ return response;
967
+ }, "de_CreateDataDeletionJobCommand");
934
968
  var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
935
969
  if (output.statusCode >= 300) {
936
970
  return de_CommandError(output, context);
@@ -1216,6 +1250,19 @@ var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context)
1216
1250
  };
1217
1251
  return response;
1218
1252
  }, "de_DescribeCampaignCommand");
1253
+ var de_DescribeDataDeletionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1254
+ if (output.statusCode >= 300) {
1255
+ return de_CommandError(output, context);
1256
+ }
1257
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1258
+ let contents = {};
1259
+ contents = de_DescribeDataDeletionJobResponse(data, context);
1260
+ const response = {
1261
+ $metadata: deserializeMetadata(output),
1262
+ ...contents
1263
+ };
1264
+ return response;
1265
+ }, "de_DescribeDataDeletionJobCommand");
1219
1266
  var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
1220
1267
  if (output.statusCode >= 300) {
1221
1268
  return de_CommandError(output, context);
@@ -1437,6 +1484,19 @@ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) =>
1437
1484
  };
1438
1485
  return response;
1439
1486
  }, "de_ListCampaignsCommand");
1487
+ var de_ListDataDeletionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1488
+ if (output.statusCode >= 300) {
1489
+ return de_CommandError(output, context);
1490
+ }
1491
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1492
+ let contents = {};
1493
+ contents = de_ListDataDeletionJobsResponse(data, context);
1494
+ const response = {
1495
+ $metadata: deserializeMetadata(output),
1496
+ ...contents
1497
+ };
1498
+ return response;
1499
+ }, "de_ListDataDeletionJobsCommand");
1440
1500
  var de_ListDatasetExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1441
1501
  if (output.statusCode >= 300) {
1442
1502
  return de_CommandError(output, context);
@@ -2034,6 +2094,37 @@ var de_ContinuousHyperParameterRanges = /* @__PURE__ */ __name((output, context)
2034
2094
  });
2035
2095
  return retVal;
2036
2096
  }, "de_ContinuousHyperParameterRanges");
2097
+ var de_DataDeletionJob = /* @__PURE__ */ __name((output, context) => {
2098
+ return (0, import_smithy_client.take)(output, {
2099
+ creationDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2100
+ dataDeletionJobArn: import_smithy_client.expectString,
2101
+ dataSource: import_smithy_client._json,
2102
+ datasetGroupArn: import_smithy_client.expectString,
2103
+ failureReason: import_smithy_client.expectString,
2104
+ jobName: import_smithy_client.expectString,
2105
+ lastUpdatedDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2106
+ numDeleted: import_smithy_client.expectInt32,
2107
+ roleArn: import_smithy_client.expectString,
2108
+ status: import_smithy_client.expectString
2109
+ });
2110
+ }, "de_DataDeletionJob");
2111
+ var de_DataDeletionJobs = /* @__PURE__ */ __name((output, context) => {
2112
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2113
+ return de_DataDeletionJobSummary(entry, context);
2114
+ });
2115
+ return retVal;
2116
+ }, "de_DataDeletionJobs");
2117
+ var de_DataDeletionJobSummary = /* @__PURE__ */ __name((output, context) => {
2118
+ return (0, import_smithy_client.take)(output, {
2119
+ creationDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2120
+ dataDeletionJobArn: import_smithy_client.expectString,
2121
+ datasetGroupArn: import_smithy_client.expectString,
2122
+ failureReason: import_smithy_client.expectString,
2123
+ jobName: import_smithy_client.expectString,
2124
+ lastUpdatedDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2125
+ status: import_smithy_client.expectString
2126
+ });
2127
+ }, "de_DataDeletionJobSummary");
2037
2128
  var de_Dataset = /* @__PURE__ */ __name((output, context) => {
2038
2129
  return (0, import_smithy_client.take)(output, {
2039
2130
  creationDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -2225,6 +2316,11 @@ var de_DescribeCampaignResponse = /* @__PURE__ */ __name((output, context) => {
2225
2316
  campaign: (_) => de_Campaign(_, context)
2226
2317
  });
2227
2318
  }, "de_DescribeCampaignResponse");
2319
+ var de_DescribeDataDeletionJobResponse = /* @__PURE__ */ __name((output, context) => {
2320
+ return (0, import_smithy_client.take)(output, {
2321
+ dataDeletionJob: (_) => de_DataDeletionJob(_, context)
2322
+ });
2323
+ }, "de_DescribeDataDeletionJobResponse");
2228
2324
  var de_DescribeDatasetExportJobResponse = /* @__PURE__ */ __name((output, context) => {
2229
2325
  return (0, import_smithy_client.take)(output, {
2230
2326
  datasetExportJob: (_) => de_DatasetExportJob(_, context)
@@ -2394,6 +2490,12 @@ var de_ListCampaignsResponse = /* @__PURE__ */ __name((output, context) => {
2394
2490
  nextToken: import_smithy_client.expectString
2395
2491
  });
2396
2492
  }, "de_ListCampaignsResponse");
2493
+ var de_ListDataDeletionJobsResponse = /* @__PURE__ */ __name((output, context) => {
2494
+ return (0, import_smithy_client.take)(output, {
2495
+ dataDeletionJobs: (_) => de_DataDeletionJobs(_, context),
2496
+ nextToken: import_smithy_client.expectString
2497
+ });
2498
+ }, "de_ListDataDeletionJobsResponse");
2397
2499
  var de_ListDatasetExportJobsResponse = /* @__PURE__ */ __name((output, context) => {
2398
2500
  return (0, import_smithy_client.take)(output, {
2399
2501
  datasetExportJobs: (_) => de_DatasetExportJobs(_, context),
@@ -2744,6 +2846,23 @@ var _CreateCampaignCommand = class _CreateCampaignCommand extends import_smithy_
2744
2846
  __name(_CreateCampaignCommand, "CreateCampaignCommand");
2745
2847
  var CreateCampaignCommand = _CreateCampaignCommand;
2746
2848
 
2849
+ // src/commands/CreateDataDeletionJobCommand.ts
2850
+
2851
+
2852
+
2853
+
2854
+ var _CreateDataDeletionJobCommand = class _CreateDataDeletionJobCommand extends import_smithy_client.Command.classBuilder().ep({
2855
+ ...commonParams
2856
+ }).m(function(Command, cs, config, o) {
2857
+ return [
2858
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2859
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2860
+ ];
2861
+ }).s("AmazonPersonalize", "CreateDataDeletionJob", {}).n("PersonalizeClient", "CreateDataDeletionJobCommand").f(void 0, void 0).ser(se_CreateDataDeletionJobCommand).de(de_CreateDataDeletionJobCommand).build() {
2862
+ };
2863
+ __name(_CreateDataDeletionJobCommand, "CreateDataDeletionJobCommand");
2864
+ var CreateDataDeletionJobCommand = _CreateDataDeletionJobCommand;
2865
+
2747
2866
  // src/commands/CreateDatasetCommand.ts
2748
2867
 
2749
2868
 
@@ -3152,6 +3271,23 @@ var _DescribeCampaignCommand = class _DescribeCampaignCommand extends import_smi
3152
3271
  __name(_DescribeCampaignCommand, "DescribeCampaignCommand");
3153
3272
  var DescribeCampaignCommand = _DescribeCampaignCommand;
3154
3273
 
3274
+ // src/commands/DescribeDataDeletionJobCommand.ts
3275
+
3276
+
3277
+
3278
+
3279
+ var _DescribeDataDeletionJobCommand = class _DescribeDataDeletionJobCommand extends import_smithy_client.Command.classBuilder().ep({
3280
+ ...commonParams
3281
+ }).m(function(Command, cs, config, o) {
3282
+ return [
3283
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3284
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3285
+ ];
3286
+ }).s("AmazonPersonalize", "DescribeDataDeletionJob", {}).n("PersonalizeClient", "DescribeDataDeletionJobCommand").f(void 0, void 0).ser(se_DescribeDataDeletionJobCommand).de(de_DescribeDataDeletionJobCommand).build() {
3287
+ };
3288
+ __name(_DescribeDataDeletionJobCommand, "DescribeDataDeletionJobCommand");
3289
+ var DescribeDataDeletionJobCommand = _DescribeDataDeletionJobCommand;
3290
+
3155
3291
  // src/commands/DescribeDatasetCommand.ts
3156
3292
 
3157
3293
 
@@ -3441,6 +3577,23 @@ var _ListCampaignsCommand = class _ListCampaignsCommand extends import_smithy_cl
3441
3577
  __name(_ListCampaignsCommand, "ListCampaignsCommand");
3442
3578
  var ListCampaignsCommand = _ListCampaignsCommand;
3443
3579
 
3580
+ // src/commands/ListDataDeletionJobsCommand.ts
3581
+
3582
+
3583
+
3584
+
3585
+ var _ListDataDeletionJobsCommand = class _ListDataDeletionJobsCommand extends import_smithy_client.Command.classBuilder().ep({
3586
+ ...commonParams
3587
+ }).m(function(Command, cs, config, o) {
3588
+ return [
3589
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3590
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3591
+ ];
3592
+ }).s("AmazonPersonalize", "ListDataDeletionJobs", {}).n("PersonalizeClient", "ListDataDeletionJobsCommand").f(void 0, void 0).ser(se_ListDataDeletionJobsCommand).de(de_ListDataDeletionJobsCommand).build() {
3593
+ };
3594
+ __name(_ListDataDeletionJobsCommand, "ListDataDeletionJobsCommand");
3595
+ var ListDataDeletionJobsCommand = _ListDataDeletionJobsCommand;
3596
+
3444
3597
  // src/commands/ListDatasetExportJobsCommand.ts
3445
3598
 
3446
3599
 
@@ -3837,6 +3990,7 @@ var commands = {
3837
3990
  CreateBatchInferenceJobCommand,
3838
3991
  CreateBatchSegmentJobCommand,
3839
3992
  CreateCampaignCommand,
3993
+ CreateDataDeletionJobCommand,
3840
3994
  CreateDatasetCommand,
3841
3995
  CreateDatasetExportJobCommand,
3842
3996
  CreateDatasetGroupCommand,
@@ -3861,6 +4015,7 @@ var commands = {
3861
4015
  DescribeBatchInferenceJobCommand,
3862
4016
  DescribeBatchSegmentJobCommand,
3863
4017
  DescribeCampaignCommand,
4018
+ DescribeDataDeletionJobCommand,
3864
4019
  DescribeDatasetCommand,
3865
4020
  DescribeDatasetExportJobCommand,
3866
4021
  DescribeDatasetGroupCommand,
@@ -3878,6 +4033,7 @@ var commands = {
3878
4033
  ListBatchInferenceJobsCommand,
3879
4034
  ListBatchSegmentJobsCommand,
3880
4035
  ListCampaignsCommand,
4036
+ ListDataDeletionJobsCommand,
3881
4037
  ListDatasetExportJobsCommand,
3882
4038
  ListDatasetGroupsCommand,
3883
4039
  ListDatasetImportJobsCommand,
@@ -3982,6 +4138,7 @@ var paginateListSolutions = (0, import_core.createPaginator)(PersonalizeClient,
3982
4138
  CreateBatchInferenceJobCommand,
3983
4139
  CreateBatchSegmentJobCommand,
3984
4140
  CreateCampaignCommand,
4141
+ CreateDataDeletionJobCommand,
3985
4142
  CreateDatasetCommand,
3986
4143
  CreateDatasetExportJobCommand,
3987
4144
  CreateDatasetGroupCommand,
@@ -4006,6 +4163,7 @@ var paginateListSolutions = (0, import_core.createPaginator)(PersonalizeClient,
4006
4163
  DescribeBatchInferenceJobCommand,
4007
4164
  DescribeBatchSegmentJobCommand,
4008
4165
  DescribeCampaignCommand,
4166
+ DescribeDataDeletionJobCommand,
4009
4167
  DescribeDatasetCommand,
4010
4168
  DescribeDatasetExportJobCommand,
4011
4169
  DescribeDatasetGroupCommand,
@@ -4023,6 +4181,7 @@ var paginateListSolutions = (0, import_core.createPaginator)(PersonalizeClient,
4023
4181
  ListBatchInferenceJobsCommand,
4024
4182
  ListBatchSegmentJobsCommand,
4025
4183
  ListCampaignsCommand,
4184
+ ListDataDeletionJobsCommand,
4026
4185
  ListDatasetExportJobsCommand,
4027
4186
  ListDatasetGroupsCommand,
4028
4187
  ListDatasetImportJobsCommand,
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateBatchInferenceJobCommand, } from "./commands/CreateBatchInferenceJobCommand";
3
3
  import { CreateBatchSegmentJobCommand, } from "./commands/CreateBatchSegmentJobCommand";
4
4
  import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand";
5
+ import { CreateDataDeletionJobCommand, } from "./commands/CreateDataDeletionJobCommand";
5
6
  import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
6
7
  import { CreateDatasetExportJobCommand, } from "./commands/CreateDatasetExportJobCommand";
7
8
  import { CreateDatasetGroupCommand, } from "./commands/CreateDatasetGroupCommand";
@@ -26,6 +27,7 @@ import { DescribeAlgorithmCommand, } from "./commands/DescribeAlgorithmCommand";
26
27
  import { DescribeBatchInferenceJobCommand, } from "./commands/DescribeBatchInferenceJobCommand";
27
28
  import { DescribeBatchSegmentJobCommand, } from "./commands/DescribeBatchSegmentJobCommand";
28
29
  import { DescribeCampaignCommand, } from "./commands/DescribeCampaignCommand";
30
+ import { DescribeDataDeletionJobCommand, } from "./commands/DescribeDataDeletionJobCommand";
29
31
  import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
30
32
  import { DescribeDatasetExportJobCommand, } from "./commands/DescribeDatasetExportJobCommand";
31
33
  import { DescribeDatasetGroupCommand, } from "./commands/DescribeDatasetGroupCommand";
@@ -43,6 +45,7 @@ import { GetSolutionMetricsCommand, } from "./commands/GetSolutionMetricsCommand
43
45
  import { ListBatchInferenceJobsCommand, } from "./commands/ListBatchInferenceJobsCommand";
44
46
  import { ListBatchSegmentJobsCommand, } from "./commands/ListBatchSegmentJobsCommand";
45
47
  import { ListCampaignsCommand, } from "./commands/ListCampaignsCommand";
48
+ import { ListDataDeletionJobsCommand, } from "./commands/ListDataDeletionJobsCommand";
46
49
  import { ListDatasetExportJobsCommand, } from "./commands/ListDatasetExportJobsCommand";
47
50
  import { ListDatasetGroupsCommand, } from "./commands/ListDatasetGroupsCommand";
48
51
  import { ListDatasetImportJobsCommand, } from "./commands/ListDatasetImportJobsCommand";
@@ -71,6 +74,7 @@ const commands = {
71
74
  CreateBatchInferenceJobCommand,
72
75
  CreateBatchSegmentJobCommand,
73
76
  CreateCampaignCommand,
77
+ CreateDataDeletionJobCommand,
74
78
  CreateDatasetCommand,
75
79
  CreateDatasetExportJobCommand,
76
80
  CreateDatasetGroupCommand,
@@ -95,6 +99,7 @@ const commands = {
95
99
  DescribeBatchInferenceJobCommand,
96
100
  DescribeBatchSegmentJobCommand,
97
101
  DescribeCampaignCommand,
102
+ DescribeDataDeletionJobCommand,
98
103
  DescribeDatasetCommand,
99
104
  DescribeDatasetExportJobCommand,
100
105
  DescribeDatasetGroupCommand,
@@ -112,6 +117,7 @@ const commands = {
112
117
  ListBatchInferenceJobsCommand,
113
118
  ListBatchSegmentJobsCommand,
114
119
  ListCampaignsCommand,
120
+ ListDataDeletionJobsCommand,
115
121
  ListDatasetExportJobsCommand,
116
122
  ListDatasetGroupsCommand,
117
123
  ListDatasetImportJobsCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateDataDeletionJobCommand, se_CreateDataDeletionJobCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class CreateDataDeletionJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPersonalize", "CreateDataDeletionJob", {})
19
+ .n("PersonalizeClient", "CreateDataDeletionJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateDataDeletionJobCommand)
22
+ .de(de_CreateDataDeletionJobCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeDataDeletionJobCommand, se_DescribeDataDeletionJobCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DescribeDataDeletionJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPersonalize", "DescribeDataDeletionJob", {})
19
+ .n("PersonalizeClient", "DescribeDataDeletionJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeDataDeletionJobCommand)
22
+ .de(de_DescribeDataDeletionJobCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListDataDeletionJobsCommand, se_ListDataDeletionJobsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListDataDeletionJobsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPersonalize", "ListDataDeletionJobs", {})
19
+ .n("PersonalizeClient", "ListDataDeletionJobsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDataDeletionJobsCommand)
22
+ .de(de_ListDataDeletionJobsCommand)
23
+ .build() {
24
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./CreateBatchInferenceJobCommand";
2
2
  export * from "./CreateBatchSegmentJobCommand";
3
3
  export * from "./CreateCampaignCommand";
4
+ export * from "./CreateDataDeletionJobCommand";
4
5
  export * from "./CreateDatasetCommand";
5
6
  export * from "./CreateDatasetExportJobCommand";
6
7
  export * from "./CreateDatasetGroupCommand";
@@ -25,6 +26,7 @@ export * from "./DescribeAlgorithmCommand";
25
26
  export * from "./DescribeBatchInferenceJobCommand";
26
27
  export * from "./DescribeBatchSegmentJobCommand";
27
28
  export * from "./DescribeCampaignCommand";
29
+ export * from "./DescribeDataDeletionJobCommand";
28
30
  export * from "./DescribeDatasetCommand";
29
31
  export * from "./DescribeDatasetExportJobCommand";
30
32
  export * from "./DescribeDatasetGroupCommand";
@@ -42,6 +44,7 @@ export * from "./GetSolutionMetricsCommand";
42
44
  export * from "./ListBatchInferenceJobsCommand";
43
45
  export * from "./ListBatchSegmentJobsCommand";
44
46
  export * from "./ListCampaignsCommand";
47
+ export * from "./ListDataDeletionJobsCommand";
45
48
  export * from "./ListDatasetExportJobsCommand";
46
49
  export * from "./ListDatasetGroupsCommand";
47
50
  export * from "./ListDatasetImportJobsCommand";
@@ -21,6 +21,12 @@ export const se_CreateCampaignCommand = async (input, context) => {
21
21
  body = JSON.stringify(_json(input));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
+ export const se_CreateDataDeletionJobCommand = async (input, context) => {
25
+ const headers = sharedHeaders("CreateDataDeletionJob");
26
+ let body;
27
+ body = JSON.stringify(_json(input));
28
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
+ };
24
30
  export const se_CreateDatasetCommand = async (input, context) => {
25
31
  const headers = sharedHeaders("CreateDataset");
26
32
  let body;
@@ -165,6 +171,12 @@ export const se_DescribeCampaignCommand = async (input, context) => {
165
171
  body = JSON.stringify(_json(input));
166
172
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
173
  };
174
+ export const se_DescribeDataDeletionJobCommand = async (input, context) => {
175
+ const headers = sharedHeaders("DescribeDataDeletionJob");
176
+ let body;
177
+ body = JSON.stringify(_json(input));
178
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
+ };
168
180
  export const se_DescribeDatasetCommand = async (input, context) => {
169
181
  const headers = sharedHeaders("DescribeDataset");
170
182
  let body;
@@ -267,6 +279,12 @@ export const se_ListCampaignsCommand = async (input, context) => {
267
279
  body = JSON.stringify(_json(input));
268
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
281
  };
282
+ export const se_ListDataDeletionJobsCommand = async (input, context) => {
283
+ const headers = sharedHeaders("ListDataDeletionJobs");
284
+ let body;
285
+ body = JSON.stringify(_json(input));
286
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
+ };
270
288
  export const se_ListDatasetExportJobsCommand = async (input, context) => {
271
289
  const headers = sharedHeaders("ListDatasetExportJobs");
272
290
  let body;
@@ -444,6 +462,19 @@ export const de_CreateCampaignCommand = async (output, context) => {
444
462
  };
445
463
  return response;
446
464
  };
465
+ export const de_CreateDataDeletionJobCommand = async (output, context) => {
466
+ if (output.statusCode >= 300) {
467
+ return de_CommandError(output, context);
468
+ }
469
+ const data = await parseBody(output.body, context);
470
+ let contents = {};
471
+ contents = _json(data);
472
+ const response = {
473
+ $metadata: deserializeMetadata(output),
474
+ ...contents,
475
+ };
476
+ return response;
477
+ };
447
478
  export const de_CreateDatasetCommand = async (output, context) => {
448
479
  if (output.statusCode >= 300) {
449
480
  return de_CommandError(output, context);
@@ -729,6 +760,19 @@ export const de_DescribeCampaignCommand = async (output, context) => {
729
760
  };
730
761
  return response;
731
762
  };
763
+ export const de_DescribeDataDeletionJobCommand = async (output, context) => {
764
+ if (output.statusCode >= 300) {
765
+ return de_CommandError(output, context);
766
+ }
767
+ const data = await parseBody(output.body, context);
768
+ let contents = {};
769
+ contents = de_DescribeDataDeletionJobResponse(data, context);
770
+ const response = {
771
+ $metadata: deserializeMetadata(output),
772
+ ...contents,
773
+ };
774
+ return response;
775
+ };
732
776
  export const de_DescribeDatasetCommand = async (output, context) => {
733
777
  if (output.statusCode >= 300) {
734
778
  return de_CommandError(output, context);
@@ -950,6 +994,19 @@ export const de_ListCampaignsCommand = async (output, context) => {
950
994
  };
951
995
  return response;
952
996
  };
997
+ export const de_ListDataDeletionJobsCommand = async (output, context) => {
998
+ if (output.statusCode >= 300) {
999
+ return de_CommandError(output, context);
1000
+ }
1001
+ const data = await parseBody(output.body, context);
1002
+ let contents = {};
1003
+ contents = de_ListDataDeletionJobsResponse(data, context);
1004
+ const response = {
1005
+ $metadata: deserializeMetadata(output),
1006
+ ...contents,
1007
+ };
1008
+ return response;
1009
+ };
953
1010
  export const de_ListDatasetExportJobsCommand = async (output, context) => {
954
1011
  if (output.statusCode >= 300) {
955
1012
  return de_CommandError(output, context);
@@ -1557,6 +1614,39 @@ const de_ContinuousHyperParameterRanges = (output, context) => {
1557
1614
  });
1558
1615
  return retVal;
1559
1616
  };
1617
+ const de_DataDeletionJob = (output, context) => {
1618
+ return take(output, {
1619
+ creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1620
+ dataDeletionJobArn: __expectString,
1621
+ dataSource: _json,
1622
+ datasetGroupArn: __expectString,
1623
+ failureReason: __expectString,
1624
+ jobName: __expectString,
1625
+ lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1626
+ numDeleted: __expectInt32,
1627
+ roleArn: __expectString,
1628
+ status: __expectString,
1629
+ });
1630
+ };
1631
+ const de_DataDeletionJobs = (output, context) => {
1632
+ const retVal = (output || [])
1633
+ .filter((e) => e != null)
1634
+ .map((entry) => {
1635
+ return de_DataDeletionJobSummary(entry, context);
1636
+ });
1637
+ return retVal;
1638
+ };
1639
+ const de_DataDeletionJobSummary = (output, context) => {
1640
+ return take(output, {
1641
+ creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1642
+ dataDeletionJobArn: __expectString,
1643
+ datasetGroupArn: __expectString,
1644
+ failureReason: __expectString,
1645
+ jobName: __expectString,
1646
+ lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1647
+ status: __expectString,
1648
+ });
1649
+ };
1560
1650
  const de_Dataset = (output, context) => {
1561
1651
  return take(output, {
1562
1652
  creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1758,6 +1848,11 @@ const de_DescribeCampaignResponse = (output, context) => {
1758
1848
  campaign: (_) => de_Campaign(_, context),
1759
1849
  });
1760
1850
  };
1851
+ const de_DescribeDataDeletionJobResponse = (output, context) => {
1852
+ return take(output, {
1853
+ dataDeletionJob: (_) => de_DataDeletionJob(_, context),
1854
+ });
1855
+ };
1761
1856
  const de_DescribeDatasetExportJobResponse = (output, context) => {
1762
1857
  return take(output, {
1763
1858
  datasetExportJob: (_) => de_DatasetExportJob(_, context),
@@ -1931,6 +2026,12 @@ const de_ListCampaignsResponse = (output, context) => {
1931
2026
  nextToken: __expectString,
1932
2027
  });
1933
2028
  };
2029
+ const de_ListDataDeletionJobsResponse = (output, context) => {
2030
+ return take(output, {
2031
+ dataDeletionJobs: (_) => de_DataDeletionJobs(_, context),
2032
+ nextToken: __expectString,
2033
+ });
2034
+ };
1934
2035
  const de_ListDatasetExportJobsResponse = (output, context) => {
1935
2036
  return take(output, {
1936
2037
  datasetExportJobs: (_) => de_DatasetExportJobs(_, context),