Skip to content

Commit

Permalink
feat(client-personalize): This releases ability to delete users and t…
Browse files Browse the repository at this point in the history
…heir data, including their metadata and interactions data, from a dataset group.
  • Loading branch information
awstools committed May 2, 2024
1 parent 0903d38 commit 3c7432b
Show file tree
Hide file tree
Showing 10 changed files with 1,303 additions and 19 deletions.
24 changes: 24 additions & 0 deletions clients/client-personalize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ CreateCampaign

[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/)

</details>
<details>
<summary>
CreateDataDeletionJob
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -419,6 +427,14 @@ DescribeCampaign

[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/)

</details>
<details>
<summary>
DescribeDataDeletionJob
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -555,6 +571,14 @@ ListCampaigns

[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/)

</details>
<details>
<summary>
ListDataDeletionJobs
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
70 changes: 70 additions & 0 deletions clients/client-personalize/src/Personalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import {
CreateCampaignCommandInput,
CreateCampaignCommandOutput,
} from "./commands/CreateCampaignCommand";
import {
CreateDataDeletionJobCommand,
CreateDataDeletionJobCommandInput,
CreateDataDeletionJobCommandOutput,
} from "./commands/CreateDataDeletionJobCommand";
import {
CreateDatasetCommand,
CreateDatasetCommandInput,
Expand Down Expand Up @@ -137,6 +142,11 @@ import {
DescribeCampaignCommandInput,
DescribeCampaignCommandOutput,
} from "./commands/DescribeCampaignCommand";
import {
DescribeDataDeletionJobCommand,
DescribeDataDeletionJobCommandInput,
DescribeDataDeletionJobCommandOutput,
} from "./commands/DescribeDataDeletionJobCommand";
import {
DescribeDatasetCommand,
DescribeDatasetCommandInput,
Expand Down Expand Up @@ -222,6 +232,11 @@ import {
ListCampaignsCommandInput,
ListCampaignsCommandOutput,
} from "./commands/ListCampaignsCommand";
import {
ListDataDeletionJobsCommand,
ListDataDeletionJobsCommandInput,
ListDataDeletionJobsCommandOutput,
} from "./commands/ListDataDeletionJobsCommand";
import {
ListDatasetExportJobsCommand,
ListDatasetExportJobsCommandInput,
Expand Down Expand Up @@ -327,6 +342,7 @@ const commands = {
CreateBatchInferenceJobCommand,
CreateBatchSegmentJobCommand,
CreateCampaignCommand,
CreateDataDeletionJobCommand,
CreateDatasetCommand,
CreateDatasetExportJobCommand,
CreateDatasetGroupCommand,
Expand All @@ -351,6 +367,7 @@ const commands = {
DescribeBatchInferenceJobCommand,
DescribeBatchSegmentJobCommand,
DescribeCampaignCommand,
DescribeDataDeletionJobCommand,
DescribeDatasetCommand,
DescribeDatasetExportJobCommand,
DescribeDatasetGroupCommand,
Expand All @@ -368,6 +385,7 @@ const commands = {
ListBatchInferenceJobsCommand,
ListBatchSegmentJobsCommand,
ListCampaignsCommand,
ListDataDeletionJobsCommand,
ListDatasetExportJobsCommand,
ListDatasetGroupsCommand,
ListDatasetImportJobsCommand,
Expand Down Expand Up @@ -442,6 +460,23 @@ export interface Personalize {
cb: (err: any, data?: CreateCampaignCommandOutput) => void
): void;

/**
* @see {@link CreateDataDeletionJobCommand}
*/
createDataDeletionJob(
args: CreateDataDeletionJobCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateDataDeletionJobCommandOutput>;
createDataDeletionJob(
args: CreateDataDeletionJobCommandInput,
cb: (err: any, data?: CreateDataDeletionJobCommandOutput) => void
): void;
createDataDeletionJob(
args: CreateDataDeletionJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateDataDeletionJobCommandOutput) => void
): void;

/**
* @see {@link CreateDatasetCommand}
*/
Expand Down Expand Up @@ -805,6 +840,23 @@ export interface Personalize {
cb: (err: any, data?: DescribeCampaignCommandOutput) => void
): void;

/**
* @see {@link DescribeDataDeletionJobCommand}
*/
describeDataDeletionJob(
args: DescribeDataDeletionJobCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeDataDeletionJobCommandOutput>;
describeDataDeletionJob(
args: DescribeDataDeletionJobCommandInput,
cb: (err: any, data?: DescribeDataDeletionJobCommandOutput) => void
): void;
describeDataDeletionJob(
args: DescribeDataDeletionJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeDataDeletionJobCommandOutput) => void
): void;

/**
* @see {@link DescribeDatasetCommand}
*/
Expand Down Expand Up @@ -1079,6 +1131,24 @@ export interface Personalize {
cb: (err: any, data?: ListCampaignsCommandOutput) => void
): void;

/**
* @see {@link ListDataDeletionJobsCommand}
*/
listDataDeletionJobs(): Promise<ListDataDeletionJobsCommandOutput>;
listDataDeletionJobs(
args: ListDataDeletionJobsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListDataDeletionJobsCommandOutput>;
listDataDeletionJobs(
args: ListDataDeletionJobsCommandInput,
cb: (err: any, data?: ListDataDeletionJobsCommandOutput) => void
): void;
listDataDeletionJobs(
args: ListDataDeletionJobsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListDataDeletionJobsCommandOutput) => void
): void;

/**
* @see {@link ListDatasetExportJobsCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-personalize/src/PersonalizeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ import {
CreateBatchSegmentJobCommandOutput,
} from "./commands/CreateBatchSegmentJobCommand";
import { CreateCampaignCommandInput, CreateCampaignCommandOutput } from "./commands/CreateCampaignCommand";
import {
CreateDataDeletionJobCommandInput,
CreateDataDeletionJobCommandOutput,
} from "./commands/CreateDataDeletionJobCommand";
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "./commands/CreateDatasetCommand";
import {
CreateDatasetExportJobCommandInput,
Expand Down Expand Up @@ -107,6 +111,10 @@ import {
DescribeBatchSegmentJobCommandOutput,
} from "./commands/DescribeBatchSegmentJobCommand";
import { DescribeCampaignCommandInput, DescribeCampaignCommandOutput } from "./commands/DescribeCampaignCommand";
import {
DescribeDataDeletionJobCommandInput,
DescribeDataDeletionJobCommandOutput,
} from "./commands/DescribeDataDeletionJobCommand";
import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
import {
DescribeDatasetExportJobCommandInput,
Expand Down Expand Up @@ -154,6 +162,10 @@ import {
ListBatchSegmentJobsCommandOutput,
} from "./commands/ListBatchSegmentJobsCommand";
import { ListCampaignsCommandInput, ListCampaignsCommandOutput } from "./commands/ListCampaignsCommand";
import {
ListDataDeletionJobsCommandInput,
ListDataDeletionJobsCommandOutput,
} from "./commands/ListDataDeletionJobsCommand";
import {
ListDatasetExportJobsCommandInput,
ListDatasetExportJobsCommandOutput,
Expand Down Expand Up @@ -219,6 +231,7 @@ export type ServiceInputTypes =
| CreateBatchInferenceJobCommandInput
| CreateBatchSegmentJobCommandInput
| CreateCampaignCommandInput
| CreateDataDeletionJobCommandInput
| CreateDatasetCommandInput
| CreateDatasetExportJobCommandInput
| CreateDatasetGroupCommandInput
Expand All @@ -243,6 +256,7 @@ export type ServiceInputTypes =
| DescribeBatchInferenceJobCommandInput
| DescribeBatchSegmentJobCommandInput
| DescribeCampaignCommandInput
| DescribeDataDeletionJobCommandInput
| DescribeDatasetCommandInput
| DescribeDatasetExportJobCommandInput
| DescribeDatasetGroupCommandInput
Expand All @@ -260,6 +274,7 @@ export type ServiceInputTypes =
| ListBatchInferenceJobsCommandInput
| ListBatchSegmentJobsCommandInput
| ListCampaignsCommandInput
| ListDataDeletionJobsCommandInput
| ListDatasetExportJobsCommandInput
| ListDatasetGroupsCommandInput
| ListDatasetImportJobsCommandInput
Expand Down Expand Up @@ -291,6 +306,7 @@ export type ServiceOutputTypes =
| CreateBatchInferenceJobCommandOutput
| CreateBatchSegmentJobCommandOutput
| CreateCampaignCommandOutput
| CreateDataDeletionJobCommandOutput
| CreateDatasetCommandOutput
| CreateDatasetExportJobCommandOutput
| CreateDatasetGroupCommandOutput
Expand All @@ -315,6 +331,7 @@ export type ServiceOutputTypes =
| DescribeBatchInferenceJobCommandOutput
| DescribeBatchSegmentJobCommandOutput
| DescribeCampaignCommandOutput
| DescribeDataDeletionJobCommandOutput
| DescribeDatasetCommandOutput
| DescribeDatasetExportJobCommandOutput
| DescribeDatasetGroupCommandOutput
Expand All @@ -332,6 +349,7 @@ export type ServiceOutputTypes =
| ListBatchInferenceJobsCommandOutput
| ListBatchSegmentJobsCommandOutput
| ListCampaignsCommandOutput
| ListDataDeletionJobsCommandOutput
| ListDatasetExportJobsCommandOutput
| ListDatasetGroupsCommandOutput
| ListDatasetImportJobsCommandOutput
Expand Down
Loading

0 comments on commit 3c7432b

Please sign in to comment.