aws.accessanalyzer.validate_policy
Example SQL Queries
SELECT * FROMaws.accessanalyzer.validate_policyWHERE"policy_document" = 'VALUE'AND "policy_type" = 'VALUE';Description
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
Table Definition
| Column Name | Column Data Type |
|---|---|
| policy_document Required Input Column The JSON policy document to use as the content for the policy. | VARCHAR |
| policy_type Required Input Column The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy. Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account. | VARCHAR |
| locale Input Column The locale to use for localizing the findings. | VARCHAR |
| validate_policy_resource_type Input Column The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is RESOURCE_POLICY. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket for the policy validation resource type. For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies. | 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
| |
| finding_details A localized message that explains the finding and provides guidance on how to address it. | VARCHAR |
| finding_type The impact of the finding. Security warnings report when the policy allows access that we consider overly permissive. Errors report when a part of the policy is not functional. Warnings report non-security issues when a policy does not conform to policy writing best practices. Suggestions recommend stylistic improvements in the policy that do not impact access. | VARCHAR |
| issue_code The issue code provides an identifier of the issue associated with this finding. | VARCHAR |
| learn_more_link A link to additional documentation about the type of finding. | VARCHAR |
| locations The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding. | STRUCT( |
Show child fields
| |