iam

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWildcardAllowed

func IsWildcardAllowed(actions ...string) bool

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL