Class CfnMaster
You can use the AWS::GuardDuty::Master
resource in a GuardDuty member account to accept an invitation from a GuardDuty administrator account.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.GuardDuty
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMaster : CfnResource, IInspectable
Syntax (vb)
Public Class CfnMaster
Inherits CfnResource
Implements IInspectable
Remarks
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 GuardDuty API, or by creating an AWS::GuardDuty::Member
resource.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html
CloudformationResource: AWS::GuardDuty::Master
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GuardDuty;
var cfnMaster = new CfnMaster(this, "MyCfnMaster", new CfnMasterProps {
DetectorId = "detectorId",
MasterId = "masterId",
// the properties below are optional
InvitationId = "invitationId"
});
Synopsis
Constructors
CfnMaster(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMaster(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnMaster(Construct, String, ICfnMasterProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DetectorId | The unique ID of the detector of the GuardDuty member account. |
InvitationId | The ID of the invitation that is sent to the account designated as a member account. |
MasterId | The AWS account ID of the account designated as the GuardDuty administrator account. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnMaster(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMaster(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMaster(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMaster(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnMaster(Construct, String, ICfnMasterProps)
public CfnMaster(Construct scope, string id, ICfnMasterProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnMasterProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DetectorId
The unique ID of the detector of the GuardDuty member account.
public virtual string DetectorId { get; set; }
Property Value
System.String
InvitationId
The ID of the invitation that is sent to the account designated as a member account.
public virtual string InvitationId { get; set; }
Property Value
System.String
MasterId
The AWS account ID of the account designated as the GuardDuty administrator account.
public virtual string MasterId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>