libZSservicesZSamazonka-maciev2ZSamazonka-maciev2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MacieV2.CreateInvitations

Description

Sends an Amazon Macie membership invitation to one or more accounts.

Synopsis

Creating a Request

data CreateInvitations Source #

See: newCreateInvitations smart constructor.

Constructors

CreateInvitations' 

Fields

  • disableEmailNotification :: Maybe Bool

    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.

  • message :: Maybe Text

    A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation.

  • accountIds :: [Text]

    An array that lists Amazon Web Services account IDs, one for each account to send the invitation to.

Instances

Instances details
Eq CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Read CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Show CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Generic CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Associated Types

type Rep CreateInvitations :: Type -> Type #

NFData CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Methods

rnf :: CreateInvitations -> () #

Hashable CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

ToJSON CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

AWSRequest CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Associated Types

type AWSResponse CreateInvitations #

ToHeaders CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

ToPath CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

ToQuery CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

type Rep CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

type Rep CreateInvitations = D1 ('MetaData "CreateInvitations" "Amazonka.MacieV2.CreateInvitations" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "CreateInvitations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "disableEmailNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse CreateInvitations Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

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.

Constructors

CreateInvitationsResponse' 

Fields

  • unprocessedAccounts :: Maybe [UnprocessedAccount]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Read CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Show CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Generic CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

Associated Types

type Rep CreateInvitationsResponse :: Type -> Type #

NFData CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

type Rep CreateInvitationsResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateInvitations

type Rep CreateInvitationsResponse = D1 ('MetaData "CreateInvitationsResponse" "Amazonka.MacieV2.CreateInvitations" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "CreateInvitationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unprocessedAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UnprocessedAccount])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.