Skip to content

Commit 4752433

Browse files
Add maintenance status field to DescribeMlflowTrackingServer API response
1 parent 920a7f3 commit 4752433

File tree

9 files changed

+112
-6
lines changed

9 files changed

+112
-6
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11179,6 +11179,7 @@
1117911179
"MlflowVersion":{"shape":"MlflowVersion"},
1118011180
"RoleArn":{"shape":"RoleArn"},
1118111181
"TrackingServerStatus":{"shape":"TrackingServerStatus"},
11182+
"TrackingServerMaintenanceStatus":{"shape":"TrackingServerMaintenanceStatus"},
1118211183
"IsActive":{"shape":"IsTrackingServerActive"},
1118311184
"TrackingServerUrl":{"shape":"TrackingServerUrl"},
1118411185
"WeeklyMaintenanceWindowStart":{"shape":"WeeklyMaintenanceWindowStart"},
@@ -22683,7 +22684,7 @@
2268322684
"ReservedCapacityInstanceCount":{
2268422685
"type":"integer",
2268522686
"max":256,
22686-
"min":1
22687+
"min":0
2268722688
},
2268822689
"ReservedCapacityInstanceType":{
2268922690
"type":"string",
@@ -24844,6 +24845,14 @@
2484424845
"min":0,
2484524846
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:mlflow-tracking-server/.*"
2484624847
},
24848+
"TrackingServerMaintenanceStatus":{
24849+
"type":"string",
24850+
"enum":[
24851+
"MaintenanceInProgress",
24852+
"MaintenanceComplete",
24853+
"MaintenanceFailed"
24854+
]
24855+
},
2484724856
"TrackingServerName":{
2484824857
"type":"string",
2484924858
"max":256,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16872,6 +16872,12 @@
1687216872
"UpdateMlflowTrackingServerResponse$TrackingServerArn": "<p>The ARN of the updated MLflow Tracking Server.</p>"
1687316873
}
1687416874
},
16875+
"TrackingServerMaintenanceStatus": {
16876+
"base": null,
16877+
"refs": {
16878+
"DescribeMlflowTrackingServerResponse$TrackingServerMaintenanceStatus": "<p> The current maintenance status of the described MLflow Tracking Server. </p>"
16879+
}
16880+
},
1687516881
"TrackingServerName": {
1687616882
"base": null,
1687716883
"refs": {

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16578,6 +16578,10 @@
1657816578
"shape":"TrackingServerStatus",
1657916579
"documentation":"<p>The current creation status of the described MLflow Tracking Server.</p>"
1658016580
},
16581+
"TrackingServerMaintenanceStatus":{
16582+
"shape":"TrackingServerMaintenanceStatus",
16583+
"documentation":"<p> The current maintenance status of the described MLflow Tracking Server. </p>"
16584+
},
1658116585
"IsActive":{
1658216586
"shape":"IsTrackingServerActive",
1658316587
"documentation":"<p>Whether the described MLflow Tracking Server is currently active.</p>"
@@ -36085,7 +36089,7 @@
3608536089
"ReservedCapacityInstanceCount":{
3608636090
"type":"integer",
3608736091
"max":256,
36088-
"min":1
36092+
"min":0
3608936093
},
3609036094
"ReservedCapacityInstanceType":{
3609136095
"type":"string",
@@ -39146,6 +39150,14 @@
3914639150
"min":0,
3914739151
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:mlflow-tracking-server/.*"
3914839152
},
39153+
"TrackingServerMaintenanceStatus":{
39154+
"type":"string",
39155+
"enum":[
39156+
"MaintenanceInProgress",
39157+
"MaintenanceComplete",
39158+
"MaintenanceFailed"
39159+
]
39160+
},
3914939161
"TrackingServerName":{
3915039162
"type":"string",
3915139163
"max":256,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6775,7 +6775,7 @@
67756775
</property-value-rule>
67766776
<property-value-rule>
67776777
<property>Amazon.SageMaker.Model.SearchTrainingPlanOfferingsRequest.InstanceCount</property>
6778-
<min>1</min>
6778+
<min>0</min>
67796779
<max>256</max>
67806780
</property-value-rule>
67816781
<property-value-rule>
@@ -12702,7 +12702,7 @@
1270212702
</property-value-rule>
1270312703
<property-value-rule>
1270412704
<property>Amazon.SageMaker.Model.ReservedCapacityOffering.InstanceCount</property>
12705-
<min>1</min>
12705+
<min>0</min>
1270612706
<max>256</max>
1270712707
</property-value-rule>
1270812708
<property-value-rule>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class DescribeMlflowTrackingServerResponse : AmazonWebServiceResp
4444
private string _mlflowVersion;
4545
private string _roleArn;
4646
private string _trackingServerArn;
47+
private TrackingServerMaintenanceStatus _trackingServerMaintenanceStatus;
4748
private string _trackingServerName;
4849
private TrackingServerSize _trackingServerSize;
4950
private TrackingServerStatus _trackingServerStatus;
@@ -231,6 +232,24 @@ internal bool IsSetTrackingServerArn()
231232
return this._trackingServerArn != null;
232233
}
233234

235+
/// <summary>
236+
/// Gets and sets the property TrackingServerMaintenanceStatus.
237+
/// <para>
238+
/// The current maintenance status of the described MLflow Tracking Server.
239+
/// </para>
240+
/// </summary>
241+
public TrackingServerMaintenanceStatus TrackingServerMaintenanceStatus
242+
{
243+
get { return this._trackingServerMaintenanceStatus; }
244+
set { this._trackingServerMaintenanceStatus = value; }
245+
}
246+
247+
// Check to see if TrackingServerMaintenanceStatus property is set
248+
internal bool IsSetTrackingServerMaintenanceStatus()
249+
{
250+
return this._trackingServerMaintenanceStatus != null;
251+
}
252+
234253
/// <summary>
235254
/// Gets and sets the property TrackingServerName.
236255
/// <para>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
112112
response.TrackingServerArn = unmarshaller.Unmarshall(context, ref reader);
113113
continue;
114114
}
115+
if (context.TestExpression("TrackingServerMaintenanceStatus", targetDepth))
116+
{
117+
var unmarshaller = StringUnmarshaller.Instance;
118+
response.TrackingServerMaintenanceStatus = unmarshaller.Unmarshall(context, ref reader);
119+
continue;
120+
}
115121
if (context.TestExpression("TrackingServerName", targetDepth))
116122
{
117123
var unmarshaller = StringUnmarshaller.Instance;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ internal bool IsSetEndTime()
131131
/// The number of instances in the reserved capacity offering.
132132
/// </para>
133133
/// </summary>
134-
[AWSProperty(Required=true, Min=1, Max=256)]
134+
[AWSProperty(Required=true, Min=0, Max=256)]
135135
public int? InstanceCount
136136
{
137137
get { return this._instanceCount; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ internal bool IsSetEndTimeBefore()
107107
/// that match your requirements.
108108
/// </para>
109109
/// </summary>
110-
[AWSProperty(Min=1, Max=256)]
110+
[AWSProperty(Min=0, Max=256)]
111111
public int? InstanceCount
112112
{
113113
get { return this._instanceCount; }

sdk/src/Services/SageMaker/Generated/ServiceEnumerations.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19158,6 +19158,60 @@ public static implicit operator ThroughputMode(string value)
1915819158
}
1915919159

1916019160

19161+
/// <summary>
19162+
/// Constants used for properties of type TrackingServerMaintenanceStatus.
19163+
/// </summary>
19164+
public class TrackingServerMaintenanceStatus : ConstantClass
19165+
{
19166+
19167+
/// <summary>
19168+
/// Constant MaintenanceComplete for TrackingServerMaintenanceStatus
19169+
/// </summary>
19170+
public static readonly TrackingServerMaintenanceStatus MaintenanceComplete = new TrackingServerMaintenanceStatus("MaintenanceComplete");
19171+
/// <summary>
19172+
/// Constant MaintenanceFailed for TrackingServerMaintenanceStatus
19173+
/// </summary>
19174+
public static readonly TrackingServerMaintenanceStatus MaintenanceFailed = new TrackingServerMaintenanceStatus("MaintenanceFailed");
19175+
/// <summary>
19176+
/// Constant MaintenanceInProgress for TrackingServerMaintenanceStatus
19177+
/// </summary>
19178+
public static readonly TrackingServerMaintenanceStatus MaintenanceInProgress = new TrackingServerMaintenanceStatus("MaintenanceInProgress");
19179+
19180+
/// <summary>
19181+
/// This constant constructor does not need to be called if the constant
19182+
/// you are attempting to use is already defined as a static instance of
19183+
/// this class.
19184+
/// This constructor should be used to construct constants that are not
19185+
/// defined as statics, for instance if attempting to use a feature that is
19186+
/// newer than the current version of the SDK.
19187+
/// </summary>
19188+
public TrackingServerMaintenanceStatus(string value)
19189+
: base(value)
19190+
{
19191+
}
19192+
19193+
/// <summary>
19194+
/// Finds the constant for the unique value.
19195+
/// </summary>
19196+
/// <param name="value">The unique value for the constant</param>
19197+
/// <returns>The constant for the unique value</returns>
19198+
public static TrackingServerMaintenanceStatus FindValue(string value)
19199+
{
19200+
return FindValue<TrackingServerMaintenanceStatus>(value);
19201+
}
19202+
19203+
/// <summary>
19204+
/// Utility method to convert strings to the constant class.
19205+
/// </summary>
19206+
/// <param name="value">The string value to convert to the constant class.</param>
19207+
/// <returns></returns>
19208+
public static implicit operator TrackingServerMaintenanceStatus(string value)
19209+
{
19210+
return FindValue(value);
19211+
}
19212+
}
19213+
19214+
1916119215
/// <summary>
1916219216
/// Constants used for properties of type TrackingServerSize.
1916319217
/// </summary>

0 commit comments

Comments
 (0)