Skip to content

Commit

Permalink
Update services based on release-2024-12-20 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 21, 2024
1 parent 0b71b6e commit a41c1f0
Show file tree
Hide file tree
Showing 13 changed files with 687 additions and 132 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-12-19
release-2024-12-20
12 changes: 11 additions & 1 deletion src/aws_bedrock_agent.erl
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
%% Example:
%% memory_configuration() :: #{
%% <<"enabledMemoryTypes">> => list(list(any())()),
%% <<"sessionSummaryConfiguration">> => session_summary_configuration(),
%% <<"storageDays">> => integer()
%% }
-type memory_configuration() :: #{binary() => any()}.
Expand Down Expand Up @@ -602,6 +603,13 @@
-type create_agent_request() :: #{binary() => any()}.


%% Example:
%% session_summary_configuration() :: #{
%% <<"maxRecentSessions">> => integer()
%% }
-type session_summary_configuration() :: #{binary() => any()}.


%% Example:
%% unknown_connection_source_flow_validation_details() :: #{
%% <<"connection">> => string()
Expand Down Expand Up @@ -1563,6 +1571,7 @@

%% Example:
%% web_crawler_limits() :: #{
%% <<"maxPages">> => [integer()],
%% <<"rateLimit">> => [integer()]
%% }
-type web_crawler_limits() :: #{binary() => any()}.
Expand Down Expand Up @@ -2115,7 +2124,8 @@
%% <<"crawlerLimits">> => web_crawler_limits(),
%% <<"exclusionFilters">> => list(string()()),
%% <<"inclusionFilters">> => list(string()()),
%% <<"scope">> => list(any())
%% <<"scope">> => list(any()),
%% <<"userAgent">> => string()
%% }
-type web_crawler_configuration() :: #{binary() => any()}.

Expand Down
61 changes: 57 additions & 4 deletions src/aws_bedrock_agent_runtime.erl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@
-type code_interpreter_invocation_output() :: #{binary() => any()}.


%% Example:
%% model_not_ready_exception() :: #{
%% <<"message">> => string()
%% }
-type model_not_ready_exception() :: #{binary() => any()}.


%% Example:
%% external_source() :: #{
%% <<"byteContent">> => byte_content_doc(),
Expand Down Expand Up @@ -171,6 +178,13 @@
-type bad_gateway_exception() :: #{binary() => any()}.


%% Example:
%% inline_bedrock_model_configurations() :: #{
%% <<"performanceConfig">> => performance_configuration()
%% }
-type inline_bedrock_model_configurations() :: #{binary() => any()}.


%% Example:
%% inline_session_state() :: #{
%% <<"files">> => list(input_file()()),
Expand Down Expand Up @@ -762,6 +776,13 @@
-type session_state() :: #{binary() => any()}.


%% Example:
%% bedrock_model_configurations() :: #{
%% <<"performanceConfig">> => performance_configuration()
%% }
-type bedrock_model_configurations() :: #{binary() => any()}.


%% Example:
%% invoke_inline_agent_response() :: #{
%% <<"completion">> => list(),
Expand Down Expand Up @@ -900,6 +921,7 @@
%% <<"additionalModelRequestFields">> => map(),
%% <<"guardrailConfiguration">> => guardrail_configuration(),
%% <<"inferenceConfig">> => inference_config(),
%% <<"performanceConfig">> => performance_configuration(),
%% <<"promptTemplate">> => prompt_template()
%% }
-type external_sources_generation_configuration() :: #{binary() => any()}.
Expand Down Expand Up @@ -1118,6 +1140,7 @@
%% orchestration_configuration() :: #{
%% <<"additionalModelRequestFields">> => map(),
%% <<"inferenceConfig">> => inference_config(),
%% <<"performanceConfig">> => performance_configuration(),
%% <<"promptTemplate">> => prompt_template(),
%% <<"queryTransformationConfiguration">> => query_transformation_configuration()
%% }
Expand Down Expand Up @@ -1157,6 +1180,7 @@
%% <<"additionalModelRequestFields">> => map(),
%% <<"guardrailConfiguration">> => guardrail_configuration(),
%% <<"inferenceConfig">> => inference_config(),
%% <<"performanceConfig">> => performance_configuration(),
%% <<"promptTemplate">> => prompt_template()
%% }
-type generation_configuration() :: #{binary() => any()}.
Expand Down Expand Up @@ -1307,6 +1331,7 @@
%% Example:
%% invoke_inline_agent_request() :: #{
%% <<"actionGroups">> => list(agent_action_group()()),
%% <<"bedrockModelConfigurations">> => inline_bedrock_model_configurations(),
%% <<"customerEncryptionKeyArn">> => string(),
%% <<"enableTrace">> => [boolean()],
%% <<"endSession">> => [boolean()],
Expand Down Expand Up @@ -1371,7 +1396,8 @@

%% Example:
%% delete_agent_memory_request() :: #{
%% <<"memoryId">> => string()
%% <<"memoryId">> => string(),
%% <<"sessionId">> => string()
%% }
-type delete_agent_memory_request() :: #{binary() => any()}.

Expand Down Expand Up @@ -1435,6 +1461,7 @@

%% Example:
%% invoke_agent_request() :: #{
%% <<"bedrockModelConfigurations">> => bedrock_model_configurations(),
%% <<"enableTrace">> => [boolean()],
%% <<"endSession">> => [boolean()],
%% <<"inputText">> => string(),
Expand All @@ -1446,6 +1473,13 @@
-type invoke_agent_request() :: #{binary() => any()}.


%% Example:
%% model_performance_configuration() :: #{
%% <<"performanceConfig">> => performance_configuration()
%% }
-type model_performance_configuration() :: #{binary() => any()}.


%% Example:
%% retrieve_and_generate_stream_response() :: #{
%% <<"sessionId">> => string(),
Expand Down Expand Up @@ -1528,7 +1562,8 @@
%% Example:
%% invoke_flow_request() :: #{
%% <<"enableTrace">> => [boolean()],
%% <<"inputs">> := list(flow_input()())
%% <<"inputs">> := list(flow_input()()),
%% <<"modelPerformanceConfiguration">> => model_performance_configuration()
%% }
-type invoke_flow_request() :: #{binary() => any()}.

Expand Down Expand Up @@ -1614,6 +1649,13 @@
-type prompt_configuration() :: #{binary() => any()}.


%% Example:
%% performance_configuration() :: #{
%% <<"latency">> => list(any())
%% }
-type performance_configuration() :: #{binary() => any()}.


%% Example:
%% rerank_document() :: #{
%% <<"jsonDocument">> => [any()],
Expand Down Expand Up @@ -1679,7 +1721,8 @@
resource_not_found_exception() |
conflict_exception() |
dependency_failed_exception() |
bad_gateway_exception().
bad_gateway_exception() |
model_not_ready_exception().

-type invoke_flow_errors() ::
throttling_exception() |
Expand Down Expand Up @@ -1789,7 +1832,8 @@ delete_agent_memory(Client, AgentAliasId, AgentId, Input0, Options0) ->
Input2 = Input1,

QueryMapping = [
{<<"memoryId">>, <<"memoryId">>}
{<<"memoryId">>, <<"memoryId">>},
{<<"sessionId">>, <<"sessionId">>}
],
{Query_, Input} = aws_request:build_headers(QueryMapping, Input2),
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).
Expand Down Expand Up @@ -1892,6 +1936,15 @@ get_agent_memory(Client, AgentAliasId, AgentId, MemoryId, MemoryType, QueryMap,
%% it yielded. For more information, see Trace enablement:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events.
%%
%% To stream agent responses, make sure that only orchestration prompt is
%% enabled. Agent streaming is not supported for the following steps:
%%
%% `Pre-processing'
%%
%% `Post-processing'
%%
%% Agent with 1 Knowledge base and `User Input' not enabled
%%
%% End a conversation by setting `endSession' to `true'.
%%
%% In the `sessionState' object, you can include attributes for the
Expand Down
24 changes: 12 additions & 12 deletions src/aws_bedrock_data_automation.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
%% See https://github.com/aws-beam/aws-codegen for more details.

%% @doc Amazon Bedrock Keystone Build
%% @doc Amazon Bedrock Data Automation BuildTime
-module(aws_bedrock_data_automation).

-export([create_blueprint/2,
Expand Down Expand Up @@ -653,7 +653,7 @@
%% API
%%====================================================================

%% @doc Creates an Amazon Bedrock Keystone Blueprint
%% @doc Creates an Amazon Bedrock Data Automation Blueprint
-spec create_blueprint(aws_client:aws_client(), create_blueprint_request()) ->
{ok, create_blueprint_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -687,7 +687,7 @@ create_blueprint(Client, Input0, Options0) ->

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

%% @doc Creates a new version of an existing Amazon Bedrock Keystone
%% @doc Creates a new version of an existing Amazon Bedrock Data Automation
%% Blueprint
-spec create_blueprint_version(aws_client:aws_client(), binary() | list(), create_blueprint_version_request()) ->
{ok, create_blueprint_version_response(), tuple()} |
Expand Down Expand Up @@ -722,7 +722,7 @@ create_blueprint_version(Client, BlueprintArn, Input0, Options0) ->

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

%% @doc Creates an Amazon Bedrock Keystone DataAutomationProject
%% @doc Creates an Amazon Bedrock Data Automation Project
-spec create_data_automation_project(aws_client:aws_client(), create_data_automation_project_request()) ->
{ok, create_data_automation_project_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -756,7 +756,7 @@ create_data_automation_project(Client, Input0, Options0) ->

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

%% @doc Deletes an existing Amazon Bedrock Keystone Blueprint
%% @doc Deletes an existing Amazon Bedrock Data Automation Blueprint
-spec delete_blueprint(aws_client:aws_client(), binary() | list(), delete_blueprint_request()) ->
{ok, delete_blueprint_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -791,7 +791,7 @@ delete_blueprint(Client, BlueprintArn, Input0, Options0) ->
{Query_, Input} = aws_request:build_headers(QueryMapping, Input2),
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Deletes an existing Amazon Bedrock Keystone DataAutomationProject
%% @doc Deletes an existing Amazon Bedrock Data Automation Project
-spec delete_data_automation_project(aws_client:aws_client(), binary() | list(), delete_data_automation_project_request()) ->
{ok, delete_data_automation_project_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -825,7 +825,7 @@ delete_data_automation_project(Client, ProjectArn, Input0, Options0) ->

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

%% @doc Gets an existing Amazon Bedrock Keystone Blueprint
%% @doc Gets an existing Amazon Bedrock Data Automation Blueprint
-spec get_blueprint(aws_client:aws_client(), binary() | list(), get_blueprint_request()) ->
{ok, get_blueprint_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -859,7 +859,7 @@ get_blueprint(Client, BlueprintArn, Input0, Options0) ->

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

%% @doc Gets an existing Amazon Bedrock Keystone DataAutomationProject
%% @doc Gets an existing Amazon Bedrock Data Automation Project
-spec get_data_automation_project(aws_client:aws_client(), binary() | list(), get_data_automation_project_request()) ->
{ok, get_data_automation_project_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -893,7 +893,7 @@ get_data_automation_project(Client, ProjectArn, Input0, Options0) ->

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

%% @doc Lists all existing Amazon Bedrock Keystone Blueprints
%% @doc Lists all existing Amazon Bedrock Data Automation Blueprints
-spec list_blueprints(aws_client:aws_client(), list_blueprints_request()) ->
{ok, list_blueprints_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -927,7 +927,7 @@ list_blueprints(Client, Input0, Options0) ->

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

%% @doc Lists all existing Amazon Bedrock Keystone DataAutomationProjects
%% @doc Lists all existing Amazon Bedrock Data Automation Projects
-spec list_data_automation_projects(aws_client:aws_client(), list_data_automation_projects_request()) ->
{ok, list_data_automation_projects_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -961,7 +961,7 @@ list_data_automation_projects(Client, Input0, Options0) ->

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

%% @doc Updates an existing Amazon Bedrock Blueprint
%% @doc Updates an existing Amazon Bedrock Data Automation Blueprint
-spec update_blueprint(aws_client:aws_client(), binary() | list(), update_blueprint_request()) ->
{ok, update_blueprint_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -995,7 +995,7 @@ update_blueprint(Client, BlueprintArn, Input0, Options0) ->

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

%% @doc Updates an existing Amazon Bedrock DataAutomationProject
%% @doc Updates an existing Amazon Bedrock Data Automation Project
-spec update_data_automation_project(aws_client:aws_client(), binary() | list(), update_data_automation_project_request()) ->
{ok, update_data_automation_project_response(), tuple()} |
{error, any()} |
Expand Down
2 changes: 1 addition & 1 deletion src/aws_bedrock_data_automation_runtime.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
%% See https://github.com/aws-beam/aws-codegen for more details.

%% @doc Amazon Bedrock Keystone Runtime
%% @doc Amazon Bedrock Data Automation Runtime
-module(aws_bedrock_data_automation_runtime).

-export([get_data_automation_status/2,
Expand Down
Loading

0 comments on commit a41c1f0

Please sign in to comment.