Member

class Member : KotlinCustomResource

Provides a resource to manage a GuardDuty member. To accept invitations in member accounts, see the aws.guardduty.InviteAccepter resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.guardduty.Detector;
import com.pulumi.aws.guardduty.DetectorArgs;
import com.pulumi.aws.guardduty.Member;
import com.pulumi.aws.guardduty.MemberArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var primary = new Detector("primary", DetectorArgs.builder()
.enable(true)
.build());
var memberDetector = new Detector("memberDetector", DetectorArgs.builder()
.enable(true)
.build(), CustomResourceOptions.builder()
.provider(aws.dev())
.build());
var memberMember = new Member("memberMember", MemberArgs.builder()
.accountId(memberDetector.accountId())
.detectorId(primary.id())
.email("required@example.com")
.invite(true)
.invitationMessage("please accept guardduty invitation")
.build());
}
}

Import

GuardDuty members can be imported using the primary GuardDuty detector ID and member AWS account ID, e.g.,

$ pulumi import aws:guardduty/member:Member MyMember 00b00fd5aecc0ab60a708659477e9617:123456789012

Properties

Link copied to clipboard
val accountId: Output<String>

AWS account ID for member account.

Link copied to clipboard
val detectorId: Output<String>

The detector ID of the GuardDuty account where you want to create member accounts.

Link copied to clipboard

Boolean whether an email notification is sent to the accounts. Defaults to false.

Link copied to clipboard
val email: Output<String>

Email address for member account.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Message for invitation.

Link copied to clipboard
val invite: Output<Boolean>?

Boolean whether to invite the account to GuardDuty as a member. Defaults to false. To detect if an invitation needs to be (re-)sent, the this provider state value is true based on a relationship_status of Disabled, Enabled, Invited, or EmailVerificationInProgress.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The status of the relationship between the member account and its primary account. More information can be found in Amazon GuardDuty API Reference.

Link copied to clipboard
val urn: Output<String>