iam

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAMOption

type IAMOption func(*Iam)

func WithSession

func WithSession(sess *session.Session) IAMOption

type Iam added in v0.23.0

type Iam struct {
	Service iamiface.IAMAPI
	// contains filtered or unexported fields
}

Iam is a wrapper around the aws IAM service with some default config info

func New

func New(opts ...IAMOption) *Iam

New creates a new Iam

func (*Iam) DeleteInstanceProfile added in v0.23.0

func (i *Iam) DeleteInstanceProfile(ctx context.Context, input *iam.DeleteInstanceProfileInput) error

func (*Iam) DeleteRole added in v0.23.0

func (i *Iam) DeleteRole(ctx context.Context, input *iam.DeleteRoleInput) error

func (*Iam) DeleteRolePolicy added in v0.23.0

func (i *Iam) DeleteRolePolicy(ctx context.Context, input *iam.DeleteRolePolicyInput) error

func (*Iam) DetachRolePolicy added in v0.23.0

func (i *Iam) DetachRolePolicy(ctx context.Context, input *iam.DetachRolePolicyInput) error

func (*Iam) GetInstanceProfile added in v0.23.0

func (i *Iam) GetInstanceProfile(ctx context.Context, input *iam.GetInstanceProfileInput) (*iam.InstanceProfile, error)

func (*Iam) ListAttachedRolePolicies added in v0.23.0

func (i *Iam) ListAttachedRolePolicies(ctx context.Context, input *iam.ListAttachedRolePoliciesInput) ([]*iam.AttachedPolicy, error)

func (*Iam) ListRolePolicies added in v0.23.0

func (i *Iam) ListRolePolicies(ctx context.Context, input *iam.ListRolePoliciesInput) ([]*string, error)

func (*Iam) RemoveRoleFromInstanceProfile added in v0.23.0

func (i *Iam) RemoveRoleFromInstanceProfile(ctx context.Context, input *iam.RemoveRoleFromInstanceProfileInput) error

Jump to

Keyboard shortcuts

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