()
| 48 | |
| 49 | /** Throws if STS caller identity cannot be retrieved. */ |
| 50 | export async function checkStsCallerIdentity(): Promise<void> { |
| 51 | const { STSClient, GetCallerIdentityCommand } = await import( |
| 52 | '@aws-sdk/client-sts' |
| 53 | ) |
| 54 | await new STSClient().send(new GetCallerIdentityCommand({})) |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Clear AWS credential provider cache by forcing a refresh |
no test coverage detected