MCPcopy Index your code
hub / github.com/simstudioai/sim / getClient

Function getClient

apps/sim/lib/core/config/appconfig.ts:43–51  ·  view source on GitHub ↗

* Lazily construct the AppConfig data-plane client. Never instantiated unless a * caller actually fetches a profile, so deployments without AppConfig configured * never reach for AWS credentials.

()

Source from the content-addressed store, hash-verified

41 * never reach for AWS credentials.
42 */
43function getClient(): AppConfigDataClient {
44 if (!client) {
45 client = new AppConfigDataClient({
46 region: env.AWS_REGION,
47 credentials: getAwsCredentialsFromEnv(),
48 })
49 }
50 return client
51}
52
53function cacheKey(ids: AppConfigProfileIdentifiers): string {
54 return `${ids.application}/${ids.environment}/${ids.profile}`

Callers 1

pollFunction · 0.70

Calls 1

getAwsCredentialsFromEnvFunction · 0.90

Tested by

no test coverage detected