Skip to content

Commit

Permalink
Merge pull request #388 from clayzermk1/alarm-notification-fnjoin
Browse files Browse the repository at this point in the history
feat: added Fn::Join to ARN deployment schemas
  • Loading branch information
theburningmonk authored Nov 17, 2020
2 parents 886fcd4 + 7be54b2 commit 972a1f3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/deploy/stepFunctions/compileAlarms.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ const arn = Joi.alternatives().try(
Joi.object(),
),
}),
Joi.object().keys({
'Fn::Join': Joi.array().items([
Joi.string(),
Joi.array().items([
Joi.string(),
Joi.object().keys({
Ref: Joi.string(),
}),
]),
]),
}),
);

const topics = Joi.object().keys({
Expand Down
11 changes: 11 additions & 0 deletions lib/deploy/stepFunctions/compileNotifications.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ const arn = Joi.alternatives().try(
Joi.object().keys({
'Fn::GetAtt': Joi.array().items(Joi.string()),
}),
Joi.object().keys({
'Fn::Join': Joi.array().items([
Joi.string(),
Joi.array().items([
Joi.string(),
Joi.object().keys({
Ref: Joi.string(),
}),
]),
]),
}),
);

const sqsWithParams = Joi.object().keys({
Expand Down
11 changes: 11 additions & 0 deletions lib/deploy/stepFunctions/compileStateMachines.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ const arn = Joi.alternatives().try(
Joi.object(),
),
}),
Joi.object().keys({
'Fn::Join': Joi.array().items([
Joi.string(),
Joi.array().items([
Joi.string(),
Joi.object().keys({
Ref: Joi.string(),
}),
]),
]),
}),
);

const definition = Joi.alternatives().try(
Expand Down

0 comments on commit 972a1f3

Please sign in to comment.