@aws-sdk/client-trustedadvisor 3.649.0 → 3.650.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/dist-cjs/index.js CHANGED
@@ -1103,9 +1103,7 @@ var _st = "status";
1103
1103
  var _t = "type";
1104
1104
 
1105
1105
  // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
1106
- var _BatchUpdateRecommendationResourceExclusionCommand = class _BatchUpdateRecommendationResourceExclusionCommand extends import_smithy_client.Command.classBuilder().ep({
1107
- ...commonParams
1108
- }).m(function(Command, cs, config, o) {
1106
+ var _BatchUpdateRecommendationResourceExclusionCommand = class _BatchUpdateRecommendationResourceExclusionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1109
1107
  return [
1110
1108
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1111
1109
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1119,9 +1117,7 @@ var BatchUpdateRecommendationResourceExclusionCommand = _BatchUpdateRecommendati
1119
1117
 
1120
1118
 
1121
1119
 
1122
- var _GetOrganizationRecommendationCommand = class _GetOrganizationRecommendationCommand extends import_smithy_client.Command.classBuilder().ep({
1123
- ...commonParams
1124
- }).m(function(Command, cs, config, o) {
1120
+ var _GetOrganizationRecommendationCommand = class _GetOrganizationRecommendationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1125
1121
  return [
1126
1122
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1127
1123
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1135,9 +1131,7 @@ var GetOrganizationRecommendationCommand = _GetOrganizationRecommendationCommand
1135
1131
 
1136
1132
 
1137
1133
 
1138
- var _GetRecommendationCommand = class _GetRecommendationCommand extends import_smithy_client.Command.classBuilder().ep({
1139
- ...commonParams
1140
- }).m(function(Command, cs, config, o) {
1134
+ var _GetRecommendationCommand = class _GetRecommendationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1141
1135
  return [
1142
1136
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1143
1137
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1151,9 +1145,7 @@ var GetRecommendationCommand = _GetRecommendationCommand;
1151
1145
 
1152
1146
 
1153
1147
 
1154
- var _ListChecksCommand = class _ListChecksCommand extends import_smithy_client.Command.classBuilder().ep({
1155
- ...commonParams
1156
- }).m(function(Command, cs, config, o) {
1148
+ var _ListChecksCommand = class _ListChecksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1157
1149
  return [
1158
1150
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1159
1151
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1167,9 +1159,7 @@ var ListChecksCommand = _ListChecksCommand;
1167
1159
 
1168
1160
 
1169
1161
 
1170
- var _ListOrganizationRecommendationAccountsCommand = class _ListOrganizationRecommendationAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
1171
- ...commonParams
1172
- }).m(function(Command, cs, config, o) {
1162
+ var _ListOrganizationRecommendationAccountsCommand = class _ListOrganizationRecommendationAccountsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1173
1163
  return [
1174
1164
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1175
1165
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1183,9 +1173,7 @@ var ListOrganizationRecommendationAccountsCommand = _ListOrganizationRecommendat
1183
1173
 
1184
1174
 
1185
1175
 
1186
- var _ListOrganizationRecommendationResourcesCommand = class _ListOrganizationRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1187
- ...commonParams
1188
- }).m(function(Command, cs, config, o) {
1176
+ var _ListOrganizationRecommendationResourcesCommand = class _ListOrganizationRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1189
1177
  return [
1190
1178
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1191
1179
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1199,9 +1187,7 @@ var ListOrganizationRecommendationResourcesCommand = _ListOrganizationRecommenda
1199
1187
 
1200
1188
 
1201
1189
 
1202
- var _ListOrganizationRecommendationsCommand = class _ListOrganizationRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
1203
- ...commonParams
1204
- }).m(function(Command, cs, config, o) {
1190
+ var _ListOrganizationRecommendationsCommand = class _ListOrganizationRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1205
1191
  return [
1206
1192
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1207
1193
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1215,9 +1201,7 @@ var ListOrganizationRecommendationsCommand = _ListOrganizationRecommendationsCom
1215
1201
 
1216
1202
 
1217
1203
 
1218
- var _ListRecommendationResourcesCommand = class _ListRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1219
- ...commonParams
1220
- }).m(function(Command, cs, config, o) {
1204
+ var _ListRecommendationResourcesCommand = class _ListRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1221
1205
  return [
1222
1206
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1223
1207
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1231,9 +1215,7 @@ var ListRecommendationResourcesCommand = _ListRecommendationResourcesCommand;
1231
1215
 
1232
1216
 
1233
1217
 
1234
- var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
1235
- ...commonParams
1236
- }).m(function(Command, cs, config, o) {
1218
+ var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1237
1219
  return [
1238
1220
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1239
1221
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1247,9 +1229,7 @@ var ListRecommendationsCommand = _ListRecommendationsCommand;
1247
1229
 
1248
1230
 
1249
1231
 
1250
- var _UpdateOrganizationRecommendationLifecycleCommand = class _UpdateOrganizationRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep({
1251
- ...commonParams
1252
- }).m(function(Command, cs, config, o) {
1232
+ var _UpdateOrganizationRecommendationLifecycleCommand = class _UpdateOrganizationRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1253
1233
  return [
1254
1234
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1255
1235
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1263,9 +1243,7 @@ var UpdateOrganizationRecommendationLifecycleCommand = _UpdateOrganizationRecomm
1263
1243
 
1264
1244
 
1265
1245
 
1266
- var _UpdateRecommendationLifecycleCommand = class _UpdateRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep({
1267
- ...commonParams
1268
- }).m(function(Command, cs, config, o) {
1246
+ var _UpdateRecommendationLifecycleCommand = class _UpdateRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1269
1247
  return [
1270
1248
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1271
1249
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_BatchUpdateRecommendationResourceExclusionCommand, se_BatchUpdateRec
6
6
  export { $Command };
7
7
  export class BatchUpdateRecommendationResourceExclusionCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetOrganizationRecommendationCommand, se_GetOrganizationRecommendati
7
7
  export { $Command };
8
8
  export class GetOrganizationRecommendationCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetRecommendationCommand, se_GetRecommendationCommand } from "../pro
7
7
  export { $Command };
8
8
  export class GetRecommendationCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListChecksCommand, se_ListChecksCommand } from "../protocols/Aws_res
6
6
  export { $Command };
7
7
  export class ListChecksCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_ListOrganizationRecommendationAccountsCommand, se_ListOrganizationRe
7
7
  export { $Command };
8
8
  export class ListOrganizationRecommendationAccountsCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListOrganizationRecommendationResourcesCommand, se_ListOrganizationR
6
6
  export { $Command };
7
7
  export class ListOrganizationRecommendationResourcesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListOrganizationRecommendationsCommand, se_ListOrganizationRecommend
6
6
  export { $Command };
7
7
  export class ListOrganizationRecommendationsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListRecommendationResourcesCommand, se_ListRecommendationResourcesCo
6
6
  export { $Command };
7
7
  export class ListRecommendationResourcesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListRecommendationsCommand, se_ListRecommendationsCommand } from "..
6
6
  export { $Command };
7
7
  export class ListRecommendationsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_UpdateOrganizationRecommendationLifecycleCommand, se_UpdateOrganizat
7
7
  export { $Command };
8
8
  export class UpdateOrganizationRecommendationLifecycleCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_UpdateRecommendationLifecycleCommand, se_UpdateRecommendationLifecyc
7
7
  export { $Command };
8
8
  export class UpdateRecommendationLifecycleCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-trustedadvisor",
3
3
  "description": "AWS SDK for JavaScript Trustedadvisor Client for Node.js, Browser and React Native",
4
- "version": "3.649.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-trustedadvisor",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.649.0",
24
- "@aws-sdk/client-sts": "3.649.0",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
25
  "@aws-sdk/core": "3.649.0",
26
- "@aws-sdk/credential-provider-node": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
27
  "@aws-sdk/middleware-host-header": "3.649.0",
28
28
  "@aws-sdk/middleware-logger": "3.649.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.649.0",
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.4"
9
- }
10
- ]
11
- }