@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:36.500Z") public class CfnMember extends CfnResource implements IInspectable
You can use the AWS::GuardDuty::Member
resource to add an AWS account as a member account to the current 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 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") .detectorId("detectorId") .email("email") .memberId("memberId") // the properties below are optional .disableEmailNotification(false) .message("message") .status("status") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnMember.Builder
A fluent builder for
CfnMember . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnMember(Construct scope,
java.lang.String id,
CfnMemberProps props)
Create a new `AWS::GuardDuty::Member`.
|
protected |
CfnMember(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMember(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDetectorId()
The ID of the detector associated with the service to add the member to.
|
java.lang.Object |
getDisableEmailNotification()
Specifies whether or not to disable email notification for the member account that you invite.
|
java.lang.String |
getEmail()
The email address associated with the member account.
|
java.lang.String |
getMemberId()
The AWS account ID of the account to designate as a member.
|
java.lang.String |
getMessage()
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
|
java.lang.String |
getStatus()
You can use the `Status` property to update the status of the relationship between the member account and its administrator account.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDetectorId(java.lang.String value)
The ID of the detector associated with the service to add the member to.
|
void |
setDisableEmailNotification(java.lang.Boolean value)
Specifies whether or not to disable email notification for the member account that you invite.
|
void |
setDisableEmailNotification(IResolvable value)
Specifies whether or not to disable email notification for the member account that you invite.
|
void |
setEmail(java.lang.String value)
The email address associated with the member account.
|
void |
setMemberId(java.lang.String value)
The AWS account ID of the account to designate as a member.
|
void |
setMessage(java.lang.String value)
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
|
void |
setStatus(java.lang.String value)
You can use the `Status` property to update the status of the relationship between the member account and its administrator account.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnMember(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMember(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnMember(Construct scope, java.lang.String id, CfnMemberProps props)
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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getDetectorId()
public void setDetectorId(java.lang.String value)
public java.lang.String getEmail()
public void setEmail(java.lang.String value)
public java.lang.String getMemberId()
public void setMemberId(java.lang.String value)
public java.lang.Object getDisableEmailNotification()
public void setDisableEmailNotification(java.lang.Boolean value)
public void setDisableEmailNotification(IResolvable value)
public java.lang.String getMessage()
public void setMessage(java.lang.String value)
public java.lang.String getStatus()
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.
public void setStatus(java.lang.String value)
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.