Skip to content

Commit 5e3a31a

Browse files
Adding ETag information with Model Artifacts for Model Registry
1 parent 22e97b1 commit 5e3a31a

15 files changed

+188
-3
lines changed

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.api.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4189,7 +4189,8 @@
41894189
"members":{
41904190
"S3DataType":{"shape":"AdditionalS3DataSourceDataType"},
41914191
"S3Uri":{"shape":"S3Uri"},
4192-
"CompressionType":{"shape":"CompressionType"}
4192+
"CompressionType":{"shape":"CompressionType"},
4193+
"ETag":{"shape":"String"}
41934194
}
41944195
},
41954196
"AdditionalS3DataSourceDataType":{
@@ -18332,7 +18333,8 @@
1833218333
"Framework":{"shape":"String"},
1833318334
"FrameworkVersion":{"shape":"ModelPackageFrameworkVersion"},
1833418335
"NearestModelName":{"shape":"String"},
18335-
"AdditionalS3DataSource":{"shape":"AdditionalS3DataSource"}
18336+
"AdditionalS3DataSource":{"shape":"AdditionalS3DataSource"},
18337+
"ModelDataETag":{"shape":"String"}
1833618338
}
1833718339
},
1833818340
"ModelPackageContainerDefinitionList":{
@@ -22172,7 +22174,9 @@
2217222174
"CompressionType":{"shape":"ModelCompressionType"},
2217322175
"ModelAccessConfig":{"shape":"ModelAccessConfig"},
2217422176
"HubAccessConfig":{"shape":"InferenceHubAccessConfig"},
22175-
"ManifestS3Uri":{"shape":"S3ModelUri"}
22177+
"ManifestS3Uri":{"shape":"S3ModelUri"},
22178+
"ETag":{"shape":"String"},
22179+
"ManifestEtag":{"shape":"String"}
2217622180
}
2217722181
},
2217822182
"S3ModelDataType":{
@@ -22800,6 +22804,7 @@
2280022804
"members":{
2280122805
"ModelDataUrl":{"shape":"Url"},
2280222806
"ModelDataSource":{"shape":"ModelDataSource"},
22807+
"ModelDataETag":{"shape":"String"},
2280322808
"AlgorithmName":{"shape":"ArnOrName"}
2280422809
}
2280522810
},

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.docs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15500,6 +15500,7 @@
1550015500
"String": {
1550115501
"base": null,
1550215502
"refs": {
15503+
"AdditionalS3DataSource$ETag": "<p>The ETag associated with S3 URI.</p>",
1550315504
"AlgorithmStatusItem$FailureReason": "<p>if the overall status is <code>Failed</code>, the reason for the failure.</p>",
1550415505
"BatchDeleteClusterNodesError$Message": "<p>A message describing the error encountered when deleting a node.</p>",
1550515506
"BatchDescribeModelPackageError$ErrorCode": "<p/>",
@@ -15554,6 +15555,7 @@
1555415555
"ModelPackage$SamplePayloadUrl": "<p>The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).</p>",
1555515556
"ModelPackageContainerDefinition$Framework": "<p>The machine learning framework of the model package container image.</p>",
1555615557
"ModelPackageContainerDefinition$NearestModelName": "<p>The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model. You can find a list of benchmarked models by calling <code>ListModelMetadata</code>.</p>",
15558+
"ModelPackageContainerDefinition$ModelDataETag": "<p>The ETag associated with Model Data URL.</p>",
1555715559
"ModelPackageStatusItem$FailureReason": "<p>if the overall status is <code>Failed</code>, the reason for the failure.</p>",
1555815560
"PredefinedMetricSpecification$PredefinedMetricType": "<p>The metric type. You can only apply SageMaker metric types to SageMaker endpoints.</p>",
1555915561
"ProcessingInput$InputName": "<p>The name for the processing job input.</p>",
@@ -15572,8 +15574,11 @@
1557215574
"RenderUiTemplateResponse$RenderedContent": "<p>A Liquid template that renders the HTML for the worker UI.</p>",
1557315575
"RenderingError$Code": "<p>A unique identifier for a specific class of errors.</p>",
1557415576
"RenderingError$Message": "<p>A human-readable message describing the error.</p>",
15577+
"S3ModelDataSource$ETag": "<p>The ETag associated with S3 URI.</p>",
15578+
"S3ModelDataSource$ManifestEtag": "<p>The ETag associated with Manifest S3URI.</p>",
1557515579
"ScheduleConfig$DataAnalysisStartTime": "<p>Sets the start time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the <code>ScheduleExpression</code> parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: <code>\"-PT5H\"</code>.</p> <p>The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the <code>DataAnalysisEndTime</code> parameter.</p> <p>If you set <code>ScheduleExpression</code> to <code>NOW</code>, this parameter is required.</p>",
1557615580
"ScheduleConfig$DataAnalysisEndTime": "<p>Sets the end time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the <code>ScheduleExpression</code> parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: <code>\"-PT1H\"</code>.</p> <p>The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the <code>DataAnalysisStartTime</code> parameter.</p> <p>If you set <code>ScheduleExpression</code> to <code>NOW</code>, this parameter is required.</p>",
15581+
"SourceAlgorithm$ModelDataETag": "<p>The ETag associated with Model Data URL.</p>",
1557715582
"SubscribedWorkteam$SellerName": "<p>The name of the vendor in the Amazon Marketplace.</p>",
1557815583
"SubscribedWorkteam$ListingId": "<p>Marketplace product listing ID.</p>",
1557915584
"UserContext$UserProfileArn": "<p>The Amazon Resource Name (ARN) of the user's profile.</p>",

generator/ServiceModels/sagemaker/sagemaker-2017-07-24.normal.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4636,6 +4636,10 @@
46364636
"CompressionType":{
46374637
"shape":"CompressionType",
46384638
"documentation":"<p>The type of compression used for an additional data source used in inference or training. Specify <code>None</code> if your additional data source is not compressed.</p>"
4639+
},
4640+
"ETag":{
4641+
"shape":"String",
4642+
"documentation":"<p>The ETag associated with S3 URI.</p>"
46394643
}
46404644
},
46414645
"documentation":"<p>A data source used for training or inference that is in addition to the input dataset or model data.</p>"
@@ -29935,6 +29939,10 @@
2993529939
"AdditionalS3DataSource":{
2993629940
"shape":"AdditionalS3DataSource",
2993729941
"documentation":"<p>The additional data source that is used during inference in the Docker container for your model package.</p>"
29942+
},
29943+
"ModelDataETag":{
29944+
"shape":"String",
29945+
"documentation":"<p>The ETag associated with Model Data URL.</p>"
2993829946
}
2993929947
},
2994029948
"documentation":"<p>Describes the Docker container for the model package.</p>"
@@ -35891,6 +35899,14 @@
3589135899
"ManifestS3Uri":{
3589235900
"shape":"S3ModelUri",
3589335901
"documentation":"<p>The Amazon S3 URI of the manifest file. The manifest file is a CSV file that stores the artifact locations.</p>"
35902+
},
35903+
"ETag":{
35904+
"shape":"String",
35905+
"documentation":"<p>The ETag associated with S3 URI.</p>"
35906+
},
35907+
"ManifestEtag":{
35908+
"shape":"String",
35909+
"documentation":"<p>The ETag associated with Manifest S3URI.</p>"
3589435910
}
3589535911
},
3589635912
"documentation":"<p>Specifies the S3 location of ML model data to deploy.</p>"
@@ -36769,6 +36785,10 @@
3676936785
"shape":"ModelDataSource",
3677036786
"documentation":"<p>Specifies the location of ML model data to deploy during endpoint creation.</p>"
3677136787
},
36788+
"ModelDataETag":{
36789+
"shape":"String",
36790+
"documentation":"<p>The ETag associated with Model Data URL.</p>"
36791+
},
3677236792
"AlgorithmName":{
3677336793
"shape":"ArnOrName",
3677436794
"documentation":"<p>The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in Amazon Web Services Marketplace that you are subscribed to.</p>"

sdk/src/Services/SageMaker/Generated/Model/AdditionalS3DataSource.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ namespace Amazon.SageMaker.Model
3636
public partial class AdditionalS3DataSource
3737
{
3838
private CompressionType _compressionType;
39+
private string _eTag;
3940
private AdditionalS3DataSourceDataType _s3DataType;
4041
private string _s3Uri;
4142

@@ -58,6 +59,24 @@ internal bool IsSetCompressionType()
5859
return this._compressionType != null;
5960
}
6061

62+
/// <summary>
63+
/// Gets and sets the property ETag.
64+
/// <para>
65+
/// The ETag associated with S3 URI.
66+
/// </para>
67+
/// </summary>
68+
public string ETag
69+
{
70+
get { return this._eTag; }
71+
set { this._eTag = value; }
72+
}
73+
74+
// Check to see if ETag property is set
75+
internal bool IsSetETag()
76+
{
77+
return this._eTag != null;
78+
}
79+
6180
/// <summary>
6281
/// Gets and sets the property S3DataType.
6382
/// <para>

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/AdditionalS3DataSourceMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public void Marshall(AdditionalS3DataSource requestObject, JsonMarshallerContext
5454
context.Writer.Write(requestObject.CompressionType);
5555
}
5656

57+
if(requestObject.IsSetETag())
58+
{
59+
context.Writer.WritePropertyName("ETag");
60+
context.Writer.Write(requestObject.ETag);
61+
}
62+
5763
if(requestObject.IsSetS3DataType())
5864
{
5965
context.Writer.WritePropertyName("S3DataType");

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/AdditionalS3DataSourceUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ public AdditionalS3DataSource Unmarshall(JsonUnmarshallerContext context)
7272
unmarshalledObject.CompressionType = unmarshaller.Unmarshall(context);
7373
continue;
7474
}
75+
if (context.TestExpression("ETag", targetDepth))
76+
{
77+
var unmarshaller = StringUnmarshaller.Instance;
78+
unmarshalledObject.ETag = unmarshaller.Unmarshall(context);
79+
continue;
80+
}
7581
if (context.TestExpression("S3DataType", targetDepth))
7682
{
7783
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/ModelPackageContainerDefinitionMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ public void Marshall(ModelPackageContainerDefinition requestObject, JsonMarshall
103103
context.Writer.Write(requestObject.ImageDigest);
104104
}
105105

106+
if(requestObject.IsSetModelDataETag())
107+
{
108+
context.Writer.WritePropertyName("ModelDataETag");
109+
context.Writer.Write(requestObject.ModelDataETag);
110+
}
111+
106112
if(requestObject.IsSetModelDataSource())
107113
{
108114
context.Writer.WritePropertyName("ModelDataSource");

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/ModelPackageContainerDefinitionUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ public ModelPackageContainerDefinition Unmarshall(JsonUnmarshallerContext contex
108108
unmarshalledObject.ImageDigest = unmarshaller.Unmarshall(context);
109109
continue;
110110
}
111+
if (context.TestExpression("ModelDataETag", targetDepth))
112+
{
113+
var unmarshaller = StringUnmarshaller.Instance;
114+
unmarshalledObject.ModelDataETag = unmarshaller.Unmarshall(context);
115+
continue;
116+
}
111117
if (context.TestExpression("ModelDataSource", targetDepth))
112118
{
113119
var unmarshaller = ModelDataSourceUnmarshaller.Instance;

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/S3ModelDataSourceMarshaller.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public void Marshall(S3ModelDataSource requestObject, JsonMarshallerContext cont
5454
context.Writer.Write(requestObject.CompressionType);
5555
}
5656

57+
if(requestObject.IsSetETag())
58+
{
59+
context.Writer.WritePropertyName("ETag");
60+
context.Writer.Write(requestObject.ETag);
61+
}
62+
5763
if(requestObject.IsSetHubAccessConfig())
5864
{
5965
context.Writer.WritePropertyName("HubAccessConfig");
@@ -65,6 +71,12 @@ public void Marshall(S3ModelDataSource requestObject, JsonMarshallerContext cont
6571
context.Writer.WriteObjectEnd();
6672
}
6773

74+
if(requestObject.IsSetManifestEtag())
75+
{
76+
context.Writer.WritePropertyName("ManifestEtag");
77+
context.Writer.Write(requestObject.ManifestEtag);
78+
}
79+
6880
if(requestObject.IsSetManifestS3Uri())
6981
{
7082
context.Writer.WritePropertyName("ManifestS3Uri");

sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/S3ModelDataSourceUnmarshaller.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,24 @@ public S3ModelDataSource Unmarshall(JsonUnmarshallerContext context)
7272
unmarshalledObject.CompressionType = unmarshaller.Unmarshall(context);
7373
continue;
7474
}
75+
if (context.TestExpression("ETag", targetDepth))
76+
{
77+
var unmarshaller = StringUnmarshaller.Instance;
78+
unmarshalledObject.ETag = unmarshaller.Unmarshall(context);
79+
continue;
80+
}
7581
if (context.TestExpression("HubAccessConfig", targetDepth))
7682
{
7783
var unmarshaller = InferenceHubAccessConfigUnmarshaller.Instance;
7884
unmarshalledObject.HubAccessConfig = unmarshaller.Unmarshall(context);
7985
continue;
8086
}
87+
if (context.TestExpression("ManifestEtag", targetDepth))
88+
{
89+
var unmarshaller = StringUnmarshaller.Instance;
90+
unmarshalledObject.ManifestEtag = unmarshaller.Unmarshall(context);
91+
continue;
92+
}
8193
if (context.TestExpression("ManifestS3Uri", targetDepth))
8294
{
8395
var unmarshaller = StringUnmarshaller.Instance;

0 commit comments

Comments
 (0)