Categorygithub.com/n4ch04/aws-policy
modulepackage
1.0.1
Repository: https://github.com/n4ch04/aws-policy.git
Documentation: pkg.go.dev

# README

AWS-Policy

Go Reference

AWS have an amazing SDK for Go with all API functions output typed, and works like clockwork ... until IAM policy documents appear.

AWS describes the policy document in SDK (GetPolicyVersion function ), textually The policy document returned in this structure is URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986)

In practice, it is raw data, and parsing is difficult due to it's structure depends on the policy, and not all fields always appear.
To achieve this I have used golang generics and it seems to work pretty well.

Issues


Feel free to submit issues and enhancement requests.

Please fork this project and open a PR to submit it.

# Structs

Policy represents an AWS iam policy document.
Statement represents body of AWS iam policy document.