Class: CfnGuardian::Models::StepFunctionsAlarm
- Defined in:
- lib/cfnguardian/models/alarm.rb
Instance Attribute Summary
Attributes inherited from BaseAlarm
#actions_enabled, #additional_notifiers, #alarm_action, #comparison_operator, #datapoints_to_alarm, #dimensions, #enabled, #evaluate_low_sample_count_percentile, #evaluation_periods, #extended_statistic, #group, #maintenance_groups, #metric_name, #name, #namespace, #period, #resource_hash, #resource_id, #resource_name, #statistic, #tags, #threshold, #treat_missing_data, #type, #unit
Instance Method Summary collapse
-
#initialize(resource) ⇒ StepFunctionsAlarm
constructor
A new instance of StepFunctionsAlarm.
Constructor Details
#initialize(resource) ⇒ StepFunctionsAlarm
Returns a new instance of StepFunctionsAlarm.
482 483 484 485 486 487 |
# File 'lib/cfnguardian/models/alarm.rb', line 482 def initialize(resource) super(resource) @group = 'StepFunctions' @namespace = 'AWS/States' @dimensions = { StateMachineArn: { "Fn::Sub" => "arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:#{resource['Id']}"} } end |