UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

11 lines (10 loc) 547 B
import { EndpointCache } from "@aws-sdk/endpoint-cache"; export const resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => ({ ...input, endpointDiscoveryCommandCtor, endpointCache: new EndpointCache(input.endpointCacheSize ?? 1000), endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider, isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined, });