Skip to content

Commit 5a2861d

Browse files
This release introduces support for incremental training and distributed training for custom models in AWS Clean Rooms ML.
1 parent 94a5520 commit 5a2861d

File tree

106 files changed

+4723
-184
lines changed

Some content is hidden

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

106 files changed

+4723
-184
lines changed

generator/ServiceModels/cleanroomsml/cleanroomsml-2023-09-06.api.json

Lines changed: 304 additions & 57 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cleanroomsml/cleanroomsml-2023-09-06.docs.json

Lines changed: 125 additions & 5 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cleanroomsml/cleanroomsml-2023-09-06.normal.json

Lines changed: 423 additions & 59 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cleanroomsml/cleanroomsml-2023-09-06.paginators.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
"limit_key": "maxResults",
7979
"result_key": "trainedModelInferenceJobs"
8080
},
81+
"ListTrainedModelVersions": {
82+
"input_token": "nextToken",
83+
"output_token": "nextToken",
84+
"limit_key": "maxResults",
85+
"result_key": "trainedModels"
86+
},
8187
"ListTrainedModels": {
8288
"input_token": "nextToken",
8389
"output_token": "nextToken",

sdk/code-analysis/ServiceAnalysis/CleanRoomsML/Generated/PropertyValueRules.xml

Lines changed: 226 additions & 46 deletions
Large diffs are not rendered by default.

sdk/src/Services/CleanRoomsML/Generated/Model/CancelTrainedModelRequest.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class CancelTrainedModelRequest : AmazonCleanRoomsMLRequest
3737
{
3838
private string _membershipIdentifier;
3939
private string _trainedModelArn;
40+
private string _versionIdentifier;
4041

4142
/// <summary>
4243
/// Gets and sets the property MembershipIdentifier.
@@ -76,5 +77,30 @@ internal bool IsSetTrainedModelArn()
7677
return this._trainedModelArn != null;
7778
}
7879

80+
/// <summary>
81+
/// Gets and sets the property VersionIdentifier.
82+
/// <para>
83+
/// The version identifier of the trained model to cancel. This parameter allows you to
84+
/// specify which version of the trained model you want to cancel when multiple versions
85+
/// exist.
86+
/// </para>
87+
///
88+
/// <para>
89+
/// If <c>versionIdentifier</c> is not specified, the base model will be cancelled.
90+
/// </para>
91+
/// </summary>
92+
[AWSProperty(Min=36, Max=36)]
93+
public string VersionIdentifier
94+
{
95+
get { return this._versionIdentifier; }
96+
set { this._versionIdentifier = value; }
97+
}
98+
99+
// Check to see if VersionIdentifier property is set
100+
internal bool IsSetVersionIdentifier()
101+
{
102+
return this._versionIdentifier != null;
103+
}
104+
79105
}
80106
}

sdk/src/Services/CleanRoomsML/Generated/Model/CollaborationTrainedModelExportJobSummary.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class CollaborationTrainedModelExportJobSummary
4444
private TrainedModelExportJobStatus _status;
4545
private StatusDetails _statusDetails;
4646
private string _trainedModelArn;
47+
private string _trainedModelVersionIdentifier;
4748
private DateTime? _updateTime;
4849

4950
/// <summary>
@@ -229,6 +230,25 @@ internal bool IsSetTrainedModelArn()
229230
return this._trainedModelArn != null;
230231
}
231232

233+
/// <summary>
234+
/// Gets and sets the property TrainedModelVersionIdentifier.
235+
/// <para>
236+
/// The version identifier of the trained model that was exported in this job.
237+
/// </para>
238+
/// </summary>
239+
[AWSProperty(Min=36, Max=36)]
240+
public string TrainedModelVersionIdentifier
241+
{
242+
get { return this._trainedModelVersionIdentifier; }
243+
set { this._trainedModelVersionIdentifier = value; }
244+
}
245+
246+
// Check to see if TrainedModelVersionIdentifier property is set
247+
internal bool IsSetTrainedModelVersionIdentifier()
248+
{
249+
return this._trainedModelVersionIdentifier != null;
250+
}
251+
232252
/// <summary>
233253
/// Gets and sets the property UpdateTime.
234254
/// <para>

sdk/src/Services/CleanRoomsML/Generated/Model/CollaborationTrainedModelInferenceJobSummary.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public partial class CollaborationTrainedModelInferenceJobSummary
4949
private TrainedModelInferenceJobStatus _status;
5050
private string _trainedModelArn;
5151
private string _trainedModelInferenceJobArn;
52+
private string _trainedModelVersionIdentifier;
5253
private DateTime? _updateTime;
5354

5455
/// <summary>
@@ -335,6 +336,25 @@ internal bool IsSetTrainedModelInferenceJobArn()
335336
return this._trainedModelInferenceJobArn != null;
336337
}
337338

339+
/// <summary>
340+
/// Gets and sets the property TrainedModelVersionIdentifier.
341+
/// <para>
342+
/// The version identifier of the trained model that was used for inference in this job.
343+
/// </para>
344+
/// </summary>
345+
[AWSProperty(Min=36, Max=36)]
346+
public string TrainedModelVersionIdentifier
347+
{
348+
get { return this._trainedModelVersionIdentifier; }
349+
set { this._trainedModelVersionIdentifier = value; }
350+
}
351+
352+
// Check to see if TrainedModelVersionIdentifier property is set
353+
internal bool IsSetTrainedModelVersionIdentifier()
354+
{
355+
return this._trainedModelVersionIdentifier != null;
356+
}
357+
338358
/// <summary>
339359
/// Gets and sets the property UpdateTime.
340360
/// <para>

sdk/src/Services/CleanRoomsML/Generated/Model/CollaborationTrainedModelSummary.cs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ public partial class CollaborationTrainedModelSummary
3939
private DateTime? _createTime;
4040
private string _creatorAccountId;
4141
private string _description;
42+
private List<IncrementalTrainingDataChannelOutput> _incrementalTrainingDataChannels = AWSConfigs.InitializeCollections ? new List<IncrementalTrainingDataChannelOutput>() : null;
4243
private string _membershipIdentifier;
4344
private string _name;
4445
private TrainedModelStatus _status;
4546
private string _trainedModelArn;
4647
private DateTime? _updateTime;
48+
private string _versionIdentifier;
4749

4850
/// <summary>
4951
/// Gets and sets the property CollaborationIdentifier.
@@ -141,6 +143,31 @@ internal bool IsSetDescription()
141143
return this._description != null;
142144
}
143145

146+
/// <summary>
147+
/// Gets and sets the property IncrementalTrainingDataChannels.
148+
/// <para>
149+
/// Information about the incremental training data channels used to create this version
150+
/// of the trained model.
151+
/// </para>
152+
/// <para />
153+
/// Starting with version 4 of the SDK this property will default to null. If no data for this property is returned
154+
/// from the service the property will also be null. This was changed to improve performance and allow the SDK and caller
155+
/// to distinguish between a property not set or a property being empty to clear out a value. To retain the previous
156+
/// SDK behavior set the AWSConfigs.InitializeCollections static property to true.
157+
/// </summary>
158+
[AWSProperty(Min=1, Max=1)]
159+
public List<IncrementalTrainingDataChannelOutput> IncrementalTrainingDataChannels
160+
{
161+
get { return this._incrementalTrainingDataChannels; }
162+
set { this._incrementalTrainingDataChannels = value; }
163+
}
164+
165+
// Check to see if IncrementalTrainingDataChannels property is set
166+
internal bool IsSetIncrementalTrainingDataChannels()
167+
{
168+
return this._incrementalTrainingDataChannels != null && (this._incrementalTrainingDataChannels.Count > 0 || !AWSConfigs.InitializeCollections);
169+
}
170+
144171
/// <summary>
145172
/// Gets and sets the property MembershipIdentifier.
146173
/// <para>
@@ -236,5 +263,24 @@ internal bool IsSetUpdateTime()
236263
return this._updateTime.HasValue;
237264
}
238265

266+
/// <summary>
267+
/// Gets and sets the property VersionIdentifier.
268+
/// <para>
269+
/// The version identifier of this trained model version.
270+
/// </para>
271+
/// </summary>
272+
[AWSProperty(Min=36, Max=36)]
273+
public string VersionIdentifier
274+
{
275+
get { return this._versionIdentifier; }
276+
set { this._versionIdentifier = value; }
277+
}
278+
279+
// Check to see if VersionIdentifier property is set
280+
internal bool IsSetVersionIdentifier()
281+
{
282+
return this._versionIdentifier != null;
283+
}
284+
239285
}
240286
}

sdk/src/Services/CleanRoomsML/Generated/Model/ContainerConfig.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ internal bool IsSetEntrypoint()
9999
/// Gets and sets the property ImageUri.
100100
/// <para>
101101
/// The registry path of the docker image that contains the algorithm. Clean Rooms ML
102-
/// supports both <c>registry/repository[:tag]</c> and <c>registry/repositry[@digest]</c>
103-
/// image path formats. For more information about using images in Clean Rooms ML, see
104-
/// the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html#sagemaker-Type-AlgorithmSpecification-TrainingImage">Sagemaker
102+
/// currently only supports the <c>registry/repository[:tag]</c> image path format. For
103+
/// more information about using images in Clean Rooms ML, see the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html#sagemaker-Type-AlgorithmSpecification-TrainingImage">Sagemaker
105104
/// API reference</a>.
106105
/// </para>
107106
/// </summary>

0 commit comments

Comments
 (0)