@mapbox/cloudfriend 7.2.0-3 → 7.3.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,7 +41,7 @@ class ScheduledLambda extends Lambda {
|
|
|
41
41
|
if (required.some((variable) => !variable))
|
|
42
42
|
throw new Error('You must provide a ScheduleExpression');
|
|
43
43
|
|
|
44
|
-
this.Resources[`${this.LogicalName}
|
|
44
|
+
this.Resources[`${this.LogicalName}EventBridgeSchedule`] = {
|
|
45
45
|
Type: 'AWS::Scheduler::Schedule',
|
|
46
46
|
Condition: this.Condition,
|
|
47
47
|
Properties: {
|
|
@@ -80,7 +80,7 @@ class ScheduledLambda extends Lambda {
|
|
|
80
80
|
'Fn::Sub': 'events.${AWS::URLSuffix}'
|
|
81
81
|
},
|
|
82
82
|
SourceArn: {
|
|
83
|
-
'Fn::GetAtt': [`${this.LogicalName}
|
|
83
|
+
'Fn::GetAtt': [`${this.LogicalName}EventBridgeSchedule`, 'Arn']
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|