Skip to content

Commit

Permalink
Update services based on release-2024-03-08 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Mar 9, 2024
1 parent aca95ea commit c38d684
Show file tree
Hide file tree
Showing 379 changed files with 117,351 additions and 75,958 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.35
release-2024-03-08
398 changes: 246 additions & 152 deletions src/aws_accessanalyzer.erl

Large diffs are not rendered by default.

119 changes: 74 additions & 45 deletions src/aws_account.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@
%% account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts:
%% see Access or
%% updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Before you can update the alternate contact information for an
%% Amazon Web Services account that is managed by Organizations, you must
%% first enable integration between Amazon Web Services Account Management
%% and Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
delete_alternate_contact(Client, Input) ->
Expand All @@ -48,10 +49,12 @@ delete_alternate_contact(Client, Input0, Options0) ->
Method = post,
Path = ["/deleteAlternateContact"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -71,10 +74,12 @@ disable_region(Client, Input0, Options0) ->
Method = post,
Path = ["/disableRegion"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -94,10 +99,12 @@ enable_region(Client, Input0, Options0) ->
Method = post,
Path = ["/enableRegion"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -114,13 +121,14 @@ enable_region(Client, Input0, Options0) ->
%% Services account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts:
%% see Access or
%% updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Before you can update the alternate contact information for an
%% Amazon Web Services account that is managed by Organizations, you must
%% first enable integration between Amazon Web Services Account Management
%% and Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
get_alternate_contact(Client, Input) ->
Expand All @@ -129,10 +137,12 @@ get_alternate_contact(Client, Input0, Options0) ->
Method = post,
Path = ["/getAlternateContact"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -149,18 +159,21 @@ get_alternate_contact(Client, Input0, Options0) ->
%% account.
%%
%% For complete details about how to use the primary contact operations, see
%% Update the primary and alternate contact information:
%% Update
%% the primary and alternate contact information:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
get_contact_information(Client, Input) ->
get_contact_information(Client, Input, []).
get_contact_information(Client, Input0, Options0) ->
Method = post,
Path = ["/getContactInformation"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -180,10 +193,12 @@ get_region_opt_status(Client, Input0, Options0) ->
Method = post,
Path = ["/getRegionOptStatus"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -200,17 +215,20 @@ get_region_opt_status(Client, Input0, Options0) ->
%% statuses.
%%
%% Optionally, this list can be filtered by the
%% `region-opt-status-contains' parameter.
%% `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},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -227,13 +245,14 @@ list_regions(Client, Input0, Options0) ->
%% Services account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts:
%% see Access or
%% updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Before you can update the alternate contact information for an
%% Amazon Web Services account that is managed by Organizations, you must
%% first enable integration between Amazon Web Services Account Management
%% and Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
put_alternate_contact(Client, Input) ->
Expand All @@ -242,10 +261,12 @@ put_alternate_contact(Client, Input0, Options0) ->
Method = post,
Path = ["/putAlternateContact"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -262,18 +283,21 @@ put_alternate_contact(Client, Input0, Options0) ->
%% account.
%%
%% For complete details about how to use the primary contact operations, see
%% Update the primary and alternate contact information:
%% Update
%% the primary and alternate contact information:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
put_contact_information(Client, Input) ->
put_contact_information(Client, Input, []).
put_contact_information(Client, Input0, Options0) ->
Method = post,
Path = ["/putContactInformation"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary},
{append_sha256_content_hash, false}
| Options0],
| Options2],

Headers = [],
Input1 = Input0,
Expand All @@ -290,6 +314,11 @@ put_contact_information(Client, Input0, Options0) ->
%% Internal functions
%%====================================================================

-spec proplists_take(any(), proplists:proplists(), any()) -> {any(), proplists:proplists()}.
proplists_take(Key, Proplist, Default) ->
Value = proplists:get_value(Key, Proplist, Default),
{Value, proplists:delete(Key, Proplist)}.

-spec request(aws_client:aws_client(), atom(), iolist(), list(),
list(), map() | undefined, list(), pos_integer() | undefined) ->
{ok, {integer(), list()}} |
Expand Down
Loading

0 comments on commit c38d684

Please sign in to comment.