aws-sdk-sagemakerfeaturestoreruntime 1.15.0 → 1.16.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: b45006301b3b83a5e40a47cc14e92cee7edac0d7663dbc6f96490f2a8faccf2f
4
- data.tar.gz: eea1d0a99b434984a9c6377253de322f873937a7a41438da8b965fcdfe3db441
3
+ metadata.gz: 98fe2cc2606ce49173b62fc0af0413255534557584b6744e45bf1c6691c6fbce
4
+ data.tar.gz: 0a09a19251b62f151a2a687f22c273345f088ec06a9d23ecd487f1899b41a87c
5
5
  SHA512:
6
- metadata.gz: 50a669ac8ffa532b38d0fd450861406cc8d2c9d4cc64318540e9ec198f608e2e8744b842e6481239aa9a68aaaf5b4b0738f16cc8d9d7b1758c2b11f877eec6a2
7
- data.tar.gz: '023878ed348501eaf2a3d292e66a5cde43cd55bb69d05f1c2ed99ca7ced132ae08d743ec9b064b6831958a2999f3212004b6a2a0c6fefbb3055ec572ec7c4c96'
6
+ metadata.gz: 9da278f710757c266e6e60075657775b469ecf712082286176ce1491d40bd1427b73cf4d7ac626cd844256a365ad8b3f7a029cb31ffb9dcc815f61a3b3b696e4
7
+ data.tar.gz: db0c000f9de14bc7c23021f7836b61145bb599d321d79cbc1f66acb9ea82841d296de7a77d9b19c779f4e4b14d7fc5f8dd0b9beec76d45a9a1c0d00409447179
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2023-03-31)
5
+ ------------------
6
+
7
+ * Feature - In this release, you can now chose between soft delete and hard delete when calling the DeleteRecord API, so you have more flexibility when it comes to managing online store data.
8
+
4
9
  1.15.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
@@ -422,10 +422,26 @@ module Aws::SageMakerFeatureStoreRuntime
422
422
  req.send_request(options)
423
423
  end
424
424
 
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.
425
+ # Deletes a `Record` from a `FeatureGroup` in the `OnlineStore`. Feature
426
+ # Store supports both `SOFT_DELETE` and `HARD_DELETE`. For `SOFT_DELETE`
427
+ # (default), feature columns are set to `null` and the record is no
428
+ # longer retrievable by `GetRecord` or `BatchGetRecord`. For`
429
+ # HARD_DELETE`, the complete `Record` is removed from the `OnlineStore`.
430
+ # In both cases, Feature Store appends the deleted record marker to the
431
+ # `OfflineStore` with feature values set to `null`, `is_deleted` value
432
+ # set to `True`, and `EventTime` set to the delete input `EventTime`.
433
+ #
434
+ # Note that the `EventTime` specified in `DeleteRecord` should be set
435
+ # later than the `EventTime` of the existing record in the `OnlineStore`
436
+ # for that `RecordIdentifer`. If it is not, the deletion does not occur:
437
+ #
438
+ # * For `SOFT_DELETE`, the existing (undeleted) record remains in the
439
+ # `OnlineStore`, though the delete record marker is still written to
440
+ # the `OfflineStore`.
441
+ #
442
+ # * `HARD_DELETE` returns `EventTime`: `400 ValidationException` to
443
+ # indicate that the delete operation failed. No delete record marker
444
+ # is written to the `OfflineStore`.
429
445
  #
430
446
  # @option params [required, String] :feature_group_name
431
447
  # The name of the feature group to delete the record from.
@@ -443,6 +459,10 @@ module Aws::SageMakerFeatureStoreRuntime
443
459
  # Feature Store deletes the record from all of the stores that you're
444
460
  # using for the `FeatureGroup`.
445
461
  #
462
+ # @option params [String] :deletion_mode
463
+ # The name of the deletion mode for deleting the record. By default, the
464
+ # deletion mode is set to `SoftDelete`.
465
+ #
446
466
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
447
467
  #
448
468
  # @example Request syntax with placeholder values
@@ -452,6 +472,7 @@ module Aws::SageMakerFeatureStoreRuntime
452
472
  # record_identifier_value_as_string: "ValueAsString", # required
453
473
  # event_time: "ValueAsString", # required
454
474
  # target_stores: ["OnlineStore"], # accepts OnlineStore, OfflineStore
475
+ # deletion_mode: "SoftDelete", # accepts SoftDelete, HardDelete
455
476
  # })
456
477
  #
457
478
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecord AWS API Documentation
@@ -569,7 +590,7 @@ module Aws::SageMakerFeatureStoreRuntime
569
590
  params: params,
570
591
  config: config)
571
592
  context[:gem_name] = 'aws-sdk-sagemakerfeaturestoreruntime'
572
- context[:gem_version] = '1.15.0'
593
+ context[:gem_version] = '1.16.0'
573
594
  Seahorse::Client::Request.new(handlers, context)
574
595
  end
575
596
 
@@ -23,6 +23,7 @@ module Aws::SageMakerFeatureStoreRuntime
23
23
  BatchGetRecordResultDetail = Shapes::StructureShape.new(name: 'BatchGetRecordResultDetail')
24
24
  BatchGetRecordResultDetails = Shapes::ListShape.new(name: 'BatchGetRecordResultDetails')
25
25
  DeleteRecordRequest = Shapes::StructureShape.new(name: 'DeleteRecordRequest')
26
+ DeletionMode = Shapes::StringShape.new(name: 'DeletionMode')
26
27
  FeatureGroupName = Shapes::StringShape.new(name: 'FeatureGroupName')
27
28
  FeatureName = Shapes::StringShape.new(name: 'FeatureName')
28
29
  FeatureNames = Shapes::ListShape.new(name: 'FeatureNames')
@@ -79,6 +80,7 @@ module Aws::SageMakerFeatureStoreRuntime
79
80
  DeleteRecordRequest.add_member(:record_identifier_value_as_string, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "RecordIdentifierValueAsString"))
80
81
  DeleteRecordRequest.add_member(:event_time, Shapes::ShapeRef.new(shape: ValueAsString, required: true, location: "querystring", location_name: "EventTime"))
81
82
  DeleteRecordRequest.add_member(:target_stores, Shapes::ShapeRef.new(shape: TargetStores, location: "querystring", location_name: "TargetStores"))
83
+ DeleteRecordRequest.add_member(:deletion_mode, Shapes::ShapeRef.new(shape: DeletionMode, location: "querystring", location_name: "DeletionMode"))
82
84
  DeleteRecordRequest.struct_class = Types::DeleteRecordRequest
83
85
 
84
86
  FeatureNames.member = Shapes::ShapeRef.new(shape: FeatureName)
@@ -50,9 +50,6 @@ module Aws::SageMakerFeatureStoreRuntime
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::SageMakerFeatureStoreRuntime
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://featurestore-runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -37,7 +37,7 @@ module Aws::SageMakerFeatureStoreRuntime
37
37
  # @return [String]
38
38
  #
39
39
  # @!attribute [rw] error_code
40
- # The error code of an error that has occured when attempting to
40
+ # The error code of an error that has occurred when attempting to
41
41
  # retrieve a batch of Records. For more information on errors, see
42
42
  # [Errors][1].
43
43
  #
@@ -47,7 +47,7 @@ module Aws::SageMakerFeatureStoreRuntime
47
47
  # @return [String]
48
48
  #
49
49
  # @!attribute [rw] error_message
50
- # The error message of an error that has occured when attempting to
50
+ # The error message of an error that has occurred when attempting to
51
51
  # retrieve a record in the batch.
52
52
  # @return [String]
53
53
  #
@@ -134,7 +134,7 @@ module Aws::SageMakerFeatureStoreRuntime
134
134
  # @return [String]
135
135
  #
136
136
  # @!attribute [rw] record_identifier_value_as_string
137
- # The value of the record identifer in string format.
137
+ # The value of the record identifier in string format.
138
138
  # @return [String]
139
139
  #
140
140
  # @!attribute [rw] record
@@ -171,13 +171,19 @@ module Aws::SageMakerFeatureStoreRuntime
171
171
  # using for the `FeatureGroup`.
172
172
  # @return [Array<String>]
173
173
  #
174
+ # @!attribute [rw] deletion_mode
175
+ # The name of the deletion mode for deleting the record. By default,
176
+ # the deletion mode is set to `SoftDelete`.
177
+ # @return [String]
178
+ #
174
179
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-featurestore-runtime-2020-07-01/DeleteRecordRequest AWS API Documentation
175
180
  #
176
181
  class DeleteRecordRequest < Struct.new(
177
182
  :feature_group_name,
178
183
  :record_identifier_value_as_string,
179
184
  :event_time,
180
- :target_stores)
185
+ :target_stores,
186
+ :deletion_mode)
181
187
  SENSITIVE = []
182
188
  include Aws::Structure
183
189
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sagemakerfeaturestoreruntime/customizations'
52
52
  # @!group service
53
53
  module Aws::SageMakerFeatureStoreRuntime
54
54
 
55
- GEM_VERSION = '1.15.0'
55
+ GEM_VERSION = '1.16.0'
56
56
 
57
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.15.0
4
+ version: 1.16.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core