account_status
Creates, updates, deletes, gets or lists an account_status resource.
Overview
| Name | account_status |
| Type | Resource |
| Id | aws.inspector2.account_status |
Fields
The following fields are returned by SELECT queries:
- batch_get_account_status
| Name | Datatype | Description |
|---|---|---|
accounts | array | An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts. |
failed_accounts | array | An array of objects detailing any accounts that failed to enable Amazon Inspector and why. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
batch_get_account_status | select | region | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- batch_get_account_status
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
;