Skip to content

Commit

Permalink
Update services based on v1.44.185 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jan 24, 2023
1 parent cb3eec6 commit 4cc3ff7
Show file tree
Hide file tree
Showing 191 changed files with 1,397 additions and 382 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.184
v1.44.185
9 changes: 7 additions & 2 deletions src/aws_accessanalyzer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_account.erl
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_amp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_amplify.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_amplifybackend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_amplifyuibuilder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_api_gateway.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3366,8 +3366,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_apigatewaymanagementapi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_apigatewayv2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1999,8 +1999,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_app_mesh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_appconfig.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_appconfigdata.erl
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_appflow.erl
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_appintegrations.erl
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_applicationcostprofiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_appsync.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1475,8 +1475,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_arc_zonal_shift.erl
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_auditmanager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1961,8 +1961,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_backup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2251,8 +2251,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_backupstorage.erl
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_batch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_billingconductor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_braket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
9 changes: 7 additions & 2 deletions src/aws_chime.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5810,8 +5810,13 @@ handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, De
end;
handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) ->
{ok, Body} = hackney:body(Client),
Error = jsx:decode(Body),
{error, Error, {StatusCode, ResponseHeaders, Client}};
try
DecodedError = jsx:decode(Body),
{error, DecodedError, {StatusCode, ResponseHeaders, Client}}
catch
Error:Reason:Stack ->
erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack)
end;
handle_response({error, Reason}, _, _DecodeBody) ->
{error, Reason}.

Expand Down
Loading

0 comments on commit 4cc3ff7

Please sign in to comment.