Class CfnMember.Builder

java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMember.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMember>
Enclosing class:
CfnMember

@Stability(Stable) public static final class CfnMember.Builder extends Object implements software.amazon.jsii.Builder<CfnMember>
A fluent builder for CfnMember.
  • Method Details

    • create

      @Stability(Stable) public static CfnMember.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnMember.Builder.
    • detectorId

      @Stability(Stable) public CfnMember.Builder detectorId(String detectorId)
      The ID of the detector associated with the GuardDuty service to add the member to.

      Parameters:
      detectorId - The ID of the detector associated with the GuardDuty service to add the member to. This parameter is required.
      Returns:
      this
    • email

      @Stability(Stable) public CfnMember.Builder email(String email)
      The email address associated with the member account.

      Parameters:
      email - The email address associated with the member account. This parameter is required.
      Returns:
      this
    • memberId

      @Stability(Stable) public CfnMember.Builder memberId(String memberId)
      The AWS account ID of the account to designate as a member.

      Parameters:
      memberId - The AWS account ID of the account to designate as a member. This parameter is required.
      Returns:
      this
    • disableEmailNotification

      @Stability(Stable) public CfnMember.Builder disableEmailNotification(Boolean disableEmailNotification)
      Specifies whether or not to disable email notification for the member account that you invite.

      Parameters:
      disableEmailNotification - Specifies whether or not to disable email notification for the member account that you invite. This parameter is required.
      Returns:
      this
    • disableEmailNotification

      @Stability(Stable) public CfnMember.Builder disableEmailNotification(IResolvable disableEmailNotification)
      Specifies whether or not to disable email notification for the member account that you invite.

      Parameters:
      disableEmailNotification - Specifies whether or not to disable email notification for the member account that you invite. This parameter is required.
      Returns:
      this
    • message

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

      Parameters:
      message - The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. This parameter is required.
      Returns:
      this
    • status

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

      Valid values are Created and Invited when using an AWS::GuardDuty::Member resource. If the value for this property is not provided or set to Created , a member account is created but not invited. If the value of this property is set to Invited , a member account is created and invited.

      Parameters:
      status - You can use the Status property to update the status of the relationship between the member account and its administrator account. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnMember build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMember>
      Returns:
      a newly built instance of CfnMember.