aws-sdk-personalize 1.43.0 → 1.45.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.
@@ -64,6 +64,8 @@ module Aws::Personalize
64
64
  CreateEventTrackerResponse = Shapes::StructureShape.new(name: 'CreateEventTrackerResponse')
65
65
  CreateFilterRequest = Shapes::StructureShape.new(name: 'CreateFilterRequest')
66
66
  CreateFilterResponse = Shapes::StructureShape.new(name: 'CreateFilterResponse')
67
+ CreateMetricAttributionRequest = Shapes::StructureShape.new(name: 'CreateMetricAttributionRequest')
68
+ CreateMetricAttributionResponse = Shapes::StructureShape.new(name: 'CreateMetricAttributionResponse')
67
69
  CreateRecommenderRequest = Shapes::StructureShape.new(name: 'CreateRecommenderRequest')
68
70
  CreateRecommenderResponse = Shapes::StructureShape.new(name: 'CreateRecommenderResponse')
69
71
  CreateSchemaRequest = Shapes::StructureShape.new(name: 'CreateSchemaRequest')
@@ -102,6 +104,7 @@ module Aws::Personalize
102
104
  DeleteDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDatasetRequest')
103
105
  DeleteEventTrackerRequest = Shapes::StructureShape.new(name: 'DeleteEventTrackerRequest')
104
106
  DeleteFilterRequest = Shapes::StructureShape.new(name: 'DeleteFilterRequest')
107
+ DeleteMetricAttributionRequest = Shapes::StructureShape.new(name: 'DeleteMetricAttributionRequest')
105
108
  DeleteRecommenderRequest = Shapes::StructureShape.new(name: 'DeleteRecommenderRequest')
106
109
  DeleteSchemaRequest = Shapes::StructureShape.new(name: 'DeleteSchemaRequest')
107
110
  DeleteSolutionRequest = Shapes::StructureShape.new(name: 'DeleteSolutionRequest')
@@ -127,6 +130,8 @@ module Aws::Personalize
127
130
  DescribeFeatureTransformationResponse = Shapes::StructureShape.new(name: 'DescribeFeatureTransformationResponse')
128
131
  DescribeFilterRequest = Shapes::StructureShape.new(name: 'DescribeFilterRequest')
129
132
  DescribeFilterResponse = Shapes::StructureShape.new(name: 'DescribeFilterResponse')
133
+ DescribeMetricAttributionRequest = Shapes::StructureShape.new(name: 'DescribeMetricAttributionRequest')
134
+ DescribeMetricAttributionResponse = Shapes::StructureShape.new(name: 'DescribeMetricAttributionResponse')
130
135
  DescribeRecipeRequest = Shapes::StructureShape.new(name: 'DescribeRecipeRequest')
131
136
  DescribeRecipeResponse = Shapes::StructureShape.new(name: 'DescribeRecipeResponse')
132
137
  DescribeRecommenderRequest = Shapes::StructureShape.new(name: 'DescribeRecommenderRequest')
@@ -192,6 +197,10 @@ module Aws::Personalize
192
197
  ListEventTrackersResponse = Shapes::StructureShape.new(name: 'ListEventTrackersResponse')
193
198
  ListFiltersRequest = Shapes::StructureShape.new(name: 'ListFiltersRequest')
194
199
  ListFiltersResponse = Shapes::StructureShape.new(name: 'ListFiltersResponse')
200
+ ListMetricAttributionMetricsRequest = Shapes::StructureShape.new(name: 'ListMetricAttributionMetricsRequest')
201
+ ListMetricAttributionMetricsResponse = Shapes::StructureShape.new(name: 'ListMetricAttributionMetricsResponse')
202
+ ListMetricAttributionsRequest = Shapes::StructureShape.new(name: 'ListMetricAttributionsRequest')
203
+ ListMetricAttributionsResponse = Shapes::StructureShape.new(name: 'ListMetricAttributionsResponse')
195
204
  ListRecipesRequest = Shapes::StructureShape.new(name: 'ListRecipesRequest')
196
205
  ListRecipesResponse = Shapes::StructureShape.new(name: 'ListRecipesResponse')
197
206
  ListRecommendersRequest = Shapes::StructureShape.new(name: 'ListRecommendersRequest')
@@ -205,6 +214,14 @@ module Aws::Personalize
205
214
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
206
215
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
207
216
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
217
+ MetricAttribute = Shapes::StructureShape.new(name: 'MetricAttribute')
218
+ MetricAttributes = Shapes::ListShape.new(name: 'MetricAttributes')
219
+ MetricAttributesNamesList = Shapes::ListShape.new(name: 'MetricAttributesNamesList')
220
+ MetricAttribution = Shapes::StructureShape.new(name: 'MetricAttribution')
221
+ MetricAttributionOutput = Shapes::StructureShape.new(name: 'MetricAttributionOutput')
222
+ MetricAttributionSummary = Shapes::StructureShape.new(name: 'MetricAttributionSummary')
223
+ MetricAttributions = Shapes::ListShape.new(name: 'MetricAttributions')
224
+ MetricExpression = Shapes::StringShape.new(name: 'MetricExpression')
208
225
  MetricName = Shapes::StringShape.new(name: 'MetricName')
209
226
  MetricRegex = Shapes::StringShape.new(name: 'MetricRegex')
210
227
  MetricValue = Shapes::FloatShape.new(name: 'MetricValue')
@@ -269,6 +286,8 @@ module Aws::Personalize
269
286
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
270
287
  UpdateCampaignRequest = Shapes::StructureShape.new(name: 'UpdateCampaignRequest')
271
288
  UpdateCampaignResponse = Shapes::StructureShape.new(name: 'UpdateCampaignResponse')
289
+ UpdateMetricAttributionRequest = Shapes::StructureShape.new(name: 'UpdateMetricAttributionRequest')
290
+ UpdateMetricAttributionResponse = Shapes::StructureShape.new(name: 'UpdateMetricAttributionResponse')
272
291
  UpdateRecommenderRequest = Shapes::StructureShape.new(name: 'UpdateRecommenderRequest')
273
292
  UpdateRecommenderResponse = Shapes::StructureShape.new(name: 'UpdateRecommenderResponse')
274
293
 
@@ -477,6 +496,7 @@ module Aws::Personalize
477
496
  CreateDatasetImportJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
478
497
  CreateDatasetImportJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
479
498
  CreateDatasetImportJobRequest.add_member(:import_mode, Shapes::ShapeRef.new(shape: ImportMode, location_name: "importMode"))
499
+ CreateDatasetImportJobRequest.add_member(:publish_attribution_metrics_to_s3, Shapes::ShapeRef.new(shape: Boolean, location_name: "publishAttributionMetricsToS3"))
480
500
  CreateDatasetImportJobRequest.struct_class = Types::CreateDatasetImportJobRequest
481
501
 
482
502
  CreateDatasetImportJobResponse.add_member(:dataset_import_job_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetImportJobArn"))
@@ -510,6 +530,15 @@ module Aws::Personalize
510
530
  CreateFilterResponse.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
511
531
  CreateFilterResponse.struct_class = Types::CreateFilterResponse
512
532
 
533
+ CreateMetricAttributionRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
534
+ CreateMetricAttributionRequest.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetGroupArn"))
535
+ CreateMetricAttributionRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricAttributes, required: true, location_name: "metrics"))
536
+ CreateMetricAttributionRequest.add_member(:metrics_output_config, Shapes::ShapeRef.new(shape: MetricAttributionOutput, required: true, location_name: "metricsOutputConfig"))
537
+ CreateMetricAttributionRequest.struct_class = Types::CreateMetricAttributionRequest
538
+
539
+ CreateMetricAttributionResponse.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
540
+ CreateMetricAttributionResponse.struct_class = Types::CreateMetricAttributionResponse
541
+
513
542
  CreateRecommenderRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
514
543
  CreateRecommenderRequest.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetGroupArn"))
515
544
  CreateRecommenderRequest.add_member(:recipe_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recipeArn"))
@@ -541,6 +570,7 @@ module Aws::Personalize
541
570
  CreateSolutionResponse.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionArn"))
542
571
  CreateSolutionResponse.struct_class = Types::CreateSolutionResponse
543
572
 
573
+ CreateSolutionVersionRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
544
574
  CreateSolutionVersionRequest.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "solutionArn"))
545
575
  CreateSolutionVersionRequest.add_member(:training_mode, Shapes::ShapeRef.new(shape: TrainingMode, location_name: "trainingMode"))
546
576
  CreateSolutionVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
@@ -619,6 +649,7 @@ module Aws::Personalize
619
649
  DatasetImportJob.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
620
650
  DatasetImportJob.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
621
651
  DatasetImportJob.add_member(:import_mode, Shapes::ShapeRef.new(shape: ImportMode, location_name: "importMode"))
652
+ DatasetImportJob.add_member(:publish_attribution_metrics_to_s3, Shapes::ShapeRef.new(shape: Boolean, location_name: "publishAttributionMetricsToS3"))
622
653
  DatasetImportJob.struct_class = Types::DatasetImportJob
623
654
 
624
655
  DatasetImportJobSummary.add_member(:dataset_import_job_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetImportJobArn"))
@@ -700,6 +731,9 @@ module Aws::Personalize
700
731
  DeleteFilterRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "filterArn"))
701
732
  DeleteFilterRequest.struct_class = Types::DeleteFilterRequest
702
733
 
734
+ DeleteMetricAttributionRequest.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "metricAttributionArn"))
735
+ DeleteMetricAttributionRequest.struct_class = Types::DeleteMetricAttributionRequest
736
+
703
737
  DeleteRecommenderRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recommenderArn"))
704
738
  DeleteRecommenderRequest.struct_class = Types::DeleteRecommenderRequest
705
739
 
@@ -775,6 +809,12 @@ module Aws::Personalize
775
809
  DescribeFilterResponse.add_member(:filter, Shapes::ShapeRef.new(shape: Filter, location_name: "filter"))
776
810
  DescribeFilterResponse.struct_class = Types::DescribeFilterResponse
777
811
 
812
+ DescribeMetricAttributionRequest.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "metricAttributionArn"))
813
+ DescribeMetricAttributionRequest.struct_class = Types::DescribeMetricAttributionRequest
814
+
815
+ DescribeMetricAttributionResponse.add_member(:metric_attribution, Shapes::ShapeRef.new(shape: MetricAttribution, location_name: "metricAttribution"))
816
+ DescribeMetricAttributionResponse.struct_class = Types::DescribeMetricAttributionResponse
817
+
778
818
  DescribeRecipeRequest.add_member(:recipe_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recipeArn"))
779
819
  DescribeRecipeRequest.struct_class = Types::DescribeRecipeRequest
780
820
 
@@ -984,6 +1024,24 @@ module Aws::Personalize
984
1024
  ListFiltersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
985
1025
  ListFiltersResponse.struct_class = Types::ListFiltersResponse
986
1026
 
1027
+ ListMetricAttributionMetricsRequest.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
1028
+ ListMetricAttributionMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1029
+ ListMetricAttributionMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1030
+ ListMetricAttributionMetricsRequest.struct_class = Types::ListMetricAttributionMetricsRequest
1031
+
1032
+ ListMetricAttributionMetricsResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricAttributes, location_name: "metrics"))
1033
+ ListMetricAttributionMetricsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1034
+ ListMetricAttributionMetricsResponse.struct_class = Types::ListMetricAttributionMetricsResponse
1035
+
1036
+ ListMetricAttributionsRequest.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetGroupArn"))
1037
+ ListMetricAttributionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1038
+ ListMetricAttributionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1039
+ ListMetricAttributionsRequest.struct_class = Types::ListMetricAttributionsRequest
1040
+
1041
+ ListMetricAttributionsResponse.add_member(:metric_attributions, Shapes::ShapeRef.new(shape: MetricAttributions, location_name: "metricAttributions"))
1042
+ ListMetricAttributionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1043
+ ListMetricAttributionsResponse.struct_class = Types::ListMetricAttributionsResponse
1044
+
987
1045
  ListRecipesRequest.add_member(:recipe_provider, Shapes::ShapeRef.new(shape: RecipeProvider, location_name: "recipeProvider"))
988
1046
  ListRecipesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
989
1047
  ListRecipesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
@@ -1035,6 +1093,39 @@ module Aws::Personalize
1035
1093
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1036
1094
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
1037
1095
 
1096
+ MetricAttribute.add_member(:event_type, Shapes::ShapeRef.new(shape: EventType, required: true, location_name: "eventType"))
1097
+ MetricAttribute.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "metricName"))
1098
+ MetricAttribute.add_member(:expression, Shapes::ShapeRef.new(shape: MetricExpression, required: true, location_name: "expression"))
1099
+ MetricAttribute.struct_class = Types::MetricAttribute
1100
+
1101
+ MetricAttributes.member = Shapes::ShapeRef.new(shape: MetricAttribute)
1102
+
1103
+ MetricAttributesNamesList.member = Shapes::ShapeRef.new(shape: MetricName)
1104
+
1105
+ MetricAttribution.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1106
+ MetricAttribution.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
1107
+ MetricAttribution.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetGroupArn"))
1108
+ MetricAttribution.add_member(:metrics_output_config, Shapes::ShapeRef.new(shape: MetricAttributionOutput, location_name: "metricsOutputConfig"))
1109
+ MetricAttribution.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
1110
+ MetricAttribution.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
1111
+ MetricAttribution.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
1112
+ MetricAttribution.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
1113
+ MetricAttribution.struct_class = Types::MetricAttribution
1114
+
1115
+ MetricAttributionOutput.add_member(:s3_data_destination, Shapes::ShapeRef.new(shape: S3DataConfig, location_name: "s3DataDestination"))
1116
+ MetricAttributionOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
1117
+ MetricAttributionOutput.struct_class = Types::MetricAttributionOutput
1118
+
1119
+ MetricAttributionSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1120
+ MetricAttributionSummary.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
1121
+ MetricAttributionSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
1122
+ MetricAttributionSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
1123
+ MetricAttributionSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
1124
+ MetricAttributionSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
1125
+ MetricAttributionSummary.struct_class = Types::MetricAttributionSummary
1126
+
1127
+ MetricAttributions.member = Shapes::ShapeRef.new(shape: MetricAttributionSummary)
1128
+
1038
1129
  Metrics.key = Shapes::ShapeRef.new(shape: MetricName)
1039
1130
  Metrics.value = Shapes::ShapeRef.new(shape: MetricValue)
1040
1131
 
@@ -1145,8 +1236,10 @@ module Aws::Personalize
1145
1236
  SolutionSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
1146
1237
  SolutionSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
1147
1238
  SolutionSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
1239
+ SolutionSummary.add_member(:recipe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recipeArn"))
1148
1240
  SolutionSummary.struct_class = Types::SolutionSummary
1149
1241
 
1242
+ SolutionVersion.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1150
1243
  SolutionVersion.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionVersionArn"))
1151
1244
  SolutionVersion.add_member(:solution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionArn"))
1152
1245
  SolutionVersion.add_member(:perform_hpo, Shapes::ShapeRef.new(shape: PerformHPO, location_name: "performHPO"))
@@ -1228,6 +1321,15 @@ module Aws::Personalize
1228
1321
  UpdateCampaignResponse.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "campaignArn"))
1229
1322
  UpdateCampaignResponse.struct_class = Types::UpdateCampaignResponse
1230
1323
 
1324
+ UpdateMetricAttributionRequest.add_member(:add_metrics, Shapes::ShapeRef.new(shape: MetricAttributes, location_name: "addMetrics"))
1325
+ UpdateMetricAttributionRequest.add_member(:remove_metrics, Shapes::ShapeRef.new(shape: MetricAttributesNamesList, location_name: "removeMetrics"))
1326
+ UpdateMetricAttributionRequest.add_member(:metrics_output_config, Shapes::ShapeRef.new(shape: MetricAttributionOutput, location_name: "metricsOutputConfig"))
1327
+ UpdateMetricAttributionRequest.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
1328
+ UpdateMetricAttributionRequest.struct_class = Types::UpdateMetricAttributionRequest
1329
+
1330
+ UpdateMetricAttributionResponse.add_member(:metric_attribution_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "metricAttributionArn"))
1331
+ UpdateMetricAttributionResponse.struct_class = Types::UpdateMetricAttributionResponse
1332
+
1231
1333
  UpdateRecommenderRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recommenderArn"))
1232
1334
  UpdateRecommenderRequest.add_member(:recommender_config, Shapes::ShapeRef.new(shape: RecommenderConfig, required: true, location_name: "recommenderConfig"))
1233
1335
  UpdateRecommenderRequest.struct_class = Types::UpdateRecommenderRequest
@@ -1377,6 +1479,19 @@ module Aws::Personalize
1377
1479
  o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1378
1480
  end)
1379
1481
 
1482
+ api.add_operation(:create_metric_attribution, Seahorse::Model::Operation.new.tap do |o|
1483
+ o.name = "CreateMetricAttribution"
1484
+ o.http_method = "POST"
1485
+ o.http_request_uri = "/"
1486
+ o.input = Shapes::ShapeRef.new(shape: CreateMetricAttributionRequest)
1487
+ o.output = Shapes::ShapeRef.new(shape: CreateMetricAttributionResponse)
1488
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1489
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1490
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
1491
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1492
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1493
+ end)
1494
+
1380
1495
  api.add_operation(:create_recommender, Seahorse::Model::Operation.new.tap do |o|
1381
1496
  o.name = "CreateRecommender"
1382
1497
  o.http_method = "POST"
@@ -1427,6 +1542,7 @@ module Aws::Personalize
1427
1542
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1428
1543
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1429
1544
  o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1545
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
1430
1546
  end)
1431
1547
 
1432
1548
  api.add_operation(:delete_campaign, Seahorse::Model::Operation.new.tap do |o|
@@ -1484,6 +1600,17 @@ module Aws::Personalize
1484
1600
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1485
1601
  end)
1486
1602
 
1603
+ api.add_operation(:delete_metric_attribution, Seahorse::Model::Operation.new.tap do |o|
1604
+ o.name = "DeleteMetricAttribution"
1605
+ o.http_method = "POST"
1606
+ o.http_request_uri = "/"
1607
+ o.input = Shapes::ShapeRef.new(shape: DeleteMetricAttributionRequest)
1608
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1609
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1610
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1611
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1612
+ end)
1613
+
1487
1614
  api.add_operation(:delete_recommender, Seahorse::Model::Operation.new.tap do |o|
1488
1615
  o.name = "DeleteRecommender"
1489
1616
  o.http_method = "POST"
@@ -1627,6 +1754,16 @@ module Aws::Personalize
1627
1754
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1628
1755
  end)
1629
1756
 
1757
+ api.add_operation(:describe_metric_attribution, Seahorse::Model::Operation.new.tap do |o|
1758
+ o.name = "DescribeMetricAttribution"
1759
+ o.http_method = "POST"
1760
+ o.http_request_uri = "/"
1761
+ o.input = Shapes::ShapeRef.new(shape: DescribeMetricAttributionRequest)
1762
+ o.output = Shapes::ShapeRef.new(shape: DescribeMetricAttributionResponse)
1763
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1764
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1765
+ end)
1766
+
1630
1767
  api.add_operation(:describe_recipe, Seahorse::Model::Operation.new.tap do |o|
1631
1768
  o.name = "DescribeRecipe"
1632
1769
  o.http_method = "POST"
@@ -1831,6 +1968,38 @@ module Aws::Personalize
1831
1968
  )
1832
1969
  end)
1833
1970
 
1971
+ api.add_operation(:list_metric_attribution_metrics, Seahorse::Model::Operation.new.tap do |o|
1972
+ o.name = "ListMetricAttributionMetrics"
1973
+ o.http_method = "POST"
1974
+ o.http_request_uri = "/"
1975
+ o.input = Shapes::ShapeRef.new(shape: ListMetricAttributionMetricsRequest)
1976
+ o.output = Shapes::ShapeRef.new(shape: ListMetricAttributionMetricsResponse)
1977
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1978
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1979
+ o[:pager] = Aws::Pager.new(
1980
+ limit_key: "max_results",
1981
+ tokens: {
1982
+ "next_token" => "next_token"
1983
+ }
1984
+ )
1985
+ end)
1986
+
1987
+ api.add_operation(:list_metric_attributions, Seahorse::Model::Operation.new.tap do |o|
1988
+ o.name = "ListMetricAttributions"
1989
+ o.http_method = "POST"
1990
+ o.http_request_uri = "/"
1991
+ o.input = Shapes::ShapeRef.new(shape: ListMetricAttributionsRequest)
1992
+ o.output = Shapes::ShapeRef.new(shape: ListMetricAttributionsResponse)
1993
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1994
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1995
+ o[:pager] = Aws::Pager.new(
1996
+ limit_key: "max_results",
1997
+ tokens: {
1998
+ "next_token" => "next_token"
1999
+ }
2000
+ )
2001
+ end)
2002
+
1834
2003
  api.add_operation(:list_recipes, Seahorse::Model::Operation.new.tap do |o|
1835
2004
  o.name = "ListRecipes"
1836
2005
  o.http_method = "POST"
@@ -1991,6 +2160,18 @@ module Aws::Personalize
1991
2160
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1992
2161
  end)
1993
2162
 
2163
+ api.add_operation(:update_metric_attribution, Seahorse::Model::Operation.new.tap do |o|
2164
+ o.name = "UpdateMetricAttribution"
2165
+ o.http_method = "POST"
2166
+ o.http_request_uri = "/"
2167
+ o.input = Shapes::ShapeRef.new(shape: UpdateMetricAttributionRequest)
2168
+ o.output = Shapes::ShapeRef.new(shape: UpdateMetricAttributionResponse)
2169
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2170
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2171
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2172
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
2173
+ end)
2174
+
1994
2175
  api.add_operation(:update_recommender, Seahorse::Model::Operation.new.tap do |o|
1995
2176
  o.name = "UpdateRecommender"
1996
2177
  o.http_method = "POST"
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Personalize
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Personalize
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
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JS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