@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.421Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMember(Construct scope,
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 Map<String,Object> |
getCfnProperties() |
String |
getDetectorId()
The ID of the detector associated with the service to add the member to.
|
Object |
getDisableEmailNotification()
Specifies whether or not to disable email notification for the member account that you invite.
|
String |
getEmail()
The email address associated with the member account.
|
String |
getMemberId()
The AWS account ID of the account to designate as a member.
|
String |
getMessage()
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDetectorId(String value)
The ID of the detector associated with the service to add the member to.
|
void |
setDisableEmailNotification(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(String value)
The email address associated with the member account.
|
void |
setMemberId(String value)
The AWS account ID of the account to designate as a member.
|
void |
setMessage(String value)
The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
|
void |
setStatus(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, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMember(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMember(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMember(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDetectorId()
@Stability(value=Stable)
public void setDetectorId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getEmail()
@Stability(value=Stable)
public void setEmail(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getMemberId()
@Stability(value=Stable)
public void setMemberId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getDisableEmailNotification()
@Stability(value=Stable)
public void setDisableEmailNotification(@Nullable
Boolean value)
@Stability(value=Stable)
public void setDisableEmailNotification(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getMessage()
@Stability(value=Stable)
public void setMessage(@Nullable
String value)
@Stability(value=Stable) @Nullable public 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.
@Stability(value=Stable)
public void setStatus(@Nullable
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.
Copyright © 2022. All rights reserved.