serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
16 lines (13 loc) • 385 B
JavaScript
;
module.exports = (changeSetDescription) => {
const errorMessages = [
'No updates are to be performed.',
"The submitted information didn't contain changes.",
];
return (
changeSetDescription.Status === 'FAILED' &&
errorMessages.some(
(msg) => changeSetDescription.StatusReason && changeSetDescription.StatusReason.includes(msg)
)
);
};