iam

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWildcardAllowed

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

Types

type AccessKey

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

type Document

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

func (Document) MetadataFromIamGo

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

func (Document) ToRego

func (d Document) ToRego() any

type Group

type Group struct {
	Metadata iacTypes.Metadata
	Name     iacTypes.StringValue
	Policies []Policy
}

type IAM

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

type MFADevice

type MFADevice struct {
	Metadata  iacTypes.Metadata
	IsVirtual iacTypes.BoolValue
}

type PasswordPolicy

type PasswordPolicy struct {
	Metadata             iacTypes.Metadata
	ReusePreventionCount iacTypes.IntValue
	RequireLowercase     iacTypes.BoolValue
	RequireUppercase     iacTypes.BoolValue
	RequireNumbers       iacTypes.BoolValue
	RequireSymbols       iacTypes.BoolValue
	MaxAgeDays           iacTypes.IntValue
	MinimumLength        iacTypes.IntValue
}

type Policy

type Policy struct {
	Metadata iacTypes.Metadata
	Name     iacTypes.StringValue
	Document Document
	Builtin  iacTypes.BoolValue
}

type Role

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

type ServerCertificate

type ServerCertificate struct {
	Metadata   iacTypes.Metadata
	Expiration iacTypes.TimeValue
}

type User

type User struct {
	Metadata   iacTypes.Metadata
	Name       iacTypes.StringValue
	Policies   []Policy
	AccessKeys []AccessKey
	MFADevices []MFADevice
	LastAccess iacTypes.TimeValue
}

func (*User) HasLoggedIn

func (u *User) HasLoggedIn() bool

Jump to

Keyboard shortcuts

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