Documentation ¶
Index ¶
- func CreateRole(params *iam.CreateRoleInput, sess *session.Session) (*iam.CreateRoleOutput, error)
- func GetProfileAccountAuthInfo(sess *session.Session) ([]iam.GroupDetail, []iam.UserDetail, error)
- func GetProfileUsers(sess *session.Session) ([]iam.User, error)
- func UpdateProfilesRolesSessionDuration(filename string, duration int64) error
- func UpdateUserPassword(user UserUpdate, sess *session.Session) (string, error)
- func WriteProfilesPolicies(profilesPolicies ProfilesPolicies) error
- func WriteProfilesRoles(profilesRoles ProfilesRoles) error
- func WriteProfilesUsers(profilesUsers ProfilesUsers) error
- type Document
- type ProfilePolicies
- type ProfileRoles
- type ProfileUsers
- type ProfilesPolicies
- type ProfilesRoles
- type ProfilesUsers
- type RoleInfo
- type Statement
- type UserUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRole ¶
func CreateRole(params *iam.CreateRoleInput, sess *session.Session) (*iam.CreateRoleOutput, error)
func GetProfileAccountAuthInfo ¶
func GetProfileAccountAuthInfo(sess *session.Session) ([]iam.GroupDetail, []iam.UserDetail, error)
func GetProfileUsers ¶
GetProfileUsers will get all the users for a given profile session
func UpdateProfilesRolesSessionDuration ¶
UpdateProfilesRoles will take a filename which should be the output of the GetProfilesRoles func The duration parameter is the new MaxSessDuration in seconds
func UpdateUserPassword ¶
func UpdateUserPassword(user UserUpdate, sess *session.Session) (string, error)
func WriteProfilesPolicies ¶
func WriteProfilesPolicies(profilesPolicies ProfilesPolicies) error
func WriteProfilesRoles ¶
func WriteProfilesRoles(profilesRoles ProfilesRoles) error
func WriteProfilesUsers ¶
func WriteProfilesUsers(profilesUsers ProfilesUsers) error
Types ¶
type ProfilePolicies ¶
type ProfilePolicies struct { AccountId string Profile string PolicyDetails []iam.ManagedPolicyDetail PolicyVersions []iam.PolicyVersion }
The Policies and PolicyVersion need to have the same index to match up for later reference
func GetProfilePolicies ¶
func GetProfilePolicies(sess *session.Session) (ProfilePolicies, error)
type ProfileRoles ¶
type ProfileUsers ¶
type ProfileUsers struct { Profile string AccountID string Users []iam.User UsersInfo []iam.UserDetail GroupsInfo []iam.GroupDetail }
type ProfilesPolicies ¶
type ProfilesPolicies []ProfilePolicies
func GetProfilesPolicies ¶
func GetProfilesPolicies(accounts []utils.AccountInfo) (ProfilesPolicies, error)
type ProfilesRoles ¶
type ProfilesRoles []ProfileRoles
func GetProfilesRoles ¶
func GetProfilesRoles(accounts []utils.AccountInfo) (ProfilesRoles, error)
GetProfilesRoles will get all of the roles in all given accounts
type ProfilesUsers ¶
type ProfilesUsers []ProfileUsers
func GetProfilesUsers ¶
func GetProfilesUsers(accounts []utils.AccountInfo) (ProfilesUsers, error)
GetProfilesUsers will get all of the users in all given accounts
type UserUpdate ¶
Click to show internal directories.
Click to hide internal directories.