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 a41c1f0 commit 99d247e
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 5 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
7 changes: 3 additions & 4 deletions src/aws_ecr.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ describe_repository_creation_templates(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DescribeRepositoryCreationTemplates">>, Input, Options).

%% @doc Retrieves the basic scan type version name.
%% @doc Retrieves the account setting value for the specified setting name.
-spec get_account_setting(aws_client:aws_client(), get_account_setting_request()) ->
{ok, get_account_setting_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -2566,9 +2566,8 @@ list_tags_for_resource(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"ListTagsForResource">>, Input, Options).

%% @doc Allows you to change the basic scan type version by setting the
%% `name'
%% parameter to either `CLAIR' to `AWS_NATIVE'.
%% @doc Allows you to change the basic scan type version or registry policy
%% scope.
-spec put_account_setting(aws_client:aws_client(), put_account_setting_request()) ->
{ok, put_account_setting_response(), tuple()} |
{error, any()} |
Expand Down
91 changes: 91 additions & 0 deletions src/aws_eks.erl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
describe_cluster/2,
describe_cluster/4,
describe_cluster/5,
describe_cluster_versions/1,
describe_cluster_versions/3,
describe_cluster_versions/4,
describe_eks_anywhere_subscription/2,
describe_eks_anywhere_subscription/4,
describe_eks_anywhere_subscription/5,
Expand Down Expand Up @@ -905,6 +908,19 @@
-type describe_fargate_profile_response() :: #{binary() => any()}.


%% Example:
%% describe_cluster_versions_request() :: #{
%% <<"clusterType">> => string(),
%% <<"clusterVersions">> => list(string()()),
%% <<"defaultOnly">> => boolean(),
%% <<"includeAll">> => boolean(),
%% <<"maxResults">> => integer(),
%% <<"nextToken">> => string(),
%% <<"status">> => list(any())
%% }
-type describe_cluster_versions_request() :: #{binary() => any()}.


%% Example:
%% deprecation_detail() :: #{
%% <<"clientStats">> => list(client_stat()()),
Expand Down Expand Up @@ -1063,6 +1079,14 @@
-type not_found_exception() :: #{binary() => any()}.


%% Example:
%% describe_cluster_versions_response() :: #{
%% <<"clusterVersions">> => list(cluster_version_information()()),
%% <<"nextToken">> => string()
%% }
-type describe_cluster_versions_response() :: #{binary() => any()}.


%% Example:
%% fargate_profile_health() :: #{
%% <<"issues">> => list(fargate_profile_issue()())
Expand Down Expand Up @@ -1972,6 +1996,21 @@
-type describe_update_response() :: #{binary() => any()}.


%% Example:
%% cluster_version_information() :: #{
%% <<"clusterType">> => string(),
%% <<"clusterVersion">> => string(),
%% <<"defaultPlatformVersion">> => string(),
%% <<"defaultVersion">> => boolean(),
%% <<"endOfExtendedSupportDate">> => non_neg_integer(),
%% <<"endOfStandardSupportDate">> => non_neg_integer(),
%% <<"kubernetesPatchVersion">> => string(),
%% <<"releaseDate">> => non_neg_integer(),
%% <<"status">> => list(any())
%% }
-type cluster_version_information() :: #{binary() => any()}.


%% Example:
%% create_pod_identity_association_response() :: #{
%% <<"association">> => pod_identity_association()
Expand Down Expand Up @@ -2154,6 +2193,11 @@
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 @@ -3473,6 +3517,53 @@ describe_cluster(Client, Name, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Lists available Kubernetes versions for Amazon EKS clusters.
-spec describe_cluster_versions(aws_client:aws_client()) ->
{ok, describe_cluster_versions_response(), tuple()} |
{error, any()} |
{error, describe_cluster_versions_errors(), tuple()}.
describe_cluster_versions(Client)
when is_map(Client) ->
describe_cluster_versions(Client, #{}, #{}).

-spec describe_cluster_versions(aws_client:aws_client(), map(), map()) ->
{ok, describe_cluster_versions_response(), tuple()} |
{error, any()} |
{error, describe_cluster_versions_errors(), tuple()}.
describe_cluster_versions(Client, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
describe_cluster_versions(Client, QueryMap, HeadersMap, []).

-spec describe_cluster_versions(aws_client:aws_client(), map(), map(), proplists:proplist()) ->
{ok, describe_cluster_versions_response(), tuple()} |
{error, any()} |
{error, describe_cluster_versions_errors(), tuple()}.
describe_cluster_versions(Client, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/cluster-versions"],
SuccessStatusCode = 200,
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary}
| Options2],

Headers = [],

Query0_ =
[
{<<"clusterType">>, maps:get(<<"clusterType">>, QueryMap, undefined)},
{<<"clusterVersions">>, maps:get(<<"clusterVersions">>, QueryMap, undefined)},
{<<"defaultOnly">>, maps:get(<<"defaultOnly">>, QueryMap, undefined)},
{<<"includeAll">>, maps:get(<<"includeAll">>, QueryMap, undefined)},
{<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)},
{<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)},
{<<"status">>, maps:get(<<"status">>, QueryMap, undefined)}
],
Query_ = [H || {_, V} = H <- Query0_, V =/= undefined],

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Returns descriptive information about a subscription.
-spec describe_eks_anywhere_subscription(aws_client:aws_client(), binary() | list()) ->
{ok, describe_eks_anywhere_subscription_response(), tuple()} |
Expand Down
1 change: 1 addition & 0 deletions src/aws_glue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3264,6 +3264,7 @@

%% Example:
%% get_catalogs_request() :: #{
%% <<"IncludeRoot">> => boolean(),
%% <<"MaxResults">> => integer(),
%% <<"NextToken">> => string(),
%% <<"ParentCatalogId">> => string(),
Expand Down

0 comments on commit 99d247e

Please sign in to comment.