File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ class Apigw {
178
178
} )
179
179
output . apiId = endpoint . apiId
180
180
console . log ( `Service with id ${ output . apiId } updated.` )
181
+ output . internalDomain = detail . internalDomain
181
182
}
182
183
} catch ( e ) { }
183
184
}
@@ -190,14 +191,17 @@ class Apigw {
190
191
output . apiId = apiId
191
192
output . created = true
192
193
console . log ( `API with id ${ output . apiId } created.` )
194
+
195
+ try {
196
+ const { internalDomain } = await this . request ( {
197
+ Action : 'DescribeApi' ,
198
+ serviceId : serviceId ,
199
+ apiId : output . apiId
200
+ } )
201
+ output . internalDomain = internalDomain
202
+ } catch ( e ) { }
193
203
}
194
204
195
- const { internalDomain } = await this . request ( {
196
- Action : 'DescribeApi' ,
197
- serviceId : serviceId ,
198
- apiId : output . apiId
199
- } )
200
- output . internalDomain = internalDomain
201
205
output . apiName = apiInputs . apiName
202
206
return output
203
207
}
You can’t perform that action at this time.
0 commit comments