Skip to content

Commit c768fee

Browse files
committed
chore: remove duplicate part
1 parent a4acbb8 commit c768fee

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/apiGateway/schema.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -225,28 +225,6 @@ const rangeKey = Joi.when('action', {
225225
})
226226
})
227227

228-
const stringOrGetAtt = (propertyName, attributeName) => {
229-
return Joi.alternatives().try([
230-
Joi.string(),
231-
Joi.object({
232-
'Fn::GetAtt': Joi.array()
233-
.length(2)
234-
.ordered(
235-
Joi.string().required(),
236-
Joi.string()
237-
.valid(attributeName)
238-
.required()
239-
)
240-
.required()
241-
}).error(
242-
customErrorBuilder(
243-
'object.child',
244-
`"${propertyName}" must be in the format "{ 'Fn::GetAtt': ['<ResourceId>', '${attributeName}'] }"`
245-
)
246-
)
247-
])
248-
}
249-
250228
const request = Joi.object({
251229
template: Joi.object().required()
252230
})

0 commit comments

Comments
 (0)