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
Idawscc.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.

For more information, see AWS::Detective::MemberInvitation.

Methods

NameResourceAccessible byRequired Params
create_resourcemember_invitationsINSERTGraphArn, MemberId, MemberEmailAddress, region
delete_resourcemember_invitationsDELETEIdentifier, region
list_resourcesmember_invitations_list_onlySELECTregion
get_resourcemember_invitationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual member_invitation.

SELECT
region,
graph_arn,
member_id,
member_email_address,
disable_email_notification,
message
FROM awscc.detective.member_invitations
WHERE
region = 'us-east-1' AND
Identifier = '{{ graph_arn }}|{{ member_id }}';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM awscc.detective.member_invitations
WHERE
Identifier = '{{ graph_arn }}|{{ member_id }}' AND
region = 'us-east-1';

Permissions

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

detective:CreateMembers,
detective:GetMembers