Skip to content

Commit

Permalink
Update services based on release-2024-11-25 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 26, 2024
1 parent c43ab32 commit 2d2b2ff
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 2 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-22
release-2024-11-25
9 changes: 9 additions & 0 deletions src/aws_direct_connect.erl
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@
%% }
-type create_direct_connect_gateway_result() :: #{binary() => any()}.

%% Example:
%% associated_core_network() :: #{
%% <<"attachmentId">> => string(),
%% <<"id">> => string(),
%% <<"ownerAccount">> => string()
%% }
-type associated_core_network() :: #{binary() => any()}.

%% Example:
%% create_interconnect_request() :: #{
%% <<"bandwidth">> := string(),
Expand Down Expand Up @@ -439,6 +447,7 @@
%% Example:
%% direct_connect_gateway_association() :: #{
%% <<"allowedPrefixesToDirectConnectGateway">> => list(route_filter_prefix()()),
%% <<"associatedCoreNetwork">> => associated_core_network(),
%% <<"associatedGateway">> => associated_gateway(),
%% <<"associationId">> => string(),
%% <<"associationState">> => list(any()),
Expand Down
189 changes: 189 additions & 0 deletions src/aws_networkmanager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
create_core_network/3,
create_device/3,
create_device/4,
create_direct_connect_gateway_attachment/2,
create_direct_connect_gateway_attachment/3,
create_global_network/2,
create_global_network/3,
create_link/3,
Expand Down Expand Up @@ -107,6 +109,9 @@
get_devices/2,
get_devices/4,
get_devices/5,
get_direct_connect_gateway_attachment/2,
get_direct_connect_gateway_attachment/4,
get_direct_connect_gateway_attachment/5,
get_link_associations/2,
get_link_associations/4,
get_link_associations/5,
Expand Down Expand Up @@ -199,6 +204,8 @@
update_core_network/4,
update_device/4,
update_device/5,
update_direct_connect_gateway_attachment/3,
update_direct_connect_gateway_attachment/4,
update_global_network/3,
update_global_network/4,
update_link/4,
Expand Down Expand Up @@ -689,6 +696,7 @@
%% <<"CoreNetworkId">> => string(),
%% <<"CreatedAt">> => non_neg_integer(),
%% <<"EdgeLocation">> => string(),
%% <<"EdgeLocations">> => list(string()()),
%% <<"LastModificationErrors">> => list(attachment_error()()),
%% <<"NetworkFunctionGroupName">> => string(),
%% <<"OwnerAccountId">> => string(),
Expand All @@ -709,6 +717,10 @@
%% }
-type delete_site_response() :: #{binary() => any()}.

%% Example:
%% get_direct_connect_gateway_attachment_request() :: #{}
-type get_direct_connect_gateway_attachment_request() :: #{}.


%% Example:
%% core_network_network_function_group_identifier() :: #{
Expand Down Expand Up @@ -898,13 +910,31 @@
-type create_site_request() :: #{binary() => any()}.


%% Example:
%% get_direct_connect_gateway_attachment_response() :: #{
%% <<"DirectConnectGatewayAttachment">> => direct_connect_gateway_attachment()
%% }
-type get_direct_connect_gateway_attachment_response() :: #{binary() => any()}.


%% Example:
%% start_route_analysis_response() :: #{
%% <<"RouteAnalysis">> => route_analysis()
%% }
-type start_route_analysis_response() :: #{binary() => any()}.


%% Example:
%% create_direct_connect_gateway_attachment_request() :: #{
%% <<"ClientToken">> => string(),
%% <<"CoreNetworkId">> := string(),
%% <<"DirectConnectGatewayArn">> := string(),
%% <<"EdgeLocations">> := list(string()()),
%% <<"Tags">> => list(tag()())
%% }
-type create_direct_connect_gateway_attachment_request() :: #{binary() => any()}.


%% Example:
%% start_organization_service_access_update_response() :: #{
%% <<"OrganizationStatus">> => organization_status()
Expand Down Expand Up @@ -1451,6 +1481,13 @@
-type deregister_transit_gateway_request() :: #{}.


%% Example:
%% update_direct_connect_gateway_attachment_response() :: #{
%% <<"DirectConnectGatewayAttachment">> => direct_connect_gateway_attachment()
%% }
-type update_direct_connect_gateway_attachment_response() :: #{binary() => any()}.


%% Example:
%% validation_exception_field() :: #{
%% <<"Message">> => string(),
Expand Down Expand Up @@ -1574,6 +1611,13 @@
-type internal_server_exception() :: #{binary() => any()}.


%% Example:
%% create_direct_connect_gateway_attachment_response() :: #{
%% <<"DirectConnectGatewayAttachment">> => direct_connect_gateway_attachment()
%% }
-type create_direct_connect_gateway_attachment_response() :: #{binary() => any()}.


%% Example:
%% create_vpc_attachment_request() :: #{
%% <<"ClientToken">> => string(),
Expand Down Expand Up @@ -1674,6 +1718,13 @@
-type disassociate_customer_gateway_response() :: #{binary() => any()}.


%% Example:
%% update_direct_connect_gateway_attachment_request() :: #{
%% <<"EdgeLocations">> => list(string()())
%% }
-type update_direct_connect_gateway_attachment_request() :: #{binary() => any()}.


%% Example:
%% delete_peering_response() :: #{
%% <<"Peering">> => peering()
Expand All @@ -1695,6 +1746,14 @@
-type put_resource_policy_request() :: #{binary() => any()}.


%% Example:
%% direct_connect_gateway_attachment() :: #{
%% <<"Attachment">> => attachment(),
%% <<"DirectConnectGatewayArn">> => string()
%% }
-type direct_connect_gateway_attachment() :: #{binary() => any()}.


%% Example:
%% get_transit_gateway_peering_response() :: #{
%% <<"TransitGatewayPeering">> => transit_gateway_peering()
Expand Down Expand Up @@ -2421,6 +2480,14 @@
resource_not_found_exception() |
conflict_exception().

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

-type create_global_network_errors() ::
throttling_exception() |
validation_exception() |
Expand Down Expand Up @@ -2693,6 +2760,13 @@
internal_server_exception() |
resource_not_found_exception().

-type get_direct_connect_gateway_attachment_errors() ::
throttling_exception() |
validation_exception() |
access_denied_exception() |
internal_server_exception() |
resource_not_found_exception().

-type get_link_associations_errors() ::
throttling_exception() |
validation_exception() |
Expand Down Expand Up @@ -2940,6 +3014,14 @@
resource_not_found_exception() |
conflict_exception().

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

-type update_global_network_errors() ::
throttling_exception() |
validation_exception() |
Expand Down Expand Up @@ -3392,6 +3474,40 @@ create_device(Client, GlobalNetworkId, Input0, Options0) ->

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

%% @doc Creates an Amazon Web Services Direct Connect gateway attachment
-spec create_direct_connect_gateway_attachment(aws_client:aws_client(), create_direct_connect_gateway_attachment_request()) ->
{ok, create_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, create_direct_connect_gateway_attachment_errors(), tuple()}.
create_direct_connect_gateway_attachment(Client, Input) ->
create_direct_connect_gateway_attachment(Client, Input, []).

-spec create_direct_connect_gateway_attachment(aws_client:aws_client(), create_direct_connect_gateway_attachment_request(), proplists:proplist()) ->
{ok, create_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, create_direct_connect_gateway_attachment_errors(), tuple()}.
create_direct_connect_gateway_attachment(Client, Input0, Options0) ->
Method = post,
Path = ["/direct-connect-gateway-attachments"],
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 Creates a new, empty global network.
-spec create_global_network(aws_client:aws_client(), create_global_network_request()) ->
{ok, create_global_network_response(), tuple()} |
Expand Down Expand Up @@ -4710,6 +4826,44 @@ get_devices(Client, GlobalNetworkId, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Returns information about a specific Amazon Web Services Direct
%% Connect gateway attachment.
-spec get_direct_connect_gateway_attachment(aws_client:aws_client(), binary() | list()) ->
{ok, get_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, get_direct_connect_gateway_attachment_errors(), tuple()}.
get_direct_connect_gateway_attachment(Client, AttachmentId)
when is_map(Client) ->
get_direct_connect_gateway_attachment(Client, AttachmentId, #{}, #{}).

-spec get_direct_connect_gateway_attachment(aws_client:aws_client(), binary() | list(), map(), map()) ->
{ok, get_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, get_direct_connect_gateway_attachment_errors(), tuple()}.
get_direct_connect_gateway_attachment(Client, AttachmentId, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
get_direct_connect_gateway_attachment(Client, AttachmentId, QueryMap, HeadersMap, []).

-spec get_direct_connect_gateway_attachment(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) ->
{ok, get_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, get_direct_connect_gateway_attachment_errors(), tuple()}.
get_direct_connect_gateway_attachment(Client, AttachmentId, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/direct-connect-gateway-attachments/", aws_util:encode_uri(AttachmentId), ""],
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}
| Options2],

Headers = [],

Query_ = [],

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Gets the link associations for a device or a link.
%%
%% Either the device ID or the link ID
Expand Down Expand Up @@ -6125,6 +6279,41 @@ update_device(Client, DeviceId, GlobalNetworkId, Input0, Options0) ->

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

%% @doc Updates the edge locations associated with an Amazon Web Services
%% Direct Connect gateway attachment.
-spec update_direct_connect_gateway_attachment(aws_client:aws_client(), binary() | list(), update_direct_connect_gateway_attachment_request()) ->
{ok, update_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, update_direct_connect_gateway_attachment_errors(), tuple()}.
update_direct_connect_gateway_attachment(Client, AttachmentId, Input) ->
update_direct_connect_gateway_attachment(Client, AttachmentId, Input, []).

-spec update_direct_connect_gateway_attachment(aws_client:aws_client(), binary() | list(), update_direct_connect_gateway_attachment_request(), proplists:proplist()) ->
{ok, update_direct_connect_gateway_attachment_response(), tuple()} |
{error, any()} |
{error, update_direct_connect_gateway_attachment_errors(), tuple()}.
update_direct_connect_gateway_attachment(Client, AttachmentId, Input0, Options0) ->
Method = patch,
Path = ["/direct-connect-gateway-attachments/", aws_util:encode_uri(AttachmentId), ""],
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 Updates an existing global network.
%%
%% To remove information for any of the parameters,
Expand Down
10 changes: 9 additions & 1 deletion src/aws_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,7 @@
%% <<"GrantWriteACP">> => string(),
%% <<"Expires">> => non_neg_integer(),
%% <<"ContentLanguage">> => string(),
%% <<"IfMatch">> => string(),
%% <<"ContentEncoding">> => string(),
%% <<"ContentDisposition">> => string(),
%% <<"ChecksumSHA256">> => string(),
Expand Down Expand Up @@ -3052,6 +3053,7 @@
%% <<"ChecksumSHA1">> => string(),
%% <<"ChecksumSHA256">> => string(),
%% <<"ExpectedBucketOwner">> => string(),
%% <<"IfMatch">> => string(),
%% <<"IfNoneMatch">> => string(),
%% <<"MultipartUpload">> => completed_multipart_upload(),
%% <<"RequestPayer">> => list(any()),
Expand Down Expand Up @@ -3617,6 +3619,7 @@ complete_multipart_upload(Client, Bucket, Key, Input0, Options0) ->
{<<"x-amz-checksum-sha1">>, <<"ChecksumSHA1">>},
{<<"x-amz-checksum-sha256">>, <<"ChecksumSHA256">>},
{<<"x-amz-expected-bucket-owner">>, <<"ExpectedBucketOwner">>},
{<<"If-Match">>, <<"IfMatch">>},
{<<"If-None-Match">>, <<"IfNoneMatch">>},
{<<"x-amz-request-payer">>, <<"RequestPayer">>},
{<<"x-amz-server-side-encryption-customer-algorithm">>, <<"SSECustomerAlgorithm">>},
Expand Down Expand Up @@ -12445,7 +12448,11 @@ put_bucket_tagging(Client, Bucket, Input0, Options0) ->
%%
%% When you enable versioning on a bucket for the first time, it might take a
%% short
%% amount of time for the change to be fully propagated. We recommend that
%% amount of time for the change to be fully propagated. While this change is
%% propagating,
%% you may encounter intermittent `HTTP 404 NoSuchKey' errors for
%% requests to
%% objects created or updated after enabling versioning. We recommend that
%% you wait for 15
%% minutes after enabling versioning before issuing write operations
%% (`PUT' or
Expand Down Expand Up @@ -12831,6 +12838,7 @@ put_object(Client, Bucket, Key, Input0, Options0) ->
{<<"x-amz-server-side-encryption-customer-algorithm">>, <<"SSECustomerAlgorithm">>},
{<<"Content-Encoding">>, <<"ContentEncoding">>},
{<<"x-amz-checksum-sha256">>, <<"ChecksumSHA256">>},
{<<"If-Match">>, <<"IfMatch">>},
{<<"x-amz-write-offset-bytes">>, <<"WriteOffsetBytes">>},
{<<"Expires">>, <<"Expires">>},
{<<"Content-MD5">>, <<"ContentMD5">>},
Expand Down

0 comments on commit 2d2b2ff

Please sign in to comment.