Skip to content

Commit feb659a

Browse files
author
awstools
committed
feat(client-cleanroomsml): This release introduces support for incremental training and distributed training for custom models in AWS Clean Rooms ML.
1 parent 32269b6 commit feb659a

File tree

41 files changed

+1587
-481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1587
-481
lines changed

clients/client-cleanroomsml/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66

77
AWS SDK for JavaScript CleanRoomsML Client for Node.js, Browser and React Native.
88

9-
<p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p>
10-
<p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p>
11-
<p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the
12-
<a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p>
13-
<p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the
14-
<a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
9+
<p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p> <p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p> <p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p> <p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
1510

1611
## Installing
1712

@@ -591,6 +586,14 @@ ListTrainedModels
591586

592587
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cleanroomsml/command/ListTrainedModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cleanroomsml/Interface/ListTrainedModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cleanroomsml/Interface/ListTrainedModelsCommandOutput/)
593588

589+
</details>
590+
<details>
591+
<summary>
592+
ListTrainedModelVersions
593+
</summary>
594+
595+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cleanroomsml/command/ListTrainedModelVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cleanroomsml/Interface/ListTrainedModelVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cleanroomsml/Interface/ListTrainedModelVersionsCommandOutput/)
596+
594597
</details>
595598
<details>
596599
<summary>

clients/client-cleanroomsml/src/CleanRoomsML.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ import {
243243
ListTrainedModelsCommandInput,
244244
ListTrainedModelsCommandOutput,
245245
} from "./commands/ListTrainedModelsCommand";
246+
import {
247+
ListTrainedModelVersionsCommand,
248+
ListTrainedModelVersionsCommandInput,
249+
ListTrainedModelVersionsCommandOutput,
250+
} from "./commands/ListTrainedModelVersionsCommand";
246251
import {
247252
ListTrainingDatasetsCommand,
248253
ListTrainingDatasetsCommandInput,
@@ -339,6 +344,7 @@ const commands = {
339344
ListTagsForResourceCommand,
340345
ListTrainedModelInferenceJobsCommand,
341346
ListTrainedModelsCommand,
347+
ListTrainedModelVersionsCommand,
342348
ListTrainingDatasetsCommand,
343349
PutConfiguredAudienceModelPolicyCommand,
344350
PutMLConfigurationCommand,
@@ -1170,6 +1176,23 @@ export interface CleanRoomsML {
11701176
cb: (err: any, data?: ListTrainedModelsCommandOutput) => void
11711177
): void;
11721178

1179+
/**
1180+
* @see {@link ListTrainedModelVersionsCommand}
1181+
*/
1182+
listTrainedModelVersions(
1183+
args: ListTrainedModelVersionsCommandInput,
1184+
options?: __HttpHandlerOptions
1185+
): Promise<ListTrainedModelVersionsCommandOutput>;
1186+
listTrainedModelVersions(
1187+
args: ListTrainedModelVersionsCommandInput,
1188+
cb: (err: any, data?: ListTrainedModelVersionsCommandOutput) => void
1189+
): void;
1190+
listTrainedModelVersions(
1191+
args: ListTrainedModelVersionsCommandInput,
1192+
options: __HttpHandlerOptions,
1193+
cb: (err: any, data?: ListTrainedModelVersionsCommandOutput) => void
1194+
): void;
1195+
11731196
/**
11741197
* @see {@link ListTrainingDatasetsCommand}
11751198
*/
@@ -1331,12 +1354,7 @@ export interface CleanRoomsML {
13311354
}
13321355

13331356
/**
1334-
* <p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p>
1335-
* <p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p>
1336-
* <p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the
1337-
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p>
1338-
* <p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the
1339-
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
1357+
* <p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p> <p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p> <p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p> <p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
13401358
* @public
13411359
*/
13421360
export class CleanRoomsML extends CleanRoomsMLClient implements CleanRoomsML {}

clients/client-cleanroomsml/src/CleanRoomsMLClient.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ import {
218218
ListTrainedModelInferenceJobsCommandOutput,
219219
} from "./commands/ListTrainedModelInferenceJobsCommand";
220220
import { ListTrainedModelsCommandInput, ListTrainedModelsCommandOutput } from "./commands/ListTrainedModelsCommand";
221+
import {
222+
ListTrainedModelVersionsCommandInput,
223+
ListTrainedModelVersionsCommandOutput,
224+
} from "./commands/ListTrainedModelVersionsCommand";
221225
import {
222226
ListTrainingDatasetsCommandInput,
223227
ListTrainingDatasetsCommandOutput,
@@ -311,6 +315,7 @@ export type ServiceInputTypes =
311315
| ListMLInputChannelsCommandInput
312316
| ListTagsForResourceCommandInput
313317
| ListTrainedModelInferenceJobsCommandInput
318+
| ListTrainedModelVersionsCommandInput
314319
| ListTrainedModelsCommandInput
315320
| ListTrainingDatasetsCommandInput
316321
| PutConfiguredAudienceModelPolicyCommandInput
@@ -374,6 +379,7 @@ export type ServiceOutputTypes =
374379
| ListMLInputChannelsCommandOutput
375380
| ListTagsForResourceCommandOutput
376381
| ListTrainedModelInferenceJobsCommandOutput
382+
| ListTrainedModelVersionsCommandOutput
377383
| ListTrainedModelsCommandOutput
378384
| ListTrainingDatasetsCommandOutput
379385
| PutConfiguredAudienceModelPolicyCommandOutput
@@ -577,12 +583,7 @@ export type CleanRoomsMLClientResolvedConfigType = __SmithyResolvedConfiguration
577583
export interface CleanRoomsMLClientResolvedConfig extends CleanRoomsMLClientResolvedConfigType {}
578584

579585
/**
580-
* <p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p>
581-
* <p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p>
582-
* <p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the
583-
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p>
584-
* <p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the
585-
* <a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
586+
* <p>Welcome to the <i>Amazon Web Services Clean Rooms ML API Reference</i>.</p> <p>Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.</p> <p>To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/userguide/machine-learning.html">Clean Rooms User Guide</a>.</p> <p>To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the <a href="https://docs.aws.amazon.com/clean-rooms/latest/sql-reference/sql-reference.html">Clean Rooms SQL Reference</a>.</p>
586587
* @public
587588
*/
588589
export class CleanRoomsMLClient extends __Client<

clients/client-cleanroomsml/src/commands/CancelTrainedModelCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface CancelTrainedModelCommandOutput extends __MetadataBearer {}
3838
* const input = { // CancelTrainedModelRequest
3939
* membershipIdentifier: "STRING_VALUE", // required
4040
* trainedModelArn: "STRING_VALUE", // required
41+
* versionIdentifier: "STRING_VALUE",
4142
* };
4243
* const command = new CancelTrainedModelCommand(input);
4344
* const response = await client.send(command);
@@ -60,6 +61,9 @@ export interface CancelTrainedModelCommandOutput extends __MetadataBearer {}
6061
* @throws {@link ResourceNotFoundException} (client fault)
6162
* <p>The resource you are requesting does not exist.</p>
6263
*
64+
* @throws {@link ThrottlingException} (client fault)
65+
* <p>The request was denied due to request throttling.</p>
66+
*
6367
* @throws {@link ValidationException} (client fault)
6468
* <p>The request parameters for this request are incorrect.</p>
6569
*

clients/client-cleanroomsml/src/commands/CancelTrainedModelInferenceJobCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export interface CancelTrainedModelInferenceJobCommandOutput extends __MetadataB
6363
* @throws {@link ResourceNotFoundException} (client fault)
6464
* <p>The resource you are requesting does not exist.</p>
6565
*
66+
* @throws {@link ThrottlingException} (client fault)
67+
* <p>The request was denied due to request throttling.</p>
68+
*
6669
* @throws {@link ValidationException} (client fault)
6770
* <p>The request parameters for this request are incorrect.</p>
6871
*

clients/client-cleanroomsml/src/commands/CreateConfiguredModelAlgorithmAssociationCommand.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ export interface CreateConfiguredModelAlgorithmAssociationCommandOutput
6363
* containerMetrics: { // MetricsConfigurationPolicy
6464
* noiseLevel: "HIGH" || "MEDIUM" || "LOW" || "NONE", // required
6565
* },
66+
* maxArtifactSize: { // TrainedModelArtifactMaxSize
67+
* unit: "GB", // required
68+
* value: Number("double"), // required
69+
* },
6670
* },
6771
* trainedModelExports: { // TrainedModelExportsConfigurationPolicy
6872
* maxSize: { // TrainedModelExportsMaxSize
@@ -119,6 +123,9 @@ export interface CreateConfiguredModelAlgorithmAssociationCommandOutput
119123
* @throws {@link ServiceQuotaExceededException} (client fault)
120124
* <p>You have exceeded your service quota.</p>
121125
*
126+
* @throws {@link ThrottlingException} (client fault)
127+
* <p>The request was denied due to request throttling.</p>
128+
*
122129
* @throws {@link ValidationException} (client fault)
123130
* <p>The request parameters for this request are incorrect.</p>
124131
*

clients/client-cleanroomsml/src/commands/CreateMLInputChannelCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export interface CreateMLInputChannelCommandOutput extends CreateMLInputChannelR
9898
* @throws {@link ServiceQuotaExceededException} (client fault)
9999
* <p>You have exceeded your service quota.</p>
100100
*
101+
* @throws {@link ThrottlingException} (client fault)
102+
* <p>The request was denied due to request throttling.</p>
103+
*
101104
* @throws {@link ValidationException} (client fault)
102105
* <p>The request parameters for this request are incorrect.</p>
103106
*

clients/client-cleanroomsml/src/commands/CreateTrainedModelCommand.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,21 @@ export interface CreateTrainedModelCommandOutput extends CreateTrainedModelRespo
5353
* stoppingCondition: { // StoppingCondition
5454
* maxRuntimeInSeconds: Number("int"),
5555
* },
56+
* incrementalTrainingDataChannels: [ // IncrementalTrainingDataChannels
57+
* { // IncrementalTrainingDataChannel
58+
* trainedModelArn: "STRING_VALUE", // required
59+
* versionIdentifier: "STRING_VALUE",
60+
* channelName: "STRING_VALUE", // required
61+
* },
62+
* ],
5663
* dataChannels: [ // ModelTrainingDataChannels // required
5764
* { // ModelTrainingDataChannel
5865
* mlInputChannelArn: "STRING_VALUE", // required
5966
* channelName: "STRING_VALUE", // required
67+
* s3DataDistributionType: "FullyReplicated" || "ShardedByS3Key",
6068
* },
6169
* ],
70+
* trainingInputMode: "File" || "FastFile" || "Pipe",
6271
* description: "STRING_VALUE",
6372
* kmsKeyArn: "STRING_VALUE",
6473
* tags: { // TagMap
@@ -69,6 +78,7 @@ export interface CreateTrainedModelCommandOutput extends CreateTrainedModelRespo
6978
* const response = await client.send(command);
7079
* // { // CreateTrainedModelResponse
7180
* // trainedModelArn: "STRING_VALUE", // required
81+
* // versionIdentifier: "STRING_VALUE",
7282
* // };
7383
*
7484
* ```
@@ -85,12 +95,18 @@ export interface CreateTrainedModelCommandOutput extends CreateTrainedModelRespo
8595
* @throws {@link ConflictException} (client fault)
8696
* <p>You can't complete this action because another resource depends on this resource.</p>
8797
*
98+
* @throws {@link InternalServiceException} (server fault)
99+
* <p>An internal service error occurred. Retry your request. If the problem persists, contact AWS Support.</p>
100+
*
88101
* @throws {@link ResourceNotFoundException} (client fault)
89102
* <p>The resource you are requesting does not exist.</p>
90103
*
91104
* @throws {@link ServiceQuotaExceededException} (client fault)
92105
* <p>You have exceeded your service quota.</p>
93106
*
107+
* @throws {@link ThrottlingException} (client fault)
108+
* <p>The request was denied due to request throttling.</p>
109+
*
94110
* @throws {@link ValidationException} (client fault)
95111
* <p>The request parameters for this request are incorrect.</p>
96112
*

clients/client-cleanroomsml/src/commands/DeleteConfiguredModelAlgorithmAssociationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export interface DeleteConfiguredModelAlgorithmAssociationCommandOutput extends
6464
* @throws {@link ResourceNotFoundException} (client fault)
6565
* <p>The resource you are requesting does not exist.</p>
6666
*
67+
* @throws {@link ThrottlingException} (client fault)
68+
* <p>The request was denied due to request throttling.</p>
69+
*
6770
* @throws {@link ValidationException} (client fault)
6871
* <p>The request parameters for this request are incorrect.</p>
6972
*

clients/client-cleanroomsml/src/commands/DeleteMLConfigurationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export interface DeleteMLConfigurationCommandOutput extends __MetadataBearer {}
5656
* @throws {@link ResourceNotFoundException} (client fault)
5757
* <p>The resource you are requesting does not exist.</p>
5858
*
59+
* @throws {@link ThrottlingException} (client fault)
60+
* <p>The request was denied due to request throttling.</p>
61+
*
5962
* @throws {@link ValidationException} (client fault)
6063
* <p>The request parameters for this request are incorrect.</p>
6164
*

0 commit comments

Comments
 (0)