aws-sdk-personalize 1.10.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-personalize.rb +3 -1
- data/lib/aws-sdk-personalize/client.rb +186 -7
- data/lib/aws-sdk-personalize/client_api.rb +104 -0
- data/lib/aws-sdk-personalize/errors.rb +2 -0
- data/lib/aws-sdk-personalize/resource.rb +3 -7
- data/lib/aws-sdk-personalize/types.rb +388 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ecc025b4a0f2116cff850a737c0fc51307caf9c5f5e5833368ceb9acd9efc885
|
4
|
+
data.tar.gz: fc2ac4cbfab8ef462d634c6339a0a75a0d8b21fda7c0e9a059b92be350b9427d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e0f7de9da1bbe980a37264f9231774c9486c41c7032ade59a960835e36550f13582075073229d8856ac21e98dab255aa660ef8445d1a1633e10368e83c986fb
|
7
|
+
data.tar.gz: c0d2217de11b749c9f6965f466a7edf53d02316508f35773041eb1af2379f71b5b788611b1e786084cf5bf0c02430a171cc2f73565739d04d413042e42a80f4c
|
data/lib/aws-sdk-personalize.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-personalize/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::Personalize
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.15.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::Personalize
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
74
78
|
|
@@ -105,7 +109,7 @@ module Aws::Personalize
|
|
105
109
|
# @option options [required, String] :region
|
106
110
|
# The AWS region to connect to. The configured `:region` is
|
107
111
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
109
113
|
#
|
110
114
|
# * `Aws.config[:region]`
|
111
115
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +165,7 @@ module Aws::Personalize
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::Personalize
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -279,8 +283,7 @@ module Aws::Personalize
|
|
279
283
|
#
|
280
284
|
# @option options [Integer] :http_read_timeout (60) The default
|
281
285
|
# number of seconds to wait for response data. This value can
|
282
|
-
# safely be set
|
283
|
-
# per-request on the session yielded by {#session_for}.
|
286
|
+
# safely be set per-request on the session.
|
284
287
|
#
|
285
288
|
# @option options [Float] :http_idle_timeout (5) The number of
|
286
289
|
# seconds a connection is allowed to sit idle before it is
|
@@ -292,7 +295,7 @@ module Aws::Personalize
|
|
292
295
|
# request body. This option has no effect unless the request has
|
293
296
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
294
297
|
# disables this behaviour. This value can safely be set per
|
295
|
-
# request on the session
|
298
|
+
# request on the session.
|
296
299
|
#
|
297
300
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
298
301
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -330,6 +333,11 @@ module Aws::Personalize
|
|
330
333
|
# The Amazon Resource Name (ARN) of the solution version that will be
|
331
334
|
# used to generate the batch inference recommendations.
|
332
335
|
#
|
336
|
+
# @option params [String] :filter_arn
|
337
|
+
# The ARN of the filter to apply to the batch inference job. For more
|
338
|
+
# information on using filters, see Using Filters with Amazon
|
339
|
+
# Personalize.
|
340
|
+
#
|
333
341
|
# @option params [Integer] :num_results
|
334
342
|
# The number of recommendations to retreive.
|
335
343
|
#
|
@@ -355,6 +363,7 @@ module Aws::Personalize
|
|
355
363
|
# resp = client.create_batch_inference_job({
|
356
364
|
# job_name: "Name", # required
|
357
365
|
# solution_version_arn: "Arn", # required
|
366
|
+
# filter_arn: "Arn",
|
358
367
|
# num_results: 1,
|
359
368
|
# job_input: { # required
|
360
369
|
# s3_data_source: { # required
|
@@ -791,6 +800,52 @@ module Aws::Personalize
|
|
791
800
|
req.send_request(options)
|
792
801
|
end
|
793
802
|
|
803
|
+
# Creates a recommendation filter. For more information, see Using
|
804
|
+
# Filters with Amazon Personalize.
|
805
|
+
#
|
806
|
+
# @option params [required, String] :name
|
807
|
+
# The name of the filter to create.
|
808
|
+
#
|
809
|
+
# @option params [required, String] :dataset_group_arn
|
810
|
+
# The ARN of the dataset group that the filter will belong to.
|
811
|
+
#
|
812
|
+
# @option params [required, String] :filter_expression
|
813
|
+
# The filter expression that designates the interaction types that the
|
814
|
+
# filter will filter out. A filter expression must follow the following
|
815
|
+
# format:
|
816
|
+
#
|
817
|
+
# `EXCLUDE itemId WHERE INTERACTIONS.event_type in ("EVENT_TYPE")`
|
818
|
+
#
|
819
|
+
# Where "EVENT\_TYPE" is the type of event to filter out. To filter
|
820
|
+
# out all items with any interactions history, set `"*"` as the
|
821
|
+
# EVENT\_TYPE. For more information, see Using Filters with Amazon
|
822
|
+
# Personalize.
|
823
|
+
#
|
824
|
+
# @return [Types::CreateFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
825
|
+
#
|
826
|
+
# * {Types::CreateFilterResponse#filter_arn #filter_arn} => String
|
827
|
+
#
|
828
|
+
# @example Request syntax with placeholder values
|
829
|
+
#
|
830
|
+
# resp = client.create_filter({
|
831
|
+
# name: "Name", # required
|
832
|
+
# dataset_group_arn: "Arn", # required
|
833
|
+
# filter_expression: "FilterExpression", # required
|
834
|
+
# })
|
835
|
+
#
|
836
|
+
# @example Response structure
|
837
|
+
#
|
838
|
+
# resp.filter_arn #=> String
|
839
|
+
#
|
840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateFilter AWS API Documentation
|
841
|
+
#
|
842
|
+
# @overload create_filter(params = {})
|
843
|
+
# @param [Hash] params ({})
|
844
|
+
def create_filter(params = {}, options = {})
|
845
|
+
req = build_request(:create_filter, params)
|
846
|
+
req.send_request(options)
|
847
|
+
end
|
848
|
+
|
794
849
|
# Creates an Amazon Personalize schema from the specified schema string.
|
795
850
|
# The schema you create must be in Avro JSON format.
|
796
851
|
#
|
@@ -1182,6 +1237,28 @@ module Aws::Personalize
|
|
1182
1237
|
req.send_request(options)
|
1183
1238
|
end
|
1184
1239
|
|
1240
|
+
# Deletes a filter.
|
1241
|
+
#
|
1242
|
+
# @option params [required, String] :filter_arn
|
1243
|
+
# The ARN of the filter to delete.
|
1244
|
+
#
|
1245
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1246
|
+
#
|
1247
|
+
# @example Request syntax with placeholder values
|
1248
|
+
#
|
1249
|
+
# resp = client.delete_filter({
|
1250
|
+
# filter_arn: "Arn", # required
|
1251
|
+
# })
|
1252
|
+
#
|
1253
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteFilter AWS API Documentation
|
1254
|
+
#
|
1255
|
+
# @overload delete_filter(params = {})
|
1256
|
+
# @param [Hash] params ({})
|
1257
|
+
def delete_filter(params = {}, options = {})
|
1258
|
+
req = build_request(:delete_filter, params)
|
1259
|
+
req.send_request(options)
|
1260
|
+
end
|
1261
|
+
|
1185
1262
|
# Deletes a schema. Before deleting a schema, you must delete all
|
1186
1263
|
# datasets referencing the schema. For more information on schemas, see
|
1187
1264
|
# CreateSchema.
|
@@ -1309,6 +1386,7 @@ module Aws::Personalize
|
|
1309
1386
|
#
|
1310
1387
|
# resp.batch_inference_job.job_name #=> String
|
1311
1388
|
# resp.batch_inference_job.batch_inference_job_arn #=> String
|
1389
|
+
# resp.batch_inference_job.filter_arn #=> String
|
1312
1390
|
# resp.batch_inference_job.failure_reason #=> String
|
1313
1391
|
# resp.batch_inference_job.solution_version_arn #=> String
|
1314
1392
|
# resp.batch_inference_job.num_results #=> Integer
|
@@ -1564,6 +1642,41 @@ module Aws::Personalize
|
|
1564
1642
|
req.send_request(options)
|
1565
1643
|
end
|
1566
1644
|
|
1645
|
+
# Describes a filter's properties.
|
1646
|
+
#
|
1647
|
+
# @option params [required, String] :filter_arn
|
1648
|
+
# The ARN of the filter to describe.
|
1649
|
+
#
|
1650
|
+
# @return [Types::DescribeFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1651
|
+
#
|
1652
|
+
# * {Types::DescribeFilterResponse#filter #filter} => Types::Filter
|
1653
|
+
#
|
1654
|
+
# @example Request syntax with placeholder values
|
1655
|
+
#
|
1656
|
+
# resp = client.describe_filter({
|
1657
|
+
# filter_arn: "Arn", # required
|
1658
|
+
# })
|
1659
|
+
#
|
1660
|
+
# @example Response structure
|
1661
|
+
#
|
1662
|
+
# resp.filter.name #=> String
|
1663
|
+
# resp.filter.filter_arn #=> String
|
1664
|
+
# resp.filter.creation_date_time #=> Time
|
1665
|
+
# resp.filter.last_updated_date_time #=> Time
|
1666
|
+
# resp.filter.dataset_group_arn #=> String
|
1667
|
+
# resp.filter.failure_reason #=> String
|
1668
|
+
# resp.filter.filter_expression #=> String
|
1669
|
+
# resp.filter.status #=> String
|
1670
|
+
#
|
1671
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeFilter AWS API Documentation
|
1672
|
+
#
|
1673
|
+
# @overload describe_filter(params = {})
|
1674
|
+
# @param [Hash] params ({})
|
1675
|
+
def describe_filter(params = {}, options = {})
|
1676
|
+
req = build_request(:describe_filter, params)
|
1677
|
+
req.send_request(options)
|
1678
|
+
end
|
1679
|
+
|
1567
1680
|
# Describes a recipe.
|
1568
1681
|
#
|
1569
1682
|
# A recipe contains three items:
|
@@ -1840,6 +1953,8 @@ module Aws::Personalize
|
|
1840
1953
|
# * {Types::ListBatchInferenceJobsResponse#batch_inference_jobs #batch_inference_jobs} => Array<Types::BatchInferenceJobSummary>
|
1841
1954
|
# * {Types::ListBatchInferenceJobsResponse#next_token #next_token} => String
|
1842
1955
|
#
|
1956
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1957
|
+
#
|
1843
1958
|
# @example Request syntax with placeholder values
|
1844
1959
|
#
|
1845
1960
|
# resp = client.list_batch_inference_jobs({
|
@@ -1892,6 +2007,8 @@ module Aws::Personalize
|
|
1892
2007
|
# * {Types::ListCampaignsResponse#campaigns #campaigns} => Array<Types::CampaignSummary>
|
1893
2008
|
# * {Types::ListCampaignsResponse#next_token #next_token} => String
|
1894
2009
|
#
|
2010
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2011
|
+
#
|
1895
2012
|
# @example Request syntax with placeholder values
|
1896
2013
|
#
|
1897
2014
|
# resp = client.list_campaigns({
|
@@ -1936,6 +2053,8 @@ module Aws::Personalize
|
|
1936
2053
|
# * {Types::ListDatasetGroupsResponse#dataset_groups #dataset_groups} => Array<Types::DatasetGroupSummary>
|
1937
2054
|
# * {Types::ListDatasetGroupsResponse#next_token #next_token} => String
|
1938
2055
|
#
|
2056
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2057
|
+
#
|
1939
2058
|
# @example Request syntax with placeholder values
|
1940
2059
|
#
|
1941
2060
|
# resp = client.list_dataset_groups({
|
@@ -1986,6 +2105,8 @@ module Aws::Personalize
|
|
1986
2105
|
# * {Types::ListDatasetImportJobsResponse#dataset_import_jobs #dataset_import_jobs} => Array<Types::DatasetImportJobSummary>
|
1987
2106
|
# * {Types::ListDatasetImportJobsResponse#next_token #next_token} => String
|
1988
2107
|
#
|
2108
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2109
|
+
#
|
1989
2110
|
# @example Request syntax with placeholder values
|
1990
2111
|
#
|
1991
2112
|
# resp = client.list_dataset_import_jobs({
|
@@ -2035,6 +2156,8 @@ module Aws::Personalize
|
|
2035
2156
|
# * {Types::ListDatasetsResponse#datasets #datasets} => Array<Types::DatasetSummary>
|
2036
2157
|
# * {Types::ListDatasetsResponse#next_token #next_token} => String
|
2037
2158
|
#
|
2159
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2160
|
+
#
|
2038
2161
|
# @example Request syntax with placeholder values
|
2039
2162
|
#
|
2040
2163
|
# resp = client.list_datasets({
|
@@ -2083,6 +2206,8 @@ module Aws::Personalize
|
|
2083
2206
|
# * {Types::ListEventTrackersResponse#event_trackers #event_trackers} => Array<Types::EventTrackerSummary>
|
2084
2207
|
# * {Types::ListEventTrackersResponse#next_token #next_token} => String
|
2085
2208
|
#
|
2209
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2210
|
+
#
|
2086
2211
|
# @example Request syntax with placeholder values
|
2087
2212
|
#
|
2088
2213
|
# resp = client.list_event_trackers({
|
@@ -2110,6 +2235,52 @@ module Aws::Personalize
|
|
2110
2235
|
req.send_request(options)
|
2111
2236
|
end
|
2112
2237
|
|
2238
|
+
# Lists all filters that belong to a given dataset group.
|
2239
|
+
#
|
2240
|
+
# @option params [String] :dataset_group_arn
|
2241
|
+
# The ARN of the dataset group that contains the filters.
|
2242
|
+
#
|
2243
|
+
# @option params [String] :next_token
|
2244
|
+
# A token returned from the previous call to `ListFilters` for getting
|
2245
|
+
# the next set of filters (if they exist).
|
2246
|
+
#
|
2247
|
+
# @option params [Integer] :max_results
|
2248
|
+
# The maximum number of filters to return.
|
2249
|
+
#
|
2250
|
+
# @return [Types::ListFiltersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2251
|
+
#
|
2252
|
+
# * {Types::ListFiltersResponse#filters #filters} => Array<Types::FilterSummary>
|
2253
|
+
# * {Types::ListFiltersResponse#next_token #next_token} => String
|
2254
|
+
#
|
2255
|
+
# @example Request syntax with placeholder values
|
2256
|
+
#
|
2257
|
+
# resp = client.list_filters({
|
2258
|
+
# dataset_group_arn: "Arn",
|
2259
|
+
# next_token: "NextToken",
|
2260
|
+
# max_results: 1,
|
2261
|
+
# })
|
2262
|
+
#
|
2263
|
+
# @example Response structure
|
2264
|
+
#
|
2265
|
+
# resp.filters #=> Array
|
2266
|
+
# resp.filters[0].name #=> String
|
2267
|
+
# resp.filters[0].filter_arn #=> String
|
2268
|
+
# resp.filters[0].creation_date_time #=> Time
|
2269
|
+
# resp.filters[0].last_updated_date_time #=> Time
|
2270
|
+
# resp.filters[0].dataset_group_arn #=> String
|
2271
|
+
# resp.filters[0].failure_reason #=> String
|
2272
|
+
# resp.filters[0].status #=> String
|
2273
|
+
# resp.next_token #=> String
|
2274
|
+
#
|
2275
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListFilters AWS API Documentation
|
2276
|
+
#
|
2277
|
+
# @overload list_filters(params = {})
|
2278
|
+
# @param [Hash] params ({})
|
2279
|
+
def list_filters(params = {}, options = {})
|
2280
|
+
req = build_request(:list_filters, params)
|
2281
|
+
req.send_request(options)
|
2282
|
+
end
|
2283
|
+
|
2113
2284
|
# Returns a list of available recipes. The response provides the
|
2114
2285
|
# properties for each recipe, including the recipe's Amazon Resource
|
2115
2286
|
# Name (ARN).
|
@@ -2129,6 +2300,8 @@ module Aws::Personalize
|
|
2129
2300
|
# * {Types::ListRecipesResponse#recipes #recipes} => Array<Types::RecipeSummary>
|
2130
2301
|
# * {Types::ListRecipesResponse#next_token #next_token} => String
|
2131
2302
|
#
|
2303
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2304
|
+
#
|
2132
2305
|
# @example Request syntax with placeholder values
|
2133
2306
|
#
|
2134
2307
|
# resp = client.list_recipes({
|
@@ -2172,6 +2345,8 @@ module Aws::Personalize
|
|
2172
2345
|
# * {Types::ListSchemasResponse#schemas #schemas} => Array<Types::DatasetSchemaSummary>
|
2173
2346
|
# * {Types::ListSchemasResponse#next_token #next_token} => String
|
2174
2347
|
#
|
2348
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2349
|
+
#
|
2175
2350
|
# @example Request syntax with placeholder values
|
2176
2351
|
#
|
2177
2352
|
# resp = client.list_schemas({
|
@@ -2218,6 +2393,8 @@ module Aws::Personalize
|
|
2218
2393
|
# * {Types::ListSolutionVersionsResponse#solution_versions #solution_versions} => Array<Types::SolutionVersionSummary>
|
2219
2394
|
# * {Types::ListSolutionVersionsResponse#next_token #next_token} => String
|
2220
2395
|
#
|
2396
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2397
|
+
#
|
2221
2398
|
# @example Request syntax with placeholder values
|
2222
2399
|
#
|
2223
2400
|
# resp = client.list_solution_versions({
|
@@ -2266,6 +2443,8 @@ module Aws::Personalize
|
|
2266
2443
|
# * {Types::ListSolutionsResponse#solutions #solutions} => Array<Types::SolutionSummary>
|
2267
2444
|
# * {Types::ListSolutionsResponse#next_token #next_token} => String
|
2268
2445
|
#
|
2446
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2447
|
+
#
|
2269
2448
|
# @example Request syntax with placeholder values
|
2270
2449
|
#
|
2271
2450
|
# resp = client.list_solutions({
|
@@ -2354,7 +2533,7 @@ module Aws::Personalize
|
|
2354
2533
|
params: params,
|
2355
2534
|
config: config)
|
2356
2535
|
context[:gem_name] = 'aws-sdk-personalize'
|
2357
|
-
context[:gem_version] = '1.
|
2536
|
+
context[:gem_version] = '1.15.0'
|
2358
2537
|
Seahorse::Client::Request.new(handlers, context)
|
2359
2538
|
end
|
2360
2539
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -49,6 +51,8 @@ module Aws::Personalize
|
|
49
51
|
CreateDatasetResponse = Shapes::StructureShape.new(name: 'CreateDatasetResponse')
|
50
52
|
CreateEventTrackerRequest = Shapes::StructureShape.new(name: 'CreateEventTrackerRequest')
|
51
53
|
CreateEventTrackerResponse = Shapes::StructureShape.new(name: 'CreateEventTrackerResponse')
|
54
|
+
CreateFilterRequest = Shapes::StructureShape.new(name: 'CreateFilterRequest')
|
55
|
+
CreateFilterResponse = Shapes::StructureShape.new(name: 'CreateFilterResponse')
|
52
56
|
CreateSchemaRequest = Shapes::StructureShape.new(name: 'CreateSchemaRequest')
|
53
57
|
CreateSchemaResponse = Shapes::StructureShape.new(name: 'CreateSchemaResponse')
|
54
58
|
CreateSolutionRequest = Shapes::StructureShape.new(name: 'CreateSolutionRequest')
|
@@ -80,6 +84,7 @@ module Aws::Personalize
|
|
80
84
|
DeleteDatasetGroupRequest = Shapes::StructureShape.new(name: 'DeleteDatasetGroupRequest')
|
81
85
|
DeleteDatasetRequest = Shapes::StructureShape.new(name: 'DeleteDatasetRequest')
|
82
86
|
DeleteEventTrackerRequest = Shapes::StructureShape.new(name: 'DeleteEventTrackerRequest')
|
87
|
+
DeleteFilterRequest = Shapes::StructureShape.new(name: 'DeleteFilterRequest')
|
83
88
|
DeleteSchemaRequest = Shapes::StructureShape.new(name: 'DeleteSchemaRequest')
|
84
89
|
DeleteSolutionRequest = Shapes::StructureShape.new(name: 'DeleteSolutionRequest')
|
85
90
|
DescribeAlgorithmRequest = Shapes::StructureShape.new(name: 'DescribeAlgorithmRequest')
|
@@ -98,6 +103,8 @@ module Aws::Personalize
|
|
98
103
|
DescribeEventTrackerResponse = Shapes::StructureShape.new(name: 'DescribeEventTrackerResponse')
|
99
104
|
DescribeFeatureTransformationRequest = Shapes::StructureShape.new(name: 'DescribeFeatureTransformationRequest')
|
100
105
|
DescribeFeatureTransformationResponse = Shapes::StructureShape.new(name: 'DescribeFeatureTransformationResponse')
|
106
|
+
DescribeFilterRequest = Shapes::StructureShape.new(name: 'DescribeFilterRequest')
|
107
|
+
DescribeFilterResponse = Shapes::StructureShape.new(name: 'DescribeFilterResponse')
|
101
108
|
DescribeRecipeRequest = Shapes::StructureShape.new(name: 'DescribeRecipeRequest')
|
102
109
|
DescribeRecipeResponse = Shapes::StructureShape.new(name: 'DescribeRecipeResponse')
|
103
110
|
DescribeSchemaRequest = Shapes::StructureShape.new(name: 'DescribeSchemaRequest')
|
@@ -118,6 +125,10 @@ module Aws::Personalize
|
|
118
125
|
FeatureTransformation = Shapes::StructureShape.new(name: 'FeatureTransformation')
|
119
126
|
FeatureTransformationParameters = Shapes::MapShape.new(name: 'FeatureTransformationParameters')
|
120
127
|
FeaturizationParameters = Shapes::MapShape.new(name: 'FeaturizationParameters')
|
128
|
+
Filter = Shapes::StructureShape.new(name: 'Filter')
|
129
|
+
FilterExpression = Shapes::StringShape.new(name: 'FilterExpression')
|
130
|
+
FilterSummary = Shapes::StructureShape.new(name: 'FilterSummary')
|
131
|
+
Filters = Shapes::ListShape.new(name: 'Filters')
|
121
132
|
GetSolutionMetricsRequest = Shapes::StructureShape.new(name: 'GetSolutionMetricsRequest')
|
122
133
|
GetSolutionMetricsResponse = Shapes::StructureShape.new(name: 'GetSolutionMetricsResponse')
|
123
134
|
HPOConfig = Shapes::StructureShape.new(name: 'HPOConfig')
|
@@ -147,6 +158,8 @@ module Aws::Personalize
|
|
147
158
|
ListDatasetsResponse = Shapes::StructureShape.new(name: 'ListDatasetsResponse')
|
148
159
|
ListEventTrackersRequest = Shapes::StructureShape.new(name: 'ListEventTrackersRequest')
|
149
160
|
ListEventTrackersResponse = Shapes::StructureShape.new(name: 'ListEventTrackersResponse')
|
161
|
+
ListFiltersRequest = Shapes::StructureShape.new(name: 'ListFiltersRequest')
|
162
|
+
ListFiltersResponse = Shapes::StructureShape.new(name: 'ListFiltersResponse')
|
150
163
|
ListRecipesRequest = Shapes::StructureShape.new(name: 'ListRecipesRequest')
|
151
164
|
ListRecipesResponse = Shapes::StructureShape.new(name: 'ListRecipesResponse')
|
152
165
|
ListSchemasRequest = Shapes::StructureShape.new(name: 'ListSchemasRequest')
|
@@ -225,6 +238,7 @@ module Aws::Personalize
|
|
225
238
|
|
226
239
|
BatchInferenceJob.add_member(:job_name, Shapes::ShapeRef.new(shape: Name, location_name: "jobName"))
|
227
240
|
BatchInferenceJob.add_member(:batch_inference_job_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "batchInferenceJobArn"))
|
241
|
+
BatchInferenceJob.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
228
242
|
BatchInferenceJob.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
|
229
243
|
BatchInferenceJob.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "solutionVersionArn"))
|
230
244
|
BatchInferenceJob.add_member(:num_results, Shapes::ShapeRef.new(shape: NumBatchResults, location_name: "numResults"))
|
@@ -299,6 +313,7 @@ module Aws::Personalize
|
|
299
313
|
|
300
314
|
CreateBatchInferenceJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "jobName"))
|
301
315
|
CreateBatchInferenceJobRequest.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "solutionVersionArn"))
|
316
|
+
CreateBatchInferenceJobRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
302
317
|
CreateBatchInferenceJobRequest.add_member(:num_results, Shapes::ShapeRef.new(shape: NumBatchResults, location_name: "numResults"))
|
303
318
|
CreateBatchInferenceJobRequest.add_member(:job_input, Shapes::ShapeRef.new(shape: BatchInferenceJobInput, required: true, location_name: "jobInput"))
|
304
319
|
CreateBatchInferenceJobRequest.add_member(:job_output, Shapes::ShapeRef.new(shape: BatchInferenceJobOutput, required: true, location_name: "jobOutput"))
|
@@ -350,6 +365,14 @@ module Aws::Personalize
|
|
350
365
|
CreateEventTrackerResponse.add_member(:tracking_id, Shapes::ShapeRef.new(shape: TrackingId, location_name: "trackingId"))
|
351
366
|
CreateEventTrackerResponse.struct_class = Types::CreateEventTrackerResponse
|
352
367
|
|
368
|
+
CreateFilterRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
369
|
+
CreateFilterRequest.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetGroupArn"))
|
370
|
+
CreateFilterRequest.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, required: true, location_name: "filterExpression"))
|
371
|
+
CreateFilterRequest.struct_class = Types::CreateFilterRequest
|
372
|
+
|
373
|
+
CreateFilterResponse.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
374
|
+
CreateFilterResponse.struct_class = Types::CreateFilterResponse
|
375
|
+
|
353
376
|
CreateSchemaRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
354
377
|
CreateSchemaRequest.add_member(:schema, Shapes::ShapeRef.new(shape: AvroSchema, required: true, location_name: "schema"))
|
355
378
|
CreateSchemaRequest.struct_class = Types::CreateSchemaRequest
|
@@ -493,6 +516,9 @@ module Aws::Personalize
|
|
493
516
|
DeleteEventTrackerRequest.add_member(:event_tracker_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "eventTrackerArn"))
|
494
517
|
DeleteEventTrackerRequest.struct_class = Types::DeleteEventTrackerRequest
|
495
518
|
|
519
|
+
DeleteFilterRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "filterArn"))
|
520
|
+
DeleteFilterRequest.struct_class = Types::DeleteFilterRequest
|
521
|
+
|
496
522
|
DeleteSchemaRequest.add_member(:schema_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "schemaArn"))
|
497
523
|
DeleteSchemaRequest.struct_class = Types::DeleteSchemaRequest
|
498
524
|
|
@@ -547,6 +573,12 @@ module Aws::Personalize
|
|
547
573
|
DescribeFeatureTransformationResponse.add_member(:feature_transformation, Shapes::ShapeRef.new(shape: FeatureTransformation, location_name: "featureTransformation"))
|
548
574
|
DescribeFeatureTransformationResponse.struct_class = Types::DescribeFeatureTransformationResponse
|
549
575
|
|
576
|
+
DescribeFilterRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "filterArn"))
|
577
|
+
DescribeFilterRequest.struct_class = Types::DescribeFilterRequest
|
578
|
+
|
579
|
+
DescribeFilterResponse.add_member(:filter, Shapes::ShapeRef.new(shape: Filter, location_name: "filter"))
|
580
|
+
DescribeFilterResponse.struct_class = Types::DescribeFilterResponse
|
581
|
+
|
550
582
|
DescribeRecipeRequest.add_member(:recipe_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recipeArn"))
|
551
583
|
DescribeRecipeRequest.struct_class = Types::DescribeRecipeRequest
|
552
584
|
|
@@ -604,6 +636,27 @@ module Aws::Personalize
|
|
604
636
|
FeaturizationParameters.key = Shapes::ShapeRef.new(shape: ParameterName)
|
605
637
|
FeaturizationParameters.value = Shapes::ShapeRef.new(shape: ParameterValue)
|
606
638
|
|
639
|
+
Filter.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
640
|
+
Filter.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
641
|
+
Filter.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
|
642
|
+
Filter.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
|
643
|
+
Filter.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetGroupArn"))
|
644
|
+
Filter.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
|
645
|
+
Filter.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, location_name: "filterExpression"))
|
646
|
+
Filter.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
647
|
+
Filter.struct_class = Types::Filter
|
648
|
+
|
649
|
+
FilterSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
650
|
+
FilterSummary.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
651
|
+
FilterSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
|
652
|
+
FilterSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
|
653
|
+
FilterSummary.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetGroupArn"))
|
654
|
+
FilterSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
|
655
|
+
FilterSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
656
|
+
FilterSummary.struct_class = Types::FilterSummary
|
657
|
+
|
658
|
+
Filters.member = Shapes::ShapeRef.new(shape: FilterSummary)
|
659
|
+
|
607
660
|
GetSolutionMetricsRequest.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "solutionVersionArn"))
|
608
661
|
GetSolutionMetricsRequest.struct_class = Types::GetSolutionMetricsRequest
|
609
662
|
|
@@ -702,6 +755,15 @@ module Aws::Personalize
|
|
702
755
|
ListEventTrackersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
703
756
|
ListEventTrackersResponse.struct_class = Types::ListEventTrackersResponse
|
704
757
|
|
758
|
+
ListFiltersRequest.add_member(:dataset_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetGroupArn"))
|
759
|
+
ListFiltersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
760
|
+
ListFiltersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
761
|
+
ListFiltersRequest.struct_class = Types::ListFiltersRequest
|
762
|
+
|
763
|
+
ListFiltersResponse.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
|
764
|
+
ListFiltersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
765
|
+
ListFiltersResponse.struct_class = Types::ListFiltersResponse
|
766
|
+
|
705
767
|
ListRecipesRequest.add_member(:recipe_provider, Shapes::ShapeRef.new(shape: RecipeProvider, location_name: "recipeProvider"))
|
706
768
|
ListRecipesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
707
769
|
ListRecipesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
@@ -941,6 +1003,18 @@ module Aws::Personalize
|
|
941
1003
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
942
1004
|
end)
|
943
1005
|
|
1006
|
+
api.add_operation(:create_filter, Seahorse::Model::Operation.new.tap do |o|
|
1007
|
+
o.name = "CreateFilter"
|
1008
|
+
o.http_method = "POST"
|
1009
|
+
o.http_request_uri = "/"
|
1010
|
+
o.input = Shapes::ShapeRef.new(shape: CreateFilterRequest)
|
1011
|
+
o.output = Shapes::ShapeRef.new(shape: CreateFilterResponse)
|
1012
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1013
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1014
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1015
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1016
|
+
end)
|
1017
|
+
|
944
1018
|
api.add_operation(:create_schema, Seahorse::Model::Operation.new.tap do |o|
|
945
1019
|
o.name = "CreateSchema"
|
946
1020
|
o.http_method = "POST"
|
@@ -1020,6 +1094,16 @@ module Aws::Personalize
|
|
1020
1094
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1021
1095
|
end)
|
1022
1096
|
|
1097
|
+
api.add_operation(:delete_filter, Seahorse::Model::Operation.new.tap do |o|
|
1098
|
+
o.name = "DeleteFilter"
|
1099
|
+
o.http_method = "POST"
|
1100
|
+
o.http_request_uri = "/"
|
1101
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteFilterRequest)
|
1102
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1103
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1104
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1105
|
+
end)
|
1106
|
+
|
1023
1107
|
api.add_operation(:delete_schema, Seahorse::Model::Operation.new.tap do |o|
|
1024
1108
|
o.name = "DeleteSchema"
|
1025
1109
|
o.http_method = "POST"
|
@@ -1122,6 +1206,16 @@ module Aws::Personalize
|
|
1122
1206
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1123
1207
|
end)
|
1124
1208
|
|
1209
|
+
api.add_operation(:describe_filter, Seahorse::Model::Operation.new.tap do |o|
|
1210
|
+
o.name = "DescribeFilter"
|
1211
|
+
o.http_method = "POST"
|
1212
|
+
o.http_request_uri = "/"
|
1213
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeFilterRequest)
|
1214
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeFilterResponse)
|
1215
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1216
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1217
|
+
end)
|
1218
|
+
|
1125
1219
|
api.add_operation(:describe_recipe, Seahorse::Model::Operation.new.tap do |o|
|
1126
1220
|
o.name = "DescribeRecipe"
|
1127
1221
|
o.http_method = "POST"
|
@@ -1268,6 +1362,16 @@ module Aws::Personalize
|
|
1268
1362
|
)
|
1269
1363
|
end)
|
1270
1364
|
|
1365
|
+
api.add_operation(:list_filters, Seahorse::Model::Operation.new.tap do |o|
|
1366
|
+
o.name = "ListFilters"
|
1367
|
+
o.http_method = "POST"
|
1368
|
+
o.http_request_uri = "/"
|
1369
|
+
o.input = Shapes::ShapeRef.new(shape: ListFiltersRequest)
|
1370
|
+
o.output = Shapes::ShapeRef.new(shape: ListFiltersResponse)
|
1371
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1372
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
1373
|
+
end)
|
1374
|
+
|
1271
1375
|
api.add_operation(:list_recipes, Seahorse::Model::Operation.new.tap do |o|
|
1272
1376
|
o.name = "ListRecipes"
|
1273
1377
|
o.http_method = "POST"
|