aws.iam.list_policy_versions
Example SQL Queries
SELECT * FROMaws.iam.list_policy_versionsWHERE"policy_arn" = 'VALUE';Description
Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.
For more information about managed policies, see Managed policies and inline policies in the IAM User Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| policy_arn Required Input Column The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. | 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
| |
| create_date The date and time, in ISO 8601 date-time format, when the policy version was created. | TIMESTAMP_S |
| document The policy document. The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations. The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality. | VARCHAR |
| is_default_version Specifies whether the policy version is set as the policy's default version. | BOOLEAN |
| version_id The identifier for the policy version. Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1. | VARCHAR |