(config: AppConfigConnectionConfig)
| 33 | import type { AppConfigConnectionConfig } from '@/tools/appconfig/types' |
| 34 | |
| 35 | export function createAppConfigClient(config: AppConfigConnectionConfig): AppConfigClient { |
| 36 | return new AppConfigClient({ |
| 37 | region: config.region, |
| 38 | credentials: { |
| 39 | accessKeyId: config.accessKeyId, |
| 40 | secretAccessKey: config.secretAccessKey, |
| 41 | }, |
| 42 | }) |
| 43 | } |
| 44 | |
| 45 | export function createAppConfigDataClient(config: AppConfigConnectionConfig): AppConfigDataClient { |
| 46 | return new AppConfigDataClient({ |