amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Description

Lists the groups that the user belongs to.

Calling this action requires developer credentials.

This operation returns paginated results.

Synopsis

Creating a Request

data AdminListGroupsForUser Source #

See: newAdminListGroupsForUser smart constructor.

Constructors

AdminListGroupsForUser' 

Fields

Instances

Instances details
ToJSON AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

ToHeaders AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

ToPath AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

ToQuery AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

AWSPager AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

AWSRequest AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type AWSResponse AdminListGroupsForUser #

Generic AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type Rep AdminListGroupsForUser :: Type -> Type #

Show AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

NFData AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Methods

rnf :: AdminListGroupsForUser -> () #

Eq AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Hashable AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

type AWSResponse AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUser = D1 ('MetaData "AdminListGroupsForUser" "Amazonka.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminListGroupsForUser'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAdminListGroupsForUser Source #

Create a value of AdminListGroupsForUser with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:limit:AdminListGroupsForUser', adminListGroupsForUser_limit - The limit of the request to list groups.

AdminListGroupsForUser, adminListGroupsForUser_nextToken - 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.

AdminListGroupsForUser, adminListGroupsForUser_username - The username for the user.

AdminListGroupsForUser, adminListGroupsForUser_userPoolId - The user pool ID for the user pool.

Request Lenses

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

The limit of the request to list groups.

adminListGroupsForUser_nextToken :: 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.

Destructuring the Response

data AdminListGroupsForUserResponse Source #

See: newAdminListGroupsForUserResponse smart constructor.

Constructors

AdminListGroupsForUserResponse' 

Fields

  • groups :: Maybe [GroupType]

    The groups that the user belongs to.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Associated Types

type Rep AdminListGroupsForUserResponse :: Type -> Type #

Read AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Show AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

NFData AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

Eq AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminListGroupsForUser

type Rep AdminListGroupsForUserResponse = D1 ('MetaData "AdminListGroupsForUserResponse" "Amazonka.CognitoIdentityProvider.AdminListGroupsForUser" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminListGroupsForUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupType])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newAdminListGroupsForUserResponse Source #

Create a value of AdminListGroupsForUserResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:groups:AdminListGroupsForUserResponse', adminListGroupsForUserResponse_groups - The groups that the user belongs to.

AdminListGroupsForUser, adminListGroupsForUserResponse_nextToken - 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.

$sel:httpStatus:AdminListGroupsForUserResponse', adminListGroupsForUserResponse_httpStatus - The response's http status code.

Response Lenses

adminListGroupsForUserResponse_nextToken :: 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.