@aws-sdk/client-wellarchitected 3.95.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,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.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
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-wellarchitected
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-wellarchitected
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-wellarchitected
@@ -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 WellArchitectedClient 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
  }
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -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 WellArchitectedClient = (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;
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
  export var getRuntimeConfig = function (config) {
18
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
19
21
  var defaultsMode = resolveDefaultsModeConfig(config);
20
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
@@ -854,9 +854,7 @@ export interface CreateWorkloadInput {
854
854
  /**
855
855
  * <p>The tags to be associated with the workload.</p>
856
856
  */
857
- Tags?: {
858
- [key: string]: string;
859
- };
857
+ Tags?: Record<string, string>;
860
858
  }
861
859
  export declare namespace CreateWorkloadInput {
862
860
  /**
@@ -1299,9 +1297,7 @@ export interface PillarReviewSummary {
1299
1297
  /**
1300
1298
  * <p>A map from risk names to the count of how questions have that rating.</p>
1301
1299
  */
1302
- RiskCounts?: {
1303
- [key: string]: number;
1304
- };
1300
+ RiskCounts?: Record<string, number>;
1305
1301
  }
1306
1302
  export declare namespace PillarReviewSummary {
1307
1303
  /**
@@ -1349,9 +1345,7 @@ export interface LensReview {
1349
1345
  /**
1350
1346
  * <p>A map from risk names to the count of how questions have that rating.</p>
1351
1347
  */
1352
- RiskCounts?: {
1353
- [key: string]: number;
1354
- };
1348
+ RiskCounts?: Record<string, number>;
1355
1349
  /**
1356
1350
  * <p>The token to use to retrieve the next set of results.</p>
1357
1351
  */
@@ -1829,9 +1823,7 @@ export interface Workload {
1829
1823
  /**
1830
1824
  * <p>A map from risk names to the count of how questions have that rating.</p>
1831
1825
  */
1832
- RiskCounts?: {
1833
- [key: string]: number;
1834
- };
1826
+ RiskCounts?: Record<string, number>;
1835
1827
  /**
1836
1828
  * <p>The priorities of the pillars, which are used to order items in the improvement plan.
1837
1829
  * Each pillar is represented by its <a>PillarReviewSummary$PillarId</a>.</p>
@@ -1852,9 +1844,7 @@ export interface Workload {
1852
1844
  /**
1853
1845
  * <p>The tags associated with the workload.</p>
1854
1846
  */
1855
- Tags?: {
1856
- [key: string]: string;
1857
- };
1847
+ Tags?: Record<string, string>;
1858
1848
  }
1859
1849
  export declare namespace Workload {
1860
1850
  /**
@@ -1966,9 +1956,7 @@ export interface ImportLensInput {
1966
1956
  /**
1967
1957
  * <p>Tags to associate to a lens.</p>
1968
1958
  */
1969
- Tags?: {
1970
- [key: string]: string;
1971
- };
1959
+ Tags?: Record<string, string>;
1972
1960
  }
1973
1961
  export declare namespace ImportLensInput {
1974
1962
  /**
@@ -2066,9 +2054,7 @@ export interface LensReviewSummary {
2066
2054
  /**
2067
2055
  * <p>A map from risk names to the count of how questions have that rating.</p>
2068
2056
  */
2069
- RiskCounts?: {
2070
- [key: string]: number;
2071
- };
2057
+ RiskCounts?: Record<string, number>;
2072
2058
  }
2073
2059
  export declare namespace LensReviewSummary {
2074
2060
  /**
@@ -2554,9 +2540,7 @@ export interface WorkloadSummary {
2554
2540
  /**
2555
2541
  * <p>A map from risk names to the count of how questions have that rating.</p>
2556
2542
  */
2557
- RiskCounts?: {
2558
- [key: string]: number;
2559
- };
2543
+ RiskCounts?: Record<string, number>;
2560
2544
  /**
2561
2545
  * <p>The improvement status for a workload.</p>
2562
2546
  */
@@ -2799,9 +2783,7 @@ export interface ListTagsForResourceOutput {
2799
2783
  /**
2800
2784
  * <p>The tags for the resource.</p>
2801
2785
  */
2802
- Tags?: {
2803
- [key: string]: string;
2804
- };
2786
+ Tags?: Record<string, string>;
2805
2787
  }
2806
2788
  export declare namespace ListTagsForResourceOutput {
2807
2789
  /**
@@ -2973,9 +2955,7 @@ export interface TagResourceInput {
2973
2955
  /**
2974
2956
  * <p>The tags for the resource.</p>
2975
2957
  */
2976
- Tags: {
2977
- [key: string]: string;
2978
- } | undefined;
2958
+ Tags: Record<string, string> | undefined;
2979
2959
  }
2980
2960
  export declare namespace TagResourceInput {
2981
2961
  /**
@@ -3042,9 +3022,7 @@ export interface UpdateAnswerInput {
3042
3022
  * <p>A list of choices to update on a question in your workload. The String key
3043
3023
  * corresponds to the choice ID to be updated.</p>
3044
3024
  */
3045
- ChoiceUpdates?: {
3046
- [key: string]: ChoiceUpdate;
3047
- };
3025
+ ChoiceUpdates?: Record<string, ChoiceUpdate>;
3048
3026
  /**
3049
3027
  * <p>The notes associated with the workload.</p>
3050
3028
  */
@@ -3112,9 +3090,7 @@ export interface UpdateLensReviewInput {
3112
3090
  /**
3113
3091
  * <p>List of pillar notes of a lens review in a workload.</p>
3114
3092
  */
3115
- PillarNotes?: {
3116
- [key: string]: string;
3117
- };
3093
+ PillarNotes?: Record<string, string>;
3118
3094
  }
3119
3095
  export declare namespace UpdateLensReviewInput {
3120
3096
  /**
@@ -386,9 +386,7 @@ export interface CreateWorkloadInput {
386
386
 
387
387
  ClientRequestToken?: string;
388
388
 
389
- Tags?: {
390
- [key: string]: string;
391
- };
389
+ Tags?: Record<string, string>;
392
390
  }
393
391
  export declare namespace CreateWorkloadInput {
394
392
 
@@ -620,9 +618,7 @@ export interface PillarReviewSummary {
620
618
 
621
619
  Notes?: string;
622
620
 
623
- RiskCounts?: {
624
- [key: string]: number;
625
- };
621
+ RiskCounts?: Record<string, number>;
626
622
  }
627
623
  export declare namespace PillarReviewSummary {
628
624
 
@@ -647,9 +643,7 @@ export interface LensReview {
647
643
 
648
644
  Notes?: string;
649
645
 
650
- RiskCounts?: {
651
- [key: string]: number;
652
- };
646
+ RiskCounts?: Record<string, number>;
653
647
 
654
648
  NextToken?: string;
655
649
  }
@@ -831,9 +825,7 @@ export interface Workload {
831
825
 
832
826
  ImprovementStatus?: WorkloadImprovementStatus | string;
833
827
 
834
- RiskCounts?: {
835
- [key: string]: number;
836
- };
828
+ RiskCounts?: Record<string, number>;
837
829
 
838
830
  PillarPriorities?: string[];
839
831
 
@@ -843,9 +835,7 @@ export interface Workload {
843
835
 
844
836
  ShareInvitationId?: string;
845
837
 
846
- Tags?: {
847
- [key: string]: string;
848
- };
838
+ Tags?: Record<string, string>;
849
839
  }
850
840
  export declare namespace Workload {
851
841
 
@@ -903,9 +893,7 @@ export interface ImportLensInput {
903
893
 
904
894
  ClientRequestToken?: string;
905
895
 
906
- Tags?: {
907
- [key: string]: string;
908
- };
896
+ Tags?: Record<string, string>;
909
897
  }
910
898
  export declare namespace ImportLensInput {
911
899
 
@@ -960,9 +948,7 @@ export interface LensReviewSummary {
960
948
 
961
949
  UpdatedAt?: Date;
962
950
 
963
- RiskCounts?: {
964
- [key: string]: number;
965
- };
951
+ RiskCounts?: Record<string, number>;
966
952
  }
967
953
  export declare namespace LensReviewSummary {
968
954
 
@@ -1225,9 +1211,7 @@ export interface WorkloadSummary {
1225
1211
 
1226
1212
  Lenses?: string[];
1227
1213
 
1228
- RiskCounts?: {
1229
- [key: string]: number;
1230
- };
1214
+ RiskCounts?: Record<string, number>;
1231
1215
 
1232
1216
  ImprovementStatus?: WorkloadImprovementStatus | string;
1233
1217
  }
@@ -1367,9 +1351,7 @@ export declare namespace ListTagsForResourceInput {
1367
1351
  }
1368
1352
  export interface ListTagsForResourceOutput {
1369
1353
 
1370
- Tags?: {
1371
- [key: string]: string;
1372
- };
1354
+ Tags?: Record<string, string>;
1373
1355
  }
1374
1356
  export declare namespace ListTagsForResourceOutput {
1375
1357
 
@@ -1467,9 +1449,7 @@ export interface TagResourceInput {
1467
1449
 
1468
1450
  WorkloadArn: string | undefined;
1469
1451
 
1470
- Tags: {
1471
- [key: string]: string;
1472
- } | undefined;
1452
+ Tags: Record<string, string> | undefined;
1473
1453
  }
1474
1454
  export declare namespace TagResourceInput {
1475
1455
 
@@ -1508,9 +1488,7 @@ export interface UpdateAnswerInput {
1508
1488
 
1509
1489
  SelectedChoices?: string[];
1510
1490
 
1511
- ChoiceUpdates?: {
1512
- [key: string]: ChoiceUpdate;
1513
- };
1491
+ ChoiceUpdates?: Record<string, ChoiceUpdate>;
1514
1492
 
1515
1493
  Notes?: string;
1516
1494
 
@@ -1546,9 +1524,7 @@ export interface UpdateLensReviewInput {
1546
1524
 
1547
1525
  LensNotes?: string;
1548
1526
 
1549
- PillarNotes?: {
1550
- [key: string]: string;
1551
- };
1527
+ PillarNotes?: Record<string, string>;
1552
1528
  }
1553
1529
  export declare namespace UpdateLensReviewInput {
1554
1530
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wellarchitected",
3
3
  "description": "AWS SDK for JavaScript Wellarchitected Client for Node.js, Browser and React Native",
4
- "version": "3.95.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.95.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.95.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",
@@ -35,15 +36,15 @@
35
36
  "@aws-sdk/node-config-provider": "3.80.0",
36
37
  "@aws-sdk/node-http-handler": "3.94.0",
37
38
  "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.85.0",
39
+ "@aws-sdk/smithy-client": "3.99.0",
39
40
  "@aws-sdk/types": "3.78.0",
40
41
  "@aws-sdk/url-parser": "3.78.0",
41
42
  "@aws-sdk/util-base64-browser": "3.58.0",
42
43
  "@aws-sdk/util-base64-node": "3.55.0",
43
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
45
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
47
48
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
49
  "@aws-sdk/util-user-agent-node": "3.80.0",
49
50
  "@aws-sdk/util-utf8-browser": "3.55.0",