Skip to content

InviteMembers

Source: src/AWS/GuardDuty/InviteMembers.ts

Runtime binding for guardduty:InviteMembers.

Invites member accounts (created via CreateMembers) to enable GuardDuty under this administrator. The detector id is injected from the bound Detector. Provide the implementation with Effect.provide(AWS.GuardDuty.InviteMembersHttp).

// init
const inviteMembers = yield* AWS.GuardDuty.InviteMembers(detector);
// runtime
yield* inviteMembers({
AccountIds: ["111122223333"],
Message: "Please enable GuardDuty",
});