Class CfnMember

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IMemberRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-09-30T11:04:55.580Z") @Stability(Stable) public class CfnMember extends CfnResource implements IInspectable, IMemberRef, ITaggableV2
Represents the association between an Amazon Macie administrator account and a member account.

Creating this resource associates the specified account with the Macie administrator account that performs the operation; deleting it removes the association.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.macie.*;
 CfnMember cfnMember = CfnMember.Builder.create(this, "MyCfnMember")
         .accountId("accountId")
         // the properties below are optional
         .email("email")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnMember

      protected CfnMember(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnMember

      protected CfnMember(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnMember

      @Stability(Stable) public CfnMember(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMemberProps props)
      Create a new AWS::Macie::Member.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForMember

      @Stability(Stable) @NotNull public static String arnForMember(@NotNull IMemberRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnMember

      @Stability(Stable) @NotNull public static Boolean isCfnMember(@NotNull Object x)
      Checks whether the given object is a CfnMember.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAdministratorAccountId

      @Stability(Stable) @NotNull public String getAttrAdministratorAccountId()
      The AWS account ID for the Amazon Macie administrator account.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the association between the member account and the Amazon Macie administrator account.
    • getAttrRelationshipStatus

      @Stability(Stable) @NotNull public String getAttrRelationshipStatus()
      The current status of the relationship between the account and the Amazon Macie administrator account.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the Amazon Macie administrator account.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getMemberRef

      @Stability(Stable) @NotNull public MemberReference getMemberRef()
      A reference to a Member resource.
      Specified by:
      getMemberRef in interface IMemberRef
    • getAccountId

      @Stability(Stable) @NotNull public String getAccountId()
      The AWS account ID for the account to associate with the Amazon Macie administrator account.
    • setAccountId

      @Stability(Stable) public void setAccountId(@NotNull String value)
      The AWS account ID for the account to associate with the Amazon Macie administrator account.
    • getEmail

      @Stability(Stable) @Nullable public String getEmail()
      The email address for the account to associate with the Amazon Macie administrator account.
    • setEmail

      @Stability(Stable) public void setEmail(@Nullable String value)
      The email address for the account to associate with the Amazon Macie administrator account.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags to associate with the member account in Amazon Macie.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags to associate with the member account in Amazon Macie.