libZSservicesZSamazonka-guarddutyZSamazonka-guardduty
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.GuardDuty.InviteMembers

Description

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

Creating a Request

data InviteMembers Source #

See: newInviteMembers smart constructor.

Constructors

InviteMembers' 

Fields

  • disableEmailNotification :: Maybe Bool

    A Boolean value that specifies whether you want to disable email notification to the accounts that you are inviting to GuardDuty as members.

  • message :: Maybe Text

    The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.

  • detectorId :: Text

    The unique ID of the detector of the GuardDuty account that you want to invite members with.

  • accountIds :: NonEmpty Text

    A list of account IDs of the accounts that you want to invite to GuardDuty as members.

Instances

Instances details
Eq InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Read InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Show InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Generic InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Associated Types

type Rep InviteMembers :: Type -> Type #

NFData InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Methods

rnf :: InviteMembers -> () #

Hashable InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

ToJSON InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

AWSRequest InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Associated Types

type AWSResponse InviteMembers #

ToHeaders InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

ToPath InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

ToQuery InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

type Rep InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

type Rep InviteMembers = D1 ('MetaData "InviteMembers" "Amazonka.GuardDuty.InviteMembers" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "InviteMembers'" '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 "detectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)))))
type AWSResponse InviteMembers Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

newInviteMembers 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: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.

Constructors

InviteMembersResponse' 

Fields

Instances

Instances details
Eq InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Read InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Show InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Generic InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Associated Types

type Rep InviteMembersResponse :: Type -> Type #

NFData InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

Methods

rnf :: InviteMembersResponse -> () #

type Rep InviteMembersResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.InviteMembers

type Rep InviteMembersResponse = D1 ('MetaData "InviteMembersResponse" "Amazonka.GuardDuty.InviteMembers" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "InviteMembersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "unprocessedAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [UnprocessedAccount])))

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_unprocessedAccounts :: Lens' InviteMembersResponse [UnprocessedAccount] Source #

A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.