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 AWS accounts (created as members of the current AWS account by CreateMembers) to enable GuardDuty, and allow the current AWS account to view and manage these accounts' findings on their behalf as the GuardDuty administrator account.
Synopsis
- data InviteMembers = InviteMembers' {}
- newInviteMembers :: Text -> NonEmpty Text -> InviteMembers
- inviteMembers_disableEmailNotification :: Lens' InviteMembers (Maybe Bool)
- inviteMembers_message :: Lens' InviteMembers (Maybe Text)
- inviteMembers_detectorId :: Lens' InviteMembers Text
- inviteMembers_accountIds :: Lens' InviteMembers (NonEmpty Text)
- data InviteMembersResponse = InviteMembersResponse' {}
- newInviteMembersResponse :: Int -> InviteMembersResponse
- inviteMembersResponse_httpStatus :: Lens' InviteMembersResponse Int
- inviteMembersResponse_unprocessedAccounts :: Lens' InviteMembersResponse [UnprocessedAccount]
Creating a Request
data InviteMembers Source #
See: newInviteMembers
smart constructor.
InviteMembers' | |
|
Instances
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:disableEmailNotification:InviteMembers'
, inviteMembers_disableEmailNotification
- A Boolean value that specifies whether you want to disable email
notification to the accounts that you are inviting to GuardDuty as
members.
$sel:message:InviteMembers'
, inviteMembers_message
- The invitation message that you want to send to the accounts that
you're inviting to GuardDuty as members.
$sel:detectorId:InviteMembers'
, inviteMembers_detectorId
- The unique ID of the detector of the GuardDuty account that you want to
invite members with.
$sel:accountIds:InviteMembers'
, inviteMembers_accountIds
- A list of account IDs of the accounts that you want to invite to
GuardDuty as members.
Request Lenses
inviteMembers_disableEmailNotification :: Lens' InviteMembers (Maybe Bool) Source #
A Boolean value that specifies whether you want to disable email notification to the accounts that you are inviting to GuardDuty as members.
inviteMembers_message :: Lens' InviteMembers (Maybe Text) Source #
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
inviteMembers_detectorId :: Lens' InviteMembers Text Source #
The unique ID of the detector of the GuardDuty account that you want to invite members with.
inviteMembers_accountIds :: Lens' InviteMembers (NonEmpty Text) Source #
A list of account IDs of the accounts that you want to invite to GuardDuty 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:httpStatus:InviteMembersResponse'
, inviteMembersResponse_httpStatus
- The response's http status code.
$sel:unprocessedAccounts:InviteMembersResponse'
, inviteMembersResponse_unprocessedAccounts
- A list of objects that contain the unprocessed account and a result
string that explains why it was unprocessed.
Response Lenses
inviteMembersResponse_httpStatus :: Lens' InviteMembersResponse Int Source #
The response's http status code.
inviteMembersResponse_unprocessedAccounts :: Lens' InviteMembersResponse [UnprocessedAccount] Source #
A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.