Skip to content

Commit

Permalink
This release adds support to surface async fargate customer errors fr…
Browse files Browse the repository at this point in the history
…om async path to customer through describe-fargate-profile API response.
  • Loading branch information
aws-sdk-dotnet-automation committed Jun 18, 2024
1 parent 564eb84 commit def0dec
Show file tree
Hide file tree
Showing 10 changed files with 541 additions and 3 deletions.
33 changes: 31 additions & 2 deletions generator/ServiceModels/eks/eks-2017-11-01.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"serviceId":"EKS",
"signatureVersion":"v4",
"signingName":"eks",
"uid":"eks-2017-11-01"
"uid":"eks-2017-11-01",
"auth":["aws.auth#sigv4"]
},
"operations":{
"AssociateAccessPolicy":{
Expand Down Expand Up @@ -2321,9 +2322,37 @@
"subnets":{"shape":"StringList"},
"selectors":{"shape":"FargateProfileSelectors"},
"status":{"shape":"FargateProfileStatus"},
"tags":{"shape":"TagMap"}
"tags":{"shape":"TagMap"},
"health":{"shape":"FargateProfileHealth"}
}
},
"FargateProfileHealth":{
"type":"structure",
"members":{
"issues":{"shape":"FargateProfileIssueList"}
}
},
"FargateProfileIssue":{
"type":"structure",
"members":{
"code":{"shape":"FargateProfileIssueCode"},
"message":{"shape":"String"},
"resourceIds":{"shape":"StringList"}
}
},
"FargateProfileIssueCode":{
"type":"string",
"enum":[
"PodExecutionRoleAlreadyInUse",
"AccessDenied",
"ClusterUnreachable",
"InternalFailure"
]
},
"FargateProfileIssueList":{
"type":"list",
"member":{"shape":"FargateProfileIssue"}
},
"FargateProfileLabel":{
"type":"map",
"key":{"shape":"String"},
Expand Down
26 changes: 26 additions & 0 deletions generator/ServiceModels/eks/eks-2017-11-01.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,30 @@
"DescribeFargateProfileResponse$fargateProfile": "<p>The full description of your Fargate profile.</p>"
}
},
"FargateProfileHealth": {
"base": "<p>The health status of the Fargate profile. If there are issues with your Fargate profile's health, they are listed here.</p>",
"refs": {
"FargateProfile$health": "<p>The health status of the Fargate profile. If there are issues with your Fargate profile's health, they are listed here.</p>"
}
},
"FargateProfileIssue": {
"base": "<p>An issue that is associated with the Fargate profile.</p>",
"refs": {
"FargateProfileIssueList$member": null
}
},
"FargateProfileIssueCode": {
"base": null,
"refs": {
"FargateProfileIssue$code": "<p>A brief description of the error.</p>"
}
},
"FargateProfileIssueList": {
"base": null,
"refs": {
"FargateProfileHealth$issues": "<p>Any issues that are associated with the Fargate profile.</p>"
}
},
"FargateProfileLabel": {
"base": null,
"refs": {
Expand Down Expand Up @@ -1608,6 +1632,7 @@
"FargateProfile$fargateProfileArn": "<p>The full Amazon Resource Name (ARN) of the Fargate profile.</p>",
"FargateProfile$clusterName": "<p>The name of your cluster.</p>",
"FargateProfile$podExecutionRoleArn": "<p>The Amazon Resource Name (ARN) of the <code>Pod</code> execution role to use for any <code>Pod</code> that matches the selectors in the Fargate profile. For more information, see <a href=\"https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html\"> <code>Pod</code> execution role</a> in the <i>Amazon EKS User Guide</i>.</p>",
"FargateProfileIssue$message": "<p>The error message associated with the issue.</p>",
"FargateProfileLabel$key": null,
"FargateProfileLabel$value": null,
"FargateProfileSelector$namespace": "<p>The Kubernetes <code>namespace</code> that the selector should match.</p>",
Expand Down Expand Up @@ -1813,6 +1838,7 @@
"EncryptionConfig$resources": "<p>Specifies the resources to be encrypted. The only supported value is <code>secrets</code>.</p>",
"ErrorDetail$resourceIds": "<p>An optional field that contains the resource IDs associated with the error.</p>",
"FargateProfile$subnets": "<p>The IDs of subnets to launch a <code>Pod</code> into.</p>",
"FargateProfileIssue$resourceIds": "<p>The Amazon Web Services resources that are affected by this issue.</p>",
"InsightsFilter$kubernetesVersions": "<p>The Kubernetes versions to use to filter the insights.</p>",
"Issue$resourceIds": "<p>The Amazon Web Services resources that are afflicted by this issue.</p>",
"ListAccessEntriesResponse$accessEntries": "<p>The list of access entries that exist for the cluster.</p>",
Expand Down
48 changes: 47 additions & 1 deletion generator/ServiceModels/eks/eks-2017-11-01.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"serviceId":"EKS",
"signatureVersion":"v4",
"signingName":"eks",
"uid":"eks-2017-11-01"
"uid":"eks-2017-11-01",
"auth":["aws.auth#sigv4"]
},
"operations":{
"AssociateAccessPolicy":{
Expand Down Expand Up @@ -3153,10 +3154,55 @@
"tags":{
"shape":"TagMap",
"documentation":"<p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>"
},
"health":{
"shape":"FargateProfileHealth",
"documentation":"<p>The health status of the Fargate profile. If there are issues with your Fargate profile's health, they are listed here.</p>"
}
},
"documentation":"<p>An object representing an Fargate profile.</p>"
},
"FargateProfileHealth":{
"type":"structure",
"members":{
"issues":{
"shape":"FargateProfileIssueList",
"documentation":"<p>Any issues that are associated with the Fargate profile.</p>"
}
},
"documentation":"<p>The health status of the Fargate profile. If there are issues with your Fargate profile's health, they are listed here.</p>"
},
"FargateProfileIssue":{
"type":"structure",
"members":{
"code":{
"shape":"FargateProfileIssueCode",
"documentation":"<p>A brief description of the error.</p>"
},
"message":{
"shape":"String",
"documentation":"<p>The error message associated with the issue.</p>"
},
"resourceIds":{
"shape":"StringList",
"documentation":"<p>The Amazon Web Services resources that are affected by this issue.</p>"
}
},
"documentation":"<p>An issue that is associated with the Fargate profile.</p>"
},
"FargateProfileIssueCode":{
"type":"string",
"enum":[
"PodExecutionRoleAlreadyInUse",
"AccessDenied",
"ClusterUnreachable",
"InternalFailure"
]
},
"FargateProfileIssueList":{
"type":"list",
"member":{"shape":"FargateProfileIssue"}
},
"FargateProfileLabel":{
"type":"map",
"key":{"shape":"String"},
Expand Down
20 changes: 20 additions & 0 deletions sdk/src/Services/EKS/Generated/Model/FargateProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public partial class FargateProfile
private DateTime? _createdAt;
private string _fargateProfileArn;
private string _fargateProfileName;
private FargateProfileHealth _health;
private string _podExecutionRoleArn;
private List<FargateProfileSelector> _selectors = AWSConfigs.InitializeCollections ? new List<FargateProfileSelector>() : null;
private FargateProfileStatus _status;
Expand Down Expand Up @@ -116,6 +117,25 @@ internal bool IsSetFargateProfileName()
return this._fargateProfileName != null;
}

/// <summary>
/// Gets and sets the property Health.
/// <para>
/// The health status of the Fargate profile. If there are issues with your Fargate profile's
/// health, they are listed here.
/// </para>
/// </summary>
public FargateProfileHealth Health
{
get { return this._health; }
set { this._health = value; }
}

// Check to see if Health property is set
internal bool IsSetHealth()
{
return this._health != null;
}

/// <summary>
/// Gets and sets the property PodExecutionRoleArn.
/// <para>
Expand Down
59 changes: 59 additions & 0 deletions sdk/src/Services/EKS/Generated/Model/FargateProfileHealth.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the eks-2017-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

#pragma warning disable CS0612,CS0618,CS1570
namespace Amazon.EKS.Model
{
/// <summary>
/// The health status of the Fargate profile. If there are issues with your Fargate profile's
/// health, they are listed here.
/// </summary>
public partial class FargateProfileHealth
{
private List<FargateProfileIssue> _issues = AWSConfigs.InitializeCollections ? new List<FargateProfileIssue>() : null;

/// <summary>
/// Gets and sets the property Issues.
/// <para>
/// Any issues that are associated with the Fargate profile.
/// </para>
/// </summary>
public List<FargateProfileIssue> Issues
{
get { return this._issues; }
set { this._issues = value; }
}

// Check to see if Issues property is set
internal bool IsSetIssues()
{
return this._issues != null && (this._issues.Count > 0 || !AWSConfigs.InitializeCollections);
}

}
}
96 changes: 96 additions & 0 deletions sdk/src/Services/EKS/Generated/Model/FargateProfileIssue.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the eks-2017-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

#pragma warning disable CS0612,CS0618,CS1570
namespace Amazon.EKS.Model
{
/// <summary>
/// An issue that is associated with the Fargate profile.
/// </summary>
public partial class FargateProfileIssue
{
private FargateProfileIssueCode _code;
private string _message;
private List<string> _resourceIds = AWSConfigs.InitializeCollections ? new List<string>() : null;

/// <summary>
/// Gets and sets the property Code.
/// <para>
/// A brief description of the error.
/// </para>
/// </summary>
public FargateProfileIssueCode Code
{
get { return this._code; }
set { this._code = value; }
}

// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}

/// <summary>
/// Gets and sets the property Message.
/// <para>
/// The error message associated with the issue.
/// </para>
/// </summary>
public string Message
{
get { return this._message; }
set { this._message = value; }
}

// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}

/// <summary>
/// Gets and sets the property ResourceIds.
/// <para>
/// The Amazon Web Services resources that are affected by this issue.
/// </para>
/// </summary>
public List<string> ResourceIds
{
get { return this._resourceIds; }
set { this._resourceIds = value; }
}

// Check to see if ResourceIds property is set
internal bool IsSetResourceIds()
{
return this._resourceIds != null && (this._resourceIds.Count > 0 || !AWSConfigs.InitializeCollections);
}

}
}
Loading

0 comments on commit def0dec

Please sign in to comment.