https://github.com/liamg/iamgo
Parse/assemble AWS IAM policy documents and their various quirks
https://github.com/liamg/iamgo
Last synced: 10 months ago
JSON representation
Parse/assemble AWS IAM policy documents and their various quirks
- Host: GitHub
- URL: https://github.com/liamg/iamgo
- Owner: liamg
- License: mit
- Created: 2022-01-17T12:09:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T13:55:12.000Z (over 2 years ago)
- Last Synced: 2025-02-27T04:24:56.953Z (11 months ago)
- Language: Go
- Size: 40 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iamgo
`iamgo` is a Go package for parsing/assembling AWS IAM policy documents, as the official SDK does not seem to fully support this.
It handles the multiple possible types for various IAM elements and hides this complexity from the consumer.
## Example
```go
package main
import (
"fmt"
"github.com/liamg/iamgo"
)
func main() {
rawJSON := []byte(`...`)
doc, err := iamgo.Parse(rawJSON)
if err != nil {
panic(err)
}
fmt.Printf("Done: %#v\n", doc)
}
```