aws-sdk-sagemakerfeaturestoreruntime 1.2.0 → 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b20c383a510388f800e89e8457ceed0327b80df5bc99264ab8ae9cef0632dd17
4
- data.tar.gz: 7527a5dd0cb6767ad09503d18735ed5b5284b3cf4f3eafbb8f0142b19c4f9ed0
3
+ metadata.gz: df34ad84e90e61964bb10ed527dfe9390b660d35a3b907317a622bf01c7d9157
4
+ data.tar.gz: db1ca94413777256e800fbed8d9a7c20a3c18e6de8ce49351d613ec98189c119
5
5
  SHA512:
6
- metadata.gz: 2111307156f2a39a2f6df26d9ab4161c3c852533303eb68b0ed907785b360f08213e69b80c46d84b027245ef426f17a6facb67fc5a7655f7dfef2f49fd0477d2
7
- data.tar.gz: 2e8efedc29b6d1e0f7f1d6f0e13d1e53d4c09bfb7d6cab2c4b2f7fde4c3a47d0d6df1ab1c9d2321e4693149eddfc05dcaf1f1a5ac4bc308c69519b91da21bb74
6
+ metadata.gz: 6656d203cc62c7b02c18e3a2de124577752355edaefe5d01f83acf1a9387eee9215ce677d6e52234b4a1233d98ed3ae9b8f3e84a0a4ee7726d2bc7fa47d84577
7
+ data.tar.gz: c32b3430c2e8713fd7c86310d65570bb2cda13895a537a4ac60e4b5aa81e99529e1e57f1c4f676382e82e48c47e7006df3592dbb9c1c9caec4050ab48748c5fe
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2021-06-10)
5
+ ------------------
6
+
7
+ * Feature - Release BatchGetRecord API for AWS SageMaker Feature Store Runtime.
8
+
4
9
  1.2.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
28
28
  # structure.
29
29
  #
30
30
  # sage_maker_feature_store_runtime = Aws::SageMakerFeatureStoreRuntime::Client.new
31
- # resp = sage_maker_feature_store_runtime.delete_record(params)
31
+ # resp = sage_maker_feature_store_runtime.batch_get_record(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
48
48
  # @!group service
49
49
  module Aws::SageMakerFeatureStoreRuntime
50
50
 
51
- GEM_VERSION = '1.2.0'
51
+ GEM_VERSION = '1.3.0'
52
52
 
53
53
  end
@@ -327,6 +327,60 @@ module Aws::SageMakerFeatureStoreRuntime
327
327
 
328
328
  # @!group API Operations
329
329
 
330
+ # Retrieves a batch of `Records` from a `FeatureGroup`.
331
+ #
332
+ # @option params [required, Array<Types::BatchGetRecordIdentifier>] :identifiers
333
+ # A list of `FeatureGroup` names, with their corresponding
334
+ # `RecordIdentifier` value, and Feature name that have been requested to
335
+ # be retrieved in batch.
336
+ #
337
+ # @return [Types::BatchGetRecordResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
338
+ #
339
+ # * {Types::BatchGetRecordResponse#records #records} => Array&lt;Types::BatchGetRecordResultDetail&gt;
340
+ # * {Types::BatchGetRecordResponse#errors #errors} => Array&lt;Types::BatchGetRecordError&gt;
341
+ # * {Types::BatchGetRecordResponse#unprocessed_identifiers #unprocessed_identifiers} => Array&lt;Types::BatchGetRecordIdentifier&gt;
342
+ #
343
+ # @example Request syntax with placeholder values
344
+ #
345
+ # resp = client.batch_get_record({
346
+ # identifiers: [ # required
347
+ # {
348
+ # feature_group_name: "FeatureGroupName", # required
349
+ # record_identifiers_value_as_string: ["ValueAsString"], # required
350
+ # feature_names: ["FeatureName"],
351
+ # },
352
+ # ],
353
+ # })
354
+ #
355
+ # @example Response structure
356
+ #
357
+ # resp.records #=> Array
358
+ # resp.records[0].feature_group_name #=> String
359
+ # resp.records[0].record_identifier_value_as_string #=> String
360
+ # resp.records[0].record #=> Array
361
+ # resp.records[0].record[0].feature_name #=> String
362
+ # resp.records[0].record[0].value_as_string #=> String
363
+ # resp.errors #=> Array
364
+ # resp.errors[0].feature_group_name #=> String
365
+ # resp.errors[0].record_identifier_value_as_string #=> String
366
+ # resp.errors[0].error_code #=> String
367
+ # resp.errors[0].error_message #=> String
368
+ # resp.unprocessed_identifiers #=> Array
369
+ # resp.unprocessed_identifiers[0].feature_group_name #=> String
370
+ # resp.unprocessed_identifiers[0].record_identifiers_value_as_string #=> Array
371
+ # resp.unprocessed_identifiers[0].record_identifiers_value_as_string[0] #=> String
372
+ # resp.unprocessed_identifiers[0].feature_names #=> Array
373
+ # resp.unprocessed_identifiers[0].feature_names[0] #=> String
374
+ #
375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecord AWS API Documentation
376
+ #
377
+ # @overload batch_get_record(params = {})
378
+ # @param [Hash] params ({})
379
+ def batch_get_record(params = {}, options = {})
380
+ req = build_request(:batch_get_record, params)
381
+ req.send_request(options)
382
+ end
383
+
330
384
  # Deletes a `Record` from a `FeatureGroup`. A new record will show up in
331
385
  # the `OfflineStore` when the `DeleteRecord` API is called. This record
332
386
  # will have a value of `True` in the `is_deleted` column.
@@ -460,7 +514,7 @@ module Aws::SageMakerFeatureStoreRuntime
460
514
  params: params,
461
515
  config: config)
462
516
  context[:gem_name] = 'aws-sdk-sagemakerfeaturestoreruntime'
463
- context[:gem_version] = '1.2.0'
517
+ context[:gem_version] = '1.3.0'
464
518
  Seahorse::Client::Request.new(handlers, context)
465
519
  end
466
520
 
@@ -14,6 +14,14 @@ module Aws::SageMakerFeatureStoreRuntime
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessForbidden = Shapes::StructureShape.new(name: 'AccessForbidden')
17
+ BatchGetRecordError = Shapes::StructureShape.new(name: 'BatchGetRecordError')
18
+ BatchGetRecordErrors = Shapes::ListShape.new(name: 'BatchGetRecordErrors')
19
+ BatchGetRecordIdentifier = Shapes::StructureShape.new(name: 'BatchGetRecordIdentifier')
20
+ BatchGetRecordIdentifiers = Shapes::ListShape.new(name: 'BatchGetRecordIdentifiers')
21
+ BatchGetRecordRequest = Shapes::StructureShape.new(name: 'BatchGetRecordRequest')
22
+ BatchGetRecordResponse = Shapes::StructureShape.new(name: 'BatchGetRecordResponse')
23
+ BatchGetRecordResultDetail = Shapes::StructureShape.new(name: 'BatchGetRecordResultDetail')
24
+ BatchGetRecordResultDetails = Shapes::ListShape.new(name: 'BatchGetRecordResultDetails')
17
25
  DeleteRecordRequest = Shapes::StructureShape.new(name: 'DeleteRecordRequest')
18
26
  FeatureGroupName = Shapes::StringShape.new(name: 'FeatureGroupName')
19
27
  FeatureName = Shapes::StringShape.new(name: 'FeatureName')
@@ -25,14 +33,46 @@ module Aws::SageMakerFeatureStoreRuntime
25
33
  Message = Shapes::StringShape.new(name: 'Message')
26
34
  PutRecordRequest = Shapes::StructureShape.new(name: 'PutRecordRequest')
27
35
  Record = Shapes::ListShape.new(name: 'Record')
36
+ RecordIdentifiers = Shapes::ListShape.new(name: 'RecordIdentifiers')
28
37
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
29
38
  ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
39
+ UnprocessedIdentifiers = Shapes::ListShape.new(name: 'UnprocessedIdentifiers')
30
40
  ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
31
41
  ValueAsString = Shapes::StringShape.new(name: 'ValueAsString')
32
42
 
33
43
  AccessForbidden.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
34
44
  AccessForbidden.struct_class = Types::AccessForbidden
35
45
 
46
+ BatchGetRecordError.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "FeatureGroupName"))
47
+ BatchGetRecordError.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "RecordIdentifierValueAsString"))
48
+ BatchGetRecordError.add_member(:error_code, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "ErrorCode"))
49
+ BatchGetRecordError.add_member(:error_message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "ErrorMessage"))
50
+ BatchGetRecordError.struct_class = Types::BatchGetRecordError
51
+
52
+ BatchGetRecordErrors.member = Shapes::ShapeRef.new(shape: BatchGetRecordError)
53
+
54
+ BatchGetRecordIdentifier.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location_name: "FeatureGroupName"))
55
+ BatchGetRecordIdentifier.add_member(:record_identifiers_value_as_string, Shapes::ShapeRef.new(shape: RecordIdentifiers, required: true, location_name: "RecordIdentifiersValueAsString"))
56
+ BatchGetRecordIdentifier.add_member(:feature_names, Shapes::ShapeRef.new(shape: FeatureNames, location_name: "FeatureNames"))
57
+ BatchGetRecordIdentifier.struct_class = Types::BatchGetRecordIdentifier
58
+
59
+ BatchGetRecordIdentifiers.member = Shapes::ShapeRef.new(shape: BatchGetRecordIdentifier)
60
+
61
+ BatchGetRecordRequest.add_member(:identifiers, Shapes::ShapeRef.new(shape: BatchGetRecordIdentifiers, required: true, location_name: "Identifiers"))
62
+ BatchGetRecordRequest.struct_class = Types::BatchGetRecordRequest
63
+
64
+ BatchGetRecordResponse.add_member(:records, Shapes::ShapeRef.new(shape: BatchGetRecordResultDetails, required: true, location_name: "Records"))
65
+ BatchGetRecordResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetRecordErrors, required: true, location_name: "Errors"))
66
+ BatchGetRecordResponse.add_member(:unprocessed_identifiers, Shapes::ShapeRef.new(shape: UnprocessedIdentifiers, required: true, location_name: "UnprocessedIdentifiers"))
67
+ BatchGetRecordResponse.struct_class = Types::BatchGetRecordResponse
68
+
69
+ BatchGetRecordResultDetail.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "FeatureGroupName"))
70
+ BatchGetRecordResultDetail.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location_name: "RecordIdentifierValueAsString"))
71
+ BatchGetRecordResultDetail.add_member(:record, Shapes::ShapeRef.new(shape: Record, required: true, location_name: "Record"))
72
+ BatchGetRecordResultDetail.struct_class = Types::BatchGetRecordResultDetail
73
+
74
+ BatchGetRecordResultDetails.member = Shapes::ShapeRef.new(shape: BatchGetRecordResultDetail)
75
+
36
76
  DeleteRecordRequest.add_member(:feature_group_name, Shapes::ShapeRef.new(shape: FeatureGroupName, required: true, location: "uri", location_name: "FeatureGroupName"))
37
77
  DeleteRecordRequest.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "RecordIdentifierValueAsString"))
38
78
  DeleteRecordRequest.add_member(:event_time, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "EventTime"))
@@ -61,12 +101,16 @@ module Aws::SageMakerFeatureStoreRuntime
61
101
 
62
102
  Record.member = Shapes::ShapeRef.new(shape: FeatureValue)
63
103
 
104
+ RecordIdentifiers.member = Shapes::ShapeRef.new(shape: ValueAsString)
105
+
64
106
  ResourceNotFound.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
65
107
  ResourceNotFound.struct_class = Types::ResourceNotFound
66
108
 
67
109
  ServiceUnavailable.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
68
110
  ServiceUnavailable.struct_class = Types::ServiceUnavailable
69
111
 
112
+ UnprocessedIdentifiers.member = Shapes::ShapeRef.new(shape: BatchGetRecordIdentifier)
113
+
70
114
  ValidationError.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
71
115
  ValidationError.struct_class = Types::ValidationError
72
116
 
@@ -88,6 +132,18 @@ module Aws::SageMakerFeatureStoreRuntime
88
132
  "uid" => "sagemaker-featurestore-runtime-2020-07-01",
89
133
  }
90
134
 
135
+ api.add_operation(:batch_get_record, Seahorse::Model::Operation.new.tap do |o|
136
+ o.name = "BatchGetRecord"
137
+ o.http_method = "POST"
138
+ o.http_request_uri = "/BatchGetRecord"
139
+ o.input = Shapes::ShapeRef.new(shape: BatchGetRecordRequest)
140
+ o.output = Shapes::ShapeRef.new(shape: BatchGetRecordResponse)
141
+ o.errors << Shapes::ShapeRef.new(shape: ValidationError)
142
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
143
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
144
+ o.errors << Shapes::ShapeRef.new(shape: AccessForbidden)
145
+ end)
146
+
91
147
  api.add_operation(:delete_record, Seahorse::Model::Operation.new.tap do |o|
92
148
  o.name = "DeleteRecord"
93
149
  o.http_method = "DELETE"
@@ -23,6 +23,156 @@ module Aws::SageMakerFeatureStoreRuntime
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
+ # The error that has occurred when attempting to retrieve a batch of
27
+ # Records.
28
+ #
29
+ # @!attribute [rw] feature_group_name
30
+ # The name of the feature group that the record belongs to.
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] record_identifier_value_as_string
34
+ # The value for the `RecordIdentifier` in string format of a Record
35
+ # from a `FeatureGroup` that is causing an error when attempting to be
36
+ # retrieved.
37
+ # @return [String]
38
+ #
39
+ # @!attribute [rw] error_code
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].
43
+ #
44
+ #
45
+ #
46
+ # [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_GetRecord.html#API_feature_store_GetRecord_Errors
47
+ # @return [String]
48
+ #
49
+ # @!attribute [rw] error_message
50
+ # The error message of an error that has occured when attempting to
51
+ # retrieve a record in the batch.
52
+ # @return [String]
53
+ #
54
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecordError AWS API Documentation
55
+ #
56
+ class BatchGetRecordError < Struct.new(
57
+ :feature_group_name,
58
+ :record_identifier_value_as_string,
59
+ :error_code,
60
+ :error_message)
61
+ SENSITIVE = []
62
+ include Aws::Structure
63
+ end
64
+
65
+ # The identifier that identifies the batch of Records you are retrieving
66
+ # in a batch.
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
+ # @!attribute [rw] feature_group_name
78
+ # A `FeatureGroupName` containing Records you are retrieving in a
79
+ # batch.
80
+ # @return [String]
81
+ #
82
+ # @!attribute [rw] record_identifiers_value_as_string
83
+ # The value for a list of record identifiers in string format.
84
+ # @return [Array<String>]
85
+ #
86
+ # @!attribute [rw] feature_names
87
+ # List of names of Features to be retrieved. If not specified, the
88
+ # latest value for all the Features are returned.
89
+ # @return [Array<String>]
90
+ #
91
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecordIdentifier AWS API Documentation
92
+ #
93
+ class BatchGetRecordIdentifier < Struct.new(
94
+ :feature_group_name,
95
+ :record_identifiers_value_as_string,
96
+ :feature_names)
97
+ SENSITIVE = []
98
+ include Aws::Structure
99
+ end
100
+
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
+ # @!attribute [rw] identifiers
115
+ # A list of `FeatureGroup` names, with their corresponding
116
+ # `RecordIdentifier` value, and Feature name that have been requested
117
+ # to be retrieved in batch.
118
+ # @return [Array<Types::BatchGetRecordIdentifier>]
119
+ #
120
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecordRequest AWS API Documentation
121
+ #
122
+ class BatchGetRecordRequest < Struct.new(
123
+ :identifiers)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
128
+ # @!attribute [rw] records
129
+ # A list of Records you requested to be retrieved in batch.
130
+ # @return [Array<Types::BatchGetRecordResultDetail>]
131
+ #
132
+ # @!attribute [rw] errors
133
+ # A list of errors that have occured when retrieving a batch of
134
+ # Records.
135
+ # @return [Array<Types::BatchGetRecordError>]
136
+ #
137
+ # @!attribute [rw] unprocessed_identifiers
138
+ # A unprocessed list of `FeatureGroup` names, with their corresponding
139
+ # `RecordIdentifier` value, and Feature name.
140
+ # @return [Array<Types::BatchGetRecordIdentifier>]
141
+ #
142
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecordResponse AWS API Documentation
143
+ #
144
+ class BatchGetRecordResponse < Struct.new(
145
+ :records,
146
+ :errors,
147
+ :unprocessed_identifiers)
148
+ SENSITIVE = []
149
+ include Aws::Structure
150
+ end
151
+
152
+ # The output of Records that have been retrieved in a batch.
153
+ #
154
+ # @!attribute [rw] feature_group_name
155
+ # The `FeatureGroupName` containing Records you retrieved in a batch.
156
+ # @return [String]
157
+ #
158
+ # @!attribute [rw] record_identifier_value_as_string
159
+ # The value of the record identifer in string format.
160
+ # @return [String]
161
+ #
162
+ # @!attribute [rw] record
163
+ # The `Record` retrieved.
164
+ # @return [Array<Types::FeatureValue>]
165
+ #
166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/BatchGetRecordResultDetail AWS API Documentation
167
+ #
168
+ class BatchGetRecordResultDetail < Struct.new(
169
+ :feature_group_name,
170
+ :record_identifier_value_as_string,
171
+ :record)
172
+ SENSITIVE = []
173
+ include Aws::Structure
174
+ end
175
+
26
176
  # @note When making an API call, you may pass DeleteRecordRequest
27
177
  # data as a hash:
28
178
  #
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.2.0
4
+ version: 1.3.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
66
66
  licenses:
67
67
  - Apache-2.0
68
68
  metadata:
69
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerfeaturestoreruntime
70
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerfeaturestoreruntime/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakerfeaturestoreruntime
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakerfeaturestoreruntime/CHANGELOG.md
71
71
  post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: AWS SDK for Ruby - Amazon SageMaker Feature Store Runtime