amazonka-rolesanywhere-2.0: Amazon IAM Roles Anywhere 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.RolesAnywhere.ListSubjects

Description

Lists the subjects in the authenticated account and Amazon Web Services Region.

Required permissions: rolesanywhere:ListSubjects.

This operation returns paginated results.

Synopsis

Creating a Request

data ListSubjects Source #

See: newListSubjects smart constructor.

Constructors

ListSubjects' 

Fields

  • nextToken :: Maybe Text

    A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.

  • pageSize :: Maybe Int

    The number of resources in the paginated list.

Instances

Instances details
ToHeaders ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

ToPath ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

ToQuery ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

AWSPager ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

AWSRequest ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Associated Types

type AWSResponse ListSubjects #

Generic ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Associated Types

type Rep ListSubjects :: Type -> Type #

Read ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Show ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

NFData ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Methods

rnf :: ListSubjects -> () #

Eq ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Hashable ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

type AWSResponse ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

type Rep ListSubjects Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

type Rep ListSubjects = D1 ('MetaData "ListSubjects" "Amazonka.RolesAnywhere.ListSubjects" "amazonka-rolesanywhere-2.0-7BPe9kXny717lI0izhhqXT" 'False) (C1 ('MetaCons "ListSubjects'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newListSubjects :: ListSubjects Source #

Create a value of ListSubjects 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:

ListSubjects, listSubjects_nextToken - A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.

ListSubjects, listSubjects_pageSize - The number of resources in the paginated list.

Request Lenses

listSubjects_nextToken :: Lens' ListSubjects (Maybe Text) Source #

A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.

listSubjects_pageSize :: Lens' ListSubjects (Maybe Int) Source #

The number of resources in the paginated list.

Destructuring the Response

data ListSubjectsResponse Source #

See: newListSubjectsResponse smart constructor.

Constructors

ListSubjectsResponse' 

Fields

  • nextToken :: Maybe Text

    A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.

  • subjects :: Maybe [SubjectSummary]

    A list of subjects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Associated Types

type Rep ListSubjectsResponse :: Type -> Type #

Read ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Show ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

NFData ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

Methods

rnf :: ListSubjectsResponse -> () #

Eq ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

type Rep ListSubjectsResponse Source # 
Instance details

Defined in Amazonka.RolesAnywhere.ListSubjects

type Rep ListSubjectsResponse = D1 ('MetaData "ListSubjectsResponse" "Amazonka.RolesAnywhere.ListSubjects" "amazonka-rolesanywhere-2.0-7BPe9kXny717lI0izhhqXT" 'False) (C1 ('MetaCons "ListSubjectsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subjects") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SubjectSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListSubjectsResponse Source #

Create a value of ListSubjectsResponse 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:

ListSubjects, listSubjectsResponse_nextToken - A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.

$sel:subjects:ListSubjectsResponse', listSubjectsResponse_subjects - A list of subjects.

$sel:httpStatus:ListSubjectsResponse', listSubjectsResponse_httpStatus - The response's http status code.

Response Lenses

listSubjectsResponse_nextToken :: Lens' ListSubjectsResponse (Maybe Text) Source #

A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.