Documentation ¶
Overview ¶
Package iam contains code for exporting identity access manager configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFetchingGroups is returned when fetching groups fails ErrFetchingGroups = errors.New("unable to fetch groups under this account") // ErrFetchingRoles is returned when fetching roles fails ErrFetchingRoles = errors.New("unable to fetch roles under this account") )
View Source
var ( // ErrFetchingUsersWithinGroup is returned when fetching users within group fails ErrFetchingUsersWithinGroup = errors.New("unable to fetch users within group") // ErrFetchingRolesWithinGroup is returned when fetching roles within group fails ErrFetchingRolesWithinGroup = errors.New("unable to fetch roles within group") )
View Source
var ( // ErrFetchingUser is returned when fetching user fails ErrFetchingUser = errors.New("unable to fetch user by email") // ErrUserNotExist is returned when user does not exist ErrUserNotExist = errors.New("user does not exist with given email") // ErrMarshalUserAuthGrants is returned when marshal user auth grants failed ErrMarshalUserAuthGrants = errors.New("unable to marshal AuthGrants ") )
View Source
var ( // ErrFetchingRole is returned when fetching role fails ErrFetchingRole = errors.New("unable to fetch role by role_id") )
View Source
var ( // ErrFetchingUsers is returned when fetching users fails ErrFetchingUsers = errors.New("unable to fetch users under this account") )
Functions ¶
func CmdCreateIAM ¶
func CmdCreateIAM(_ *cli.Context) error
CmdCreateIAM is an entrypoint to create-iam command. This is only for action validation purpose
func CmdCreateIAMAll ¶
func CmdCreateIAMAll(c *cli.Context) error
CmdCreateIAMAll is an entrypoint to create-iam all command
func CmdCreateIAMGroup ¶
func CmdCreateIAMGroup(c *cli.Context) error
CmdCreateIAMGroup is an entrypoint to create-iam group command
func CmdCreateIAMRole ¶
func CmdCreateIAMRole(c *cli.Context) error
CmdCreateIAMRole is an entrypoint to create-iam role command
func CmdCreateIAMUser ¶
func CmdCreateIAMUser(c *cli.Context) error
CmdCreateIAMUser is an entrypoint to create-iam user command
Types ¶
type TFData ¶
type TFData struct { TFUsers []*TFUser TFRoles []TFRole TFGroups []TFGroup Section string Subcommand string }
TFData represents the iam data used in templates
type TFUser ¶
type TFUser struct { TFUserBasicInfo IsLocked bool AuthGrants string }
TFUser represents the user data used in templates
type TFUserBasicInfo ¶
type TFUserBasicInfo struct { ID string FirstName string LastName string Email string Country string Phone string TFAEnabled bool ContactType string JobTitle string TimeZone string SecondaryEmail string MobilePhone string Address string City string State string ZipCode string PreferredLanguage string SessionTimeOut *int }
TFUserBasicInfo represents user basic info data used in templates
Click to show internal directories.
Click to hide internal directories.