@aws-sdk/client-personalize 3.47.2 → 3.51.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 +35 -0
- package/dist-cjs/protocols/Aws_json1_1.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +5 -1
- package/dist-types/Personalize.d.ts +23 -0
- package/dist-types/commands/CreateRecommenderCommand.d.ts +23 -0
- package/dist-types/models/models_0.d.ts +7 -2
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +39 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 02/04/2022 ([#3280](https://github.com/aws/aws-sdk-js-v3/issues/3280)) ([63d7f8c](https://github.com/aws/aws-sdk-js-v3/commit/63d7f8c539e0fd782fa5bf997bd6ac2730e4bfda))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-personalize
|
|
@@ -4558,6 +4558,10 @@ const serializeAws_json1_1RecommenderConfig = (input, context) => {
|
|
|
4558
4558
|
input.itemExplorationConfig !== null && {
|
|
4559
4559
|
itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
|
|
4560
4560
|
}),
|
|
4561
|
+
...(input.minRecommendationRequestsPerSecond !== undefined &&
|
|
4562
|
+
input.minRecommendationRequestsPerSecond !== null && {
|
|
4563
|
+
minRecommendationRequestsPerSecond: input.minRecommendationRequestsPerSecond,
|
|
4564
|
+
}),
|
|
4561
4565
|
};
|
|
4562
4566
|
};
|
|
4563
4567
|
const serializeAws_json1_1S3DataConfig = (input, context) => {
|
|
@@ -5783,6 +5787,7 @@ const deserializeAws_json1_1RecommenderConfig = (output, context) => {
|
|
|
5783
5787
|
itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
|
|
5784
5788
|
? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
|
|
5785
5789
|
: undefined,
|
|
5790
|
+
minRecommendationRequestsPerSecond: smithy_client_1.expectInt32(output.minRecommendationRequestsPerSecond),
|
|
5786
5791
|
};
|
|
5787
5792
|
};
|
|
5788
5793
|
const deserializeAws_json1_1Recommenders = (output, context) => {
|
|
@@ -4889,9 +4889,12 @@ var serializeAws_json1_1OptimizationObjective = function (input, context) {
|
|
|
4889
4889
|
input.objectiveSensitivity !== null && { objectiveSensitivity: input.objectiveSensitivity }));
|
|
4890
4890
|
};
|
|
4891
4891
|
var serializeAws_json1_1RecommenderConfig = function (input, context) {
|
|
4892
|
-
return __assign({}, (input.itemExplorationConfig !== undefined &&
|
|
4892
|
+
return __assign(__assign({}, (input.itemExplorationConfig !== undefined &&
|
|
4893
4893
|
input.itemExplorationConfig !== null && {
|
|
4894
4894
|
itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
|
|
4895
|
+
})), (input.minRecommendationRequestsPerSecond !== undefined &&
|
|
4896
|
+
input.minRecommendationRequestsPerSecond !== null && {
|
|
4897
|
+
minRecommendationRequestsPerSecond: input.minRecommendationRequestsPerSecond,
|
|
4895
4898
|
}));
|
|
4896
4899
|
};
|
|
4897
4900
|
var serializeAws_json1_1S3DataConfig = function (input, context) {
|
|
@@ -6093,6 +6096,7 @@ var deserializeAws_json1_1RecommenderConfig = function (output, context) {
|
|
|
6093
6096
|
itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
|
|
6094
6097
|
? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
|
|
6095
6098
|
: undefined,
|
|
6099
|
+
minRecommendationRequestsPerSecond: __expectInt32(output.minRecommendationRequestsPerSecond),
|
|
6096
6100
|
};
|
|
6097
6101
|
};
|
|
6098
6102
|
var deserializeAws_json1_1Recommenders = function (output, context) {
|
|
@@ -428,7 +428,30 @@ export declare class Personalize extends PersonalizeClient {
|
|
|
428
428
|
* request.
|
|
429
429
|
* </p>
|
|
430
430
|
*
|
|
431
|
+
* <p>
|
|
432
|
+
* <b>Minimum recommendation requests per second</b>
|
|
433
|
+
* </p>
|
|
431
434
|
*
|
|
435
|
+
* <p>When you create a recommender, you can configure the recommender's minimum recommendation requests per second. The minimum recommendation requests per second
|
|
436
|
+
* (<code>minRecommendationRequestsPerSecond</code>) specifies the baseline recommendation request throughput provisioned by
|
|
437
|
+
* Amazon Personalize. The default minRecommendationRequestsPerSecond is <code>1</code>. A recommendation request is a single <code>GetRecommendations</code> operation.
|
|
438
|
+
* Request throughput is measured in requests per second and Amazon Personalize uses your requests per second to derive
|
|
439
|
+
* your requests per hour and the price of your recommender usage.
|
|
440
|
+
* </p>
|
|
441
|
+
* <p>
|
|
442
|
+
* If your requests per second increases beyond
|
|
443
|
+
* <code>minRecommendationRequestsPerSecond</code>, Amazon Personalize auto-scales the provisioned capacity up and down,
|
|
444
|
+
* but never below <code>minRecommendationRequestsPerSecond</code>.
|
|
445
|
+
* There's a short time delay while the capacity is increased that might cause loss of
|
|
446
|
+
* requests.</p>
|
|
447
|
+
* <p>
|
|
448
|
+
* Your bill is the greater of either the minimum requests per hour (based on minRecommendationRequestsPerSecond)
|
|
449
|
+
* or the actual number of requests. The actual request throughput used is calculated as the average requests/second within a one-hour window.
|
|
450
|
+
*
|
|
451
|
+
* We recommend starting with the default <code>minRecommendationRequestsPerSecond</code>, track
|
|
452
|
+
* your usage using Amazon CloudWatch metrics, and then increase the <code>minRecommendationRequestsPerSecond</code>
|
|
453
|
+
* as necessary.
|
|
454
|
+
* </p>
|
|
432
455
|
*
|
|
433
456
|
* <p>
|
|
434
457
|
* <b>Status</b>
|
|
@@ -13,7 +13,30 @@ export interface CreateRecommenderCommandOutput extends CreateRecommenderRespons
|
|
|
13
13
|
* request.
|
|
14
14
|
* </p>
|
|
15
15
|
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <b>Minimum recommendation requests per second</b>
|
|
18
|
+
* </p>
|
|
19
|
+
*
|
|
20
|
+
* <p>When you create a recommender, you can configure the recommender's minimum recommendation requests per second. The minimum recommendation requests per second
|
|
21
|
+
* (<code>minRecommendationRequestsPerSecond</code>) specifies the baseline recommendation request throughput provisioned by
|
|
22
|
+
* Amazon Personalize. The default minRecommendationRequestsPerSecond is <code>1</code>. A recommendation request is a single <code>GetRecommendations</code> operation.
|
|
23
|
+
* Request throughput is measured in requests per second and Amazon Personalize uses your requests per second to derive
|
|
24
|
+
* your requests per hour and the price of your recommender usage.
|
|
25
|
+
* </p>
|
|
26
|
+
* <p>
|
|
27
|
+
* If your requests per second increases beyond
|
|
28
|
+
* <code>minRecommendationRequestsPerSecond</code>, Amazon Personalize auto-scales the provisioned capacity up and down,
|
|
29
|
+
* but never below <code>minRecommendationRequestsPerSecond</code>.
|
|
30
|
+
* There's a short time delay while the capacity is increased that might cause loss of
|
|
31
|
+
* requests.</p>
|
|
32
|
+
* <p>
|
|
33
|
+
* Your bill is the greater of either the minimum requests per hour (based on minRecommendationRequestsPerSecond)
|
|
34
|
+
* or the actual number of requests. The actual request throughput used is calculated as the average requests/second within a one-hour window.
|
|
16
35
|
*
|
|
36
|
+
* We recommend starting with the default <code>minRecommendationRequestsPerSecond</code>, track
|
|
37
|
+
* your usage using Amazon CloudWatch metrics, and then increase the <code>minRecommendationRequestsPerSecond</code>
|
|
38
|
+
* as necessary.
|
|
39
|
+
* </p>
|
|
17
40
|
*
|
|
18
41
|
* <p>
|
|
19
42
|
* <b>Status</b>
|
|
@@ -212,7 +212,7 @@ export interface S3DataConfig {
|
|
|
212
212
|
path: string | undefined;
|
|
213
213
|
/**
|
|
214
214
|
* <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that Amazon Personalize uses to
|
|
215
|
-
* encrypt or decrypt the input and output files
|
|
215
|
+
* encrypt or decrypt the input and output files.</p>
|
|
216
216
|
*/
|
|
217
217
|
kmsKeyArn?: string;
|
|
218
218
|
}
|
|
@@ -784,6 +784,11 @@ export interface RecommenderConfig {
|
|
|
784
784
|
itemExplorationConfig?: {
|
|
785
785
|
[key: string]: string;
|
|
786
786
|
};
|
|
787
|
+
/**
|
|
788
|
+
* <p>Specifies the requested minimum provisioned recommendation requests per second that
|
|
789
|
+
* Amazon Personalize will support.</p>
|
|
790
|
+
*/
|
|
791
|
+
minRecommendationRequestsPerSecond?: number;
|
|
787
792
|
}
|
|
788
793
|
export declare namespace RecommenderConfig {
|
|
789
794
|
/**
|
|
@@ -2389,7 +2394,7 @@ export declare namespace DescribeRecommenderRequest {
|
|
|
2389
2394
|
}
|
|
2390
2395
|
/**
|
|
2391
2396
|
* <p>Provides a summary of the properties of a recommender update. For a complete listing, call the
|
|
2392
|
-
*
|
|
2397
|
+
* DescribeRecommender API operation.</p>
|
|
2393
2398
|
*/
|
|
2394
2399
|
export interface RecommenderUpdateSummary {
|
|
2395
2400
|
/**
|
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.51.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,41 +18,47 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.51.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.51.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.51.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.50.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.50.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.50.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.50.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.50.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.50.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.51.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.50.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.50.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.50.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.50.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.51.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.50.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.50.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.50.0",
|
|
39
|
+
"@aws-sdk/types": "3.50.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.50.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.49.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.49.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.49.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.49.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.50.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.51.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.50.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.51.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.49.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.49.0",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
-
"@
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.49.0",
|
|
55
|
+
"@tsconfig/recommended": "1.0.1",
|
|
56
|
+
"@types/node": "^12.7.5",
|
|
57
|
+
"concurrently": "7.0.0",
|
|
58
|
+
"downlevel-dts": "0.7.0",
|
|
59
|
+
"rimraf": "3.0.2",
|
|
60
|
+
"typedoc": "0.19.2",
|
|
61
|
+
"typescript": "~4.3.5"
|
|
56
62
|
},
|
|
57
63
|
"engines": {
|
|
58
64
|
"node": ">=12.0.0"
|