Skip to main content

account_status

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

Overview

Nameaccount_status
TypeResource
Idaws.inspector2.account_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
accountsarrayAn array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
failed_accountsarrayAn array of objects detailing any accounts that failed to enable Amazon Inspector and why.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_account_statusselectregionRetrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.

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

Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.

SELECT
accounts,
failed_accounts
FROM aws.inspector2.account_status
WHERE region = '{{ region }}' -- required
;