@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.417Z") @Stability(value=Stable) public class CfnMaster extends CfnResource implements IInspectable
You can use the AWS::GuardDuty::Master resource in a member account to accept an invitation from a administrator account. The invitation to the member account must be sent prior to using the AWS::GuardDuty::Master resource to accept the administrator account's invitation. You can invite a member account by using the InviteMembers operation of the API, or by creating an AWS::GuardDuty::Member resource.
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.*;
CfnMaster cfnMaster = CfnMaster.Builder.create(this, "MyCfnMaster")
.detectorId("detectorId")
.masterId("masterId")
// the properties below are optional
.invitationId("invitationId")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnMaster.Builder
A fluent builder for
CfnMaster. |
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 |
|---|---|
|
CfnMaster(Construct scope,
String id,
CfnMasterProps props)
Create a new `AWS::GuardDuty::Master`.
|
protected |
CfnMaster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMaster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDetectorId()
The unique ID of the detector of the GuardDuty member account.
|
String |
getInvitationId()
The ID of the invitation that is sent to the account designated as a member account.
|
String |
getMasterId()
The AWS account ID of the account designated as the 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 unique ID of the detector of the GuardDuty member account.
|
void |
setInvitationId(String value)
The ID of the invitation that is sent to the account designated as a member account.
|
void |
setMasterId(String value)
The AWS account ID of the account designated as the 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 CfnMaster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMaster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMaster(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnMasterProps 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 getMasterId()
@Stability(value=Stable)
public void setMasterId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getInvitationId()
You can find the invitation ID by using the ListInvitation action of the API.
@Stability(value=Stable)
public void setInvitationId(@Nullable
String value)
You can find the invitation ID by using the ListInvitation action of the API.
Copyright © 2022. All rights reserved.