From 7818ba095bd852b0413256fa6dc9cd2fa4733b5c Mon Sep 17 00:00:00 2001 From: rongxwang Date: Wed, 5 Jan 2022 14:47:13 +0800 Subject: [PATCH] fix: change outputs --- src/modules/apigw/entities/api.ts | 14 +++++++------- src/modules/apigw/index.ts | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/modules/apigw/entities/api.ts b/src/modules/apigw/entities/api.ts index 7f9535c..f8008da 100644 --- a/src/modules/apigw/entities/api.ts +++ b/src/modules/apigw/entities/api.ts @@ -73,12 +73,12 @@ export default class ApiEntity { output.apiId = ApiId; console.log(`API ${ApiId} created`); - const apiDetail: ApiDetail = await this.request({ - Action: 'DescribeApi', - serviceId: serviceId, - apiId: output.apiId, - }); - output.internalDomain = apiDetail.InternalDomain || ''; + // const apiDetail: ApiDetail = await this.request({ + // Action: 'DescribeApi', + // serviceId: serviceId, + // apiId: output.apiId, + // }); + // output.internalDomain = apiDetail.InternalDomain || ''; if (endpoint?.isBase64Encoded && endpoint.isBase64Trigger) { apiInputs.isBase64Trigger = endpoint.isBase64Trigger; @@ -201,7 +201,7 @@ export default class ApiEntity { output.apiId = endpoint.apiId; output.created = !!created; - output.internalDomain = apiDetail.InternalDomain || ''; + // output.internalDomain = apiDetail.InternalDomain || ''; console.log(`Api ${output.apiId} updated`); output.apiName = apiInputs.apiName; diff --git a/src/modules/apigw/index.ts b/src/modules/apigw/index.ts index 57be812..fe79ab2 100644 --- a/src/modules/apigw/index.ts +++ b/src/modules/apigw/index.ts @@ -166,7 +166,8 @@ export default class Apigw { console.log(`[TAG] ${e.message}`); } - return this.formatApigwOutputs(outputs); + // return this.formatApigwOutputs(outputs); + return outputs; } async remove(inputs: ApigwRemoveInputs) {