1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[docs] Include required ARN format of actions in ec2_metric_alarm (#46514)

<!--- Your description here -->

+label: docsite_pr
This commit is contained in:
Chas Schley 2018-10-17 10:39:03 -07:00 committed by Ryan Brown
parent df57a3fc7a
commit 7fd31b1da0

View file

@ -103,7 +103,7 @@ options:
required: false required: false
alarm_actions: alarm_actions:
description: description:
- A list of the names action(s) taken when the alarm is in the 'alarm' status - A list of the names action(s) taken when the alarm is in the 'alarm' status, denoted as Amazon Resource Name(s)
required: false required: false
insufficient_data_actions: insufficient_data_actions:
description: description:
@ -111,7 +111,7 @@ options:
required: false required: false
ok_actions: ok_actions:
description: description:
- A list of the names of action(s) to take when the alarm is in the 'ok' status - A list of the names of action(s) to take when the alarm is in the 'ok' status, denoted as Amazon Resource Name(s)
required: false required: false
extends_documentation_fragment: extends_documentation_fragment:
- aws - aws
@ -136,6 +136,22 @@ EXAMPLES = '''
dimensions: {'InstanceId':'i-XXX'} dimensions: {'InstanceId':'i-XXX'}
alarm_actions: ["action1","action2"] alarm_actions: ["action1","action2"]
- name: Create an alarm to recover a failed instance
ec2_metric_alarm:
state: present
region: us-west-1
name: "recover-instance"
metric: "StatusCheckFailed_System"
namespace: "AWS/EC2"
statistic: "Minimum"
comparison: ">="
threshold: 1.0
period: 60
evaluation_periods: 2
unit: "Seconds"
description: "This will recover an instance when it fails"
dimensions: {"InstanceId":'i-XXX'}
alarm_actions: ["arn:aws:automate:us-west-1:ec2:recover"]
''' '''