aws-sdk-personalize 1.45.0 → 1.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cb4bb9c7ee70652f3c644264762f3a0cffe6902ad8e7bb21f4aa55e6d4dadfd
4
- data.tar.gz: aba40a8129081ba4765deadc6bbc3f80add89cc26f63ee6a2c46500b67279478
3
+ metadata.gz: 15c6785b70645ebb6b66eefc40083a357925c0ac61be29d3a2f70735feb1bf22
4
+ data.tar.gz: b81c22624e7c6b97bcd9952b9dffa0f9db736036665366258fb259fc5cf57ca9
5
5
  SHA512:
6
- metadata.gz: f1d6a04dfbe7a537a94cc560c7f4fbf17baebeac3ebc7583af1839a7ed8088c9ee0edeba5d40a632d14cea1e4083a83c72a939f2a5e59a403db9ff81d74c907b
7
- data.tar.gz: 84317573eed5c4bad5b909bf4da7d1513e9f2ce1930d9a035bb69f7bd18ca0b318caeedeb5c5f05bc0cd285e0ee5e59b739ede810b6018274fed22953315ba10
6
+ metadata.gz: 5092cbd11d0506068625eb564ffbf060d7711dffbc0f9c6244e8fc47f6c7b159569f7e944b3bbed427d1443b787e0d6c474fb5ca24d067820530208b4164d88c
7
+ data.tar.gz: 8b39992e5147e260c6a41651d0b3733a4b8883558969de55e7b26bf6e52306c1a0d80bddbf94bf10d722b84381fa9c382b038ef2343221d53b2df8b47d362234
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2023-05-30)
5
+ ------------------
6
+
7
+ * Feature - This release provides support for the exclusion of certain columns for training when creating a solution and creating or updating a recommender with Amazon Personalize.
8
+
9
+ 1.46.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.45.0 (2022-11-17)
5
17
  ------------------
6
18
 
@@ -235,4 +247,4 @@ Unreleased Changes
235
247
  1.0.0 (2019-06-10)
236
248
  ------------------
237
249
 
238
- * Feature - Initial release of `aws-sdk-personalize`.
250
+ * Feature - Initial release of `aws-sdk-personalize`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.47.0
@@ -426,7 +426,7 @@ module Aws::Personalize
426
426
  #
427
427
  #
428
428
  #
429
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
429
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
430
430
  #
431
431
  # @return [Types::CreateBatchInferenceJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
432
432
  #
@@ -504,7 +504,8 @@ module Aws::Personalize
504
504
  #
505
505
  # @option params [Integer] :num_results
506
506
  # The number of predicted users generated by the batch segment job for
507
- # each line of input data.
507
+ # each line of input data. The maximum number of users per segment is 5
508
+ # million.
508
509
  #
509
510
  # @option params [required, Types::BatchSegmentJobInput] :job_input
510
511
  # The Amazon S3 path for the input data used to generate the batch
@@ -524,7 +525,7 @@ module Aws::Personalize
524
525
  #
525
526
  #
526
527
  #
527
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
528
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
528
529
  #
529
530
  # @return [Types::CreateBatchSegmentJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
530
531
  #
@@ -577,6 +578,11 @@ module Aws::Personalize
577
578
  #
578
579
  # **Minimum Provisioned TPS and Auto-Scaling**
579
580
  #
581
+ # A high `minProvisionedTPS` will increase your bill. We recommend
582
+ # starting with 1 for `minProvisionedTPS` (the default). Track your
583
+ # usage using Amazon CloudWatch metrics, and increase the
584
+ # `minProvisionedTPS` as necessary.
585
+ #
580
586
  # A transaction is a single `GetRecommendations` or
581
587
  # `GetPersonalizedRanking` call. Transactions per second (TPS) is the
582
588
  # throughput and unit of billing for Amazon Personalize. The minimum
@@ -639,7 +645,11 @@ module Aws::Personalize
639
645
  #
640
646
  # @option params [Integer] :min_provisioned_tps
641
647
  # Specifies the requested minimum provisioned transactions
642
- # (recommendations) per second that Amazon Personalize will support.
648
+ # (recommendations) per second that Amazon Personalize will support. A
649
+ # high `minProvisionedTPS` will increase your bill. We recommend
650
+ # starting with 1 for `minProvisionedTPS` (the default). Track your
651
+ # usage using Amazon CloudWatch metrics, and increase the
652
+ # `minProvisionedTPS` as necessary.
643
653
  #
644
654
  # @option params [Types::CampaignConfig] :campaign_config
645
655
  # The configuration details of a campaign.
@@ -649,7 +659,7 @@ module Aws::Personalize
649
659
  #
650
660
  #
651
661
  #
652
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
662
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
653
663
  #
654
664
  # @return [Types::CreateCampaignResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
655
665
  #
@@ -757,7 +767,7 @@ module Aws::Personalize
757
767
  #
758
768
  #
759
769
  #
760
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
770
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
761
771
  #
762
772
  # @return [Types::CreateDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
763
773
  #
@@ -845,7 +855,7 @@ module Aws::Personalize
845
855
  #
846
856
  #
847
857
  #
848
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
858
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
849
859
  #
850
860
  # @return [Types::CreateDatasetExportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
851
861
  #
@@ -974,7 +984,7 @@ module Aws::Personalize
974
984
  #
975
985
  #
976
986
  #
977
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
987
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
978
988
  #
979
989
  # @return [Types::CreateDatasetGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
980
990
  #
@@ -1075,7 +1085,7 @@ module Aws::Personalize
1075
1085
  #
1076
1086
  #
1077
1087
  #
1078
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1088
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1079
1089
  #
1080
1090
  # @option params [String] :import_mode
1081
1091
  # Specify how to add the new records to an existing dataset. The default
@@ -1186,7 +1196,7 @@ module Aws::Personalize
1186
1196
  #
1187
1197
  #
1188
1198
  #
1189
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1199
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1190
1200
  #
1191
1201
  # @return [Types::CreateEventTrackerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1192
1202
  #
@@ -1248,7 +1258,7 @@ module Aws::Personalize
1248
1258
  #
1249
1259
  #
1250
1260
  #
1251
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1261
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1252
1262
  #
1253
1263
  # @return [Types::CreateFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1254
1264
  #
@@ -1353,6 +1363,11 @@ module Aws::Personalize
1353
1363
  #
1354
1364
  # **Minimum recommendation requests per second**
1355
1365
  #
1366
+ # A high `minRecommendationRequestsPerSecond` will increase your bill.
1367
+ # We recommend starting with 1 for `minRecommendationRequestsPerSecond`
1368
+ # (the default). Track your usage using Amazon CloudWatch metrics, and
1369
+ # increase the `minRecommendationRequestsPerSecond` as necessary.
1370
+ #
1356
1371
  # When you create a recommender, you can configure the recommender's
1357
1372
  # minimum recommendation requests per second. The minimum recommendation
1358
1373
  # requests per second (`minRecommendationRequestsPerSecond`) specifies
@@ -1440,7 +1455,7 @@ module Aws::Personalize
1440
1455
  #
1441
1456
  #
1442
1457
  #
1443
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1458
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1444
1459
  #
1445
1460
  # @return [Types::CreateRecommenderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1446
1461
  #
@@ -1457,6 +1472,11 @@ module Aws::Personalize
1457
1472
  # "ParameterName" => "ParameterValue",
1458
1473
  # },
1459
1474
  # min_recommendation_requests_per_second: 1,
1475
+ # training_data_config: {
1476
+ # excluded_dataset_columns: {
1477
+ # "DatasetType" => ["ColumnName"],
1478
+ # },
1479
+ # },
1460
1480
  # },
1461
1481
  # tags: [
1462
1482
  # {
@@ -1540,10 +1560,10 @@ module Aws::Personalize
1540
1560
  end
1541
1561
 
1542
1562
  # Creates the configuration for training a model. A trained model is
1543
- # known as a solution. After the configuration is created, you train the
1544
- # model (create a solution) by calling the [CreateSolutionVersion][1]
1545
- # operation. Every time you call `CreateSolutionVersion`, a new version
1546
- # of the solution is created.
1563
+ # known as a solution version. After the configuration is created, you
1564
+ # train the model (create a solution version) by calling the
1565
+ # [CreateSolutionVersion][1] operation. Every time you call
1566
+ # `CreateSolutionVersion`, a new version of the solution is created.
1547
1567
  #
1548
1568
  # After creating a solution version, you check its accuracy by calling
1549
1569
  # [GetSolutionMetrics][2]. When you are satisfied with the version, you
@@ -1554,9 +1574,7 @@ module Aws::Personalize
1554
1574
  # recipe. The training data comes from the dataset group that you
1555
1575
  # provide in the request. A recipe specifies the training algorithm and
1556
1576
  # a feature transformation. You can specify one of the predefined
1557
- # recipes provided by Amazon Personalize. Alternatively, you can specify
1558
- # `performAutoML` and Amazon Personalize will analyze your data and
1559
- # select the optimum USER\_PERSONALIZATION recipe for you.
1577
+ # recipes provided by Amazon Personalize.
1560
1578
  #
1561
1579
  # <note markdown="1"> Amazon Personalize doesn't support configuring the `hpoObjective` for
1562
1580
  # solution hyperparameter optimization at this time.
@@ -1614,6 +1632,10 @@ module Aws::Personalize
1614
1632
  # not set it to `false`.
1615
1633
  #
1616
1634
  # @option params [Boolean] :perform_auto_ml
1635
+ # We don't recommend enabling automated machine learning. Instead,
1636
+ # match your use case to the available Amazon Personalize recipes. For
1637
+ # more information, see [Determining your use case.][1]
1638
+ #
1617
1639
  # Whether to perform automated machine learning (AutoML). The default is
1618
1640
  # `false`. For this case, you must specify `recipeArn`.
1619
1641
  #
@@ -1624,6 +1646,10 @@ module Aws::Personalize
1624
1646
  # hyperparameters. AutoML lengthens the training process as compared to
1625
1647
  # selecting a specific recipe.
1626
1648
  #
1649
+ #
1650
+ #
1651
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/determining-use-case.html
1652
+ #
1627
1653
  # @option params [String] :recipe_arn
1628
1654
  # The ARN of the recipe to use for model training. Only specified when
1629
1655
  # `performAutoML` is false.
@@ -1655,7 +1681,7 @@ module Aws::Personalize
1655
1681
  #
1656
1682
  #
1657
1683
  #
1658
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1684
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1659
1685
  #
1660
1686
  # @return [Types::CreateSolutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1661
1687
  #
@@ -1719,6 +1745,11 @@ module Aws::Personalize
1719
1745
  # item_attribute: "ItemAttribute",
1720
1746
  # objective_sensitivity: "LOW", # accepts LOW, MEDIUM, HIGH, OFF
1721
1747
  # },
1748
+ # training_data_config: {
1749
+ # excluded_dataset_columns: {
1750
+ # "DatasetType" => ["ColumnName"],
1751
+ # },
1752
+ # },
1722
1753
  # },
1723
1754
  # tags: [
1724
1755
  # {
@@ -1821,7 +1852,7 @@ module Aws::Personalize
1821
1852
  #
1822
1853
  #
1823
1854
  #
1824
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1855
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
1825
1856
  #
1826
1857
  # @return [Types::CreateSolutionVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1827
1858
  #
@@ -2724,6 +2755,9 @@ module Aws::Personalize
2724
2755
  # resp.recommender.recommender_config.item_exploration_config #=> Hash
2725
2756
  # resp.recommender.recommender_config.item_exploration_config["ParameterName"] #=> String
2726
2757
  # resp.recommender.recommender_config.min_recommendation_requests_per_second #=> Integer
2758
+ # resp.recommender.recommender_config.training_data_config.excluded_dataset_columns #=> Hash
2759
+ # resp.recommender.recommender_config.training_data_config.excluded_dataset_columns["DatasetType"] #=> Array
2760
+ # resp.recommender.recommender_config.training_data_config.excluded_dataset_columns["DatasetType"][0] #=> String
2727
2761
  # resp.recommender.creation_date_time #=> Time
2728
2762
  # resp.recommender.last_updated_date_time #=> Time
2729
2763
  # resp.recommender.status #=> String
@@ -2731,6 +2765,9 @@ module Aws::Personalize
2731
2765
  # resp.recommender.latest_recommender_update.recommender_config.item_exploration_config #=> Hash
2732
2766
  # resp.recommender.latest_recommender_update.recommender_config.item_exploration_config["ParameterName"] #=> String
2733
2767
  # resp.recommender.latest_recommender_update.recommender_config.min_recommendation_requests_per_second #=> Integer
2768
+ # resp.recommender.latest_recommender_update.recommender_config.training_data_config.excluded_dataset_columns #=> Hash
2769
+ # resp.recommender.latest_recommender_update.recommender_config.training_data_config.excluded_dataset_columns["DatasetType"] #=> Array
2770
+ # resp.recommender.latest_recommender_update.recommender_config.training_data_config.excluded_dataset_columns["DatasetType"][0] #=> String
2734
2771
  # resp.recommender.latest_recommender_update.creation_date_time #=> Time
2735
2772
  # resp.recommender.latest_recommender_update.last_updated_date_time #=> Time
2736
2773
  # resp.recommender.latest_recommender_update.status #=> String
@@ -2841,6 +2878,9 @@ module Aws::Personalize
2841
2878
  # resp.solution.solution_config.auto_ml_config.recipe_list[0] #=> String
2842
2879
  # resp.solution.solution_config.optimization_objective.item_attribute #=> String
2843
2880
  # resp.solution.solution_config.optimization_objective.objective_sensitivity #=> String, one of "LOW", "MEDIUM", "HIGH", "OFF"
2881
+ # resp.solution.solution_config.training_data_config.excluded_dataset_columns #=> Hash
2882
+ # resp.solution.solution_config.training_data_config.excluded_dataset_columns["DatasetType"] #=> Array
2883
+ # resp.solution.solution_config.training_data_config.excluded_dataset_columns["DatasetType"][0] #=> String
2844
2884
  # resp.solution.auto_ml_result.best_recipe_arn #=> String
2845
2885
  # resp.solution.status #=> String
2846
2886
  # resp.solution.creation_date_time #=> Time
@@ -2917,6 +2957,9 @@ module Aws::Personalize
2917
2957
  # resp.solution_version.solution_config.auto_ml_config.recipe_list[0] #=> String
2918
2958
  # resp.solution_version.solution_config.optimization_objective.item_attribute #=> String
2919
2959
  # resp.solution_version.solution_config.optimization_objective.objective_sensitivity #=> String, one of "LOW", "MEDIUM", "HIGH", "OFF"
2960
+ # resp.solution_version.solution_config.training_data_config.excluded_dataset_columns #=> Hash
2961
+ # resp.solution_version.solution_config.training_data_config.excluded_dataset_columns["DatasetType"] #=> Array
2962
+ # resp.solution_version.solution_config.training_data_config.excluded_dataset_columns["DatasetType"][0] #=> String
2920
2963
  # resp.solution_version.training_hours #=> Float
2921
2964
  # resp.solution_version.training_mode #=> String, one of "FULL", "UPDATE"
2922
2965
  # resp.solution_version.tuned_hpo_params.algorithm_hyper_parameters #=> Hash
@@ -3649,6 +3692,9 @@ module Aws::Personalize
3649
3692
  # resp.recommenders[0].recommender_config.item_exploration_config #=> Hash
3650
3693
  # resp.recommenders[0].recommender_config.item_exploration_config["ParameterName"] #=> String
3651
3694
  # resp.recommenders[0].recommender_config.min_recommendation_requests_per_second #=> Integer
3695
+ # resp.recommenders[0].recommender_config.training_data_config.excluded_dataset_columns #=> Hash
3696
+ # resp.recommenders[0].recommender_config.training_data_config.excluded_dataset_columns["DatasetType"] #=> Array
3697
+ # resp.recommenders[0].recommender_config.training_data_config.excluded_dataset_columns["DatasetType"][0] #=> String
3652
3698
  # resp.recommenders[0].status #=> String
3653
3699
  # resp.recommenders[0].creation_date_time #=> Time
3654
3700
  # resp.recommenders[0].last_updated_date_time #=> Time
@@ -3819,7 +3865,7 @@ module Aws::Personalize
3819
3865
  #
3820
3866
  #
3821
3867
  #
3822
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
3868
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
3823
3869
  #
3824
3870
  # @option params [required, String] :resource_arn
3825
3871
  # The resource's Amazon Resource Name.
@@ -3952,11 +3998,11 @@ module Aws::Personalize
3952
3998
  #
3953
3999
  # @option params [required, Array<Types::Tag>] :tags
3954
4000
  # Tags to apply to the resource. For more information see [Tagging
3955
- # Personalize resources][1].
4001
+ # Amazon Personalize recources][1].
3956
4002
  #
3957
4003
  #
3958
4004
  #
3959
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
4005
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
3960
4006
  #
3961
4007
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3962
4008
  #
@@ -3985,7 +4031,7 @@ module Aws::Personalize
3985
4031
  #
3986
4032
  #
3987
4033
  #
3988
- # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
4034
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html
3989
4035
  #
3990
4036
  # @option params [required, String] :resource_arn
3991
4037
  # The resource's Amazon Resource Name (ARN).
@@ -4040,7 +4086,11 @@ module Aws::Personalize
4040
4086
  #
4041
4087
  # @option params [Integer] :min_provisioned_tps
4042
4088
  # Specifies the requested minimum provisioned transactions
4043
- # (recommendations) per second that Amazon Personalize will support.
4089
+ # (recommendations) per second that Amazon Personalize will support. A
4090
+ # high `minProvisionedTPS` will increase your bill. We recommend
4091
+ # starting with 1 for `minProvisionedTPS` (the default). Track your
4092
+ # usage using Amazon CloudWatch metrics, and increase the
4093
+ # `minProvisionedTPS` as necessary.
4044
4094
  #
4045
4095
  # @option params [Types::CampaignConfig] :campaign_config
4046
4096
  # The configuration details of a campaign.
@@ -4127,7 +4177,18 @@ module Aws::Personalize
4127
4177
  req.send_request(options)
4128
4178
  end
4129
4179
 
4130
- # Updates the recommender to modify the recommender configuration.
4180
+ # Updates the recommender to modify the recommender configuration. If
4181
+ # you update the recommender to modify the columns used in training,
4182
+ # Amazon Personalize automatically starts a full retraining of the
4183
+ # models backing your recommender. While the update completes, you can
4184
+ # still get recommendations from the recommender. The recommender uses
4185
+ # the previous configuration until the update completes. To track the
4186
+ # status of this update, use the `latestRecommenderUpdate` returned in
4187
+ # the [DescribeRecommender][1] operation.
4188
+ #
4189
+ #
4190
+ #
4191
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeRecommender.html
4131
4192
  #
4132
4193
  # @option params [required, String] :recommender_arn
4133
4194
  # The Amazon Resource Name (ARN) of the recommender to modify.
@@ -4148,6 +4209,11 @@ module Aws::Personalize
4148
4209
  # "ParameterName" => "ParameterValue",
4149
4210
  # },
4150
4211
  # min_recommendation_requests_per_second: 1,
4212
+ # training_data_config: {
4213
+ # excluded_dataset_columns: {
4214
+ # "DatasetType" => ["ColumnName"],
4215
+ # },
4216
+ # },
4151
4217
  # },
4152
4218
  # })
4153
4219
  #
@@ -4177,7 +4243,7 @@ module Aws::Personalize
4177
4243
  params: params,
4178
4244
  config: config)
4179
4245
  context[:gem_name] = 'aws-sdk-personalize'
4180
- context[:gem_version] = '1.45.0'
4246
+ context[:gem_version] = '1.47.0'
4181
4247
  Seahorse::Client::Request.new(handlers, context)
4182
4248
  end
4183
4249
 
@@ -42,6 +42,8 @@ module Aws::Personalize
42
42
  CategoricalHyperParameterRanges = Shapes::ListShape.new(name: 'CategoricalHyperParameterRanges')
43
43
  CategoricalValue = Shapes::StringShape.new(name: 'CategoricalValue')
44
44
  CategoricalValues = Shapes::ListShape.new(name: 'CategoricalValues')
45
+ ColumnName = Shapes::StringShape.new(name: 'ColumnName')
46
+ ColumnNamesList = Shapes::ListShape.new(name: 'ColumnNamesList')
45
47
  ContinuousHyperParameterRange = Shapes::StructureShape.new(name: 'ContinuousHyperParameterRange')
46
48
  ContinuousHyperParameterRanges = Shapes::ListShape.new(name: 'ContinuousHyperParameterRanges')
47
49
  ContinuousMaxValue = Shapes::FloatShape.new(name: 'ContinuousMaxValue')
@@ -151,6 +153,7 @@ module Aws::Personalize
151
153
  EventTrackers = Shapes::ListShape.new(name: 'EventTrackers')
152
154
  EventType = Shapes::StringShape.new(name: 'EventType')
153
155
  EventValueThreshold = Shapes::StringShape.new(name: 'EventValueThreshold')
156
+ ExcludedDatasetColumns = Shapes::MapShape.new(name: 'ExcludedDatasetColumns')
154
157
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
155
158
  FeatureTransformation = Shapes::StructureShape.new(name: 'FeatureTransformation')
156
159
  FeatureTransformationParameters = Shapes::MapShape.new(name: 'FeatureTransformationParameters')
@@ -276,6 +279,7 @@ module Aws::Personalize
276
279
  TooManyTagKeysException = Shapes::StructureShape.new(name: 'TooManyTagKeysException')
277
280
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
278
281
  TrackingId = Shapes::StringShape.new(name: 'TrackingId')
282
+ TrainingDataConfig = Shapes::StructureShape.new(name: 'TrainingDataConfig')
279
283
  TrainingHours = Shapes::FloatShape.new(name: 'TrainingHours')
280
284
  TrainingInputMode = Shapes::StringShape.new(name: 'TrainingInputMode')
281
285
  TrainingMode = Shapes::StringShape.new(name: 'TrainingMode')
@@ -424,6 +428,8 @@ module Aws::Personalize
424
428
 
425
429
  CategoricalValues.member = Shapes::ShapeRef.new(shape: CategoricalValue)
426
430
 
431
+ ColumnNamesList.member = Shapes::ShapeRef.new(shape: ColumnName)
432
+
427
433
  ContinuousHyperParameterRange.add_member(:name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "name"))
428
434
  ContinuousHyperParameterRange.add_member(:min_value, Shapes::ShapeRef.new(shape: ContinuousMinValue, location_name: "minValue"))
429
435
  ContinuousHyperParameterRange.add_member(:max_value, Shapes::ShapeRef.new(shape: ContinuousMaxValue, location_name: "maxValue"))
@@ -864,6 +870,9 @@ module Aws::Personalize
864
870
 
865
871
  EventTrackers.member = Shapes::ShapeRef.new(shape: EventTrackerSummary)
866
872
 
873
+ ExcludedDatasetColumns.key = Shapes::ShapeRef.new(shape: DatasetType)
874
+ ExcludedDatasetColumns.value = Shapes::ShapeRef.new(shape: ColumnNamesList)
875
+
867
876
  FeatureTransformation.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
868
877
  FeatureTransformation.add_member(:feature_transformation_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "featureTransformationArn"))
869
878
  FeatureTransformation.add_member(:default_parameters, Shapes::ShapeRef.new(shape: FeaturizationParameters, location_name: "defaultParameters"))
@@ -1169,6 +1178,7 @@ module Aws::Personalize
1169
1178
 
1170
1179
  RecommenderConfig.add_member(:item_exploration_config, Shapes::ShapeRef.new(shape: HyperParameters, location_name: "itemExplorationConfig"))
1171
1180
  RecommenderConfig.add_member(:min_recommendation_requests_per_second, Shapes::ShapeRef.new(shape: TransactionsPerSecond, location_name: "minRecommendationRequestsPerSecond"))
1181
+ RecommenderConfig.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, location_name: "trainingDataConfig"))
1172
1182
  RecommenderConfig.struct_class = Types::RecommenderConfig
1173
1183
 
1174
1184
  RecommenderSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
@@ -1229,6 +1239,7 @@ module Aws::Personalize
1229
1239
  SolutionConfig.add_member(:feature_transformation_parameters, Shapes::ShapeRef.new(shape: FeatureTransformationParameters, location_name: "featureTransformationParameters"))
1230
1240
  SolutionConfig.add_member(:auto_ml_config, Shapes::ShapeRef.new(shape: AutoMLConfig, location_name: "autoMLConfig"))
1231
1241
  SolutionConfig.add_member(:optimization_objective, Shapes::ShapeRef.new(shape: OptimizationObjective, location_name: "optimizationObjective"))
1242
+ SolutionConfig.add_member(:training_data_config, Shapes::ShapeRef.new(shape: TrainingDataConfig, location_name: "trainingDataConfig"))
1232
1243
  SolutionConfig.struct_class = Types::SolutionConfig
1233
1244
 
1234
1245
  SolutionSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
@@ -1303,6 +1314,9 @@ module Aws::Personalize
1303
1314
  TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1304
1315
  TooManyTagsException.struct_class = Types::TooManyTagsException
1305
1316
 
1317
+ TrainingDataConfig.add_member(:excluded_dataset_columns, Shapes::ShapeRef.new(shape: ExcludedDatasetColumns, location_name: "excludedDatasetColumns"))
1318
+ TrainingDataConfig.struct_class = Types::TrainingDataConfig
1319
+
1306
1320
  TunedHPOParams.add_member(:algorithm_hyper_parameters, Shapes::ShapeRef.new(shape: HyperParameters, location_name: "algorithmHyperParameters"))
1307
1321
  TunedHPOParams.struct_class = Types::TunedHPOParams
1308
1322
 
@@ -9,104 +9,46 @@
9
9
 
10
10
  module Aws::Personalize
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)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WUseyJmbiI6
97
- ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwi
98
- c3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMi
99
- Olt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
100
- L3BlcnNvbmFsaXplLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0
101
- YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
102
- InR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3Ii
103
- OiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9l
104
- cyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsi
105
- Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vcGVy
106
- c29uYWxpemUue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9
107
- IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBv
108
- aW50In1dfV19
109
-
110
- JSON
111
53
  end
112
54
  end