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 |
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.
This operation is only used to invite accounts that do not belong to an organization. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use
the CreateMembers
action to create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated from the member account.
Synopsis
- data InviteMembers = InviteMembers' {
- accountIds :: [Text]
- newInviteMembers :: InviteMembers
- inviteMembers_accountIds :: Lens' InviteMembers [Text]
- data InviteMembersResponse = InviteMembersResponse' {
- unprocessedAccounts :: Maybe [Result]
- httpStatus :: Int
- newInviteMembersResponse :: Int -> InviteMembersResponse
- inviteMembersResponse_unprocessedAccounts :: Lens' InviteMembersResponse (Maybe [Result])
- inviteMembersResponse_httpStatus :: Lens' InviteMembersResponse Int
Creating a Request
data InviteMembers Source #
See: newInviteMembers
smart constructor.
InviteMembers' | |
|
Instances
newInviteMembers :: InviteMembers Source #
Create a value of InviteMembers
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:InviteMembers'
, inviteMembers_accountIds
- The list of account IDs of the Amazon Web Services accounts to invite to
Security Hub as members.
Request Lenses
inviteMembers_accountIds :: Lens' InviteMembers [Text] Source #
The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.
Destructuring the Response
data InviteMembersResponse Source #
See: newInviteMembersResponse
smart constructor.
InviteMembersResponse' | |
|
Instances
newInviteMembersResponse Source #
Create a value of InviteMembersResponse
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:unprocessedAccounts:InviteMembersResponse'
, inviteMembersResponse_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:InviteMembersResponse'
, inviteMembersResponse_httpStatus
- The response's http status code.
Response Lenses
inviteMembersResponse_unprocessedAccounts :: Lens' InviteMembersResponse (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.
inviteMembersResponse_httpStatus :: Lens' InviteMembersResponse Int Source #
The response's http status code.