Class CfnMember
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.guardduty.CfnMember
- All Implemented Interfaces:
IInspectable,IMemberRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:07.081Z")
@Stability(Stable)
public class CfnMember
extends CfnResource
implements IInspectable, IMemberRef
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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.guardduty.IMemberRef
IMemberRef.Jsii$Default, IMemberRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMember(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMember(software.amazon.jsii.JsiiObjectRef objRef) CfnMember(software.constructs.Construct scope, String id, CfnMemberProps props) Create a newAWS::GuardDuty::Member. -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the detector associated with the GuardDuty service to add the member to.Specifies whether or not to disable email notification for the member account that you invite.getEmail()The email address associated with the member account.The AWS account ID of the account to designate as a member.A reference to a Member resource.The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.You can use theStatusproperty to update the status of the relationship between the member account and its administrator account.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDetectorId(String value) The ID of the detector associated with the GuardDuty service to add the member to.voidSpecifies whether or not to disable email notification for the member account that you invite.voidSpecifies whether or not to disable email notification for the member account that you invite.voidThe email address associated with the member account.voidsetMemberId(String value) The AWS account ID of the account to designate as a member.voidsetMessage(String value) The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.voidYou can use theStatusproperty to update the status of the relationship between the member account and its administrator account.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 newAWS::GuardDuty::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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMemberRef
A reference to a Member resource.- Specified by:
getMemberRefin interfaceIMemberRef
-
getEmail
The email address associated with the member account. -
setEmail
The email address associated with the member account. -
getDetectorId
The ID of the detector associated with the GuardDuty service to add the member to. -
setDetectorId
The ID of the detector associated with the GuardDuty service to add the member to. -
getDisableEmailNotification
Specifies whether or not to disable email notification for the member account that you invite.Returns union: either
BooleanorIResolvable -
setDisableEmailNotification
Specifies whether or not to disable email notification for the member account that you invite. -
setDisableEmailNotification
Specifies whether or not to disable email notification for the member account that you invite. -
getMemberId
The AWS account ID of the account to designate as a member. -
setMemberId
The AWS account ID of the account to designate as a member. -
getMessage
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. -
setMessage
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. -
getStatus
You can use theStatusproperty to update the status of the relationship between the member account and its administrator account. -
setStatus
You can use theStatusproperty to update the status of the relationship between the member account and its administrator account.
-