AWS::GuardDuty::MasterYou 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.
import { CfnMaster } from 'aws-cdk-lib/aws-guardduty';Or use the module namespace:
import * as guardduty from 'aws-cdk-lib/aws-guardduty';
// guardduty.CfnMasterConfiguration passed to the constructor as CfnMasterProps.
detectorIdRequiredstringThe unique ID of the detector of the GuardDuty member account. To find the `detectorId` in the current Region, see the Settings page in the GuardDuty console, or run the [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API.
masterIdRequiredstringThe AWS account ID of the account designated as the GuardDuty administrator account.
invitationIdOptionalstringThe ID of the invitation that is sent to the account designated as a member account. You can find the invitation ID by running the [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) in the *GuardDuty API Reference* .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-guarddutyAWS::GuardDuty::Master