Skip to main content

members

Creates, updates, deletes, gets or lists a members resource.

Overview

Namemembers
TypeResource
Idaws.macie2.members

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID for the account.
administrator_account_idstringThe Amazon Web Services account ID for the administrator account.
arnstringThe Amazon Resource Name (ARN) of the account.
emailstringThe email address for the account. This value is null if the account is associated with the administrator account through Organizations.
invited_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie membership invitation hasn't been sent to the account.
master_account_idstring(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.
relationship_statusstringThe current status of the relationship between the account and the administrator account. (Enabled, Paused, Invited, Created, Removed, Resigned, EmailVerificationInProgress, EmailVerificationFailed, RegionDisabled, AccountSuspended)
tagsobjectA map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.
updated_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_memberselectid, regionRetrieves information about an account that's associated with an Amazon Macie administrator account.
list_membersselectregionmaxResults, nextToken, onlyAssociatedRetrieves information about the accounts that are associated with an Amazon Macie administrator account.
create_memberinsertregion, accountAssociates an account with an Amazon Macie administrator account.
update_member_sessionupdateid, region, statusEnables an Amazon Macie administrator to suspend or re-enable Macie for a member account.
disassociate_memberupdateid, regionDisassociates an Amazon Macie administrator account from a member account.
delete_memberdeleteid, regionDeletes the association between an Amazon Macie administrator account and an account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the Amazon Macie resource that the request applies to.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of items to include in each page of a paginated response.
nextTokenstringThe nextToken string that specifies which page of results to return in a paginated response.
onlyAssociatedstringSpecifies which accounts to include in the response, based on the status of an account's relationship with the administrator account. By default, the response includes only current member accounts. To include all accounts, set this value to false.

SELECT examples

Retrieves information about an account that's associated with an Amazon Macie administrator account.

SELECT
account_id,
administrator_account_id,
arn,
email,
invited_at,
master_account_id,
relationship_status,
tags,
updated_at
FROM aws.macie2.members
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Associates an account with an Amazon Macie administrator account.

INSERT INTO aws.macie2.members (
account,
tags,
region
)
SELECT
'{{ account }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
arn
;

UPDATE examples

Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account.

UPDATE aws.macie2.members
SET
status = '{{ status }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required;

DELETE examples

Deletes the association between an Amazon Macie administrator account and an account.

DELETE FROM aws.macie2.members
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;