Skip to content

Commit 07cc15b

Browse files
committed
Update services based on release-2026-06-09 of AWS Go SDK
Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2026-06-09
1 parent 512a5cc commit 07cc15b

7 files changed

Lines changed: 2474 additions & 12 deletions

File tree

.latest-tag-aws-sdk-go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
release-2026-06-08
1+
release-2026-06-09

src/aws_bedrock.erl

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
export_automated_reasoning_policy_version/2,
8383
export_automated_reasoning_policy_version/4,
8484
export_automated_reasoning_policy_version/5,
85+
get_account_data_retention/1,
86+
get_account_data_retention/3,
87+
get_account_data_retention/4,
8588
get_advanced_prompt_optimization_job/2,
8689
get_advanced_prompt_optimization_job/4,
8790
get_advanced_prompt_optimization_job/5,
@@ -225,6 +228,8 @@
225228
list_provisioned_model_throughputs/4,
226229
list_tags_for_resource/2,
227230
list_tags_for_resource/3,
231+
put_account_data_retention/2,
232+
put_account_data_retention/3,
228233
put_enforced_guardrail_configuration/2,
229234
put_enforced_guardrail_configuration/3,
230235
put_model_invocation_logging_configuration/2,
@@ -1101,6 +1106,13 @@
11011106
-type marketplace_model_endpoint() :: #{binary() => any()}.
11021107

11031108

1109+
%% Example:
1110+
%% put_account_data_retention_request() :: #{
1111+
%% <<"mode">> := list(any())
1112+
%% }
1113+
-type put_account_data_retention_request() :: #{binary() => any()}.
1114+
1115+
11041116
%% Example:
11051117
%% automated_evaluation_custom_metric_config() :: #{
11061118
%% <<"customMetrics">> => list(list()),
@@ -2555,6 +2567,14 @@
25552567
-type get_resource_policy_request() :: #{}.
25562568

25572569

2570+
%% Example:
2571+
%% put_account_data_retention_response() :: #{
2572+
%% <<"mode">> => list(any()),
2573+
%% <<"updatedAt">> => non_neg_integer()
2574+
%% }
2575+
-type put_account_data_retention_response() :: #{binary() => any()}.
2576+
2577+
25582578
%% Example:
25592579
%% model_configuration() :: #{
25602580
%% <<"additionalModelRequestFields">> => map(),
@@ -4012,6 +4032,10 @@
40124032
%% stop_advanced_prompt_optimization_job_response() :: #{}
40134033
-type stop_advanced_prompt_optimization_job_response() :: #{}.
40144034

4035+
%% Example:
4036+
%% get_account_data_retention_request() :: #{}
4037+
-type get_account_data_retention_request() :: #{}.
4038+
40154039

40164040
%% Example:
40174041
%% too_many_tags_exception() :: #{
@@ -4035,6 +4059,14 @@
40354059
-type guardrail_topic() :: #{binary() => any()}.
40364060

40374061

4062+
%% Example:
4063+
%% get_account_data_retention_response() :: #{
4064+
%% <<"mode">> => list(any()),
4065+
%% <<"updatedAt">> => non_neg_integer()
4066+
%% }
4067+
-type get_account_data_retention_response() :: #{binary() => any()}.
4068+
4069+
40384070
%% Example:
40394071
%% list_enforced_guardrails_configuration_response() :: #{
40404072
%% <<"guardrailsConfig">> => list(account_enforced_guardrail_output_configuration()),
@@ -4462,6 +4494,12 @@
44624494
internal_server_exception() |
44634495
resource_not_found_exception().
44644496

4497+
-type get_account_data_retention_errors() ::
4498+
throttling_exception() |
4499+
validation_exception() |
4500+
access_denied_exception() |
4501+
internal_server_exception().
4502+
44654503
-type get_advanced_prompt_optimization_job_errors() ::
44664504
throttling_exception() |
44674505
validation_exception() |
@@ -4784,6 +4822,12 @@
47844822
internal_server_exception() |
47854823
resource_not_found_exception().
47864824

4825+
-type put_account_data_retention_errors() ::
4826+
throttling_exception() |
4827+
validation_exception() |
4828+
access_denied_exception() |
4829+
internal_server_exception().
4830+
47874831
-type put_enforced_guardrail_configuration_errors() ::
47884832
throttling_exception() |
47894833
validation_exception() |
@@ -6484,6 +6528,43 @@ export_automated_reasoning_policy_version(Client, PolicyArn, QueryMap, HeadersMa
64846528

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

6531+
%% @doc Returns the account-wide data retention mode for Amazon Bedrock.
6532+
-spec get_account_data_retention(aws_client:aws_client()) ->
6533+
{ok, get_account_data_retention_response(), tuple()} |
6534+
{error, any()} |
6535+
{error, get_account_data_retention_errors(), tuple()}.
6536+
get_account_data_retention(Client)
6537+
when is_map(Client) ->
6538+
get_account_data_retention(Client, #{}, #{}).
6539+
6540+
-spec get_account_data_retention(aws_client:aws_client(), map(), map()) ->
6541+
{ok, get_account_data_retention_response(), tuple()} |
6542+
{error, any()} |
6543+
{error, get_account_data_retention_errors(), tuple()}.
6544+
get_account_data_retention(Client, QueryMap, HeadersMap)
6545+
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
6546+
get_account_data_retention(Client, QueryMap, HeadersMap, []).
6547+
6548+
-spec get_account_data_retention(aws_client:aws_client(), map(), map(), proplists:proplist()) ->
6549+
{ok, get_account_data_retention_response(), tuple()} |
6550+
{error, any()} |
6551+
{error, get_account_data_retention_errors(), tuple()}.
6552+
get_account_data_retention(Client, QueryMap, HeadersMap, Options0)
6553+
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
6554+
Path = ["/data-retention"],
6555+
SuccessStatusCode = 200,
6556+
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
6557+
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
6558+
Options = [{send_body_as_binary, SendBodyAsBinary},
6559+
{receive_body_as_binary, ReceiveBodyAsBinary}
6560+
| Options2],
6561+
6562+
Headers = [],
6563+
6564+
Query_ = [],
6565+
6566+
request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).
6567+
64876568
%% @doc Gets information about an advanced prompt optimization job.
64886569
-spec get_advanced_prompt_optimization_job(aws_client:aws_client(), binary() | list()) ->
64896570
{ok, get_advanced_prompt_optimization_job_response(), tuple()} |
@@ -8606,6 +8687,40 @@ list_tags_for_resource(Client, Input0, Options0) ->
86068687

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

8690+
%% @doc Sets the account-wide data retention mode for Amazon Bedrock.
8691+
-spec put_account_data_retention(aws_client:aws_client(), put_account_data_retention_request()) ->
8692+
{ok, put_account_data_retention_response(), tuple()} |
8693+
{error, any()} |
8694+
{error, put_account_data_retention_errors(), tuple()}.
8695+
put_account_data_retention(Client, Input) ->
8696+
put_account_data_retention(Client, Input, []).
8697+
8698+
-spec put_account_data_retention(aws_client:aws_client(), put_account_data_retention_request(), proplists:proplist()) ->
8699+
{ok, put_account_data_retention_response(), tuple()} |
8700+
{error, any()} |
8701+
{error, put_account_data_retention_errors(), tuple()}.
8702+
put_account_data_retention(Client, Input0, Options0) ->
8703+
Method = put,
8704+
Path = ["/data-retention"],
8705+
SuccessStatusCode = 200,
8706+
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
8707+
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
8708+
Options = [{send_body_as_binary, SendBodyAsBinary},
8709+
{receive_body_as_binary, ReceiveBodyAsBinary},
8710+
{append_sha256_content_hash, false}
8711+
| Options2],
8712+
8713+
Headers = [],
8714+
Input1 = Input0,
8715+
8716+
CustomHeaders = [],
8717+
Input2 = Input1,
8718+
8719+
Query_ = [],
8720+
Input = Input2,
8721+
8722+
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).
8723+
86098724
%% @doc Sets the account-level enforced guardrail configuration.
86108725
-spec put_enforced_guardrail_configuration(aws_client:aws_client(), put_enforced_guardrail_configuration_request()) ->
86118726
{ok, put_enforced_guardrail_configuration_response(), tuple()} |

src/aws_bedrock_agentcore.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,7 +3175,8 @@
31753175
access_denied_exception() |
31763176
internal_server_exception() |
31773177
service_quota_exceeded_exception() |
3178-
resource_not_found_exception().
3178+
resource_not_found_exception() |
3179+
retryable_conflict_exception().
31793180

31803181
-type get_batch_evaluation_errors() ::
31813182
throttling_exception() |
@@ -3310,7 +3311,8 @@
33103311
access_denied_exception() |
33113312
internal_server_exception() |
33123313
service_quota_exceeded_exception() |
3313-
resource_not_found_exception().
3314+
resource_not_found_exception() |
3315+
retryable_conflict_exception().
33143316

33153317
-type invoke_browser_errors() ::
33163318
throttling_exception() |

0 commit comments

Comments
 (0)