Documentation
¶
Overview ¶
Package iam implements various IAM components.
Index ¶
- func Validate(lg *zap.Logger, iamAPI iamiface.IAMAPI, roleName string, requiredSPs []string, ...) error
- type AssumeRolePolicyDocument
- type AssumeRolePolicyDocumentSingle
- type AssumeRolePolicyDocumentStatement
- type AssumeRolePolicyDocumentStatementSingle
- type PolicyDocument
- type PrincipalEntry
- type PrincipalEntrySingle
- type StatementEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssumeRolePolicyDocument ¶ added in v0.6.7
type AssumeRolePolicyDocument struct {
Version string `json:"Version"`
Statement []*AssumeRolePolicyDocumentStatement `json:"Statement"`
}
type AssumeRolePolicyDocumentSingle ¶ added in v0.6.9
type AssumeRolePolicyDocumentSingle struct {
Version string `json:"Version"`
Statement []*AssumeRolePolicyDocumentStatementSingle `json:"Statement"`
}
type AssumeRolePolicyDocumentStatement ¶ added in v0.6.7
type AssumeRolePolicyDocumentStatement struct {
Effect string `json:"Effect"`
Principal *PrincipalEntry `json:"Principal,omitempty"`
}
type AssumeRolePolicyDocumentStatementSingle ¶ added in v0.6.9
type AssumeRolePolicyDocumentStatementSingle struct {
Effect string `json:"Effect"`
Principal *PrincipalEntrySingle `json:"Principal,omitempty"`
}
type PolicyDocument ¶
type PolicyDocument struct {
Version string
Statement []StatementEntry
}
PolicyDocument is the IAM policy document.
type PrincipalEntry ¶
type PrincipalEntry struct {
Service []string `json:"Service,omitempty"`
}
PrincipalEntry represents the policy document Principal.
type PrincipalEntrySingle ¶ added in v0.6.9
type PrincipalEntrySingle struct {
Service string `json:"Service,omitempty"`
}
PrincipalEntrySingle represents the policy document Principal.
type StatementEntry ¶
type StatementEntry struct {
Effect string `json:"Effect,omitempty"`
Action []string `json:"Action,omitempty"`
Resource string `json:"Resource,omitempty"`
Principal *PrincipalEntry `json:"Principal,omitempty"`
}
StatementEntry is the entry in IAM policy document "Statement" field.
Click to show internal directories.
Click to hide internal directories.