@aws-sdk/client-personalize 3.100.0 → 3.105.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 CHANGED
@@ -3,6 +3,17 @@
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.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-personalize
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class PersonalizeClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var PersonalizeClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -145,9 +145,7 @@ export interface Algorithm {
145
145
  /**
146
146
  * <p>Specifies the default hyperparameters.</p>
147
147
  */
148
- defaultHyperParameters?: {
149
- [key: string]: string;
150
- };
148
+ defaultHyperParameters?: Record<string, string>;
151
149
  /**
152
150
  * <p>Specifies the default hyperparameters, their ranges, and whether they
153
151
  * are tunable. A tunable hyperparameter can
@@ -157,9 +155,7 @@ export interface Algorithm {
157
155
  /**
158
156
  * <p>Specifies the default maximum number of training jobs and parallel training jobs.</p>
159
157
  */
160
- defaultResourceConfig?: {
161
- [key: string]: string;
162
- };
158
+ defaultResourceConfig?: Record<string, string>;
163
159
  /**
164
160
  * <p>The training input mode.</p>
165
161
  */
@@ -193,9 +189,7 @@ export interface BatchInferenceJobConfig {
193
189
  * recommending items.
194
190
  * See <a href="https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html">User-Personalization</a>.</p>
195
191
  */
196
- itemExplorationConfig?: {
197
- [key: string]: string;
198
- };
192
+ itemExplorationConfig?: Record<string, string>;
199
193
  }
200
194
  export declare namespace BatchInferenceJobConfig {
201
195
  /**
@@ -497,9 +491,7 @@ export interface CampaignConfig {
497
491
  * recommending items. Provide <code>itemExplorationConfig</code> data only if your solution uses the
498
492
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html">User-Personalization</a> recipe.</p>
499
493
  */
500
- itemExplorationConfig?: {
501
- [key: string]: string;
502
- };
494
+ itemExplorationConfig?: Record<string, string>;
503
495
  }
504
496
  export declare namespace CampaignConfig {
505
497
  /**
@@ -865,9 +857,7 @@ export interface RecommenderConfig {
865
857
  * recommending items. Provide <code>itemExplorationConfig</code> data only if your recommenders generate personalized recommendations for a user
866
858
  * (not popular items or similar items).</p>
867
859
  */
868
- itemExplorationConfig?: {
869
- [key: string]: string;
870
- };
860
+ itemExplorationConfig?: Record<string, string>;
871
861
  /**
872
862
  * <p>Specifies the requested minimum provisioned recommendation requests per second that
873
863
  * Amazon Personalize will support.</p>
@@ -1191,15 +1181,11 @@ export interface SolutionConfig {
1191
1181
  /**
1192
1182
  * <p>Lists the hyperparameter names and ranges.</p>
1193
1183
  */
1194
- algorithmHyperParameters?: {
1195
- [key: string]: string;
1196
- };
1184
+ algorithmHyperParameters?: Record<string, string>;
1197
1185
  /**
1198
1186
  * <p>Lists the feature transformation parameters.</p>
1199
1187
  */
1200
- featureTransformationParameters?: {
1201
- [key: string]: string;
1202
- };
1188
+ featureTransformationParameters?: Record<string, string>;
1203
1189
  /**
1204
1190
  * <p>The <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_AutoMLConfig.html">AutoMLConfig</a> object containing a list of recipes to search
1205
1191
  * when AutoML is performed.</p>
@@ -2281,9 +2267,7 @@ export interface FeatureTransformation {
2281
2267
  /**
2282
2268
  * <p>Provides the default parameters for feature transformation.</p>
2283
2269
  */
2284
- defaultParameters?: {
2285
- [key: string]: string;
2286
- };
2270
+ defaultParameters?: Record<string, string>;
2287
2271
  /**
2288
2272
  * <p>The creation date and time (in Unix time) of the feature transformation.</p>
2289
2273
  */
@@ -2596,9 +2580,7 @@ export interface Recommender {
2596
2580
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/evaluating-recommenders.html">
2597
2581
  * Evaluating a recommender</a>.</p>
2598
2582
  */
2599
- modelMetrics?: {
2600
- [key: string]: number;
2601
- };
2583
+ modelMetrics?: Record<string, number>;
2602
2584
  }
2603
2585
  export declare namespace Recommender {
2604
2586
  /**
@@ -2855,9 +2837,7 @@ export interface TunedHPOParams {
2855
2837
  /**
2856
2838
  * <p>A list of the hyperparameter values of the best performing model.</p>
2857
2839
  */
2858
- algorithmHyperParameters?: {
2859
- [key: string]: string;
2860
- };
2840
+ algorithmHyperParameters?: Record<string, string>;
2861
2841
  }
2862
2842
  export declare namespace TunedHPOParams {
2863
2843
  /**
@@ -3013,9 +2993,7 @@ export interface GetSolutionMetricsResponse {
3013
2993
  * Evaluating a solution version with metrics
3014
2994
  * </a>.</p>
3015
2995
  */
3016
- metrics?: {
3017
- [key: string]: number;
3018
- };
2996
+ metrics?: Record<string, number>;
3019
2997
  }
3020
2998
  export declare namespace GetSolutionMetricsResponse {
3021
2999
  /**
@@ -76,15 +76,11 @@ export interface Algorithm {
76
76
 
77
77
  algorithmImage?: AlgorithmImage;
78
78
 
79
- defaultHyperParameters?: {
80
- [key: string]: string;
81
- };
79
+ defaultHyperParameters?: Record<string, string>;
82
80
 
83
81
  defaultHyperParameterRanges?: DefaultHyperParameterRanges;
84
82
 
85
- defaultResourceConfig?: {
86
- [key: string]: string;
87
- };
83
+ defaultResourceConfig?: Record<string, string>;
88
84
 
89
85
  trainingInputMode?: string;
90
86
 
@@ -101,9 +97,7 @@ export declare namespace Algorithm {
101
97
 
102
98
  export interface BatchInferenceJobConfig {
103
99
 
104
- itemExplorationConfig?: {
105
- [key: string]: string;
106
- };
100
+ itemExplorationConfig?: Record<string, string>;
107
101
  }
108
102
  export declare namespace BatchInferenceJobConfig {
109
103
 
@@ -274,9 +268,7 @@ export declare namespace CreateBatchSegmentJobResponse {
274
268
 
275
269
  export interface CampaignConfig {
276
270
 
277
- itemExplorationConfig?: {
278
- [key: string]: string;
279
- };
271
+ itemExplorationConfig?: Record<string, string>;
280
272
  }
281
273
  export declare namespace CampaignConfig {
282
274
 
@@ -480,9 +472,7 @@ export declare namespace CreateFilterResponse {
480
472
 
481
473
  export interface RecommenderConfig {
482
474
 
483
- itemExplorationConfig?: {
484
- [key: string]: string;
485
- };
475
+ itemExplorationConfig?: Record<string, string>;
486
476
 
487
477
  minRecommendationRequestsPerSecond?: number;
488
478
  }
@@ -656,13 +646,9 @@ export interface SolutionConfig {
656
646
 
657
647
  hpoConfig?: HPOConfig;
658
648
 
659
- algorithmHyperParameters?: {
660
- [key: string]: string;
661
- };
649
+ algorithmHyperParameters?: Record<string, string>;
662
650
 
663
- featureTransformationParameters?: {
664
- [key: string]: string;
665
- };
651
+ featureTransformationParameters?: Record<string, string>;
666
652
 
667
653
  autoMLConfig?: AutoMLConfig;
668
654
 
@@ -1184,9 +1170,7 @@ export interface FeatureTransformation {
1184
1170
 
1185
1171
  featureTransformationArn?: string;
1186
1172
 
1187
- defaultParameters?: {
1188
- [key: string]: string;
1189
- };
1173
+ defaultParameters?: Record<string, string>;
1190
1174
 
1191
1175
  creationDateTime?: Date;
1192
1176
 
@@ -1334,9 +1318,7 @@ export interface Recommender {
1334
1318
 
1335
1319
  latestRecommenderUpdate?: RecommenderUpdateSummary;
1336
1320
 
1337
- modelMetrics?: {
1338
- [key: string]: number;
1339
- };
1321
+ modelMetrics?: Record<string, number>;
1340
1322
  }
1341
1323
  export declare namespace Recommender {
1342
1324
 
@@ -1471,9 +1453,7 @@ export declare namespace DescribeSolutionVersionRequest {
1471
1453
 
1472
1454
  export interface TunedHPOParams {
1473
1455
 
1474
- algorithmHyperParameters?: {
1475
- [key: string]: string;
1476
- };
1456
+ algorithmHyperParameters?: Record<string, string>;
1477
1457
  }
1478
1458
  export declare namespace TunedHPOParams {
1479
1459
 
@@ -1536,9 +1516,7 @@ export interface GetSolutionMetricsResponse {
1536
1516
 
1537
1517
  solutionVersionArn?: string;
1538
1518
 
1539
- metrics?: {
1540
- [key: string]: number;
1541
- };
1519
+ metrics?: Record<string, number>;
1542
1520
  }
1543
1521
  export declare namespace GetSolutionMetricsResponse {
1544
1522
 
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.100.0",
4
+ "version": "3.105.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,15 +18,16 @@
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.100.0",
21
+ "@aws-sdk/client-sts": "3.105.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.100.0",
23
+ "@aws-sdk/credential-provider-node": "3.105.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",
27
27
  "@aws-sdk/middleware-content-length": "3.78.0",
28
28
  "@aws-sdk/middleware-host-header": "3.78.0",
29
29
  "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
30
31
  "@aws-sdk/middleware-retry": "3.80.0",
31
32
  "@aws-sdk/middleware-serde": "3.78.0",
32
33
  "@aws-sdk/middleware-signing": "3.78.0",