Class CfnMemberInvitation

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.246Z") @Stability(Stable) public class CfnMemberInvitation extends CfnResource implements IInspectable
A CloudFormation AWS::Detective::MemberInvitation.

The AWS::Detective::MemberInvitation resource is an Amazon Detective resource type that creates an invitation to join a Detective behavior graph. The administrator account can choose whether to send an email notification of the invitation to the root user email address of the AWS 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.detective.*;
 CfnMemberInvitation cfnMemberInvitation = CfnMemberInvitation.Builder.create(this, "MyCfnMemberInvitation")
         .graphArn("graphArn")
         .memberEmailAddress("memberEmailAddress")
         .memberId("memberId")
         // the properties below are optional
         .disableEmailNotification(false)
         .message("message")
         .build();
 
  • 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

    • CfnMemberInvitation

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

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

      @Stability(Stable) public CfnMemberInvitation(@NotNull Construct scope, @NotNull String id, @NotNull CfnMemberInvitationProps props)
      Create a new AWS::Detective::MemberInvitation.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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
    • getGraphArn

      @Stability(Stable) @NotNull public String getGraphArn()
      The ARN of the behavior graph to invite the account to contribute data to.
    • setGraphArn

      @Stability(Stable) public void setGraphArn(@NotNull String value)
      The ARN of the behavior graph to invite the account to contribute data to.
    • getMemberEmailAddress

      @Stability(Stable) @NotNull public String getMemberEmailAddress()
      The root user email address of the invited account.

      If the email address provided is not the root user email address for the provided account, the invitation creation fails.

    • setMemberEmailAddress

      @Stability(Stable) public void setMemberEmailAddress(@NotNull String value)
      The root user email address of the invited account.

      If the email address provided is not the root user email address for the provided account, the invitation creation fails.

    • getMemberId

      @Stability(Stable) @NotNull public String getMemberId()
      The AWS account identifier of the invited account.
    • setMemberId

      @Stability(Stable) public void setMemberId(@NotNull String value)
      The AWS account identifier of the invited account.
    • getDisableEmailNotification

      @Stability(Stable) @Nullable public Object getDisableEmailNotification()
      Whether to send an invitation email to the member account.

      If set to true, the member account does not receive an invitation email.

    • setDisableEmailNotification

      @Stability(Stable) public void setDisableEmailNotification(@Nullable Boolean value)
      Whether to send an invitation email to the member account.

      If set to true, the member account does not receive an invitation email.

    • setDisableEmailNotification

      @Stability(Stable) public void setDisableEmailNotification(@Nullable IResolvable value)
      Whether to send an invitation email to the member account.

      If set to true, the member account does not receive an invitation email.

    • getMessage

      @Stability(Stable) @Nullable public String getMessage()
      Customized text to include in the invitation email message.
    • setMessage

      @Stability(Stable) public void setMessage(@Nullable String value)
      Customized text to include in the invitation email message.