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 |
Sends an Amazon Macie membership invitation to one or more accounts.
Synopsis
- data CreateInvitations = CreateInvitations' {
- disableEmailNotification :: Maybe Bool
- message :: Maybe Text
- accountIds :: [Text]
- newCreateInvitations :: CreateInvitations
- createInvitations_disableEmailNotification :: Lens' CreateInvitations (Maybe Bool)
- createInvitations_message :: Lens' CreateInvitations (Maybe Text)
- createInvitations_accountIds :: Lens' CreateInvitations [Text]
- data CreateInvitationsResponse = CreateInvitationsResponse' {}
- newCreateInvitationsResponse :: Int -> CreateInvitationsResponse
- createInvitationsResponse_unprocessedAccounts :: Lens' CreateInvitationsResponse (Maybe [UnprocessedAccount])
- createInvitationsResponse_httpStatus :: Lens' CreateInvitationsResponse Int
Creating a Request
data CreateInvitations Source #
See: newCreateInvitations
smart constructor.
CreateInvitations' | |
|
Instances
newCreateInvitations :: CreateInvitations Source #
Create a value of CreateInvitations
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:CreateInvitations'
, createInvitations_disableEmailNotification
- Specifies whether to send an email notification to the root user of each
account that the invitation will be sent to. This notification is in
addition to an alert that the root user receives in Personal Health
Dashboard. To send an email notification to the root user of each
account, set this value to true.
$sel:message:CreateInvitations'
, createInvitations_message
- A custom message to include in the invitation. Amazon Macie adds this
message to the standard content that it sends for an invitation.
$sel:accountIds:CreateInvitations'
, createInvitations_accountIds
- An array that lists Amazon Web Services account IDs, one for each
account to send the invitation to.
Request Lenses
createInvitations_disableEmailNotification :: Lens' CreateInvitations (Maybe Bool) Source #
Specifies whether to send an email notification to the root user of each account that the invitation will be sent to. This notification is in addition to an alert that the root user receives in Personal Health Dashboard. To send an email notification to the root user of each account, set this value to true.
createInvitations_message :: Lens' CreateInvitations (Maybe Text) Source #
A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation.
createInvitations_accountIds :: Lens' CreateInvitations [Text] Source #
An array that lists Amazon Web Services account IDs, one for each account to send the invitation to.
Destructuring the Response
data CreateInvitationsResponse Source #
See: newCreateInvitationsResponse
smart constructor.
CreateInvitationsResponse' | |
|
Instances
newCreateInvitationsResponse Source #
Create a value of CreateInvitationsResponse
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:CreateInvitationsResponse'
, createInvitationsResponse_unprocessedAccounts
- An array of objects, one for each account whose invitation hasn't been
processed. Each object identifies the account and explains why the
invitation hasn't been processed for the account.
$sel:httpStatus:CreateInvitationsResponse'
, createInvitationsResponse_httpStatus
- The response's http status code.
Response Lenses
createInvitationsResponse_unprocessedAccounts :: Lens' CreateInvitationsResponse (Maybe [UnprocessedAccount]) Source #
An array of objects, one for each account whose invitation hasn't been processed. Each object identifies the account and explains why the invitation hasn't been processed for the account.
createInvitationsResponse_httpStatus :: Lens' CreateInvitationsResponse Int Source #
The response's http status code.