Skip to main content

automated_discovery_accounts

Creates, updates, deletes, gets or lists an automated_discovery_accounts resource.

Overview

Nameautomated_discovery_accounts
TypeResource
Idaws.macie2.automated_discovery_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID for the account.
statusstringThe current status of automated sensitive data discovery for the account. Possible values are: ENABLED, perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account. (ENABLED, DISABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_automated_discovery_accountsselectregionaccountIds, maxResults, nextTokenRetrieves the status of automated sensitive data discovery for one or more accounts.
batch_update_automated_discovery_accountsexecregionChanges the status of automated sensitive data discovery for one or more accounts.

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)
accountIdsarrayThe Amazon Web Services account ID for each account, for as many as 50 accounts. To retrieve the status for multiple accounts, append the accountIds parameter and argument for each account, separated by an ampersand (&). To retrieve the status for all the accounts in an organization, omit this parameter.
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.

SELECT examples

Retrieves the status of automated sensitive data discovery for one or more accounts.

SELECT
account_id,
status
FROM aws.macie2.automated_discovery_accounts
WHERE region = '{{ region }}' -- required
AND accountIds = '{{ accountIds }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

Lifecycle Methods

Changes the status of automated sensitive data discovery for one or more accounts.

EXEC aws.macie2.automated_discovery_accounts.batch_update_automated_discovery_accounts
@region='{{ region }}' --required
@@json=
'{
"accounts": "{{ accounts }}"
}'
;