iam

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

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