aws-sdk-personalize 1.58.0 → 1.60.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.
@@ -138,6 +138,32 @@ module Aws::Personalize
138
138
  include Aws::Structure
139
139
  end
140
140
 
141
+ # The automatic training configuration to use when `performAutoTraining`
142
+ # is true.
143
+ #
144
+ # @!attribute [rw] scheduling_expression
145
+ # Specifies how often to automatically train new solution versions.
146
+ # Specify a rate expression in rate(*value* *unit*) format. For value,
147
+ # specify a number between 1 and 30. For unit, specify `day` or
148
+ # `days`. For example, to automatically create a new solution version
149
+ # every 5 days, specify `rate(5 days)`. The default is every 7 days.
150
+ #
151
+ # For more information about auto training, see [Creating and
152
+ # configuring a solution][1].
153
+ #
154
+ #
155
+ #
156
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/customizing-solution-config.html
157
+ # @return [String]
158
+ #
159
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/AutoTrainingConfig AWS API Documentation
160
+ #
161
+ class AutoTrainingConfig < Struct.new(
162
+ :scheduling_expression)
163
+ SENSITIVE = []
164
+ include Aws::Structure
165
+ end
166
+
141
167
  # Contains information on a batch inference job.
142
168
  #
143
169
  # @!attribute [rw] job_name
@@ -545,8 +571,8 @@ module Aws::Personalize
545
571
  # @return [String]
546
572
  #
547
573
  # @!attribute [rw] solution_version_arn
548
- # The Amazon Resource Name (ARN) of a specific version of the
549
- # solution.
574
+ # The Amazon Resource Name (ARN) of the solution version the campaign
575
+ # uses.
550
576
  # @return [String]
551
577
  #
552
578
  # @!attribute [rw] min_provisioned_tps
@@ -643,11 +669,28 @@ module Aws::Personalize
643
669
  # [2]: https://aws.amazon.com/personalize/pricing/
644
670
  # @return [Boolean]
645
671
  #
672
+ # @!attribute [rw] sync_with_latest_solution_version
673
+ # Whether the campaign automatically updates to use the latest
674
+ # solution version (trained model) of a solution. If you specify
675
+ # `True`, you must specify the ARN of your *solution* for the
676
+ # `SolutionVersionArn` parameter. It must be in `SolutionArn/$LATEST`
677
+ # format. The default is `False` and you must manually update the
678
+ # campaign to deploy the latest solution version.
679
+ #
680
+ # For more information about automatic campaign updates, see [Enabling
681
+ # automatic campaign updates][1].
682
+ #
683
+ #
684
+ #
685
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/campaigns.html#create-campaign-automatic-latest-sv-update
686
+ # @return [Boolean]
687
+ #
646
688
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CampaignConfig AWS API Documentation
647
689
  #
648
690
  class CampaignConfig < Struct.new(
649
691
  :item_exploration_config,
650
- :enable_metadata_with_recommendations)
692
+ :enable_metadata_with_recommendations,
693
+ :sync_with_latest_solution_version)
651
694
  SENSITIVE = []
652
695
  include Aws::Structure
653
696
  end
@@ -988,7 +1031,23 @@ module Aws::Personalize
988
1031
  # @return [String]
989
1032
  #
990
1033
  # @!attribute [rw] solution_version_arn
991
- # The Amazon Resource Name (ARN) of the solution version to deploy.
1034
+ # The Amazon Resource Name (ARN) of the trained model to deploy with
1035
+ # the campaign. To specify the latest solution version of your
1036
+ # solution, specify the ARN of your *solution* in
1037
+ # `SolutionArn/$LATEST` format. You must use this format if you set
1038
+ # `syncWithLatestSolutionVersion` to `True` in the
1039
+ # [CampaignConfig][1].
1040
+ #
1041
+ # To deploy a model that isn't the latest solution version of your
1042
+ # solution, specify the ARN of the solution version.
1043
+ #
1044
+ # For more information about automatic campaign updates, see [Enabling
1045
+ # automatic campaign updates][2].
1046
+ #
1047
+ #
1048
+ #
1049
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_CampaignConfig.html
1050
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/campaigns.html#create-campaign-automatic-latest-sv-update
992
1051
  # @return [String]
993
1052
  #
994
1053
  # @!attribute [rw] min_provisioned_tps
@@ -1554,6 +1613,30 @@ module Aws::Personalize
1554
1613
  # [1]: https://docs.aws.amazon.com/personalize/latest/dg/working-with-predefined-recipes.html
1555
1614
  # @return [Boolean]
1556
1615
  #
1616
+ # @!attribute [rw] perform_auto_training
1617
+ # Whether the solution uses automatic training to create new solution
1618
+ # versions (trained models). The default is `True` and the solution
1619
+ # automatically creates new solution versions every 7 days. You can
1620
+ # change the training frequency by specifying a `schedulingExpression`
1621
+ # in the `AutoTrainingConfig` as part of solution configuration. For
1622
+ # more information about automatic training, see [Configuring
1623
+ # automatic training][1].
1624
+ #
1625
+ # Automatic solution version creation starts one hour after the
1626
+ # solution is ACTIVE. If you manually create a solution version within
1627
+ # the hour, the solution skips the first automatic training.
1628
+ #
1629
+ # After training starts, you can get the solution version's Amazon
1630
+ # Resource Name (ARN) with the [ListSolutionVersions][2] API
1631
+ # operation. To get its status, use the [DescribeSolutionVersion][3].
1632
+ #
1633
+ #
1634
+ #
1635
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html
1636
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
1637
+ # [3]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
1638
+ # @return [Boolean]
1639
+ #
1557
1640
  # @!attribute [rw] recipe_arn
1558
1641
  # The Amazon Resource Name (ARN) of the recipe to use for model
1559
1642
  # training. This is required when `performAutoML` is false. For
@@ -1604,6 +1687,7 @@ module Aws::Personalize
1604
1687
  :name,
1605
1688
  :perform_hpo,
1606
1689
  :perform_auto_ml,
1690
+ :perform_auto_training,
1607
1691
  :recipe_arn,
1608
1692
  :dataset_group_arn,
1609
1693
  :event_type,
@@ -4212,7 +4296,7 @@ module Aws::Personalize
4212
4296
  end
4213
4297
 
4214
4298
  # @!attribute [rw] resource_arn
4215
- # The resource's Amazon Resource Name.
4299
+ # The resource's Amazon Resource Name (ARN).
4216
4300
  # @return [String]
4217
4301
  #
4218
4302
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListTagsForResourceRequest AWS API Documentation
@@ -4850,8 +4934,26 @@ module Aws::Personalize
4850
4934
  include Aws::Structure
4851
4935
  end
4852
4936
 
4853
- # An object that provides information about a solution. A solution is a
4854
- # trained model that can be deployed as a campaign.
4937
+ # After you create a solution, you can’t change its configuration. By
4938
+ # default, all new solutions use automatic training. With automatic
4939
+ # training, you incur training costs while your solution is active. You
4940
+ # can't stop automatic training for a solution. To avoid unnecessary
4941
+ # costs, make sure to delete the solution when you are finished. For
4942
+ # information about training costs, see [Amazon Personalize pricing][1].
4943
+ #
4944
+ # An object that provides information about a solution. A solution
4945
+ # includes the custom recipe, customized parameters, and trained models
4946
+ # (Solution Versions) that Amazon Personalize uses to generate
4947
+ # recommendations.
4948
+ #
4949
+ # After you create a solution, you can’t change its configuration. If
4950
+ # you need to make changes, you can [clone the solution][2] with the
4951
+ # Amazon Personalize console or create a new one.
4952
+ #
4953
+ #
4954
+ #
4955
+ # [1]: https://aws.amazon.com/personalize/pricing/
4956
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/cloning-solution.html
4855
4957
  #
4856
4958
  # @!attribute [rw] name
4857
4959
  # The name of the solution.
@@ -4881,6 +4983,19 @@ module Aws::Personalize
4881
4983
  # [1]: https://docs.aws.amazon.com/personalize/latest/dg/determining-use-case.html
4882
4984
  # @return [Boolean]
4883
4985
  #
4986
+ # @!attribute [rw] perform_auto_training
4987
+ # Specifies whether the solution automatically creates solution
4988
+ # versions. The default is `True` and the solution automatically
4989
+ # creates new solution versions every 7 days.
4990
+ #
4991
+ # For more information about auto training, see [Creating and
4992
+ # configuring a solution][1].
4993
+ #
4994
+ #
4995
+ #
4996
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/customizing-solution-config.html
4997
+ # @return [Boolean]
4998
+ #
4884
4999
  # @!attribute [rw] recipe_arn
4885
5000
  # The ARN of the recipe used to create the solution. This is required
4886
5001
  # when `performAutoML` is false.
@@ -4937,6 +5052,7 @@ module Aws::Personalize
4937
5052
  :solution_arn,
4938
5053
  :perform_hpo,
4939
5054
  :perform_auto_ml,
5055
+ :perform_auto_training,
4940
5056
  :recipe_arn,
4941
5057
  :dataset_group_arn,
4942
5058
  :event_type,
@@ -4993,6 +5109,10 @@ module Aws::Personalize
4993
5109
  # custom solution version (trained model).
4994
5110
  # @return [Types::TrainingDataConfig]
4995
5111
  #
5112
+ # @!attribute [rw] auto_training_config
5113
+ # Specifies the automatic training configuration to use.
5114
+ # @return [Types::AutoTrainingConfig]
5115
+ #
4996
5116
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/SolutionConfig AWS API Documentation
4997
5117
  #
4998
5118
  class SolutionConfig < Struct.new(
@@ -5002,7 +5122,8 @@ module Aws::Personalize
5002
5122
  :feature_transformation_parameters,
5003
5123
  :auto_ml_config,
5004
5124
  :optimization_objective,
5005
- :training_data_config)
5125
+ :training_data_config,
5126
+ :auto_training_config)
5006
5127
  SENSITIVE = []
5007
5128
  include Aws::Structure
5008
5129
  end
@@ -5114,22 +5235,10 @@ module Aws::Personalize
5114
5235
  #
5115
5236
  # @!attribute [rw] training_mode
5116
5237
  # The scope of training to be performed when creating the solution
5117
- # version. The `FULL` option trains the solution version based on the
5118
- # entirety of the input solution's training data, while the `UPDATE`
5119
- # option processes only the data that has changed in comparison to the
5120
- # input solution. Choose `UPDATE` when you want to incrementally
5121
- # update your solution version instead of creating an entirely new
5122
- # one.
5123
- #
5124
- # The `UPDATE` option can only be used when you already have an active
5125
- # solution version created from the input solution using the `FULL`
5126
- # option and the input solution was trained with the
5127
- # [User-Personalization][1] recipe or the [HRNN-Coldstart][2] recipe.
5128
- #
5129
- #
5130
- #
5131
- # [1]: https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html
5132
- # [2]: https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-hrnn-coldstart.html
5238
+ # version. A `FULL` training considers all of the data in your dataset
5239
+ # group. An `UPDATE` processes only the data that has changed since
5240
+ # the latest training. Only solution versions created with the
5241
+ # User-Personalization recipe can use `UPDATE`.
5133
5242
  # @return [String]
5134
5243
  #
5135
5244
  # @!attribute [rw] tuned_hpo_params
@@ -5168,6 +5277,10 @@ module Aws::Personalize
5168
5277
  # The date and time (in Unix time) that the solution was last updated.
5169
5278
  # @return [Time]
5170
5279
  #
5280
+ # @!attribute [rw] training_type
5281
+ # Whether the solution version was created automatically or manually.
5282
+ # @return [String]
5283
+ #
5171
5284
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/SolutionVersion AWS API Documentation
5172
5285
  #
5173
5286
  class SolutionVersion < Struct.new(
@@ -5186,7 +5299,8 @@ module Aws::Personalize
5186
5299
  :status,
5187
5300
  :failure_reason,
5188
5301
  :creation_date_time,
5189
- :last_updated_date_time)
5302
+ :last_updated_date_time,
5303
+ :training_type)
5190
5304
  SENSITIVE = []
5191
5305
  include Aws::Structure
5192
5306
  end
@@ -5213,6 +5327,18 @@ module Aws::Personalize
5213
5327
  # ^
5214
5328
  # @return [String]
5215
5329
  #
5330
+ # @!attribute [rw] training_mode
5331
+ # The scope of training to be performed when creating the solution
5332
+ # version. A `FULL` training considers all of the data in your dataset
5333
+ # group. An `UPDATE` processes only the data that has changed since
5334
+ # the latest training. Only solution versions created with the
5335
+ # User-Personalization recipe can use `UPDATE`.
5336
+ # @return [String]
5337
+ #
5338
+ # @!attribute [rw] training_type
5339
+ # Whether the solution version was created automatically or manually.
5340
+ # @return [String]
5341
+ #
5216
5342
  # @!attribute [rw] creation_date_time
5217
5343
  # The date and time (in Unix time) that this version of a solution was
5218
5344
  # created.
@@ -5232,6 +5358,8 @@ module Aws::Personalize
5232
5358
  class SolutionVersionSummary < Struct.new(
5233
5359
  :solution_version_arn,
5234
5360
  :status,
5361
+ :training_mode,
5362
+ :training_type,
5235
5363
  :creation_date_time,
5236
5364
  :last_updated_date_time,
5237
5365
  :failure_reason)
@@ -5303,7 +5431,7 @@ module Aws::Personalize
5303
5431
  # The optional metadata that you apply to resources to help you
5304
5432
  # categorize and organize them. Each tag consists of a key and an
5305
5433
  # optional value, both of which you define. For more information see
5306
- # [Tagging Amazon Personalize recources][1].
5434
+ # [Tagging Amazon Personalize resources][1].
5307
5435
  #
5308
5436
  #
5309
5437
  #
@@ -5334,7 +5462,7 @@ module Aws::Personalize
5334
5462
  #
5335
5463
  # @!attribute [rw] tags
5336
5464
  # Tags to apply to the resource. For more information see [Tagging
5337
- # Amazon Personalize recources][1].
5465
+ # Amazon Personalize resources][1].
5338
5466
  #
5339
5467
  #
5340
5468
  #
@@ -5405,10 +5533,11 @@ module Aws::Personalize
5405
5533
  # Specifies the columns to exclude from training. Each key is a
5406
5534
  # dataset type, and each value is a list of columns. Exclude columns
5407
5535
  # to control what data Amazon Personalize uses to generate
5408
- # recommendations. For example, you might have a column that you want
5409
- # to use only to filter recommendations. You can exclude this column
5410
- # from training and Amazon Personalize considers it only when
5411
- # filtering.
5536
+ # recommendations.
5537
+ #
5538
+ # For example, you might have a column that you want to use only to
5539
+ # filter recommendations. You can exclude this column from training
5540
+ # and Amazon Personalize considers it only when filtering.
5412
5541
  # @return [Hash<String,Array<String>>]
5413
5542
  #
5414
5543
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/TrainingDataConfig AWS API Documentation
@@ -5439,7 +5568,7 @@ module Aws::Personalize
5439
5568
  # @return [String]
5440
5569
  #
5441
5570
  # @!attribute [rw] tag_keys
5442
- # Keys to remove from the resource's tags.
5571
+ # The keys of the tags to be removed.
5443
5572
  # @return [Array<String>]
5444
5573
  #
5445
5574
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UntagResourceRequest AWS API Documentation
@@ -5460,7 +5589,22 @@ module Aws::Personalize
5460
5589
  # @return [String]
5461
5590
  #
5462
5591
  # @!attribute [rw] solution_version_arn
5463
- # The ARN of a new solution version to deploy.
5592
+ # The Amazon Resource Name (ARN) of a new model to deploy. To specify
5593
+ # the latest solution version of your solution, specify the ARN of
5594
+ # your *solution* in `SolutionArn/$LATEST` format. You must use this
5595
+ # format if you set `syncWithLatestSolutionVersion` to `True` in the
5596
+ # [CampaignConfig][1].
5597
+ #
5598
+ # To deploy a model that isn't the latest solution version of your
5599
+ # solution, specify the ARN of the solution version.
5600
+ #
5601
+ # For more information about automatic campaign updates, see [Enabling
5602
+ # automatic campaign updates][2].
5603
+ #
5604
+ #
5605
+ #
5606
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/API_CampaignConfig.html
5607
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/campaigns.html#create-campaign-automatic-latest-sv-update
5464
5608
  # @return [String]
5465
5609
  #
5466
5610
  # @!attribute [rw] min_provisioned_tps
@@ -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.58.0'
55
+ GEM_VERSION = '1.60.0'
56
56
 
57
57
  end