MemberInvitation
Learn how to create, update, and manage AWS Detective MemberInvitations using Alchemy Cloud Control.
The MemberInvitation resource allows you to manage AWS Detective MemberInvitations for inviting members to your AWS Detective graph.
Minimal Example
Section titled “Minimal Example”Create a basic member invitation with required properties and one optional property.
import AWS from "alchemy/aws/control";
const memberInvitation = await AWS.Detective.MemberInvitation("inviteMember", { MemberId: "123456789012", GraphArn: "arn:aws:detective:us-west-2:123456789012:graph:abcd1234-5678-90ef-ghij-klmnopqrstuv", MemberEmailAddress: "member@example.com", Message: "You are invited to join the Detective graph."});
Advanced Configuration
Section titled “Advanced Configuration”Configure a member invitation with email notification disabled.
const advancedMemberInvitation = await AWS.Detective.MemberInvitation("advancedInviteMember", { MemberId: "098765432109", GraphArn: "arn:aws:detective:us-west-2:123456789012:graph:wxyz1234-5678-90ef-ghij-klmnopqrstuv", MemberEmailAddress: "advanced-member@example.com", Message: "You have been invited to join the Detective graph.", DisableEmailNotification: true});
Adoption of Existing Resources
Section titled “Adoption of Existing Resources”Create a member invitation while adopting an existing member if it already exists.
const adoptExistingMemberInvitation = await AWS.Detective.MemberInvitation("adoptInviteMember", { MemberId: "112233445566", GraphArn: "arn:aws:detective:us-west-2:123456789012:graph:mnop1234-5678-90ef-ghij-klmnopqrstuv", MemberEmailAddress: "adoptive-member@example.com", Message: "Invitation to join the Detective graph, adopting existing resource.", adopt: true});