

# PolicyInfo
<a name="API_PolicyInfo"></a>

Contains details about a policy evaluated during authorization. Details include the policy type, whether it is inline or managed, a URI that identifies it, and the entities it is attached to.

## Contents
<a name="API_PolicyInfo_Contents"></a>

 ** attachedTo **   <a name="iamtoolbox-Type-PolicyInfo-attachedTo"></a>
The entities that the policy is attached to. For identity, session, and resource-based policies, this is typically a single entity. For organization control policies (SCPs and RCPs), it can be multiple entities at different levels of the organization hierarchy.  
Type: Array of [AttachedTo](API_AttachedTo.md) objects  
Required: No

 ** inline **   <a name="iamtoolbox-Type-PolicyInfo-inline"></a>
Specifies whether this is an inline policy (`true`) or a managed policy (`false`).  
Type: Boolean  
Required: No

 ** type **   <a name="iamtoolbox-Type-PolicyInfo-type"></a>
The type of policy. Valid values:  
+  `IDENTITY_BASED_POLICY` - An identity-based policy attached to an IAM user, group, or role.
+  `PERMISSIONS_BOUNDARY` - A permissions boundary for an IAM entity.
+  `RESOURCE_BASED_POLICY` - A resource-based policy attached to a resource.
+  `RESOURCE_CONTROL_POLICY` - A resource control policy (RCP) in AWS Organizations.
+  `SERVICE_CONTROL_POLICY` - A service control policy (SCP) in AWS Organizations.
+  `SESSION_POLICY` - A session policy passed during role assumption or federation.
+  `VPC_ENDPOINT_POLICY` - A VPC endpoint policy.
Type: String  
Valid Values: `IDENTITY_BASED_POLICY | RESOURCE_BASED_POLICY | PERMISSIONS_BOUNDARY | SESSION_POLICY | SERVICE_CONTROL_POLICY | RESOURCE_CONTROL_POLICY | VPC_ENDPOINT_POLICY`   
Required: No

 ** uri **   <a name="iamtoolbox-Type-PolicyInfo-uri"></a>
A URI that identifies the policy. Use this URI to cross-reference the policy with the matching policies in each evaluation. The value depends on the policy type:  
+ For managed policies, this is the policy ARN.
+ For inline policies, which have no ARN, this is an opaque identifier.
Type: String  
Required: No

## See Also
<a name="API_PolicyInfo_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iam-toolbox-2018-05-10/PolicyInfo) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iam-toolbox-2018-05-10/PolicyInfo) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iam-toolbox-2018-05-10/PolicyInfo) 