## Requirements | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0.0 | | [aws](#requirement\_aws) | >= 4.47 | | [random](#requirement\_random) | >= 3.4 | ## Providers | Name | Version | |------|---------| | [aws](#provider\_aws) | 5.5.0 | | [aws.member](#provider\_aws.member) | 5.5.0 | ## Modules No modules. ## Resources | Name | Type | |------|------| | [aws_guardduty_detector.member](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_detector) | resource | | [aws_guardduty_invite_accepter.member](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_invite_accepter) | resource | | [aws_guardduty_member.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_member) | resource | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [guardduty\_detector\_id](#input\_guardduty\_detector\_id) | The detector ID of the GuardDuty account. Defaults to `null`. | `string` | `null` | no | | [master\_account\_id](#input\_master\_account\_id) | AWS account ID for primary account. Defaults to `null` | `string` | `null` | no | | [member\_config](#input\_member\_config) | Specifies the member account configuration:
`enable` - Weather to enable GuardDuty in an Organizations Member Account. Defaults to `false`.
`account_id` - The 13 digit ID number of the member account. Example: `123456789012`.
`email` - Email address to send the invite for member account. Defaults to `null`.
`invite` - Whether to invite the account to GuardDuty as a member. Defaults to `false`. To detect if an invitation needs to be (re-)sent, the Terraform state value is true based on a relationship\_status of `Disabled` \| `Enabled` \| `Invited` \| EmailVerificationInProgress.
`invitation_message` - Message for invitation. Defaults to `null`.
`disable_email_notification` - Whether an email notification is sent to the accounts. Defaults to `false`. |
list(object({
enable = bool
account_id = number
email = string
invite = bool
invitation_message = optional(string)
disable_email_notification = optional(bool)
}))
| `null` | no | ## Outputs | Name | Description | |------|-------------| | [guardduty\_invite\_accepter](#output\_guardduty\_invite\_accepter) | AWS GuardDuty Detector invite. | | [guardduty\_member\_configuration](#output\_guardduty\_member\_configuration) | AWS GuardDuty member configuration. | | [guardduty\_member\_detector](#output\_guardduty\_member\_detector) | AWS GuardDuty member detector. |