member_invitations
Creates, updates, deletes or gets a member_invitation
resource or lists member_invitations
in a region
Overview
Name | member_invitations |
Type | Resource |
Description | Resource schema for AWS::Detective::MemberInvitation |
Id | aws.detective.member_invitations |
Fields
Name | Datatype | Description |
---|---|---|
graph_arn | string | The ARN of the graph to which the member account will be invited |
member_id | string | The AWS account ID to be invited to join the graph as a member |
member_email_address | string | The root email address for the account to be invited, for validation. Updating this field has no effect. |
disable_email_notification | boolean | When 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. |
message | string | A message to be included in the email invitation sent to the invited account. Updating this field has no effect. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | GraphArn, MemberId, MemberEmailAddress, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.detective.member_invitations (
GraphArn,
MemberId,
MemberEmailAddress,
region
)
SELECT
'{{ GraphArn }}',
'{{ MemberId }}',
'{{ MemberEmailAddress }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.detective.member_invitations (
GraphArn,
MemberId,
MemberEmailAddress,
DisableEmailNotification,
Message,
region
)
SELECT
'{{ GraphArn }}',
'{{ MemberId }}',
'{{ MemberEmailAddress }}',
'{{ DisableEmailNotification }}',
'{{ Message }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: member_invitation
props:
- name: GraphArn
value: '{{ GraphArn }}'
- name: MemberId
value: '{{ MemberId }}'
- name: MemberEmailAddress
value: '{{ MemberEmailAddress }}'
- name: DisableEmailNotification
value: '{{ DisableEmailNotification }}'
- name: Message
value: '{{ Message }}'
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