Skip to content

Commit

Permalink
Update services based on v1.49.8 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 22, 2023
1 parent f13749c commit 2a173be
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.49.7
v1.49.8
60 changes: 60 additions & 0 deletions src/aws_appintegrations.erl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
create_data_integration/3,
create_event_integration/2,
create_event_integration/3,
delete_application/3,
delete_application/4,
delete_data_integration/3,
delete_data_integration/4,
delete_event_integration/3,
Expand All @@ -29,6 +31,9 @@
get_event_integration/2,
get_event_integration/4,
get_event_integration/5,
list_application_associations/2,
list_application_associations/4,
list_application_associations/5,
list_applications/1,
list_applications/3,
list_applications/4,
Expand Down Expand Up @@ -144,6 +149,32 @@ create_event_integration(Client, Input0, Options0) ->

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Deletes the Application.
%%
%% Only Applications that don't have any Application Associations can be
%% deleted.
delete_application(Client, Arn, Input) ->
delete_application(Client, Arn, Input, []).
delete_application(Client, Arn, Input0, Options0) ->
Method = delete,
Path = ["/applications/", aws_util:encode_uri(Arn), ""],
SuccessStatusCode = undefined,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{append_sha256_content_hash, false}
| Options0],

Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Deletes the DataIntegration.
%%
%% Only DataIntegrations that don't have any DataIntegrationAssociations
Expand Down Expand Up @@ -276,6 +307,35 @@ get_event_integration(Client, Name, QueryMap, HeadersMap, Options0)

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

%% @doc Returns a paginated list of application associations for an
%% application.
list_application_associations(Client, ApplicationId)
when is_map(Client) ->
list_application_associations(Client, ApplicationId, #{}, #{}).

list_application_associations(Client, ApplicationId, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
list_application_associations(Client, ApplicationId, QueryMap, HeadersMap, []).

list_application_associations(Client, ApplicationId, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/applications/", aws_util:encode_uri(ApplicationId), "/associations"],
SuccessStatusCode = undefined,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],

Headers = [],

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

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

%% @doc This API is in preview release and subject to change.
%%
%% Lists applications in the account.
Expand Down
15 changes: 15 additions & 0 deletions src/aws_codecommit.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
%% </li> <li> `UpdateRepositoryDescription', which sets or updates the
%% description of the repository.
%%
%% </li> <li> `UpdateRepositoryEncryptionKey', which updates the Key
%% Management Service encryption key used to encrypt and decrypt a
%% repository.
%%
%% </li> <li> `UpdateRepositoryName', which changes the name of the
%% repository. If you change the name of a repository, no other users of that
%% repository can access it until you send them the new HTTPS or SSH URL to
Expand Down Expand Up @@ -447,6 +451,8 @@
update_pull_request_title/3,
update_repository_description/2,
update_repository_description/3,
update_repository_encryption_key/2,
update_repository_encryption_key/3,
update_repository_name/2,
update_repository_name/3]).

Expand Down Expand Up @@ -1252,6 +1258,15 @@ update_repository_description(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateRepositoryDescription">>, Input, Options).

%% @doc Updates the Key Management Service encryption key used to encrypt and
%% decrypt a CodeCommit repository.
update_repository_encryption_key(Client, Input)
when is_map(Client), is_map(Input) ->
update_repository_encryption_key(Client, Input, []).
update_repository_encryption_key(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateRepositoryEncryptionKey">>, Input, Options).

%% @doc Renames a repository.
%%
%% The repository name must be unique across the calling Amazon Web Services
Expand Down
Loading

0 comments on commit 2a173be

Please sign in to comment.