Skip to content

Commit

Permalink
Update services based on release-2024-10-24 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 25, 2024
1 parent f28f72c commit 5b417c4
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 7 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-10-23
release-2024-10-24
21 changes: 15 additions & 6 deletions src/aws_appconfig.erl
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,12 @@
%% }
-type applications() :: #{binary() => any()}.


%% Example:
%% stop_deployment_request() :: #{}
-type stop_deployment_request() :: #{}.
%% stop_deployment_request() :: #{
%% <<"AllowRevert">> => boolean()
%% }
-type stop_deployment_request() :: #{binary() => any()}.


%% Example:
Expand Down Expand Up @@ -2810,8 +2813,12 @@ start_deployment(Client, ApplicationId, EnvironmentId, Input0, Options0) ->
%% @doc Stops a deployment.
%%
%% This API action works only on deployments that have a status of
%% `DEPLOYING'. This action moves the deployment to a status of
%% `ROLLED_BACK'.
%% `DEPLOYING', unless an `AllowRevert' parameter is supplied. If the
%% `AllowRevert' parameter is supplied, the status of an in-progress
%% deployment
%% will be `ROLLED_BACK'. The status of a completed deployment will be
%% `REVERTED'. AppConfig only allows a revert within 72 hours of
%% deployment completion.
-spec stop_deployment(aws_client:aws_client(), binary() | list(), binary() | list(), binary() | list(), stop_deployment_request()) ->
{ok, deployment(), tuple()} |
{error, any()} |
Expand All @@ -2834,8 +2841,10 @@ stop_deployment(Client, ApplicationId, DeploymentNumber, EnvironmentId, Input0,
{append_sha256_content_hash, false}
| Options2],

Headers = [],
Input1 = Input0,
HeadersMapping = [
{<<"Allow-Revert">>, <<"AllowRevert">>}
],
{Headers, Input1} = aws_request:build_headers(HeadersMapping, Input0),

CustomHeaders = [],
Input2 = Input1,
Expand Down
95 changes: 95 additions & 0 deletions src/aws_ec2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@
describe_instance_event_notification_attributes/3,
describe_instance_event_windows/2,
describe_instance_event_windows/3,
describe_instance_image_metadata/2,
describe_instance_image_metadata/3,
describe_instance_status/2,
describe_instance_status/3,
describe_instance_topology/2,
Expand Down Expand Up @@ -10858,6 +10860,19 @@
%% }
-type client_vpn_connection_status() :: #{binary() => any()}.

%% Example:
%% image_metadata() :: #{
%% <<"CreationDate">> => string(),
%% <<"DeprecationTime">> => string(),
%% <<"ImageId">> => string(),
%% <<"ImageOwnerAlias">> => string(),
%% <<"IsPublic">> => boolean(),
%% <<"Name">> => string(),
%% <<"OwnerId">> => string(),
%% <<"State">> => list(any())
%% }
-type image_metadata() :: #{binary() => any()}.

%% Example:
%% get_transit_gateway_prefix_list_references_result() :: #{
%% <<"NextToken">> => string(),
Expand Down Expand Up @@ -11836,6 +11851,16 @@
%% }
-type modify_transit_gateway_result() :: #{binary() => any()}.

%% Example:
%% describe_instance_image_metadata_request() :: #{
%% <<"DryRun">> => boolean(),
%% <<"Filters">> => list(filter()()),
%% <<"InstanceIds">> => list(string()()),
%% <<"MaxResults">> => integer(),
%% <<"NextToken">> => string()
%% }
-type describe_instance_image_metadata_request() :: #{binary() => any()}.

%% Example:
%% describe_ipams_result() :: #{
%% <<"Ipams">> => list(ipam()()),
Expand Down Expand Up @@ -16827,6 +16852,20 @@
%% }
-type report_instance_status_request() :: #{binary() => any()}.

%% Example:
%% instance_image_metadata() :: #{
%% <<"AvailabilityZone">> => string(),
%% <<"ImageMetadata">> => image_metadata(),
%% <<"InstanceId">> => string(),
%% <<"InstanceType">> => list(any()),
%% <<"LaunchTime">> => non_neg_integer(),
%% <<"OwnerId">> => string(),
%% <<"State">> => instance_state(),
%% <<"Tags">> => list(tag()()),
%% <<"ZoneId">> => string()
%% }
-type instance_image_metadata() :: #{binary() => any()}.

%% Example:
%% reset_fpga_image_attribute_request() :: #{
%% <<"Attribute">> => list(any()),
Expand Down Expand Up @@ -17247,6 +17286,13 @@
%% }
-type traffic_mirror_session() :: #{binary() => any()}.

%% Example:
%% describe_instance_image_metadata_result() :: #{
%% <<"InstanceImageMetadata">> => list(instance_image_metadata()()),
%% <<"NextToken">> => string()
%% }
-type describe_instance_image_metadata_result() :: #{binary() => any()}.

%% Example:
%% delete_fleets_request() :: #{
%% <<"DryRun">> => boolean(),
Expand Down Expand Up @@ -25244,6 +25290,55 @@ describe_instance_event_windows(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DescribeInstanceEventWindows">>, Input, Options).

%% @doc Describes the AMI that was used to launch an instance, even if the
%% AMI is deprecated,
%% deregistered, or made private (no longer public or shared with your
%% account).
%%
%% If you specify instance IDs, the output includes information for only the
%% specified
%% instances. If you specify filters, the output includes information for
%% only those instances
%% that meet the filter criteria. If you do not specify instance IDs or
%% filters, the output
%% includes information for all instances, which can affect performance.
%%
%% If you specify an instance ID that is not valid, an instance that
%% doesn't exist, or an
%% instance that you do not own, an error (`InvalidInstanceID.NotFound')
%% is
%% returned.
%%
%% Recently terminated instances might appear in the returned results. This
%% interval is
%% usually less than one hour.
%%
%% In the rare case where an Availability Zone is experiencing a service
%% disruption and you
%% specify instance IDs that are in the affected Availability Zone, or do not
%% specify any
%% instance IDs at all, the call fails. If you specify only instance IDs that
%% are in an
%% unaffected Availability Zone, the call works normally.
%%
%% The order of the elements in the response, including those within nested
%% structures,
%% might vary. Applications should not assume the elements appear in a
%% particular order.
-spec describe_instance_image_metadata(aws_client:aws_client(), describe_instance_image_metadata_request()) ->
{ok, describe_instance_image_metadata_result(), tuple()} |
{error, any()}.
describe_instance_image_metadata(Client, Input)
when is_map(Client), is_map(Input) ->
describe_instance_image_metadata(Client, Input, []).

-spec describe_instance_image_metadata(aws_client:aws_client(), describe_instance_image_metadata_request(), proplists:proplist()) ->
{ok, describe_instance_image_metadata_result(), tuple()} |
{error, any()}.
describe_instance_image_metadata(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DescribeInstanceImageMetadata">>, Input, Options).

%% @doc Describes the status of the specified instances or all of your
%% instances.
%%
Expand Down
1 change: 1 addition & 0 deletions src/aws_qbusiness.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@
%% action_review_payload_field() :: #{
%% <<"allowedFormat">> => string(),
%% <<"allowedValues">> => list(action_review_payload_field_allowed_value()()),
%% <<"arrayItemJsonSchema">> => any(),
%% <<"displayDescription">> => string(),
%% <<"displayName">> => string(),
%% <<"displayOrder">> => integer(),
Expand Down

0 comments on commit 5b417c4

Please sign in to comment.