Class CfnMember
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::GuardDuty::Member
.
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") .detectorId("detectorId") .email("email") .memberId("memberId") // the properties below are optional .disableEmailNotification(false) .message("message") .status("status") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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.The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.You can use theStatus
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.renderProperties
(Map<String, Object> props) void
setDetectorId
(String value) The ID of the detector associated with the GuardDuty service to add the member to.void
Specifies whether or not to disable email notification for the member account that you invite.void
Specifies whether or not to disable email notification for the member account that you invite.void
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
You can use theStatus
property to update the status of the relationship between the member account and its administrator account.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnMemberProps props) Create a newAWS::GuardDuty::Member
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
getEmail
The email address associated with the member account. -
setEmail
The email address associated with the member account. -
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. -
getDisableEmailNotification
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. -
setDisableEmailNotification
Specifies whether or not to disable email notification for the member account that you invite. -
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 theStatus
property to update the status of the relationship between the member account and its administrator account.Valid values are
Created
andInvited
when using anAWS::GuardDuty::Member
resource. If the value for this property is not provided or set toCreated
, a member account is created but not invited. If the value of this property is set toInvited
, a member account is created and invited. -
setStatus
You can use theStatus
property to update the status of the relationship between the member account and its administrator account.Valid values are
Created
andInvited
when using anAWS::GuardDuty::Member
resource. If the value for this property is not provided or set toCreated
, a member account is created but not invited. If the value of this property is set toInvited
, a member account is created and invited.
-