aws-sdk-personalize 1.67.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b858a833ac6ea203a450c6e46e5902ea8f450ee501ae7d52e7771bad600d2df
4
- data.tar.gz: c188ca991dac6770aabcce0de2ca9d3198c659b134e133313e9b1d6cfffe66fb
3
+ metadata.gz: b4b5d244aa097f6f5470e5baded9caad98e8f79bb95aa2602b3cccd5340c20ef
4
+ data.tar.gz: 9245af4cd2c070df1a0295769ca172b383e1942c5b0d14d2c9cc99ccb96f989f
5
5
  SHA512:
6
- metadata.gz: 2cab31efa3746624f58a130f15ec58f1182cc24ef4ed03d05379c8fd11eac278b0c937ad2c7f6b7c3ea5458f610214d7f20f1f95316b7f4dd1f68d9b22d2dec0
7
- data.tar.gz: 956acefdfb3d4a28dfce89d1f78e2d60c3415f95f196df905fe476302177030528d12452965db03037279552ebe5bda6f57175203bc95053a66780700ca4a9c4
6
+ metadata.gz: a1be820aa56a310c5b332c6521350abf9c9ec92231877298e2fdbd7cd1611862954aae5f8e3718eeaadf5679afe4c6f33b218b40824feed1d252b6c82290900f
7
+ data.tar.gz: 564ce80dfaa7dd3ac0f0b03c1fc8d95ec0e2b18831e2936f6c3530373cdf5a8d0d7d4bc5309c5577e968d731a1b99082829245596a10f84471eace8289e331ef
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.69.0 (2024-08-29)
5
+ ------------------
6
+
7
+ * Feature - This releases ability to update automatic training scheduler for customer solutions
8
+
9
+ 1.68.0 (2024-07-02)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.67.0 (2024-06-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.69.0
@@ -312,6 +312,15 @@ module Aws::Personalize
312
312
  #
313
313
  # @option options [String] :session_token
314
314
  #
315
+ # @option options [Array] :sigv4a_signing_region_set
316
+ # A list of regions that should be signed with SigV4a signing. When
317
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
318
+ # in the following locations:
319
+ #
320
+ # * `Aws.config[:sigv4a_signing_region_set]`
321
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
322
+ # * `~/.aws/config`
323
+ #
315
324
  # @option options [Boolean] :simple_json (false)
316
325
  # Disables request parameter conversion, validation, and formatting.
317
326
  # Also disables response data type conversions. The request parameters
@@ -1808,40 +1817,39 @@ module Aws::Personalize
1808
1817
  req.send_request(options)
1809
1818
  end
1810
1819
 
1811
- # After you create a solution, you can’t change its configuration. By
1812
- # default, all new solutions use automatic training. With automatic
1813
- # training, you incur training costs while your solution is active. You
1814
- # can't stop automatic training for a solution. To avoid unnecessary
1815
- # costs, make sure to delete the solution when you are finished. For
1816
- # information about training costs, see [Amazon Personalize pricing][1].
1820
+ # By default, all new solutions use automatic training. With automatic
1821
+ # training, you incur training costs while your solution is active. To
1822
+ # avoid unnecessary costs, when you are finished you can [update the
1823
+ # solution][1] to turn off automatic training. For information about
1824
+ # training costs, see [Amazon Personalize pricing][2].
1817
1825
  #
1818
1826
  # Creates the configuration for training a model (creating a solution
1819
1827
  # version). This configuration includes the recipe to use for model
1820
1828
  # training and optional training configuration, such as columns to use
1821
1829
  # in training and feature transformation parameters. For more
1822
1830
  # information about configuring a solution, see [Creating and
1823
- # configuring a solution][2].
1831
+ # configuring a solution][3].
1824
1832
  #
1825
1833
  # By default, new solutions use automatic training to create solution
1826
1834
  # versions every 7 days. You can change the training frequency.
1827
- # Automatic solution version creation starts one hour after the solution
1828
- # is ACTIVE. If you manually create a solution version within the hour,
1829
- # the solution skips the first automatic training. For more information,
1830
- # see [Configuring automatic training][3].
1835
+ # Automatic solution version creation starts within one hour after the
1836
+ # solution is ACTIVE. If you manually create a solution version within
1837
+ # the hour, the solution skips the first automatic training. For more
1838
+ # information, see [Configuring automatic training][4].
1831
1839
  #
1832
1840
  # To turn off automatic training, set `performAutoTraining` to false. If
1833
1841
  # you turn off automatic training, you must manually create a solution
1834
- # version by calling the [CreateSolutionVersion][4] operation.
1842
+ # version by calling the [CreateSolutionVersion][5] operation.
1835
1843
  #
1836
1844
  # After training starts, you can get the solution version's Amazon
1837
- # Resource Name (ARN) with the [ListSolutionVersions][5] API operation.
1838
- # To get its status, use the [DescribeSolutionVersion][6].
1845
+ # Resource Name (ARN) with the [ListSolutionVersions][6] API operation.
1846
+ # To get its status, use the [DescribeSolutionVersion][7].
1839
1847
  #
1840
1848
  # After training completes you can evaluate model accuracy by calling
1841
- # [GetSolutionMetrics][7]. When you are satisfied with the solution
1842
- # version, you deploy it using [CreateCampaign][8]. The campaign
1849
+ # [GetSolutionMetrics][8]. When you are satisfied with the solution
1850
+ # version, you deploy it using [CreateCampaign][9]. The campaign
1843
1851
  # provides recommendations to a client through the
1844
- # [GetRecommendations][9] API.
1852
+ # [GetRecommendations][10] API.
1845
1853
  #
1846
1854
  # <note markdown="1"> Amazon Personalize doesn't support configuring the `hpoObjective` for
1847
1855
  # solution hyperparameter optimization at this time.
@@ -1857,39 +1865,42 @@ module Aws::Personalize
1857
1865
  #
1858
1866
  # * DELETE PENDING &gt; DELETE IN\_PROGRESS
1859
1867
  #
1860
- # To get the status of the solution, call [DescribeSolution][10]. If you
1868
+ # To get the status of the solution, call [DescribeSolution][11]. If you
1861
1869
  # use manual training, the status must be ACTIVE before you call
1862
1870
  # `CreateSolutionVersion`.
1863
1871
  #
1864
1872
  # **Related APIs**
1865
1873
  #
1866
- # * [ListSolutions][11]
1874
+ # * [UpdateSolution][1]
1875
+ #
1876
+ # * [ListSolutions][12]
1867
1877
  #
1868
- # * [CreateSolutionVersion][4]
1878
+ # * [CreateSolutionVersion][5]
1869
1879
  #
1870
- # * [DescribeSolution][10]
1880
+ # * [DescribeSolution][11]
1871
1881
  #
1872
- # * [DeleteSolution][12]
1882
+ # * [DeleteSolution][13]
1873
1883
  # ^
1874
1884
  #
1875
- # * [ListSolutionVersions][5]
1885
+ # * [ListSolutionVersions][6]
1876
1886
  #
1877
- # * [DescribeSolutionVersion][6]
1887
+ # * [DescribeSolutionVersion][7]
1878
1888
  #
1879
1889
  #
1880
1890
  #
1881
- # [1]: https://aws.amazon.com/personalize/pricing/
1882
- # [2]: https://docs.aws.amazon.com/personalize/latest/dg/customizing-solution-config.html
1883
- # [3]: https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html
1884
- # [4]: https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html
1885
- # [5]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
1886
- # [6]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
1887
- # [7]: https://docs.aws.amazon.com/personalize/latest/dg/API_GetSolutionMetrics.html
1888
- # [8]: https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html
1889
- # [9]: https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetRecommendations.html
1890
- # [10]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
1891
- # [11]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html
1892
- # [12]: https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html
1891
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html
1892
+ # [2]: https://aws.amazon.com/personalize/pricing/
1893
+ # [3]: https://docs.aws.amazon.com/personalize/latest/dg/customizing-solution-config.html
1894
+ # [4]: https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html
1895
+ # [5]: https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html
1896
+ # [6]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
1897
+ # [7]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
1898
+ # [8]: https://docs.aws.amazon.com/personalize/latest/dg/API_GetSolutionMetrics.html
1899
+ # [9]: https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html
1900
+ # [10]: https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetRecommendations.html
1901
+ # [11]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
1902
+ # [12]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html
1903
+ # [13]: https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html
1893
1904
  #
1894
1905
  # @option params [required, String] :name
1895
1906
  # The name for the solution.
@@ -1929,9 +1940,9 @@ module Aws::Personalize
1929
1940
  # more information about automatic training, see [Configuring automatic
1930
1941
  # training][1].
1931
1942
  #
1932
- # Automatic solution version creation starts one hour after the solution
1933
- # is ACTIVE. If you manually create a solution version within the hour,
1934
- # the solution skips the first automatic training.
1943
+ # Automatic solution version creation starts within one hour after the
1944
+ # solution is ACTIVE. If you manually create a solution version within
1945
+ # the hour, the solution skips the first automatic training.
1935
1946
  #
1936
1947
  # After training starts, you can get the solution version's Amazon
1937
1948
  # Resource Name (ARN) with the [ListSolutionVersions][2] API operation.
@@ -1966,7 +1977,7 @@ module Aws::Personalize
1966
1977
  # interactions for training with equal weight regardless of type.
1967
1978
  #
1968
1979
  # @option params [Types::SolutionConfig] :solution_config
1969
- # The configuration to use with the solution. When `performAutoML` is
1980
+ # The configuration properties for the solution. When `performAutoML` is
1970
1981
  # set to true, Amazon Personalize only evaluates the `autoMLConfig`
1971
1982
  # section of the solution configuration.
1972
1983
  #
@@ -3262,6 +3273,12 @@ module Aws::Personalize
3262
3273
  # resp.solution.latest_solution_version.creation_date_time #=> Time
3263
3274
  # resp.solution.latest_solution_version.last_updated_date_time #=> Time
3264
3275
  # resp.solution.latest_solution_version.failure_reason #=> String
3276
+ # resp.solution.latest_solution_update.solution_update_config.auto_training_config.scheduling_expression #=> String
3277
+ # resp.solution.latest_solution_update.status #=> String
3278
+ # resp.solution.latest_solution_update.perform_auto_training #=> Boolean
3279
+ # resp.solution.latest_solution_update.creation_date_time #=> Time
3280
+ # resp.solution.latest_solution_update.last_updated_date_time #=> Time
3281
+ # resp.solution.latest_solution_update.failure_reason #=> String
3265
3282
  #
3266
3283
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeSolution AWS API Documentation
3267
3284
  #
@@ -4734,6 +4751,81 @@ module Aws::Personalize
4734
4751
  req.send_request(options)
4735
4752
  end
4736
4753
 
4754
+ # Updates an Amazon Personalize solution to use a different automatic
4755
+ # training configuration. When you update a solution, you can change
4756
+ # whether the solution uses automatic training, and you can change the
4757
+ # training frequency. For more information about updating a solution,
4758
+ # see [Updating a solution][1].
4759
+ #
4760
+ # A solution update can be in one of the following states:
4761
+ #
4762
+ # CREATE PENDING &gt; CREATE IN\_PROGRESS &gt; ACTIVE -or- CREATE FAILED
4763
+ #
4764
+ # To get the status of a solution update, call the [DescribeSolution][2]
4765
+ # API operation and find the status in the `latestSolutionUpdate`.
4766
+ #
4767
+ #
4768
+ #
4769
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/updating-solution.html
4770
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
4771
+ #
4772
+ # @option params [required, String] :solution_arn
4773
+ # The Amazon Resource Name (ARN) of the solution to update.
4774
+ #
4775
+ # @option params [Boolean] :perform_auto_training
4776
+ # Whether the solution uses automatic training to create new solution
4777
+ # versions (trained models). You can change the training frequency by
4778
+ # specifying a `schedulingExpression` in the `AutoTrainingConfig` as
4779
+ # part of solution configuration.
4780
+ #
4781
+ # If you turn on automatic training, the first automatic training starts
4782
+ # within one hour after the solution update completes. If you manually
4783
+ # create a solution version within the hour, the solution skips the
4784
+ # first automatic training. For more information about automatic
4785
+ # training, see [Configuring automatic training][1].
4786
+ #
4787
+ # After training starts, you can get the solution version's Amazon
4788
+ # Resource Name (ARN) with the [ListSolutionVersions][2] API operation.
4789
+ # To get its status, use the [DescribeSolutionVersion][3].
4790
+ #
4791
+ #
4792
+ #
4793
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html
4794
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
4795
+ # [3]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
4796
+ #
4797
+ # @option params [Types::SolutionUpdateConfig] :solution_update_config
4798
+ # The new configuration details of the solution.
4799
+ #
4800
+ # @return [Types::UpdateSolutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4801
+ #
4802
+ # * {Types::UpdateSolutionResponse#solution_arn #solution_arn} => String
4803
+ #
4804
+ # @example Request syntax with placeholder values
4805
+ #
4806
+ # resp = client.update_solution({
4807
+ # solution_arn: "Arn", # required
4808
+ # perform_auto_training: false,
4809
+ # solution_update_config: {
4810
+ # auto_training_config: {
4811
+ # scheduling_expression: "SchedulingExpression",
4812
+ # },
4813
+ # },
4814
+ # })
4815
+ #
4816
+ # @example Response structure
4817
+ #
4818
+ # resp.solution_arn #=> String
4819
+ #
4820
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateSolution AWS API Documentation
4821
+ #
4822
+ # @overload update_solution(params = {})
4823
+ # @param [Hash] params ({})
4824
+ def update_solution(params = {}, options = {})
4825
+ req = build_request(:update_solution, params)
4826
+ req.send_request(options)
4827
+ end
4828
+
4737
4829
  # @!endgroup
4738
4830
 
4739
4831
  # @param params ({})
@@ -4747,7 +4839,7 @@ module Aws::Personalize
4747
4839
  params: params,
4748
4840
  config: config)
4749
4841
  context[:gem_name] = 'aws-sdk-personalize'
4750
- context[:gem_version] = '1.67.0'
4842
+ context[:gem_version] = '1.69.0'
4751
4843
  Seahorse::Client::Request.new(handlers, context)
4752
4844
  end
4753
4845
 
@@ -275,6 +275,8 @@ module Aws::Personalize
275
275
  Solution = Shapes::StructureShape.new(name: 'Solution')
276
276
  SolutionConfig = Shapes::StructureShape.new(name: 'SolutionConfig')
277
277
  SolutionSummary = Shapes::StructureShape.new(name: 'SolutionSummary')
278
+ SolutionUpdateConfig = Shapes::StructureShape.new(name: 'SolutionUpdateConfig')
279
+ SolutionUpdateSummary = Shapes::StructureShape.new(name: 'SolutionUpdateSummary')
278
280
  SolutionVersion = Shapes::StructureShape.new(name: 'SolutionVersion')
279
281
  SolutionVersionSummary = Shapes::StructureShape.new(name: 'SolutionVersionSummary')
280
282
  SolutionVersions = Shapes::ListShape.new(name: 'SolutionVersions')
@@ -314,6 +316,8 @@ module Aws::Personalize
314
316
  UpdateMetricAttributionResponse = Shapes::StructureShape.new(name: 'UpdateMetricAttributionResponse')
315
317
  UpdateRecommenderRequest = Shapes::StructureShape.new(name: 'UpdateRecommenderRequest')
316
318
  UpdateRecommenderResponse = Shapes::StructureShape.new(name: 'UpdateRecommenderResponse')
319
+ UpdateSolutionRequest = Shapes::StructureShape.new(name: 'UpdateSolutionRequest')
320
+ UpdateSolutionResponse = Shapes::StructureShape.new(name: 'UpdateSolutionResponse')
317
321
 
318
322
  Algorithm.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
319
323
  Algorithm.add_member(:algorithm_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "algorithmArn"))
@@ -1324,6 +1328,7 @@ module Aws::Personalize
1324
1328
  Solution.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
1325
1329
  Solution.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
1326
1330
  Solution.add_member(:latest_solution_version, Shapes::ShapeRef.new(shape: SolutionVersionSummary, location_name: "latestSolutionVersion"))
1331
+ Solution.add_member(:latest_solution_update, Shapes::ShapeRef.new(shape: SolutionUpdateSummary, location_name: "latestSolutionUpdate"))
1327
1332
  Solution.struct_class = Types::Solution
1328
1333
 
1329
1334
  SolutionConfig.add_member(:event_value_threshold, Shapes::ShapeRef.new(shape: EventValueThreshold, location_name: "eventValueThreshold"))
@@ -1344,6 +1349,17 @@ module Aws::Personalize
1344
1349
  SolutionSummary.add_member(:recipe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recipeArn"))
1345
1350
  SolutionSummary.struct_class = Types::SolutionSummary
1346
1351
 
1352
+ SolutionUpdateConfig.add_member(:auto_training_config, Shapes::ShapeRef.new(shape: AutoTrainingConfig, location_name: "autoTrainingConfig"))
1353
+ SolutionUpdateConfig.struct_class = Types::SolutionUpdateConfig
1354
+
1355
+ SolutionUpdateSummary.add_member(:solution_update_config, Shapes::ShapeRef.new(shape: SolutionUpdateConfig, location_name: "solutionUpdateConfig"))
1356
+ SolutionUpdateSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
1357
+ SolutionUpdateSummary.add_member(:perform_auto_training, Shapes::ShapeRef.new(shape: PerformAutoTraining, location_name: "performAutoTraining"))
1358
+ SolutionUpdateSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
1359
+ SolutionUpdateSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
1360
+ SolutionUpdateSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
1361
+ SolutionUpdateSummary.struct_class = Types::SolutionUpdateSummary
1362
+
1347
1363
  SolutionVersion.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1348
1364
  SolutionVersion.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionVersionArn"))
1349
1365
  SolutionVersion.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionArn"))
@@ -1458,6 +1474,14 @@ module Aws::Personalize
1458
1474
  UpdateRecommenderResponse.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recommenderArn"))
1459
1475
  UpdateRecommenderResponse.struct_class = Types::UpdateRecommenderResponse
1460
1476
 
1477
+ UpdateSolutionRequest.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "solutionArn"))
1478
+ UpdateSolutionRequest.add_member(:perform_auto_training, Shapes::ShapeRef.new(shape: PerformAutoTraining, location_name: "performAutoTraining"))
1479
+ UpdateSolutionRequest.add_member(:solution_update_config, Shapes::ShapeRef.new(shape: SolutionUpdateConfig, location_name: "solutionUpdateConfig"))
1480
+ UpdateSolutionRequest.struct_class = Types::UpdateSolutionRequest
1481
+
1482
+ UpdateSolutionResponse.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionArn"))
1483
+ UpdateSolutionResponse.struct_class = Types::UpdateSolutionResponse
1484
+
1461
1485
 
1462
1486
  # @api private
1463
1487
  API = Seahorse::Model::Api.new.tap do |api|
@@ -2350,6 +2374,19 @@ module Aws::Personalize
2350
2374
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2351
2375
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2352
2376
  end)
2377
+
2378
+ api.add_operation(:update_solution, Seahorse::Model::Operation.new.tap do |o|
2379
+ o.name = "UpdateSolution"
2380
+ o.http_method = "POST"
2381
+ o.http_request_uri = "/"
2382
+ o.input = Shapes::ShapeRef.new(shape: UpdateSolutionRequest)
2383
+ o.output = Shapes::ShapeRef.new(shape: UpdateSolutionResponse)
2384
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2385
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2386
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2387
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2388
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2389
+ end)
2353
2390
  end
2354
2391
 
2355
2392
  end
@@ -992,5 +992,19 @@ module Aws::Personalize
992
992
  end
993
993
  end
994
994
 
995
+ class UpdateSolution
996
+ def self.build(context)
997
+ unless context.config.regional_endpoint
998
+ endpoint = context.config.endpoint.to_s
999
+ end
1000
+ Aws::Personalize::EndpointParameters.new(
1001
+ region: context.config.region,
1002
+ use_dual_stack: context.config.use_dualstack_endpoint,
1003
+ use_fips: context.config.use_fips_endpoint,
1004
+ endpoint: endpoint,
1005
+ )
1006
+ end
1007
+ end
1008
+
995
1009
  end
996
1010
  end
@@ -198,6 +198,8 @@ module Aws::Personalize
198
198
  Aws::Personalize::Endpoints::UpdateMetricAttribution.build(context)
199
199
  when :update_recommender
200
200
  Aws::Personalize::Endpoints::UpdateRecommender.build(context)
201
+ when :update_solution
202
+ Aws::Personalize::Endpoints::UpdateSolution.build(context)
201
203
  end
202
204
  end
203
205
  end
@@ -1673,7 +1673,7 @@ module Aws::Personalize
1673
1673
  # more information about automatic training, see [Configuring
1674
1674
  # automatic training][1].
1675
1675
  #
1676
- # Automatic solution version creation starts one hour after the
1676
+ # Automatic solution version creation starts within one hour after the
1677
1677
  # solution is ACTIVE. If you manually create a solution version within
1678
1678
  # the hour, the solution skips the first automatic training.
1679
1679
  #
@@ -1714,8 +1714,8 @@ module Aws::Personalize
1714
1714
  # @return [String]
1715
1715
  #
1716
1716
  # @!attribute [rw] solution_config
1717
- # The configuration to use with the solution. When `performAutoML` is
1718
- # set to true, Amazon Personalize only evaluates the `autoMLConfig`
1717
+ # The configuration properties for the solution. When `performAutoML`
1718
+ # is set to true, Amazon Personalize only evaluates the `autoMLConfig`
1719
1719
  # section of the solution configuration.
1720
1720
  #
1721
1721
  # <note markdown="1"> Amazon Personalize doesn't support configuring the `hpoObjective`
@@ -5116,17 +5116,11 @@ module Aws::Personalize
5116
5116
  # @return [Time]
5117
5117
  #
5118
5118
  # @!attribute [rw] status
5119
- # The status of the recommender update.
5119
+ # The status of the recommender update. A recommender update can be in
5120
+ # one of the following states:
5120
5121
  #
5121
- # A recommender can be in one of the following states:
5122
- #
5123
- # * CREATE PENDING &gt; CREATE IN\_PROGRESS &gt; ACTIVE -or- CREATE
5124
- # FAILED
5125
- #
5126
- # * STOP PENDING &gt; STOP IN\_PROGRESS &gt; INACTIVE &gt; START
5127
- # PENDING &gt; START IN\_PROGRESS &gt; ACTIVE
5128
- #
5129
- # * DELETE PENDING &gt; DELETE IN\_PROGRESS
5122
+ # CREATE PENDING &gt; CREATE IN\_PROGRESS &gt; ACTIVE -or- CREATE
5123
+ # FAILED
5130
5124
  # @return [String]
5131
5125
  #
5132
5126
  # @!attribute [rw] failure_reason
@@ -5205,12 +5199,11 @@ module Aws::Personalize
5205
5199
  include Aws::Structure
5206
5200
  end
5207
5201
 
5208
- # After you create a solution, you can’t change its configuration. By
5209
- # default, all new solutions use automatic training. With automatic
5210
- # training, you incur training costs while your solution is active. You
5211
- # can't stop automatic training for a solution. To avoid unnecessary
5212
- # costs, make sure to delete the solution when you are finished. For
5213
- # information about training costs, see [Amazon Personalize pricing][1].
5202
+ # By default, all new solutions use automatic training. With automatic
5203
+ # training, you incur training costs while your solution is active. To
5204
+ # avoid unnecessary costs, when you are finished you can [update the
5205
+ # solution][1] to turn off automatic training. For information about
5206
+ # training costs, see [Amazon Personalize pricing][2].
5214
5207
  #
5215
5208
  # An object that provides information about a solution. A solution
5216
5209
  # includes the custom recipe, customized parameters, and trained models
@@ -5218,13 +5211,14 @@ module Aws::Personalize
5218
5211
  # recommendations.
5219
5212
  #
5220
5213
  # After you create a solution, you can’t change its configuration. If
5221
- # you need to make changes, you can [clone the solution][2] with the
5214
+ # you need to make changes, you can [clone the solution][3] with the
5222
5215
  # Amazon Personalize console or create a new one.
5223
5216
  #
5224
5217
  #
5225
5218
  #
5226
- # [1]: https://aws.amazon.com/personalize/pricing/
5227
- # [2]: https://docs.aws.amazon.com/personalize/latest/dg/cloning-solution.html
5219
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html
5220
+ # [2]: https://aws.amazon.com/personalize/pricing/
5221
+ # [3]: https://docs.aws.amazon.com/personalize/latest/dg/cloning-solution.html
5228
5222
  #
5229
5223
  # @!attribute [rw] name
5230
5224
  # The name of the solution.
@@ -5316,6 +5310,10 @@ module Aws::Personalize
5316
5310
  # and the ARN.
5317
5311
  # @return [Types::SolutionVersionSummary]
5318
5312
  #
5313
+ # @!attribute [rw] latest_solution_update
5314
+ # Provides a summary of the latest updates to the solution.
5315
+ # @return [Types::SolutionUpdateSummary]
5316
+ #
5319
5317
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/Solution AWS API Documentation
5320
5318
  #
5321
5319
  class Solution < Struct.new(
@@ -5332,7 +5330,8 @@ module Aws::Personalize
5332
5330
  :status,
5333
5331
  :creation_date_time,
5334
5332
  :last_updated_date_time,
5335
- :latest_solution_version)
5333
+ :latest_solution_version,
5334
+ :latest_solution_update)
5336
5335
  SENSITIVE = []
5337
5336
  include Aws::Structure
5338
5337
  end
@@ -5450,6 +5449,71 @@ module Aws::Personalize
5450
5449
  include Aws::Structure
5451
5450
  end
5452
5451
 
5452
+ # The configuration details of the solution update.
5453
+ #
5454
+ # @!attribute [rw] auto_training_config
5455
+ # The automatic training configuration to use when
5456
+ # `performAutoTraining` is true.
5457
+ # @return [Types::AutoTrainingConfig]
5458
+ #
5459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/SolutionUpdateConfig AWS API Documentation
5460
+ #
5461
+ class SolutionUpdateConfig < Struct.new(
5462
+ :auto_training_config)
5463
+ SENSITIVE = []
5464
+ include Aws::Structure
5465
+ end
5466
+
5467
+ # Provides a summary of the properties of a solution update. For a
5468
+ # complete listing, call the [DescribeSolution][1] API.
5469
+ #
5470
+ #
5471
+ #
5472
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
5473
+ #
5474
+ # @!attribute [rw] solution_update_config
5475
+ # The configuration details of the solution.
5476
+ # @return [Types::SolutionUpdateConfig]
5477
+ #
5478
+ # @!attribute [rw] status
5479
+ # The status of the solution update. A solution update can be in one
5480
+ # of the following states:
5481
+ #
5482
+ # CREATE PENDING &gt; CREATE IN\_PROGRESS &gt; ACTIVE -or- CREATE
5483
+ # FAILED
5484
+ # @return [String]
5485
+ #
5486
+ # @!attribute [rw] perform_auto_training
5487
+ # Whether the solution automatically creates solution versions.
5488
+ # @return [Boolean]
5489
+ #
5490
+ # @!attribute [rw] creation_date_time
5491
+ # The date and time (in Unix format) that the solution update was
5492
+ # created.
5493
+ # @return [Time]
5494
+ #
5495
+ # @!attribute [rw] last_updated_date_time
5496
+ # The date and time (in Unix time) that the solution update was last
5497
+ # updated.
5498
+ # @return [Time]
5499
+ #
5500
+ # @!attribute [rw] failure_reason
5501
+ # If a solution update fails, the reason behind the failure.
5502
+ # @return [String]
5503
+ #
5504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/SolutionUpdateSummary AWS API Documentation
5505
+ #
5506
+ class SolutionUpdateSummary < Struct.new(
5507
+ :solution_update_config,
5508
+ :status,
5509
+ :perform_auto_training,
5510
+ :creation_date_time,
5511
+ :last_updated_date_time,
5512
+ :failure_reason)
5513
+ SENSITIVE = []
5514
+ include Aws::Structure
5515
+ end
5516
+
5453
5517
  # An object that provides information about a specific version of a
5454
5518
  # [Solution][1] in a Custom dataset group.
5455
5519
  #
@@ -6014,5 +6078,59 @@ module Aws::Personalize
6014
6078
  include Aws::Structure
6015
6079
  end
6016
6080
 
6081
+ # @!attribute [rw] solution_arn
6082
+ # The Amazon Resource Name (ARN) of the solution to update.
6083
+ # @return [String]
6084
+ #
6085
+ # @!attribute [rw] perform_auto_training
6086
+ # Whether the solution uses automatic training to create new solution
6087
+ # versions (trained models). You can change the training frequency by
6088
+ # specifying a `schedulingExpression` in the `AutoTrainingConfig` as
6089
+ # part of solution configuration.
6090
+ #
6091
+ # If you turn on automatic training, the first automatic training
6092
+ # starts within one hour after the solution update completes. If you
6093
+ # manually create a solution version within the hour, the solution
6094
+ # skips the first automatic training. For more information about
6095
+ # automatic training, see [Configuring automatic training][1].
6096
+ #
6097
+ # After training starts, you can get the solution version's Amazon
6098
+ # Resource Name (ARN) with the [ListSolutionVersions][2] API
6099
+ # operation. To get its status, use the [DescribeSolutionVersion][3].
6100
+ #
6101
+ #
6102
+ #
6103
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html
6104
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
6105
+ # [3]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
6106
+ # @return [Boolean]
6107
+ #
6108
+ # @!attribute [rw] solution_update_config
6109
+ # The new configuration details of the solution.
6110
+ # @return [Types::SolutionUpdateConfig]
6111
+ #
6112
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateSolutionRequest AWS API Documentation
6113
+ #
6114
+ class UpdateSolutionRequest < Struct.new(
6115
+ :solution_arn,
6116
+ :perform_auto_training,
6117
+ :solution_update_config)
6118
+ SENSITIVE = []
6119
+ include Aws::Structure
6120
+ end
6121
+
6122
+ # @!attribute [rw] solution_arn
6123
+ # The same solution Amazon Resource Name (ARN) as given in the
6124
+ # request.
6125
+ # @return [String]
6126
+ #
6127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateSolutionResponse AWS API Documentation
6128
+ #
6129
+ class UpdateSolutionResponse < Struct.new(
6130
+ :solution_arn)
6131
+ SENSITIVE = []
6132
+ include Aws::Structure
6133
+ end
6134
+
6017
6135
  end
6018
6136
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-personalize/customizations'
52
52
  # @!group service
53
53
  module Aws::Personalize
54
54
 
55
- GEM_VERSION = '1.67.0'
55
+ GEM_VERSION = '1.69.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?simple_json: bool,
52
53
  ?stub_responses: untyped,
53
54
  ?token_provider: untyped,
@@ -1064,6 +1065,22 @@ module Aws
1064
1065
  }
1065
1066
  ) -> _UpdateRecommenderResponseSuccess
1066
1067
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateRecommenderResponseSuccess
1068
+
1069
+ interface _UpdateSolutionResponseSuccess
1070
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSolutionResponse]
1071
+ def solution_arn: () -> ::String
1072
+ end
1073
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Personalize/Client.html#update_solution-instance_method
1074
+ def update_solution: (
1075
+ solution_arn: ::String,
1076
+ ?perform_auto_training: bool,
1077
+ ?solution_update_config: {
1078
+ auto_training_config: {
1079
+ scheduling_expression: ::String?
1080
+ }?
1081
+ }
1082
+ ) -> _UpdateSolutionResponseSuccess
1083
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSolutionResponseSuccess
1067
1084
  end
1068
1085
  end
1069
1086
  end
data/sig/resource.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?simple_json: bool,
52
53
  ?stub_responses: untyped,
53
54
  ?token_provider: untyped,
data/sig/types.rbs CHANGED
@@ -1312,6 +1312,7 @@ module Aws::Personalize
1312
1312
  attr_accessor creation_date_time: ::Time
1313
1313
  attr_accessor last_updated_date_time: ::Time
1314
1314
  attr_accessor latest_solution_version: Types::SolutionVersionSummary
1315
+ attr_accessor latest_solution_update: Types::SolutionUpdateSummary
1315
1316
  SENSITIVE: []
1316
1317
  end
1317
1318
 
@@ -1337,6 +1338,21 @@ module Aws::Personalize
1337
1338
  SENSITIVE: []
1338
1339
  end
1339
1340
 
1341
+ class SolutionUpdateConfig
1342
+ attr_accessor auto_training_config: Types::AutoTrainingConfig
1343
+ SENSITIVE: []
1344
+ end
1345
+
1346
+ class SolutionUpdateSummary
1347
+ attr_accessor solution_update_config: Types::SolutionUpdateConfig
1348
+ attr_accessor status: ::String
1349
+ attr_accessor perform_auto_training: bool
1350
+ attr_accessor creation_date_time: ::Time
1351
+ attr_accessor last_updated_date_time: ::Time
1352
+ attr_accessor failure_reason: ::String
1353
+ SENSITIVE: []
1354
+ end
1355
+
1340
1356
  class SolutionVersion
1341
1357
  attr_accessor name: ::String
1342
1358
  attr_accessor solution_version_arn: ::String
@@ -1490,5 +1506,17 @@ module Aws::Personalize
1490
1506
  attr_accessor recommender_arn: ::String
1491
1507
  SENSITIVE: []
1492
1508
  end
1509
+
1510
+ class UpdateSolutionRequest
1511
+ attr_accessor solution_arn: ::String
1512
+ attr_accessor perform_auto_training: bool
1513
+ attr_accessor solution_update_config: Types::SolutionUpdateConfig
1514
+ SENSITIVE: []
1515
+ end
1516
+
1517
+ class UpdateSolutionResponse
1518
+ attr_accessor solution_arn: ::String
1519
+ SENSITIVE: []
1520
+ end
1493
1521
  end
1494
1522
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-personalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-28 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.199.0
22
+ version: 3.201.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.199.0
32
+ version: 3.201.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: '1.5'
47
47
  description: Official AWS Ruby gem for Amazon Personalize. This gem is part of the
48
48
  AWS SDK for Ruby.
49
49
  email: