fix(AWS EventBridge): Fix MaximumEventAgeInSecond template reference

This commit is contained in:
Mariusz Nowak 2021-09-29 21:29:47 +02:00 committed by Mariusz Nowak
parent ad315b1d12
commit cd03f550ae
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class AwsCompileEventBridgeEvents {
}
RetryPolicy = {
MaximumEventAge: RetryPolicy.maximumEventAge,
MaximumEventAgeInSeconds: RetryPolicy.maximumEventAge,
MaximumRetryAttempts: RetryPolicy.maximumRetryAttempts,
};
}

View File

@ -542,7 +542,7 @@ describe('EventBridgeEvents', () => {
const retryPolicyRuleTarget = getRuleResourceEndingWith(cfResources, '6').Properties
.Targets[0];
expect(retryPolicyRuleTarget.RetryPolicy).to.deep.equal({
MaximumEventAge: 7200,
MaximumEventAgeInSeconds: 7200,
MaximumRetryAttempts: 9,
});
});