Skip to content

Commit

Permalink
Update services based on release-2024-08-29 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Aug 30, 2024
1 parent fc1127d commit 0d38873
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 18 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-08-28
release-2024-08-29
115 changes: 104 additions & 11 deletions lib/aws/generated/personalize.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ defmodule AWS.Personalize do

@typedoc """
## Example:
update_solution_request() :: %{
optional("performAutoTraining") => boolean(),
optional("solutionUpdateConfig") => solution_update_config(),
required("solutionArn") => String.t()
}
"""
@type update_solution_request() :: %{String.t() => any()}

@typedoc """
## Example:
list_batch_segment_jobs_request() :: %{
Expand Down Expand Up @@ -524,6 +537,7 @@ defmodule AWS.Personalize do
"datasetGroupArn" => String.t(),
"eventType" => String.t(),
"lastUpdatedDateTime" => non_neg_integer(),
"latestSolutionUpdate" => solution_update_summary(),
"latestSolutionVersion" => solution_version_summary(),
"name" => String.t(),
"performAutoML" => boolean(),
Expand Down Expand Up @@ -1953,6 +1967,17 @@ defmodule AWS.Personalize do

@typedoc """
## Example:
solution_update_config() :: %{
"autoTrainingConfig" => auto_training_config()
}
"""
@type solution_update_config() :: %{String.t() => any()}

@typedoc """
## Example:
tag_resource_response() :: %{}
Expand Down Expand Up @@ -2387,6 +2412,22 @@ defmodule AWS.Personalize do

@typedoc """
## Example:
solution_update_summary() :: %{
"creationDateTime" => non_neg_integer(),
"failureReason" => String.t(),
"lastUpdatedDateTime" => non_neg_integer(),
"performAutoTraining" => boolean(),
"solutionUpdateConfig" => solution_update_config(),
"status" => String.t()
}
"""
@type solution_update_summary() :: %{String.t() => any()}

@typedoc """
## Example:
update_campaign_request() :: %{
Expand Down Expand Up @@ -2495,6 +2536,17 @@ defmodule AWS.Personalize do

@typedoc """
## Example:
update_solution_response() :: %{
"solutionArn" => String.t()
}
"""
@type update_solution_response() :: %{String.t() => any()}

@typedoc """
## Example:
describe_data_deletion_job_request() :: %{
Expand Down Expand Up @@ -3022,6 +3074,12 @@ defmodule AWS.Personalize do
@type update_recommender_errors() ::
invalid_input_exception() | resource_not_found_exception() | resource_in_use_exception()

@type update_solution_errors() ::
limit_exceeded_exception()
| invalid_input_exception()
| resource_not_found_exception()
| resource_in_use_exception()

def metadata do
%{
api_version: "2018-05-22",
Expand Down Expand Up @@ -3722,12 +3780,13 @@ defmodule AWS.Personalize do

@doc """
After you create a solution, you can’t change its configuration.
By default, all new solutions use automatic training.
By default, all new solutions use automatic training. With automatic training,
you incur training costs while
your solution is active. You can't stop automatic training for a solution. To
avoid unnecessary costs, make sure to delete the solution when you are finished.
With automatic training, you incur training costs while
your solution is active. To avoid unnecessary costs, when you are finished you
can
[update the solution](https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html)
to turn off automatic training.
For information about training
costs, see [Amazon Personalize pricing](https://aws.amazon.com/personalize/pricing/).
Expand All @@ -3740,7 +3799,7 @@ defmodule AWS.Personalize do
By default, new solutions use automatic training to create solution versions
every 7 days. You can change the training frequency.
Automatic solution version creation starts one hour after the solution is
Automatic solution version creation starts within one hour after the solution is
ACTIVE. If you manually create a solution version within
the hour, the solution skips the first automatic training. For more information,
see [Configuring automatic training](https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html).
Expand Down Expand Up @@ -3787,23 +3846,27 @@ defmodule AWS.Personalize do
*
[ListSolutions](https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html)
[UpdateSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html)
*
[CreateSolutionVersion](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html)
[ListSolutions](https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html)
*
[DescribeSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html)
[CreateSolutionVersion](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html)
*
[DeleteSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html)
[DescribeSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html)
*
[ListSolutionVersions](https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html)
[DeleteSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html)
*
[ListSolutionVersions](https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html)
*
Expand Down Expand Up @@ -4893,4 +4956,34 @@ defmodule AWS.Personalize do

Request.request_post(client, meta, "UpdateRecommender", input, options)
end

@doc """
Updates an Amazon Personalize solution to use a different automatic training
configuration.
When you update a solution,
you can change whether the solution uses
automatic training, and you can change the training frequency. For more
information about updating a solution, see
[Updating a solution](https://docs.aws.amazon.com/personalize/latest/dg/updating-solution.html).
A solution update can be in one of the
following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
To get the status of a solution update, call the
[DescribeSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html)
API operation and find the status
in the `latestSolutionUpdate`.
"""
@spec update_solution(map(), update_solution_request(), list()) ::
{:ok, update_solution_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, update_solution_errors()}
def update_solution(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "UpdateSolution", input, options)
end
end
5 changes: 4 additions & 1 deletion lib/aws/generated/sfn.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,8 @@ defmodule AWS.SFN do
validate_state_machine_definition_output() :: %{
"diagnostics" => list(validate_state_machine_definition_diagnostic()()),
"result" => list(any())
"result" => list(any()),
"truncated" => boolean()
}
"""
Expand Down Expand Up @@ -1706,6 +1707,8 @@ defmodule AWS.SFN do
## Example:
validate_state_machine_definition_input() :: %{
optional("maxResults") => integer(),
optional("severity") => list(any()),
optional("type") => list(any()),
required("definition") => String.t()
}
Expand Down
14 changes: 9 additions & 5 deletions lib/aws/generated/waf_v2.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4661,12 +4661,10 @@ defmodule AWS.WAFV2 do
end

@doc """
Attaches an IAM policy to the specified resource.
Use this to share a rule group with other accounts.
Use this to share a rule group across
accounts.
You must be the owner of the rule group to perform this operation.
This action attaches an IAM policy to the specified resource. You must be the
owner of the rule group to perform this operation.
This action is subject to the following restrictions:
Expand All @@ -4680,6 +4678,12 @@ defmodule AWS.WAFV2 do
*
The user making the request must be the owner of the rule group.
If a rule group has been shared with your account, you can access it through the
call `GetRuleGroup`,
and you can reference it in `CreateWebACL` and `UpdateWebACL`.
Rule groups that are shared with you don't appear in your WAF console rule
groups listing.
"""
@spec put_permission_policy(map(), put_permission_policy_request(), list()) ::
{:ok, put_permission_policy_response(), any()}
Expand Down

0 comments on commit 0d38873

Please sign in to comment.