amazonka-cognito-idp-1.6.0: 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 # 
Data AdminListGroupsForUser Source # 

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 # 
Generic AdminListGroupsForUser Source # 
Hashable AdminListGroupsForUser Source # 
ToJSON AdminListGroupsForUser Source # 
NFData AdminListGroupsForUser Source # 

Methods

rnf :: AdminListGroupsForUser -> () #

AWSRequest AdminListGroupsForUser Source # 
ToHeaders AdminListGroupsForUser Source # 
ToPath AdminListGroupsForUser Source # 
ToQuery AdminListGroupsForUser Source # 
type Rep AdminListGroupsForUser Source # 
type Rep AdminListGroupsForUser = D1 * (MetaData "AdminListGroupsForUser" "Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "AdminListGroupsForUser'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_algfuNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_algfuLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_algfuUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Sensitive Text))) (S1 * (MetaSel (Just Symbol "_algfuUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs AdminListGroupsForUser Source # 

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 # 
Data AdminListGroupsForUserResponse Source # 

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 # 
Show AdminListGroupsForUserResponse Source # 
Generic AdminListGroupsForUserResponse Source # 
NFData AdminListGroupsForUserResponse Source # 
type Rep AdminListGroupsForUserResponse Source # 
type Rep AdminListGroupsForUserResponse = D1 * (MetaData "AdminListGroupsForUserResponse" "Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "AdminListGroupsForUserResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_algfursGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [GroupType]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_algfursNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_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.