Member class

Provides a resource to manage an Amazon Macie Member.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.macie2.Account("example", {});
const exampleMember = new aws.macie2.Member("example", {
    accountId: "AWS ACCOUNT ID",
    email: "EMAIL",
    invite: true,
    invitationMessage: "Message of the invitation",
    invitationDisableEmailNotification: true,
}, {
    dependsOn: [example],
});
import pulumi
import pulumi_aws as aws

example = aws.macie2.Account("example")
example_member = aws.macie2.Member("example",
    account_id="AWS ACCOUNT ID",
    email="EMAIL",
    invite=True,
    invitation_message="Message of the invitation",
    invitation_disable_email_notification=True,
    opts = pulumi.ResourceOptions(depends_on=[example]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.Macie2.Account("example");

    var exampleMember = new Aws.Macie2.Member("example", new()
    {
        AccountId = "AWS ACCOUNT ID",
        Email = "EMAIL",
        Invite = true,
        InvitationMessage = "Message of the invitation",
        InvitationDisableEmailNotification = true,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            example,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/macie2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := macie2.NewAccount(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = macie2.NewMember(ctx, "example", &macie2.MemberArgs{
			AccountId:                          pulumi.String("AWS ACCOUNT ID"),
			Email:                              pulumi.String("EMAIL"),
			Invite:                             pulumi.Bool(true),
			InvitationMessage:                  pulumi.String("Message of the invitation"),
			InvitationDisableEmailNotification: pulumi.Bool(true),
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_macie2_account" "example" {
}
resource "aws_macie2_member" "example" {
  depends_on                            = [aws_macie2_account.example]
  account_id                            = "AWS ACCOUNT ID"
  email                                 = "EMAIL"
  invite                                = true
  invitation_message                    = "Message of the invitation"
  invitation_disable_email_notification = true
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie2.Account;
import com.pulumi.aws.macie2.Member;
import com.pulumi.aws.macie2.MemberArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new Account("example");

        var exampleMember = new Member("exampleMember", MemberArgs.builder()
            .accountId("AWS ACCOUNT ID")
            .email("EMAIL")
            .invite(true)
            .invitationMessage("Message of the invitation")
            .invitationDisableEmailNotification(true)
            .build(), CustomResourceOptions.builder()
                .dependsOn(example)
                .build());

    }
}
resources:
  example:
    type: aws:macie2:Account
  exampleMember:
    type: aws:macie2:Member
    name: example
    properties:
      accountId: AWS ACCOUNT ID
      email: EMAIL
      invite: true
      invitationMessage: Message of the invitation
      invitationDisableEmailNotification: true
    options:
      dependsOn:
        - ${example}

Import

Using pulumi import, import aws.macie2.Member using the account ID of the member account. For example:

$ pulumi import aws:macie2/member:Member example 123456789012

Constructors

Member(String name, {MemberArgs? args, CustomResourceOptions? options})
Creates a new Member. name The Pulumi resource name. args Arguments used to configure this Member. The set of arguments for Member. options Resource options controlling this resource's behavior.
Member.reference(String urn)
Creates a typed reference to an existing Member resource.

Properties

accountId ↔ Output<String>
The AWS account ID for the account.
latefinal
administratorAccountId ↔ Output<String>
The AWS account ID for the administrator account.
latefinal
arn ↔ Output<String>
ARN of the account.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
email ↔ Output<String>
The email address for the account.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
invitationDisableEmailNotification ↔ Output<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 AWS Personal Health Dashboard. To send an email notification to the root user of each account, set this value to true.
latefinal
invitationMessage ↔ Output<String?>
A custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation.
latefinal
invite ↔ Output<bool>
Send an invitation to a member
latefinal
invitedAt ↔ Output<String>
The date and time, in UTC and extended RFC 3339 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie invitation hasn't been sent to the account.
latefinal
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
masterAccountId ↔ Output<String>
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
relationshipStatus ↔ Output<String>
The current status of the relationship between the account and the administrator account.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ Output<String>
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
latefinal
tags ↔ Output<Map<String, String>?>
Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
latefinal
tagsAll ↔ Output<Map<String, String>>
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
updatedAt ↔ Output<String>
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the relationship between the account and the administrator account.
latefinal
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {MemberState? state, CustomResourceOptions? options}) → Member
Gets an existing Member resource's state with the given name and id.