Skip to main content

delegated_admin_accounts

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

Overview

Namedelegated_admin_accounts
TypeResource
Idaws.inspector2.delegated_admin_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID of the Amazon Inspector delegated administrator for your organization. (pattern: <code>\d{12}</code>)
relationship_statusstringThe status of the Amazon Inspector delegated administrator. (CREATED, INVITED, DISABLED, ENABLED, REMOVED, RESIGNED, DELETED, EMAIL_VERIFICATION_IN_PROGRESS, EMAIL_VERIFICATION_FAILED, REGION_DISABLED, ACCOUNT_SUSPENDED, CANNOT_CREATE_DETECTOR_IN_ORG_MASTER)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_delegated_admin_accountselectregionRetrieves information about the Amazon Inspector delegated administrator for your organization.
disable_delegated_admin_accountexecregion, delegatedAdminAccountIdDisables the Amazon Inspector delegated administrator for your organization.
enable_delegated_admin_accountexecregion, delegatedAdminAccountIdEnables the Amazon Inspector delegated administrator for your Organizations organization.
list_delegated_admin_accountsexecregionLists information about the Amazon Inspector delegated administrator of your organization.

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 information about the Amazon Inspector delegated administrator for your organization.

SELECT
account_id,
relationship_status
FROM aws.inspector2.delegated_admin_accounts
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Disables the Amazon Inspector delegated administrator for your organization.

EXEC aws.inspector2.delegated_admin_accounts.disable_delegated_admin_account
@region='{{ region }}' --required
@@json=
'{
"delegatedAdminAccountId": "{{ delegatedAdminAccountId }}"
}'
;