From 5b417c48a098929b8cccd4ac2437bf2bf5ca820d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 25 Oct 2024 02:02:46 +0000 Subject: [PATCH] Update services based on release-2024-10-24 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-10-24 --- .latest-tag-aws-sdk-go | 2 +- src/aws_appconfig.erl | 21 +++++++--- src/aws_ec2.erl | 95 ++++++++++++++++++++++++++++++++++++++++++ src/aws_qbusiness.erl | 1 + 4 files changed, 112 insertions(+), 7 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index df9afe53..8338677a 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-10-23 +release-2024-10-24 diff --git a/src/aws_appconfig.erl b/src/aws_appconfig.erl index 5b6e4eb9..10338323 100644 --- a/src/aws_appconfig.erl +++ b/src/aws_appconfig.erl @@ -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: @@ -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()} | @@ -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, diff --git a/src/aws_ec2.erl b/src/aws_ec2.erl index edfb3b81..0749314a 100644 --- a/src/aws_ec2.erl +++ b/src/aws_ec2.erl @@ -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, @@ -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(), @@ -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()()), @@ -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()), @@ -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(), @@ -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. %% diff --git a/src/aws_qbusiness.erl b/src/aws_qbusiness.erl index 52c31242..8d510a77 100644 --- a/src/aws_qbusiness.erl +++ b/src/aws_qbusiness.erl @@ -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(),