Skip to content

Commit 35e2134

Browse files
committed
Bump aws_beam_core to include sig4va and global region support
1 parent 0d9c612 commit 35e2134

259 files changed

Lines changed: 2099 additions & 542 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{erl_opts, [nowarn_unused_type, debug_info, {d, maps_support}]}.
22
{deps, [{hackney, "1.25.0"},
33
{jsx, "3.0.0"},
4-
{aws_beam_core, "1.2.0"}
4+
{aws_beam_core, "1.2.1"}
55
]}.
66
{project_plugins, [rebar3_hex, rebar3_ex_doc, rebar3_check_app_calls]}.
77
{hex, [{doc, #{provider => ex_doc}}]}.

rebar.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{"1.2.0",
2-
[{<<"aws_beam_core">>,{pkg,<<"aws_beam_core">>,<<"1.2.0">>},0},
2+
[{<<"aws_beam_core">>,{pkg,<<"aws_beam_core">>,<<"1.2.1">>},0},
33
{<<"aws_credentials">>,{pkg,<<"aws_credentials">>,<<"1.0.3">>},1},
44
{<<"aws_signature">>,{pkg,<<"aws_signature">>,<<"0.4.2">>},1},
55
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.15.0">>},1},
@@ -15,7 +15,7 @@
1515
{<<"unicode_util_compat">>,{pkg,<<"unicode_util_compat">>,<<"0.7.1">>},1}]}.
1616
[
1717
{pkg_hash,[
18-
{<<"aws_beam_core">>, <<"EA9C7289EEEE2C42F97E4208D7447DF2074084C2E000F3F2B132FF6DB626D56F">>},
18+
{<<"aws_beam_core">>, <<"AE573A3673A51713CFBBED1C2BE7A14E59207DD9E2399C50FC2CB8AC9E375B17">>},
1919
{<<"aws_credentials">>, <<"7CDAA99D0ED11C3B93A5F80E5673969F1E4379EDBB4907EB13D161CF2DE0826E">>},
2020
{<<"aws_signature">>, <<"1B35482C89FF5B91F5EAD647A2BBC0D9620877479B44800915DE92BACF9F1476">>},
2121
{<<"certifi">>, <<"0E6E882FCDAAA0A5A9F2B3DB55B1394DBA07E8D6D9BCAD08318FB604C6839712">>},
@@ -30,7 +30,7 @@
3030
{<<"ssl_verify_fun">>, <<"354C321CF377240C7B8716899E182CE4890C5938111A1296ADD3EC74CF1715DF">>},
3131
{<<"unicode_util_compat">>, <<"A48703A25C170EEDADCA83B11E88985AF08D35F37C6F664D6DCFB106A97782FC">>}]},
3232
{pkg_hash_ext,[
33-
{<<"aws_beam_core">>, <<"C61C637B9AFDCB01AE00BCB881C477F8C0BE1B27C28A5C6BB886CD029C91466D">>},
33+
{<<"aws_beam_core">>, <<"373120ACEF83ECAFAADB7E286693FB54DA5CFC0947A325C29164F931B01E8848">>},
3434
{<<"aws_credentials">>, <<"D3ACC14D953C7F00BF544FE81A3A8D9C30C073A7526EA3CC2D6220D9468FF6D3">>},
3535
{<<"aws_signature">>, <<"1DF4A2D1DFF200C7BDFA8F9F935EFC71A51273ADFC6DD39A9F2CC937E01BAA01">>},
3636
{<<"certifi">>, <<"B147ED22CE71D72EAFDAD94F055165C1C182F61A2FF49DF28BCC71D1D5B94A60">>},

src/aws_accessanalyzer.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,8 +3351,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
33513351
],
33523352
Payload =
33533353
case proplists:get_value(send_body_as_binary, Options) of
3354-
true ->
3355-
maps:get(<<"Body">>, Input, <<"">>);
3354+
true when is_list(Input) ->
3355+
proplists:get_value(<<"Body">>, Input, <<"">>);
3356+
true when Input =:= undefined ->
3357+
<<"">>;
3358+
true ->
3359+
maps:get(<<"Body">>, Input, <<"">>);
33563360
false ->
33573361
encode_payload(Input)
33583362
end,
@@ -3429,6 +3433,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
34293433
<<"localhost">>;
34303434
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
34313435
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
3436+
34323437
build_url(Host, Path0, Client) ->
34333438
Proto = aws_client:proto(Client),
34343439
Path = erlang:iolist_to_binary(Path0),
@@ -3440,3 +3445,4 @@ encode_payload(undefined) ->
34403445
<<>>;
34413446
encode_payload(Input) ->
34423447
jsx:encode(Input).
3448+

src/aws_account.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,8 +1051,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
10511051
],
10521052
Payload =
10531053
case proplists:get_value(send_body_as_binary, Options) of
1054-
true ->
1055-
maps:get(<<"Body">>, Input, <<"">>);
1054+
true when is_list(Input) ->
1055+
proplists:get_value(<<"Body">>, Input, <<"">>);
1056+
true when Input =:= undefined ->
1057+
<<"">>;
1058+
true ->
1059+
maps:get(<<"Body">>, Input, <<"">>);
10561060
false ->
10571061
encode_payload(Input)
10581062
end,
@@ -1129,6 +1133,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
11291133
<<"localhost">>;
11301134
build_host(EndpointPrefix, #{endpoint := Endpoint}) ->
11311135
aws_util:binary_join([EndpointPrefix, Endpoint], <<".">>).
1136+
11321137
build_url(Host, Path0, Client) ->
11331138
Proto = aws_client:proto(Client),
11341139
Path = erlang:iolist_to_binary(Path0),
@@ -1140,3 +1145,4 @@ encode_payload(undefined) ->
11401145
<<>>;
11411146
encode_payload(Input) ->
11421147
jsx:encode(Input).
1148+

src/aws_aiops.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
854854
],
855855
Payload =
856856
case proplists:get_value(send_body_as_binary, Options) of
857-
true ->
858-
maps:get(<<"Body">>, Input, <<"">>);
857+
true when is_list(Input) ->
858+
proplists:get_value(<<"Body">>, Input, <<"">>);
859+
true when Input =:= undefined ->
860+
<<"">>;
861+
true ->
862+
maps:get(<<"Body">>, Input, <<"">>);
859863
false ->
860864
encode_payload(Input)
861865
end,
@@ -932,6 +936,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
932936
<<"localhost">>;
933937
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
934938
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
939+
935940
build_url(Host, Path0, Client) ->
936941
Proto = aws_client:proto(Client),
937942
Path = erlang:iolist_to_binary(Path0),
@@ -943,3 +948,4 @@ encode_payload(undefined) ->
943948
<<>>;
944949
encode_payload(Input) ->
945950
jsx:encode(Input).
951+

src/aws_amp.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,8 +3242,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
32423242
],
32433243
Payload =
32443244
case proplists:get_value(send_body_as_binary, Options) of
3245-
true ->
3246-
maps:get(<<"Body">>, Input, <<"">>);
3245+
true when is_list(Input) ->
3246+
proplists:get_value(<<"Body">>, Input, <<"">>);
3247+
true when Input =:= undefined ->
3248+
<<"">>;
3249+
true ->
3250+
maps:get(<<"Body">>, Input, <<"">>);
32473251
false ->
32483252
encode_payload(Input)
32493253
end,
@@ -3320,6 +3324,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
33203324
<<"localhost">>;
33213325
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
33223326
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
3327+
33233328
build_url(Host, Path0, Client) ->
33243329
Proto = aws_client:proto(Client),
33253330
Path = erlang:iolist_to_binary(Path0),
@@ -3331,3 +3336,4 @@ encode_payload(undefined) ->
33313336
<<>>;
33323337
encode_payload(Input) ->
33333338
jsx:encode(Input).
3339+

src/aws_amplify.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,8 +2683,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
26832683
],
26842684
Payload =
26852685
case proplists:get_value(send_body_as_binary, Options) of
2686-
true ->
2687-
maps:get(<<"Body">>, Input, <<"">>);
2686+
true when is_list(Input) ->
2687+
proplists:get_value(<<"Body">>, Input, <<"">>);
2688+
true when Input =:= undefined ->
2689+
<<"">>;
2690+
true ->
2691+
maps:get(<<"Body">>, Input, <<"">>);
26882692
false ->
26892693
encode_payload(Input)
26902694
end,
@@ -2761,6 +2765,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
27612765
<<"localhost">>;
27622766
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
27632767
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
2768+
27642769
build_url(Host, Path0, Client) ->
27652770
Proto = aws_client:proto(Client),
27662771
Path = erlang:iolist_to_binary(Path0),
@@ -2772,3 +2777,4 @@ encode_payload(undefined) ->
27722777
<<>>;
27732778
encode_payload(Input) ->
27742779
jsx:encode(Input).
2780+

src/aws_amplifybackend.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,8 +2263,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
22632263
],
22642264
Payload =
22652265
case proplists:get_value(send_body_as_binary, Options) of
2266-
true ->
2267-
maps:get(<<"Body">>, Input, <<"">>);
2266+
true when is_list(Input) ->
2267+
proplists:get_value(<<"Body">>, Input, <<"">>);
2268+
true when Input =:= undefined ->
2269+
<<"">>;
2270+
true ->
2271+
maps:get(<<"Body">>, Input, <<"">>);
22682272
false ->
22692273
encode_payload(Input)
22702274
end,
@@ -2341,6 +2345,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
23412345
<<"localhost">>;
23422346
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
23432347
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
2348+
23442349
build_url(Host, Path0, Client) ->
23452350
Proto = aws_client:proto(Client),
23462351
Path = erlang:iolist_to_binary(Path0),
@@ -2352,3 +2357,4 @@ encode_payload(undefined) ->
23522357
<<>>;
23532358
encode_payload(Input) ->
23542359
jsx:encode(Input).
2360+

src/aws_amplifyuibuilder.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,8 +2403,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
24032403
],
24042404
Payload =
24052405
case proplists:get_value(send_body_as_binary, Options) of
2406-
true ->
2407-
maps:get(<<"Body">>, Input, <<"">>);
2406+
true when is_list(Input) ->
2407+
proplists:get_value(<<"Body">>, Input, <<"">>);
2408+
true when Input =:= undefined ->
2409+
<<"">>;
2410+
true ->
2411+
maps:get(<<"Body">>, Input, <<"">>);
24082412
false ->
24092413
encode_payload(Input)
24102414
end,
@@ -2481,6 +2485,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
24812485
<<"localhost">>;
24822486
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
24832487
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
2488+
24842489
build_url(Host, Path0, Client) ->
24852490
Proto = aws_client:proto(Client),
24862491
Path = erlang:iolist_to_binary(Path0),
@@ -2492,3 +2497,4 @@ encode_payload(undefined) ->
24922497
<<>>;
24932498
encode_payload(Input) ->
24942499
jsx:encode(Input).
2500+

src/aws_api_gateway.erl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7515,8 +7515,12 @@ do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusC
75157515
],
75167516
Payload =
75177517
case proplists:get_value(send_body_as_binary, Options) of
7518-
true ->
7519-
maps:get(<<"Body">>, Input, <<"">>);
7518+
true when is_list(Input) ->
7519+
proplists:get_value(<<"Body">>, Input, <<"">>);
7520+
true when Input =:= undefined ->
7521+
<<"">>;
7522+
true ->
7523+
maps:get(<<"Body">>, Input, <<"">>);
75207524
false ->
75217525
encode_payload(Input)
75227526
end,
@@ -7593,6 +7597,7 @@ build_host(_EndpointPrefix, #{region := <<"local">>}) ->
75937597
<<"localhost">>;
75947598
build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) ->
75957599
aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>).
7600+
75967601
build_url(Host, Path0, Client) ->
75977602
Proto = aws_client:proto(Client),
75987603
Path = erlang:iolist_to_binary(Path0),
@@ -7604,3 +7609,4 @@ encode_payload(undefined) ->
76047609
<<>>;
76057610
encode_payload(Input) ->
76067611
jsx:encode(Input).
7612+

0 commit comments

Comments
 (0)