Documentation ¶
Overview ¶
Package api defines CRUD actions for the Cognito Api.
Index ¶
- func GetOrganizations() (*models.GetUserOrganizationAccessOutput, error)
- type API
- func (API) GetUser(input *models.GetUserInput) (*models.GetUserOutput, error)
- func (API) GetUserOrganizationAccess(input *models.GetUserOrganizationAccessInput) (*models.GetUserOrganizationAccessOutput, error)
- func (API) InviteUser(input *models.InviteUserInput) (*models.InviteUserOutput, error)
- func (API) ResetUserPassword(input *models.ResetUserPasswordInput) error
- func (API) UpdateUser(input *models.UpdateUserInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrganizations ¶
func GetOrganizations() (*models.GetUserOrganizationAccessOutput, error)
GetOrganizations calls the organization api to fetch access related identifiers
Types ¶
type API ¶
type API struct{}
The API has receiver methods for each of the handlers.
func (API) GetUser ¶
func (API) GetUser(input *models.GetUserInput) (*models.GetUserOutput, error)
GetUser calls userGateway to get user information.
func (API) GetUserOrganizationAccess ¶
func (API) GetUserOrganizationAccess(input *models.GetUserOrganizationAccessInput) (*models.GetUserOrganizationAccessOutput, error)
GetUserOrganizationAccess calls dynamodb to get user's organization id.
func (API) InviteUser ¶
func (API) InviteUser(input *models.InviteUserInput) (*models.InviteUserOutput, error)
InviteUser adds a new user to the Cognito user pool.
func (API) ResetUserPassword ¶
func (API) ResetUserPassword(input *models.ResetUserPasswordInput) error
ResetUserPassword resets a user password.
func (API) UpdateUser ¶
func (API) UpdateUser(input *models.UpdateUserInput) error
UpdateUser modifies user attributes and roles.
Click to show internal directories.
Click to hide internal directories.