Skip to content

Commit

Permalink
Update services based on release-2024-12-03.2 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 4, 2024
1 parent 1212f49 commit d432511
Show file tree
Hide file tree
Showing 19 changed files with 8,815 additions and 170 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-02
release-2024-12-03.2
25 changes: 23 additions & 2 deletions src/aws_athena.erl
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,16 @@
%% Example:
%% data_catalog_summary() :: #{
%% <<"CatalogName">> => string(),
%% <<"ConnectionType">> => list(any()),
%% <<"Error">> => string(),
%% <<"Status">> => list(any()),
%% <<"Type">> => list(any())
%% }
-type data_catalog_summary() :: #{binary() => any()}.

%% Example:
%% delete_data_catalog_input() :: #{
%% <<"DeleteCatalogOnly">> => boolean(),
%% <<"Name">> := string()
%% }
-type delete_data_catalog_input() :: #{binary() => any()}.
Expand Down Expand Up @@ -654,9 +658,12 @@

%% Example:
%% data_catalog() :: #{
%% <<"ConnectionType">> => list(any()),
%% <<"Description">> => string(),
%% <<"Error">> => string(),
%% <<"Name">> => string(),
%% <<"Parameters">> => map(),
%% <<"Status">> => list(any()),
%% <<"Type">> => list(any())
%% }
-type data_catalog() :: #{binary() => any()}.
Expand Down Expand Up @@ -978,7 +985,7 @@

%% Example:
%% delete_data_catalog_output() :: #{

%% <<"DataCatalog">> => data_catalog()
%% }
-type delete_data_catalog_output() :: #{binary() => any()}.

Expand Down Expand Up @@ -1081,7 +1088,7 @@

%% Example:
%% create_data_catalog_output() :: #{

%% <<"DataCatalog">> => data_catalog()
%% }
-type create_data_catalog_output() :: #{binary() => any()}.

Expand Down Expand Up @@ -2170,6 +2177,20 @@ create_capacity_reservation(Client, Input, Options)
%%
%% Catalogs
%% created are visible to all users of the same Amazon Web Services account.
%%
%% This API operation creates the following resources.
%%
%% CFN Stack Name with a maximum length of 128 characters and prefix
%% `athenafederatedcatalog-CATALOG_NAME_SANITIZED' with length 23
%% characters.
%%
%% Lambda Function Name with a maximum length of 64 characters and prefix
%% `athenafederatedcatalog_CATALOG_NAME_SANITIZED' with length 23
%% characters.
%%
%% Glue Connection Name with a maximum length of 255 characters and a prefix
%% `athenafederatedcatalog_CATALOG_NAME_SANITIZED' with length 23
%% characters.
-spec create_data_catalog(aws_client:aws_client(), create_data_catalog_input()) ->
{ok, create_data_catalog_output(), tuple()} |
{error, any()} |
Expand Down
51 changes: 44 additions & 7 deletions src/aws_bedrock.erl
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,15 @@
-type stop_evaluation_job_request() :: #{}.


%% Example:
%% invocation_logs_config() :: #{
%% <<"invocationLogSource">> => list(),
%% <<"requestMetadataFilters">> => list(),
%% <<"usePromptResponse">> => boolean()
%% }
-type invocation_logs_config() :: #{binary() => any()}.


%% Example:
%% list_inference_profiles_response() :: #{
%% <<"inferenceProfileSummaries">> => list(inference_profile_summary()()),
Expand Down Expand Up @@ -569,7 +578,8 @@
%% <<"embeddingDataDeliveryEnabled">> => [boolean()],
%% <<"imageDataDeliveryEnabled">> => [boolean()],
%% <<"s3Config">> => s3_config(),
%% <<"textDataDeliveryEnabled">> => [boolean()]
%% <<"textDataDeliveryEnabled">> => [boolean()],
%% <<"videoDataDeliveryEnabled">> => [boolean()]
%% }
-type logging_config() :: #{binary() => any()}.

Expand Down Expand Up @@ -898,6 +908,7 @@
%% get_custom_model_response() :: #{
%% <<"baseModelArn">> => string(),
%% <<"creationTime">> => non_neg_integer(),
%% <<"customizationConfig">> => list(),
%% <<"customizationType">> => list(any()),
%% <<"hyperParameters">> => map(),
%% <<"jobArn">> => string(),
Expand Down Expand Up @@ -980,6 +991,14 @@
-type create_provisioned_model_throughput_request() :: #{binary() => any()}.


%% Example:
%% teacher_model_config() :: #{
%% <<"maxResponseLengthForInference">> => [integer()],
%% <<"teacherModelIdentifier">> => string()
%% }
-type teacher_model_config() :: #{binary() => any()}.


%% Example:
%% vpc_config() :: #{
%% <<"securityGroupIds">> => list(string()()),
Expand Down Expand Up @@ -1208,6 +1227,13 @@
-type delete_imported_model_request() :: #{}.


%% Example:
%% distillation_config() :: #{
%% <<"teacherModelConfig">> => teacher_model_config()
%% }
-type distillation_config() :: #{binary() => any()}.


%% Example:
%% internal_server_exception() :: #{
%% <<"message">> => string()
Expand Down Expand Up @@ -1329,8 +1355,9 @@
%% <<"customModelKmsKeyId">> => string(),
%% <<"customModelName">> := string(),
%% <<"customModelTags">> => list(tag()()),
%% <<"customizationConfig">> => list(),
%% <<"customizationType">> => list(any()),
%% <<"hyperParameters">> := map(),
%% <<"hyperParameters">> => map(),
%% <<"jobName">> := string(),
%% <<"jobTags">> => list(tag()()),
%% <<"outputDataConfig">> := output_data_config(),
Expand Down Expand Up @@ -1468,6 +1495,7 @@
%% <<"baseModelArn">> => string(),
%% <<"clientRequestToken">> => string(),
%% <<"creationTime">> => non_neg_integer(),
%% <<"customizationConfig">> => list(),
%% <<"customizationType">> => list(any()),
%% <<"endTime">> => non_neg_integer(),
%% <<"failureMessage">> => string(),
Expand Down Expand Up @@ -1658,6 +1686,14 @@
-type model_invocation_job_summary() :: #{binary() => any()}.


%% Example:
%% request_metadata_base_filters() :: #{
%% <<"equals">> => map(),
%% <<"notEquals">> => map()
%% }
-type request_metadata_base_filters() :: #{binary() => any()}.


%% Example:
%% kb_inference_config() :: #{
%% <<"textInferenceConfig">> => text_inference_config()
Expand All @@ -1683,6 +1719,7 @@

%% Example:
%% training_data_config() :: #{
%% <<"invocationLogsConfig">> => invocation_logs_config(),
%% <<"s3Uri">> => string()
%% }
-type training_data_config() :: #{binary() => any()}.
Expand Down Expand Up @@ -2257,7 +2294,7 @@ create_evaluation_job(Client, Input0, Options0) ->
%% the user if a user input or model response is in violation of the policies
%% defined in the guardrail.
%%
%% For more information, see Guardrails for Amazon Bedrock:
%% For more information, see Amazon Bedrock Guardrails:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html in
%% the Amazon Bedrock User Guide.
-spec create_guardrail(aws_client:aws_client(), create_guardrail_request()) ->
Expand Down Expand Up @@ -3199,8 +3236,8 @@ get_model_import_job(Client, JobIdentifier, QueryMap, HeadersMap, Options0)

%% @doc Gets details about a batch inference job.
%%
%% For more information, see View details about a batch inference job:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view
%% For more information, see Monitor batch inference jobs:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-monitor
-spec get_model_invocation_job(aws_client:aws_client(), binary() | list()) ->
{ok, get_model_invocation_job_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -3796,7 +3833,7 @@ list_model_import_jobs(Client, QueryMap, HeadersMap, Options0)
%% @doc Lists all batch inference jobs in the account.
%%
%% For more information, see View details about a batch inference job:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-view.
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-view.html.
-spec list_model_invocation_jobs(aws_client:aws_client()) ->
{ok, list_model_invocation_jobs_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -4048,7 +4085,7 @@ stop_model_customization_job(Client, JobIdentifier, Input0, Options0) ->
%%
%% You're only charged for tokens that were already processed. For more
%% information, see Stop a batch inference job:
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-manage.html#batch-inference-stop.
%% https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-stop.html.
-spec stop_model_invocation_job(aws_client:aws_client(), binary() | list(), stop_model_invocation_job_request()) ->
{ok, stop_model_invocation_job_response(), tuple()} |
{error, any()} |
Expand Down
Loading

0 comments on commit d432511

Please sign in to comment.