Skip to content

Commit

Permalink
Update services based on release-2024-09-20 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Sep 21, 2024
1 parent e88a2ed commit 0d8be2b
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 3 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-09-19
release-2024-09-20
1 change: 1 addition & 0 deletions lib/aws/generated/sage_maker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12644,6 +12644,7 @@ defmodule AWS.SageMaker do
s3_model_data_source() :: %{
"CompressionType" => list(any()),
"HubAccessConfig" => inference_hub_access_config(),
"ManifestS3Uri" => String.t(),
"ModelAccessConfig" => model_access_config(),
"S3DataType" => list(any()),
"S3Uri" => String.t()
Expand Down
82 changes: 80 additions & 2 deletions lib/aws/generated/sage_maker_metrics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ defmodule AWS.SageMakerMetrics do

@typedoc """
## Example:
batch_get_metrics_request() :: %{
required("MetricQueries") => list(metric_query()())
}
"""
@type batch_get_metrics_request() :: %{String.t() => any()}

@typedoc """
## Example:
batch_get_metrics_response() :: %{
"MetricQueryResults" => list(metric_query_result()())
}
"""
@type batch_get_metrics_response() :: %{String.t() => any()}

@typedoc """
## Example:
batch_put_metrics_error() :: %{
Expand Down Expand Up @@ -53,6 +75,37 @@ defmodule AWS.SageMakerMetrics do

@typedoc """
## Example:
metric_query() :: %{
"End" => float(),
"MetricName" => String.t(),
"MetricStat" => list(any()),
"Period" => list(any()),
"ResourceArn" => String.t(),
"Start" => float(),
"XAxisType" => list(any())
}
"""
@type metric_query() :: %{String.t() => any()}

@typedoc """
## Example:
metric_query_result() :: %{
"Message" => String.t(),
"MetricValues" => list(float()()),
"Status" => list(any()),
"XAxisValues" => list(float()())
}
"""
@type metric_query_result() :: %{String.t() => any()}

@typedoc """
## Example:
raw_metric_data() :: %{
Expand Down Expand Up @@ -81,11 +134,36 @@ defmodule AWS.SageMakerMetrics do
}
end

@doc """
Used to retrieve training metrics from SageMaker.
"""
@spec batch_get_metrics(map(), batch_get_metrics_request(), list()) ::
{:ok, batch_get_metrics_response(), any()}
| {:error, {:unexpected_response, any()}}
def batch_get_metrics(%Client{} = client, input, options \\ []) do
url_path = "/BatchGetMetrics"
headers = []
query_params = []

meta = metadata()

Request.request_rest(
client,
meta,
:post,
url_path,
query_params,
headers,
input,
options,
200
)
end

@doc """
Used to ingest training metrics into SageMaker.
These metrics can be visualized in SageMaker Studio and
retrieved with the `GetMetrics` API.
These metrics can be visualized in SageMaker Studio.
"""
@spec batch_put_metrics(map(), batch_put_metrics_request(), list()) ::
{:ok, batch_put_metrics_response(), any()}
Expand Down

0 comments on commit 0d8be2b

Please sign in to comment.