Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWildcardAllowed ¶
Types ¶
type GroupPolicy ¶
type GroupPolicy struct {
Document PolicyDocument
}
type IAM ¶
type IAM struct { PasswordPolicy PasswordPolicy Policies []Policy GroupPolicies []GroupPolicy UserPolicies []UserPolicy RolePolicies []RolePolicy }
type PasswordPolicy ¶
type PasswordPolicy struct { types.Metadata ReusePreventionCount types.IntValue RequireLowercase types.BoolValue RequireUppercase types.BoolValue RequireNumbers types.BoolValue RequireSymbols types.BoolValue MaxAgeDays types.IntValue MinimumLength types.IntValue }
func (*PasswordPolicy) GetMetadata ¶
func (p *PasswordPolicy) GetMetadata() *types.Metadata
func (*PasswordPolicy) GetRawValue ¶
func (p *PasswordPolicy) GetRawValue() interface{}
type Policy ¶
type Policy struct {
Document PolicyDocument
}
type PolicyDocument ¶
type PolicyDocument struct { Statements []PolicyDocumentStatement `json:"Statement"` // contains filtered or unexported fields }
func ParsePolicyDocument ¶
func ParsePolicyDocument(policy []byte, metadata types.Metadata) (*PolicyDocument, error)
func (PolicyDocument) GetMetadata ¶
func (p PolicyDocument) GetMetadata() *types.Metadata
func (PolicyDocument) GetRawValue ¶
func (p PolicyDocument) GetRawValue() interface{}
type PolicyDocumentStatement ¶
type PolicyDocumentStatement struct { Effect string `json:"Effect"` Action awsIAMPolicyDocumentValue `json:"Action"` Resource awsIAMPolicyDocumentValue `json:"Resource,omitempty"` Principal awsIAMPolicyPrincipal `json:"Principal,omitempty"` }
type RolePolicy ¶
type RolePolicy struct {
Document PolicyDocument
}
type UserPolicy ¶
type UserPolicy struct {
Document PolicyDocument
}
Click to show internal directories.
Click to hide internal directories.