Skip to main content

member_invitations

Creates, updates, deletes or gets a member_invitation resource or lists member_invitations in a region

Overview

Namemember_invitations
TypeResource
DescriptionResource schema for AWS::Detective::MemberInvitation
Idaws.detective.member_invitations

Fields

NameDatatypeDescription
graph_arnstringThe ARN of the graph to which the member account will be invited
member_idstringThe AWS account ID to be invited to join the graph as a member
member_email_addressstringThe root email address for the account to be invited, for validation. Updating this field has no effect.
disable_email_notificationbooleanWhen set to true, invitation emails are not sent to the member accounts. Member accounts must still accept the invitation before they are added to the behavior graph. Updating this field has no effect.
messagestringA message to be included in the email invitation sent to the invited account. Updating this field has no effect.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGraphArn, MemberId, MemberEmailAddress, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all member_invitations in a region.

SELECT
region,
graph_arn,
member_id,
member_email_address,
disable_email_notification,
message
FROM aws.detective.member_invitations
WHERE region = 'us-east-1';

Gets all properties from an individual member_invitation.

SELECT
region,
graph_arn,
member_id,
member_email_address,
disable_email_notification,
message
FROM aws.detective.member_invitations
WHERE region = 'us-east-1' AND data__Identifier = '<GraphArn>|<MemberId>';

INSERT example

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

/*+ create */
INSERT INTO aws.detective.member_invitations (
GraphArn,
MemberId,
MemberEmailAddress,
region
)
SELECT
'{{ GraphArn }}',
'{{ MemberId }}',
'{{ MemberEmailAddress }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.detective.member_invitations
WHERE data__Identifier = '<GraphArn|MemberId>'
AND region = 'us-east-1';

Permissions

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

Create

detective:CreateMembers,
detective:GetMembers

Read

detective:GetMembers

Delete

detective:DeleteMembers

List

detective:ListGraphs,
detective:ListMembers