Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAMSpec ¶
IAMSpec contains the AWS session
func (IAMSpec) PolicyAllows ¶
PolicyAllows returns true if the defined actions are allowed on the provided resources. Please note that the check will be performed on the default policy version.
func (IAMSpec) RoleHasPolicy ¶ added in v0.6.0
RoleHasPolicy checks that the provided policy ARN is attached to the specified IAM role
type OptSlice ¶
type OptSlice []string
OptSlice is an entity that could be either a JSON string or a slice As per https://stackoverflow.com/a/38757780/543423
func (*OptSlice) MarshalJSON ¶
MarshalJSON returns o as the JSON encoding of o
func (*OptSlice) UnmarshalJSON ¶
UnmarshalJSON sets *o to a copy of data
type PolicyDocument ¶
PolicyDocument represents an IAM policy document
type Statement ¶
type Statement struct {
// TODO:
// - Handle Principal, NotPrincipal, and Condition
SID string
Principal interface{}
NotPrincipal interface{}
Effect string
Action *OptSlice
NotAction *OptSlice
Resource *OptSlice
NotResource *OptSlice
Condition interface{}
}
Statement represents an IAM statement
Click to show internal directories.
Click to hide internal directories.