Skip to content

Commit

Permalink
Update services based on v1.44.200 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Feb 14, 2023
1 parent e556ce4 commit c3ab6ec
Show file tree
Hide file tree
Showing 193 changed files with 900 additions and 15 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.44.199
v1.44.200
4 changes: 4 additions & 0 deletions src/aws_accessanalyzer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
108 changes: 108 additions & 0 deletions src/aws_account.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@

-export([delete_alternate_contact/2,
delete_alternate_contact/3,
disable_region/2,
disable_region/3,
enable_region/2,
enable_region/3,
get_alternate_contact/2,
get_alternate_contact/3,
get_contact_information/2,
get_contact_information/3,
get_region_opt_status/2,
get_region_opt_status/3,
list_regions/2,
list_regions/3,
put_alternate_contact/2,
put_alternate_contact/3,
put_contact_information/2,
Expand Down Expand Up @@ -54,6 +62,52 @@ delete_alternate_contact(Client, Input0, Options0) ->

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

%% @doc Disables (opts-out) a particular Region for an account.
disable_region(Client, Input) ->
disable_region(Client, Input, []).
disable_region(Client, Input0, Options0) ->
Method = post,
Path = ["/disableRegion"],
SuccessStatusCode = 200,
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 Enables (opts-in) a particular Region for an account.
enable_region(Client, Input) ->
enable_region(Client, Input, []).
enable_region(Client, Input0, Options0) ->
Method = post,
Path = ["/enableRegion"],
SuccessStatusCode = 200,
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 Retrieves the specified alternate contact attached to an Amazon Web
%% Services account.
%%
Expand Down Expand Up @@ -114,6 +168,56 @@ get_contact_information(Client, Input0, Options0) ->

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

%% @doc Retrieves the opt-in status of a particular Region.
get_region_opt_status(Client, Input) ->
get_region_opt_status(Client, Input, []).
get_region_opt_status(Client, Input0, Options0) ->
Method = post,
Path = ["/getRegionOptStatus"],
SuccessStatusCode = 200,
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 Lists all the Regions for a given account and their respective opt-in
%% statuses.
%%
%% Optionally, this list can be filtered by the
%% `region-opt-status-contains' parameter.
list_regions(Client, Input) ->
list_regions(Client, Input, []).
list_regions(Client, Input0, Options0) ->
Method = post,
Path = ["/listRegions"],
SuccessStatusCode = 200,
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 Modifies the specified alternate contact attached to an Amazon Web
%% Services account.
%%
Expand Down Expand Up @@ -257,6 +361,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_amp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_amplify.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_amplifybackend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_amplifyuibuilder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_api_gateway.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3364,6 +3364,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_apigatewaymanagementapi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_apigatewayv2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_app_mesh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_appconfig.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
28 changes: 22 additions & 6 deletions src/aws_appconfigdata.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
%% and used the first time it calls `GetLatestConfiguration' for that
%% session.
%%
%% This token should only be used once in your first call to
%% `GetLatestConfiguration'. You must use the new token in the
%% `GetLatestConfiguration' response (`NextPollConfigurationToken')
%% in each subsequent call to `GetLatestConfiguration'.
%%
%% When calling `GetLatestConfiguration', your client code sends the most
%% recent `ConfigurationToken' value it has and receives in response:
%%
Expand All @@ -41,10 +46,16 @@
%% This may be empty if the client already has the latest version of the
%% configuration.
%%
%% </li> </ul> For more information and to view example CLI commands that
%% show how to retrieve a configuration using the AppConfig Data
%% </li> </ul> The `InitialConfigurationToken' and
%% `NextPollConfigurationToken' should only be used once. To support long
%% poll use cases, the tokens are valid for up to 24 hours. If a
%% `GetLatestConfiguration' call uses an expired token, the system
%% returns `BadRequestException'.
%%
%% For more information and to view example CLI commands that show how to
%% retrieve a configuration using the AppConfig Data
%% `StartConfigurationSession' and `GetLatestConfiguration' API
%% actions, see Receiving the configuration in the AppConfig User Guide.
%% actions, see Retrieving the configuration in the AppConfig User Guide.
-module(aws_appconfigdata).

-export([get_latest_configuration/2,
Expand All @@ -64,7 +75,7 @@
%% This API may return empty configuration data if the client already has the
%% latest version. For more information about this API action and to view
%% example CLI commands that show how to use it with the
%% `StartConfigurationSession' API action, see Receiving the
%% `StartConfigurationSession' API action, see Retrieving the
%% configuration in the AppConfig User Guide.
%%
%% Note the following important information.
Expand Down Expand Up @@ -106,7 +117,8 @@ get_latest_configuration(Client, ConfigurationToken, QueryMap, HeadersMap, Optio
[
{<<"Content-Type">>, <<"ContentType">>},
{<<"Next-Poll-Configuration-Token">>, <<"NextPollConfigurationToken">>},
{<<"Next-Poll-Interval-In-Seconds">>, <<"NextPollIntervalInSeconds">>}
{<<"Next-Poll-Interval-In-Seconds">>, <<"NextPollIntervalInSeconds">>},
{<<"Version-Label">>, <<"VersionLabel">>}
],
FoldFun = fun({Name_, Key_}, Acc_) ->
case lists:keyfind(Name_, 1, ResponseHeaders) of
Expand All @@ -125,7 +137,7 @@ get_latest_configuration(Client, ConfigurationToken, QueryMap, HeadersMap, Optio
%%
%% For more information about this API action and to view example CLI
%% commands that show how to use it with the `GetLatestConfiguration' API
%% action, see Receiving the configuration in the AppConfig User Guide.
%% action, see Retrieving the configuration in the AppConfig User Guide.
start_configuration_session(Client, Input) ->
start_configuration_session(Client, Input, []).
start_configuration_session(Client, Input0, Options0) ->
Expand Down Expand Up @@ -230,6 +242,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_appflow.erl
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_appintegrations.erl
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_applicationcostprofiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_appsync.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_arc_zonal_shift.erl
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
4 changes: 4 additions & 0 deletions src/aws_auditmanager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,10 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end,
{ok, Result, {StatusCode, ResponseHeaders, Client}}
end;
handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody)
when StatusCode =:= 503 ->
%% Retriable error if retries are enabled
{error, service_unavailable};
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
try
Expand Down
Loading

0 comments on commit c3ab6ec

Please sign in to comment.