iam

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToGroup

func AddUserToGroup(cfg aws.Config, userName, groupName string) (*iam.AddUserToGroupOutput, error)

func CreateAccessKey

func CreateAccessKey(cfg aws.Config, userName string) (*iam.CreateAccessKeyOutput, error)

func CreateUser

func CreateUser(cfg aws.Config, input *iam.CreateUserInput) (*iam.CreateUserOutput, error)

func DeleteAccessKey

func DeleteAccessKey(cfg aws.Config, userName, keyId string) (*iam.DeleteAccessKeyOutput, error)

func DeleteUser

func DeleteUser(cfg aws.Config, input *iam.DeleteUserInput) (*iam.DeleteUserOutput, error)

func GetAccountSummary

func GetAccountSummary(cfg aws.Config) (*iam.GetAccountSummaryOutput, error)

General account

func ListAccessKeys

func ListAccessKeys(cfg aws.Config, userName string) (*iam.ListAccessKeysOutput, error)

func ListUsers

func ListUsers(cfg aws.Config, input *iam.ListUsersInput) (*iam.ListUsersOutput, error)

func WriteFile

func WriteFile(file string, data []byte) error

Types

type I

type I struct {
	// contains filtered or unexported fields
}

func NewI

func NewI(userName string) *I

func (*I) AccessReport

func (i *I) AccessReport() (*iam.GetCredentialReportOutput, error)

func (*I) AttachRolePolicy added in v0.0.3

func (i *I) AttachRolePolicy(roleName, policyArn string) (*iam.AttachRolePolicyOutput, error)

func (*I) CreateAccessKey

func (i *I) CreateAccessKey() (*iam.CreateAccessKeyOutput, error)

func (*I) CreateRole added in v0.0.3

func (i *I) CreateRole(input *iam.CreateRoleInput) (*iam.CreateRoleOutput, error)

func (*I) DetachRolePolicy added in v0.0.3

func (i *I) DetachRolePolicy(roleName, policyArn string) (*iam.DetachRolePolicyOutput, error)

func (*I) GetRole

func (i *I) GetRole(role string) (*string, error)

func (*I) ListAccessKeys

func (i *I) ListAccessKeys() (*iam.ListAccessKeysOutput, error)

func (*I) ListAttachedGroupPolicies

func (i *I) ListAttachedGroupPolicies(group string) (*iam.ListAttachedGroupPoliciesOutput, error)

func (*I) ListRoles

func (i *I) ListRoles() (*iam.ListRolesOutput, error)

Jump to

Keyboard shortcuts

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