mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix(AWS EventBridge): Fix MaximumEventAgeInSecond template reference
This commit is contained in:
parent
ad315b1d12
commit
cd03f550ae
@ -180,7 +180,7 @@ class AwsCompileEventBridgeEvents {
|
||||
}
|
||||
|
||||
RetryPolicy = {
|
||||
MaximumEventAge: RetryPolicy.maximumEventAge,
|
||||
MaximumEventAgeInSeconds: RetryPolicy.maximumEventAge,
|
||||
MaximumRetryAttempts: RetryPolicy.maximumRetryAttempts,
|
||||
};
|
||||
}
|
||||
|
||||
@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user