@@ -1106,6 +1106,23 @@ defmodule AWS.EKS do
11061106
11071107 @ typedoc """
11081108
1109+ ## Example:
1110+
1111+ describe_cluster_versions_request() :: %{
1112+ optional("clusterType") => String.t(),
1113+ optional("clusterVersions") => list(String.t()()),
1114+ optional("defaultOnly") => boolean(),
1115+ optional("includeAll") => boolean(),
1116+ optional("maxResults") => integer(),
1117+ optional("nextToken") => String.t(),
1118+ optional("status") => list(any())
1119+ }
1120+
1121+ """
1122+ @ type describe_cluster_versions_request ( ) :: % { String . t ( ) => any ( ) }
1123+
1124+ @ typedoc """
1125+
11091126 ## Example:
11101127
11111128 deprecation_detail() :: %{
@@ -1328,6 +1345,18 @@ defmodule AWS.EKS do
13281345
13291346 @ typedoc """
13301347
1348+ ## Example:
1349+
1350+ describe_cluster_versions_response() :: %{
1351+ "clusterVersions" => list(cluster_version_information()()),
1352+ "nextToken" => String.t()
1353+ }
1354+
1355+ """
1356+ @ type describe_cluster_versions_response ( ) :: % { String . t ( ) => any ( ) }
1357+
1358+ @ typedoc """
1359+
13311360 ## Example:
13321361
13331362 fargate_profile_health() :: %{
@@ -2694,6 +2723,25 @@ defmodule AWS.EKS do
26942723
26952724 @ typedoc """
26962725
2726+ ## Example:
2727+
2728+ cluster_version_information() :: %{
2729+ "clusterType" => String.t(),
2730+ "clusterVersion" => String.t(),
2731+ "defaultPlatformVersion" => String.t(),
2732+ "defaultVersion" => boolean(),
2733+ "endOfExtendedSupportDate" => non_neg_integer(),
2734+ "endOfStandardSupportDate" => non_neg_integer(),
2735+ "kubernetesPatchVersion" => String.t(),
2736+ "releaseDate" => non_neg_integer(),
2737+ "status" => list(any())
2738+ }
2739+
2740+ """
2741+ @ type cluster_version_information ( ) :: % { String . t ( ) => any ( ) }
2742+
2743+ @ typedoc """
2744+
26972745 ## Example:
26982746
26992747 create_pod_identity_association_response() :: %{
@@ -2880,6 +2928,9 @@ defmodule AWS.EKS do
28802928 | resource_not_found_exception ( )
28812929 | client_exception ( )
28822930
2931+ @ type describe_cluster_versions_errors ( ) ::
2932+ server_exception ( ) | invalid_parameter_exception ( ) | invalid_request_exception ( )
2933+
28832934 @ type describe_eks_anywhere_subscription_errors ( ) ::
28842935 server_exception ( )
28852936 | service_unavailable_exception ( )
@@ -4097,6 +4148,92 @@ defmodule AWS.EKS do
40974148 Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , 200 )
40984149 end
40994150
4151+ @ doc """
4152+ Lists available Kubernetes versions for Amazon EKS clusters.
4153+ """
4154+ @ spec describe_cluster_versions (
4155+ map ( ) ,
4156+ String . t ( ) | nil ,
4157+ String . t ( ) | nil ,
4158+ String . t ( ) | nil ,
4159+ String . t ( ) | nil ,
4160+ String . t ( ) | nil ,
4161+ String . t ( ) | nil ,
4162+ String . t ( ) | nil ,
4163+ list ( )
4164+ ) ::
4165+ { :ok , describe_cluster_versions_response ( ) , any ( ) }
4166+ | { :error , { :unexpected_response , any ( ) } }
4167+ | { :error , describe_cluster_versions_errors ( ) }
4168+ def describe_cluster_versions (
4169+ % Client { } = client ,
4170+ cluster_type \\ nil ,
4171+ cluster_versions \\ nil ,
4172+ default_only \\ nil ,
4173+ include_all \\ nil ,
4174+ max_results \\ nil ,
4175+ next_token \\ nil ,
4176+ status \\ nil ,
4177+ options \\ [ ]
4178+ ) do
4179+ url_path = "/cluster-versions"
4180+ headers = [ ]
4181+ query_params = [ ]
4182+
4183+ query_params =
4184+ if ! is_nil ( status ) do
4185+ [ { "status" , status } | query_params ]
4186+ else
4187+ query_params
4188+ end
4189+
4190+ query_params =
4191+ if ! is_nil ( next_token ) do
4192+ [ { "nextToken" , next_token } | query_params ]
4193+ else
4194+ query_params
4195+ end
4196+
4197+ query_params =
4198+ if ! is_nil ( max_results ) do
4199+ [ { "maxResults" , max_results } | query_params ]
4200+ else
4201+ query_params
4202+ end
4203+
4204+ query_params =
4205+ if ! is_nil ( include_all ) do
4206+ [ { "includeAll" , include_all } | query_params ]
4207+ else
4208+ query_params
4209+ end
4210+
4211+ query_params =
4212+ if ! is_nil ( default_only ) do
4213+ [ { "defaultOnly" , default_only } | query_params ]
4214+ else
4215+ query_params
4216+ end
4217+
4218+ query_params =
4219+ if ! is_nil ( cluster_versions ) do
4220+ [ { "clusterVersions" , cluster_versions } | query_params ]
4221+ else
4222+ query_params
4223+ end
4224+
4225+ query_params =
4226+ if ! is_nil ( cluster_type ) do
4227+ [ { "clusterType" , cluster_type } | query_params ]
4228+ else
4229+ query_params
4230+ end
4231+
4232+ meta = metadata ( )
4233+
4234+ Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , 200 )
4235+ end
4236+
41004237 @ doc """
41014238 Returns descriptive information about a subscription.
41024239 """
0 commit comments