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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.detective.member_invitations
WHERE
Identifier = '{{ graph_arn }}|{{ member_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

detective:CreateMembers,
detective:GetMembers