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

Amazonka.SSO.ListAccountRoles

Description

Lists all roles that are assigned to the user for a given AWS account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAccountRoles Source #

See: newListAccountRoles smart constructor.

Constructors

ListAccountRoles' 

Fields

Instances

Instances details
Eq ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Show ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Generic ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Associated Types

type Rep ListAccountRoles :: Type -> Type #

NFData ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Methods

rnf :: ListAccountRoles -> () #

Hashable ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

AWSPager ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

AWSRequest ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Associated Types

type AWSResponse ListAccountRoles #

ToHeaders ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

ToPath ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

ToQuery ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

type Rep ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

type Rep ListAccountRoles = D1 ('MetaData "ListAccountRoles" "Amazonka.SSO.ListAccountRoles" "libZSservicesZSamazonka-ssoZSamazonka-sso" 'False) (C1 ('MetaCons "ListAccountRoles'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListAccountRoles Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

newListAccountRoles Source #

Create a value of ListAccountRoles 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:nextToken:ListAccountRoles', listAccountRoles_nextToken - The page token from the previous response output when you request subsequent pages.

$sel:maxResults:ListAccountRoles', listAccountRoles_maxResults - The number of items that clients can request per page.

$sel:accessToken:ListAccountRoles', listAccountRoles_accessToken - The token issued by the CreateToken API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.

$sel:accountId:ListAccountRoles', listAccountRoles_accountId - The identifier for the AWS account that is assigned to the user.

Request Lenses

listAccountRoles_nextToken :: Lens' ListAccountRoles (Maybe Text) Source #

The page token from the previous response output when you request subsequent pages.

listAccountRoles_maxResults :: Lens' ListAccountRoles (Maybe Natural) Source #

The number of items that clients can request per page.

listAccountRoles_accessToken :: Lens' ListAccountRoles Text Source #

The token issued by the CreateToken API call. For more information, see CreateToken in the AWS SSO OIDC API Reference Guide.

listAccountRoles_accountId :: Lens' ListAccountRoles Text Source #

The identifier for the AWS account that is assigned to the user.

Destructuring the Response

data ListAccountRolesResponse Source #

See: newListAccountRolesResponse smart constructor.

Constructors

ListAccountRolesResponse' 

Fields

  • roleList :: Maybe [RoleInfo]

    A paginated response with the list of roles and the next token if more results are available.

  • nextToken :: Maybe Text

    The page token client that is used to retrieve the list of accounts.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Read ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Show ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Generic ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

Associated Types

type Rep ListAccountRolesResponse :: Type -> Type #

NFData ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

type Rep ListAccountRolesResponse Source # 
Instance details

Defined in Amazonka.SSO.ListAccountRoles

type Rep ListAccountRolesResponse = D1 ('MetaData "ListAccountRolesResponse" "Amazonka.SSO.ListAccountRoles" "libZSservicesZSamazonka-ssoZSamazonka-sso" 'False) (C1 ('MetaCons "ListAccountRolesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RoleInfo])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAccountRolesResponse Source #

Create a value of ListAccountRolesResponse 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:roleList:ListAccountRolesResponse', listAccountRolesResponse_roleList - A paginated response with the list of roles and the next token if more results are available.

$sel:nextToken:ListAccountRoles', listAccountRolesResponse_nextToken - The page token client that is used to retrieve the list of accounts.

$sel:httpStatus:ListAccountRolesResponse', listAccountRolesResponse_httpStatus - The response's http status code.

Response Lenses

listAccountRolesResponse_roleList :: Lens' ListAccountRolesResponse (Maybe [RoleInfo]) Source #

A paginated response with the list of roles and the next token if more results are available.

listAccountRolesResponse_nextToken :: Lens' ListAccountRolesResponse (Maybe Text) Source #

The page token client that is used to retrieve the list of accounts.