amazonka-cognito-idp-1.6.1: Amazon Cognito Identity Provider SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Contents

Description

Lists the groups that the user belongs to.

Requires developer credentials.

Synopsis

Creating a Request

adminListGroupsForUser Source #

Creates a value of AdminListGroupsForUser with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • algfuNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
  • algfuLimit - The limit of the request to list groups.
  • algfuUsername - The username for the user.
  • algfuUserPoolId - The user pool ID for the user pool.

data AdminListGroupsForUser Source #

See: adminListGroupsForUser smart constructor.

Instances
Eq AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Data AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdminListGroupsForUser -> c AdminListGroupsForUser #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdminListGroupsForUser #

toConstr :: AdminListGroupsForUser -> Constr #

dataTypeOf :: AdminListGroupsForUser -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AdminListGroupsForUser) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminListGroupsForUser) #

gmapT :: (forall b. Data b => b -> b) -> AdminListGroupsForUser -> AdminListGroupsForUser #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdminListGroupsForUser -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdminListGroupsForUser -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdminListGroupsForUser -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdminListGroupsForUser -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdminListGroupsForUser -> m AdminListGroupsForUser #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminListGroupsForUser -> m AdminListGroupsForUser #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminListGroupsForUser -> m AdminListGroupsForUser #

Show AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Generic AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type Rep AdminListGroupsForUser :: Type -> Type #

Hashable AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

ToJSON AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

AWSRequest AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type Rs AdminListGroupsForUser :: Type #

ToHeaders AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

ToPath AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

ToQuery AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

NFData AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Methods

rnf :: AdminListGroupsForUser -> () #

type Rep AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUser = D1 (MetaData "AdminListGroupsForUser" "Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "AdminListGroupsForUser'" PrefixI True) ((S1 (MetaSel (Just "_algfuNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_algfuLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_algfuUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 (MetaSel (Just "_algfuUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AdminListGroupsForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Request Lenses

algfuNextToken :: Lens' AdminListGroupsForUser (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

algfuLimit :: Lens' AdminListGroupsForUser (Maybe Natural) Source #

The limit of the request to list groups.

algfuUsername :: Lens' AdminListGroupsForUser Text Source #

The username for the user.

algfuUserPoolId :: Lens' AdminListGroupsForUser Text Source #

The user pool ID for the user pool.

Destructuring the Response

adminListGroupsForUserResponse Source #

Creates a value of AdminListGroupsForUserResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • algfursGroups - The groups that the user belongs to.
  • algfursNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
  • algfursResponseStatus - -- | The response status code.

data AdminListGroupsForUserResponse Source #

See: adminListGroupsForUserResponse smart constructor.

Instances
Eq AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Data AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdminListGroupsForUserResponse -> c AdminListGroupsForUserResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdminListGroupsForUserResponse #

toConstr :: AdminListGroupsForUserResponse -> Constr #

dataTypeOf :: AdminListGroupsForUserResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AdminListGroupsForUserResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminListGroupsForUserResponse) #

gmapT :: (forall b. Data b => b -> b) -> AdminListGroupsForUserResponse -> AdminListGroupsForUserResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdminListGroupsForUserResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdminListGroupsForUserResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdminListGroupsForUserResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdminListGroupsForUserResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdminListGroupsForUserResponse -> m AdminListGroupsForUserResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminListGroupsForUserResponse -> m AdminListGroupsForUserResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminListGroupsForUserResponse -> m AdminListGroupsForUserResponse #

Read AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Show AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Generic AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type Rep AdminListGroupsForUserResponse :: Type -> Type #

NFData AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUserResponse = D1 (MetaData "AdminListGroupsForUserResponse" "Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "AdminListGroupsForUserResponse'" PrefixI True) (S1 (MetaSel (Just "_algfursGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupType])) :*: (S1 (MetaSel (Just "_algfursNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_algfursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType] Source #

The groups that the user belongs to.

algfursNextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.