From a41c1f064471a08aec4d3bd23512a6b1f0ef2aa9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 21 Dec 2024 02:00:27 +0000 Subject: [PATCH] Update services based on release-2024-12-20 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-12-20 --- .latest-tag-aws-sdk-go | 2 +- src/aws_bedrock_agent.erl | 12 +- src/aws_bedrock_agent_runtime.erl | 61 ++- src/aws_bedrock_data_automation.erl | 24 +- src/aws_bedrock_data_automation_runtime.erl | 2 +- src/aws_billing.erl | 490 +++++++++++++++++++- src/aws_connect.erl | 10 + src/aws_cost_explorer.erl | 28 +- src/aws_docdb.erl | 14 + src/aws_eks.erl | 9 + src/aws_macie2.erl | 7 +- src/aws_outposts.erl | 2 +- src/aws_sagemaker.erl | 158 ++++--- 13 files changed, 687 insertions(+), 132 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index e580c582..378375b0 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-12-19 +release-2024-12-20 diff --git a/src/aws_bedrock_agent.erl b/src/aws_bedrock_agent.erl index d6533fdb..79fb9dc8 100644 --- a/src/aws_bedrock_agent.erl +++ b/src/aws_bedrock_agent.erl @@ -335,6 +335,7 @@ %% Example: %% memory_configuration() :: #{ %% <<"enabledMemoryTypes">> => list(list(any())()), +%% <<"sessionSummaryConfiguration">> => session_summary_configuration(), %% <<"storageDays">> => integer() %% } -type memory_configuration() :: #{binary() => any()}. @@ -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() @@ -1563,6 +1571,7 @@ %% Example: %% web_crawler_limits() :: #{ +%% <<"maxPages">> => [integer()], %% <<"rateLimit">> => [integer()] %% } -type web_crawler_limits() :: #{binary() => any()}. @@ -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()}. diff --git a/src/aws_bedrock_agent_runtime.erl b/src/aws_bedrock_agent_runtime.erl index 6fc014b4..81651f55 100644 --- a/src/aws_bedrock_agent_runtime.erl +++ b/src/aws_bedrock_agent_runtime.erl @@ -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(), @@ -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()()), @@ -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(), @@ -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()}. @@ -1118,6 +1140,7 @@ %% orchestration_configuration() :: #{ %% <<"additionalModelRequestFields">> => map(), %% <<"inferenceConfig">> => inference_config(), +%% <<"performanceConfig">> => performance_configuration(), %% <<"promptTemplate">> => prompt_template(), %% <<"queryTransformationConfiguration">> => query_transformation_configuration() %% } @@ -1157,6 +1180,7 @@ %% <<"additionalModelRequestFields">> => map(), %% <<"guardrailConfiguration">> => guardrail_configuration(), %% <<"inferenceConfig">> => inference_config(), +%% <<"performanceConfig">> => performance_configuration(), %% <<"promptTemplate">> => prompt_template() %% } -type generation_configuration() :: #{binary() => any()}. @@ -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()], @@ -1371,7 +1396,8 @@ %% Example: %% delete_agent_memory_request() :: #{ -%% <<"memoryId">> => string() +%% <<"memoryId">> => string(), +%% <<"sessionId">> => string() %% } -type delete_agent_memory_request() :: #{binary() => any()}. @@ -1435,6 +1461,7 @@ %% Example: %% invoke_agent_request() :: #{ +%% <<"bedrockModelConfigurations">> => bedrock_model_configurations(), %% <<"enableTrace">> => [boolean()], %% <<"endSession">> => [boolean()], %% <<"inputText">> => string(), @@ -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(), @@ -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()}. @@ -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()], @@ -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() | @@ -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). @@ -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 diff --git a/src/aws_bedrock_data_automation.erl b/src/aws_bedrock_data_automation.erl index da4c2306..1b4f1a5a 100644 --- a/src/aws_bedrock_data_automation.erl +++ b/src/aws_bedrock_data_automation.erl @@ -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, @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | @@ -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()} | diff --git a/src/aws_bedrock_data_automation_runtime.erl b/src/aws_bedrock_data_automation_runtime.erl index c5bd5ad4..d3a3afca 100644 --- a/src/aws_bedrock_data_automation_runtime.erl +++ b/src/aws_bedrock_data_automation_runtime.erl @@ -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, diff --git a/src/aws_billing.erl b/src/aws_billing.erl index 3176ef94..1a31cfe1 100644 --- a/src/aws_billing.erl +++ b/src/aws_billing.erl @@ -12,17 +12,186 @@ %% `https://billing.us-east-1.api.aws' -module(aws_billing). --export([list_billing_views/2, - list_billing_views/3]). +-export([create_billing_view/2, + create_billing_view/3, + delete_billing_view/2, + delete_billing_view/3, + get_billing_view/2, + get_billing_view/3, + get_resource_policy/2, + get_resource_policy/3, + list_billing_views/2, + list_billing_views/3, + list_source_views_for_billing_view/2, + list_source_views_for_billing_view/3, + list_tags_for_resource/2, + list_tags_for_resource/3, + tag_resource/2, + tag_resource/3, + untag_resource/2, + untag_resource/3, + update_billing_view/2, + update_billing_view/3]). -include_lib("hackney/include/hackney_lib.hrl"). %% Example: -%% access_denied_exception() :: #{ -%% <<"message">> => string() +%% tag_resource_request() :: #{ +%% <<"resourceArn">> := string(), +%% <<"resourceTags">> := list(resource_tag()()) %% } --type access_denied_exception() :: #{binary() => any()}. +-type tag_resource_request() :: #{binary() => any()}. + +%% Example: +%% list_billing_views_request() :: #{ +%% <<"activeTimeRange">> => active_time_range(), +%% <<"arns">> => list(string()()), +%% <<"billingViewTypes">> => list(list(any())()), +%% <<"maxResults">> => integer(), +%% <<"nextToken">> => string(), +%% <<"ownerAccountId">> => string() +%% } +-type list_billing_views_request() :: #{binary() => any()}. + +%% Example: +%% list_source_views_for_billing_view_request() :: #{ +%% <<"arn">> := string(), +%% <<"maxResults">> => integer(), +%% <<"nextToken">> => string() +%% } +-type list_source_views_for_billing_view_request() :: #{binary() => any()}. + +%% Example: +%% update_billing_view_response() :: #{ +%% <<"arn">> => string(), +%% <<"updatedAt">> => [non_neg_integer()] +%% } +-type update_billing_view_response() :: #{binary() => any()}. + +%% Example: +%% list_source_views_for_billing_view_response() :: #{ +%% <<"nextToken">> => string(), +%% <<"sourceViews">> => list(string()()) +%% } +-type list_source_views_for_billing_view_response() :: #{binary() => any()}. + +%% Example: +%% delete_billing_view_response() :: #{ +%% <<"arn">> => string() +%% } +-type delete_billing_view_response() :: #{binary() => any()}. + +%% Example: +%% untag_resource_response() :: #{ + +%% } +-type untag_resource_response() :: #{binary() => any()}. + +%% Example: +%% tag_values() :: #{ +%% <<"key">> => string(), +%% <<"values">> => list(string()()) +%% } +-type tag_values() :: #{binary() => any()}. + +%% Example: +%% get_resource_policy_response() :: #{ +%% <<"policy">> => string(), +%% <<"resourceArn">> => string() +%% } +-type get_resource_policy_response() :: #{binary() => any()}. + +%% Example: +%% get_billing_view_request() :: #{ +%% <<"arn">> := string() +%% } +-type get_billing_view_request() :: #{binary() => any()}. + +%% Example: +%% untag_resource_request() :: #{ +%% <<"resourceArn">> := string(), +%% <<"resourceTagKeys">> := list(string()()) +%% } +-type untag_resource_request() :: #{binary() => any()}. + +%% Example: +%% create_billing_view_request() :: #{ +%% <<"clientToken">> => string(), +%% <<"dataFilterExpression">> => expression(), +%% <<"description">> => string(), +%% <<"name">> := string(), +%% <<"resourceTags">> => list(resource_tag()()), +%% <<"sourceViews">> := list(string()()) +%% } +-type create_billing_view_request() :: #{binary() => any()}. + +%% Example: +%% conflict_exception() :: #{ +%% <<"message">> => string(), +%% <<"resourceId">> => string(), +%% <<"resourceType">> => string() +%% } +-type conflict_exception() :: #{binary() => any()}. + +%% Example: +%% resource_not_found_exception() :: #{ +%% <<"message">> => string(), +%% <<"resourceId">> => string(), +%% <<"resourceType">> => string() +%% } +-type resource_not_found_exception() :: #{binary() => any()}. + +%% Example: +%% dimension_values() :: #{ +%% <<"key">> => list(any()), +%% <<"values">> => list(string()()) +%% } +-type dimension_values() :: #{binary() => any()}. + +%% Example: +%% delete_billing_view_request() :: #{ +%% <<"arn">> := string() +%% } +-type delete_billing_view_request() :: #{binary() => any()}. + +%% Example: +%% update_billing_view_request() :: #{ +%% <<"arn">> := string(), +%% <<"dataFilterExpression">> => expression(), +%% <<"description">> => string(), +%% <<"name">> => string() +%% } +-type update_billing_view_request() :: #{binary() => any()}. + +%% Example: +%% service_quota_exceeded_exception() :: #{ +%% <<"message">> => string(), +%% <<"quotaCode">> => string(), +%% <<"resourceId">> => string(), +%% <<"resourceType">> => string(), +%% <<"serviceCode">> => string() +%% } +-type service_quota_exceeded_exception() :: #{binary() => any()}. + +%% Example: +%% list_tags_for_resource_response() :: #{ +%% <<"resourceTags">> => list(resource_tag()()) +%% } +-type list_tags_for_resource_response() :: #{binary() => any()}. + +%% Example: +%% validation_exception_field() :: #{ +%% <<"message">> => string(), +%% <<"name">> => string() +%% } +-type validation_exception_field() :: #{binary() => any()}. + +%% Example: +%% get_resource_policy_request() :: #{ +%% <<"resourceArn">> := string() +%% } +-type get_resource_policy_request() :: #{binary() => any()}. %% Example: %% active_time_range() :: #{ @@ -32,13 +201,17 @@ -type active_time_range() :: #{binary() => any()}. %% Example: -%% billing_view_list_element() :: #{ +%% billing_view_element() :: #{ %% <<"arn">> => string(), %% <<"billingViewType">> => list(any()), +%% <<"createdAt">> => [non_neg_integer()], +%% <<"dataFilterExpression">> => expression(), +%% <<"description">> => string(), %% <<"name">> => string(), -%% <<"ownerAccountId">> => string() +%% <<"ownerAccountId">> => string(), +%% <<"updatedAt">> => [non_neg_integer()] %% } --type billing_view_list_element() :: #{binary() => any()}. +-type billing_view_element() :: #{binary() => any()}. %% Example: %% internal_server_exception() :: #{ @@ -47,25 +220,33 @@ -type internal_server_exception() :: #{binary() => any()}. %% Example: -%% list_billing_views_request() :: #{ -%% <<"activeTimeRange">> := active_time_range(), -%% <<"maxResults">> => integer(), -%% <<"nextToken">> => string() +%% resource_tag() :: #{ +%% <<"key">> => string(), +%% <<"value">> => string() %% } --type list_billing_views_request() :: #{binary() => any()}. +-type resource_tag() :: #{binary() => any()}. %% Example: -%% list_billing_views_response() :: #{ -%% <<"billingViews">> => list(billing_view_list_element()()), -%% <<"nextToken">> => string() +%% access_denied_exception() :: #{ +%% <<"message">> => string() %% } --type list_billing_views_response() :: #{binary() => any()}. +-type access_denied_exception() :: #{binary() => any()}. %% Example: -%% throttling_exception() :: #{ -%% <<"message">> => string() +%% tag_resource_response() :: #{ + %% } --type throttling_exception() :: #{binary() => any()}. +-type tag_resource_response() :: #{binary() => any()}. + +%% Example: +%% billing_view_list_element() :: #{ +%% <<"arn">> => string(), +%% <<"billingViewType">> => list(any()), +%% <<"description">> => string(), +%% <<"name">> => string(), +%% <<"ownerAccountId">> => string() +%% } +-type billing_view_list_element() :: #{binary() => any()}. %% Example: %% validation_exception() :: #{ @@ -76,22 +257,190 @@ -type validation_exception() :: #{binary() => any()}. %% Example: -%% validation_exception_field() :: #{ -%% <<"message">> => string(), -%% <<"name">> => string() +%% list_tags_for_resource_request() :: #{ +%% <<"resourceArn">> := string() %% } --type validation_exception_field() :: #{binary() => any()}. +-type list_tags_for_resource_request() :: #{binary() => any()}. + +%% Example: +%% throttling_exception() :: #{ +%% <<"message">> => string() +%% } +-type throttling_exception() :: #{binary() => any()}. + +%% Example: +%% expression() :: #{ +%% <<"dimensions">> => dimension_values(), +%% <<"tags">> => tag_values() +%% } +-type expression() :: #{binary() => any()}. + +%% Example: +%% get_billing_view_response() :: #{ +%% <<"billingView">> => billing_view_element() +%% } +-type get_billing_view_response() :: #{binary() => any()}. + +%% Example: +%% list_billing_views_response() :: #{ +%% <<"billingViews">> => list(billing_view_list_element()()), +%% <<"nextToken">> => string() +%% } +-type list_billing_views_response() :: #{binary() => any()}. + +%% Example: +%% create_billing_view_response() :: #{ +%% <<"arn">> => string(), +%% <<"createdAt">> => [non_neg_integer()] +%% } +-type create_billing_view_response() :: #{binary() => any()}. + +-type create_billing_view_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + service_quota_exceeded_exception() | + conflict_exception(). + +-type delete_billing_view_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + conflict_exception(). + +-type get_billing_view_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). + +-type get_resource_policy_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). -type list_billing_views_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception(). + +-type list_source_views_for_billing_view_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). + +-type list_tags_for_resource_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). + +-type tag_resource_errors() :: + throttling_exception() | + validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). + +-type untag_resource_errors() :: + throttling_exception() | validation_exception() | + access_denied_exception() | + internal_server_exception() | + resource_not_found_exception(). + +-type update_billing_view_errors() :: throttling_exception() | + validation_exception() | + access_denied_exception() | internal_server_exception() | - access_denied_exception(). + service_quota_exceeded_exception() | + resource_not_found_exception() | + conflict_exception(). %%==================================================================== %% API %%==================================================================== +%% @doc +%% Creates a billing view with the specified billing view attributes. +-spec create_billing_view(aws_client:aws_client(), create_billing_view_request()) -> + {ok, create_billing_view_response(), tuple()} | + {error, any()} | + {error, create_billing_view_errors(), tuple()}. +create_billing_view(Client, Input) + when is_map(Client), is_map(Input) -> + create_billing_view(Client, Input, []). + +-spec create_billing_view(aws_client:aws_client(), create_billing_view_request(), proplists:proplist()) -> + {ok, create_billing_view_response(), tuple()} | + {error, any()} | + {error, create_billing_view_errors(), tuple()}. +create_billing_view(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"CreateBillingView">>, Input, Options). + +%% @doc Deletes the specified billing view. +-spec delete_billing_view(aws_client:aws_client(), delete_billing_view_request()) -> + {ok, delete_billing_view_response(), tuple()} | + {error, any()} | + {error, delete_billing_view_errors(), tuple()}. +delete_billing_view(Client, Input) + when is_map(Client), is_map(Input) -> + delete_billing_view(Client, Input, []). + +-spec delete_billing_view(aws_client:aws_client(), delete_billing_view_request(), proplists:proplist()) -> + {ok, delete_billing_view_response(), tuple()} | + {error, any()} | + {error, delete_billing_view_errors(), tuple()}. +delete_billing_view(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"DeleteBillingView">>, Input, Options). + +%% @doc Returns the metadata associated to the specified billing view ARN. +-spec get_billing_view(aws_client:aws_client(), get_billing_view_request()) -> + {ok, get_billing_view_response(), tuple()} | + {error, any()} | + {error, get_billing_view_errors(), tuple()}. +get_billing_view(Client, Input) + when is_map(Client), is_map(Input) -> + get_billing_view(Client, Input, []). + +-spec get_billing_view(aws_client:aws_client(), get_billing_view_request(), proplists:proplist()) -> + {ok, get_billing_view_response(), tuple()} | + {error, any()} | + {error, get_billing_view_errors(), tuple()}. +get_billing_view(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"GetBillingView">>, Input, Options). + +%% @doc Returns the resource-based policy document attached to the resource +%% in `JSON' format. +-spec get_resource_policy(aws_client:aws_client(), get_resource_policy_request()) -> + {ok, get_resource_policy_response(), tuple()} | + {error, any()} | + {error, get_resource_policy_errors(), tuple()}. +get_resource_policy(Client, Input) + when is_map(Client), is_map(Input) -> + get_resource_policy(Client, Input, []). + +-spec get_resource_policy(aws_client:aws_client(), get_resource_policy_request(), proplists:proplist()) -> + {ok, get_resource_policy_response(), tuple()} | + {error, any()} | + {error, get_resource_policy_errors(), tuple()}. +get_resource_policy(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"GetResourcePolicy">>, Input, Options). + %% @doc Lists the billing views available for a given time period. %% %% Every Amazon Web Services account has a unique `PRIMARY' billing view @@ -114,6 +463,97 @@ list_billing_views(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"ListBillingViews">>, Input, Options). +%% @doc Lists the source views (managed Amazon Web Services billing views) +%% associated with the billing view. +-spec list_source_views_for_billing_view(aws_client:aws_client(), list_source_views_for_billing_view_request()) -> + {ok, list_source_views_for_billing_view_response(), tuple()} | + {error, any()} | + {error, list_source_views_for_billing_view_errors(), tuple()}. +list_source_views_for_billing_view(Client, Input) + when is_map(Client), is_map(Input) -> + list_source_views_for_billing_view(Client, Input, []). + +-spec list_source_views_for_billing_view(aws_client:aws_client(), list_source_views_for_billing_view_request(), proplists:proplist()) -> + {ok, list_source_views_for_billing_view_response(), tuple()} | + {error, any()} | + {error, list_source_views_for_billing_view_errors(), tuple()}. +list_source_views_for_billing_view(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"ListSourceViewsForBillingView">>, Input, Options). + +%% @doc Lists tags associated with the billing view resource. +-spec list_tags_for_resource(aws_client:aws_client(), list_tags_for_resource_request()) -> + {ok, list_tags_for_resource_response(), tuple()} | + {error, any()} | + {error, list_tags_for_resource_errors(), tuple()}. +list_tags_for_resource(Client, Input) + when is_map(Client), is_map(Input) -> + list_tags_for_resource(Client, Input, []). + +-spec list_tags_for_resource(aws_client:aws_client(), list_tags_for_resource_request(), proplists:proplist()) -> + {ok, list_tags_for_resource_response(), tuple()} | + {error, any()} | + {error, list_tags_for_resource_errors(), tuple()}. +list_tags_for_resource(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"ListTagsForResource">>, Input, Options). + +%% @doc +%% An API operation for adding one or more tags (key-value pairs) to a +%% resource. +-spec tag_resource(aws_client:aws_client(), tag_resource_request()) -> + {ok, tag_resource_response(), tuple()} | + {error, any()} | + {error, tag_resource_errors(), tuple()}. +tag_resource(Client, Input) + when is_map(Client), is_map(Input) -> + tag_resource(Client, Input, []). + +-spec tag_resource(aws_client:aws_client(), tag_resource_request(), proplists:proplist()) -> + {ok, tag_resource_response(), tuple()} | + {error, any()} | + {error, tag_resource_errors(), tuple()}. +tag_resource(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"TagResource">>, Input, Options). + +%% @doc +%% Removes one or more tags from a resource. +%% +%% Specify only tag keys in your request. Don't specify the value. +-spec untag_resource(aws_client:aws_client(), untag_resource_request()) -> + {ok, untag_resource_response(), tuple()} | + {error, any()} | + {error, untag_resource_errors(), tuple()}. +untag_resource(Client, Input) + when is_map(Client), is_map(Input) -> + untag_resource(Client, Input, []). + +-spec untag_resource(aws_client:aws_client(), untag_resource_request(), proplists:proplist()) -> + {ok, untag_resource_response(), tuple()} | + {error, any()} | + {error, untag_resource_errors(), tuple()}. +untag_resource(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"UntagResource">>, Input, Options). + +%% @doc An API to update the attributes of the billing view. +-spec update_billing_view(aws_client:aws_client(), update_billing_view_request()) -> + {ok, update_billing_view_response(), tuple()} | + {error, any()} | + {error, update_billing_view_errors(), tuple()}. +update_billing_view(Client, Input) + when is_map(Client), is_map(Input) -> + update_billing_view(Client, Input, []). + +-spec update_billing_view(aws_client:aws_client(), update_billing_view_request(), proplists:proplist()) -> + {ok, update_billing_view_response(), tuple()} | + {error, any()} | + {error, update_billing_view_errors(), tuple()}. +update_billing_view(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"UpdateBillingView">>, Input, Options). + %%==================================================================== %% Internal functions %%==================================================================== diff --git a/src/aws_connect.erl b/src/aws_connect.erl index a32e8752..d95c6f15 100644 --- a/src/aws_connect.erl +++ b/src/aws_connect.erl @@ -971,6 +971,14 @@ %% } -type user_summary() :: #{binary() => any()}. + +%% Example: +%% range() :: #{ +%% <<"MaxProficiencyLevel">> => float(), +%% <<"MinProficiencyLevel">> => float() +%% } +-type range() :: #{binary() => any()}. + %% Example: %% describe_user_hierarchy_structure_request() :: #{} -type describe_user_hierarchy_structure_request() :: #{}. @@ -1131,6 +1139,7 @@ %% <<"MatchCriteria">> => match_criteria(), %% <<"Name">> => string(), %% <<"ProficiencyLevel">> => float(), +%% <<"Range">> => range(), %% <<"Value">> => string() %% } -type attribute_condition() :: #{binary() => any()}. @@ -6292,6 +6301,7 @@ %% expression() :: #{ %% <<"AndExpression">> => list(expression()()), %% <<"AttributeCondition">> => attribute_condition(), +%% <<"NotAttributeCondition">> => attribute_condition(), %% <<"OrExpression">> => list(expression()()) %% } -type expression() :: #{binary() => any()}. diff --git a/src/aws_cost_explorer.erl b/src/aws_cost_explorer.erl index 960aa822..5acefd84 100644 --- a/src/aws_cost_explorer.erl +++ b/src/aws_cost_explorer.erl @@ -242,6 +242,7 @@ %% Example: %% get_tags_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Filter">> => expression(), %% <<"MaxResults">> => integer(), %% <<"NextPageToken">> => string(), @@ -254,6 +255,7 @@ %% Example: %% get_cost_and_usage_with_resources_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Filter">> := expression(), %% <<"Granularity">> := list(any()), %% <<"GroupBy">> => list(group_definition()()), @@ -612,6 +614,7 @@ %% Example: %% get_cost_forecast_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Filter">> => expression(), %% <<"Granularity">> := list(any()), %% <<"Metric">> := list(any()), @@ -868,6 +871,7 @@ %% Example: %% get_cost_and_usage_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Filter">> => expression(), %% <<"Granularity">> := list(any()), %% <<"GroupBy">> => list(group_definition()()), @@ -1129,6 +1133,7 @@ %% Example: %% get_usage_forecast_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Filter">> => expression(), %% <<"Granularity">> := list(any()), %% <<"Metric">> := list(any()), @@ -1717,6 +1722,7 @@ %% Example: %% get_dimension_values_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"Context">> => list(any()), %% <<"Dimension">> := list(any()), %% <<"Filter">> => expression(), @@ -1804,6 +1810,7 @@ %% Example: %% get_cost_categories_request() :: #{ +%% <<"BillingViewArn">> => string(), %% <<"CostCategoryName">> => string(), %% <<"Filter">> => expression(), %% <<"MaxResults">> => integer(), @@ -1928,32 +1935,37 @@ bill_expiration_exception() | data_unavailable_exception() | invalid_next_token_exception() | - request_changed_exception(). + request_changed_exception() | + resource_not_found_exception(). -type get_cost_and_usage_with_resources_errors() :: limit_exceeded_exception() | bill_expiration_exception() | data_unavailable_exception() | invalid_next_token_exception() | - request_changed_exception(). + request_changed_exception() | + resource_not_found_exception(). -type get_cost_categories_errors() :: limit_exceeded_exception() | bill_expiration_exception() | data_unavailable_exception() | invalid_next_token_exception() | - request_changed_exception(). + request_changed_exception() | + resource_not_found_exception(). -type get_cost_forecast_errors() :: limit_exceeded_exception() | - data_unavailable_exception(). + data_unavailable_exception() | + resource_not_found_exception(). -type get_dimension_values_errors() :: limit_exceeded_exception() | bill_expiration_exception() | data_unavailable_exception() | invalid_next_token_exception() | - request_changed_exception(). + request_changed_exception() | + resource_not_found_exception(). -type get_reservation_coverage_errors() :: limit_exceeded_exception() | @@ -2001,12 +2013,14 @@ bill_expiration_exception() | data_unavailable_exception() | invalid_next_token_exception() | - request_changed_exception(). + request_changed_exception() | + resource_not_found_exception(). -type get_usage_forecast_errors() :: limit_exceeded_exception() | unresolvable_usage_unit_exception() | - data_unavailable_exception(). + data_unavailable_exception() | + resource_not_found_exception(). -type list_commitment_purchase_analyses_errors() :: limit_exceeded_exception() | diff --git a/src/aws_docdb.erl b/src/aws_docdb.erl index 03abeacf..86114212 100644 --- a/src/aws_docdb.erl +++ b/src/aws_docdb.erl @@ -731,6 +731,14 @@ %% } -type add_source_identifier_to_subscription_result() :: #{binary() => any()}. +%% Example: +%% cluster_master_user_secret() :: #{ +%% <<"KmsKeyId">> => string(), +%% <<"SecretArn">> => string(), +%% <<"SecretStatus">> => string() +%% } +-type cluster_master_user_secret() :: #{binary() => any()}. + %% Example: %% db_parameter_group_already_exists_fault() :: #{ %% <<"message">> => string() @@ -1083,7 +1091,9 @@ %% <<"EngineVersion">> => string(), %% <<"GlobalClusterIdentifier">> => string(), %% <<"KmsKeyId">> => string(), +%% <<"ManageMasterUserPassword">> => boolean(), %% <<"MasterUserPassword">> => string(), +%% <<"MasterUserSecretKmsKeyId">> => string(), %% <<"MasterUsername">> => string(), %% <<"Port">> => integer(), %% <<"PreSignedUrl">> => string(), @@ -1279,6 +1289,7 @@ %% <<"Engine">> => string(), %% <<"DBClusterMembers">> => list(db_cluster_member()()), %% <<"ClusterCreateTime">> => non_neg_integer(), +%% <<"MasterUserSecret">> => cluster_master_user_secret(), %% <<"DBClusterParameterGroup">> => string(), %% <<"HostedZoneId">> => string(), %% <<"DBSubnetGroup">> => string(), @@ -1567,11 +1578,14 @@ %% <<"DBClusterParameterGroupName">> => string(), %% <<"DeletionProtection">> => boolean(), %% <<"EngineVersion">> => string(), +%% <<"ManageMasterUserPassword">> => boolean(), %% <<"MasterUserPassword">> => string(), +%% <<"MasterUserSecretKmsKeyId">> => string(), %% <<"NewDBClusterIdentifier">> => string(), %% <<"Port">> => integer(), %% <<"PreferredBackupWindow">> => string(), %% <<"PreferredMaintenanceWindow">> => string(), +%% <<"RotateMasterUserPassword">> => boolean(), %% <<"StorageType">> => string(), %% <<"VpcSecurityGroupIds">> => list(string()()) %% } diff --git a/src/aws_eks.erl b/src/aws_eks.erl index 82d89459..17ffa8c8 100644 --- a/src/aws_eks.erl +++ b/src/aws_eks.erl @@ -510,6 +510,14 @@ -type update_access_entry_request() :: #{binary() => any()}. +%% Example: +%% addon_compatibility_detail() :: #{ +%% <<"compatibleVersions">> => list(string()()), +%% <<"name">> => string() +%% } +-type addon_compatibility_detail() :: #{binary() => any()}. + + %% Example: %% nodegroup() :: #{ %% <<"amiType">> => list(any()), @@ -1834,6 +1842,7 @@ %% Example: %% insight_category_specific_summary() :: #{ +%% <<"addonCompatibilityDetails">> => list(addon_compatibility_detail()()), %% <<"deprecationDetails">> => list(deprecation_detail()()) %% } -type insight_category_specific_summary() :: #{binary() => any()}. diff --git a/src/aws_macie2.erl b/src/aws_macie2.erl index 5c6f841f..98afe8ad 100644 --- a/src/aws_macie2.erl +++ b/src/aws_macie2.erl @@ -5319,8 +5319,8 @@ list_classification_scopes(Client, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Retrieves a subset of information about all the custom data -%% identifiers for an account. +%% @doc Retrieves a subset of information about the custom data identifiers +%% for an account. -spec list_custom_data_identifiers(aws_client:aws_client(), list_custom_data_identifiers_request()) -> {ok, list_custom_data_identifiers_response(), tuple()} | {error, any()} | @@ -5830,7 +5830,8 @@ put_findings_publication_configuration(Client, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves (queries) statistical data and other information about -%% Amazon Web Services resources that Amazon Macie monitors and analyzes. +%% Amazon Web Services resources that Amazon Macie monitors and analyzes for +%% an account. -spec search_resources(aws_client:aws_client(), search_resources_request()) -> {ok, search_resources_response(), tuple()} | {error, any()} | diff --git a/src/aws_outposts.erl b/src/aws_outposts.erl index f652d476..03b852d0 100644 --- a/src/aws_outposts.erl +++ b/src/aws_outposts.erl @@ -2180,7 +2180,7 @@ list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap, Options0) %% @doc Starts the specified capacity task. %% -%% You can have one active capacity task per order or Outpost. +%% You can have one active capacity task for each order and each Outpost. -spec start_capacity_task(aws_client:aws_client(), binary() | list(), start_capacity_task_input()) -> {ok, start_capacity_task_output(), tuple()} | {error, any()} | diff --git a/src/aws_sagemaker.erl b/src/aws_sagemaker.erl index 351422c0..f28b319f 100644 --- a/src/aws_sagemaker.erl +++ b/src/aws_sagemaker.erl @@ -13471,8 +13471,8 @@ create_algorithm(Client, Input, Options) %% @doc Creates a running app for the specified UserProfile. %% %% This operation is automatically -%% invoked by Amazon SageMaker upon access to the associated Domain, and when -%% new kernel +%% invoked by Amazon SageMaker AI upon access to the associated Domain, and +%% when new kernel %% configurations are selected by the user. A user may have multiple Apps %% active %% simultaneously. @@ -13492,7 +13492,7 @@ create_app(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateApp">>, Input, Options). -%% @doc Creates a configuration for running a SageMaker image as a +%% @doc Creates a configuration for running a SageMaker AI image as a %% KernelGateway app. %% %% The @@ -13543,13 +13543,13 @@ create_artifact(Client, Input, Options) %% @doc Creates an Autopilot job also referred to as Autopilot experiment or %% AutoML job. %% -%% An AutoML job in SageMaker is a fully automated process that allows you to -%% build machine +%% An AutoML job in SageMaker AI is a fully automated process that allows you +%% to build machine %% learning models with minimal effort and machine learning expertise. When %% initiating an %% AutoML job, you provide your data and optionally specify parameters %% tailored to your use -%% case. SageMaker then automates the entire model development lifecycle, +%% case. SageMaker AI then automates the entire model development lifecycle, %% including data %% preprocessing, model training, tuning, and evaluation. AutoML jobs are %% designed to simplify @@ -13559,14 +13559,14 @@ create_artifact(Client, Input, Options) %% techniques, and %% hyperparameter values. The output of an AutoML job comprises one or more %% trained models -%% ready for deployment and inference. Additionally, SageMaker AutoML jobs +%% ready for deployment and inference. Additionally, SageMaker AI AutoML jobs %% generate a candidate %% model leaderboard, allowing you to select the best-performing model for %% deployment. %% %% For more information about AutoML jobs, see %% [https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html] -%% in the SageMaker developer guide. +%% in the SageMaker AI developer guide. %% %% We recommend using the new versions CreateAutoMLJobV2: %% https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateAutoMLJobV2.html @@ -13610,13 +13610,13 @@ create_auto_ml_job(Client, Input, Options) %% @doc Creates an Autopilot job also referred to as Autopilot experiment or %% AutoML job V2. %% -%% An AutoML job in SageMaker is a fully automated process that allows you to -%% build machine +%% An AutoML job in SageMaker AI is a fully automated process that allows you +%% to build machine %% learning models with minimal effort and machine learning expertise. When %% initiating an %% AutoML job, you provide your data and optionally specify parameters %% tailored to your use -%% case. SageMaker then automates the entire model development lifecycle, +%% case. SageMaker AI then automates the entire model development lifecycle, %% including data %% preprocessing, model training, tuning, and evaluation. AutoML jobs are %% designed to simplify @@ -13626,14 +13626,14 @@ create_auto_ml_job(Client, Input, Options) %% techniques, and %% hyperparameter values. The output of an AutoML job comprises one or more %% trained models -%% ready for deployment and inference. Additionally, SageMaker AutoML jobs +%% ready for deployment and inference. Additionally, SageMaker AI AutoML jobs %% generate a candidate %% model leaderboard, allowing you to select the best-performing model for %% deployment. %% %% For more information about AutoML jobs, see %% [https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html] -%% in the SageMaker developer guide. +%% in the SageMaker AI developer guide. %% %% AutoML jobs V2 support various problem types such as regression, binary, %% and multiclass @@ -13735,13 +13735,13 @@ create_cluster_scheduler_config(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateClusterSchedulerConfig">>, Input, Options). -%% @doc Creates a Git repository as a resource in your SageMaker account. +%% @doc Creates a Git repository as a resource in your SageMaker AI account. %% %% You can %% associate the repository with notebook instances so that you can use Git %% source control %% for the notebooks you create. The Git repository is a resource in your -%% SageMaker +%% SageMaker AI %% account, so it can be associated with more than one notebook instance, and %% it persists %% independently from the lifecycle of any notebook instances it is @@ -13766,13 +13766,13 @@ create_code_repository(Client, Input, Options) %% @doc Starts a model compilation job. %% -%% After the model has been compiled, Amazon SageMaker saves the +%% After the model has been compiled, Amazon SageMaker AI saves the %% resulting model artifacts to an Amazon Simple Storage Service (Amazon S3) %% bucket that you specify. %% %% If -%% you choose to host your model using Amazon SageMaker hosting services, you -%% can use the resulting +%% you choose to host your model using Amazon SageMaker AI hosting services, +%% you can use the resulting %% model artifacts as part of the model. You can also use the artifacts with %% Amazon Web Services IoT Greengrass. In that case, deploy them as an ML %% resource. @@ -13787,7 +13787,7 @@ create_code_repository(Client, Input, Options) %% the %% model runs on %% -%% The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker +%% The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker AI %% assumes to perform %% the model compilation job. %% @@ -13871,7 +13871,7 @@ create_context(Client, Input, Options) %% @doc Creates a definition for a job that monitors data quality and drift. %% %% For information -%% about model monitor, see Amazon SageMaker Model +%% about model monitor, see Amazon SageMaker AI Model %% Monitor: %% https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html. -spec create_data_quality_job_definition(aws_client:aws_client(), create_data_quality_job_definition_request()) -> @@ -13924,8 +13924,8 @@ create_device_fleet(Client, Input, Options) %% for notebooks, Git %% repositories, and data files. %% -%% SageMaker uses the Amazon Web Services Key Management Service (Amazon Web -%% Services +%% SageMaker AI uses the Amazon Web Services Key Management Service (Amazon +%% Web Services %% KMS) to encrypt the EFS volume attached to the domain with an Amazon Web %% Services managed key %% by default. For more control, you can specify a customer managed key. For @@ -13946,7 +13946,8 @@ create_device_fleet(Client, Input, Options) %% available: %% %% `PublicInternetOnly' - Non-EFS traffic goes through a VPC managed by -%% Amazon SageMaker, which allows internet access. This is the default value. +%% Amazon SageMaker AI, which allows internet access. This is the default +%% value. %% %% `VpcOnly' - All traffic is through the specified VPC and subnets. %% Internet @@ -13955,18 +13956,18 @@ create_device_fleet(Client, Input, Options) %% gateway. %% %% When internet access is disabled, you won't be able to run a Amazon -%% SageMaker +%% SageMaker AI %% Studio notebook or to train or host models unless your VPC has an %% interface endpoint to -%% the SageMaker API and runtime or a NAT gateway and your security groups +%% the SageMaker AI API and runtime or a NAT gateway and your security groups %% allow %% outbound connections. %% %% NFS traffic over TCP on port 2049 needs to be allowed in both inbound and %% outbound rules -%% in order to launch a Amazon SageMaker Studio app successfully. +%% in order to launch a Amazon SageMaker AI Studio app successfully. %% -%% For more information, see Connect Amazon SageMaker Studio Notebooks to +%% For more information, see Connect Amazon SageMaker AI Studio Notebooks to %% Resources in a VPC: %% https://docs.aws.amazon.com/sagemaker/latest/dg/studio-notebooks-and-internet-access.html. -spec create_domain(aws_client:aws_client(), create_domain_request()) -> @@ -14457,12 +14458,12 @@ create_hyper_parameter_tuning_job(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateHyperParameterTuningJob">>, Input, Options). -%% @doc Creates a custom SageMaker image. +%% @doc Creates a custom SageMaker AI image. %% -%% A SageMaker image is a set of image versions. Each image +%% A SageMaker AI image is a set of image versions. Each image %% version represents a container image stored in Amazon ECR. For more %% information, see -%% Bring your own SageMaker image: +%% Bring your own SageMaker AI image: %% https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi.html. -spec create_image(aws_client:aws_client(), create_image_request()) -> {ok, create_image_response(), tuple()} | @@ -14480,7 +14481,7 @@ create_image(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateImage">>, Input, Options). -%% @doc Creates a version of the SageMaker image specified by +%% @doc Creates a version of the SageMaker AI image specified by %% `ImageName'. %% %% The version @@ -14501,8 +14502,8 @@ create_image_version(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateImageVersion">>, Input, Options). -%% @doc Creates an inference component, which is a SageMaker hosting object -%% that you can +%% @doc Creates an inference component, which is a SageMaker AI hosting +%% object that you can %% use to deploy a model to an endpoint. %% %% In the inference component settings, you specify the @@ -14866,7 +14867,7 @@ create_model_package_group(Client, Input, Options) %% @doc Creates a definition for a job that monitors model quality and drift. %% %% For information -%% about model monitor, see Amazon SageMaker Model +%% about model monitor, see Amazon SageMaker AI Model %% Monitor: %% https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html. -spec create_model_quality_job_definition(aws_client:aws_client(), create_model_quality_job_definition_request()) -> @@ -14885,9 +14886,9 @@ create_model_quality_job_definition(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateModelQualityJobDefinition">>, Input, Options). -%% @doc Creates a schedule that regularly starts Amazon SageMaker Processing -%% Jobs to -%% monitor the data captured for an Amazon SageMaker Endpoint. +%% @doc Creates a schedule that regularly starts Amazon SageMaker AI +%% Processing Jobs to +%% monitor the data captured for an Amazon SageMaker AI Endpoint. -spec create_monitoring_schedule(aws_client:aws_client(), create_monitoring_schedule_request()) -> {ok, create_monitoring_schedule_response(), tuple()} | {error, any()} | @@ -14904,53 +14905,53 @@ create_monitoring_schedule(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateMonitoringSchedule">>, Input, Options). -%% @doc Creates an SageMaker notebook instance. +%% @doc Creates an SageMaker AI notebook instance. %% %% A notebook instance is a machine %% learning (ML) compute instance running on a Jupyter notebook. %% %% In a `CreateNotebookInstance' request, specify the type of ML compute -%% instance that you want to run. SageMaker launches the instance, installs -%% common +%% instance that you want to run. SageMaker AI launches the instance, +%% installs common %% libraries that you can use to explore datasets for model training, and %% attaches an ML %% storage volume to the notebook instance. %% -%% SageMaker also provides a set of example notebooks. Each notebook -%% demonstrates how to use SageMaker with a specific algorithm or with a +%% SageMaker AI also provides a set of example notebooks. Each notebook +%% demonstrates how to use SageMaker AI with a specific algorithm or with a %% machine %% learning framework. %% -%% After receiving the request, SageMaker does the following: +%% After receiving the request, SageMaker AI does the following: %% -%% Creates a network interface in the SageMaker VPC. +%% Creates a network interface in the SageMaker AI VPC. %% -%% (Option) If you specified `SubnetId', SageMaker creates +%% (Option) If you specified `SubnetId', SageMaker AI creates %% a network interface in your own VPC, which is inferred from the subnet ID %% that %% you provide in the input. When creating this network interface, SageMaker -%% attaches the security group that you specified in the request to the +%% AI attaches the security group that you specified in the request to the %% network %% interface that it creates in your VPC. %% %% Launches an EC2 instance of the type specified in the request in the -%% SageMaker VPC. If you specified `SubnetId' of your VPC, -%% SageMaker specifies both network interfaces when launching this +%% SageMaker AI VPC. If you specified `SubnetId' of your VPC, +%% SageMaker AI specifies both network interfaces when launching this %% instance. This enables inbound traffic from your own VPC to the notebook %% instance, assuming that the security groups allow it. %% -%% After creating the notebook instance, SageMaker returns its Amazon +%% After creating the notebook instance, SageMaker AI returns its Amazon %% Resource %% Name (ARN). You can't change the name of a notebook instance after you %% create %% it. %% -%% After SageMaker creates the notebook instance, you can connect to the +%% After SageMaker AI creates the notebook instance, you can connect to the %% Jupyter server and work in Jupyter notebooks. For example, you can write %% code to explore %% a dataset that you can use for model training, train a model, host models %% by creating -%% SageMaker endpoints, and validate hosted models. +%% SageMaker AI endpoints, and validate hosted models. %% %% For more information, see How It Works: %% https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html. @@ -15113,7 +15114,7 @@ create_pipeline(Client, Input, Options) %% You can restrict access to this API and to the URL that it returns to a %% list of IP %% addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more -%% information, see Connect to Amazon SageMaker +%% information, see Connect to Amazon SageMaker AI %% Studio Through an Interface VPC Endpoint: %% https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html %% . @@ -15168,8 +15169,8 @@ create_presigned_mlflow_tracking_server_url(Client, Input, Options) %% a notebook %% instance. %% -%% In the SageMaker console, when you choose `Open' next to a -%% notebook instance, SageMaker opens a new tab showing the Jupyter server +%% In the SageMaker AI console, when you choose `Open' next to a +%% notebook instance, SageMaker AI opens a new tab showing the Jupyter server %% home %% page from the notebook instance. The console uses this API to get the URL %% and show the @@ -15266,7 +15267,7 @@ create_space(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"CreateSpace">>, Input, Options). -%% @doc Creates a new Amazon SageMaker Studio Lifecycle Configuration. +%% @doc Creates a new Amazon SageMaker AI Studio Lifecycle Configuration. -spec create_studio_lifecycle_config(aws_client:aws_client(), create_studio_lifecycle_config_request()) -> {ok, create_studio_lifecycle_config_response(), tuple()} | {error, any()} | @@ -15831,8 +15832,8 @@ delete_code_repository(Client, Input, Options) %% @doc Deletes the specified compilation job. %% %% This action deletes only the compilation job -%% resource in Amazon SageMaker. It doesn't delete other resources that -%% are related to +%% resource in Amazon SageMaker AI. It doesn't delete other resources +%% that are related to %% that job, such as the model artifacts that the job creates, the %% compilation logs in %% CloudWatch, the compiled model, or the IAM role. @@ -16223,7 +16224,7 @@ delete_hyper_parameter_tuning_job(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteHyperParameterTuningJob">>, Input, Options). -%% @doc Deletes a SageMaker image and all versions of the image. +%% @doc Deletes a SageMaker AI image and all versions of the image. %% %% The container images aren't %% deleted. @@ -16243,7 +16244,7 @@ delete_image(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteImage">>, Input, Options). -%% @doc Deletes a version of a SageMaker image. +%% @doc Deletes a version of a SageMaker AI image. %% %% The container image the version represents isn't %% deleted. @@ -16341,7 +16342,7 @@ delete_model(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteModel">>, Input, Options). -%% @doc Deletes an Amazon SageMaker model bias job definition. +%% @doc Deletes an Amazon SageMaker AI model bias job definition. -spec delete_model_bias_job_definition(aws_client:aws_client(), delete_model_bias_job_definition_request()) -> {ok, undefined, tuple()} | {error, any()} | @@ -16375,7 +16376,7 @@ delete_model_card(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteModelCard">>, Input, Options). -%% @doc Deletes an Amazon SageMaker model explainability job definition. +%% @doc Deletes an Amazon SageMaker AI model explainability job definition. -spec delete_model_explainability_job_definition(aws_client:aws_client(), delete_model_explainability_job_definition_request()) -> {ok, undefined, tuple()} | {error, any()} | @@ -16483,13 +16484,14 @@ delete_monitoring_schedule(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteMonitoringSchedule">>, Input, Options). -%% @doc Deletes an SageMaker notebook instance. +%% @doc Deletes an SageMaker AI notebook instance. %% %% Before you can delete a notebook %% instance, you must call the `StopNotebookInstance' API. %% %% When you delete a notebook instance, you lose all of your data. SageMaker -%% removes the ML compute instance, and deletes the ML storage volume and the +%% AI removes the ML compute instance, and deletes the ML storage volume and +%% the %% network interface associated with the notebook instance. -spec delete_notebook_instance(aws_client:aws_client(), delete_notebook_instance_input()) -> {ok, undefined, tuple()} | @@ -16611,7 +16613,7 @@ delete_space(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteSpace">>, Input, Options). -%% @doc Deletes the Amazon SageMaker Studio Lifecycle Configuration. +%% @doc Deletes the Amazon SageMaker AI Studio Lifecycle Configuration. %% %% In order to delete the %% Lifecycle Configuration, there must be no running apps using the Lifecycle @@ -17336,7 +17338,7 @@ describe_hyper_parameter_tuning_job(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeHyperParameterTuningJob">>, Input, Options). -%% @doc Describes a SageMaker image. +%% @doc Describes a SageMaker AI image. -spec describe_image(aws_client:aws_client(), describe_image_request()) -> {ok, describe_image_response(), tuple()} | {error, any()} | @@ -17353,7 +17355,7 @@ describe_image(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeImage">>, Input, Options). -%% @doc Describes a version of a SageMaker image. +%% @doc Describes a version of a SageMaker AI image. -spec describe_image_version(aws_client:aws_client(), describe_image_version_request()) -> {ok, describe_image_version_response(), tuple()} | {error, any()} | @@ -17806,7 +17808,7 @@ describe_space(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DescribeSpace">>, Input, Options). -%% @doc Describes the Amazon SageMaker Studio Lifecycle Configuration. +%% @doc Describes the Amazon SageMaker AI Studio Lifecycle Configuration. -spec describe_studio_lifecycle_config(aws_client:aws_client(), describe_studio_lifecycle_config_request()) -> {ok, describe_studio_lifecycle_config_response(), tuple()} | {error, any()} | @@ -19127,7 +19129,7 @@ list_notebook_instance_lifecycle_configs(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"ListNotebookInstanceLifecycleConfigs">>, Input, Options). -%% @doc Returns a list of the SageMaker notebook instances in the +%% @doc Returns a list of the SageMaker AI notebook instances in the %% requester's %% account in an Amazon Web Services Region. -spec list_notebook_instances(aws_client:aws_client(), list_notebook_instances_input()) -> @@ -19320,7 +19322,7 @@ list_stage_devices(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"ListStageDevices">>, Input, Options). -%% @doc Lists the Amazon SageMaker Studio Lifecycle Configurations in your +%% @doc Lists the Amazon SageMaker AI Studio Lifecycle Configurations in your %% Amazon Web Services %% Account. -spec list_studio_lifecycle_configs(aws_client:aws_client(), list_studio_lifecycle_configs_request()) -> @@ -19852,7 +19854,7 @@ start_monitoring_schedule(Client, Input, Options) %% libraries and %% attaches your ML storage volume. %% -%% After configuring the notebook instance, SageMaker sets the notebook +%% After configuring the notebook instance, SageMaker AI sets the notebook %% instance status to `InService'. A notebook %% instance's status must be `InService' before you can connect to %% your Jupyter @@ -19909,11 +19911,11 @@ stop_auto_ml_job(Client, Input, Options) %% @doc Stops a model compilation job. %% -%% To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. +%% To stop a job, Amazon SageMaker AI sends the algorithm the SIGTERM signal. %% This gracefully shuts the %% job down. If the job hasn't stopped, it sends the SIGKILL signal. %% -%% When it receives a `StopCompilationJob' request, Amazon SageMaker +%% When it receives a `StopCompilationJob' request, Amazon SageMaker AI %% changes the %% `CompilationJobStatus' of the job to `Stopping'. After Amazon %% SageMaker stops the job, it sets the `CompilationJobStatus' to @@ -20082,9 +20084,9 @@ stop_monitoring_schedule(Client, Input, Options) %% @doc Terminates the ML compute instance. %% -%% Before terminating the instance, SageMaker disconnects the ML storage -%% volume from it. SageMaker preserves the -%% ML storage volume. SageMaker stops charging you for the ML compute +%% Before terminating the instance, SageMaker AI disconnects the ML storage +%% volume from it. SageMaker AI preserves the +%% ML storage volume. SageMaker AI stops charging you for the ML compute %% instance when %% you call `StopNotebookInstance'. %% @@ -20629,7 +20631,7 @@ update_hub(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"UpdateHub">>, Input, Options). -%% @doc Updates the properties of a SageMaker image. +%% @doc Updates the properties of a SageMaker AI image. %% %% To change the image's tags, use the %% AddTags: @@ -20653,7 +20655,7 @@ update_image(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"UpdateImage">>, Input, Options). -%% @doc Updates the properties of a SageMaker image version. +%% @doc Updates the properties of a SageMaker AI image version. -spec update_image_version(aws_client:aws_client(), update_image_version_request()) -> {ok, update_image_version_response(), tuple()} | {error, any()} | @@ -20936,6 +20938,8 @@ update_project(Client, Input, Options) request(Client, <<"UpdateProject">>, Input, Options). %% @doc Updates the settings of a space. +%% +%% You can't edit the app type of a space in the `SpaceSettings'. -spec update_space(aws_client:aws_client(), update_space_request()) -> {ok, update_space_response(), tuple()} | {error, any()} |