Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Role ¶
type Role struct { Account Account Arn string Name string PrincipalArn string SamlAssertion string }
func (Role) Login ¶
func (role Role) Login() (Credentials, error)
func (Role) LoginWithDuration ¶ added in v1.0.4
func (role Role) LoginWithDuration(duration time.Duration) (Credentials, error)
type Roles ¶
type Roles []Role
func (Roles) RoleByRoleArn ¶
Returns role specified by ARN e.g. 'arn:aws:iam::123456789:role/Admin', or error if role does not exist
func (Roles) RolesByAccountId ¶
Returns all roles that are under specified account id
Click to show internal directories.
Click to hide internal directories.