aws.organizations.list_policies_for_target
Example SQL Queries
SELECT * FROMaws.organizations.list_policies_for_targetWHERE"target_id" = 'VALUE'AND "filter" = 'VALUE';Description
Lists the policies that are directly attached to the specified target root, organizational unit (OU), or account. You must specify the policy type that you want included in the returned list.
Always check the NextToken response parameter for a null value when calling a List* operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
Table Definition
| Column Name | Column Data Type |
|---|---|
| filter Required Input Column The type of policy that you want to include in the returned list. You must specify one of the following values: | VARCHAR |
| target_id Required Input Column The unique identifier (ID) of the root, organizational unit, or account whose policies you want to list. The regex pattern for a target ID string requires one of the following:
| VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| arn The Amazon Resource Name (ARN) of the policy. For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference. | VARCHAR |
| aws_managed A boolean value that indicates whether the specified policy is an Amazon Web Services managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it. | BOOLEAN |
| description The description of the policy. | VARCHAR |
| id The unique identifier (ID) of the policy. The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_). | VARCHAR |
| name The friendly name of the policy. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range. | VARCHAR |
| type The type of policy. | VARCHAR |