Skip to main content

members

Creates, updates, deletes or gets a member resource or lists members in a region

Overview

Namemembers
TypeResource
DescriptionResource Type definition for AWS::GuardDuty::Member
Idaws.guardduty.members

Fields

NameDatatypeDescription
statusstring
member_idstring
emailstring
messagestring
disable_email_notificationboolean
detector_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEmail, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all members in a region.

SELECT
region,
status,
member_id,
email,
message,
disable_email_notification,
detector_id
FROM aws.guardduty.members
WHERE region = 'us-east-1';

Gets all properties from an individual member.

SELECT
region,
status,
member_id,
email,
message,
disable_email_notification,
detector_id
FROM aws.guardduty.members
WHERE region = 'us-east-1' AND data__Identifier = '<DetectorId>|<MemberId>';

INSERT example

Use the following StackQL query and manifest file to create a new member resource, using stack-deploy.

/*+ create */
INSERT INTO aws.guardduty.members (
Email,
region
)
SELECT
'{{ Email }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.guardduty.members
WHERE data__Identifier = '<DetectorId|MemberId>'
AND region = 'us-east-1';

Permissions

To operate on the members resource, the following permissions are required:

Create

guardduty:CreateMembers,
guardduty:GetMembers

Read

guardduty:GetMembers

Delete

guardduty:GetMembers,
guardduty:DisassociateMembers,
guardduty:DeleteMembers

Update

guardduty:GetMembers,
guardduty:CreateMembers,
guardduty:DisassociateMembers,
guardduty:StartMonitoringMembers,
guardduty:StopMonitoringMembers,
guardduty:InviteMembers

List

guardduty:ListMembers