Skip to main content

member_ec2_deep_inspection_status

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

Overview

Namemember_ec2_deep_inspection_status
TypeResource
Idaws.inspector2.member_ec2_deep_inspection_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idsarrayAn array of objects that provide details on the activation status of Amazon Inspector deep inspection for each of the requested accounts.
failed_account_idsarrayAn array of objects that provide details on any accounts that failed to activate Amazon Inspector deep inspection and why.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_member_ec2_deep_inspection_statusselectregionRetrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
batch_update_member_ec2_deep_inspection_statusexecregion, accountIdsActivates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

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 Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

SELECT
account_ids,
failed_account_ids
FROM aws.inspector2.member_ec2_deep_inspection_status
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.

EXEC aws.inspector2.member_ec2_deep_inspection_status.batch_update_member_ec2_deep_inspection_status
@region='{{ region }}' --required
@@json=
'{
"accountIds": "{{ accountIds }}"
}'
;