aws-sdk-sagemakerfeaturestoreruntime 1.12.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c83d50842b58110e601268b052b8dcb00fea1382c057e27820b15d0cb3a6581
4
- data.tar.gz: ecc2e3d920f30b9513d899340795ad7f17ef1350a1eeface30116d1ad1ee56f8
3
+ metadata.gz: 59b4ad084704372ff876729e4f024f1c1604e6f30768c8b0c4712817362436dd
4
+ data.tar.gz: 8a6404a15cccc9944c25b1eb657812a79f0eab522b0e6d10bc7260243970ac37
5
5
  SHA512:
6
- metadata.gz: e3800bdd6e5f8fda81bb8105e609c773504834ae618112c76528ea5aa54f4507bbe56193c4618b73902acd004ed07cdb183b880ac2f647104c590e5843291818
7
- data.tar.gz: d9c132ad20c078034e58eddf7e0aca983c64d43554c4af62dac484dda564bdda7d32bbad7328058ad54030ba0afb2d6ce47fcfdb5b439b8f9d5746f75c576bc4
6
+ metadata.gz: ca02c5985be104989c1af04ac0e88f165248251cce445ecebc4de8db3e855f67594653e727c32b9f3867145d8e9b5aa41aff5eb6f5d24e12ad36e7640c1309ac
7
+ data.tar.gz: ff07e89aece71268a61908c0fb791b4eaf59437e7afba50a60410f1e32ffd0373156b2393ff2188f0b1743ca730eac3fa8de3492d25cbe95d7ceefc66610cc0e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.14.0 (2022-12-06)
5
+ ------------------
6
+
7
+ * Feature - For online + offline Feature Groups, added ability to target PutRecord and DeleteRecord actions to only online store, or only offline store. If target store parameter is not specified, actions will apply to both stores.
8
+
9
+ 1.13.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.12.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.14.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakerfeaturestoreruntime)
@@ -79,8 +79,9 @@ module Aws::SageMakerFeatureStoreRuntime
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::SageMakerFeatureStoreRuntime::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::SageMakerFeatureStoreRuntime
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::SageMakerFeatureStoreRuntime
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::SageMakerFeatureStoreRuntime::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SageMakerFeatureStoreRuntime::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -405,9 +422,10 @@ module Aws::SageMakerFeatureStoreRuntime
405
422
  req.send_request(options)
406
423
  end
407
424
 
408
- # Deletes a `Record` from a `FeatureGroup`. A new record will show up in
409
- # the `OfflineStore` when the `DeleteRecord` API is called. This record
410
- # will have a value of `True` in the `is_deleted` column.
425
+ # Deletes a `Record` from a `FeatureGroup`. When the `DeleteRecord` API
426
+ # is called a new record will be added to the `OfflineStore` and the
427
+ # `Record` will be removed from the `OnlineStore`. This record will have
428
+ # a value of `True` in the `is_deleted` column.
411
429
  #
412
430
  # @option params [required, String] :feature_group_name
413
431
  # The name of the feature group to delete the record from.
@@ -420,6 +438,11 @@ module Aws::SageMakerFeatureStoreRuntime
420
438
  # Timestamp indicating when the deletion event occurred. `EventTime` can
421
439
  # be used to query data at a certain point in time.
422
440
  #
441
+ # @option params [Array<String>] :target_stores
442
+ # A list of stores from which you're deleting the record. By default,
443
+ # Feature Store deletes the record from all of the stores that you're
444
+ # using for the `FeatureGroup`.
445
+ #
423
446
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
424
447
  #
425
448
  # @example Request syntax with placeholder values
@@ -428,6 +451,7 @@ module Aws::SageMakerFeatureStoreRuntime
428
451
  # feature_group_name: "FeatureGroupName", # required
429
452
  # record_identifier_value_as_string: "ValueAsString", # required
430
453
  # event_time: "ValueAsString", # required
454
+ # target_stores: ["OnlineStore"], # accepts OnlineStore, OfflineStore
431
455
  # })
432
456
  #
433
457
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecord AWS API Documentation
@@ -445,7 +469,8 @@ module Aws::SageMakerFeatureStoreRuntime
445
469
  # returned.
446
470
  #
447
471
  # @option params [required, String] :feature_group_name
448
- # The name of the feature group in which you want to put the records.
472
+ # The name of the feature group from which you want to retrieve a
473
+ # record.
449
474
  #
450
475
  # @option params [required, String] :record_identifier_value_as_string
451
476
  # The value that corresponds to `RecordIdentifier` type and uniquely
@@ -502,6 +527,11 @@ module Aws::SageMakerFeatureStoreRuntime
502
527
  #
503
528
  # * Use `PutRecord` to update feature values.
504
529
  #
530
+ # @option params [Array<String>] :target_stores
531
+ # A list of stores to which you're adding the record. By default,
532
+ # Feature Store adds the record to all of the stores that you're using
533
+ # for the `FeatureGroup`.
534
+ #
505
535
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
506
536
  #
507
537
  # @example Request syntax with placeholder values
@@ -514,6 +544,7 @@ module Aws::SageMakerFeatureStoreRuntime
514
544
  # value_as_string: "ValueAsString", # required
515
545
  # },
516
546
  # ],
547
+ # target_stores: ["OnlineStore"], # accepts OnlineStore, OfflineStore
517
548
  # })
518
549
  #
519
550
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/PutRecord AWS API Documentation
@@ -538,7 +569,7 @@ module Aws::SageMakerFeatureStoreRuntime
538
569
  params: params,
539
570
  config: config)
540
571
  context[:gem_name] = 'aws-sdk-sagemakerfeaturestoreruntime'
541
- context[:gem_version] = '1.12.0'
572
+ context[:gem_version] = '1.14.0'
542
573
  Seahorse::Client::Request.new(handlers, context)
543
574
  end
544
575
 
@@ -36,6 +36,8 @@ module Aws::SageMakerFeatureStoreRuntime
36
36
  RecordIdentifiers = Shapes::ListShape.new(name: 'RecordIdentifiers')
37
37
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
38
38
  ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
39
+ TargetStore = Shapes::StringShape.new(name: 'TargetStore')
40
+ TargetStores = Shapes::ListShape.new(name: 'TargetStores')
39
41
  UnprocessedIdentifiers = Shapes::ListShape.new(name: 'UnprocessedIdentifiers')
40
42
  ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
41
43
  ValueAsString = Shapes::StringShape.new(name: 'ValueAsString')
@@ -76,6 +78,7 @@ module Aws::SageMakerFeatureStoreRuntime
76
78
  DeleteRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
77
79
  DeleteRecordRequest.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "RecordIdentifierValueAsString"))
78
80
  DeleteRecordRequest.add_member(:event_time, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "EventTime"))
81
+ DeleteRecordRequest.add_member(:target_stores, Shapes::ShapeRef.new(shape: TargetStores, location: "querystring", location_name: "TargetStores"))
79
82
  DeleteRecordRequest.struct_class = Types::DeleteRecordRequest
80
83
 
81
84
  FeatureNames.member = Shapes::ShapeRef.new(shape: FeatureName)
@@ -97,6 +100,7 @@ module Aws::SageMakerFeatureStoreRuntime
97
100
 
98
101
  PutRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
99
102
  PutRecordRequest.add_member(:record, Shapes::ShapeRef.new(shape: Record, required: true, location_name: "Record"))
103
+ PutRecordRequest.add_member(:target_stores, Shapes::ShapeRef.new(shape: TargetStores, location_name: "TargetStores"))
100
104
  PutRecordRequest.struct_class = Types::PutRecordRequest
101
105
 
102
106
  Record.member = Shapes::ShapeRef.new(shape: FeatureValue)
@@ -109,6 +113,8 @@ module Aws::SageMakerFeatureStoreRuntime
109
113
  ServiceUnavailable.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
110
114
  ServiceUnavailable.struct_class = Types::ServiceUnavailable
111
115
 
116
+ TargetStores.member = Shapes::ShapeRef.new(shape: TargetStore)
117
+
112
118
  UnprocessedIdentifiers.member = Shapes::ShapeRef.new(shape: BatchGetRecordIdentifier)
113
119
 
114
120
  ValidationError.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
@@ -0,0 +1,69 @@
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::SageMakerFeatureStoreRuntime
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
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ 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::SageMakerFeatureStoreRuntime
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 = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
+ YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
+ ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YW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UtcnVudGltZS5zYWdlbWFrZXIue1JlZ2lvbn0ue1BhcnRpdGlv
101
+ blJlc3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30s
102
+ ImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlv
103
+ bnMiOltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlz
104
+ IHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUi
105
+ OiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJs
106
+ IjoiaHR0cHM6Ly9mZWF0dXJlc3RvcmUtcnVudGltZS5zYWdlbWFrZXIue1Jl
107
+ Z2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGll
108
+ cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,71 @@
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::SageMakerFeatureStoreRuntime
12
+ module Endpoints
13
+
14
+ class BatchGetRecord
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::SageMakerFeatureStoreRuntime::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteRecord
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::SageMakerFeatureStoreRuntime::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class GetRecord
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::SageMakerFeatureStoreRuntime::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class PutRecord
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::SageMakerFeatureStoreRuntime::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ end
71
+ end
@@ -0,0 +1,76 @@
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::SageMakerFeatureStoreRuntime
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::SageMakerFeatureStoreRuntime::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::SageMakerFeatureStoreRuntime::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::SageMakerFeatureStoreRuntime::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 :batch_get_record
60
+ Aws::SageMakerFeatureStoreRuntime::Endpoints::BatchGetRecord.build(context)
61
+ when :delete_record
62
+ Aws::SageMakerFeatureStoreRuntime::Endpoints::DeleteRecord.build(context)
63
+ when :get_record
64
+ Aws::SageMakerFeatureStoreRuntime::Endpoints::GetRecord.build(context)
65
+ when :put_record
66
+ Aws::SageMakerFeatureStoreRuntime::Endpoints::PutRecord.build(context)
67
+ end
68
+ end
69
+ end
70
+
71
+ def add_handlers(handlers, _config)
72
+ handlers.add(Handler, step: :build, priority: 75)
73
+ end
74
+ end
75
+ end
76
+ end
@@ -38,8 +38,8 @@ module Aws::SageMakerFeatureStoreRuntime
38
38
  #
39
39
  # @!attribute [rw] error_code
40
40
  # The error code of an error that has occured when attempting to
41
- # retrieve a batch of Records. For more information on errors, see [
42
- # Errors][1].
41
+ # retrieve a batch of Records. For more information on errors, see
42
+ # [Errors][1].
43
43
  #
44
44
  #
45
45
  #
@@ -65,15 +65,6 @@ module Aws::SageMakerFeatureStoreRuntime
65
65
  # The identifier that identifies the batch of Records you are retrieving
66
66
  # in a batch.
67
67
  #
68
- # @note When making an API call, you may pass BatchGetRecordIdentifier
69
- # data as a hash:
70
- #
71
- # {
72
- # feature_group_name: "FeatureGroupName", # required
73
- # record_identifiers_value_as_string: ["ValueAsString"], # required
74
- # feature_names: ["FeatureName"],
75
- # }
76
- #
77
68
  # @!attribute [rw] feature_group_name
78
69
  # A `FeatureGroupName` containing Records you are retrieving in a
79
70
  # batch.
@@ -98,19 +89,6 @@ module Aws::SageMakerFeatureStoreRuntime
98
89
  include Aws::Structure
99
90
  end
100
91
 
101
- # @note When making an API call, you may pass BatchGetRecordRequest
102
- # data as a hash:
103
- #
104
- # {
105
- # identifiers: [ # required
106
- # {
107
- # feature_group_name: "FeatureGroupName", # required
108
- # record_identifiers_value_as_string: ["ValueAsString"], # required
109
- # feature_names: ["FeatureName"],
110
- # },
111
- # ],
112
- # }
113
- #
114
92
  # @!attribute [rw] identifiers
115
93
  # A list of `FeatureGroup` names, with their corresponding
116
94
  # `RecordIdentifier` value, and Feature name that have been requested
@@ -130,7 +108,7 @@ module Aws::SageMakerFeatureStoreRuntime
130
108
  # @return [Array<Types::BatchGetRecordResultDetail>]
131
109
  #
132
110
  # @!attribute [rw] errors
133
- # A list of errors that have occured when retrieving a batch of
111
+ # A list of errors that have occurred when retrieving a batch of
134
112
  # Records.
135
113
  # @return [Array<Types::BatchGetRecordError>]
136
114
  #
@@ -173,15 +151,6 @@ module Aws::SageMakerFeatureStoreRuntime
173
151
  include Aws::Structure
174
152
  end
175
153
 
176
- # @note When making an API call, you may pass DeleteRecordRequest
177
- # data as a hash:
178
- #
179
- # {
180
- # feature_group_name: "FeatureGroupName", # required
181
- # record_identifier_value_as_string: "ValueAsString", # required
182
- # event_time: "ValueAsString", # required
183
- # }
184
- #
185
154
  # @!attribute [rw] feature_group_name
186
155
  # The name of the feature group to delete the record from.
187
156
  # @return [String]
@@ -196,26 +165,25 @@ module Aws::SageMakerFeatureStoreRuntime
196
165
  # can be used to query data at a certain point in time.
197
166
  # @return [String]
198
167
  #
168
+ # @!attribute [rw] target_stores
169
+ # A list of stores from which you're deleting the record. By default,
170
+ # Feature Store deletes the record from all of the stores that you're
171
+ # using for the `FeatureGroup`.
172
+ # @return [Array<String>]
173
+ #
199
174
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecordRequest AWS API Documentation
200
175
  #
201
176
  class DeleteRecordRequest < Struct.new(
202
177
  :feature_group_name,
203
178
  :record_identifier_value_as_string,
204
- :event_time)
179
+ :event_time,
180
+ :target_stores)
205
181
  SENSITIVE = []
206
182
  include Aws::Structure
207
183
  end
208
184
 
209
185
  # The value associated with a feature.
210
186
  #
211
- # @note When making an API call, you may pass FeatureValue
212
- # data as a hash:
213
- #
214
- # {
215
- # feature_name: "FeatureName", # required
216
- # value_as_string: "ValueAsString", # required
217
- # }
218
- #
219
187
  # @!attribute [rw] feature_name
220
188
  # The name of a feature that a feature value corresponds to.
221
189
  # @return [String]
@@ -235,17 +203,9 @@ module Aws::SageMakerFeatureStoreRuntime
235
203
  include Aws::Structure
236
204
  end
237
205
 
238
- # @note When making an API call, you may pass GetRecordRequest
239
- # data as a hash:
240
- #
241
- # {
242
- # feature_group_name: "FeatureGroupName", # required
243
- # record_identifier_value_as_string: "ValueAsString", # required
244
- # feature_names: ["FeatureName"],
245
- # }
246
- #
247
206
  # @!attribute [rw] feature_group_name
248
- # The name of the feature group in which you want to put the records.
207
+ # The name of the feature group from which you want to retrieve a
208
+ # record.
249
209
  # @return [String]
250
210
  #
251
211
  # @!attribute [rw] record_identifier_value_as_string
@@ -281,7 +241,7 @@ module Aws::SageMakerFeatureStoreRuntime
281
241
  end
282
242
 
283
243
  # An internal failure occurred. Try your request again. If the problem
284
- # persists, contact AWS customer support.
244
+ # persists, contact Amazon Web Services customer support.
285
245
  #
286
246
  # @!attribute [rw] message
287
247
  # @return [String]
@@ -294,19 +254,6 @@ module Aws::SageMakerFeatureStoreRuntime
294
254
  include Aws::Structure
295
255
  end
296
256
 
297
- # @note When making an API call, you may pass PutRecordRequest
298
- # data as a hash:
299
- #
300
- # {
301
- # feature_group_name: "FeatureGroupName", # required
302
- # record: [ # required
303
- # {
304
- # feature_name: "FeatureName", # required
305
- # value_as_string: "ValueAsString", # required
306
- # },
307
- # ],
308
- # }
309
- #
310
257
  # @!attribute [rw] feature_group_name
311
258
  # The name of the feature group that you want to insert the record
312
259
  # into.
@@ -324,11 +271,18 @@ module Aws::SageMakerFeatureStoreRuntime
324
271
  # * Use `PutRecord` to update feature values.
325
272
  # @return [Array<Types::FeatureValue>]
326
273
  #
274
+ # @!attribute [rw] target_stores
275
+ # A list of stores to which you're adding the record. By default,
276
+ # Feature Store adds the record to all of the stores that you're
277
+ # using for the `FeatureGroup`.
278
+ # @return [Array<String>]
279
+ #
327
280
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/PutRecordRequest AWS API Documentation
328
281
  #
329
282
  class PutRecordRequest < Struct.new(
330
283
  :feature_group_name,
331
- :record)
284
+ :record,
285
+ :target_stores)
332
286
  SENSITIVE = []
333
287
  include Aws::Structure
334
288
  end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/types'
15
15
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/client_api'
16
+ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/client'
17
18
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/errors'
18
19
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/resource'
20
+ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/endpoint_parameters'
21
+ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/endpoint_provider'
22
+ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/endpoints'
19
23
  require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
20
24
 
21
25
  # This module provides support for Amazon SageMaker Feature Store Runtime. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
48
52
  # @!group service
49
53
  module Aws::SageMakerFeatureStoreRuntime
50
54
 
51
- GEM_VERSION = '1.12.0'
55
+ GEM_VERSION = '1.14.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sagemakerfeaturestoreruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.14.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-02-24 00:00:00.000000000 Z
11
+ date: 2022-12-06 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-sagemakerfeaturestoreruntime/client.rb
60
60
  - lib/aws-sdk-sagemakerfeaturestoreruntime/client_api.rb
61
61
  - lib/aws-sdk-sagemakerfeaturestoreruntime/customizations.rb
62
+ - lib/aws-sdk-sagemakerfeaturestoreruntime/endpoint_parameters.rb
63
+ - lib/aws-sdk-sagemakerfeaturestoreruntime/endpoint_provider.rb
64
+ - lib/aws-sdk-sagemakerfeaturestoreruntime/endpoints.rb
62
65
  - lib/aws-sdk-sagemakerfeaturestoreruntime/errors.rb
66
+ - lib/aws-sdk-sagemakerfeaturestoreruntime/plugins/endpoints.rb
63
67
  - lib/aws-sdk-sagemakerfeaturestoreruntime/resource.rb
64
68
  - lib/aws-sdk-sagemakerfeaturestoreruntime/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby