@aws-sdk/client-personalize 3.92.0 → 3.97.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +6 -0
- package/dist-es/protocols/Aws_json1_1.js +15 -8
- package/dist-types/Personalize.d.ts +8 -0
- package/dist-types/commands/CreateRecommenderCommand.d.ts +3 -0
- package/dist-types/commands/DescribeRecommenderCommand.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +22 -1
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.97.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.96.0...v3.97.0) (2022-05-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-personalize:** Adding modelMetrics as part of DescribeRecommender API response for Personalize. ([16f4208](https://github.com/aws/aws-sdk-js-v3/commit/16f42083d78a7680400c8d6f8586fdb2142adc70))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
@@ -1089,6 +1089,9 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
|
|
|
1089
1089
|
case "ResourceAlreadyExistsException":
|
|
1090
1090
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1091
1091
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1092
|
+
case "ResourceInUseException":
|
|
1093
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1094
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1092
1095
|
case "ResourceNotFoundException":
|
|
1093
1096
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1094
1097
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -5082,6 +5085,9 @@ const deserializeAws_json1_1Recommender = (output, context) => {
|
|
|
5082
5085
|
latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
|
|
5083
5086
|
? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
|
|
5084
5087
|
: undefined,
|
|
5088
|
+
modelMetrics: output.modelMetrics !== undefined && output.modelMetrics !== null
|
|
5089
|
+
? deserializeAws_json1_1Metrics(output.modelMetrics, context)
|
|
5090
|
+
: undefined,
|
|
5085
5091
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5086
5092
|
recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
|
|
5087
5093
|
recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
|
|
@@ -1320,23 +1320,27 @@ var deserializeAws_json1_1CreateRecommenderCommandError = function (output, cont
|
|
|
1320
1320
|
case "com.amazonaws.personalize#LimitExceededException": return [3, 4];
|
|
1321
1321
|
case "ResourceAlreadyExistsException": return [3, 6];
|
|
1322
1322
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException": return [3, 6];
|
|
1323
|
-
case "
|
|
1324
|
-
case "com.amazonaws.personalize#
|
|
1325
|
-
case "
|
|
1326
|
-
case "com.amazonaws.personalize#
|
|
1323
|
+
case "ResourceInUseException": return [3, 8];
|
|
1324
|
+
case "com.amazonaws.personalize#ResourceInUseException": return [3, 8];
|
|
1325
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1326
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 10];
|
|
1327
|
+
case "TooManyTagsException": return [3, 12];
|
|
1328
|
+
case "com.amazonaws.personalize#TooManyTagsException": return [3, 12];
|
|
1327
1329
|
}
|
|
1328
|
-
return [3,
|
|
1330
|
+
return [3, 14];
|
|
1329
1331
|
case 2: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1330
1332
|
case 3: throw _d.sent();
|
|
1331
1333
|
case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1332
1334
|
case 5: throw _d.sent();
|
|
1333
1335
|
case 6: return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1334
1336
|
case 7: throw _d.sent();
|
|
1335
|
-
case 8: return [4,
|
|
1337
|
+
case 8: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1336
1338
|
case 9: throw _d.sent();
|
|
1337
|
-
case 10: return [4,
|
|
1339
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1338
1340
|
case 11: throw _d.sent();
|
|
1339
|
-
case 12:
|
|
1341
|
+
case 12: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1342
|
+
case 13: throw _d.sent();
|
|
1343
|
+
case 14:
|
|
1340
1344
|
parsedBody = parsedOutput.body;
|
|
1341
1345
|
response = new __BaseException({
|
|
1342
1346
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -5849,6 +5853,9 @@ var deserializeAws_json1_1Recommender = function (output, context) {
|
|
|
5849
5853
|
latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
|
|
5850
5854
|
? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
|
|
5851
5855
|
: undefined,
|
|
5856
|
+
modelMetrics: output.modelMetrics !== undefined && output.modelMetrics !== null
|
|
5857
|
+
? deserializeAws_json1_1Metrics(output.modelMetrics, context)
|
|
5858
|
+
: undefined,
|
|
5852
5859
|
name: __expectString(output.name),
|
|
5853
5860
|
recipeArn: __expectString(output.recipeArn),
|
|
5854
5861
|
recommenderArn: __expectString(output.recommenderArn),
|
|
@@ -471,6 +471,9 @@ export declare class Personalize extends PersonalizeClient {
|
|
|
471
471
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
472
472
|
* </li>
|
|
473
473
|
* <li>
|
|
474
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
475
|
+
* </li>
|
|
476
|
+
* <li>
|
|
474
477
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
475
478
|
* </li>
|
|
476
479
|
* </ul>
|
|
@@ -886,11 +889,16 @@ export declare class Personalize extends PersonalizeClient {
|
|
|
886
889
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
887
890
|
* </li>
|
|
888
891
|
* <li>
|
|
892
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
893
|
+
* </li>
|
|
894
|
+
* <li>
|
|
889
895
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
890
896
|
* </li>
|
|
891
897
|
* </ul>
|
|
892
898
|
* <p>When the <code>status</code> is <code>CREATE FAILED</code>, the response includes the
|
|
893
899
|
* <code>failureReason</code> key, which describes why.</p>
|
|
900
|
+
* <p>The <code>modelMetrics</code> key is null when
|
|
901
|
+
* the recommender is being created or deleted.</p>
|
|
894
902
|
* <p>For more information on recommenders, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateRecommender.html">CreateRecommender</a>.</p>
|
|
895
903
|
*/
|
|
896
904
|
describeRecommender(args: DescribeRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRecommenderCommandOutput>;
|
|
@@ -47,6 +47,9 @@ export interface CreateRecommenderCommandOutput extends CreateRecommenderRespons
|
|
|
47
47
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
48
48
|
* </li>
|
|
49
49
|
* <li>
|
|
50
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
51
|
+
* </li>
|
|
52
|
+
* <li>
|
|
50
53
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
51
54
|
* </li>
|
|
52
55
|
* </ul>
|
|
@@ -14,11 +14,16 @@ export interface DescribeRecommenderCommandOutput extends DescribeRecommenderRes
|
|
|
14
14
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
15
15
|
* </li>
|
|
16
16
|
* <li>
|
|
17
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
18
|
+
* </li>
|
|
19
|
+
* <li>
|
|
17
20
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
18
21
|
* </li>
|
|
19
22
|
* </ul>
|
|
20
23
|
* <p>When the <code>status</code> is <code>CREATE FAILED</code>, the response includes the
|
|
21
24
|
* <code>failureReason</code> key, which describes why.</p>
|
|
25
|
+
* <p>The <code>modelMetrics</code> key is null when
|
|
26
|
+
* the recommender is being created or deleted.</p>
|
|
22
27
|
* <p>For more information on recommenders, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateRecommender.html">CreateRecommender</a>.</p>
|
|
23
28
|
* @example
|
|
24
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -2513,6 +2513,9 @@ export interface RecommenderUpdateSummary {
|
|
|
2513
2513
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
2514
2514
|
* </li>
|
|
2515
2515
|
* <li>
|
|
2516
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
2517
|
+
* </li>
|
|
2518
|
+
* <li>
|
|
2516
2519
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
2517
2520
|
* </li>
|
|
2518
2521
|
* </ul>
|
|
@@ -2571,6 +2574,9 @@ export interface Recommender {
|
|
|
2571
2574
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
2572
2575
|
* </li>
|
|
2573
2576
|
* <li>
|
|
2577
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
2578
|
+
* </li>
|
|
2579
|
+
* <li>
|
|
2574
2580
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
2575
2581
|
* </li>
|
|
2576
2582
|
* </ul>
|
|
@@ -2584,6 +2590,15 @@ export interface Recommender {
|
|
|
2584
2590
|
* <p>Provides a summary of the latest updates to the recommender. </p>
|
|
2585
2591
|
*/
|
|
2586
2592
|
latestRecommenderUpdate?: RecommenderUpdateSummary;
|
|
2593
|
+
/**
|
|
2594
|
+
* <p>Provides evaluation metrics that help you determine the performance
|
|
2595
|
+
* of a recommender. For more information, see
|
|
2596
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/evaluating-recommenders.html">
|
|
2597
|
+
* Evaluating a recommender</a>.</p>
|
|
2598
|
+
*/
|
|
2599
|
+
modelMetrics?: {
|
|
2600
|
+
[key: string]: number;
|
|
2601
|
+
};
|
|
2587
2602
|
}
|
|
2588
2603
|
export declare namespace Recommender {
|
|
2589
2604
|
/**
|
|
@@ -2993,7 +3008,10 @@ export interface GetSolutionMetricsResponse {
|
|
|
2993
3008
|
*/
|
|
2994
3009
|
solutionVersionArn?: string;
|
|
2995
3010
|
/**
|
|
2996
|
-
* <p>The metrics for the solution version
|
|
3011
|
+
* <p>The metrics for the solution version. For more information, see
|
|
3012
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/working-with-training-metrics.html">
|
|
3013
|
+
* Evaluating a solution version with metrics
|
|
3014
|
+
* </a>.</p>
|
|
2997
3015
|
*/
|
|
2998
3016
|
metrics?: {
|
|
2999
3017
|
[key: string]: number;
|
|
@@ -3914,6 +3932,9 @@ export interface RecommenderSummary {
|
|
|
3914
3932
|
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
3915
3933
|
* </li>
|
|
3916
3934
|
* <li>
|
|
3935
|
+
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
3936
|
+
* </li>
|
|
3937
|
+
* <li>
|
|
3917
3938
|
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
3918
3939
|
* </li>
|
|
3919
3940
|
* </ul>
|
|
@@ -1333,6 +1333,10 @@ export interface Recommender {
|
|
|
1333
1333
|
failureReason?: string;
|
|
1334
1334
|
|
|
1335
1335
|
latestRecommenderUpdate?: RecommenderUpdateSummary;
|
|
1336
|
+
|
|
1337
|
+
modelMetrics?: {
|
|
1338
|
+
[key: string]: number;
|
|
1339
|
+
};
|
|
1336
1340
|
}
|
|
1337
1341
|
export declare namespace Recommender {
|
|
1338
1342
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.97.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.95.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.95.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.78.0",
|
|
34
34
|
"@aws-sdk/middleware-user-agent": "3.78.0",
|
|
35
35
|
"@aws-sdk/node-config-provider": "3.80.0",
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.94.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.78.0",
|
|
38
38
|
"@aws-sdk/smithy-client": "3.85.0",
|
|
39
39
|
"@aws-sdk/types": "3.78.0",
|