Class CfnMaster
A CloudFormation AWS::GuardDuty::Master
.
Inherited Members
Namespace: Amazon.CDK.AWS.GuardDuty
Assembly: Amazon.CDK.AWS.GuardDuty.dll
Syntax (csharp)
public class CfnMaster : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnMaster
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
You can use the AWS::GuardDuty::Master
resource in a GuardDuty member account to accept an invitation from a GuardDuty 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 GuardDuty API, or by creating an AWS::GuardDuty::Member
resource.
CloudformationResource: AWS::GuardDuty::Master
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html
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(Construct, String, ICfnMasterProps) | Create a new |
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 |
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(Construct, String, ICfnMasterProps)
Create a new AWS::GuardDuty::Master
.
public CfnMaster(Construct scope, string id, ICfnMasterProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnMasterProps
- resource properties.
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
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
Remarks
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
Remarks
You can find the invitation ID by using the ListInvitation action of the GuardDuty API.
MasterId
The AWS account ID of the account designated as the GuardDuty administrator account.
public virtual string MasterId { get; set; }
Property Value
System.String
Remarks
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>