Skip to content

Commit 34e2d61

Browse files
author
awstools
committed
feat(client-eks): This release adds support to surface async fargate customer errors from async path to customer through describe-fargate-profile API response.
1 parent 472d873 commit 34e2d61

File tree

6 files changed

+181
-0
lines changed

6 files changed

+181
-0
lines changed

Diff for: clients/client-eks/src/commands/CreateFargateProfileCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ export interface CreateFargateProfileCommandOutput extends CreateFargateProfileR
105105
* // tags: { // TagMap
106106
* // "<keys>": "STRING_VALUE",
107107
* // },
108+
* // health: { // FargateProfileHealth
109+
* // issues: [ // FargateProfileIssueList
110+
* // { // FargateProfileIssue
111+
* // code: "PodExecutionRoleAlreadyInUse" || "AccessDenied" || "ClusterUnreachable" || "InternalFailure",
112+
* // message: "STRING_VALUE",
113+
* // resourceIds: [
114+
* // "STRING_VALUE",
115+
* // ],
116+
* // },
117+
* // ],
118+
* // },
108119
* // },
109120
* // };
110121
*

Diff for: clients/client-eks/src/commands/DeleteFargateProfileCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ export interface DeleteFargateProfileCommandOutput extends DeleteFargateProfileR
7373
* // tags: { // TagMap
7474
* // "<keys>": "STRING_VALUE",
7575
* // },
76+
* // health: { // FargateProfileHealth
77+
* // issues: [ // FargateProfileIssueList
78+
* // { // FargateProfileIssue
79+
* // code: "PodExecutionRoleAlreadyInUse" || "AccessDenied" || "ClusterUnreachable" || "InternalFailure",
80+
* // message: "STRING_VALUE",
81+
* // resourceIds: [
82+
* // "STRING_VALUE",
83+
* // ],
84+
* // },
85+
* // ],
86+
* // },
7687
* // },
7788
* // };
7889
*

Diff for: clients/client-eks/src/commands/DescribeFargateProfileCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ export interface DescribeFargateProfileCommandOutput extends DescribeFargateProf
6363
* // tags: { // TagMap
6464
* // "<keys>": "STRING_VALUE",
6565
* // },
66+
* // health: { // FargateProfileHealth
67+
* // issues: [ // FargateProfileIssueList
68+
* // { // FargateProfileIssue
69+
* // code: "PodExecutionRoleAlreadyInUse" || "AccessDenied" || "ClusterUnreachable" || "InternalFailure",
70+
* // message: "STRING_VALUE",
71+
* // resourceIds: [
72+
* // "STRING_VALUE",
73+
* // ],
74+
* // },
75+
* // ],
76+
* // },
6677
* // },
6778
* // };
6879
*

Diff for: clients/client-eks/src/models/models_0.ts

+60
Original file line numberDiff line numberDiff line change
@@ -2866,6 +2866,59 @@ export interface CreateFargateProfileRequest {
28662866
tags?: Record<string, string>;
28672867
}
28682868

2869+
/**
2870+
* @public
2871+
* @enum
2872+
*/
2873+
export const FargateProfileIssueCode = {
2874+
ACCESS_DENIED: "AccessDenied",
2875+
CLUSTER_UNREACHABLE: "ClusterUnreachable",
2876+
INTERNAL_FAILURE: "InternalFailure",
2877+
POD_EXECUTION_ROLE_ALREADY_IN_USE: "PodExecutionRoleAlreadyInUse",
2878+
} as const;
2879+
2880+
/**
2881+
* @public
2882+
*/
2883+
export type FargateProfileIssueCode = (typeof FargateProfileIssueCode)[keyof typeof FargateProfileIssueCode];
2884+
2885+
/**
2886+
* <p>An issue that is associated with the Fargate profile.</p>
2887+
* @public
2888+
*/
2889+
export interface FargateProfileIssue {
2890+
/**
2891+
* <p>A brief description of the error.</p>
2892+
* @public
2893+
*/
2894+
code?: FargateProfileIssueCode;
2895+
2896+
/**
2897+
* <p>The error message associated with the issue.</p>
2898+
* @public
2899+
*/
2900+
message?: string;
2901+
2902+
/**
2903+
* <p>The Amazon Web Services resources that are affected by this issue.</p>
2904+
* @public
2905+
*/
2906+
resourceIds?: string[];
2907+
}
2908+
2909+
/**
2910+
* <p>The health status of the Fargate profile. If there are issues with
2911+
* your Fargate profile's health, they are listed here.</p>
2912+
* @public
2913+
*/
2914+
export interface FargateProfileHealth {
2915+
/**
2916+
* <p>Any issues that are associated with the Fargate profile.</p>
2917+
* @public
2918+
*/
2919+
issues?: FargateProfileIssue[];
2920+
}
2921+
28692922
/**
28702923
* @public
28712924
* @enum
@@ -2947,6 +3000,13 @@ export interface FargateProfile {
29473000
* @public
29483001
*/
29493002
tags?: Record<string, string>;
3003+
3004+
/**
3005+
* <p>The health status of the Fargate profile. If there are issues with
3006+
* your Fargate profile's health, they are listed here.</p>
3007+
* @public
3008+
*/
3009+
health?: FargateProfileHealth;
29503010
}
29513011

29523012
/**

Diff for: clients/client-eks/src/protocols/Aws_restJson1.ts

+7
Original file line numberDiff line numberDiff line change
@@ -3312,6 +3312,7 @@ const de_FargateProfile = (output: any, context: __SerdeContext): FargateProfile
33123312
createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
33133313
fargateProfileArn: __expectString,
33143314
fargateProfileName: __expectString,
3315+
health: _json,
33153316
podExecutionRoleArn: __expectString,
33163317
selectors: _json,
33173318
status: __expectString,
@@ -3320,6 +3321,12 @@ const de_FargateProfile = (output: any, context: __SerdeContext): FargateProfile
33203321
}) as any;
33213322
};
33223323

3324+
// de_FargateProfileHealth omitted.
3325+
3326+
// de_FargateProfileIssue omitted.
3327+
3328+
// de_FargateProfileIssueList omitted.
3329+
33233330
// de_FargateProfileLabel omitted.
33243331

33253332
// de_FargateProfileSelector omitted.

Diff for: codegen/sdk-codegen/aws-models/eks.json

+81
Original file line numberDiff line numberDiff line change
@@ -6127,12 +6127,93 @@
61276127
"traits": {
61286128
"smithy.api#documentation": "<p>Metadata that assists with categorization and organization.\n Each tag consists of a key and an optional value. You define both. Tags don't\n propagate to any other cluster or Amazon Web Services resources.</p>"
61296129
}
6130+
},
6131+
"health": {
6132+
"target": "com.amazonaws.eks#FargateProfileHealth",
6133+
"traits": {
6134+
"smithy.api#documentation": "<p>The health status of the Fargate profile. If there are issues with\n your Fargate profile's health, they are listed here.</p>"
6135+
}
61306136
}
61316137
},
61326138
"traits": {
61336139
"smithy.api#documentation": "<p>An object representing an Fargate profile.</p>"
61346140
}
61356141
},
6142+
"com.amazonaws.eks#FargateProfileHealth": {
6143+
"type": "structure",
6144+
"members": {
6145+
"issues": {
6146+
"target": "com.amazonaws.eks#FargateProfileIssueList",
6147+
"traits": {
6148+
"smithy.api#documentation": "<p>Any issues that are associated with the Fargate profile.</p>"
6149+
}
6150+
}
6151+
},
6152+
"traits": {
6153+
"smithy.api#documentation": "<p>The health status of the Fargate profile. If there are issues with\n your Fargate profile's health, they are listed here.</p>"
6154+
}
6155+
},
6156+
"com.amazonaws.eks#FargateProfileIssue": {
6157+
"type": "structure",
6158+
"members": {
6159+
"code": {
6160+
"target": "com.amazonaws.eks#FargateProfileIssueCode",
6161+
"traits": {
6162+
"smithy.api#documentation": "<p>A brief description of the error.</p>"
6163+
}
6164+
},
6165+
"message": {
6166+
"target": "com.amazonaws.eks#String",
6167+
"traits": {
6168+
"smithy.api#documentation": "<p>The error message associated with the issue.</p>"
6169+
}
6170+
},
6171+
"resourceIds": {
6172+
"target": "com.amazonaws.eks#StringList",
6173+
"traits": {
6174+
"smithy.api#documentation": "<p>The Amazon Web Services resources that are affected by this issue.</p>"
6175+
}
6176+
}
6177+
},
6178+
"traits": {
6179+
"smithy.api#documentation": "<p>An issue that is associated with the Fargate profile.</p>"
6180+
}
6181+
},
6182+
"com.amazonaws.eks#FargateProfileIssueCode": {
6183+
"type": "enum",
6184+
"members": {
6185+
"POD_EXECUTION_ROLE_ALREADY_IN_USE": {
6186+
"target": "smithy.api#Unit",
6187+
"traits": {
6188+
"smithy.api#enumValue": "PodExecutionRoleAlreadyInUse"
6189+
}
6190+
},
6191+
"ACCESS_DENIED": {
6192+
"target": "smithy.api#Unit",
6193+
"traits": {
6194+
"smithy.api#enumValue": "AccessDenied"
6195+
}
6196+
},
6197+
"CLUSTER_UNREACHABLE": {
6198+
"target": "smithy.api#Unit",
6199+
"traits": {
6200+
"smithy.api#enumValue": "ClusterUnreachable"
6201+
}
6202+
},
6203+
"INTERNAL_FAILURE": {
6204+
"target": "smithy.api#Unit",
6205+
"traits": {
6206+
"smithy.api#enumValue": "InternalFailure"
6207+
}
6208+
}
6209+
}
6210+
},
6211+
"com.amazonaws.eks#FargateProfileIssueList": {
6212+
"type": "list",
6213+
"member": {
6214+
"target": "com.amazonaws.eks#FargateProfileIssue"
6215+
}
6216+
},
61366217
"com.amazonaws.eks#FargateProfileLabel": {
61376218
"type": "map",
61386219
"key": {

0 commit comments

Comments
 (0)