Skip to content

Commit

Permalink
Update services based on v1.50.20 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Feb 17, 2024
1 parent f70a401 commit 01caa67
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 109 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.50.19
v1.50.20
33 changes: 31 additions & 2 deletions src/aws_connectparticipant.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
%% @doc Allows you to confirm that the attachment has been uploaded using the
%% pre-signed URL provided in StartAttachmentUpload API.
%%
%% A conflict exception is thrown when an attachment with that identifier is
%% already being uploaded.
%%
%% `ConnectionToken' is used for invoking this API instead of
%% `ParticipantToken'.
%%
Expand Down Expand Up @@ -229,7 +232,23 @@ get_attachment(Client, Input0, Options0) ->
%% For information about accessing past chat contact transcripts for a
%% persistent chat, see Enable persistent chat.
%%
%% `ConnectionToken' is used for invoking this API instead of
%% If you have a process that consumes events in the transcript of an chat
%% that has ended, note that chat transcripts contain the following event
%% content types if the event has occurred during the chat session:
%%
%% <ul> <li> `application/vnd.amazonaws.connect.event.participant.left'
%%
%% </li> <li>
%% `application/vnd.amazonaws.connect.event.participant.joined'
%%
%% </li> <li> `application/vnd.amazonaws.connect.event.chat.ended'
%%
%% </li> <li>
%% `application/vnd.amazonaws.connect.event.transfer.succeeded'
%%
%% </li> <li> `application/vnd.amazonaws.connect.event.transfer.failed'
%%
%% </li> </ul> `ConnectionToken' is used for invoking this API instead of
%% `ParticipantToken'.
%%
%% The Amazon Connect Participant Service APIs do not use Signature Version 4
Expand Down Expand Up @@ -258,7 +277,17 @@ get_transcript(Client, Input0, Options0) ->

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

%% @doc Sends an event.
%% @doc The
%% `application/vnd.amazonaws.connect.event.connection.acknowledged'
%% ContentType will no longer be supported starting December 31, 2024.
%%
%% This event has been migrated to the CreateParticipantConnection API using
%% the `ConnectParticipant' field.
%%
%% Sends an event. Message receipts are not supported when there are more
%% than two active participants in the chat. Using the SendEvent API for
%% message receipts when a supervisor is barged-in will result in a conflict
%% exception.
%%
%% `ConnectionToken' is used for invoking this API instead of
%% `ParticipantToken'.
Expand Down
28 changes: 27 additions & 1 deletion src/aws_emr.erl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
set_keep_job_flow_alive_when_no_steps/3,
set_termination_protection/2,
set_termination_protection/3,
set_unhealthy_node_replacement/2,
set_unhealthy_node_replacement/3,
set_visible_to_all_users/2,
set_visible_to_all_users/3,
start_notebook_execution/2,
Expand Down Expand Up @@ -744,7 +746,7 @@ set_keep_job_flow_alive_when_no_steps(Client, Input, Options)
%% job flow by a subsequent call to `SetTerminationProtection' in which
%% you set the value to `false'.
%%
%% For more information, seeManaging Cluster Termination in the Amazon EMR
%% For more information, see Managing Cluster Termination in the Amazon EMR
%% Management Guide.
set_termination_protection(Client, Input)
when is_map(Client), is_map(Input) ->
Expand All @@ -753,6 +755,30 @@ set_termination_protection(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"SetTerminationProtection">>, Input, Options).

%% @doc Specify whether to enable unhealthy node replacement, which lets
%% Amazon EMR gracefully replace core nodes on a cluster if any nodes become
%% unhealthy.
%%
%% For example, a node becomes unhealthy if disk usage is above 90%. If
%% unhealthy node replacement is on and `TerminationProtected' are off,
%% Amazon EMR immediately terminates the unhealthy core nodes. To use
%% unhealthy node replacement and retain unhealthy core nodes, use to turn on
%% termination protection. In such cases, Amazon EMR adds the unhealthy nodes
%% to a denylist, reducing job interruptions and failures.
%%
%% If unhealthy node replacement is on, Amazon EMR notifies YARN and other
%% applications on the cluster to stop scheduling tasks with these nodes,
%% moves the data, and then terminates the nodes.
%%
%% For more information, see graceful node replacement in the Amazon EMR
%% Management Guide.
set_unhealthy_node_replacement(Client, Input)
when is_map(Client), is_map(Input) ->
set_unhealthy_node_replacement(Client, Input, []).
set_unhealthy_node_replacement(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"SetUnhealthyNodeReplacement">>, Input, Options).

%% @doc The SetVisibleToAllUsers parameter is no longer supported.
%%
%% Your cluster may be visible to all users in your account. To restrict
Expand Down
Loading

0 comments on commit 01caa67

Please sign in to comment.