aws-sdk-personalize 1.44.0 → 1.45.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: 5841fd66452d1da47a89a6310821edf33407cbc23880dbb38057624366a857ce
4
- data.tar.gz: cc730ac589190486c08e0d58b3055fb907d6aba973f201bf8c3bcdf7d868f180
3
+ metadata.gz: 6cb4bb9c7ee70652f3c644264762f3a0cffe6902ad8e7bb21f4aa55e6d4dadfd
4
+ data.tar.gz: aba40a8129081ba4765deadc6bbc3f80add89cc26f63ee6a2c46500b67279478
5
5
  SHA512:
6
- metadata.gz: b2e7224bb310abf0496429f16e47d1ee19aa54bed373ba47e9184fcd0e69f973b4ff3e19837285388a8b776f89afab13d2c81c325dc5de52649c52a23f80c383
7
- data.tar.gz: b88146ee1fe3d0b4d3566829a6fe2e8109290752768e6281e8710e42bd50fce3b8822eb23096b2d927e03dd5b98f5a68a5df45676219a86953a4f06ae90d43d7
6
+ metadata.gz: f1d6a04dfbe7a537a94cc560c7f4fbf17baebeac3ebc7583af1839a7ed8088c9ee0edeba5d40a632d14cea1e4083a83c72a939f2a5e59a403db9ff81d74c907b
7
+ data.tar.gz: 84317573eed5c4bad5b909bf4da7d1513e9f2ce1930d9a035bb69f7bd18ca0b318caeedeb5c5f05bc0cd285e0ee5e59b739ede810b6018274fed22953315ba10
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2022-11-17)
5
+ ------------------
6
+
7
+ * Feature - This release provides support for creation and use of metric attributions in AWS Personalize
8
+
4
9
  1.44.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -1089,6 +1089,10 @@ module Aws::Personalize
1089
1089
  # in your dataset. Amazon Personalize replaces any record with the
1090
1090
  # same ID with the new one.
1091
1091
  #
1092
+ # @option params [Boolean] :publish_attribution_metrics_to_s3
1093
+ # If you created a metric attribution, specify whether to publish
1094
+ # metrics for this import job to Amazon S3
1095
+ #
1092
1096
  # @return [Types::CreateDatasetImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1093
1097
  #
1094
1098
  # * {Types::CreateDatasetImportJobResponse#dataset_import_job_arn #dataset_import_job_arn} => String
@@ -1109,6 +1113,7 @@ module Aws::Personalize
1109
1113
  # },
1110
1114
  # ],
1111
1115
  # import_mode: "FULL", # accepts FULL, INCREMENTAL
1116
+ # publish_attribution_metrics_to_s3: false,
1112
1117
  # })
1113
1118
  #
1114
1119
  # @example Response structure
@@ -1276,6 +1281,71 @@ module Aws::Personalize
1276
1281
  req.send_request(options)
1277
1282
  end
1278
1283
 
1284
+ # Creates a metric attribution. A metric attribution creates reports on
1285
+ # the data that you import into Amazon Personalize. Depending on how you
1286
+ # imported the data, you can view reports in Amazon CloudWatch or Amazon
1287
+ # S3. For more information, see [Measuring impact of
1288
+ # recommendations][1].
1289
+ #
1290
+ #
1291
+ #
1292
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
1293
+ #
1294
+ # @option params [required, String] :name
1295
+ # A name for the metric attribution.
1296
+ #
1297
+ # @option params [required, String] :dataset_group_arn
1298
+ # The Amazon Resource Name (ARN) of the destination dataset group for
1299
+ # the metric attribution.
1300
+ #
1301
+ # @option params [required, Array<Types::MetricAttribute>] :metrics
1302
+ # A list of metric attributes for the metric attribution. Each metric
1303
+ # attribute specifies an event type to track and a function. Available
1304
+ # functions are `SUM()` or `SAMPLECOUNT()`. For SUM() functions, provide
1305
+ # the dataset type (either Interactions or Items) and column to sum as a
1306
+ # parameter. For example SUM(Items.PRICE).
1307
+ #
1308
+ # @option params [required, Types::MetricAttributionOutput] :metrics_output_config
1309
+ # The output configuration details for the metric attribution.
1310
+ #
1311
+ # @return [Types::CreateMetricAttributionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1312
+ #
1313
+ # * {Types::CreateMetricAttributionResponse#metric_attribution_arn #metric_attribution_arn} => String
1314
+ #
1315
+ # @example Request syntax with placeholder values
1316
+ #
1317
+ # resp = client.create_metric_attribution({
1318
+ # name: "Name", # required
1319
+ # dataset_group_arn: "Arn", # required
1320
+ # metrics: [ # required
1321
+ # {
1322
+ # event_type: "EventType", # required
1323
+ # metric_name: "MetricName", # required
1324
+ # expression: "MetricExpression", # required
1325
+ # },
1326
+ # ],
1327
+ # metrics_output_config: { # required
1328
+ # s3_data_destination: {
1329
+ # path: "S3Location", # required
1330
+ # kms_key_arn: "KmsKeyArn",
1331
+ # },
1332
+ # role_arn: "RoleArn", # required
1333
+ # },
1334
+ # })
1335
+ #
1336
+ # @example Response structure
1337
+ #
1338
+ # resp.metric_attribution_arn #=> String
1339
+ #
1340
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateMetricAttribution AWS API Documentation
1341
+ #
1342
+ # @overload create_metric_attribution(params = {})
1343
+ # @param [Hash] params ({})
1344
+ def create_metric_attribution(params = {}, options = {})
1345
+ req = build_request(:create_metric_attribution, params)
1346
+ req.send_request(options)
1347
+ end
1348
+
1279
1349
  # Creates a recommender with the recipe (a Domain dataset group use
1280
1350
  # case) you specify. You create recommenders for a Domain dataset group
1281
1351
  # and specify the recommender's Amazon Resource Name (ARN) when you
@@ -1721,6 +1791,9 @@ module Aws::Personalize
1721
1791
  # [5]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
1722
1792
  # [6]: https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html
1723
1793
  #
1794
+ # @option params [String] :name
1795
+ # The name of the solution version.
1796
+ #
1724
1797
  # @option params [required, String] :solution_arn
1725
1798
  # The Amazon Resource Name (ARN) of the solution containing the training
1726
1799
  # configuration information.
@@ -1757,6 +1830,7 @@ module Aws::Personalize
1757
1830
  # @example Request syntax with placeholder values
1758
1831
  #
1759
1832
  # resp = client.create_solution_version({
1833
+ # name: "Name",
1760
1834
  # solution_arn: "Arn", # required
1761
1835
  # training_mode: "FULL", # accepts FULL, UPDATE
1762
1836
  # tags: [
@@ -1919,6 +1993,28 @@ module Aws::Personalize
1919
1993
  req.send_request(options)
1920
1994
  end
1921
1995
 
1996
+ # Deletes a metric attribution.
1997
+ #
1998
+ # @option params [required, String] :metric_attribution_arn
1999
+ # The metric attribution's Amazon Resource Name (ARN).
2000
+ #
2001
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2002
+ #
2003
+ # @example Request syntax with placeholder values
2004
+ #
2005
+ # resp = client.delete_metric_attribution({
2006
+ # metric_attribution_arn: "Arn", # required
2007
+ # })
2008
+ #
2009
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteMetricAttribution AWS API Documentation
2010
+ #
2011
+ # @overload delete_metric_attribution(params = {})
2012
+ # @param [Hash] params ({})
2013
+ def delete_metric_attribution(params = {}, options = {})
2014
+ req = build_request(:delete_metric_attribution, params)
2015
+ req.send_request(options)
2016
+ end
2017
+
1922
2018
  # Deactivates and removes a recommender. A deleted recommender can no
1923
2019
  # longer be specified in a [GetRecommendations][1] request.
1924
2020
  #
@@ -2366,6 +2462,7 @@ module Aws::Personalize
2366
2462
  # resp.dataset_import_job.last_updated_date_time #=> Time
2367
2463
  # resp.dataset_import_job.failure_reason #=> String
2368
2464
  # resp.dataset_import_job.import_mode #=> String, one of "FULL", "INCREMENTAL"
2465
+ # resp.dataset_import_job.publish_attribution_metrics_to_s3 #=> Boolean
2369
2466
  #
2370
2467
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDatasetImportJob AWS API Documentation
2371
2468
  #
@@ -2487,6 +2584,43 @@ module Aws::Personalize
2487
2584
  req.send_request(options)
2488
2585
  end
2489
2586
 
2587
+ # Describes a metric attribution.
2588
+ #
2589
+ # @option params [required, String] :metric_attribution_arn
2590
+ # The metric attribution's Amazon Resource Name (ARN).
2591
+ #
2592
+ # @return [Types::DescribeMetricAttributionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2593
+ #
2594
+ # * {Types::DescribeMetricAttributionResponse#metric_attribution #metric_attribution} => Types::MetricAttribution
2595
+ #
2596
+ # @example Request syntax with placeholder values
2597
+ #
2598
+ # resp = client.describe_metric_attribution({
2599
+ # metric_attribution_arn: "Arn", # required
2600
+ # })
2601
+ #
2602
+ # @example Response structure
2603
+ #
2604
+ # resp.metric_attribution.name #=> String
2605
+ # resp.metric_attribution.metric_attribution_arn #=> String
2606
+ # resp.metric_attribution.dataset_group_arn #=> String
2607
+ # resp.metric_attribution.metrics_output_config.s3_data_destination.path #=> String
2608
+ # resp.metric_attribution.metrics_output_config.s3_data_destination.kms_key_arn #=> String
2609
+ # resp.metric_attribution.metrics_output_config.role_arn #=> String
2610
+ # resp.metric_attribution.status #=> String
2611
+ # resp.metric_attribution.creation_date_time #=> Time
2612
+ # resp.metric_attribution.last_updated_date_time #=> Time
2613
+ # resp.metric_attribution.failure_reason #=> String
2614
+ #
2615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeMetricAttribution AWS API Documentation
2616
+ #
2617
+ # @overload describe_metric_attribution(params = {})
2618
+ # @param [Hash] params ({})
2619
+ def describe_metric_attribution(params = {}, options = {})
2620
+ req = build_request(:describe_metric_attribution, params)
2621
+ req.send_request(options)
2622
+ end
2623
+
2490
2624
  # Describes a recipe.
2491
2625
  #
2492
2626
  # A recipe contains three items:
@@ -2748,6 +2882,7 @@ module Aws::Personalize
2748
2882
  #
2749
2883
  # @example Response structure
2750
2884
  #
2885
+ # resp.solution_version.name #=> String
2751
2886
  # resp.solution_version.solution_version_arn #=> String
2752
2887
  # resp.solution_version.solution_arn #=> String
2753
2888
  # resp.solution_version.perform_hpo #=> Boolean
@@ -3318,6 +3453,99 @@ module Aws::Personalize
3318
3453
  req.send_request(options)
3319
3454
  end
3320
3455
 
3456
+ # Lists the metrics for the metric attribution.
3457
+ #
3458
+ # @option params [String] :metric_attribution_arn
3459
+ # The Amazon Resource Name (ARN) of the metric attribution to retrieve
3460
+ # attributes for.
3461
+ #
3462
+ # @option params [String] :next_token
3463
+ # Specify the pagination token from a previous request to retrieve the
3464
+ # next page of results.
3465
+ #
3466
+ # @option params [Integer] :max_results
3467
+ # The maximum number of metrics to return in one page of results.
3468
+ #
3469
+ # @return [Types::ListMetricAttributionMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3470
+ #
3471
+ # * {Types::ListMetricAttributionMetricsResponse#metrics #metrics} => Array&lt;Types::MetricAttribute&gt;
3472
+ # * {Types::ListMetricAttributionMetricsResponse#next_token #next_token} => String
3473
+ #
3474
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3475
+ #
3476
+ # @example Request syntax with placeholder values
3477
+ #
3478
+ # resp = client.list_metric_attribution_metrics({
3479
+ # metric_attribution_arn: "Arn",
3480
+ # next_token: "NextToken",
3481
+ # max_results: 1,
3482
+ # })
3483
+ #
3484
+ # @example Response structure
3485
+ #
3486
+ # resp.metrics #=> Array
3487
+ # resp.metrics[0].event_type #=> String
3488
+ # resp.metrics[0].metric_name #=> String
3489
+ # resp.metrics[0].expression #=> String
3490
+ # resp.next_token #=> String
3491
+ #
3492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListMetricAttributionMetrics AWS API Documentation
3493
+ #
3494
+ # @overload list_metric_attribution_metrics(params = {})
3495
+ # @param [Hash] params ({})
3496
+ def list_metric_attribution_metrics(params = {}, options = {})
3497
+ req = build_request(:list_metric_attribution_metrics, params)
3498
+ req.send_request(options)
3499
+ end
3500
+
3501
+ # Lists metric attributions.
3502
+ #
3503
+ # @option params [String] :dataset_group_arn
3504
+ # The metric attributions' dataset group Amazon Resource Name (ARN).
3505
+ #
3506
+ # @option params [String] :next_token
3507
+ # Specify the pagination token from a previous request to retrieve the
3508
+ # next page of results.
3509
+ #
3510
+ # @option params [Integer] :max_results
3511
+ # The maximum number of metric attributions to return in one page of
3512
+ # results.
3513
+ #
3514
+ # @return [Types::ListMetricAttributionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3515
+ #
3516
+ # * {Types::ListMetricAttributionsResponse#metric_attributions #metric_attributions} => Array&lt;Types::MetricAttributionSummary&gt;
3517
+ # * {Types::ListMetricAttributionsResponse#next_token #next_token} => String
3518
+ #
3519
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3520
+ #
3521
+ # @example Request syntax with placeholder values
3522
+ #
3523
+ # resp = client.list_metric_attributions({
3524
+ # dataset_group_arn: "Arn",
3525
+ # next_token: "NextToken",
3526
+ # max_results: 1,
3527
+ # })
3528
+ #
3529
+ # @example Response structure
3530
+ #
3531
+ # resp.metric_attributions #=> Array
3532
+ # resp.metric_attributions[0].name #=> String
3533
+ # resp.metric_attributions[0].metric_attribution_arn #=> String
3534
+ # resp.metric_attributions[0].status #=> String
3535
+ # resp.metric_attributions[0].creation_date_time #=> Time
3536
+ # resp.metric_attributions[0].last_updated_date_time #=> Time
3537
+ # resp.metric_attributions[0].failure_reason #=> String
3538
+ # resp.next_token #=> String
3539
+ #
3540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListMetricAttributions AWS API Documentation
3541
+ #
3542
+ # @overload list_metric_attributions(params = {})
3543
+ # @param [Hash] params ({})
3544
+ def list_metric_attributions(params = {}, options = {})
3545
+ req = build_request(:list_metric_attributions, params)
3546
+ req.send_request(options)
3547
+ end
3548
+
3321
3549
  # Returns a list of available recipes. The response provides the
3322
3550
  # properties for each recipe, including the recipe's Amazon Resource
3323
3551
  # Name (ARN).
@@ -3575,6 +3803,7 @@ module Aws::Personalize
3575
3803
  # resp.solutions[0].status #=> String
3576
3804
  # resp.solutions[0].creation_date_time #=> Time
3577
3805
  # resp.solutions[0].last_updated_date_time #=> Time
3806
+ # resp.solutions[0].recipe_arn #=> String
3578
3807
  # resp.next_token #=> String
3579
3808
  #
3580
3809
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSolutions AWS API Documentation
@@ -3846,6 +4075,58 @@ module Aws::Personalize
3846
4075
  req.send_request(options)
3847
4076
  end
3848
4077
 
4078
+ # Updates a metric attribution.
4079
+ #
4080
+ # @option params [Array<Types::MetricAttribute>] :add_metrics
4081
+ # Add new metric attributes to the metric attribution.
4082
+ #
4083
+ # @option params [Array<String>] :remove_metrics
4084
+ # Remove metric attributes from the metric attribution.
4085
+ #
4086
+ # @option params [Types::MetricAttributionOutput] :metrics_output_config
4087
+ # An output config for the metric attribution.
4088
+ #
4089
+ # @option params [String] :metric_attribution_arn
4090
+ # The Amazon Resource Name (ARN) for the metric attribution to update.
4091
+ #
4092
+ # @return [Types::UpdateMetricAttributionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4093
+ #
4094
+ # * {Types::UpdateMetricAttributionResponse#metric_attribution_arn #metric_attribution_arn} => String
4095
+ #
4096
+ # @example Request syntax with placeholder values
4097
+ #
4098
+ # resp = client.update_metric_attribution({
4099
+ # add_metrics: [
4100
+ # {
4101
+ # event_type: "EventType", # required
4102
+ # metric_name: "MetricName", # required
4103
+ # expression: "MetricExpression", # required
4104
+ # },
4105
+ # ],
4106
+ # remove_metrics: ["MetricName"],
4107
+ # metrics_output_config: {
4108
+ # s3_data_destination: {
4109
+ # path: "S3Location", # required
4110
+ # kms_key_arn: "KmsKeyArn",
4111
+ # },
4112
+ # role_arn: "RoleArn", # required
4113
+ # },
4114
+ # metric_attribution_arn: "Arn",
4115
+ # })
4116
+ #
4117
+ # @example Response structure
4118
+ #
4119
+ # resp.metric_attribution_arn #=> String
4120
+ #
4121
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateMetricAttribution AWS API Documentation
4122
+ #
4123
+ # @overload update_metric_attribution(params = {})
4124
+ # @param [Hash] params ({})
4125
+ def update_metric_attribution(params = {}, options = {})
4126
+ req = build_request(:update_metric_attribution, params)
4127
+ req.send_request(options)
4128
+ end
4129
+
3849
4130
  # Updates the recommender to modify the recommender configuration.
3850
4131
  #
3851
4132
  # @option params [required, String] :recommender_arn
@@ -3896,7 +4177,7 @@ module Aws::Personalize
3896
4177
  params: params,
3897
4178
  config: config)
3898
4179
  context[:gem_name] = 'aws-sdk-personalize'
3899
- context[:gem_version] = '1.44.0'
4180
+ context[:gem_version] = '1.45.0'
3900
4181
  Seahorse::Client::Request.new(handlers, context)
3901
4182
  end
3902
4183