UNPKG

@cloud-copilot/iam-lens

Version:

Visibility in IAM in and across AWS accounts

22 lines 837 B
import { createStorageClient, loadConfigFiles } from '@cloud-copilot/iam-collect'; import { IamCollectClient } from './client.js'; /** * Load IAM collect configs from the specified paths. * * @param configPaths the paths to the config files * @returns the top-level configs */ export async function loadCollectConfigs(configPaths) { return loadConfigFiles(configPaths); } /** * Get a collect client for the specified partition using the provided configs. * * @param configs the top-level configs to use for storage * @param partition which partition to use (aws, aws-cn, aws-us-gov) * @returns the iam-collect client to use for retrieving IAM resources */ export function getCollectClient(configs, partition) { return new IamCollectClient(createStorageClient(configs, partition)); } //# sourceMappingURL=collect.js.map