aws-sdk-personalize 1.52.0 → 1.53.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-personalize/client.rb +44 -2
- data/lib/aws-sdk-personalize/client_api.rb +29 -0
- data/lib/aws-sdk-personalize/endpoints.rb +14 -0
- data/lib/aws-sdk-personalize/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-personalize/types.rb +75 -4
- data/lib/aws-sdk-personalize.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c90492b28cbed5e31b4cf7fbb7aba2bcf49021d842cb8100bd6971c0d4aa767f
|
4
|
+
data.tar.gz: c383a7ffc6261f2b322d393172f11686d16a2727092fce40054b447f5900fc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2364b61f09d46d9e3e4da7ddbac75be464b83ffcee18a8e3b66a9a05f923e606e97ee95065065f9225dc2f419fe2b0e3ea6de47800d856e1b7cba1dbdc67720d
|
7
|
+
data.tar.gz: 4c3cfa84fce0dd32bc0d17b5225fce0dba603369139cb6ce019ab7911b5e48230379b4a57feae7539e4e1a07287c42e30b2e0e68ef4c3b0c269f7f24ab588218
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.53.0 (2023-07-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release provides ability to customers to change schema associated with their datasets in Amazon Personalize
|
8
|
+
|
4
9
|
1.52.0 (2023-07-11)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
@@ -1671,7 +1671,7 @@ module Aws::Personalize
|
|
1671
1671
|
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/determining-use-case.html
|
1672
1672
|
#
|
1673
1673
|
# @option params [String] :recipe_arn
|
1674
|
-
# The ARN of the recipe to use for model training.
|
1674
|
+
# The ARN of the recipe to use for model training. This is required when
|
1675
1675
|
# `performAutoML` is false.
|
1676
1676
|
#
|
1677
1677
|
# @option params [required, String] :dataset_group_arn
|
@@ -2387,6 +2387,11 @@ module Aws::Personalize
|
|
2387
2387
|
# resp.dataset.status #=> String
|
2388
2388
|
# resp.dataset.creation_date_time #=> Time
|
2389
2389
|
# resp.dataset.last_updated_date_time #=> Time
|
2390
|
+
# resp.dataset.latest_dataset_update.schema_arn #=> String
|
2391
|
+
# resp.dataset.latest_dataset_update.status #=> String
|
2392
|
+
# resp.dataset.latest_dataset_update.failure_reason #=> String
|
2393
|
+
# resp.dataset.latest_dataset_update.creation_date_time #=> Time
|
2394
|
+
# resp.dataset.latest_dataset_update.last_updated_date_time #=> Time
|
2390
2395
|
#
|
2391
2396
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDataset AWS API Documentation
|
2392
2397
|
#
|
@@ -4145,6 +4150,43 @@ module Aws::Personalize
|
|
4145
4150
|
req.send_request(options)
|
4146
4151
|
end
|
4147
4152
|
|
4153
|
+
# Update a dataset to replace its schema with a new or existing one. For
|
4154
|
+
# more information, see [Replacing a dataset's schema][1].
|
4155
|
+
#
|
4156
|
+
#
|
4157
|
+
#
|
4158
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/updating-dataset-schema.html
|
4159
|
+
#
|
4160
|
+
# @option params [required, String] :dataset_arn
|
4161
|
+
# The Amazon Resource Name (ARN) of the dataset that you want to update.
|
4162
|
+
#
|
4163
|
+
# @option params [required, String] :schema_arn
|
4164
|
+
# The Amazon Resource Name (ARN) of the new schema you want use.
|
4165
|
+
#
|
4166
|
+
# @return [Types::UpdateDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4167
|
+
#
|
4168
|
+
# * {Types::UpdateDatasetResponse#dataset_arn #dataset_arn} => String
|
4169
|
+
#
|
4170
|
+
# @example Request syntax with placeholder values
|
4171
|
+
#
|
4172
|
+
# resp = client.update_dataset({
|
4173
|
+
# dataset_arn: "Arn", # required
|
4174
|
+
# schema_arn: "Arn", # required
|
4175
|
+
# })
|
4176
|
+
#
|
4177
|
+
# @example Response structure
|
4178
|
+
#
|
4179
|
+
# resp.dataset_arn #=> String
|
4180
|
+
#
|
4181
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateDataset AWS API Documentation
|
4182
|
+
#
|
4183
|
+
# @overload update_dataset(params = {})
|
4184
|
+
# @param [Hash] params ({})
|
4185
|
+
def update_dataset(params = {}, options = {})
|
4186
|
+
req = build_request(:update_dataset, params)
|
4187
|
+
req.send_request(options)
|
4188
|
+
end
|
4189
|
+
|
4148
4190
|
# Updates a metric attribution.
|
4149
4191
|
#
|
4150
4192
|
# @option params [Array<Types::MetricAttribute>] :add_metrics
|
@@ -4263,7 +4305,7 @@ module Aws::Personalize
|
|
4263
4305
|
params: params,
|
4264
4306
|
config: config)
|
4265
4307
|
context[:gem_name] = 'aws-sdk-personalize'
|
4266
|
-
context[:gem_version] = '1.
|
4308
|
+
context[:gem_version] = '1.53.0'
|
4267
4309
|
Seahorse::Client::Request.new(handlers, context)
|
4268
4310
|
end
|
4269
4311
|
|
@@ -92,6 +92,7 @@ module Aws::Personalize
|
|
92
92
|
DatasetSchemaSummary = Shapes::StructureShape.new(name: 'DatasetSchemaSummary')
|
93
93
|
DatasetSummary = Shapes::StructureShape.new(name: 'DatasetSummary')
|
94
94
|
DatasetType = Shapes::StringShape.new(name: 'DatasetType')
|
95
|
+
DatasetUpdateSummary = Shapes::StructureShape.new(name: 'DatasetUpdateSummary')
|
95
96
|
Datasets = Shapes::ListShape.new(name: 'Datasets')
|
96
97
|
Date = Shapes::TimestampShape.new(name: 'Date')
|
97
98
|
DefaultCategoricalHyperParameterRange = Shapes::StructureShape.new(name: 'DefaultCategoricalHyperParameterRange')
|
@@ -290,6 +291,8 @@ module Aws::Personalize
|
|
290
291
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
291
292
|
UpdateCampaignRequest = Shapes::StructureShape.new(name: 'UpdateCampaignRequest')
|
292
293
|
UpdateCampaignResponse = Shapes::StructureShape.new(name: 'UpdateCampaignResponse')
|
294
|
+
UpdateDatasetRequest = Shapes::StructureShape.new(name: 'UpdateDatasetRequest')
|
295
|
+
UpdateDatasetResponse = Shapes::StructureShape.new(name: 'UpdateDatasetResponse')
|
293
296
|
UpdateMetricAttributionRequest = Shapes::StructureShape.new(name: 'UpdateMetricAttributionRequest')
|
294
297
|
UpdateMetricAttributionResponse = Shapes::StructureShape.new(name: 'UpdateMetricAttributionResponse')
|
295
298
|
UpdateRecommenderRequest = Shapes::StructureShape.new(name: 'UpdateRecommenderRequest')
|
@@ -596,6 +599,7 @@ module Aws::Personalize
|
|
596
599
|
Dataset.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
597
600
|
Dataset.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
|
598
601
|
Dataset.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
|
602
|
+
Dataset.add_member(:latest_dataset_update, Shapes::ShapeRef.new(shape: DatasetUpdateSummary, location_name: "latestDatasetUpdate"))
|
599
603
|
Dataset.struct_class = Types::Dataset
|
600
604
|
|
601
605
|
DatasetExportJob.add_member(:job_name, Shapes::ShapeRef.new(shape: Name, location_name: "jobName"))
|
@@ -692,6 +696,13 @@ module Aws::Personalize
|
|
692
696
|
DatasetSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
|
693
697
|
DatasetSummary.struct_class = Types::DatasetSummary
|
694
698
|
|
699
|
+
DatasetUpdateSummary.add_member(:schema_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "schemaArn"))
|
700
|
+
DatasetUpdateSummary.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
701
|
+
DatasetUpdateSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "failureReason"))
|
702
|
+
DatasetUpdateSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "creationDateTime"))
|
703
|
+
DatasetUpdateSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "lastUpdatedDateTime"))
|
704
|
+
DatasetUpdateSummary.struct_class = Types::DatasetUpdateSummary
|
705
|
+
|
695
706
|
Datasets.member = Shapes::ShapeRef.new(shape: DatasetSummary)
|
696
707
|
|
697
708
|
DefaultCategoricalHyperParameterRange.add_member(:name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "name"))
|
@@ -1335,6 +1346,13 @@ module Aws::Personalize
|
|
1335
1346
|
UpdateCampaignResponse.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "campaignArn"))
|
1336
1347
|
UpdateCampaignResponse.struct_class = Types::UpdateCampaignResponse
|
1337
1348
|
|
1349
|
+
UpdateDatasetRequest.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetArn"))
|
1350
|
+
UpdateDatasetRequest.add_member(:schema_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "schemaArn"))
|
1351
|
+
UpdateDatasetRequest.struct_class = Types::UpdateDatasetRequest
|
1352
|
+
|
1353
|
+
UpdateDatasetResponse.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "datasetArn"))
|
1354
|
+
UpdateDatasetResponse.struct_class = Types::UpdateDatasetResponse
|
1355
|
+
|
1338
1356
|
UpdateMetricAttributionRequest.add_member(:add_metrics, Shapes::ShapeRef.new(shape: MetricAttributes, location_name: "addMetrics"))
|
1339
1357
|
UpdateMetricAttributionRequest.add_member(:remove_metrics, Shapes::ShapeRef.new(shape: MetricAttributesNamesList, location_name: "removeMetrics"))
|
1340
1358
|
UpdateMetricAttributionRequest.add_member(:metrics_output_config, Shapes::ShapeRef.new(shape: MetricAttributionOutput, location_name: "metricsOutputConfig"))
|
@@ -2174,6 +2192,17 @@ module Aws::Personalize
|
|
2174
2192
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
2175
2193
|
end)
|
2176
2194
|
|
2195
|
+
api.add_operation(:update_dataset, Seahorse::Model::Operation.new.tap do |o|
|
2196
|
+
o.name = "UpdateDataset"
|
2197
|
+
o.http_method = "POST"
|
2198
|
+
o.http_request_uri = "/"
|
2199
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateDatasetRequest)
|
2200
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateDatasetResponse)
|
2201
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
2202
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2203
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
2204
|
+
end)
|
2205
|
+
|
2177
2206
|
api.add_operation(:update_metric_attribution, Seahorse::Model::Operation.new.tap do |o|
|
2178
2207
|
o.name = "UpdateMetricAttribution"
|
2179
2208
|
o.http_method = "POST"
|
@@ -908,6 +908,20 @@ module Aws::Personalize
|
|
908
908
|
end
|
909
909
|
end
|
910
910
|
|
911
|
+
class UpdateDataset
|
912
|
+
def self.build(context)
|
913
|
+
unless context.config.regional_endpoint
|
914
|
+
endpoint = context.config.endpoint.to_s
|
915
|
+
end
|
916
|
+
Aws::Personalize::EndpointParameters.new(
|
917
|
+
region: context.config.region,
|
918
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
919
|
+
use_fips: context.config.use_fips_endpoint,
|
920
|
+
endpoint: endpoint,
|
921
|
+
)
|
922
|
+
end
|
923
|
+
end
|
924
|
+
|
911
925
|
class UpdateMetricAttribution
|
912
926
|
def self.build(context)
|
913
927
|
unless context.config.regional_endpoint
|
@@ -184,6 +184,8 @@ module Aws::Personalize
|
|
184
184
|
Aws::Personalize::Endpoints::UntagResource.build(context)
|
185
185
|
when :update_campaign
|
186
186
|
Aws::Personalize::Endpoints::UpdateCampaign.build(context)
|
187
|
+
when :update_dataset
|
188
|
+
Aws::Personalize::Endpoints::UpdateDataset.build(context)
|
187
189
|
when :update_metric_attribution
|
188
190
|
Aws::Personalize::Endpoints::UpdateMetricAttribution.build(context)
|
189
191
|
when :update_recommender
|
@@ -1496,8 +1496,8 @@ module Aws::Personalize
|
|
1496
1496
|
# @return [Boolean]
|
1497
1497
|
#
|
1498
1498
|
# @!attribute [rw] recipe_arn
|
1499
|
-
# The ARN of the recipe to use for model training.
|
1500
|
-
# `performAutoML` is false.
|
1499
|
+
# The ARN of the recipe to use for model training. This is required
|
1500
|
+
# when `performAutoML` is false.
|
1501
1501
|
# @return [String]
|
1502
1502
|
#
|
1503
1503
|
# @!attribute [rw] dataset_group_arn
|
@@ -1686,6 +1686,10 @@ module Aws::Personalize
|
|
1686
1686
|
# A time stamp that shows when the dataset was updated.
|
1687
1687
|
# @return [Time]
|
1688
1688
|
#
|
1689
|
+
# @!attribute [rw] latest_dataset_update
|
1690
|
+
# Describes the latest update to the dataset.
|
1691
|
+
# @return [Types::DatasetUpdateSummary]
|
1692
|
+
#
|
1689
1693
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/Dataset AWS API Documentation
|
1690
1694
|
#
|
1691
1695
|
class Dataset < Struct.new(
|
@@ -1696,7 +1700,8 @@ module Aws::Personalize
|
|
1696
1700
|
:schema_arn,
|
1697
1701
|
:status,
|
1698
1702
|
:creation_date_time,
|
1699
|
-
:last_updated_date_time
|
1703
|
+
:last_updated_date_time,
|
1704
|
+
:latest_dataset_update)
|
1700
1705
|
SENSITIVE = []
|
1701
1706
|
include Aws::Structure
|
1702
1707
|
end
|
@@ -2285,6 +2290,41 @@ module Aws::Personalize
|
|
2285
2290
|
include Aws::Structure
|
2286
2291
|
end
|
2287
2292
|
|
2293
|
+
# Describes an update to a dataset.
|
2294
|
+
#
|
2295
|
+
# @!attribute [rw] schema_arn
|
2296
|
+
# The Amazon Resource Name (ARN) of the schema that replaced the
|
2297
|
+
# previous schema of the dataset.
|
2298
|
+
# @return [String]
|
2299
|
+
#
|
2300
|
+
# @!attribute [rw] status
|
2301
|
+
# The status of the dataset update.
|
2302
|
+
# @return [String]
|
2303
|
+
#
|
2304
|
+
# @!attribute [rw] failure_reason
|
2305
|
+
# If updating a dataset fails, provides the reason why.
|
2306
|
+
# @return [String]
|
2307
|
+
#
|
2308
|
+
# @!attribute [rw] creation_date_time
|
2309
|
+
# The creation date and time (in Unix time) of the dataset update.
|
2310
|
+
# @return [Time]
|
2311
|
+
#
|
2312
|
+
# @!attribute [rw] last_updated_date_time
|
2313
|
+
# The last update date and time (in Unix time) of the dataset.
|
2314
|
+
# @return [Time]
|
2315
|
+
#
|
2316
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DatasetUpdateSummary AWS API Documentation
|
2317
|
+
#
|
2318
|
+
class DatasetUpdateSummary < Struct.new(
|
2319
|
+
:schema_arn,
|
2320
|
+
:status,
|
2321
|
+
:failure_reason,
|
2322
|
+
:creation_date_time,
|
2323
|
+
:last_updated_date_time)
|
2324
|
+
SENSITIVE = []
|
2325
|
+
include Aws::Structure
|
2326
|
+
end
|
2327
|
+
|
2288
2328
|
# Provides the name and default range of a categorical hyperparameter
|
2289
2329
|
# and whether the hyperparameter is tunable. A tunable hyperparameter
|
2290
2330
|
# can have its value determined during hyperparameter optimization
|
@@ -4721,7 +4761,8 @@ module Aws::Personalize
|
|
4721
4761
|
# @return [Boolean]
|
4722
4762
|
#
|
4723
4763
|
# @!attribute [rw] recipe_arn
|
4724
|
-
# The ARN of the recipe used to create the solution.
|
4764
|
+
# The ARN of the recipe used to create the solution. This is required
|
4765
|
+
# when `performAutoML` is false.
|
4725
4766
|
# @return [String]
|
4726
4767
|
#
|
4727
4768
|
# @!attribute [rw] dataset_group_arn
|
@@ -5321,6 +5362,36 @@ module Aws::Personalize
|
|
5321
5362
|
include Aws::Structure
|
5322
5363
|
end
|
5323
5364
|
|
5365
|
+
# @!attribute [rw] dataset_arn
|
5366
|
+
# The Amazon Resource Name (ARN) of the dataset that you want to
|
5367
|
+
# update.
|
5368
|
+
# @return [String]
|
5369
|
+
#
|
5370
|
+
# @!attribute [rw] schema_arn
|
5371
|
+
# The Amazon Resource Name (ARN) of the new schema you want use.
|
5372
|
+
# @return [String]
|
5373
|
+
#
|
5374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateDatasetRequest AWS API Documentation
|
5375
|
+
#
|
5376
|
+
class UpdateDatasetRequest < Struct.new(
|
5377
|
+
:dataset_arn,
|
5378
|
+
:schema_arn)
|
5379
|
+
SENSITIVE = []
|
5380
|
+
include Aws::Structure
|
5381
|
+
end
|
5382
|
+
|
5383
|
+
# @!attribute [rw] dataset_arn
|
5384
|
+
# The Amazon Resource Name (ARN) of the dataset you updated.
|
5385
|
+
# @return [String]
|
5386
|
+
#
|
5387
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateDatasetResponse AWS API Documentation
|
5388
|
+
#
|
5389
|
+
class UpdateDatasetResponse < Struct.new(
|
5390
|
+
:dataset_arn)
|
5391
|
+
SENSITIVE = []
|
5392
|
+
include Aws::Structure
|
5393
|
+
end
|
5394
|
+
|
5324
5395
|
# @!attribute [rw] add_metrics
|
5325
5396
|
# Add new metric attributes to the metric attribution.
|
5326
5397
|
# @return [Array<Types::MetricAttribute>]
|
data/lib/aws-sdk-personalize.rb
CHANGED
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.
|
4
|
+
version: 1.53.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: 2023-07-
|
11
|
+
date: 2023-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|