-
Notifications
You must be signed in to change notification settings - Fork 1.4k
AWS::Logs::ResourcePolicy #1936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS::Logs::ResourcePolicy #1936
Conversation
from .validators import integer_list_item, json_checker | ||
|
||
|
||
def validate_resource_policy(policy_document): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This validation should take into account the other policy document types coming from awacs. This is imported via https://github.com/cloudtools/troposphere/blob/main/troposphere/compat.py
Note: the length checks won't work with some of these awacs types and additional checking needs to be done around the json_checker return types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @markpeek So the plan will be
- build a more general policy document validator
- cover the types of dict, Policy, PolicyDocumen, and string
- add tests cover all above
Any other cases need to be considered here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like the right list of items. Thanks.
Excellent. Thank you for the commit. |
Thanks my pleasure. |
FYI - there are now two
Should the first one be removed? |
Oh good catch. Fixed via a771640
|
thx, I missed that. |
No description provided.