amazonka-maciev2-2.0: Amazon Macie 2 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.MacieV2.ListMembers

Description

Retrieves information about the accounts that are associated with an Amazon Macie administrator account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListMembers Source #

See: newListMembers smart constructor.

Constructors

ListMembers' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of items to include in each page of a paginated response.

  • nextToken :: Maybe Text

    The nextToken string that specifies which page of results to return in a paginated response.

  • onlyAssociated :: Maybe Text

    Specifies which accounts to include in the response, based on the status of an account's relationship with the administrator account. By default, the response includes only current member accounts. To include all accounts, set this value to false.

Instances

Instances details
ToHeaders ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Methods

toHeaders :: ListMembers -> [Header] #

ToPath ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

ToQuery ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

AWSPager ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

AWSRequest ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Associated Types

type AWSResponse ListMembers #

Generic ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Associated Types

type Rep ListMembers :: Type -> Type #

Read ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Show ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

NFData ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Methods

rnf :: ListMembers -> () #

Eq ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Hashable ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

type AWSResponse ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

type Rep ListMembers Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

type Rep ListMembers = D1 ('MetaData "ListMembers" "Amazonka.MacieV2.ListMembers" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "ListMembers'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "onlyAssociated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListMembers :: ListMembers Source #

Create a value of ListMembers 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:maxResults:ListMembers', listMembers_maxResults - The maximum number of items to include in each page of a paginated response.

ListMembers, listMembers_nextToken - The nextToken string that specifies which page of results to return in a paginated response.

$sel:onlyAssociated:ListMembers', listMembers_onlyAssociated - Specifies which accounts to include in the response, based on the status of an account's relationship with the administrator account. By default, the response includes only current member accounts. To include all accounts, set this value to false.

Request Lenses

listMembers_maxResults :: Lens' ListMembers (Maybe Natural) Source #

The maximum number of items to include in each page of a paginated response.

listMembers_nextToken :: Lens' ListMembers (Maybe Text) Source #

The nextToken string that specifies which page of results to return in a paginated response.

listMembers_onlyAssociated :: Lens' ListMembers (Maybe Text) Source #

Specifies which accounts to include in the response, based on the status of an account's relationship with the administrator account. By default, the response includes only current member accounts. To include all accounts, set this value to false.

Destructuring the Response

data ListMembersResponse Source #

See: newListMembersResponse smart constructor.

Constructors

ListMembersResponse' 

Fields

  • members :: Maybe [Member]

    An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.

  • nextToken :: Maybe Text

    The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Associated Types

type Rep ListMembersResponse :: Type -> Type #

Read ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Show ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

NFData ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

Methods

rnf :: ListMembersResponse -> () #

Eq ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

type Rep ListMembersResponse Source # 
Instance details

Defined in Amazonka.MacieV2.ListMembers

type Rep ListMembersResponse = D1 ('MetaData "ListMembersResponse" "Amazonka.MacieV2.ListMembers" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "ListMembersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Member])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListMembersResponse Source #

Create a value of ListMembersResponse 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:members:ListMembersResponse', listMembersResponse_members - An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.

ListMembers, listMembersResponse_nextToken - The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

$sel:httpStatus:ListMembersResponse', listMembersResponse_httpStatus - The response's http status code.

Response Lenses

listMembersResponse_members :: Lens' ListMembersResponse (Maybe [Member]) Source #

An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.

listMembersResponse_nextToken :: Lens' ListMembersResponse (Maybe Text) Source #

The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.