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 |
Returns the details for the Security Hub member accounts for the specified account IDs.
An administrator account can be either the delegated Security Hub administrator account for an organization or an administrator account that enabled Security Hub manually.
The results include both member accounts that are managed using Organizations and accounts that were invited manually.
Synopsis
- data GetMembers = GetMembers' {
- accountIds :: [Text]
- newGetMembers :: GetMembers
- getMembers_accountIds :: Lens' GetMembers [Text]
- data GetMembersResponse = GetMembersResponse' {
- members :: Maybe [Member]
- unprocessedAccounts :: Maybe [Result]
- httpStatus :: Int
- newGetMembersResponse :: Int -> GetMembersResponse
- getMembersResponse_members :: Lens' GetMembersResponse (Maybe [Member])
- getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse (Maybe [Result])
- getMembersResponse_httpStatus :: Lens' GetMembersResponse Int
Creating a Request
data GetMembers Source #
See: newGetMembers
smart constructor.
GetMembers' | |
|
Instances
newGetMembers :: GetMembers Source #
Create a value of GetMembers
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:accountIds:GetMembers'
, getMembers_accountIds
- The list of account IDs for the Security Hub member accounts to return
the details for.
Request Lenses
getMembers_accountIds :: Lens' GetMembers [Text] Source #
The list of account IDs for the Security Hub member accounts to return the details for.
Destructuring the Response
data GetMembersResponse Source #
See: newGetMembersResponse
smart constructor.
GetMembersResponse' | |
|
Instances
newGetMembersResponse Source #
Create a value of GetMembersResponse
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:GetMembersResponse'
, getMembersResponse_members
- The list of details about the Security Hub member accounts.
$sel:unprocessedAccounts:GetMembersResponse'
, getMembersResponse_unprocessedAccounts
- The list of Amazon Web Services accounts that could not be processed.
For each account, the list includes the account ID and the email
address.
$sel:httpStatus:GetMembersResponse'
, getMembersResponse_httpStatus
- The response's http status code.
Response Lenses
getMembersResponse_members :: Lens' GetMembersResponse (Maybe [Member]) Source #
The list of details about the Security Hub member accounts.
getMembersResponse_unprocessedAccounts :: Lens' GetMembersResponse (Maybe [Result]) Source #
The list of Amazon Web Services accounts that could not be processed. For each account, the list includes the account ID and the email address.
getMembersResponse_httpStatus :: Lens' GetMembersResponse Int Source #
The response's http status code.