@aws-sdk/client-appsync 3.645.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/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +64 -192
- package/dist-es/commands/AssociateApiCommand.js +1 -3
- package/dist-es/commands/AssociateMergedGraphqlApiCommand.js +1 -3
- package/dist-es/commands/AssociateSourceGraphqlApiCommand.js +1 -3
- package/dist-es/commands/CreateApiCacheCommand.js +1 -3
- package/dist-es/commands/CreateApiKeyCommand.js +1 -3
- package/dist-es/commands/CreateDataSourceCommand.js +1 -3
- package/dist-es/commands/CreateDomainNameCommand.js +1 -3
- package/dist-es/commands/CreateFunctionCommand.js +1 -3
- package/dist-es/commands/CreateGraphqlApiCommand.js +1 -3
- package/dist-es/commands/CreateResolverCommand.js +1 -3
- package/dist-es/commands/CreateTypeCommand.js +1 -3
- package/dist-es/commands/DeleteApiCacheCommand.js +1 -3
- package/dist-es/commands/DeleteApiKeyCommand.js +1 -3
- package/dist-es/commands/DeleteDataSourceCommand.js +1 -3
- package/dist-es/commands/DeleteDomainNameCommand.js +1 -3
- package/dist-es/commands/DeleteFunctionCommand.js +1 -3
- package/dist-es/commands/DeleteGraphqlApiCommand.js +1 -3
- package/dist-es/commands/DeleteResolverCommand.js +1 -3
- package/dist-es/commands/DeleteTypeCommand.js +1 -3
- package/dist-es/commands/DisassociateApiCommand.js +1 -3
- package/dist-es/commands/DisassociateMergedGraphqlApiCommand.js +1 -3
- package/dist-es/commands/DisassociateSourceGraphqlApiCommand.js +1 -3
- package/dist-es/commands/EvaluateCodeCommand.js +1 -3
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +1 -3
- package/dist-es/commands/FlushApiCacheCommand.js +1 -3
- package/dist-es/commands/GetApiAssociationCommand.js +1 -3
- package/dist-es/commands/GetApiCacheCommand.js +1 -3
- package/dist-es/commands/GetDataSourceCommand.js +1 -3
- package/dist-es/commands/GetDataSourceIntrospectionCommand.js +1 -3
- package/dist-es/commands/GetDomainNameCommand.js +1 -3
- package/dist-es/commands/GetFunctionCommand.js +1 -3
- package/dist-es/commands/GetGraphqlApiCommand.js +1 -3
- package/dist-es/commands/GetGraphqlApiEnvironmentVariablesCommand.js +1 -3
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +1 -3
- package/dist-es/commands/GetResolverCommand.js +1 -3
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +1 -3
- package/dist-es/commands/GetSourceApiAssociationCommand.js +1 -3
- package/dist-es/commands/GetTypeCommand.js +1 -3
- package/dist-es/commands/ListApiKeysCommand.js +1 -3
- package/dist-es/commands/ListDataSourcesCommand.js +1 -3
- package/dist-es/commands/ListDomainNamesCommand.js +1 -3
- package/dist-es/commands/ListFunctionsCommand.js +1 -3
- package/dist-es/commands/ListGraphqlApisCommand.js +1 -3
- package/dist-es/commands/ListResolversByFunctionCommand.js +1 -3
- package/dist-es/commands/ListResolversCommand.js +1 -3
- package/dist-es/commands/ListSourceApiAssociationsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListTypesByAssociationCommand.js +1 -3
- package/dist-es/commands/ListTypesCommand.js +1 -3
- package/dist-es/commands/PutGraphqlApiEnvironmentVariablesCommand.js +1 -3
- package/dist-es/commands/StartDataSourceIntrospectionCommand.js +1 -3
- package/dist-es/commands/StartSchemaCreationCommand.js +1 -3
- package/dist-es/commands/StartSchemaMergeCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateApiCacheCommand.js +1 -3
- package/dist-es/commands/UpdateApiKeyCommand.js +1 -3
- package/dist-es/commands/UpdateDataSourceCommand.js +1 -3
- package/dist-es/commands/UpdateDomainNameCommand.js +1 -3
- package/dist-es/commands/UpdateFunctionCommand.js +1 -3
- package/dist-es/commands/UpdateGraphqlApiCommand.js +1 -3
- package/dist-es/commands/UpdateResolverCommand.js +1 -3
- package/dist-es/commands/UpdateSourceApiAssociationCommand.js +1 -3
- package/dist-es/commands/UpdateTypeCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +36 -36
|
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
7
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
13
|
endpointParams: endpointParams,
|
|
10
14
|
logger: context.logger,
|
|
11
|
-
});
|
|
15
|
+
}));
|
|
12
16
|
};
|
|
13
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
18
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|