Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PolicyDocument ¶ added in v1.5.0
type PolicyDocument struct { Version string `json:"Version"` Statements StatementEntries `json:"Statement"` }
PolicyDocument represents an IAM policy document
type StatementEntries ¶ added in v1.5.0
type StatementEntries []interface{}
StatementEntries is a slice of statements that make up a PolicyDocument
func (*StatementEntries) UnmarshalJSON ¶ added in v1.5.0
func (se *StatementEntries) UnmarshalJSON(b []byte) error
UnmarshalJSON is defined here for StatementEntries because the Statement portion of an IAM Policy can either be a list or a single element, so if it's a single element this wraps it in a []interface{} so that it's easy to combine with other policy statements: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html
type UsernameMetadata ¶ added in v1.9.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.