|
82 | 82 | export_automated_reasoning_policy_version/2, |
83 | 83 | export_automated_reasoning_policy_version/4, |
84 | 84 | export_automated_reasoning_policy_version/5, |
| 85 | + get_account_data_retention/1, |
| 86 | + get_account_data_retention/3, |
| 87 | + get_account_data_retention/4, |
85 | 88 | get_advanced_prompt_optimization_job/2, |
86 | 89 | get_advanced_prompt_optimization_job/4, |
87 | 90 | get_advanced_prompt_optimization_job/5, |
|
225 | 228 | list_provisioned_model_throughputs/4, |
226 | 229 | list_tags_for_resource/2, |
227 | 230 | list_tags_for_resource/3, |
| 231 | + put_account_data_retention/2, |
| 232 | + put_account_data_retention/3, |
228 | 233 | put_enforced_guardrail_configuration/2, |
229 | 234 | put_enforced_guardrail_configuration/3, |
230 | 235 | put_model_invocation_logging_configuration/2, |
|
1101 | 1106 | -type marketplace_model_endpoint() :: #{binary() => any()}. |
1102 | 1107 |
|
1103 | 1108 |
|
| 1109 | +%% Example: |
| 1110 | +%% put_account_data_retention_request() :: #{ |
| 1111 | +%% <<"mode">> := list(any()) |
| 1112 | +%% } |
| 1113 | +-type put_account_data_retention_request() :: #{binary() => any()}. |
| 1114 | + |
| 1115 | + |
1104 | 1116 | %% Example: |
1105 | 1117 | %% automated_evaluation_custom_metric_config() :: #{ |
1106 | 1118 | %% <<"customMetrics">> => list(list()), |
|
2555 | 2567 | -type get_resource_policy_request() :: #{}. |
2556 | 2568 |
|
2557 | 2569 |
|
| 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 | + |
2558 | 2578 | %% Example: |
2559 | 2579 | %% model_configuration() :: #{ |
2560 | 2580 | %% <<"additionalModelRequestFields">> => map(), |
|
4012 | 4032 | %% stop_advanced_prompt_optimization_job_response() :: #{} |
4013 | 4033 | -type stop_advanced_prompt_optimization_job_response() :: #{}. |
4014 | 4034 |
|
| 4035 | +%% Example: |
| 4036 | +%% get_account_data_retention_request() :: #{} |
| 4037 | +-type get_account_data_retention_request() :: #{}. |
| 4038 | + |
4015 | 4039 |
|
4016 | 4040 | %% Example: |
4017 | 4041 | %% too_many_tags_exception() :: #{ |
|
4035 | 4059 | -type guardrail_topic() :: #{binary() => any()}. |
4036 | 4060 |
|
4037 | 4061 |
|
| 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 | + |
4038 | 4070 | %% Example: |
4039 | 4071 | %% list_enforced_guardrails_configuration_response() :: #{ |
4040 | 4072 | %% <<"guardrailsConfig">> => list(account_enforced_guardrail_output_configuration()), |
|
4462 | 4494 | internal_server_exception() | |
4463 | 4495 | resource_not_found_exception(). |
4464 | 4496 |
|
| 4497 | +-type get_account_data_retention_errors() :: |
| 4498 | + throttling_exception() | |
| 4499 | + validation_exception() | |
| 4500 | + access_denied_exception() | |
| 4501 | + internal_server_exception(). |
| 4502 | + |
4465 | 4503 | -type get_advanced_prompt_optimization_job_errors() :: |
4466 | 4504 | throttling_exception() | |
4467 | 4505 | validation_exception() | |
|
4784 | 4822 | internal_server_exception() | |
4785 | 4823 | resource_not_found_exception(). |
4786 | 4824 |
|
| 4825 | +-type put_account_data_retention_errors() :: |
| 4826 | + throttling_exception() | |
| 4827 | + validation_exception() | |
| 4828 | + access_denied_exception() | |
| 4829 | + internal_server_exception(). |
| 4830 | + |
4787 | 4831 | -type put_enforced_guardrail_configuration_errors() :: |
4788 | 4832 | throttling_exception() | |
4789 | 4833 | validation_exception() | |
@@ -6484,6 +6528,43 @@ export_automated_reasoning_policy_version(Client, PolicyArn, QueryMap, HeadersMa |
6484 | 6528 |
|
6485 | 6529 | request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). |
6486 | 6530 |
|
| 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 | + |
6487 | 6568 | %% @doc Gets information about an advanced prompt optimization job. |
6488 | 6569 | -spec get_advanced_prompt_optimization_job(aws_client:aws_client(), binary() | list()) -> |
6489 | 6570 | {ok, get_advanced_prompt_optimization_job_response(), tuple()} | |
@@ -8606,6 +8687,40 @@ list_tags_for_resource(Client, Input0, Options0) -> |
8606 | 8687 |
|
8607 | 8688 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
8608 | 8689 |
|
| 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 | + |
8609 | 8724 | %% @doc Sets the account-level enforced guardrail configuration. |
8610 | 8725 | -spec put_enforced_guardrail_configuration(aws_client:aws_client(), put_enforced_guardrail_configuration_request()) -> |
8611 | 8726 | {ok, put_enforced_guardrail_configuration_response(), tuple()} | |
|
0 commit comments