Class Member


  • public class Member
    extends com.pulumi.resources.CustomResource
    Provides a resource to manage an [Amazon Macie Member](https://docs.aws.amazon.com/macie/latest/APIReference/members-id.html). ## Example Usage
     
     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());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.macie2.Member` using the account ID of the member account. For example: ```sh $ pulumi import aws:macie2/member:Member example 123456789012 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Member​(java.lang.String name)  
      Member​(java.lang.String name, MemberArgs args)  
      Member​(java.lang.String name, MemberArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> accountId()  
      com.pulumi.core.Output<java.lang.String> administratorAccountId()  
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> email()  
      static Member get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, MemberState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> invitationDisableEmailNotification()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> invitationMessage()  
      com.pulumi.core.Output<java.lang.Boolean> invite()  
      com.pulumi.core.Output<java.lang.String> invitedAt()  
      com.pulumi.core.Output<java.lang.String> masterAccountId()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> relationshipStatus()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.lang.String> updatedAt()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Member

        public Member​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Member

        public Member​(java.lang.String name,
                      MemberArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Member

        public Member​(java.lang.String name,
                      MemberArgs args,
                      @Nullable
                      com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • accountId

        public com.pulumi.core.Output<java.lang.String> accountId()
        Returns:
        AWS account ID for the account.
      • administratorAccountId

        public com.pulumi.core.Output<java.lang.String> administratorAccountId()
        Returns:
        AWS account ID for the administrator account.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the account.
      • email

        public com.pulumi.core.Output<java.lang.String> email()
        Returns:
        Email address for the account.
      • invitationDisableEmailNotification

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> invitationDisableEmailNotification()
        Returns:
        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`.
      • invitationMessage

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> invitationMessage()
        Returns:
        Custom message to include in the invitation. Amazon Macie adds this message to the standard content that it sends for an invitation.
      • invite

        public com.pulumi.core.Output<java.lang.Boolean> invite()
        Returns:
        Whether to send an invitation to a member.
      • invitedAt

        public com.pulumi.core.Output<java.lang.String> invitedAt()
        Returns:
        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.
      • masterAccountId

        public com.pulumi.core.Output<java.lang.String> masterAccountId()
        Returns:
        AWS account ID for the master account.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • relationshipStatus

        public com.pulumi.core.Output<java.lang.String> relationshipStatus()
        Returns:
        Current status of the relationship between the account and the administrator account.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        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`.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        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.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • updatedAt

        public com.pulumi.core.Output<java.lang.String> updatedAt()
        Returns:
        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.
      • get

        public static Member get​(java.lang.String name,
                                 com.pulumi.core.Output<java.lang.String> id,
                                 @Nullable
                                 MemberState state,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.