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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:58.575Z") @Stability(Stable) public class CfnMember extends CfnResource implements IInspectable
You can use the AWS::GuardDuty::Member resource to add an AWS account as a GuardDuty member account to the current GuardDuty administrator account.

If the value of the Status property is not provided or is set to Created , a member account is created but not invited. If the value of the Status property is set to Invited , a member account is created and invited. An AWS::GuardDuty::Member resource must be created with the Status property set to Invited before the AWS::GuardDuty::Master resource can be created in a GuardDuty member account.

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.guardduty.*;
 CfnMember cfnMember = CfnMember.Builder.create(this, "MyCfnMember")
         .email("email")
         // the properties below are optional
         .detectorId("detectorId")
         .disableEmailNotification(false)
         .memberId("memberId")
         .message("message")
         .status("status")
         .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)
      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

    • 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.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getEmail()
      The email address associated with the member account.
    • setEmail

      @Stability(Stable) public void setEmail(@NotNull String value)
      The email address associated with the member account.
    • getDetectorId

      @Stability(Stable) @Nullable public String getDetectorId()
      The ID of the detector associated with the GuardDuty service to add the member to.
    • setDetectorId

      @Stability(Stable) public void setDetectorId(@Nullable String value)
      The ID of the detector associated with the GuardDuty service to add the member to.
    • getDisableEmailNotification

      @Stability(Stable) @Nullable public Object getDisableEmailNotification()
      Specifies whether or not to disable email notification for the member account that you invite.
    • setDisableEmailNotification

      @Stability(Stable) public void setDisableEmailNotification(@Nullable Boolean value)
      Specifies whether or not to disable email notification for the member account that you invite.
    • setDisableEmailNotification

      @Stability(Stable) public void setDisableEmailNotification(@Nullable IResolvable value)
      Specifies whether or not to disable email notification for the member account that you invite.
    • getMemberId

      @Stability(Stable) @Nullable public String getMemberId()
      The AWS account ID of the account to designate as a member.
    • setMemberId

      @Stability(Stable) public void setMemberId(@Nullable String value)
      The AWS account ID of the account to designate as a member.
    • getMessage

      @Stability(Stable) @Nullable public String getMessage()
      The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
    • setMessage

      @Stability(Stable) public void setMessage(@Nullable String value)
      The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
    • getStatus

      @Stability(Stable) @Nullable public String getStatus()
      You can use the Status property to update the status of the relationship between the member account and its administrator account.
    • setStatus

      @Stability(Stable) public void setStatus(@Nullable String value)
      You can use the Status property to update the status of the relationship between the member account and its administrator account.