Skip to content

Commit e2b11d2

Browse files
author
AWS
committed
Amazon SageMaker Feature Store Runtime Update: 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.
1 parent ba7915e commit e2b11d2

File tree

4 files changed

+40
-11
lines changed

4 files changed

+40
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon SageMaker Feature Store Runtime",
4+
"contributor": "",
5+
"description": "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."
6+
}

services/sagemakerfeaturestoreruntime/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": {
44
"Region": {
55
"builtIn": "AWS::Region",
6-
"required": false,
6+
"required": true,
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},

services/sagemakerfeaturestoreruntime/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"params": {
1111
"UseDualStack": false,
12-
"Region": "us-east-1",
1312
"UseFIPS": false,
13+
"Region": "us-east-1",
1414
"Endpoint": "https://example.com"
1515
}
1616
},
@@ -21,8 +21,8 @@
2121
},
2222
"params": {
2323
"UseDualStack": false,
24-
"Region": "us-east-1",
2524
"UseFIPS": true,
25+
"Region": "us-east-1",
2626
"Endpoint": "https://example.com"
2727
}
2828
},
@@ -33,8 +33,8 @@
3333
},
3434
"params": {
3535
"UseDualStack": true,
36-
"Region": "us-east-1",
3736
"UseFIPS": false,
37+
"Region": "us-east-1",
3838
"Endpoint": "https://example.com"
3939
}
4040
}

services/sagemakerfeaturestoreruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{"shape":"ServiceUnavailable"},
4242
{"shape":"AccessForbidden"}
4343
],
44-
"documentation":"<p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>. A new record will show up in the <code>OfflineStore</code> when the <code>DeleteRecord</code> API is called. This record will have a value of <code>True</code> in the <code>is_deleted</code> column.</p>"
44+
"documentation":"<p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>. When the <code>DeleteRecord</code> API is called a new record will be added to the <code>OfflineStore</code> and the <code>Record</code> will be removed from the <code>OnlineStore</code>. This record will have a value of <code>True</code> in the <code>is_deleted</code> column.</p>"
4545
},
4646
"GetRecord":{
4747
"name":"GetRecord",
@@ -106,7 +106,7 @@
106106
},
107107
"ErrorCode":{
108108
"shape":"ValueAsString",
109-
"documentation":"<p>The error code of an error that has occured when attempting to retrieve a batch of Records. For more information on errors, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_GetRecord.html#API_feature_store_GetRecord_Errors\"> Errors</a>.</p>"
109+
"documentation":"<p>The error code of an error that has occured when attempting to retrieve a batch of Records. For more information on errors, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_GetRecord.html#API_feature_store_GetRecord_Errors\">Errors</a>.</p>"
110110
},
111111
"ErrorMessage":{
112112
"shape":"Message",
@@ -172,7 +172,7 @@
172172
},
173173
"Errors":{
174174
"shape":"BatchGetRecordErrors",
175-
"documentation":"<p>A list of errors that have occured when retrieving a batch of Records.</p>"
175+
"documentation":"<p>A list of errors that have occurred when retrieving a batch of Records.</p>"
176176
},
177177
"UnprocessedIdentifiers":{
178178
"shape":"UnprocessedIdentifiers",
@@ -233,20 +233,26 @@
233233
"documentation":"<p>Timestamp indicating when the deletion event occurred. <code>EventTime</code> can be used to query data at a certain point in time.</p>",
234234
"location":"querystring",
235235
"locationName":"EventTime"
236+
},
237+
"TargetStores":{
238+
"shape":"TargetStores",
239+
"documentation":"<p>A list of stores from which you're deleting the record. By default, Feature Store deletes the record from all of the stores that you're using for the <code>FeatureGroup</code>.</p>",
240+
"location":"querystring",
241+
"locationName":"TargetStores"
236242
}
237243
}
238244
},
239245
"FeatureGroupName":{
240246
"type":"string",
241247
"max":64,
242248
"min":1,
243-
"pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*"
249+
"pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}"
244250
},
245251
"FeatureName":{
246252
"type":"string",
247253
"max":64,
248254
"min":1,
249-
"pattern":"^[a-zA-Z0-9]([-_]*[a-zA-Z0-9])*"
255+
"pattern":"^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}"
250256
},
251257
"FeatureNames":{
252258
"type":"list",
@@ -280,7 +286,7 @@
280286
"members":{
281287
"FeatureGroupName":{
282288
"shape":"FeatureGroupName",
283-
"documentation":"<p>The name of the feature group in which you want to put the records.</p>",
289+
"documentation":"<p>The name of the feature group from which you want to retrieve a record.</p>",
284290
"location":"uri",
285291
"locationName":"FeatureGroupName"
286292
},
@@ -312,7 +318,7 @@
312318
"members":{
313319
"Message":{"shape":"Message"}
314320
},
315-
"documentation":"<p>An internal failure occurred. Try your request again. If the problem persists, contact AWS customer support.</p>",
321+
"documentation":"<p>An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support.</p>",
316322
"error":{"httpStatusCode":500},
317323
"exception":true,
318324
"fault":true,
@@ -338,6 +344,10 @@
338344
"Record":{
339345
"shape":"Record",
340346
"documentation":"<p>List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:</p> <ul> <li> <p>Use <code>GetRecord</code> to retrieve the latest record.</p> </li> <li> <p>Update the record returned from <code>GetRecord</code>. </p> </li> <li> <p>Use <code>PutRecord</code> to update feature values.</p> </li> </ul>"
347+
},
348+
"TargetStores":{
349+
"shape":"TargetStores",
350+
"documentation":"<p>A list of stores to which you're adding the record. By default, Feature Store adds the record to all of the stores that you're using for the <code>FeatureGroup</code>.</p>"
341351
}
342352
}
343353
},
@@ -372,6 +382,19 @@
372382
"fault":true,
373383
"synthetic":true
374384
},
385+
"TargetStore":{
386+
"type":"string",
387+
"enum":[
388+
"OnlineStore",
389+
"OfflineStore"
390+
]
391+
},
392+
"TargetStores":{
393+
"type":"list",
394+
"member":{"shape":"TargetStore"},
395+
"max":2,
396+
"min":1
397+
},
375398
"UnprocessedIdentifiers":{
376399
"type":"list",
377400
"member":{"shape":"BatchGetRecordIdentifier"},

0 commit comments

Comments
 (0)