Skip to content

Commit 1f7a244

Browse files
author
awstools
committed
feat(client-sagemaker-featurestore-runtime): Feature Store supports read/write of records with collection type features.
1 parent c720c1c commit 1f7a244

File tree

6 files changed

+51
-9
lines changed

6 files changed

+51
-9
lines changed

clients/client-sagemaker-featurestore-runtime/src/commands/BatchGetRecordCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ export interface BatchGetRecordCommandOutput extends BatchGetRecordResponse, __M
7272
* // Record: [ // Record // required
7373
* // { // FeatureValue
7474
* // FeatureName: "STRING_VALUE", // required
75-
* // ValueAsString: "STRING_VALUE", // required
75+
* // ValueAsString: "STRING_VALUE",
76+
* // ValueAsStringList: [ // ValueAsStringList
77+
* // "STRING_VALUE",
78+
* // ],
7679
* // },
7780
* // ],
7881
* // ExpiresAt: "STRING_VALUE",

clients/client-sagemaker-featurestore-runtime/src/commands/GetRecordCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export interface GetRecordCommandOutput extends GetRecordResponse, __MetadataBea
6464
* // Record: [ // Record
6565
* // { // FeatureValue
6666
* // FeatureName: "STRING_VALUE", // required
67-
* // ValueAsString: "STRING_VALUE", // required
67+
* // ValueAsString: "STRING_VALUE",
68+
* // ValueAsStringList: [ // ValueAsStringList
69+
* // "STRING_VALUE",
70+
* // ],
6871
* // },
6972
* // ],
7073
* // ExpiresAt: "STRING_VALUE",

clients/client-sagemaker-featurestore-runtime/src/commands/PutRecordCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export interface PutRecordCommandOutput extends __MetadataBearer {}
6868
* Record: [ // Record // required
6969
* { // FeatureValue
7070
* FeatureName: "STRING_VALUE", // required
71-
* ValueAsString: "STRING_VALUE", // required
71+
* ValueAsString: "STRING_VALUE",
72+
* ValueAsStringList: [ // ValueAsStringList
73+
* "STRING_VALUE",
74+
* ],
7275
* },
7376
* ],
7477
* TargetStores: [ // TargetStores

clients/client-sagemaker-featurestore-runtime/src/models/models_0.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,22 @@ export interface FeatureValue {
135135

136136
/**
137137
* @public
138-
* <p>The value associated with a feature, in string format. Note that features types can be
139-
* String, Integral, or Fractional. This value represents all three types as a string.</p>
138+
* <p>The value in string format associated with a feature. Used when your
139+
* <code>CollectionType</code> is <code>None</code>. Note that features types can be
140+
* <code>String</code>, <code>Integral</code>, or <code>Fractional</code>. This value
141+
* represents all three types as a string.</p>
140142
*/
141-
ValueAsString: string | undefined;
143+
ValueAsString?: string;
144+
145+
/**
146+
* @public
147+
* <p>The list of values in string format associated with a feature. Used when your
148+
* <code>CollectionType</code> is a <code>List</code>, <code>Set</code>, or
149+
* <code>Vector</code>. Note that features types can be <code>String</code>,
150+
* <code>Integral</code>, or <code>Fractional</code>. These values represents all three
151+
* types as a string.</p>
152+
*/
153+
ValueAsStringList?: string[];
142154
}
143155

144156
/**

clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ const de_ValidationErrorRes = async (parsedOutput: any, context: __SerdeContext)
517517

518518
// se_TtlDuration omitted.
519519

520+
// se_ValueAsStringList omitted.
521+
520522
// de_BatchGetRecordError omitted.
521523

522524
// de_BatchGetRecordErrors omitted.
@@ -537,6 +539,8 @@ const de_ValidationErrorRes = async (parsedOutput: any, context: __SerdeContext)
537539

538540
// de_UnprocessedIdentifiers omitted.
539541

542+
// de_ValueAsStringList omitted.
543+
540544
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
541545
httpStatusCode: output.statusCode,
542546
requestId:

codegen/sdk-codegen/aws-models/sagemaker-featurestore-runtime.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,13 @@
10751075
"ValueAsString": {
10761076
"target": "com.amazonaws.sagemakerfeaturestoreruntime#ValueAsString",
10771077
"traits": {
1078-
"smithy.api#documentation": "<p>The value associated with a feature, in string format. Note that features types can be\n String, Integral, or Fractional. This value represents all three types as a string.</p>",
1079-
"smithy.api#required": {}
1078+
"smithy.api#documentation": "<p>The value in string format associated with a feature. Used when your\n <code>CollectionType</code> is <code>None</code>. Note that features types can be\n <code>String</code>, <code>Integral</code>, or <code>Fractional</code>. This value\n represents all three types as a string.</p>"
1079+
}
1080+
},
1081+
"ValueAsStringList": {
1082+
"target": "com.amazonaws.sagemakerfeaturestoreruntime#ValueAsStringList",
1083+
"traits": {
1084+
"smithy.api#documentation": "<p>The list of values in string format associated with a feature. Used when your\n <code>CollectionType</code> is a <code>List</code>, <code>Set</code>, or\n <code>Vector</code>. Note that features types can be <code>String</code>,\n <code>Integral</code>, or <code>Fractional</code>. These values represents all three\n types as a string.</p>"
10801085
}
10811086
}
10821087
},
@@ -1440,6 +1445,18 @@
14401445
},
14411446
"smithy.api#pattern": ".*"
14421447
}
1448+
},
1449+
"com.amazonaws.sagemakerfeaturestoreruntime#ValueAsStringList": {
1450+
"type": "list",
1451+
"member": {
1452+
"target": "com.amazonaws.sagemakerfeaturestoreruntime#ValueAsString"
1453+
},
1454+
"traits": {
1455+
"smithy.api#length": {
1456+
"min": 0,
1457+
"max": 358400
1458+
}
1459+
}
14431460
}
14441461
}
1445-
}
1462+
}

0 commit comments

Comments
 (0)