iam

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWildcardAllowed

func IsWildcardAllowed(actions ...string) (bool, string)

Types

type Document

type Document struct {
	types.Metadata
	Parsed   iamgo.Document
	IsOffset bool
	HasRefs  bool
}

func (Document) MetadataFromIamGo

func (d Document) MetadataFromIamGo(r ...iamgo.Range) types.Metadata

func (Document) ToRego added in v0.38.0

func (d Document) ToRego() interface{}

type Group

type Group struct {
	types.Metadata
	Name     types.StringValue
	Users    []User
	Policies []Policy
}

type IAM

type IAM struct {
	PasswordPolicy PasswordPolicy
	Policies       []Policy
	Groups         []Group
	Users          []User
	Roles          []Role
}

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
}

type Policy

type Policy struct {
	types.Metadata
	Name     types.StringValue
	Document Document
}

type Role

type Role struct {
	types.Metadata
	Name     types.StringValue
	Policies []Policy
}

type User

type User struct {
	types.Metadata
	Name     types.StringValue
	Groups   []Group
	Policies []Policy
}

Jump to

Keyboard shortcuts

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