Skip to content

Commit e538312

Browse files
committed
Update services based on release-2026-04-03 of AWS Go SDK
Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2026-04-03
1 parent 20529d9 commit e538312

File tree

8 files changed

+211
-7
lines changed

8 files changed

+211
-7
lines changed

.latest-tag-aws-sdk-go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
release-2026-04-02
1+
release-2026-04-03

src/aws_bedrock.erl

Lines changed: 178 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
delete_prompt_router/4,
7272
delete_provisioned_model_throughput/3,
7373
delete_provisioned_model_throughput/4,
74+
delete_resource_policy/3,
75+
delete_resource_policy/4,
7476
deregister_marketplace_model_endpoint/3,
7577
deregister_marketplace_model_endpoint/4,
7678
export_automated_reasoning_policy_version/2,
@@ -145,6 +147,9 @@
145147
get_provisioned_model_throughput/2,
146148
get_provisioned_model_throughput/4,
147149
get_provisioned_model_throughput/5,
150+
get_resource_policy/2,
151+
get_resource_policy/4,
152+
get_resource_policy/5,
148153
get_use_case_for_model_access/1,
149154
get_use_case_for_model_access/3,
150155
get_use_case_for_model_access/4,
@@ -214,6 +219,8 @@
214219
put_enforced_guardrail_configuration/3,
215220
put_model_invocation_logging_configuration/2,
216221
put_model_invocation_logging_configuration/3,
222+
put_resource_policy/2,
223+
put_resource_policy/3,
217224
put_use_case_for_model_access/2,
218225
put_use_case_for_model_access/3,
219226
register_marketplace_model_endpoint/3,
@@ -452,6 +459,10 @@
452459
%% }
453460
-type create_model_invocation_job_response() :: #{binary() => any()}.
454461

462+
%% Example:
463+
%% delete_resource_policy_response() :: #{}
464+
-type delete_resource_policy_response() :: #{}.
465+
455466

456467
%% Example:
457468
%% list_inference_profiles_request() :: #{
@@ -1058,6 +1069,13 @@
10581069
%% }
10591070
-type automated_evaluation_custom_metric_config() :: #{binary() => any()}.
10601071

1072+
1073+
%% Example:
1074+
%% get_resource_policy_response() :: #{
1075+
%% <<"resourcePolicy">> => string()
1076+
%% }
1077+
-type get_resource_policy_response() :: #{binary() => any()}.
1078+
10611079
%% Example:
10621080
%% get_custom_model_deployment_request() :: #{}
10631081
-type get_custom_model_deployment_request() :: #{}.
@@ -1145,6 +1163,7 @@
11451163
%% <<"inputTags">> => list(any()),
11461164
%% <<"modelEnforcement">> => model_enforcement(),
11471165
%% <<"owner">> => string(),
1166+
%% <<"selectiveContentGuarding">> => selective_content_guarding(),
11481167
%% <<"updatedAt">> => non_neg_integer(),
11491168
%% <<"updatedBy">> => [string()]
11501169
%% }
@@ -2469,6 +2488,10 @@
24692488
%% }
24702489
-type delete_automated_reasoning_policy_request() :: #{binary() => any()}.
24712490

2491+
%% Example:
2492+
%% get_resource_policy_request() :: #{}
2493+
-type get_resource_policy_request() :: #{}.
2494+
24722495

24732496
%% Example:
24742497
%% filter_attribute() :: #{
@@ -2757,6 +2780,14 @@
27572780
-type update_custom_model_deployment_response() :: #{binary() => any()}.
27582781

27592782

2783+
%% Example:
2784+
%% put_resource_policy_request() :: #{
2785+
%% <<"resourceArn">> := string(),
2786+
%% <<"resourcePolicy">> := string()
2787+
%% }
2788+
-type put_resource_policy_request() :: #{binary() => any()}.
2789+
2790+
27602791
%% Example:
27612792
%% custom_metric_evaluator_model_config() :: #{
27622793
%% <<"bedrockEvaluatorModels">> => list(custom_metric_bedrock_evaluator_model())
@@ -3325,6 +3356,14 @@
33253356
-type automated_reasoning_check_too_complex_finding() :: #{}.
33263357

33273358

3359+
%% Example:
3360+
%% selective_content_guarding() :: #{
3361+
%% <<"messages">> => list(any()),
3362+
%% <<"system">> => list(any())
3363+
%% }
3364+
-type selective_content_guarding() :: #{binary() => any()}.
3365+
3366+
33283367
%% Example:
33293368
%% list_prompt_routers_response() :: #{
33303369
%% <<"nextToken">> => string(),
@@ -3365,6 +3404,13 @@
33653404
-type guardrail_topic_policy() :: #{binary() => any()}.
33663405

33673406

3407+
%% Example:
3408+
%% put_resource_policy_response() :: #{
3409+
%% <<"resourceArn">> => string()
3410+
%% }
3411+
-type put_resource_policy_response() :: #{binary() => any()}.
3412+
3413+
33683414
%% Example:
33693415
%% output_data_config() :: #{
33703416
%% <<"s3Uri">> => string()
@@ -3510,6 +3556,10 @@
35103556
%% }
35113557
-type automated_reasoning_policy_add_rule_from_natural_language_annotation() :: #{binary() => any()}.
35123558

3559+
%% Example:
3560+
%% delete_resource_policy_request() :: #{}
3561+
-type delete_resource_policy_request() :: #{}.
3562+
35133563

35143564
%% Example:
35153565
%% automated_reasoning_policy_delete_rule_mutation() :: #{
@@ -3780,8 +3830,8 @@
37803830
%% account_enforced_guardrail_inference_input_configuration() :: #{
37813831
%% <<"guardrailIdentifier">> => string(),
37823832
%% <<"guardrailVersion">> => string(),
3783-
%% <<"inputTags">> => list(any()),
3784-
%% <<"modelEnforcement">> => model_enforcement()
3833+
%% <<"modelEnforcement">> => model_enforcement(),
3834+
%% <<"selectiveContentGuarding">> => selective_content_guarding()
37853835
%% }
37863836
-type account_enforced_guardrail_inference_input_configuration() :: #{binary() => any()}.
37873837

@@ -4202,6 +4252,13 @@
42024252
resource_not_found_exception() |
42034253
conflict_exception().
42044254

4255+
-type delete_resource_policy_errors() ::
4256+
throttling_exception() |
4257+
validation_exception() |
4258+
access_denied_exception() |
4259+
internal_server_exception() |
4260+
resource_not_found_exception().
4261+
42054262
-type deregister_marketplace_model_endpoint_errors() ::
42064263
throttling_exception() |
42074264
validation_exception() |
@@ -4376,6 +4433,13 @@
43764433
internal_server_exception() |
43774434
resource_not_found_exception().
43784435

4436+
-type get_resource_policy_errors() ::
4437+
throttling_exception() |
4438+
validation_exception() |
4439+
access_denied_exception() |
4440+
internal_server_exception() |
4441+
resource_not_found_exception().
4442+
43794443
-type get_use_case_for_model_access_errors() ::
43804444
throttling_exception() |
43814445
validation_exception() |
@@ -4533,6 +4597,13 @@
45334597
access_denied_exception() |
45344598
internal_server_exception().
45354599

4600+
-type put_resource_policy_errors() ::
4601+
throttling_exception() |
4602+
validation_exception() |
4603+
access_denied_exception() |
4604+
internal_server_exception() |
4605+
conflict_exception().
4606+
45364607
-type put_use_case_for_model_access_errors() ::
45374608
throttling_exception() |
45384609
validation_exception() |
@@ -6012,6 +6083,40 @@ delete_provisioned_model_throughput(Client, ProvisionedModelId, Input0, Options0
60126083

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

6086+
%% @doc Deletes a previously created Bedrock resource policy.
6087+
-spec delete_resource_policy(aws_client:aws_client(), binary() | list(), delete_resource_policy_request()) ->
6088+
{ok, delete_resource_policy_response(), tuple()} |
6089+
{error, any()} |
6090+
{error, delete_resource_policy_errors(), tuple()}.
6091+
delete_resource_policy(Client, ResourceArn, Input) ->
6092+
delete_resource_policy(Client, ResourceArn, Input, []).
6093+
6094+
-spec delete_resource_policy(aws_client:aws_client(), binary() | list(), delete_resource_policy_request(), proplists:proplist()) ->
6095+
{ok, delete_resource_policy_response(), tuple()} |
6096+
{error, any()} |
6097+
{error, delete_resource_policy_errors(), tuple()}.
6098+
delete_resource_policy(Client, ResourceArn, Input0, Options0) ->
6099+
Method = delete,
6100+
Path = ["/resource-policy/", aws_util:encode_uri(ResourceArn), ""],
6101+
SuccessStatusCode = 200,
6102+
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
6103+
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
6104+
Options = [{send_body_as_binary, SendBodyAsBinary},
6105+
{receive_body_as_binary, ReceiveBodyAsBinary},
6106+
{append_sha256_content_hash, false}
6107+
| Options2],
6108+
6109+
Headers = [],
6110+
Input1 = Input0,
6111+
6112+
CustomHeaders = [],
6113+
Input2 = Input1,
6114+
6115+
Query_ = [],
6116+
Input = Input2,
6117+
6118+
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).
6119+
60156120
%% @doc Deregisters an endpoint for a model from Amazon Bedrock Marketplace.
60166121
%%
60176122
%% This operation removes the endpoint's association with Amazon Bedrock
@@ -7025,6 +7130,43 @@ get_provisioned_model_throughput(Client, ProvisionedModelId, QueryMap, HeadersMa
70257130

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

7133+
%% @doc Gets the resource policy document for a Bedrock resource
7134+
-spec get_resource_policy(aws_client:aws_client(), binary() | list()) ->
7135+
{ok, get_resource_policy_response(), tuple()} |
7136+
{error, any()} |
7137+
{error, get_resource_policy_errors(), tuple()}.
7138+
get_resource_policy(Client, ResourceArn)
7139+
when is_map(Client) ->
7140+
get_resource_policy(Client, ResourceArn, #{}, #{}).
7141+
7142+
-spec get_resource_policy(aws_client:aws_client(), binary() | list(), map(), map()) ->
7143+
{ok, get_resource_policy_response(), tuple()} |
7144+
{error, any()} |
7145+
{error, get_resource_policy_errors(), tuple()}.
7146+
get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap)
7147+
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
7148+
get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap, []).
7149+
7150+
-spec get_resource_policy(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) ->
7151+
{ok, get_resource_policy_response(), tuple()} |
7152+
{error, any()} |
7153+
{error, get_resource_policy_errors(), tuple()}.
7154+
get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap, Options0)
7155+
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
7156+
Path = ["/resource-policy/", aws_util:encode_uri(ResourceArn), ""],
7157+
SuccessStatusCode = 200,
7158+
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
7159+
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
7160+
Options = [{send_body_as_binary, SendBodyAsBinary},
7161+
{receive_body_as_binary, ReceiveBodyAsBinary}
7162+
| Options2],
7163+
7164+
Headers = [],
7165+
7166+
Query_ = [],
7167+
7168+
request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).
7169+
70287170
%% @doc Get usecase for model access.
70297171
-spec get_use_case_for_model_access(aws_client:aws_client()) ->
70307172
{ok, get_use_case_for_model_access_response(), tuple()} |
@@ -8162,6 +8304,40 @@ put_model_invocation_logging_configuration(Client, Input0, Options0) ->
81628304

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

8307+
%% @doc Adds a resource policy for a Bedrock resource.
8308+
-spec put_resource_policy(aws_client:aws_client(), put_resource_policy_request()) ->
8309+
{ok, put_resource_policy_response(), tuple()} |
8310+
{error, any()} |
8311+
{error, put_resource_policy_errors(), tuple()}.
8312+
put_resource_policy(Client, Input) ->
8313+
put_resource_policy(Client, Input, []).
8314+
8315+
-spec put_resource_policy(aws_client:aws_client(), put_resource_policy_request(), proplists:proplist()) ->
8316+
{ok, put_resource_policy_response(), tuple()} |
8317+
{error, any()} |
8318+
{error, put_resource_policy_errors(), tuple()}.
8319+
put_resource_policy(Client, Input0, Options0) ->
8320+
Method = post,
8321+
Path = ["/resource-policy"],
8322+
SuccessStatusCode = 201,
8323+
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
8324+
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
8325+
Options = [{send_body_as_binary, SendBodyAsBinary},
8326+
{receive_body_as_binary, ReceiveBodyAsBinary},
8327+
{append_sha256_content_hash, false}
8328+
| Options2],
8329+
8330+
Headers = [],
8331+
Input1 = Input0,
8332+
8333+
CustomHeaders = [],
8334+
Input2 = Input1,
8335+
8336+
Query_ = [],
8337+
Input = Input2,
8338+
8339+
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).
8340+
81658341
%% @doc Put usecase for model access.
81668342
-spec put_use_case_for_model_access(aws_client:aws_client(), put_use_case_for_model_access_request()) ->
81678343
{ok, put_use_case_for_model_access_response(), tuple()} |

src/aws_bedrock_agent.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,8 @@
17661766
%% tool_specification() :: #{
17671767
%% <<"description">> => string(),
17681768
%% <<"inputSchema">> => list(),
1769-
%% <<"name">> => string()
1769+
%% <<"name">> => string(),
1770+
%% <<"strict">> => [boolean()]
17701771
%% }
17711772
-type tool_specification() :: #{binary() => any()}.
17721773

src/aws_cloudwatch_logs.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,12 +2788,15 @@
27882788

27892789
%% Example:
27902790
%% query_info() :: #{
2791+
%% <<"bytesScanned">> => float(),
27912792
%% <<"createTime">> => float(),
27922793
%% <<"logGroupName">> => string(),
2794+
%% <<"queryDuration">> => float(),
27932795
%% <<"queryId">> => string(),
27942796
%% <<"queryLanguage">> => list(any()),
27952797
%% <<"queryString">> => string(),
2796-
%% <<"status">> => list(any())
2798+
%% <<"status">> => list(any()),
2799+
%% <<"userIdentity">> => string()
27972800
%% }
27982801
-type query_info() :: #{binary() => any()}.
27992802

src/aws_lightsail.erl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@
654654
%% <<"monitoredResourceName">> := string(),
655655
%% <<"notificationEnabled">> => boolean(),
656656
%% <<"notificationTriggers">> => list(list(any())()),
657+
%% <<"tags">> => list(tag()),
657658
%% <<"threshold">> := float(),
658659
%% <<"treatMissingData">> => list(any())
659660
%% }
@@ -1014,6 +1015,7 @@
10141015
%% <<"state">> => list(any()),
10151016
%% <<"statistic">> => list(any()),
10161017
%% <<"supportCode">> => string(),
1018+
%% <<"tags">> => list(tag()),
10171019
%% <<"threshold">> => float(),
10181020
%% <<"treatMissingData">> => list(any()),
10191021
%% <<"unit">> => list(any())
@@ -5863,6 +5865,11 @@ create_cloud_formation_stack(Client, Input, Options)
58635865
%% For more information,
58645866
%% see Notifications in Amazon Lightsail:
58655867
%% https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-notifications.
5868+
%%
5869+
%% The `create contact method' operation supports tag-based access
5870+
%% control via request
5871+
%% tags. For more information, see the Lightsail Developer Guide:
5872+
%% https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-controlling-access-using-tags.
58665873
-spec create_contact_method(aws_client:aws_client(), create_contact_method_request()) ->
58675874
{ok, create_contact_method_result(), tuple()} |
58685875
{error, any()} |
@@ -8684,6 +8691,11 @@ peer_vpc(Client, Input, Options)
86848691
%% overwrites the previous configuration of the alarm. The alarm is then
86858692
%% evaluated with the
86868693
%% updated configuration.
8694+
%%
8695+
%% The `put alarm' operation supports tag-based access control via
8696+
%% request
8697+
%% tags. For more information, see the Lightsail Developer Guide:
8698+
%% https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-controlling-access-using-tags.
86878699
-spec put_alarm(aws_client:aws_client(), put_alarm_request()) ->
86888700
{ok, put_alarm_result(), tuple()} |
86898701
{error, any()} |

src/aws_medialive.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,7 @@
15841584
%% av1_color_space_settings() :: #{
15851585
%% <<"ColorSpacePassthroughSettings">> => color_space_passthrough_settings(),
15861586
%% <<"Hdr10Settings">> => hdr10_settings(),
1587+
%% <<"Hlg2020Settings">> => hlg2020_settings(),
15871588
%% <<"Rec601Settings">> => rec601_settings(),
15881589
%% <<"Rec709Settings">> => rec709_settings()
15891590
%% }

src/aws_organizations.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,9 @@ cancel_handshake(Client, Input, Options)
23102310
%% You might still receive a bill after account closure:
23112311
%% https://repost.aws/knowledge-center/closed-account-bill.
23122312
%%
2313-
%% You can close only 10% of member accounts, between 10 and 1000, within a
2314-
%% rolling 30 day period. This quota is not bound by a calendar month, but
2313+
%% Within a rolling 30 day period you can close the higher of either 250 or
2314+
%% 20% of the member accounts in your organization,
2315+
%% up to a maximum of 1,000. This quota is not bound by a calendar month, but
23152316
%% starts when you close an account. After you reach this limit, you
23162317
%% can't
23172318
%% close additional accounts. For more information, see Closing a member

0 commit comments

Comments
 (0)