From b4266a5cd3b01070c1022f27c27e2338b038255e Mon Sep 17 00:00:00 2001 From: John Hockett Date: Wed, 9 Jun 2021 08:04:23 -1000 Subject: [PATCH] fix: type mismatch after merge (#7490) --- .../src/aws-utils/aws-lambda.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lambda.ts b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lambda.ts index 551bc69ce59..cd154eb1e04 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lambda.ts +++ b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lambda.ts @@ -2,8 +2,7 @@ const aws = require('./aws'); import { $TSAny, $TSContext } from 'amplify-cli-core'; import { Lambda as AwsSdkLambda } from 'aws-sdk'; import { LayerVersionsListItem, ListLayerVersionsRequest, ListLayerVersionsResponse } from 'aws-sdk/clients/lambda'; -import { loadConfiguration } from '../configuration-manager'; -import { AwsSdkConfig } from '../utils/auth-types'; +import { AwsSecrets, loadConfiguration } from '../configuration-manager'; import { fileLogger } from '../utils/aws-logger'; import { pagedAWSCall } from './paged-call'; @@ -14,7 +13,7 @@ export class Lambda { constructor(private readonly context: $TSContext, options = {}) { return (async () => { - let cred: AwsSdkConfig; + let cred: AwsSecrets; try { cred = await loadConfiguration(context); } catch (e) {