iam

package
v0.0.0-...-08deec1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupSource

func NewGroupSource(config aws.Config, accountID string, region string, limit *sources.LimitBucket) *sources.GetListSource[*types.Group, *iam.Client, *iam.Options]

func NewInstanceProfileSource

func NewInstanceProfileSource(config aws.Config, accountID string, region string, limit *sources.LimitBucket) *sources.GetListSource[*types.InstanceProfile, *iam.Client, *iam.Options]

func NewPolicySource

func NewPolicySource(config aws.Config, accountID string, _ string, limit *sources.LimitBucket) *sources.GetListSource[*PolicyDetails, IAMClient, *iam.Options]

NewPolicySource Note that this policy source only support polices that are user-created due to the fact that the AWS-created ones are basically "global" in scope. In order to get this to work I'd have to change the way the source is implemented so that it was mart enough to handle different scopes. This has been added to the backlog: https://github.com/overmindtech/aws-source/issues/68

func NewRoleSource

func NewRoleSource(config aws.Config, accountID string, region string, limit *sources.LimitBucket) *sources.GetListSource[*RoleDetails, IAMClient, *iam.Options]

func NewUserSource

func NewUserSource(config aws.Config, accountID string, region string, limit *sources.LimitBucket) *sources.GetListSource[*UserDetails, IAMClient, *iam.Options]

Types

type PolicyDetails

type PolicyDetails struct {
	Policy       *types.Policy
	PolicyGroups []types.PolicyGroup
	PolicyRoles  []types.PolicyRole
	PolicyUsers  []types.PolicyUser
}

type RoleDetails

type RoleDetails struct {
	Role             *types.Role
	EmbeddedPolicies []embeddedPolicy
	AttachedPolicies []types.AttachedPolicy
}

type UserDetails

type UserDetails struct {
	User       *types.User
	UserGroups []types.Group
}

Jump to

Keyboard shortcuts

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