Skip to content

Commit

Permalink
Update services based on release-2025-01-07 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jan 8, 2025
1 parent bf7fb5d commit 5bc1177
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 9 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-2025-01-06
release-2025-01-07
7 changes: 5 additions & 2 deletions src/aws_cloudhsm_v2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
%% <<"ClusterId">> => string(),
%% <<"CreateTimestamp">> => non_neg_integer(),
%% <<"HsmType">> => string(),
%% <<"HsmTypeRollbackExpiration">> => non_neg_integer(),
%% <<"Hsms">> => list(hsm()()),
%% <<"Mode">> => list(any()),
%% <<"NetworkType">> => list(any()),
Expand Down Expand Up @@ -259,8 +260,9 @@

%% Example:
%% modify_cluster_request() :: #{
%% <<"BackupRetentionPolicy">> := backup_retention_policy(),
%% <<"ClusterId">> := string()
%% <<"BackupRetentionPolicy">> => backup_retention_policy(),
%% <<"ClusterId">> := string(),
%% <<"HsmType">> => string()
%% }
-type modify_cluster_request() :: #{binary() => any()}.

Expand Down Expand Up @@ -323,6 +325,7 @@
%% <<"EniIp">> => string(),
%% <<"EniIpV6">> => string(),
%% <<"HsmId">> => string(),
%% <<"HsmType">> => string(),
%% <<"State">> => list(any()),
%% <<"StateMessage">> => string(),
%% <<"SubnetId">> => string()
Expand Down
17 changes: 11 additions & 6 deletions src/aws_dynamodb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@
%% point_in_time_recovery_description() :: #{
%% <<"EarliestRestorableDateTime">> => non_neg_integer(),
%% <<"LatestRestorableDateTime">> => non_neg_integer(),
%% <<"PointInTimeRecoveryStatus">> => list(any())
%% <<"PointInTimeRecoveryStatus">> => list(any()),
%% <<"RecoveryPeriodInDays">> => integer()
%% }
-type point_in_time_recovery_description() :: #{binary() => any()}.

Expand Down Expand Up @@ -1269,7 +1270,8 @@

%% Example:
%% point_in_time_recovery_specification() :: #{
%% <<"PointInTimeRecoveryEnabled">> => boolean()
%% <<"PointInTimeRecoveryEnabled">> => boolean(),
%% <<"RecoveryPeriodInDays">> => integer()
%% }
-type point_in_time_recovery_specification() :: #{binary() => any()}.

Expand Down Expand Up @@ -3227,7 +3229,8 @@ describe_backup(Client, Input, Options)
%%
%% `LatestRestorableDateTime' is typically 5 minutes before the current
%% time.
%% You can restore your table to any point in time during the last 35 days.
%% You can restore your table to any point in time in the last 35 days. You
%% can set the recovery period to any value between 1 and 35 days.
%%
%% You can call `DescribeContinuousBackups' at a maximum rate of 10 times
%% per
Expand Down Expand Up @@ -4205,8 +4208,9 @@ restore_table_from_backup(Client, Input, Options)
%% @doc Restores the specified table to the specified point in time within
%% `EarliestRestorableDateTime' and `LatestRestorableDateTime'.
%%
%% You can restore your table to any point in time during the last 35 days.
%% Any number of
%% You can restore your table to any point in time in the last 35 days. You
%% can set the recovery period to any value between 1 and 35 days. Any number
%% of
%% users can execute up to 50 concurrent restores (any type of restore) in a
%% given account.
%%
Expand Down Expand Up @@ -4581,7 +4585,8 @@ untag_resource(Client, Input, Options)
%%
%% `LatestRestorableDateTime' is typically 5 minutes before the current
%% time.
%% You can restore your table to any point in time during the last 35 days.
%% You can restore your table to any point in time in the last 35 days. You
%% can set the recovery period to any value between 1 and 35 days.
-spec update_continuous_backups(aws_client:aws_client(), update_continuous_backups_input()) ->
{ok, update_continuous_backups_output(), tuple()} |
{error, any()} |
Expand Down
71 changes: 71 additions & 0 deletions src/aws_imagebuilder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
get_workflow_step_execution/5,
import_component/2,
import_component/3,
import_disk_image/2,
import_disk_image/3,
import_vm_image/2,
import_vm_image/3,
list_component_build_versions/2,
Expand Down Expand Up @@ -1271,6 +1273,14 @@
-type invalid_request_exception() :: #{binary() => any()}.


%% Example:
%% import_disk_image_response() :: #{
%% <<"clientToken">> => string(),
%% <<"imageBuildVersionArn">> => string()
%% }
-type import_disk_image_response() :: #{binary() => any()}.


%% Example:
%% create_image_request() :: #{
%% <<"clientToken">> := string(),
Expand Down Expand Up @@ -2518,6 +2528,22 @@
-type workflow_configuration() :: #{binary() => any()}.


%% Example:
%% import_disk_image_request() :: #{
%% <<"clientToken">> := string(),
%% <<"description">> => string(),
%% <<"executionRole">> => string(),
%% <<"infrastructureConfigurationArn">> := string(),
%% <<"name">> := string(),
%% <<"osVersion">> := string(),
%% <<"platform">> := string(),
%% <<"semanticVersion">> := string(),
%% <<"tags">> => map(),
%% <<"uri">> := string()
%% }
-type import_disk_image_request() :: #{binary() => any()}.


%% Example:
%% workflow_state() :: #{
%% <<"reason">> => string(),
Expand Down Expand Up @@ -3138,6 +3164,11 @@
resource_in_use_exception() |
invalid_version_number_exception().

-type import_disk_image_errors() ::
service_unavailable_exception() |
service_exception() |
client_exception().

-type import_vm_image_errors() ::
service_unavailable_exception() |
service_exception() |
Expand Down Expand Up @@ -4955,6 +4986,46 @@ import_component(Client, Input0, Options0) ->

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

%% @doc Import a Windows operating system image from a verified Microsoft ISO
%% disk
%% file.
%%
%% The following disk images are supported:
%%
%% Windows 11 Enterprise
-spec import_disk_image(aws_client:aws_client(), import_disk_image_request()) ->
{ok, import_disk_image_response(), tuple()} |
{error, any()} |
{error, import_disk_image_errors(), tuple()}.
import_disk_image(Client, Input) ->
import_disk_image(Client, Input, []).

-spec import_disk_image(aws_client:aws_client(), import_disk_image_request(), proplists:proplist()) ->
{ok, import_disk_image_response(), tuple()} |
{error, any()} |
{error, import_disk_image_errors(), tuple()}.
import_disk_image(Client, Input0, Options0) ->
Method = put,
Path = ["/ImportDiskImage"],
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 When you export your virtual machine (VM) from its virtualization
%% environment, that
%% process creates a set of one or more disk container files that act as
Expand Down

0 comments on commit 5bc1177

Please sign in to comment.