aws-sdk-personalize 1.42.0 → 1.44.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.
@@ -0,0 +1,188 @@
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
+
11
+ module Aws::Personalize
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Personalize::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Personalize::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Personalize::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_batch_inference_job
60
+ Aws::Personalize::Endpoints::CreateBatchInferenceJob.build(context)
61
+ when :create_batch_segment_job
62
+ Aws::Personalize::Endpoints::CreateBatchSegmentJob.build(context)
63
+ when :create_campaign
64
+ Aws::Personalize::Endpoints::CreateCampaign.build(context)
65
+ when :create_dataset
66
+ Aws::Personalize::Endpoints::CreateDataset.build(context)
67
+ when :create_dataset_export_job
68
+ Aws::Personalize::Endpoints::CreateDatasetExportJob.build(context)
69
+ when :create_dataset_group
70
+ Aws::Personalize::Endpoints::CreateDatasetGroup.build(context)
71
+ when :create_dataset_import_job
72
+ Aws::Personalize::Endpoints::CreateDatasetImportJob.build(context)
73
+ when :create_event_tracker
74
+ Aws::Personalize::Endpoints::CreateEventTracker.build(context)
75
+ when :create_filter
76
+ Aws::Personalize::Endpoints::CreateFilter.build(context)
77
+ when :create_recommender
78
+ Aws::Personalize::Endpoints::CreateRecommender.build(context)
79
+ when :create_schema
80
+ Aws::Personalize::Endpoints::CreateSchema.build(context)
81
+ when :create_solution
82
+ Aws::Personalize::Endpoints::CreateSolution.build(context)
83
+ when :create_solution_version
84
+ Aws::Personalize::Endpoints::CreateSolutionVersion.build(context)
85
+ when :delete_campaign
86
+ Aws::Personalize::Endpoints::DeleteCampaign.build(context)
87
+ when :delete_dataset
88
+ Aws::Personalize::Endpoints::DeleteDataset.build(context)
89
+ when :delete_dataset_group
90
+ Aws::Personalize::Endpoints::DeleteDatasetGroup.build(context)
91
+ when :delete_event_tracker
92
+ Aws::Personalize::Endpoints::DeleteEventTracker.build(context)
93
+ when :delete_filter
94
+ Aws::Personalize::Endpoints::DeleteFilter.build(context)
95
+ when :delete_recommender
96
+ Aws::Personalize::Endpoints::DeleteRecommender.build(context)
97
+ when :delete_schema
98
+ Aws::Personalize::Endpoints::DeleteSchema.build(context)
99
+ when :delete_solution
100
+ Aws::Personalize::Endpoints::DeleteSolution.build(context)
101
+ when :describe_algorithm
102
+ Aws::Personalize::Endpoints::DescribeAlgorithm.build(context)
103
+ when :describe_batch_inference_job
104
+ Aws::Personalize::Endpoints::DescribeBatchInferenceJob.build(context)
105
+ when :describe_batch_segment_job
106
+ Aws::Personalize::Endpoints::DescribeBatchSegmentJob.build(context)
107
+ when :describe_campaign
108
+ Aws::Personalize::Endpoints::DescribeCampaign.build(context)
109
+ when :describe_dataset
110
+ Aws::Personalize::Endpoints::DescribeDataset.build(context)
111
+ when :describe_dataset_export_job
112
+ Aws::Personalize::Endpoints::DescribeDatasetExportJob.build(context)
113
+ when :describe_dataset_group
114
+ Aws::Personalize::Endpoints::DescribeDatasetGroup.build(context)
115
+ when :describe_dataset_import_job
116
+ Aws::Personalize::Endpoints::DescribeDatasetImportJob.build(context)
117
+ when :describe_event_tracker
118
+ Aws::Personalize::Endpoints::DescribeEventTracker.build(context)
119
+ when :describe_feature_transformation
120
+ Aws::Personalize::Endpoints::DescribeFeatureTransformation.build(context)
121
+ when :describe_filter
122
+ Aws::Personalize::Endpoints::DescribeFilter.build(context)
123
+ when :describe_recipe
124
+ Aws::Personalize::Endpoints::DescribeRecipe.build(context)
125
+ when :describe_recommender
126
+ Aws::Personalize::Endpoints::DescribeRecommender.build(context)
127
+ when :describe_schema
128
+ Aws::Personalize::Endpoints::DescribeSchema.build(context)
129
+ when :describe_solution
130
+ Aws::Personalize::Endpoints::DescribeSolution.build(context)
131
+ when :describe_solution_version
132
+ Aws::Personalize::Endpoints::DescribeSolutionVersion.build(context)
133
+ when :get_solution_metrics
134
+ Aws::Personalize::Endpoints::GetSolutionMetrics.build(context)
135
+ when :list_batch_inference_jobs
136
+ Aws::Personalize::Endpoints::ListBatchInferenceJobs.build(context)
137
+ when :list_batch_segment_jobs
138
+ Aws::Personalize::Endpoints::ListBatchSegmentJobs.build(context)
139
+ when :list_campaigns
140
+ Aws::Personalize::Endpoints::ListCampaigns.build(context)
141
+ when :list_dataset_export_jobs
142
+ Aws::Personalize::Endpoints::ListDatasetExportJobs.build(context)
143
+ when :list_dataset_groups
144
+ Aws::Personalize::Endpoints::ListDatasetGroups.build(context)
145
+ when :list_dataset_import_jobs
146
+ Aws::Personalize::Endpoints::ListDatasetImportJobs.build(context)
147
+ when :list_datasets
148
+ Aws::Personalize::Endpoints::ListDatasets.build(context)
149
+ when :list_event_trackers
150
+ Aws::Personalize::Endpoints::ListEventTrackers.build(context)
151
+ when :list_filters
152
+ Aws::Personalize::Endpoints::ListFilters.build(context)
153
+ when :list_recipes
154
+ Aws::Personalize::Endpoints::ListRecipes.build(context)
155
+ when :list_recommenders
156
+ Aws::Personalize::Endpoints::ListRecommenders.build(context)
157
+ when :list_schemas
158
+ Aws::Personalize::Endpoints::ListSchemas.build(context)
159
+ when :list_solution_versions
160
+ Aws::Personalize::Endpoints::ListSolutionVersions.build(context)
161
+ when :list_solutions
162
+ Aws::Personalize::Endpoints::ListSolutions.build(context)
163
+ when :list_tags_for_resource
164
+ Aws::Personalize::Endpoints::ListTagsForResource.build(context)
165
+ when :start_recommender
166
+ Aws::Personalize::Endpoints::StartRecommender.build(context)
167
+ when :stop_recommender
168
+ Aws::Personalize::Endpoints::StopRecommender.build(context)
169
+ when :stop_solution_version_creation
170
+ Aws::Personalize::Endpoints::StopSolutionVersionCreation.build(context)
171
+ when :tag_resource
172
+ Aws::Personalize::Endpoints::TagResource.build(context)
173
+ when :untag_resource
174
+ Aws::Personalize::Endpoints::UntagResource.build(context)
175
+ when :update_campaign
176
+ Aws::Personalize::Endpoints::UpdateCampaign.build(context)
177
+ when :update_recommender
178
+ Aws::Personalize::Endpoints::UpdateRecommender.build(context)
179
+ end
180
+ end
181
+ end
182
+
183
+ def add_handlers(handlers, _config)
184
+ handlers.add(Handler, step: :build, priority: 75)
185
+ end
186
+ end
187
+ end
188
+ end
@@ -1310,6 +1310,7 @@ module Aws::Personalize
1310
1310
  # tag_value: "TagValue", # required
1311
1311
  # },
1312
1312
  # ],
1313
+ # import_mode: "FULL", # accepts FULL, INCREMENTAL
1313
1314
  # }
1314
1315
  #
1315
1316
  # @!attribute [rw] job_name
@@ -1337,6 +1338,19 @@ module Aws::Personalize
1337
1338
  # [1]: https://docs.aws.amazon.com/personalize/latest/dev/tagging-resources.html
1338
1339
  # @return [Array<Types::Tag>]
1339
1340
  #
1341
+ # @!attribute [rw] import_mode
1342
+ # Specify how to add the new records to an existing dataset. The
1343
+ # default import mode is `FULL`. If you haven't imported bulk records
1344
+ # into the dataset previously, you can only specify `FULL`.
1345
+ #
1346
+ # * Specify `FULL` to overwrite all existing bulk data in your
1347
+ # dataset. Data you imported individually is not replaced.
1348
+ #
1349
+ # * Specify `INCREMENTAL` to append the new records to the existing
1350
+ # data in your dataset. Amazon Personalize replaces any record with
1351
+ # the same ID with the new one.
1352
+ # @return [String]
1353
+ #
1340
1354
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateDatasetImportJobRequest AWS API Documentation
1341
1355
  #
1342
1356
  class CreateDatasetImportJobRequest < Struct.new(
@@ -1344,7 +1358,8 @@ module Aws::Personalize
1344
1358
  :dataset_arn,
1345
1359
  :data_source,
1346
1360
  :role_arn,
1347
- :tags)
1361
+ :tags,
1362
+ :import_mode)
1348
1363
  SENSITIVE = []
1349
1364
  include Aws::Structure
1350
1365
  end
@@ -2358,6 +2373,11 @@ module Aws::Personalize
2358
2373
  # If a dataset import job fails, provides the reason why.
2359
2374
  # @return [String]
2360
2375
  #
2376
+ # @!attribute [rw] import_mode
2377
+ # The import mode used by the dataset import job to import new
2378
+ # records.
2379
+ # @return [String]
2380
+ #
2361
2381
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DatasetImportJob AWS API Documentation
2362
2382
  #
2363
2383
  class DatasetImportJob < Struct.new(
@@ -2369,7 +2389,8 @@ module Aws::Personalize
2369
2389
  :status,
2370
2390
  :creation_date_time,
2371
2391
  :last_updated_date_time,
2372
- :failure_reason)
2392
+ :failure_reason,
2393
+ :import_mode)
2373
2394
  SENSITIVE = []
2374
2395
  include Aws::Structure
2375
2396
  end
@@ -2414,6 +2435,16 @@ module Aws::Personalize
2414
2435
  # If a dataset import job fails, the reason behind the failure.
2415
2436
  # @return [String]
2416
2437
  #
2438
+ # @!attribute [rw] import_mode
2439
+ # The import mode the dataset import job used to update the data in
2440
+ # the dataset. For more information see [Updating existing bulk
2441
+ # data][1].
2442
+ #
2443
+ #
2444
+ #
2445
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/updating-existing-bulk-data.html
2446
+ # @return [String]
2447
+ #
2417
2448
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DatasetImportJobSummary AWS API Documentation
2418
2449
  #
2419
2450
  class DatasetImportJobSummary < Struct.new(
@@ -2422,7 +2453,8 @@ module Aws::Personalize
2422
2453
  :status,
2423
2454
  :creation_date_time,
2424
2455
  :last_updated_date_time,
2425
- :failure_reason)
2456
+ :failure_reason,
2457
+ :import_mode)
2426
2458
  SENSITIVE = []
2427
2459
  include Aws::Structure
2428
2460
  end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-personalize/types'
15
15
  require_relative 'aws-sdk-personalize/client_api'
16
+ require_relative 'aws-sdk-personalize/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-personalize/client'
17
18
  require_relative 'aws-sdk-personalize/errors'
18
19
  require_relative 'aws-sdk-personalize/resource'
20
+ require_relative 'aws-sdk-personalize/endpoint_parameters'
21
+ require_relative 'aws-sdk-personalize/endpoint_provider'
22
+ require_relative 'aws-sdk-personalize/endpoints'
19
23
  require_relative 'aws-sdk-personalize/customizations'
20
24
 
21
25
  # This module provides support for Amazon Personalize. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-personalize/customizations'
48
52
  # @!group service
49
53
  module Aws::Personalize
50
54
 
51
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.44.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-personalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-personalize/client.rb
60
60
  - lib/aws-sdk-personalize/client_api.rb
61
61
  - lib/aws-sdk-personalize/customizations.rb
62
+ - lib/aws-sdk-personalize/endpoint_parameters.rb
63
+ - lib/aws-sdk-personalize/endpoint_provider.rb
64
+ - lib/aws-sdk-personalize/endpoints.rb
62
65
  - lib/aws-sdk-personalize/errors.rb
66
+ - lib/aws-sdk-personalize/plugins/endpoints.rb
63
67
  - lib/aws-sdk-personalize/resource.rb
64
68
  - lib/aws-sdk-personalize/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby