aws-sdk-personalize 1.43.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-personalize/client.rb +301 -3
- data/lib/aws-sdk-personalize/client_api.rb +181 -0
- data/lib/aws-sdk-personalize/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-personalize/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-personalize/endpoints.rb +939 -0
- data/lib/aws-sdk-personalize/plugins/endpoints.rb +200 -0
- data/lib/aws-sdk-personalize/types.rb +493 -3
- data/lib/aws-sdk-personalize.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb4bb9c7ee70652f3c644264762f3a0cffe6902ad8e7bb21f4aa55e6d4dadfd
|
4
|
+
data.tar.gz: aba40a8129081ba4765deadc6bbc3f80add89cc26f63ee6a2c46500b67279478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d6a04dfbe7a537a94cc560c7f4fbf17baebeac3ebc7583af1839a7ed8088c9ee0edeba5d40a632d14cea1e4083a83c72a939f2a5e59a403db9ff81d74c907b
|
7
|
+
data.tar.gz: 84317573eed5c4bad5b909bf4da7d1513e9f2ce1930d9a035bb69f7bd18ca0b318caeedeb5c5f05bc0cd285e0ee5e59b739ede810b6018274fed22953315ba10
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
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
|
+
|
9
|
+
1.44.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.43.0 (2022-08-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:personalize)
|
@@ -79,8 +79,9 @@ module Aws::Personalize
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::Personalize::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::Personalize
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::Personalize
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::Personalize::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Personalize::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -1072,6 +1089,10 @@ module Aws::Personalize
|
|
1072
1089
|
# in your dataset. Amazon Personalize replaces any record with the
|
1073
1090
|
# same ID with the new one.
|
1074
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
|
+
#
|
1075
1096
|
# @return [Types::CreateDatasetImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1076
1097
|
#
|
1077
1098
|
# * {Types::CreateDatasetImportJobResponse#dataset_import_job_arn #dataset_import_job_arn} => String
|
@@ -1092,6 +1113,7 @@ module Aws::Personalize
|
|
1092
1113
|
# },
|
1093
1114
|
# ],
|
1094
1115
|
# import_mode: "FULL", # accepts FULL, INCREMENTAL
|
1116
|
+
# publish_attribution_metrics_to_s3: false,
|
1095
1117
|
# })
|
1096
1118
|
#
|
1097
1119
|
# @example Response structure
|
@@ -1259,6 +1281,71 @@ module Aws::Personalize
|
|
1259
1281
|
req.send_request(options)
|
1260
1282
|
end
|
1261
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
|
+
|
1262
1349
|
# Creates a recommender with the recipe (a Domain dataset group use
|
1263
1350
|
# case) you specify. You create recommenders for a Domain dataset group
|
1264
1351
|
# and specify the recommender's Amazon Resource Name (ARN) when you
|
@@ -1704,6 +1791,9 @@ module Aws::Personalize
|
|
1704
1791
|
# [5]: https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
|
1705
1792
|
# [6]: https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html
|
1706
1793
|
#
|
1794
|
+
# @option params [String] :name
|
1795
|
+
# The name of the solution version.
|
1796
|
+
#
|
1707
1797
|
# @option params [required, String] :solution_arn
|
1708
1798
|
# The Amazon Resource Name (ARN) of the solution containing the training
|
1709
1799
|
# configuration information.
|
@@ -1740,6 +1830,7 @@ module Aws::Personalize
|
|
1740
1830
|
# @example Request syntax with placeholder values
|
1741
1831
|
#
|
1742
1832
|
# resp = client.create_solution_version({
|
1833
|
+
# name: "Name",
|
1743
1834
|
# solution_arn: "Arn", # required
|
1744
1835
|
# training_mode: "FULL", # accepts FULL, UPDATE
|
1745
1836
|
# tags: [
|
@@ -1902,6 +1993,28 @@ module Aws::Personalize
|
|
1902
1993
|
req.send_request(options)
|
1903
1994
|
end
|
1904
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
|
+
|
1905
2018
|
# Deactivates and removes a recommender. A deleted recommender can no
|
1906
2019
|
# longer be specified in a [GetRecommendations][1] request.
|
1907
2020
|
#
|
@@ -2349,6 +2462,7 @@ module Aws::Personalize
|
|
2349
2462
|
# resp.dataset_import_job.last_updated_date_time #=> Time
|
2350
2463
|
# resp.dataset_import_job.failure_reason #=> String
|
2351
2464
|
# resp.dataset_import_job.import_mode #=> String, one of "FULL", "INCREMENTAL"
|
2465
|
+
# resp.dataset_import_job.publish_attribution_metrics_to_s3 #=> Boolean
|
2352
2466
|
#
|
2353
2467
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDatasetImportJob AWS API Documentation
|
2354
2468
|
#
|
@@ -2470,6 +2584,43 @@ module Aws::Personalize
|
|
2470
2584
|
req.send_request(options)
|
2471
2585
|
end
|
2472
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
|
+
|
2473
2624
|
# Describes a recipe.
|
2474
2625
|
#
|
2475
2626
|
# A recipe contains three items:
|
@@ -2731,6 +2882,7 @@ module Aws::Personalize
|
|
2731
2882
|
#
|
2732
2883
|
# @example Response structure
|
2733
2884
|
#
|
2885
|
+
# resp.solution_version.name #=> String
|
2734
2886
|
# resp.solution_version.solution_version_arn #=> String
|
2735
2887
|
# resp.solution_version.solution_arn #=> String
|
2736
2888
|
# resp.solution_version.perform_hpo #=> Boolean
|
@@ -3301,6 +3453,99 @@ module Aws::Personalize
|
|
3301
3453
|
req.send_request(options)
|
3302
3454
|
end
|
3303
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<Types::MetricAttribute>
|
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<Types::MetricAttributionSummary>
|
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
|
+
|
3304
3549
|
# Returns a list of available recipes. The response provides the
|
3305
3550
|
# properties for each recipe, including the recipe's Amazon Resource
|
3306
3551
|
# Name (ARN).
|
@@ -3558,6 +3803,7 @@ module Aws::Personalize
|
|
3558
3803
|
# resp.solutions[0].status #=> String
|
3559
3804
|
# resp.solutions[0].creation_date_time #=> Time
|
3560
3805
|
# resp.solutions[0].last_updated_date_time #=> Time
|
3806
|
+
# resp.solutions[0].recipe_arn #=> String
|
3561
3807
|
# resp.next_token #=> String
|
3562
3808
|
#
|
3563
3809
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSolutions AWS API Documentation
|
@@ -3829,6 +4075,58 @@ module Aws::Personalize
|
|
3829
4075
|
req.send_request(options)
|
3830
4076
|
end
|
3831
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
|
+
|
3832
4130
|
# Updates the recommender to modify the recommender configuration.
|
3833
4131
|
#
|
3834
4132
|
# @option params [required, String] :recommender_arn
|
@@ -3879,7 +4177,7 @@ module Aws::Personalize
|
|
3879
4177
|
params: params,
|
3880
4178
|
config: config)
|
3881
4179
|
context[:gem_name] = 'aws-sdk-personalize'
|
3882
|
-
context[:gem_version] = '1.
|
4180
|
+
context[:gem_version] = '1.45.0'
|
3883
4181
|
Seahorse::Client::Request.new(handlers, context)
|
3884
4182
|
end
|
3885
4183
|
|