Skip to content

Commit 7f3c203

Browse files
zmalekiShreya
authored andcommitted
feat(policy-template): adding cloudwatch:describeAlarmHistory policy (#1264)
1 parent a9388b6 commit 7f3c203

File tree

6 files changed

+208
-147
lines changed

6 files changed

+208
-147
lines changed

examples/2016-10-31/policy_templates/all_policy_templates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Resources:
1414
- LambdaInvokePolicy:
1515
FunctionName: name
1616

17+
- CloudWatchDescribeAlarmHistoryPolicy: {}
18+
1719
- CloudWatchPutMetricPolicy: {}
1820

1921
- EC2DescribePolicy: {}

samtranslator/policy_templates_data/policy_templates.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,21 @@
6262
]
6363
}
6464
},
65+
"CloudWatchDescribeAlarmHistoryPolicy": {
66+
"Description": "Gives permissions to describe CloudWatch alarm history",
67+
"Parameters": {},
68+
"Definition": {
69+
"Statement": [
70+
{
71+
"Effect": "Allow",
72+
"Action": [
73+
"cloudwatch:DescribeAlarmHistory"
74+
],
75+
"Resource": "*"
76+
}
77+
]
78+
}
79+
},
6580
"CloudWatchPutMetricPolicy": {
6681
"Description": "Gives permissions to put metrics to CloudWatch",
6782
"Parameters": {

tests/translator/input/all_policy_templates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Resources:
1818
- LambdaInvokePolicy:
1919
FunctionName: name
2020

21+
- CloudWatchDescribeAlarmHistoryPolicy: {}
22+
2123
- CloudWatchPutMetricPolicy: {}
2224

2325
- EC2DescribePolicy: {}

0 commit comments

Comments
 (0)