awscognito

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Hexa

Amazon Providers - Cognito Client

This package is shared between awsapigwProvider and the cognitoProvider. It is used to connect to a AWS to obtain data from Cognito services.

The awscognito package provides and implements the following interface:

type CognitoClient interface {
	ListUserPools() (apps []policyprovider.ApplicationInfo, err error)
	GetGroups(userPoolId string) (map[string]string, error)
	GetMembersAssignedTo(appInfo policyprovider.ApplicationInfo, groupName string) ([]string, error)
	SetGroupsAssignedTo(groupName string, members []string, applicationInfo policyprovider.ApplicationInfo) error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CognitoClient

type CognitoClient interface {
	ListUserPools() (apps []policyprovider.ApplicationInfo, err error)
	GetGroups(userPoolId string) (map[string]string, error)
	GetMembersAssignedTo(appInfo policyprovider.ApplicationInfo, groupName string) ([]string, error)
	SetGroupsAssignedTo(groupName string, members []string, applicationInfo policyprovider.ApplicationInfo) error
}

func NewCognitoClient

func NewCognitoClient(key []byte, opt awscommon.AWSClientOptions) (CognitoClient, error)

Jump to

Keyboard shortcuts

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