iam

package
v0.70.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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 AccessKey added in v0.69.0

type AccessKey struct {
	types.Metadata
	AccessKeyId  types.StringValue
	Active       types.BoolValue
	CreationDate types.TimeValue
	LastAccess   types.TimeValue
}

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 MFADevice added in v0.69.0

type MFADevice struct {
	types.Metadata
}

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
	AccessKeys []AccessKey
	MFADevices []MFADevice
	LastAccess types.TimeValue
}

func (*User) HasLoggedIn added in v0.69.0

func (u *User) HasLoggedIn() bool

Jump to

Keyboard shortcuts

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