Skip to content

Commit

Permalink
Update services based on release-2024-11-12 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 13, 2024
1 parent 9c4ffe1 commit 68b47ae
Show file tree
Hide file tree
Showing 5 changed files with 1,479 additions and 457 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-11-11
release-2024-11-12
69 changes: 65 additions & 4 deletions src/aws_controltower.erl
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@
list_tags_for_resource/5,
reset_enabled_baseline/2,
reset_enabled_baseline/3,
reset_enabled_control/2,
reset_enabled_control/3,
reset_landing_zone/2,
reset_landing_zone/3,
tag_resource/3,
Expand Down Expand Up @@ -491,6 +493,13 @@
-type list_enabled_controls_input() :: #{binary() => any()}.


%% Example:
%% reset_enabled_control_input() :: #{
%% <<"enabledControlIdentifier">> := string()
%% }
-type reset_enabled_control_input() :: #{binary() => any()}.


%% Example:
%% list_landing_zones_input() :: #{
%% <<"maxResults">> => integer(),
Expand Down Expand Up @@ -1062,6 +1071,13 @@
-type disable_baseline_output() :: #{binary() => any()}.


%% Example:
%% reset_enabled_control_output() :: #{
%% <<"operationIdentifier">> => string()
%% }
-type reset_enabled_control_output() :: #{binary() => any()}.


%% Example:
%% control_operation_summary() :: #{
%% <<"controlIdentifier">> => string(),
Expand Down Expand Up @@ -1234,6 +1250,15 @@
resource_not_found_exception() |
conflict_exception().

-type reset_enabled_control_errors() ::
throttling_exception() |
validation_exception() |
access_denied_exception() |
internal_server_exception() |
service_quota_exceeded_exception() |
resource_not_found_exception() |
conflict_exception().

-type reset_landing_zone_errors() ::
throttling_exception() |
validation_exception() |
Expand Down Expand Up @@ -2115,6 +2140,40 @@ reset_enabled_baseline(Client, Input0, Options0) ->

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

%% @doc Resets an enabled control.
-spec reset_enabled_control(aws_client:aws_client(), reset_enabled_control_input()) ->
{ok, reset_enabled_control_output(), tuple()} |
{error, any()} |
{error, reset_enabled_control_errors(), tuple()}.
reset_enabled_control(Client, Input) ->
reset_enabled_control(Client, Input, []).

-spec reset_enabled_control(aws_client:aws_client(), reset_enabled_control_input(), proplists:proplist()) ->
{ok, reset_enabled_control_output(), tuple()} |
{error, any()} |
{error, reset_enabled_control_errors(), tuple()}.
reset_enabled_control(Client, Input0, Options0) ->
Method = post,
Path = ["/reset-enabled-control"],
SuccessStatusCode = 200,
{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}
| Options2],

Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

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

%% @doc This API call resets a landing zone.
%%
%% It starts an asynchronous operation that resets the
Expand Down Expand Up @@ -2289,10 +2348,12 @@ update_enabled_baseline(Client, Input0, Options0) ->
%% Web Services Control Tower updates the control to match any valid
%% parameters that you supply.
%%
%% If the `DriftSummary' status for the control shows as DRIFTED, you
%% cannot call this API. Instead, you can update the control by calling
%% `DisableControl' and again calling `EnableControl', or you can run
%% an extending governance operation. For usage examples, see the
%% If the `DriftSummary' status for the control shows as `DRIFTED',
%% you cannot call this API. Instead, you can update the control by calling
%% the `ResetEnabledControl' API. Alternatively, you can call
%% `DisableControl' and then call `EnableControl' again. Also, you
%% can run an extending governance operation to repair drift. For usage
%% examples, see the
%% Controls Reference Guide
%% :
%% https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html.
Expand Down
Loading

0 comments on commit 68b47ae

Please sign in to comment.