Skip to content

Commit

Permalink
Update services based on release-2024-12-23 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 24, 2024
1 parent 1f3ca94 commit fda9d23
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-12-20
release-2024-12-23
5 changes: 2 additions & 3 deletions lib/aws/generated/ecr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@ defmodule AWS.ECR do
end

@doc """
Retrieves the basic scan type version name.
Retrieves the account setting value for the specified setting name.
"""
@spec get_account_setting(map(), get_account_setting_request(), list()) ::
{:ok, get_account_setting_response(), any()}
Expand Down Expand Up @@ -3247,8 +3247,7 @@ defmodule AWS.ECR do
end

@doc """
Allows you to change the basic scan type version by setting the `name`
parameter to either `CLAIR` to `AWS_NATIVE`.
Allows you to change the basic scan type version or registry policy scope.
"""
@spec put_account_setting(map(), put_account_setting_request(), list()) ::
{:ok, put_account_setting_response(), any()}
Expand Down
137 changes: 137 additions & 0 deletions lib/aws/generated/eks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,23 @@ defmodule AWS.EKS do

@typedoc """
## Example:
describe_cluster_versions_request() :: %{
optional("clusterType") => String.t(),
optional("clusterVersions") => list(String.t()()),
optional("defaultOnly") => boolean(),
optional("includeAll") => boolean(),
optional("maxResults") => integer(),
optional("nextToken") => String.t(),
optional("status") => list(any())
}
"""
@type describe_cluster_versions_request() :: %{String.t() => any()}

@typedoc """
## Example:
deprecation_detail() :: %{
Expand Down Expand Up @@ -1328,6 +1345,18 @@ defmodule AWS.EKS do

@typedoc """
## Example:
describe_cluster_versions_response() :: %{
"clusterVersions" => list(cluster_version_information()()),
"nextToken" => String.t()
}
"""
@type describe_cluster_versions_response() :: %{String.t() => any()}

@typedoc """
## Example:
fargate_profile_health() :: %{
Expand Down Expand Up @@ -2694,6 +2723,25 @@ defmodule AWS.EKS do

@typedoc """
## Example:
cluster_version_information() :: %{
"clusterType" => String.t(),
"clusterVersion" => String.t(),
"defaultPlatformVersion" => String.t(),
"defaultVersion" => boolean(),
"endOfExtendedSupportDate" => non_neg_integer(),
"endOfStandardSupportDate" => non_neg_integer(),
"kubernetesPatchVersion" => String.t(),
"releaseDate" => non_neg_integer(),
"status" => list(any())
}
"""
@type cluster_version_information() :: %{String.t() => any()}

@typedoc """
## Example:
create_pod_identity_association_response() :: %{
Expand Down Expand Up @@ -2880,6 +2928,9 @@ defmodule AWS.EKS do
| resource_not_found_exception()
| client_exception()

@type describe_cluster_versions_errors() ::
server_exception() | invalid_parameter_exception() | invalid_request_exception()

@type describe_eks_anywhere_subscription_errors() ::
server_exception()
| service_unavailable_exception()
Expand Down Expand Up @@ -4097,6 +4148,92 @@ defmodule AWS.EKS do
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, 200)
end

@doc """
Lists available Kubernetes versions for Amazon EKS clusters.
"""
@spec describe_cluster_versions(
map(),
String.t() | nil,
String.t() | nil,
String.t() | nil,
String.t() | nil,
String.t() | nil,
String.t() | nil,
String.t() | nil,
list()
) ::
{:ok, describe_cluster_versions_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, describe_cluster_versions_errors()}
def describe_cluster_versions(
%Client{} = client,
cluster_type \\ nil,
cluster_versions \\ nil,
default_only \\ nil,
include_all \\ nil,
max_results \\ nil,
next_token \\ nil,
status \\ nil,
options \\ []
) do
url_path = "/cluster-versions"
headers = []
query_params = []

query_params =
if !is_nil(status) do
[{"status", status} | query_params]
else
query_params
end

query_params =
if !is_nil(next_token) do
[{"nextToken", next_token} | query_params]
else
query_params
end

query_params =
if !is_nil(max_results) do
[{"maxResults", max_results} | query_params]
else
query_params
end

query_params =
if !is_nil(include_all) do
[{"includeAll", include_all} | query_params]
else
query_params
end

query_params =
if !is_nil(default_only) do
[{"defaultOnly", default_only} | query_params]
else
query_params
end

query_params =
if !is_nil(cluster_versions) do
[{"clusterVersions", cluster_versions} | query_params]
else
query_params
end

query_params =
if !is_nil(cluster_type) do
[{"clusterType", cluster_type} | query_params]
else
query_params
end

meta = metadata()

Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, 200)
end

@doc """
Returns descriptive information about a subscription.
"""
Expand Down
1 change: 1 addition & 0 deletions lib/aws/generated/glue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4273,6 +4273,7 @@ defmodule AWS.Glue do
## Example:
get_catalogs_request() :: %{
optional("IncludeRoot") => boolean(),
optional("MaxResults") => integer(),
optional("NextToken") => String.t(),
optional("ParentCatalogId") => String.t(),
Expand Down

0 comments on commit fda9d23

Please sign in to comment.