Skip to main content

master_accounts

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

Overview

Namemaster_accounts
TypeResource
Idaws.macie2.master_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID for the account that sent the invitation.
invitation_idstringThe unique identifier for the invitation.
invited_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.
relationship_statusstringThe status of the relationship between the account that sent the invitation and the account that received the invitation. (Enabled, Paused, Invited, Created, Removed, Resigned, EmailVerificationInProgress, EmailVerificationFailed, RegionDisabled, AccountSuspended)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_master_accountselectregion(Deprecated) Retrieves information about the Amazon Macie administrator account for an account. This operation has been replaced by the GetAdministratorAccount operation.
disassociate_from_master_accountupdateregion(Deprecated) Disassociates a member account from its Amazon Macie administrator account. This operation has been replaced by the DisassociateFromAdministratorAccount operation.

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
regionstringAWS region (default: us-east-1)

SELECT examples

(Deprecated) Retrieves information about the Amazon Macie administrator account for an account. This operation has been replaced by the GetAdministratorAccount operation.

SELECT
account_id,
invitation_id,
invited_at,
relationship_status
FROM aws.macie2.master_accounts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

(Deprecated) Disassociates a member account from its Amazon Macie administrator account. This operation has been replaced by the DisassociateFromAdministratorAccount operation.

UPDATE aws.macie2.master_accounts
SET
-- No updatable properties
WHERE
region = '{{ region }}' --required;