iam

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyDocument

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

type PrincipalEntry

type PrincipalEntry struct {
	AWS interface{}
}

func (PrincipalEntry) NormalizedAWS

func (e PrincipalEntry) NormalizedAWS() []string

AWS normalizes the string or []string entries in AWS principals.

type Role

type Role struct {
	Arn  *string
	Tags map[string]*string
}

func GetRole

func GetRole(iamc aws.IAMAPI, roleName *string) (*Role, error)

RoleExists returns whether profile exists

func (*Role) ConfigName

func (r *Role) ConfigName() *string

func (*Role) ProjectName

func (r *Role) ProjectName() *string

func (*Role) ServiceName

func (r *Role) ServiceName() *string

type StatementEntry

type StatementEntry struct {
	Effect    string
	Action    interface{}
	Resource  string
	Principal PrincipalEntry
}

func (StatementEntry) NormalizedAction

func (s StatementEntry) NormalizedAction() []string

Jump to

Keyboard shortcuts

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