Skip to main content

account_permissions

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

Overview

Nameaccount_permissions
TypeResource
Idaws.inspector2.account_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
operationstringThe operations that can be performed with the given permissions. (ENABLE_SCANNING, DISABLE_SCANNING, ENABLE_REPOSITORY, DISABLE_REPOSITORY)
servicestringThe services that the permissions allow an account to perform the given operations for. (EC2, ECR, LAMBDA)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_account_permissionsselectregionLists the permissions an account has to configure Amazon Inspector. If the account is a member account or standalone account with resources managed by an Organizations policy, the operation returns fewer permissions.

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

Lists the permissions an account has to configure Amazon Inspector. If the account is a member account or standalone account with resources managed by an Organizations policy, the operation returns fewer permissions.

SELECT
operation,
service
FROM aws.inspector2.account_permissions
WHERE region = '{{ region }}' -- required
;