Skip to content
This repository has been archived by the owner on Jan 3, 2022. It is now read-only.

IAM PolicyDocument would be a useful type to have #12

Closed
crewjam opened this issue Mar 25, 2016 · 1 comment
Closed

IAM PolicyDocument would be a useful type to have #12

crewjam opened this issue Mar 25, 2016 · 1 comment

Comments

@crewjam
Copy link
Owner

crewjam commented Mar 25, 2016

https://github.com/crewjam/etcd-aws/blob/master/aws/iam.go

type PolicyDocument struct {
    Version   string `json:",omitempty"`
    Statement []Policy
}

type Policy struct {
    Sid            string              `json:",omitempty"`
    Effect         string              `json:",omitempty"`
    Principal      *Principal          `json:",omitempty"`
    Action         *cfn.StringListExpr `json:",omitempty"`
    Resource       *cfn.StringListExpr `json:",omitempty"`
    ConditionBlock interface{}         `json:",omitempty"`
}

type Principal struct {
    Service *cfn.StringListExpr `json:",omitempty"`
}
@crewjam
Copy link
Owner Author

crewjam commented Jun 13, 2016

duplicate of #4

@crewjam crewjam closed this as completed Jun 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant