Skip to content

Commit 972a1f3

Browse files
Merge pull request #388 from clayzermk1/alarm-notification-fnjoin
feat: added Fn::Join to ARN deployment schemas
2 parents 886fcd4 + 7be54b2 commit 972a1f3

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

lib/deploy/stepFunctions/compileAlarms.schema.js

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ const arn = Joi.alternatives().try(
1414
Joi.object(),
1515
),
1616
}),
17+
Joi.object().keys({
18+
'Fn::Join': Joi.array().items([
19+
Joi.string(),
20+
Joi.array().items([
21+
Joi.string(),
22+
Joi.object().keys({
23+
Ref: Joi.string(),
24+
}),
25+
]),
26+
]),
27+
}),
1728
);
1829

1930
const topics = Joi.object().keys({

lib/deploy/stepFunctions/compileNotifications.schema.js

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ const arn = Joi.alternatives().try(
88
Joi.object().keys({
99
'Fn::GetAtt': Joi.array().items(Joi.string()),
1010
}),
11+
Joi.object().keys({
12+
'Fn::Join': Joi.array().items([
13+
Joi.string(),
14+
Joi.array().items([
15+
Joi.string(),
16+
Joi.object().keys({
17+
Ref: Joi.string(),
18+
}),
19+
]),
20+
]),
21+
}),
1122
);
1223

1324
const sqsWithParams = Joi.object().keys({

lib/deploy/stepFunctions/compileStateMachines.schema.js

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ const arn = Joi.alternatives().try(
1414
Joi.object(),
1515
),
1616
}),
17+
Joi.object().keys({
18+
'Fn::Join': Joi.array().items([
19+
Joi.string(),
20+
Joi.array().items([
21+
Joi.string(),
22+
Joi.object().keys({
23+
Ref: Joi.string(),
24+
}),
25+
]),
26+
]),
27+
}),
1728
);
1829

1930
const definition = Joi.alternatives().try(

0 commit comments

Comments
 (0)