@aws-sdk/client-migrationhub-config 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
@@ -542,9 +542,7 @@ function sharedHeaders(operation) {
542
542
  __name(sharedHeaders, "sharedHeaders");
543
543
 
544
544
  // src/commands/CreateHomeRegionControlCommand.ts
545
- var _CreateHomeRegionControlCommand = class _CreateHomeRegionControlCommand extends import_smithy_client.Command.classBuilder().ep({
546
- ...commonParams
547
- }).m(function(Command, cs, config, o) {
545
+ var _CreateHomeRegionControlCommand = class _CreateHomeRegionControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
548
546
  return [
549
547
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
550
548
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -558,9 +556,7 @@ var CreateHomeRegionControlCommand = _CreateHomeRegionControlCommand;
558
556
 
559
557
 
560
558
 
561
- var _DeleteHomeRegionControlCommand = class _DeleteHomeRegionControlCommand extends import_smithy_client.Command.classBuilder().ep({
562
- ...commonParams
563
- }).m(function(Command, cs, config, o) {
559
+ var _DeleteHomeRegionControlCommand = class _DeleteHomeRegionControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
564
560
  return [
565
561
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
566
562
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -574,9 +570,7 @@ var DeleteHomeRegionControlCommand = _DeleteHomeRegionControlCommand;
574
570
 
575
571
 
576
572
 
577
- var _DescribeHomeRegionControlsCommand = class _DescribeHomeRegionControlsCommand extends import_smithy_client.Command.classBuilder().ep({
578
- ...commonParams
579
- }).m(function(Command, cs, config, o) {
573
+ var _DescribeHomeRegionControlsCommand = class _DescribeHomeRegionControlsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
580
574
  return [
581
575
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
582
576
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -590,9 +584,7 @@ var DescribeHomeRegionControlsCommand = _DescribeHomeRegionControlsCommand;
590
584
 
591
585
 
592
586
 
593
- var _GetHomeRegionCommand = class _GetHomeRegionCommand extends import_smithy_client.Command.classBuilder().ep({
594
- ...commonParams
595
- }).m(function(Command, cs, config, o) {
587
+ var _GetHomeRegionCommand = class _GetHomeRegionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
596
588
  return [
597
589
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
598
590
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_CreateHomeRegionControlCommand, se_CreateHomeRegionControlCommand }
6
6
  export { $Command };
7
7
  export class CreateHomeRegionControlCommand 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_DeleteHomeRegionControlCommand, se_DeleteHomeRegionControlCommand }
6
6
  export { $Command };
7
7
  export class DeleteHomeRegionControlCommand 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_DescribeHomeRegionControlsCommand, se_DescribeHomeRegionControlsComm
6
6
  export { $Command };
7
7
  export class DescribeHomeRegionControlsCommand 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_GetHomeRegionCommand, se_GetHomeRegionCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class GetHomeRegionCommand 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),
@@ -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-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config 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-migrationhub-config",
@@ -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
- }