Timer
Resource Overview
A Timer represents a CloudWatch schedule event. Amazon CloudWatch Events allow you to schedule messages that automate certain actions to be performed using cron or rate expressions.
Key Features of CloudWatch Events include:
- Declare resources to generate events, or create custom application events
- Target resources to perform actions based on your event
- Implement rules to customize event processing
The schedule for your Timer can be set as a simple interval in minutes, hours, or days, or using a cron expression.
Event Subscription
Event subscription wires (solid line) visualize and configure event subscription integrations between two resources.
The following resources can be subscribed to a Timer:
- Function
Configurable Properties
Display Name
Human readable name for this resource that is displayed on the Stackery Dashboard and Stackery CLI output.
Type
The type of the schedule, either as a simple interval or a Cron specification
Value
The count and unit of the scheduled interval.
Unit
The Cron expression specifying when events are emitted. The expression must contain the sixth "Year" field.
IAM Permissions
When connected by a service discovery wire (dashed wire), a Function or Docker Task will add the following IAM policy to its role and gain permission to access this resource.
No Permissions Added
Environment Variables
When connected by a service discovery wire (dashed wire), a Function or Docker Task will automatically populate and reference the following environment variables in order to interact with this resource.
No Environment Variables Added
Metrics & Logs
Double clicking a resource while viewing your stack's current deployment gives you access to your pre-configured resource properties, and the following metrics and logs.
- Invocation Metrics
Related AWS Documentation
AWS Documentation: AWS::Events::Rule