Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists details about all member accounts for the current Security Hub administrator account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
This operation returns paginated results.
Synopsis
- data ListMembers = ListMembers' {}
- newListMembers :: ListMembers
- listMembers_onlyAssociated :: Lens' ListMembers (Maybe Bool)
- listMembers_nextToken :: Lens' ListMembers (Maybe Text)
- listMembers_maxResults :: Lens' ListMembers (Maybe Natural)
- data ListMembersResponse = ListMembersResponse' {}
- newListMembersResponse :: Int -> ListMembersResponse
- listMembersResponse_members :: Lens' ListMembersResponse (Maybe [Member])
- listMembersResponse_nextToken :: Lens' ListMembersResponse (Maybe Text)
- listMembersResponse_httpStatus :: Lens' ListMembersResponse Int
Creating a Request
data ListMembers Source #
See: newListMembers
smart constructor.
ListMembers' | |
|
Instances
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:onlyAssociated:ListMembers'
, listMembers_onlyAssociated
- Specifies which member accounts to include in the response based on
their relationship status with the administrator account. The default
value is TRUE
.
If OnlyAssociated
is set to TRUE
, the response includes member
accounts whose relationship status with the administrator account is set
to ENABLED
.
If OnlyAssociated
is set to FALSE
, the response includes all
existing member accounts.
$sel:nextToken:ListMembers'
, listMembers_nextToken
- The token that is required for pagination. On your first call to the
ListMembers
operation, set the value of this parameter to NULL
.
For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
$sel:maxResults:ListMembers'
, listMembers_maxResults
- The maximum number of items to return in the response.
Request Lenses
listMembers_onlyAssociated :: Lens' ListMembers (Maybe Bool) Source #
Specifies which member accounts to include in the response based on
their relationship status with the administrator account. The default
value is TRUE
.
If OnlyAssociated
is set to TRUE
, the response includes member
accounts whose relationship status with the administrator account is set
to ENABLED
.
If OnlyAssociated
is set to FALSE
, the response includes all
existing member accounts.
listMembers_nextToken :: Lens' ListMembers (Maybe Text) Source #
The token that is required for pagination. On your first call to the
ListMembers
operation, set the value of this parameter to NULL
.
For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
listMembers_maxResults :: Lens' ListMembers (Maybe Natural) Source #
The maximum number of items to return in the response.
Destructuring the Response
data ListMembersResponse Source #
See: newListMembersResponse
smart constructor.
Instances
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
- Member details returned by the operation.
$sel:nextToken:ListMembers'
, listMembersResponse_nextToken
- The pagination token to use to request the next page of results.
$sel:httpStatus:ListMembersResponse'
, listMembersResponse_httpStatus
- The response's http status code.
Response Lenses
listMembersResponse_members :: Lens' ListMembersResponse (Maybe [Member]) Source #
Member details returned by the operation.
listMembersResponse_nextToken :: Lens' ListMembersResponse (Maybe Text) Source #
The pagination token to use to request the next page of results.
listMembersResponse_httpStatus :: Lens' ListMembersResponse Int Source #
The response's http status code.