Skip to main content

account_policies_list_only

Lists account_policies in a region or regions, for all properties use account_policies

Overview

Nameaccount_policies_list_only
TypeResource
DescriptionThe AWS::Logs::AccountPolicy resource specifies a CloudWatch Logs AccountPolicy.
Idaws.logs.account_policies_list_only

Fields

NameDatatypeDescription
account_idstringUser account id
policy_namestringThe name of the account policy
policy_documentstringThe body of the policy document you want to use for this topic.
You can only add one policy per PolicyType.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
policy_typestringType of the policy.
scopestringScope for policy application
selection_criteriastringLog group selection criteria to apply policy only to a subset of log groups. SelectionCriteria string can be up to 25KB and cloudwatchlogs determines the length of selectionCriteria by using its UTF-8 bytes
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all account_policies in a region.

SELECT
region,
account_id,
policy_type,
policy_name
FROM aws.logs.account_policies_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the account_policies_list_only resource, see account_policies