Skip to content

Commit 304dceb

Browse files
Introduce versionStatus field to take place of status field in EKS DescribeClusterVersions API
1 parent 08c62a0 commit 304dceb

22 files changed

+276
-118
lines changed

generator/ServiceModels/eks/eks-2017-11-01.api.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@
14061406
"endOfStandardSupportDate":{"shape":"Timestamp"},
14071407
"endOfExtendedSupportDate":{"shape":"Timestamp"},
14081408
"status":{"shape":"ClusterVersionStatus"},
1409+
"versionStatus":{"shape":"VersionStatus"},
14091410
"kubernetesPatchVersion":{"shape":"String"}
14101411
}
14111412
},
@@ -2110,8 +2111,16 @@
21102111
},
21112112
"status":{
21122113
"shape":"ClusterVersionStatus",
2114+
"deprecated":true,
2115+
"deprecatedMessage":"status has been replaced by versionStatus",
2116+
"deprecatedSince":"2025-02-15",
21132117
"location":"querystring",
21142118
"locationName":"status"
2119+
},
2120+
"versionStatus":{
2121+
"shape":"VersionStatus",
2122+
"location":"querystring",
2123+
"locationName":"versionStatus"
21152124
}
21162125
}
21172126
},
@@ -4059,6 +4068,14 @@
40594068
"supportType":{"shape":"SupportType"}
40604069
}
40614070
},
4071+
"VersionStatus":{
4072+
"type":"string",
4073+
"enum":[
4074+
"UNSUPPORTED",
4075+
"STANDARD_SUPPORT",
4076+
"EXTENDED_SUPPORT"
4077+
]
4078+
},
40624079
"VpcConfigRequest":{
40634080
"type":"structure",
40644081
"members":{

generator/ServiceModels/eks/eks-2017-11-01.docs.json

Lines changed: 17 additions & 10 deletions
Large diffs are not rendered by default.

generator/ServiceModels/eks/eks-2017-11-01.normal.json

Lines changed: 30 additions & 9 deletions
Large diffs are not rendered by default.

sdk/src/Services/EKS/Generated/Model/ClusterVersionInformation.cs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public partial class ClusterVersionInformation
4343
private string _kubernetesPatchVersion;
4444
private DateTime? _releaseDate;
4545
private ClusterVersionStatus _status;
46+
private VersionStatus _versionStatus;
4647

4748
/// <summary>
4849
/// Gets and sets the property ClusterType.
@@ -189,7 +190,12 @@ internal bool IsSetReleaseDate()
189190
}
190191

191192
/// <summary>
192-
/// Gets and sets the property Status.
193+
/// Gets and sets the property Status. <important>
194+
/// <para>
195+
/// This field is deprecated. Use <c>versionStatus</c> instead, as that field matches
196+
/// for input and output of this action.
197+
/// </para>
198+
/// </important>
193199
/// <para>
194200
/// Current status of this cluster version.
195201
/// </para>
@@ -206,5 +212,23 @@ internal bool IsSetStatus()
206212
return this._status != null;
207213
}
208214

215+
/// <summary>
216+
/// Gets and sets the property VersionStatus.
217+
/// <para>
218+
/// Current status of this cluster version.
219+
/// </para>
220+
/// </summary>
221+
public VersionStatus VersionStatus
222+
{
223+
get { return this._versionStatus; }
224+
set { this._versionStatus = value; }
225+
}
226+
227+
// Check to see if VersionStatus property is set
228+
internal bool IsSetVersionStatus()
229+
{
230+
return this._versionStatus != null;
231+
}
232+
209233
}
210234
}

sdk/src/Services/EKS/Generated/Model/CreateAddonRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ internal bool IsSetPodIdentityAssociations()
195195
/// <b>Preserve</b> – This is similar to the NONE option. If the self-managed version
196196
/// of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource
197197
/// properties. Creation of the add-on might fail if conflicts are detected. This option
198-
/// works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html">UpdateAddon</a>.
198+
/// works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html">
199+
/// <c>UpdateAddon</c> </a>.
199200
/// </para>
200201
/// </li> </ul>
201202
/// <para>

sdk/src/Services/EKS/Generated/Model/DescribeClusterVersionsRequest.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public partial class DescribeClusterVersionsRequest : AmazonEKSRequest
4242
private int? _maxResults;
4343
private string _nextToken;
4444
private ClusterVersionStatus _status;
45+
private VersionStatus _versionStatus;
4546

4647
/// <summary>
4748
/// Gets and sets the property ClusterType.
@@ -153,11 +154,17 @@ internal bool IsSetNextToken()
153154
}
154155

155156
/// <summary>
156-
/// Gets and sets the property Status.
157+
/// Gets and sets the property Status. <important>
158+
/// <para>
159+
/// This field is deprecated. Use <c>versionStatus</c> instead, as that field matches
160+
/// for input and output of this action.
161+
/// </para>
162+
/// </important>
157163
/// <para>
158164
/// Filter versions by their current status.
159165
/// </para>
160166
/// </summary>
167+
[Obsolete("status has been replaced by versionStatus")]
161168
public ClusterVersionStatus Status
162169
{
163170
get { return this._status; }
@@ -170,5 +177,23 @@ internal bool IsSetStatus()
170177
return this._status != null;
171178
}
172179

180+
/// <summary>
181+
/// Gets and sets the property VersionStatus.
182+
/// <para>
183+
/// Filter versions by their current status.
184+
/// </para>
185+
/// </summary>
186+
public VersionStatus VersionStatus
187+
{
188+
get { return this._versionStatus; }
189+
set { this._versionStatus = value; }
190+
}
191+
192+
// Check to see if VersionStatus property is set
193+
internal bool IsSetVersionStatus()
194+
{
195+
return this._versionStatus != null;
196+
}
197+
173198
}
174199
}

sdk/src/Services/EKS/Generated/Model/DescribeUpdateRequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ namespace Amazon.EKS.Model
3535
///
3636
///
3737
/// <para>
38-
/// When the status of the update is <c>Succeeded</c>, the update is complete. If an update
39-
/// fails, the status is <c>Failed</c>, and an error detail explains the reason for the
40-
/// failure.
38+
/// When the status of the update is <c>Successful</c>, the update is complete. If an
39+
/// update fails, the status is <c>Failed</c>, and an error detail explains the reason
40+
/// for the failure.
4141
/// </para>
4242
/// </summary>
4343
public partial class DescribeUpdateRequest : AmazonEKSRequest

sdk/src/Services/EKS/Generated/Model/Internal/MarshallTransformations/ClusterVersionInformationUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ public ClusterVersionInformation Unmarshall(JsonUnmarshallerContext context)
120120
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
121121
continue;
122122
}
123+
if (context.TestExpression("versionStatus", targetDepth))
124+
{
125+
var unmarshaller = StringUnmarshaller.Instance;
126+
unmarshalledObject.VersionStatus = unmarshaller.Unmarshall(context);
127+
continue;
128+
}
123129
}
124130
return unmarshalledObject;
125131
}

sdk/src/Services/EKS/Generated/Model/Internal/MarshallTransformations/DescribeClusterVersionsRequestMarshaller.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ public IRequest Marshall(DescribeClusterVersionsRequest publicRequest)
8080

8181
if (publicRequest.IsSetStatus())
8282
request.Parameters.Add("status", StringUtils.FromString(publicRequest.Status));
83+
84+
if (publicRequest.IsSetVersionStatus())
85+
request.Parameters.Add("versionStatus", StringUtils.FromString(publicRequest.VersionStatus));
8386
request.ResourcePath = "/cluster-versions";
8487
request.UseQueryString = true;
8588

sdk/src/Services/EKS/Generated/Model/ListPodIdentityAssociationsResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public partial class ListPodIdentityAssociationsResponse : AmazonWebServiceRespo
4545
/// </para>
4646
///
4747
/// <para>
48-
/// Each summary is simplified by removing these fields compared to the full <c> <a>PodIdentityAssociation</a>
49-
/// </c>:
48+
/// Each summary is simplified by removing these fields compared to the full <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_PodIdentityAssociation.html">
49+
/// <c>PodIdentityAssociation</c> </a>:
5050
/// </para>
5151
/// <ul> <li>
5252
/// <para>

0 commit comments

Comments
 (0)