-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(endpoints): codegen sync for request creation performance improv…
…ements (#6449) * feat(middleware-endpoints): update codegen version for request creation performance improvements * chore: update smithy hash * chore: codegen sync * chore: update yarn lock * test: update client maximal config * test(lib-dynamodb): throw error for cacheMiddleware=true * fix(endpoints): avoid mutation of cached endpoint
- Loading branch information
Showing
910 changed files
with
13,727 additions
and
16,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
clients/client-accessanalyzer/src/endpoint/endpointResolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
// smithy-typescript generated code | ||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; | ||
import { EndpointV2, Logger } from "@smithy/types"; | ||
import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
|
||
import { EndpointParameters } from "./EndpointParameters"; | ||
import { ruleSet } from "./ruleset"; | ||
|
||
const cache = new EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
|
||
export const defaultEndpointResolver = ( | ||
endpointParams: EndpointParameters, | ||
context: { logger?: Logger } = {} | ||
): EndpointV2 => { | ||
return resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}); | ||
return cache.get(endpointParams as EndpointParams, () => | ||
resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}) | ||
); | ||
}; | ||
|
||
customEndpointFunctions.aws = awsEndpointFunctions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
// smithy-typescript generated code | ||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; | ||
import { EndpointV2, Logger } from "@smithy/types"; | ||
import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
|
||
import { EndpointParameters } from "./EndpointParameters"; | ||
import { ruleSet } from "./ruleset"; | ||
|
||
const cache = new EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
|
||
export const defaultEndpointResolver = ( | ||
endpointParams: EndpointParameters, | ||
context: { logger?: Logger } = {} | ||
): EndpointV2 => { | ||
return resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}); | ||
return cache.get(endpointParams as EndpointParams, () => | ||
resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}) | ||
); | ||
}; | ||
|
||
customEndpointFunctions.aws = awsEndpointFunctions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
// smithy-typescript generated code | ||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; | ||
import { EndpointV2, Logger } from "@smithy/types"; | ||
import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
|
||
import { EndpointParameters } from "./EndpointParameters"; | ||
import { ruleSet } from "./ruleset"; | ||
|
||
const cache = new EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
|
||
export const defaultEndpointResolver = ( | ||
endpointParams: EndpointParameters, | ||
context: { logger?: Logger } = {} | ||
): EndpointV2 => { | ||
return resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}); | ||
return cache.get(endpointParams as EndpointParams, () => | ||
resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}) | ||
); | ||
}; | ||
|
||
customEndpointFunctions.aws = awsEndpointFunctions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
// smithy-typescript generated code | ||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; | ||
import { EndpointV2, Logger } from "@smithy/types"; | ||
import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; | ||
|
||
import { EndpointParameters } from "./EndpointParameters"; | ||
import { ruleSet } from "./ruleset"; | ||
|
||
const cache = new EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
|
||
export const defaultEndpointResolver = ( | ||
endpointParams: EndpointParameters, | ||
context: { logger?: Logger } = {} | ||
): EndpointV2 => { | ||
return resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}); | ||
return cache.get(endpointParams as EndpointParams, () => | ||
resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams as EndpointParams, | ||
logger: context.logger, | ||
}) | ||
); | ||
}; | ||
|
||
customEndpointFunctions.aws = awsEndpointFunctions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.