We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4acbb8 commit c768feeCopy full SHA for c768fee
lib/apiGateway/schema.js
@@ -225,28 +225,6 @@ const rangeKey = Joi.when('action', {
225
})
226
227
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
241
- }).error(
242
- customErrorBuilder(
243
- 'object.child',
244
- `"${propertyName}" must be in the format "{ 'Fn::GetAtt': ['<ResourceId>', '${attributeName}'] }"`
245
246
247
- ])
248
-}
249
-
250
const request = Joi.object({
251
template: Joi.object().required()
252
0 commit comments